configure 328 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for ngircd 0.12.1.
  4. #
  5. # Copyright (C) 2003 Free Software Foundation, Inc.
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. ## --------------------- ##
  9. ## M4sh Initialization. ##
  10. ## --------------------- ##
  11. # Be Bourne compatible
  12. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  13. emulate sh
  14. NULLCMD=:
  15. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  16. # is contrary to our usage. Disable this feature.
  17. alias -g '${1+"$@"}'='"$@"'
  18. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  19. set -o posix
  20. fi
  21. DUALCASE=1; export DUALCASE # for MKS sh
  22. # Support unset when possible.
  23. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  24. as_unset=unset
  25. else
  26. as_unset=false
  27. fi
  28. # Work around bugs in pre-3.0 UWIN ksh.
  29. $as_unset ENV MAIL MAILPATH
  30. PS1='$ '
  31. PS2='> '
  32. PS4='+ '
  33. # NLS nuisances.
  34. for as_var in \
  35. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  36. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  37. LC_TELEPHONE LC_TIME
  38. do
  39. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  40. eval $as_var=C; export $as_var
  41. else
  42. $as_unset $as_var
  43. fi
  44. done
  45. # Required to use basename.
  46. if expr a : '\(a\)' >/dev/null 2>&1; then
  47. as_expr=expr
  48. else
  49. as_expr=false
  50. fi
  51. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  52. as_basename=basename
  53. else
  54. as_basename=false
  55. fi
  56. # Name of the executable.
  57. as_me=`$as_basename "$0" ||
  58. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  59. X"$0" : 'X\(//\)$' \| \
  60. X"$0" : 'X\(/\)$' \| \
  61. . : '\(.\)' 2>/dev/null ||
  62. echo X/"$0" |
  63. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  64. /^X\/\(\/\/\)$/{ s//\1/; q; }
  65. /^X\/\(\/\).*/{ s//\1/; q; }
  66. s/.*/./; q'`
  67. # PATH needs CR, and LINENO needs CR and PATH.
  68. # Avoid depending upon Character Ranges.
  69. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  70. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  71. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  72. as_cr_digits='0123456789'
  73. as_cr_alnum=$as_cr_Letters$as_cr_digits
  74. # The user is always right.
  75. if test "${PATH_SEPARATOR+set}" != set; then
  76. echo "#! /bin/sh" >conf$$.sh
  77. echo "exit 0" >>conf$$.sh
  78. chmod +x conf$$.sh
  79. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  80. PATH_SEPARATOR=';'
  81. else
  82. PATH_SEPARATOR=:
  83. fi
  84. rm -f conf$$.sh
  85. fi
  86. as_lineno_1=$LINENO
  87. as_lineno_2=$LINENO
  88. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  89. test "x$as_lineno_1" != "x$as_lineno_2" &&
  90. test "x$as_lineno_3" = "x$as_lineno_2" || {
  91. # Find who we are. Look in the path if we contain no path at all
  92. # relative or not.
  93. case $0 in
  94. *[\\/]* ) as_myself=$0 ;;
  95. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  96. for as_dir in $PATH
  97. do
  98. IFS=$as_save_IFS
  99. test -z "$as_dir" && as_dir=.
  100. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  101. done
  102. ;;
  103. esac
  104. # We did not find ourselves, most probably we were run as `sh COMMAND'
  105. # in which case we are not to be found in the path.
  106. if test "x$as_myself" = x; then
  107. as_myself=$0
  108. fi
  109. if test ! -f "$as_myself"; then
  110. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  111. { (exit 1); exit 1; }; }
  112. fi
  113. case $CONFIG_SHELL in
  114. '')
  115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  116. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  117. do
  118. IFS=$as_save_IFS
  119. test -z "$as_dir" && as_dir=.
  120. for as_base in sh bash ksh sh5; do
  121. case $as_dir in
  122. /*)
  123. if ("$as_dir/$as_base" -c '
  124. as_lineno_1=$LINENO
  125. as_lineno_2=$LINENO
  126. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  127. test "x$as_lineno_1" != "x$as_lineno_2" &&
  128. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  129. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  130. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  131. CONFIG_SHELL=$as_dir/$as_base
  132. export CONFIG_SHELL
  133. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  134. fi;;
  135. esac
  136. done
  137. done
  138. ;;
  139. esac
  140. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  141. # uniformly replaced by the line number. The first 'sed' inserts a
  142. # line-number line before each line; the second 'sed' does the real
  143. # work. The second script uses 'N' to pair each line-number line
  144. # with the numbered line, and appends trailing '-' during
  145. # substitution so that $LINENO is not a special case at line end.
  146. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  147. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  148. sed '=' <$as_myself |
  149. sed '
  150. N
  151. s,$,-,
  152. : loop
  153. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  154. t loop
  155. s,-$,,
  156. s,^['$as_cr_digits']*\n,,
  157. ' >$as_me.lineno &&
  158. chmod +x $as_me.lineno ||
  159. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  160. { (exit 1); exit 1; }; }
  161. # Don't try to exec as it changes $[0], causing all sort of problems
  162. # (the dirname of $[0] is not the place where we might find the
  163. # original and so on. Autoconf is especially sensible to this).
  164. . ./$as_me.lineno
  165. # Exit status is that of the last command.
  166. exit
  167. }
  168. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  169. *c*,-n*) ECHO_N= ECHO_C='
  170. ' ECHO_T=' ' ;;
  171. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  172. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  173. esac
  174. if expr a : '\(a\)' >/dev/null 2>&1; then
  175. as_expr=expr
  176. else
  177. as_expr=false
  178. fi
  179. rm -f conf$$ conf$$.exe conf$$.file
  180. echo >conf$$.file
  181. if ln -s conf$$.file conf$$ 2>/dev/null; then
  182. # We could just check for DJGPP; but this test a) works b) is more generic
  183. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  184. if test -f conf$$.exe; then
  185. # Don't use ln at all; we don't have any links
  186. as_ln_s='cp -p'
  187. else
  188. as_ln_s='ln -s'
  189. fi
  190. elif ln conf$$.file conf$$ 2>/dev/null; then
  191. as_ln_s=ln
  192. else
  193. as_ln_s='cp -p'
  194. fi
  195. rm -f conf$$ conf$$.exe conf$$.file
  196. if mkdir -p . 2>/dev/null; then
  197. as_mkdir_p=:
  198. else
  199. test -d ./-p && rmdir ./-p
  200. as_mkdir_p=false
  201. fi
  202. as_executable_p="test -f"
  203. # Sed expression to map a string onto a valid CPP name.
  204. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  205. # Sed expression to map a string onto a valid variable name.
  206. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  207. # IFS
  208. # We need space, tab and new line, in precisely that order.
  209. as_nl='
  210. '
  211. IFS=" $as_nl"
  212. # CDPATH.
  213. $as_unset CDPATH
  214. # Name of the host.
  215. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  216. # so uname gets run too.
  217. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  218. exec 6>&1
  219. #
  220. # Initializations.
  221. #
  222. ac_default_prefix=/usr/local
  223. ac_config_libobj_dir=.
  224. cross_compiling=no
  225. subdirs=
  226. MFLAGS=
  227. MAKEFLAGS=
  228. SHELL=${CONFIG_SHELL-/bin/sh}
  229. # Maximum number of lines to put in a shell here document.
  230. # This variable seems obsolete. It should probably be removed, and
  231. # only ac_max_sed_lines should be used.
  232. : ${ac_max_here_lines=38}
  233. # Identity of this package.
  234. PACKAGE_NAME='ngircd'
  235. PACKAGE_TARNAME='ngircd'
  236. PACKAGE_VERSION='0.12.1'
  237. PACKAGE_STRING='ngircd 0.12.1'
  238. PACKAGE_BUGREPORT=''
  239. ac_unique_file="src/ngircd/ngircd.c"
  240. # Factoring default headers for most tests.
  241. ac_includes_default="\
  242. #include <stdio.h>
  243. #if HAVE_SYS_TYPES_H
  244. # include <sys/types.h>
  245. #endif
  246. #if HAVE_SYS_STAT_H
  247. # include <sys/stat.h>
  248. #endif
  249. #if STDC_HEADERS
  250. # include <stdlib.h>
  251. # include <stddef.h>
  252. #else
  253. # if HAVE_STDLIB_H
  254. # include <stdlib.h>
  255. # endif
  256. #endif
  257. #if HAVE_STRING_H
  258. # if !STDC_HEADERS && HAVE_MEMORY_H
  259. # include <memory.h>
  260. # endif
  261. # include <string.h>
  262. #endif
  263. #if HAVE_STRINGS_H
  264. # include <strings.h>
  265. #endif
  266. #if HAVE_INTTYPES_H
  267. # include <inttypes.h>
  268. #else
  269. # if HAVE_STDINT_H
  270. # include <stdint.h>
  271. # endif
  272. #endif
  273. #if HAVE_UNISTD_H
  274. # include <unistd.h>
  275. #endif"
  276. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB CPP EGREP U ANSI2KNR LIBOBJS LTLIBOBJS'
  277. ac_subst_files=''
  278. # Initialize some variables set by options.
  279. ac_init_help=
  280. ac_init_version=false
  281. # The variables have the same names as the options, with
  282. # dashes changed to underlines.
  283. cache_file=/dev/null
  284. exec_prefix=NONE
  285. no_create=
  286. no_recursion=
  287. prefix=NONE
  288. program_prefix=NONE
  289. program_suffix=NONE
  290. program_transform_name=s,x,x,
  291. silent=
  292. site=
  293. srcdir=
  294. verbose=
  295. x_includes=NONE
  296. x_libraries=NONE
  297. # Installation directory options.
  298. # These are left unexpanded so users can "make install exec_prefix=/foo"
  299. # and all the variables that are supposed to be based on exec_prefix
  300. # by default will actually change.
  301. # Use braces instead of parens because sh, perl, etc. also accept them.
  302. bindir='${exec_prefix}/bin'
  303. sbindir='${exec_prefix}/sbin'
  304. libexecdir='${exec_prefix}/libexec'
  305. datadir='${prefix}/share'
  306. sysconfdir='${prefix}/etc'
  307. sharedstatedir='${prefix}/com'
  308. localstatedir='${prefix}/var'
  309. libdir='${exec_prefix}/lib'
  310. includedir='${prefix}/include'
  311. oldincludedir='/usr/include'
  312. infodir='${prefix}/info'
  313. mandir='${prefix}/man'
  314. ac_prev=
  315. for ac_option
  316. do
  317. # If the previous option needs an argument, assign it.
  318. if test -n "$ac_prev"; then
  319. eval "$ac_prev=\$ac_option"
  320. ac_prev=
  321. continue
  322. fi
  323. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  324. # Accept the important Cygnus configure options, so we can diagnose typos.
  325. case $ac_option in
  326. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  327. ac_prev=bindir ;;
  328. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  329. bindir=$ac_optarg ;;
  330. -build | --build | --buil | --bui | --bu)
  331. ac_prev=build_alias ;;
  332. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  333. build_alias=$ac_optarg ;;
  334. -cache-file | --cache-file | --cache-fil | --cache-fi \
  335. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  336. ac_prev=cache_file ;;
  337. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  338. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  339. cache_file=$ac_optarg ;;
  340. --config-cache | -C)
  341. cache_file=config.cache ;;
  342. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  343. ac_prev=datadir ;;
  344. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  345. | --da=*)
  346. datadir=$ac_optarg ;;
  347. -disable-* | --disable-*)
  348. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  349. # Reject names that are not valid shell variable names.
  350. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  351. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  352. { (exit 1); exit 1; }; }
  353. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  354. eval "enable_$ac_feature=no" ;;
  355. -enable-* | --enable-*)
  356. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  357. # Reject names that are not valid shell variable names.
  358. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  359. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  360. { (exit 1); exit 1; }; }
  361. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  362. case $ac_option in
  363. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  364. *) ac_optarg=yes ;;
  365. esac
  366. eval "enable_$ac_feature='$ac_optarg'" ;;
  367. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  368. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  369. | --exec | --exe | --ex)
  370. ac_prev=exec_prefix ;;
  371. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  372. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  373. | --exec=* | --exe=* | --ex=*)
  374. exec_prefix=$ac_optarg ;;
  375. -gas | --gas | --ga | --g)
  376. # Obsolete; use --with-gas.
  377. with_gas=yes ;;
  378. -help | --help | --hel | --he | -h)
  379. ac_init_help=long ;;
  380. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  381. ac_init_help=recursive ;;
  382. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  383. ac_init_help=short ;;
  384. -host | --host | --hos | --ho)
  385. ac_prev=host_alias ;;
  386. -host=* | --host=* | --hos=* | --ho=*)
  387. host_alias=$ac_optarg ;;
  388. -includedir | --includedir | --includedi | --included | --include \
  389. | --includ | --inclu | --incl | --inc)
  390. ac_prev=includedir ;;
  391. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  392. | --includ=* | --inclu=* | --incl=* | --inc=*)
  393. includedir=$ac_optarg ;;
  394. -infodir | --infodir | --infodi | --infod | --info | --inf)
  395. ac_prev=infodir ;;
  396. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  397. infodir=$ac_optarg ;;
  398. -libdir | --libdir | --libdi | --libd)
  399. ac_prev=libdir ;;
  400. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  401. libdir=$ac_optarg ;;
  402. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  403. | --libexe | --libex | --libe)
  404. ac_prev=libexecdir ;;
  405. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  406. | --libexe=* | --libex=* | --libe=*)
  407. libexecdir=$ac_optarg ;;
  408. -localstatedir | --localstatedir | --localstatedi | --localstated \
  409. | --localstate | --localstat | --localsta | --localst \
  410. | --locals | --local | --loca | --loc | --lo)
  411. ac_prev=localstatedir ;;
  412. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  413. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  414. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  415. localstatedir=$ac_optarg ;;
  416. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  417. ac_prev=mandir ;;
  418. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  419. mandir=$ac_optarg ;;
  420. -nfp | --nfp | --nf)
  421. # Obsolete; use --without-fp.
  422. with_fp=no ;;
  423. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  424. | --no-cr | --no-c | -n)
  425. no_create=yes ;;
  426. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  427. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  428. no_recursion=yes ;;
  429. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  430. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  431. | --oldin | --oldi | --old | --ol | --o)
  432. ac_prev=oldincludedir ;;
  433. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  434. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  435. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  436. oldincludedir=$ac_optarg ;;
  437. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  438. ac_prev=prefix ;;
  439. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  440. prefix=$ac_optarg ;;
  441. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  442. | --program-pre | --program-pr | --program-p)
  443. ac_prev=program_prefix ;;
  444. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  445. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  446. program_prefix=$ac_optarg ;;
  447. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  448. | --program-suf | --program-su | --program-s)
  449. ac_prev=program_suffix ;;
  450. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  451. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  452. program_suffix=$ac_optarg ;;
  453. -program-transform-name | --program-transform-name \
  454. | --program-transform-nam | --program-transform-na \
  455. | --program-transform-n | --program-transform- \
  456. | --program-transform | --program-transfor \
  457. | --program-transfo | --program-transf \
  458. | --program-trans | --program-tran \
  459. | --progr-tra | --program-tr | --program-t)
  460. ac_prev=program_transform_name ;;
  461. -program-transform-name=* | --program-transform-name=* \
  462. | --program-transform-nam=* | --program-transform-na=* \
  463. | --program-transform-n=* | --program-transform-=* \
  464. | --program-transform=* | --program-transfor=* \
  465. | --program-transfo=* | --program-transf=* \
  466. | --program-trans=* | --program-tran=* \
  467. | --progr-tra=* | --program-tr=* | --program-t=*)
  468. program_transform_name=$ac_optarg ;;
  469. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  470. | -silent | --silent | --silen | --sile | --sil)
  471. silent=yes ;;
  472. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  473. ac_prev=sbindir ;;
  474. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  475. | --sbi=* | --sb=*)
  476. sbindir=$ac_optarg ;;
  477. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  478. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  479. | --sharedst | --shareds | --shared | --share | --shar \
  480. | --sha | --sh)
  481. ac_prev=sharedstatedir ;;
  482. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  483. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  484. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  485. | --sha=* | --sh=*)
  486. sharedstatedir=$ac_optarg ;;
  487. -site | --site | --sit)
  488. ac_prev=site ;;
  489. -site=* | --site=* | --sit=*)
  490. site=$ac_optarg ;;
  491. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  492. ac_prev=srcdir ;;
  493. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  494. srcdir=$ac_optarg ;;
  495. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  496. | --syscon | --sysco | --sysc | --sys | --sy)
  497. ac_prev=sysconfdir ;;
  498. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  499. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  500. sysconfdir=$ac_optarg ;;
  501. -target | --target | --targe | --targ | --tar | --ta | --t)
  502. ac_prev=target_alias ;;
  503. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  504. target_alias=$ac_optarg ;;
  505. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  506. verbose=yes ;;
  507. -version | --version | --versio | --versi | --vers | -V)
  508. ac_init_version=: ;;
  509. -with-* | --with-*)
  510. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  511. # Reject names that are not valid shell variable names.
  512. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  513. { echo "$as_me: error: invalid package name: $ac_package" >&2
  514. { (exit 1); exit 1; }; }
  515. ac_package=`echo $ac_package| sed 's/-/_/g'`
  516. case $ac_option in
  517. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  518. *) ac_optarg=yes ;;
  519. esac
  520. eval "with_$ac_package='$ac_optarg'" ;;
  521. -without-* | --without-*)
  522. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  523. # Reject names that are not valid shell variable names.
  524. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  525. { echo "$as_me: error: invalid package name: $ac_package" >&2
  526. { (exit 1); exit 1; }; }
  527. ac_package=`echo $ac_package | sed 's/-/_/g'`
  528. eval "with_$ac_package=no" ;;
  529. --x)
  530. # Obsolete; use --with-x.
  531. with_x=yes ;;
  532. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  533. | --x-incl | --x-inc | --x-in | --x-i)
  534. ac_prev=x_includes ;;
  535. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  536. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  537. x_includes=$ac_optarg ;;
  538. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  539. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  540. ac_prev=x_libraries ;;
  541. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  542. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  543. x_libraries=$ac_optarg ;;
  544. -*) { echo "$as_me: error: unrecognized option: $ac_option
  545. Try \`$0 --help' for more information." >&2
  546. { (exit 1); exit 1; }; }
  547. ;;
  548. *=*)
  549. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  550. # Reject names that are not valid shell variable names.
  551. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  552. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  553. { (exit 1); exit 1; }; }
  554. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  555. eval "$ac_envvar='$ac_optarg'"
  556. export $ac_envvar ;;
  557. *)
  558. # FIXME: should be removed in autoconf 3.0.
  559. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  560. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  561. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  562. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  563. ;;
  564. esac
  565. done
  566. if test -n "$ac_prev"; then
  567. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  568. { echo "$as_me: error: missing argument to $ac_option" >&2
  569. { (exit 1); exit 1; }; }
  570. fi
  571. # Be sure to have absolute paths.
  572. for ac_var in exec_prefix prefix
  573. do
  574. eval ac_val=$`echo $ac_var`
  575. case $ac_val in
  576. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  577. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  578. { (exit 1); exit 1; }; };;
  579. esac
  580. done
  581. # Be sure to have absolute paths.
  582. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  583. localstatedir libdir includedir oldincludedir infodir mandir
  584. do
  585. eval ac_val=$`echo $ac_var`
  586. case $ac_val in
  587. [\\/$]* | ?:[\\/]* ) ;;
  588. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  589. { (exit 1); exit 1; }; };;
  590. esac
  591. done
  592. # There might be people who depend on the old broken behavior: `$host'
  593. # used to hold the argument of --host etc.
  594. # FIXME: To remove some day.
  595. build=$build_alias
  596. host=$host_alias
  597. target=$target_alias
  598. # FIXME: To remove some day.
  599. if test "x$host_alias" != x; then
  600. if test "x$build_alias" = x; then
  601. cross_compiling=maybe
  602. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  603. If a cross compiler is detected then cross compile mode will be used." >&2
  604. elif test "x$build_alias" != "x$host_alias"; then
  605. cross_compiling=yes
  606. fi
  607. fi
  608. ac_tool_prefix=
  609. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  610. test "$silent" = yes && exec 6>/dev/null
  611. # Find the source files, if location was not specified.
  612. if test -z "$srcdir"; then
  613. ac_srcdir_defaulted=yes
  614. # Try the directory containing this script, then its parent.
  615. ac_confdir=`(dirname "$0") 2>/dev/null ||
  616. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  617. X"$0" : 'X\(//\)[^/]' \| \
  618. X"$0" : 'X\(//\)$' \| \
  619. X"$0" : 'X\(/\)' \| \
  620. . : '\(.\)' 2>/dev/null ||
  621. echo X"$0" |
  622. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  623. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  624. /^X\(\/\/\)$/{ s//\1/; q; }
  625. /^X\(\/\).*/{ s//\1/; q; }
  626. s/.*/./; q'`
  627. srcdir=$ac_confdir
  628. if test ! -r $srcdir/$ac_unique_file; then
  629. srcdir=..
  630. fi
  631. else
  632. ac_srcdir_defaulted=no
  633. fi
  634. if test ! -r $srcdir/$ac_unique_file; then
  635. if test "$ac_srcdir_defaulted" = yes; then
  636. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  637. { (exit 1); exit 1; }; }
  638. else
  639. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  640. { (exit 1); exit 1; }; }
  641. fi
  642. fi
  643. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  644. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  645. { (exit 1); exit 1; }; }
  646. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  647. ac_env_build_alias_set=${build_alias+set}
  648. ac_env_build_alias_value=$build_alias
  649. ac_cv_env_build_alias_set=${build_alias+set}
  650. ac_cv_env_build_alias_value=$build_alias
  651. ac_env_host_alias_set=${host_alias+set}
  652. ac_env_host_alias_value=$host_alias
  653. ac_cv_env_host_alias_set=${host_alias+set}
  654. ac_cv_env_host_alias_value=$host_alias
  655. ac_env_target_alias_set=${target_alias+set}
  656. ac_env_target_alias_value=$target_alias
  657. ac_cv_env_target_alias_set=${target_alias+set}
  658. ac_cv_env_target_alias_value=$target_alias
  659. ac_env_CC_set=${CC+set}
  660. ac_env_CC_value=$CC
  661. ac_cv_env_CC_set=${CC+set}
  662. ac_cv_env_CC_value=$CC
  663. ac_env_CFLAGS_set=${CFLAGS+set}
  664. ac_env_CFLAGS_value=$CFLAGS
  665. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  666. ac_cv_env_CFLAGS_value=$CFLAGS
  667. ac_env_LDFLAGS_set=${LDFLAGS+set}
  668. ac_env_LDFLAGS_value=$LDFLAGS
  669. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  670. ac_cv_env_LDFLAGS_value=$LDFLAGS
  671. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  672. ac_env_CPPFLAGS_value=$CPPFLAGS
  673. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  674. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  675. ac_env_CPP_set=${CPP+set}
  676. ac_env_CPP_value=$CPP
  677. ac_cv_env_CPP_set=${CPP+set}
  678. ac_cv_env_CPP_value=$CPP
  679. #
  680. # Report the --help message.
  681. #
  682. if test "$ac_init_help" = "long"; then
  683. # Omit some internal or obsolete options to make the list less imposing.
  684. # This message is too long to be a string in the A/UX 3.1 sh.
  685. cat <<_ACEOF
  686. \`configure' configures ngircd 0.12.1 to adapt to many kinds of systems.
  687. Usage: $0 [OPTION]... [VAR=VALUE]...
  688. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  689. VAR=VALUE. See below for descriptions of some of the useful variables.
  690. Defaults for the options are specified in brackets.
  691. Configuration:
  692. -h, --help display this help and exit
  693. --help=short display options specific to this package
  694. --help=recursive display the short help of all the included packages
  695. -V, --version display version information and exit
  696. -q, --quiet, --silent do not print \`checking...' messages
  697. --cache-file=FILE cache test results in FILE [disabled]
  698. -C, --config-cache alias for \`--cache-file=config.cache'
  699. -n, --no-create do not create output files
  700. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  701. _ACEOF
  702. cat <<_ACEOF
  703. Installation directories:
  704. --prefix=PREFIX install architecture-independent files in PREFIX
  705. [$ac_default_prefix]
  706. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  707. [PREFIX]
  708. By default, \`make install' will install all the files in
  709. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  710. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  711. for instance \`--prefix=\$HOME'.
  712. For better control, use the options below.
  713. Fine tuning of the installation directories:
  714. --bindir=DIR user executables [EPREFIX/bin]
  715. --sbindir=DIR system admin executables [EPREFIX/sbin]
  716. --libexecdir=DIR program executables [EPREFIX/libexec]
  717. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  718. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  719. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  720. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  721. --libdir=DIR object code libraries [EPREFIX/lib]
  722. --includedir=DIR C header files [PREFIX/include]
  723. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  724. --infodir=DIR info documentation [PREFIX/info]
  725. --mandir=DIR man documentation [PREFIX/man]
  726. _ACEOF
  727. cat <<\_ACEOF
  728. Program names:
  729. --program-prefix=PREFIX prepend PREFIX to installed program names
  730. --program-suffix=SUFFIX append SUFFIX to installed program names
  731. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  732. System types:
  733. --build=BUILD configure for building on BUILD [guessed]
  734. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  735. --target=TARGET configure for building compilers for TARGET [HOST]
  736. _ACEOF
  737. fi
  738. if test -n "$ac_init_help"; then
  739. case $ac_init_help in
  740. short | recursive ) echo "Configuration of ngircd 0.12.1:";;
  741. esac
  742. cat <<\_ACEOF
  743. Optional Features:
  744. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  745. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  746. --disable-dependency-tracking speeds up one-time build
  747. --enable-dependency-tracking do not reject slow dependency extractors
  748. --disable-ircplus disable IRC+ protocol
  749. --enable-ipv6 enable IPv6 protocol support
  750. --enable-sniffer enable IRC traffic sniffer (enables debug mode)
  751. --enable-debug show additional debug output
  752. --enable-strict-rfc strict RFC conformance -- may break clients!
  753. Optional Packages:
  754. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  755. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  756. --without-syslog disable syslog (autodetected by default)
  757. --without-zlib disable zlib compression (autodetected by default)
  758. --without-select disable select IO support (autodetected by default)
  759. --without-poll disable poll support (autodetected by default)
  760. --without-devpoll disable /dev/poll IO support (autodetected by default)
  761. --without-epoll disable epoll IO support (autodetected by default)
  762. --without-kqueue disable kqueue IO support (autodetected by default)
  763. --with-tcp-wrappers enable TCP wrappers support
  764. --with-zeroconf enable support for "Zeroconf"
  765. --with-ident enable "IDENT" ("AUTH") protocol support
  766. Some influential environment variables:
  767. CC C compiler command
  768. CFLAGS C compiler flags
  769. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  770. nonstandard directory <lib dir>
  771. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  772. headers in a nonstandard directory <include dir>
  773. CPP C preprocessor
  774. Use these variables to override the choices made by `configure' or to help
  775. it to find libraries and programs with nonstandard names/locations.
  776. _ACEOF
  777. fi
  778. if test "$ac_init_help" = "recursive"; then
  779. # If there are subdirs, report their specific --help.
  780. ac_popdir=`pwd`
  781. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  782. test -d $ac_dir || continue
  783. ac_builddir=.
  784. if test "$ac_dir" != .; then
  785. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  786. # A "../" for each directory in $ac_dir_suffix.
  787. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  788. else
  789. ac_dir_suffix= ac_top_builddir=
  790. fi
  791. case $srcdir in
  792. .) # No --srcdir option. We are building in place.
  793. ac_srcdir=.
  794. if test -z "$ac_top_builddir"; then
  795. ac_top_srcdir=.
  796. else
  797. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  798. fi ;;
  799. [\\/]* | ?:[\\/]* ) # Absolute path.
  800. ac_srcdir=$srcdir$ac_dir_suffix;
  801. ac_top_srcdir=$srcdir ;;
  802. *) # Relative path.
  803. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  804. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  805. esac
  806. # Do not use `cd foo && pwd` to compute absolute paths, because
  807. # the directories may not exist.
  808. case `pwd` in
  809. .) ac_abs_builddir="$ac_dir";;
  810. *)
  811. case "$ac_dir" in
  812. .) ac_abs_builddir=`pwd`;;
  813. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  814. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  815. esac;;
  816. esac
  817. case $ac_abs_builddir in
  818. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  819. *)
  820. case ${ac_top_builddir}. in
  821. .) ac_abs_top_builddir=$ac_abs_builddir;;
  822. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  823. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  824. esac;;
  825. esac
  826. case $ac_abs_builddir in
  827. .) ac_abs_srcdir=$ac_srcdir;;
  828. *)
  829. case $ac_srcdir in
  830. .) ac_abs_srcdir=$ac_abs_builddir;;
  831. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  832. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  833. esac;;
  834. esac
  835. case $ac_abs_builddir in
  836. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  837. *)
  838. case $ac_top_srcdir in
  839. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  840. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  841. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  842. esac;;
  843. esac
  844. cd $ac_dir
  845. # Check for guested configure; otherwise get Cygnus style configure.
  846. if test -f $ac_srcdir/configure.gnu; then
  847. echo
  848. $SHELL $ac_srcdir/configure.gnu --help=recursive
  849. elif test -f $ac_srcdir/configure; then
  850. echo
  851. $SHELL $ac_srcdir/configure --help=recursive
  852. elif test -f $ac_srcdir/configure.ac ||
  853. test -f $ac_srcdir/configure.in; then
  854. echo
  855. $ac_configure --help
  856. else
  857. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  858. fi
  859. cd "$ac_popdir"
  860. done
  861. fi
  862. test -n "$ac_init_help" && exit 0
  863. if $ac_init_version; then
  864. cat <<\_ACEOF
  865. ngircd configure 0.12.1
  866. generated by GNU Autoconf 2.59
  867. Copyright (C) 2003 Free Software Foundation, Inc.
  868. This configure script is free software; the Free Software Foundation
  869. gives unlimited permission to copy, distribute and modify it.
  870. _ACEOF
  871. exit 0
  872. fi
  873. exec 5>config.log
  874. cat >&5 <<_ACEOF
  875. This file contains any messages produced by compilers while
  876. running configure, to aid debugging if configure makes a mistake.
  877. It was created by ngircd $as_me 0.12.1, which was
  878. generated by GNU Autoconf 2.59. Invocation command line was
  879. $ $0 $@
  880. _ACEOF
  881. {
  882. cat <<_ASUNAME
  883. ## --------- ##
  884. ## Platform. ##
  885. ## --------- ##
  886. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  887. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  888. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  889. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  890. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  891. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  892. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  893. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  894. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  895. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  896. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  897. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  898. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  899. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  900. _ASUNAME
  901. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  902. for as_dir in $PATH
  903. do
  904. IFS=$as_save_IFS
  905. test -z "$as_dir" && as_dir=.
  906. echo "PATH: $as_dir"
  907. done
  908. } >&5
  909. cat >&5 <<_ACEOF
  910. ## ----------- ##
  911. ## Core tests. ##
  912. ## ----------- ##
  913. _ACEOF
  914. # Keep a trace of the command line.
  915. # Strip out --no-create and --no-recursion so they do not pile up.
  916. # Strip out --silent because we don't want to record it for future runs.
  917. # Also quote any args containing shell meta-characters.
  918. # Make two passes to allow for proper duplicate-argument suppression.
  919. ac_configure_args=
  920. ac_configure_args0=
  921. ac_configure_args1=
  922. ac_sep=
  923. ac_must_keep_next=false
  924. for ac_pass in 1 2
  925. do
  926. for ac_arg
  927. do
  928. case $ac_arg in
  929. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  930. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  931. | -silent | --silent | --silen | --sile | --sil)
  932. continue ;;
  933. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  934. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  935. esac
  936. case $ac_pass in
  937. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  938. 2)
  939. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  940. if test $ac_must_keep_next = true; then
  941. ac_must_keep_next=false # Got value, back to normal.
  942. else
  943. case $ac_arg in
  944. *=* | --config-cache | -C | -disable-* | --disable-* \
  945. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  946. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  947. | -with-* | --with-* | -without-* | --without-* | --x)
  948. case "$ac_configure_args0 " in
  949. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  950. esac
  951. ;;
  952. -* ) ac_must_keep_next=true ;;
  953. esac
  954. fi
  955. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  956. # Get rid of the leading space.
  957. ac_sep=" "
  958. ;;
  959. esac
  960. done
  961. done
  962. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  963. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  964. # When interrupted or exit'd, cleanup temporary files, and complete
  965. # config.log. We remove comments because anyway the quotes in there
  966. # would cause problems or look ugly.
  967. # WARNING: Be sure not to use single quotes in there, as some shells,
  968. # such as our DU 5.0 friend, will then `close' the trap.
  969. trap 'exit_status=$?
  970. # Save into config.log some information that might help in debugging.
  971. {
  972. echo
  973. cat <<\_ASBOX
  974. ## ---------------- ##
  975. ## Cache variables. ##
  976. ## ---------------- ##
  977. _ASBOX
  978. echo
  979. # The following way of writing the cache mishandles newlines in values,
  980. {
  981. (set) 2>&1 |
  982. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  983. *ac_space=\ *)
  984. sed -n \
  985. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  986. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  987. ;;
  988. *)
  989. sed -n \
  990. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  991. ;;
  992. esac;
  993. }
  994. echo
  995. cat <<\_ASBOX
  996. ## ----------------- ##
  997. ## Output variables. ##
  998. ## ----------------- ##
  999. _ASBOX
  1000. echo
  1001. for ac_var in $ac_subst_vars
  1002. do
  1003. eval ac_val=$`echo $ac_var`
  1004. echo "$ac_var='"'"'$ac_val'"'"'"
  1005. done | sort
  1006. echo
  1007. if test -n "$ac_subst_files"; then
  1008. cat <<\_ASBOX
  1009. ## ------------- ##
  1010. ## Output files. ##
  1011. ## ------------- ##
  1012. _ASBOX
  1013. echo
  1014. for ac_var in $ac_subst_files
  1015. do
  1016. eval ac_val=$`echo $ac_var`
  1017. echo "$ac_var='"'"'$ac_val'"'"'"
  1018. done | sort
  1019. echo
  1020. fi
  1021. if test -s confdefs.h; then
  1022. cat <<\_ASBOX
  1023. ## ----------- ##
  1024. ## confdefs.h. ##
  1025. ## ----------- ##
  1026. _ASBOX
  1027. echo
  1028. sed "/^$/d" confdefs.h | sort
  1029. echo
  1030. fi
  1031. test "$ac_signal" != 0 &&
  1032. echo "$as_me: caught signal $ac_signal"
  1033. echo "$as_me: exit $exit_status"
  1034. } >&5
  1035. rm -f core *.core &&
  1036. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1037. exit $exit_status
  1038. ' 0
  1039. for ac_signal in 1 2 13 15; do
  1040. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1041. done
  1042. ac_signal=0
  1043. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1044. rm -rf conftest* confdefs.h
  1045. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1046. echo >confdefs.h
  1047. # Predefined preprocessor variables.
  1048. cat >>confdefs.h <<_ACEOF
  1049. #define PACKAGE_NAME "$PACKAGE_NAME"
  1050. _ACEOF
  1051. cat >>confdefs.h <<_ACEOF
  1052. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1053. _ACEOF
  1054. cat >>confdefs.h <<_ACEOF
  1055. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1056. _ACEOF
  1057. cat >>confdefs.h <<_ACEOF
  1058. #define PACKAGE_STRING "$PACKAGE_STRING"
  1059. _ACEOF
  1060. cat >>confdefs.h <<_ACEOF
  1061. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1062. _ACEOF
  1063. # Let the site file select an alternate cache file if it wants to.
  1064. # Prefer explicitly selected file to automatically selected ones.
  1065. if test -z "$CONFIG_SITE"; then
  1066. if test "x$prefix" != xNONE; then
  1067. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1068. else
  1069. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1070. fi
  1071. fi
  1072. for ac_site_file in $CONFIG_SITE; do
  1073. if test -r "$ac_site_file"; then
  1074. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1075. echo "$as_me: loading site script $ac_site_file" >&6;}
  1076. sed 's/^/| /' "$ac_site_file" >&5
  1077. . "$ac_site_file"
  1078. fi
  1079. done
  1080. if test -r "$cache_file"; then
  1081. # Some versions of bash will fail to source /dev/null (special
  1082. # files actually), so we avoid doing that.
  1083. if test -f "$cache_file"; then
  1084. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1085. echo "$as_me: loading cache $cache_file" >&6;}
  1086. case $cache_file in
  1087. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1088. *) . ./$cache_file;;
  1089. esac
  1090. fi
  1091. else
  1092. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1093. echo "$as_me: creating cache $cache_file" >&6;}
  1094. >$cache_file
  1095. fi
  1096. # Check that the precious variables saved in the cache have kept the same
  1097. # value.
  1098. ac_cache_corrupted=false
  1099. for ac_var in `(set) 2>&1 |
  1100. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1101. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1102. eval ac_new_set=\$ac_env_${ac_var}_set
  1103. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1104. eval ac_new_val="\$ac_env_${ac_var}_value"
  1105. case $ac_old_set,$ac_new_set in
  1106. set,)
  1107. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1108. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1109. ac_cache_corrupted=: ;;
  1110. ,set)
  1111. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1112. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1113. ac_cache_corrupted=: ;;
  1114. ,);;
  1115. *)
  1116. if test "x$ac_old_val" != "x$ac_new_val"; then
  1117. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1118. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1119. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1120. echo "$as_me: former value: $ac_old_val" >&2;}
  1121. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1122. echo "$as_me: current value: $ac_new_val" >&2;}
  1123. ac_cache_corrupted=:
  1124. fi;;
  1125. esac
  1126. # Pass precious variables to config.status.
  1127. if test "$ac_new_set" = set; then
  1128. case $ac_new_val in
  1129. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1130. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1131. *) ac_arg=$ac_var=$ac_new_val ;;
  1132. esac
  1133. case " $ac_configure_args " in
  1134. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1135. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1136. esac
  1137. fi
  1138. done
  1139. if $ac_cache_corrupted; then
  1140. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1141. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1142. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1143. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1144. { (exit 1); exit 1; }; }
  1145. fi
  1146. ac_ext=c
  1147. ac_cpp='$CPP $CPPFLAGS'
  1148. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1149. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1150. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1151. ac_aux_dir=
  1152. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1153. if test -f $ac_dir/install-sh; then
  1154. ac_aux_dir=$ac_dir
  1155. ac_install_sh="$ac_aux_dir/install-sh -c"
  1156. break
  1157. elif test -f $ac_dir/install.sh; then
  1158. ac_aux_dir=$ac_dir
  1159. ac_install_sh="$ac_aux_dir/install.sh -c"
  1160. break
  1161. elif test -f $ac_dir/shtool; then
  1162. ac_aux_dir=$ac_dir
  1163. ac_install_sh="$ac_aux_dir/shtool install -c"
  1164. break
  1165. fi
  1166. done
  1167. if test -z "$ac_aux_dir"; then
  1168. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1169. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1170. { (exit 1); exit 1; }; }
  1171. fi
  1172. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1173. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1174. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1175. # Make sure we can run config.sub.
  1176. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1177. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1178. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1179. { (exit 1); exit 1; }; }
  1180. echo "$as_me:$LINENO: checking build system type" >&5
  1181. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1182. if test "${ac_cv_build+set}" = set; then
  1183. echo $ECHO_N "(cached) $ECHO_C" >&6
  1184. else
  1185. ac_cv_build_alias=$build_alias
  1186. test -z "$ac_cv_build_alias" &&
  1187. ac_cv_build_alias=`$ac_config_guess`
  1188. test -z "$ac_cv_build_alias" &&
  1189. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1190. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1191. { (exit 1); exit 1; }; }
  1192. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1193. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1194. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1195. { (exit 1); exit 1; }; }
  1196. fi
  1197. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1198. echo "${ECHO_T}$ac_cv_build" >&6
  1199. build=$ac_cv_build
  1200. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1201. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1202. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1203. echo "$as_me:$LINENO: checking host system type" >&5
  1204. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1205. if test "${ac_cv_host+set}" = set; then
  1206. echo $ECHO_N "(cached) $ECHO_C" >&6
  1207. else
  1208. ac_cv_host_alias=$host_alias
  1209. test -z "$ac_cv_host_alias" &&
  1210. ac_cv_host_alias=$ac_cv_build_alias
  1211. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1212. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1213. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1214. { (exit 1); exit 1; }; }
  1215. fi
  1216. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1217. echo "${ECHO_T}$ac_cv_host" >&6
  1218. host=$ac_cv_host
  1219. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1220. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1221. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1222. echo "$as_me:$LINENO: checking target system type" >&5
  1223. echo $ECHO_N "checking target system type... $ECHO_C" >&6
  1224. if test "${ac_cv_target+set}" = set; then
  1225. echo $ECHO_N "(cached) $ECHO_C" >&6
  1226. else
  1227. ac_cv_target_alias=$target_alias
  1228. test "x$ac_cv_target_alias" = "x" &&
  1229. ac_cv_target_alias=$ac_cv_host_alias
  1230. ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  1231. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
  1232. echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
  1233. { (exit 1); exit 1; }; }
  1234. fi
  1235. echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1236. echo "${ECHO_T}$ac_cv_target" >&6
  1237. target=$ac_cv_target
  1238. target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1239. target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1240. target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1241. # The aliases save the names the user supplied, while $host etc.
  1242. # will get canonicalized.
  1243. test -n "$target_alias" &&
  1244. test "$program_prefix$program_suffix$program_transform_name" = \
  1245. NONENONEs,x,x, &&
  1246. program_prefix=${target_alias}-
  1247. am__api_version="1.9"
  1248. # Find a good install program. We prefer a C program (faster),
  1249. # so one script is as good as another. But avoid the broken or
  1250. # incompatible versions:
  1251. # SysV /etc/install, /usr/sbin/install
  1252. # SunOS /usr/etc/install
  1253. # IRIX /sbin/install
  1254. # AIX /bin/install
  1255. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1256. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1257. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1258. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1259. # OS/2's system install, which has a completely different semantic
  1260. # ./install, which can be erroneously created by make from ./install.sh.
  1261. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1262. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1263. if test -z "$INSTALL"; then
  1264. if test "${ac_cv_path_install+set}" = set; then
  1265. echo $ECHO_N "(cached) $ECHO_C" >&6
  1266. else
  1267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1268. for as_dir in $PATH
  1269. do
  1270. IFS=$as_save_IFS
  1271. test -z "$as_dir" && as_dir=.
  1272. # Account for people who put trailing slashes in PATH elements.
  1273. case $as_dir/ in
  1274. ./ | .// | /cC/* | \
  1275. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1276. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1277. /usr/ucb/* ) ;;
  1278. *)
  1279. # OSF1 and SCO ODT 3.0 have their own names for install.
  1280. # Don't use installbsd from OSF since it installs stuff as root
  1281. # by default.
  1282. for ac_prog in ginstall scoinst install; do
  1283. for ac_exec_ext in '' $ac_executable_extensions; do
  1284. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1285. if test $ac_prog = install &&
  1286. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1287. # AIX install. It has an incompatible calling convention.
  1288. :
  1289. elif test $ac_prog = install &&
  1290. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1291. # program-specific install script used by HP pwplus--don't use.
  1292. :
  1293. else
  1294. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1295. break 3
  1296. fi
  1297. fi
  1298. done
  1299. done
  1300. ;;
  1301. esac
  1302. done
  1303. fi
  1304. if test "${ac_cv_path_install+set}" = set; then
  1305. INSTALL=$ac_cv_path_install
  1306. else
  1307. # As a last resort, use the slow shell script. We don't cache a
  1308. # path for INSTALL within a source directory, because that will
  1309. # break other packages using the cache if that directory is
  1310. # removed, or if the path is relative.
  1311. INSTALL=$ac_install_sh
  1312. fi
  1313. fi
  1314. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1315. echo "${ECHO_T}$INSTALL" >&6
  1316. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1317. # It thinks the first close brace ends the variable substitution.
  1318. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1319. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1320. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1321. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1322. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1323. # Just in case
  1324. sleep 1
  1325. echo timestamp > conftest.file
  1326. # Do `set' in a subshell so we don't clobber the current shell's
  1327. # arguments. Must try -L first in case configure is actually a
  1328. # symlink; some systems play weird games with the mod time of symlinks
  1329. # (eg FreeBSD returns the mod time of the symlink's containing
  1330. # directory).
  1331. if (
  1332. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1333. if test "$*" = "X"; then
  1334. # -L didn't work.
  1335. set X `ls -t $srcdir/configure conftest.file`
  1336. fi
  1337. rm -f conftest.file
  1338. if test "$*" != "X $srcdir/configure conftest.file" \
  1339. && test "$*" != "X conftest.file $srcdir/configure"; then
  1340. # If neither matched, then we have a broken ls. This can happen
  1341. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1342. # broken ls alias from the environment. This has actually
  1343. # happened. Such a system could not be considered "sane".
  1344. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1345. alias in your environment" >&5
  1346. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1347. alias in your environment" >&2;}
  1348. { (exit 1); exit 1; }; }
  1349. fi
  1350. test "$2" = conftest.file
  1351. )
  1352. then
  1353. # Ok.
  1354. :
  1355. else
  1356. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1357. Check your system clock" >&5
  1358. echo "$as_me: error: newly created file is older than distributed files!
  1359. Check your system clock" >&2;}
  1360. { (exit 1); exit 1; }; }
  1361. fi
  1362. echo "$as_me:$LINENO: result: yes" >&5
  1363. echo "${ECHO_T}yes" >&6
  1364. test "$program_prefix" != NONE &&
  1365. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1366. # Use a double $ so make ignores it.
  1367. test "$program_suffix" != NONE &&
  1368. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1369. # Double any \ or $. echo might interpret backslashes.
  1370. # By default was `s,x,x', remove it if useless.
  1371. cat <<\_ACEOF >conftest.sed
  1372. s/[\\$]/&&/g;s/;s,x,x,$//
  1373. _ACEOF
  1374. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1375. rm conftest.sed
  1376. # expand $ac_aux_dir to an absolute path
  1377. am_aux_dir=`cd $ac_aux_dir && pwd`
  1378. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1379. # Use eval to expand $SHELL
  1380. if eval "$MISSING --run true"; then
  1381. am_missing_run="$MISSING --run "
  1382. else
  1383. am_missing_run=
  1384. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1385. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1386. fi
  1387. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1388. # We used to keeping the `.' as first argument, in order to
  1389. # allow $(mkdir_p) to be used without argument. As in
  1390. # $(mkdir_p) $(somedir)
  1391. # where $(somedir) is conditionally defined. However this is wrong
  1392. # for two reasons:
  1393. # 1. if the package is installed by a user who cannot write `.'
  1394. # make install will fail,
  1395. # 2. the above comment should most certainly read
  1396. # $(mkdir_p) $(DESTDIR)$(somedir)
  1397. # so it does not work when $(somedir) is undefined and
  1398. # $(DESTDIR) is not.
  1399. # To support the latter case, we have to write
  1400. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1401. # so the `.' trick is pointless.
  1402. mkdir_p='mkdir -p --'
  1403. else
  1404. # On NextStep and OpenStep, the `mkdir' command does not
  1405. # recognize any option. It will interpret all options as
  1406. # directories to create, and then abort because `.' already
  1407. # exists.
  1408. for d in ./-p ./--version;
  1409. do
  1410. test -d $d && rmdir $d
  1411. done
  1412. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1413. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1414. mkdir_p='$(mkinstalldirs)'
  1415. else
  1416. mkdir_p='$(install_sh) -d'
  1417. fi
  1418. fi
  1419. for ac_prog in gawk mawk nawk awk
  1420. do
  1421. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1422. set dummy $ac_prog; ac_word=$2
  1423. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1424. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1425. if test "${ac_cv_prog_AWK+set}" = set; then
  1426. echo $ECHO_N "(cached) $ECHO_C" >&6
  1427. else
  1428. if test -n "$AWK"; then
  1429. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1430. else
  1431. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1432. for as_dir in $PATH
  1433. do
  1434. IFS=$as_save_IFS
  1435. test -z "$as_dir" && as_dir=.
  1436. for ac_exec_ext in '' $ac_executable_extensions; do
  1437. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1438. ac_cv_prog_AWK="$ac_prog"
  1439. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1440. break 2
  1441. fi
  1442. done
  1443. done
  1444. fi
  1445. fi
  1446. AWK=$ac_cv_prog_AWK
  1447. if test -n "$AWK"; then
  1448. echo "$as_me:$LINENO: result: $AWK" >&5
  1449. echo "${ECHO_T}$AWK" >&6
  1450. else
  1451. echo "$as_me:$LINENO: result: no" >&5
  1452. echo "${ECHO_T}no" >&6
  1453. fi
  1454. test -n "$AWK" && break
  1455. done
  1456. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1457. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1458. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1459. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1460. echo $ECHO_N "(cached) $ECHO_C" >&6
  1461. else
  1462. cat >conftest.make <<\_ACEOF
  1463. all:
  1464. @echo 'ac_maketemp="$(MAKE)"'
  1465. _ACEOF
  1466. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1467. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1468. if test -n "$ac_maketemp"; then
  1469. eval ac_cv_prog_make_${ac_make}_set=yes
  1470. else
  1471. eval ac_cv_prog_make_${ac_make}_set=no
  1472. fi
  1473. rm -f conftest.make
  1474. fi
  1475. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1476. echo "$as_me:$LINENO: result: yes" >&5
  1477. echo "${ECHO_T}yes" >&6
  1478. SET_MAKE=
  1479. else
  1480. echo "$as_me:$LINENO: result: no" >&5
  1481. echo "${ECHO_T}no" >&6
  1482. SET_MAKE="MAKE=${MAKE-make}"
  1483. fi
  1484. rm -rf .tst 2>/dev/null
  1485. mkdir .tst 2>/dev/null
  1486. if test -d .tst; then
  1487. am__leading_dot=.
  1488. else
  1489. am__leading_dot=_
  1490. fi
  1491. rmdir .tst 2>/dev/null
  1492. # test to see if srcdir already configured
  1493. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1494. test -f $srcdir/config.status; then
  1495. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1496. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1497. { (exit 1); exit 1; }; }
  1498. fi
  1499. # test whether we have cygpath
  1500. if test -z "$CYGPATH_W"; then
  1501. if (cygpath --version) >/dev/null 2>/dev/null; then
  1502. CYGPATH_W='cygpath -w'
  1503. else
  1504. CYGPATH_W=echo
  1505. fi
  1506. fi
  1507. # Define the identity of the package.
  1508. PACKAGE='ngircd'
  1509. VERSION='0.12.1'
  1510. cat >>confdefs.h <<_ACEOF
  1511. #define PACKAGE "$PACKAGE"
  1512. _ACEOF
  1513. cat >>confdefs.h <<_ACEOF
  1514. #define VERSION "$VERSION"
  1515. _ACEOF
  1516. # Some tools Automake needs.
  1517. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1518. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1519. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1520. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1521. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1522. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1523. # Installed binaries are usually stripped using `strip' when the user
  1524. # run `make install-strip'. However `strip' might not be the right
  1525. # tool to use in cross-compilation environments, therefore Automake
  1526. # will honor the `STRIP' environment variable to overrule this program.
  1527. if test "$cross_compiling" != no; then
  1528. if test -n "$ac_tool_prefix"; then
  1529. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1530. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1531. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1532. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1533. if test "${ac_cv_prog_STRIP+set}" = set; then
  1534. echo $ECHO_N "(cached) $ECHO_C" >&6
  1535. else
  1536. if test -n "$STRIP"; then
  1537. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1538. else
  1539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1540. for as_dir in $PATH
  1541. do
  1542. IFS=$as_save_IFS
  1543. test -z "$as_dir" && as_dir=.
  1544. for ac_exec_ext in '' $ac_executable_extensions; do
  1545. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1546. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1547. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1548. break 2
  1549. fi
  1550. done
  1551. done
  1552. fi
  1553. fi
  1554. STRIP=$ac_cv_prog_STRIP
  1555. if test -n "$STRIP"; then
  1556. echo "$as_me:$LINENO: result: $STRIP" >&5
  1557. echo "${ECHO_T}$STRIP" >&6
  1558. else
  1559. echo "$as_me:$LINENO: result: no" >&5
  1560. echo "${ECHO_T}no" >&6
  1561. fi
  1562. fi
  1563. if test -z "$ac_cv_prog_STRIP"; then
  1564. ac_ct_STRIP=$STRIP
  1565. # Extract the first word of "strip", so it can be a program name with args.
  1566. set dummy strip; ac_word=$2
  1567. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1568. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1569. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1570. echo $ECHO_N "(cached) $ECHO_C" >&6
  1571. else
  1572. if test -n "$ac_ct_STRIP"; then
  1573. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1574. else
  1575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1576. for as_dir in $PATH
  1577. do
  1578. IFS=$as_save_IFS
  1579. test -z "$as_dir" && as_dir=.
  1580. for ac_exec_ext in '' $ac_executable_extensions; do
  1581. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1582. ac_cv_prog_ac_ct_STRIP="strip"
  1583. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1584. break 2
  1585. fi
  1586. done
  1587. done
  1588. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1589. fi
  1590. fi
  1591. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1592. if test -n "$ac_ct_STRIP"; then
  1593. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1594. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1595. else
  1596. echo "$as_me:$LINENO: result: no" >&5
  1597. echo "${ECHO_T}no" >&6
  1598. fi
  1599. STRIP=$ac_ct_STRIP
  1600. else
  1601. STRIP="$ac_cv_prog_STRIP"
  1602. fi
  1603. fi
  1604. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1605. # We need awk for the "check" target. The system "awk" is bad on
  1606. # some platforms.
  1607. # Always define AMTAR for backward compatibility.
  1608. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1609. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1610. ac_config_headers="$ac_config_headers src/config.h"
  1611. # -- Templates for config.h --
  1612. # -- C Compiler --
  1613. ac_ext=c
  1614. ac_cpp='$CPP $CPPFLAGS'
  1615. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1616. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1617. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1618. if test -n "$ac_tool_prefix"; then
  1619. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1620. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1621. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1622. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1623. if test "${ac_cv_prog_CC+set}" = set; then
  1624. echo $ECHO_N "(cached) $ECHO_C" >&6
  1625. else
  1626. if test -n "$CC"; then
  1627. ac_cv_prog_CC="$CC" # Let the user override the test.
  1628. else
  1629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1630. for as_dir in $PATH
  1631. do
  1632. IFS=$as_save_IFS
  1633. test -z "$as_dir" && as_dir=.
  1634. for ac_exec_ext in '' $ac_executable_extensions; do
  1635. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1636. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1637. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1638. break 2
  1639. fi
  1640. done
  1641. done
  1642. fi
  1643. fi
  1644. CC=$ac_cv_prog_CC
  1645. if test -n "$CC"; then
  1646. echo "$as_me:$LINENO: result: $CC" >&5
  1647. echo "${ECHO_T}$CC" >&6
  1648. else
  1649. echo "$as_me:$LINENO: result: no" >&5
  1650. echo "${ECHO_T}no" >&6
  1651. fi
  1652. fi
  1653. if test -z "$ac_cv_prog_CC"; then
  1654. ac_ct_CC=$CC
  1655. # Extract the first word of "gcc", so it can be a program name with args.
  1656. set dummy gcc; ac_word=$2
  1657. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1658. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1659. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1660. echo $ECHO_N "(cached) $ECHO_C" >&6
  1661. else
  1662. if test -n "$ac_ct_CC"; then
  1663. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1664. else
  1665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1666. for as_dir in $PATH
  1667. do
  1668. IFS=$as_save_IFS
  1669. test -z "$as_dir" && as_dir=.
  1670. for ac_exec_ext in '' $ac_executable_extensions; do
  1671. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1672. ac_cv_prog_ac_ct_CC="gcc"
  1673. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1674. break 2
  1675. fi
  1676. done
  1677. done
  1678. fi
  1679. fi
  1680. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1681. if test -n "$ac_ct_CC"; then
  1682. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1683. echo "${ECHO_T}$ac_ct_CC" >&6
  1684. else
  1685. echo "$as_me:$LINENO: result: no" >&5
  1686. echo "${ECHO_T}no" >&6
  1687. fi
  1688. CC=$ac_ct_CC
  1689. else
  1690. CC="$ac_cv_prog_CC"
  1691. fi
  1692. if test -z "$CC"; then
  1693. if test -n "$ac_tool_prefix"; then
  1694. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1695. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1696. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1697. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1698. if test "${ac_cv_prog_CC+set}" = set; then
  1699. echo $ECHO_N "(cached) $ECHO_C" >&6
  1700. else
  1701. if test -n "$CC"; then
  1702. ac_cv_prog_CC="$CC" # Let the user override the test.
  1703. else
  1704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1705. for as_dir in $PATH
  1706. do
  1707. IFS=$as_save_IFS
  1708. test -z "$as_dir" && as_dir=.
  1709. for ac_exec_ext in '' $ac_executable_extensions; do
  1710. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1711. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1712. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1713. break 2
  1714. fi
  1715. done
  1716. done
  1717. fi
  1718. fi
  1719. CC=$ac_cv_prog_CC
  1720. if test -n "$CC"; then
  1721. echo "$as_me:$LINENO: result: $CC" >&5
  1722. echo "${ECHO_T}$CC" >&6
  1723. else
  1724. echo "$as_me:$LINENO: result: no" >&5
  1725. echo "${ECHO_T}no" >&6
  1726. fi
  1727. fi
  1728. if test -z "$ac_cv_prog_CC"; then
  1729. ac_ct_CC=$CC
  1730. # Extract the first word of "cc", so it can be a program name with args.
  1731. set dummy cc; ac_word=$2
  1732. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1733. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1734. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1735. echo $ECHO_N "(cached) $ECHO_C" >&6
  1736. else
  1737. if test -n "$ac_ct_CC"; then
  1738. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1739. else
  1740. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1741. for as_dir in $PATH
  1742. do
  1743. IFS=$as_save_IFS
  1744. test -z "$as_dir" && as_dir=.
  1745. for ac_exec_ext in '' $ac_executable_extensions; do
  1746. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1747. ac_cv_prog_ac_ct_CC="cc"
  1748. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1749. break 2
  1750. fi
  1751. done
  1752. done
  1753. fi
  1754. fi
  1755. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1756. if test -n "$ac_ct_CC"; then
  1757. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1758. echo "${ECHO_T}$ac_ct_CC" >&6
  1759. else
  1760. echo "$as_me:$LINENO: result: no" >&5
  1761. echo "${ECHO_T}no" >&6
  1762. fi
  1763. CC=$ac_ct_CC
  1764. else
  1765. CC="$ac_cv_prog_CC"
  1766. fi
  1767. fi
  1768. if test -z "$CC"; then
  1769. # Extract the first word of "cc", so it can be a program name with args.
  1770. set dummy cc; ac_word=$2
  1771. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1772. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1773. if test "${ac_cv_prog_CC+set}" = set; then
  1774. echo $ECHO_N "(cached) $ECHO_C" >&6
  1775. else
  1776. if test -n "$CC"; then
  1777. ac_cv_prog_CC="$CC" # Let the user override the test.
  1778. else
  1779. ac_prog_rejected=no
  1780. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1781. for as_dir in $PATH
  1782. do
  1783. IFS=$as_save_IFS
  1784. test -z "$as_dir" && as_dir=.
  1785. for ac_exec_ext in '' $ac_executable_extensions; do
  1786. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1787. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1788. ac_prog_rejected=yes
  1789. continue
  1790. fi
  1791. ac_cv_prog_CC="cc"
  1792. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1793. break 2
  1794. fi
  1795. done
  1796. done
  1797. if test $ac_prog_rejected = yes; then
  1798. # We found a bogon in the path, so make sure we never use it.
  1799. set dummy $ac_cv_prog_CC
  1800. shift
  1801. if test $# != 0; then
  1802. # We chose a different compiler from the bogus one.
  1803. # However, it has the same basename, so the bogon will be chosen
  1804. # first if we set CC to just the basename; use the full file name.
  1805. shift
  1806. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1807. fi
  1808. fi
  1809. fi
  1810. fi
  1811. CC=$ac_cv_prog_CC
  1812. if test -n "$CC"; then
  1813. echo "$as_me:$LINENO: result: $CC" >&5
  1814. echo "${ECHO_T}$CC" >&6
  1815. else
  1816. echo "$as_me:$LINENO: result: no" >&5
  1817. echo "${ECHO_T}no" >&6
  1818. fi
  1819. fi
  1820. if test -z "$CC"; then
  1821. if test -n "$ac_tool_prefix"; then
  1822. for ac_prog in cl
  1823. do
  1824. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1825. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1826. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1827. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1828. if test "${ac_cv_prog_CC+set}" = set; then
  1829. echo $ECHO_N "(cached) $ECHO_C" >&6
  1830. else
  1831. if test -n "$CC"; then
  1832. ac_cv_prog_CC="$CC" # Let the user override the test.
  1833. else
  1834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1835. for as_dir in $PATH
  1836. do
  1837. IFS=$as_save_IFS
  1838. test -z "$as_dir" && as_dir=.
  1839. for ac_exec_ext in '' $ac_executable_extensions; do
  1840. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1841. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1842. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1843. break 2
  1844. fi
  1845. done
  1846. done
  1847. fi
  1848. fi
  1849. CC=$ac_cv_prog_CC
  1850. if test -n "$CC"; then
  1851. echo "$as_me:$LINENO: result: $CC" >&5
  1852. echo "${ECHO_T}$CC" >&6
  1853. else
  1854. echo "$as_me:$LINENO: result: no" >&5
  1855. echo "${ECHO_T}no" >&6
  1856. fi
  1857. test -n "$CC" && break
  1858. done
  1859. fi
  1860. if test -z "$CC"; then
  1861. ac_ct_CC=$CC
  1862. for ac_prog in cl
  1863. do
  1864. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1865. set dummy $ac_prog; ac_word=$2
  1866. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1867. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1868. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1869. echo $ECHO_N "(cached) $ECHO_C" >&6
  1870. else
  1871. if test -n "$ac_ct_CC"; then
  1872. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1873. else
  1874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1875. for as_dir in $PATH
  1876. do
  1877. IFS=$as_save_IFS
  1878. test -z "$as_dir" && as_dir=.
  1879. for ac_exec_ext in '' $ac_executable_extensions; do
  1880. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1881. ac_cv_prog_ac_ct_CC="$ac_prog"
  1882. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1883. break 2
  1884. fi
  1885. done
  1886. done
  1887. fi
  1888. fi
  1889. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1890. if test -n "$ac_ct_CC"; then
  1891. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1892. echo "${ECHO_T}$ac_ct_CC" >&6
  1893. else
  1894. echo "$as_me:$LINENO: result: no" >&5
  1895. echo "${ECHO_T}no" >&6
  1896. fi
  1897. test -n "$ac_ct_CC" && break
  1898. done
  1899. CC=$ac_ct_CC
  1900. fi
  1901. fi
  1902. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1903. See \`config.log' for more details." >&5
  1904. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1905. See \`config.log' for more details." >&2;}
  1906. { (exit 1); exit 1; }; }
  1907. # Provide some information about the compiler.
  1908. echo "$as_me:$LINENO:" \
  1909. "checking for C compiler version" >&5
  1910. ac_compiler=`set X $ac_compile; echo $2`
  1911. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1912. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1913. ac_status=$?
  1914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1915. (exit $ac_status); }
  1916. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1917. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1918. ac_status=$?
  1919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1920. (exit $ac_status); }
  1921. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1922. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1923. ac_status=$?
  1924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1925. (exit $ac_status); }
  1926. cat >conftest.$ac_ext <<_ACEOF
  1927. /* confdefs.h. */
  1928. _ACEOF
  1929. cat confdefs.h >>conftest.$ac_ext
  1930. cat >>conftest.$ac_ext <<_ACEOF
  1931. /* end confdefs.h. */
  1932. int
  1933. main ()
  1934. {
  1935. ;
  1936. return 0;
  1937. }
  1938. _ACEOF
  1939. ac_clean_files_save=$ac_clean_files
  1940. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1941. # Try to create an executable without -o first, disregard a.out.
  1942. # It will help us diagnose broken compilers, and finding out an intuition
  1943. # of exeext.
  1944. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1945. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1946. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1947. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1948. (eval $ac_link_default) 2>&5
  1949. ac_status=$?
  1950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1951. (exit $ac_status); }; then
  1952. # Find the output, starting from the most likely. This scheme is
  1953. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1954. # resort.
  1955. # Be careful to initialize this variable, since it used to be cached.
  1956. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1957. ac_cv_exeext=
  1958. # b.out is created by i960 compilers.
  1959. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1960. do
  1961. test -f "$ac_file" || continue
  1962. case $ac_file in
  1963. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1964. ;;
  1965. conftest.$ac_ext )
  1966. # This is the source file.
  1967. ;;
  1968. [ab].out )
  1969. # We found the default executable, but exeext='' is most
  1970. # certainly right.
  1971. break;;
  1972. *.* )
  1973. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1974. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1975. # but it would be cool to find out if it's true. Does anybody
  1976. # maintain Libtool? --akim.
  1977. export ac_cv_exeext
  1978. break;;
  1979. * )
  1980. break;;
  1981. esac
  1982. done
  1983. else
  1984. echo "$as_me: failed program was:" >&5
  1985. sed 's/^/| /' conftest.$ac_ext >&5
  1986. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1987. See \`config.log' for more details." >&5
  1988. echo "$as_me: error: C compiler cannot create executables
  1989. See \`config.log' for more details." >&2;}
  1990. { (exit 77); exit 77; }; }
  1991. fi
  1992. ac_exeext=$ac_cv_exeext
  1993. echo "$as_me:$LINENO: result: $ac_file" >&5
  1994. echo "${ECHO_T}$ac_file" >&6
  1995. # Check the compiler produces executables we can run. If not, either
  1996. # the compiler is broken, or we cross compile.
  1997. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1998. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1999. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2000. # If not cross compiling, check that we can run a simple program.
  2001. if test "$cross_compiling" != yes; then
  2002. if { ac_try='./$ac_file'
  2003. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2004. (eval $ac_try) 2>&5
  2005. ac_status=$?
  2006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2007. (exit $ac_status); }; }; then
  2008. cross_compiling=no
  2009. else
  2010. if test "$cross_compiling" = maybe; then
  2011. cross_compiling=yes
  2012. else
  2013. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2014. If you meant to cross compile, use \`--host'.
  2015. See \`config.log' for more details." >&5
  2016. echo "$as_me: error: cannot run C compiled programs.
  2017. If you meant to cross compile, use \`--host'.
  2018. See \`config.log' for more details." >&2;}
  2019. { (exit 1); exit 1; }; }
  2020. fi
  2021. fi
  2022. fi
  2023. echo "$as_me:$LINENO: result: yes" >&5
  2024. echo "${ECHO_T}yes" >&6
  2025. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2026. ac_clean_files=$ac_clean_files_save
  2027. # Check the compiler produces executables we can run. If not, either
  2028. # the compiler is broken, or we cross compile.
  2029. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2030. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2031. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2032. echo "${ECHO_T}$cross_compiling" >&6
  2033. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2034. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2035. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2036. (eval $ac_link) 2>&5
  2037. ac_status=$?
  2038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2039. (exit $ac_status); }; then
  2040. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2041. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2042. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2043. # `rm'.
  2044. for ac_file in conftest.exe conftest conftest.*; do
  2045. test -f "$ac_file" || continue
  2046. case $ac_file in
  2047. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2048. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2049. export ac_cv_exeext
  2050. break;;
  2051. * ) break;;
  2052. esac
  2053. done
  2054. else
  2055. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2056. See \`config.log' for more details." >&5
  2057. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2058. See \`config.log' for more details." >&2;}
  2059. { (exit 1); exit 1; }; }
  2060. fi
  2061. rm -f conftest$ac_cv_exeext
  2062. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2063. echo "${ECHO_T}$ac_cv_exeext" >&6
  2064. rm -f conftest.$ac_ext
  2065. EXEEXT=$ac_cv_exeext
  2066. ac_exeext=$EXEEXT
  2067. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2068. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2069. if test "${ac_cv_objext+set}" = set; then
  2070. echo $ECHO_N "(cached) $ECHO_C" >&6
  2071. else
  2072. cat >conftest.$ac_ext <<_ACEOF
  2073. /* confdefs.h. */
  2074. _ACEOF
  2075. cat confdefs.h >>conftest.$ac_ext
  2076. cat >>conftest.$ac_ext <<_ACEOF
  2077. /* end confdefs.h. */
  2078. int
  2079. main ()
  2080. {
  2081. ;
  2082. return 0;
  2083. }
  2084. _ACEOF
  2085. rm -f conftest.o conftest.obj
  2086. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2087. (eval $ac_compile) 2>&5
  2088. ac_status=$?
  2089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2090. (exit $ac_status); }; then
  2091. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2092. case $ac_file in
  2093. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2094. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2095. break;;
  2096. esac
  2097. done
  2098. else
  2099. echo "$as_me: failed program was:" >&5
  2100. sed 's/^/| /' conftest.$ac_ext >&5
  2101. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2102. See \`config.log' for more details." >&5
  2103. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2104. See \`config.log' for more details." >&2;}
  2105. { (exit 1); exit 1; }; }
  2106. fi
  2107. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2108. fi
  2109. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2110. echo "${ECHO_T}$ac_cv_objext" >&6
  2111. OBJEXT=$ac_cv_objext
  2112. ac_objext=$OBJEXT
  2113. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2114. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2115. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2116. echo $ECHO_N "(cached) $ECHO_C" >&6
  2117. else
  2118. cat >conftest.$ac_ext <<_ACEOF
  2119. /* confdefs.h. */
  2120. _ACEOF
  2121. cat confdefs.h >>conftest.$ac_ext
  2122. cat >>conftest.$ac_ext <<_ACEOF
  2123. /* end confdefs.h. */
  2124. int
  2125. main ()
  2126. {
  2127. #ifndef __GNUC__
  2128. choke me
  2129. #endif
  2130. ;
  2131. return 0;
  2132. }
  2133. _ACEOF
  2134. rm -f conftest.$ac_objext
  2135. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2136. (eval $ac_compile) 2>conftest.er1
  2137. ac_status=$?
  2138. grep -v '^ *+' conftest.er1 >conftest.err
  2139. rm -f conftest.er1
  2140. cat conftest.err >&5
  2141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2142. (exit $ac_status); } &&
  2143. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2144. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2145. (eval $ac_try) 2>&5
  2146. ac_status=$?
  2147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2148. (exit $ac_status); }; } &&
  2149. { ac_try='test -s conftest.$ac_objext'
  2150. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2151. (eval $ac_try) 2>&5
  2152. ac_status=$?
  2153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2154. (exit $ac_status); }; }; then
  2155. ac_compiler_gnu=yes
  2156. else
  2157. echo "$as_me: failed program was:" >&5
  2158. sed 's/^/| /' conftest.$ac_ext >&5
  2159. ac_compiler_gnu=no
  2160. fi
  2161. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2162. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2163. fi
  2164. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2165. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2166. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2167. ac_test_CFLAGS=${CFLAGS+set}
  2168. ac_save_CFLAGS=$CFLAGS
  2169. CFLAGS="-g"
  2170. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2171. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2172. if test "${ac_cv_prog_cc_g+set}" = set; then
  2173. echo $ECHO_N "(cached) $ECHO_C" >&6
  2174. else
  2175. cat >conftest.$ac_ext <<_ACEOF
  2176. /* confdefs.h. */
  2177. _ACEOF
  2178. cat confdefs.h >>conftest.$ac_ext
  2179. cat >>conftest.$ac_ext <<_ACEOF
  2180. /* end confdefs.h. */
  2181. int
  2182. main ()
  2183. {
  2184. ;
  2185. return 0;
  2186. }
  2187. _ACEOF
  2188. rm -f conftest.$ac_objext
  2189. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2190. (eval $ac_compile) 2>conftest.er1
  2191. ac_status=$?
  2192. grep -v '^ *+' conftest.er1 >conftest.err
  2193. rm -f conftest.er1
  2194. cat conftest.err >&5
  2195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2196. (exit $ac_status); } &&
  2197. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2198. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2199. (eval $ac_try) 2>&5
  2200. ac_status=$?
  2201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2202. (exit $ac_status); }; } &&
  2203. { ac_try='test -s conftest.$ac_objext'
  2204. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2205. (eval $ac_try) 2>&5
  2206. ac_status=$?
  2207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2208. (exit $ac_status); }; }; then
  2209. ac_cv_prog_cc_g=yes
  2210. else
  2211. echo "$as_me: failed program was:" >&5
  2212. sed 's/^/| /' conftest.$ac_ext >&5
  2213. ac_cv_prog_cc_g=no
  2214. fi
  2215. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2216. fi
  2217. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2218. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2219. if test "$ac_test_CFLAGS" = set; then
  2220. CFLAGS=$ac_save_CFLAGS
  2221. elif test $ac_cv_prog_cc_g = yes; then
  2222. if test "$GCC" = yes; then
  2223. CFLAGS="-g -O2"
  2224. else
  2225. CFLAGS="-g"
  2226. fi
  2227. else
  2228. if test "$GCC" = yes; then
  2229. CFLAGS="-O2"
  2230. else
  2231. CFLAGS=
  2232. fi
  2233. fi
  2234. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2235. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2236. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2237. echo $ECHO_N "(cached) $ECHO_C" >&6
  2238. else
  2239. ac_cv_prog_cc_stdc=no
  2240. ac_save_CC=$CC
  2241. cat >conftest.$ac_ext <<_ACEOF
  2242. /* confdefs.h. */
  2243. _ACEOF
  2244. cat confdefs.h >>conftest.$ac_ext
  2245. cat >>conftest.$ac_ext <<_ACEOF
  2246. /* end confdefs.h. */
  2247. #include <stdarg.h>
  2248. #include <stdio.h>
  2249. #include <sys/types.h>
  2250. #include <sys/stat.h>
  2251. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2252. struct buf { int x; };
  2253. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2254. static char *e (p, i)
  2255. char **p;
  2256. int i;
  2257. {
  2258. return p[i];
  2259. }
  2260. static char *f (char * (*g) (char **, int), char **p, ...)
  2261. {
  2262. char *s;
  2263. va_list v;
  2264. va_start (v,p);
  2265. s = g (p, va_arg (v,int));
  2266. va_end (v);
  2267. return s;
  2268. }
  2269. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2270. function prototypes and stuff, but not '\xHH' hex character constants.
  2271. These don't provoke an error unfortunately, instead are silently treated
  2272. as 'x'. The following induces an error, until -std1 is added to get
  2273. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2274. array size at least. It's necessary to write '\x00'==0 to get something
  2275. that's true only with -std1. */
  2276. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2277. int test (int i, double x);
  2278. struct s1 {int (*f) (int a);};
  2279. struct s2 {int (*f) (double a);};
  2280. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2281. int argc;
  2282. char **argv;
  2283. int
  2284. main ()
  2285. {
  2286. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2287. ;
  2288. return 0;
  2289. }
  2290. _ACEOF
  2291. # Don't try gcc -ansi; that turns off useful extensions and
  2292. # breaks some systems' header files.
  2293. # AIX -qlanglvl=ansi
  2294. # Ultrix and OSF/1 -std1
  2295. # HP-UX 10.20 and later -Ae
  2296. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2297. # SVR4 -Xc -D__EXTENSIONS__
  2298. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2299. do
  2300. CC="$ac_save_CC $ac_arg"
  2301. rm -f conftest.$ac_objext
  2302. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2303. (eval $ac_compile) 2>conftest.er1
  2304. ac_status=$?
  2305. grep -v '^ *+' conftest.er1 >conftest.err
  2306. rm -f conftest.er1
  2307. cat conftest.err >&5
  2308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2309. (exit $ac_status); } &&
  2310. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2311. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2312. (eval $ac_try) 2>&5
  2313. ac_status=$?
  2314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2315. (exit $ac_status); }; } &&
  2316. { ac_try='test -s conftest.$ac_objext'
  2317. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2318. (eval $ac_try) 2>&5
  2319. ac_status=$?
  2320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2321. (exit $ac_status); }; }; then
  2322. ac_cv_prog_cc_stdc=$ac_arg
  2323. break
  2324. else
  2325. echo "$as_me: failed program was:" >&5
  2326. sed 's/^/| /' conftest.$ac_ext >&5
  2327. fi
  2328. rm -f conftest.err conftest.$ac_objext
  2329. done
  2330. rm -f conftest.$ac_ext conftest.$ac_objext
  2331. CC=$ac_save_CC
  2332. fi
  2333. case "x$ac_cv_prog_cc_stdc" in
  2334. x|xno)
  2335. echo "$as_me:$LINENO: result: none needed" >&5
  2336. echo "${ECHO_T}none needed" >&6 ;;
  2337. *)
  2338. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2339. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2340. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2341. esac
  2342. # Some people use a C++ compiler to compile C. Since we use `exit',
  2343. # in C++ we need to declare it. In case someone uses the same compiler
  2344. # for both compiling C and C++ we need to have the C++ compiler decide
  2345. # the declaration of exit, since it's the most demanding environment.
  2346. cat >conftest.$ac_ext <<_ACEOF
  2347. #ifndef __cplusplus
  2348. choke me
  2349. #endif
  2350. _ACEOF
  2351. rm -f conftest.$ac_objext
  2352. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2353. (eval $ac_compile) 2>conftest.er1
  2354. ac_status=$?
  2355. grep -v '^ *+' conftest.er1 >conftest.err
  2356. rm -f conftest.er1
  2357. cat conftest.err >&5
  2358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2359. (exit $ac_status); } &&
  2360. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2361. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2362. (eval $ac_try) 2>&5
  2363. ac_status=$?
  2364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2365. (exit $ac_status); }; } &&
  2366. { ac_try='test -s conftest.$ac_objext'
  2367. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2368. (eval $ac_try) 2>&5
  2369. ac_status=$?
  2370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2371. (exit $ac_status); }; }; then
  2372. for ac_declaration in \
  2373. '' \
  2374. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2375. 'extern "C" void std::exit (int); using std::exit;' \
  2376. 'extern "C" void exit (int) throw ();' \
  2377. 'extern "C" void exit (int);' \
  2378. 'void exit (int);'
  2379. do
  2380. cat >conftest.$ac_ext <<_ACEOF
  2381. /* confdefs.h. */
  2382. _ACEOF
  2383. cat confdefs.h >>conftest.$ac_ext
  2384. cat >>conftest.$ac_ext <<_ACEOF
  2385. /* end confdefs.h. */
  2386. $ac_declaration
  2387. #include <stdlib.h>
  2388. int
  2389. main ()
  2390. {
  2391. exit (42);
  2392. ;
  2393. return 0;
  2394. }
  2395. _ACEOF
  2396. rm -f conftest.$ac_objext
  2397. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2398. (eval $ac_compile) 2>conftest.er1
  2399. ac_status=$?
  2400. grep -v '^ *+' conftest.er1 >conftest.err
  2401. rm -f conftest.er1
  2402. cat conftest.err >&5
  2403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2404. (exit $ac_status); } &&
  2405. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2406. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2407. (eval $ac_try) 2>&5
  2408. ac_status=$?
  2409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2410. (exit $ac_status); }; } &&
  2411. { ac_try='test -s conftest.$ac_objext'
  2412. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2413. (eval $ac_try) 2>&5
  2414. ac_status=$?
  2415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2416. (exit $ac_status); }; }; then
  2417. :
  2418. else
  2419. echo "$as_me: failed program was:" >&5
  2420. sed 's/^/| /' conftest.$ac_ext >&5
  2421. continue
  2422. fi
  2423. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2424. cat >conftest.$ac_ext <<_ACEOF
  2425. /* confdefs.h. */
  2426. _ACEOF
  2427. cat confdefs.h >>conftest.$ac_ext
  2428. cat >>conftest.$ac_ext <<_ACEOF
  2429. /* end confdefs.h. */
  2430. $ac_declaration
  2431. int
  2432. main ()
  2433. {
  2434. exit (42);
  2435. ;
  2436. return 0;
  2437. }
  2438. _ACEOF
  2439. rm -f conftest.$ac_objext
  2440. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2441. (eval $ac_compile) 2>conftest.er1
  2442. ac_status=$?
  2443. grep -v '^ *+' conftest.er1 >conftest.err
  2444. rm -f conftest.er1
  2445. cat conftest.err >&5
  2446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2447. (exit $ac_status); } &&
  2448. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2449. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2450. (eval $ac_try) 2>&5
  2451. ac_status=$?
  2452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2453. (exit $ac_status); }; } &&
  2454. { ac_try='test -s conftest.$ac_objext'
  2455. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2456. (eval $ac_try) 2>&5
  2457. ac_status=$?
  2458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2459. (exit $ac_status); }; }; then
  2460. break
  2461. else
  2462. echo "$as_me: failed program was:" >&5
  2463. sed 's/^/| /' conftest.$ac_ext >&5
  2464. fi
  2465. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2466. done
  2467. rm -f conftest*
  2468. if test -n "$ac_declaration"; then
  2469. echo '#ifdef __cplusplus' >>confdefs.h
  2470. echo $ac_declaration >>confdefs.h
  2471. echo '#endif' >>confdefs.h
  2472. fi
  2473. else
  2474. echo "$as_me: failed program was:" >&5
  2475. sed 's/^/| /' conftest.$ac_ext >&5
  2476. fi
  2477. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2478. ac_ext=c
  2479. ac_cpp='$CPP $CPPFLAGS'
  2480. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2481. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2482. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2483. DEPDIR="${am__leading_dot}deps"
  2484. ac_config_commands="$ac_config_commands depfiles"
  2485. am_make=${MAKE-make}
  2486. cat > confinc << 'END'
  2487. am__doit:
  2488. @echo done
  2489. .PHONY: am__doit
  2490. END
  2491. # If we don't find an include directive, just comment out the code.
  2492. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2493. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2494. am__include="#"
  2495. am__quote=
  2496. _am_result=none
  2497. # First try GNU make style include.
  2498. echo "include confinc" > confmf
  2499. # We grep out `Entering directory' and `Leaving directory'
  2500. # messages which can occur if `w' ends up in MAKEFLAGS.
  2501. # In particular we don't look at `^make:' because GNU make might
  2502. # be invoked under some other name (usually "gmake"), in which
  2503. # case it prints its new name instead of `make'.
  2504. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2505. am__include=include
  2506. am__quote=
  2507. _am_result=GNU
  2508. fi
  2509. # Now try BSD make style include.
  2510. if test "$am__include" = "#"; then
  2511. echo '.include "confinc"' > confmf
  2512. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2513. am__include=.include
  2514. am__quote="\""
  2515. _am_result=BSD
  2516. fi
  2517. fi
  2518. echo "$as_me:$LINENO: result: $_am_result" >&5
  2519. echo "${ECHO_T}$_am_result" >&6
  2520. rm -f confinc confmf
  2521. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2522. if test "${enable_dependency_tracking+set}" = set; then
  2523. enableval="$enable_dependency_tracking"
  2524. fi;
  2525. if test "x$enable_dependency_tracking" != xno; then
  2526. am_depcomp="$ac_aux_dir/depcomp"
  2527. AMDEPBACKSLASH='\'
  2528. fi
  2529. if test "x$enable_dependency_tracking" != xno; then
  2530. AMDEP_TRUE=
  2531. AMDEP_FALSE='#'
  2532. else
  2533. AMDEP_TRUE='#'
  2534. AMDEP_FALSE=
  2535. fi
  2536. depcc="$CC" am_compiler_list=
  2537. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2538. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2539. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  2540. echo $ECHO_N "(cached) $ECHO_C" >&6
  2541. else
  2542. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2543. # We make a subdir and do the tests there. Otherwise we can end up
  2544. # making bogus files that we don't know about and never remove. For
  2545. # instance it was reported that on HP-UX the gcc test will end up
  2546. # making a dummy file named `D' -- because `-MD' means `put the output
  2547. # in D'.
  2548. mkdir conftest.dir
  2549. # Copy depcomp to subdir because otherwise we won't find it if we're
  2550. # using a relative directory.
  2551. cp "$am_depcomp" conftest.dir
  2552. cd conftest.dir
  2553. # We will build objects and dependencies in a subdirectory because
  2554. # it helps to detect inapplicable dependency modes. For instance
  2555. # both Tru64's cc and ICC support -MD to output dependencies as a
  2556. # side effect of compilation, but ICC will put the dependencies in
  2557. # the current directory while Tru64 will put them in the object
  2558. # directory.
  2559. mkdir sub
  2560. am_cv_CC_dependencies_compiler_type=none
  2561. if test "$am_compiler_list" = ""; then
  2562. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2563. fi
  2564. for depmode in $am_compiler_list; do
  2565. # Setup a source with many dependencies, because some compilers
  2566. # like to wrap large dependency lists on column 80 (with \), and
  2567. # we should not choose a depcomp mode which is confused by this.
  2568. #
  2569. # We need to recreate these files for each test, as the compiler may
  2570. # overwrite some of them when testing with obscure command lines.
  2571. # This happens at least with the AIX C compiler.
  2572. : > sub/conftest.c
  2573. for i in 1 2 3 4 5 6; do
  2574. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2575. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2576. # Solaris 8's {/usr,}/bin/sh.
  2577. touch sub/conftst$i.h
  2578. done
  2579. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2580. case $depmode in
  2581. nosideeffect)
  2582. # after this tag, mechanisms are not by side-effect, so they'll
  2583. # only be used when explicitly requested
  2584. if test "x$enable_dependency_tracking" = xyes; then
  2585. continue
  2586. else
  2587. break
  2588. fi
  2589. ;;
  2590. none) break ;;
  2591. esac
  2592. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2593. # mode. It turns out that the SunPro C++ compiler does not properly
  2594. # handle `-M -o', and we need to detect this.
  2595. if depmode=$depmode \
  2596. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2597. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2598. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2599. >/dev/null 2>conftest.err &&
  2600. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2601. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2602. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2603. # icc doesn't choke on unknown options, it will just issue warnings
  2604. # or remarks (even with -Werror). So we grep stderr for any message
  2605. # that says an option was ignored or not supported.
  2606. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2607. # icc: Command line warning: ignoring option '-M'; no argument required
  2608. # The diagnosis changed in icc 8.0:
  2609. # icc: Command line remark: option '-MP' not supported
  2610. if (grep 'ignoring option' conftest.err ||
  2611. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2612. am_cv_CC_dependencies_compiler_type=$depmode
  2613. break
  2614. fi
  2615. fi
  2616. done
  2617. cd ..
  2618. rm -rf conftest.dir
  2619. else
  2620. am_cv_CC_dependencies_compiler_type=none
  2621. fi
  2622. fi
  2623. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  2624. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  2625. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  2626. if
  2627. test "x$enable_dependency_tracking" != xno \
  2628. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  2629. am__fastdepCC_TRUE=
  2630. am__fastdepCC_FALSE='#'
  2631. else
  2632. am__fastdepCC_TRUE='#'
  2633. am__fastdepCC_FALSE=
  2634. fi
  2635. # -- Helper programs --
  2636. for ac_prog in gawk mawk nawk awk
  2637. do
  2638. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2639. set dummy $ac_prog; ac_word=$2
  2640. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2641. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2642. if test "${ac_cv_prog_AWK+set}" = set; then
  2643. echo $ECHO_N "(cached) $ECHO_C" >&6
  2644. else
  2645. if test -n "$AWK"; then
  2646. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2647. else
  2648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2649. for as_dir in $PATH
  2650. do
  2651. IFS=$as_save_IFS
  2652. test -z "$as_dir" && as_dir=.
  2653. for ac_exec_ext in '' $ac_executable_extensions; do
  2654. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2655. ac_cv_prog_AWK="$ac_prog"
  2656. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2657. break 2
  2658. fi
  2659. done
  2660. done
  2661. fi
  2662. fi
  2663. AWK=$ac_cv_prog_AWK
  2664. if test -n "$AWK"; then
  2665. echo "$as_me:$LINENO: result: $AWK" >&5
  2666. echo "${ECHO_T}$AWK" >&6
  2667. else
  2668. echo "$as_me:$LINENO: result: no" >&5
  2669. echo "${ECHO_T}no" >&6
  2670. fi
  2671. test -n "$AWK" && break
  2672. done
  2673. # Find a good install program. We prefer a C program (faster),
  2674. # so one script is as good as another. But avoid the broken or
  2675. # incompatible versions:
  2676. # SysV /etc/install, /usr/sbin/install
  2677. # SunOS /usr/etc/install
  2678. # IRIX /sbin/install
  2679. # AIX /bin/install
  2680. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2681. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2682. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2683. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2684. # OS/2's system install, which has a completely different semantic
  2685. # ./install, which can be erroneously created by make from ./install.sh.
  2686. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2687. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  2688. if test -z "$INSTALL"; then
  2689. if test "${ac_cv_path_install+set}" = set; then
  2690. echo $ECHO_N "(cached) $ECHO_C" >&6
  2691. else
  2692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2693. for as_dir in $PATH
  2694. do
  2695. IFS=$as_save_IFS
  2696. test -z "$as_dir" && as_dir=.
  2697. # Account for people who put trailing slashes in PATH elements.
  2698. case $as_dir/ in
  2699. ./ | .// | /cC/* | \
  2700. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2701. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2702. /usr/ucb/* ) ;;
  2703. *)
  2704. # OSF1 and SCO ODT 3.0 have their own names for install.
  2705. # Don't use installbsd from OSF since it installs stuff as root
  2706. # by default.
  2707. for ac_prog in ginstall scoinst install; do
  2708. for ac_exec_ext in '' $ac_executable_extensions; do
  2709. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2710. if test $ac_prog = install &&
  2711. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2712. # AIX install. It has an incompatible calling convention.
  2713. :
  2714. elif test $ac_prog = install &&
  2715. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2716. # program-specific install script used by HP pwplus--don't use.
  2717. :
  2718. else
  2719. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2720. break 3
  2721. fi
  2722. fi
  2723. done
  2724. done
  2725. ;;
  2726. esac
  2727. done
  2728. fi
  2729. if test "${ac_cv_path_install+set}" = set; then
  2730. INSTALL=$ac_cv_path_install
  2731. else
  2732. # As a last resort, use the slow shell script. We don't cache a
  2733. # path for INSTALL within a source directory, because that will
  2734. # break other packages using the cache if that directory is
  2735. # removed, or if the path is relative.
  2736. INSTALL=$ac_install_sh
  2737. fi
  2738. fi
  2739. echo "$as_me:$LINENO: result: $INSTALL" >&5
  2740. echo "${ECHO_T}$INSTALL" >&6
  2741. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2742. # It thinks the first close brace ends the variable substitution.
  2743. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2744. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2745. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2746. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  2747. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  2748. LN_S=$as_ln_s
  2749. if test "$LN_S" = "ln -s"; then
  2750. echo "$as_me:$LINENO: result: yes" >&5
  2751. echo "${ECHO_T}yes" >&6
  2752. else
  2753. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  2754. echo "${ECHO_T}no, using $LN_S" >&6
  2755. fi
  2756. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2757. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2758. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2759. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2760. echo $ECHO_N "(cached) $ECHO_C" >&6
  2761. else
  2762. cat >conftest.make <<\_ACEOF
  2763. all:
  2764. @echo 'ac_maketemp="$(MAKE)"'
  2765. _ACEOF
  2766. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2767. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2768. if test -n "$ac_maketemp"; then
  2769. eval ac_cv_prog_make_${ac_make}_set=yes
  2770. else
  2771. eval ac_cv_prog_make_${ac_make}_set=no
  2772. fi
  2773. rm -f conftest.make
  2774. fi
  2775. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2776. echo "$as_me:$LINENO: result: yes" >&5
  2777. echo "${ECHO_T}yes" >&6
  2778. SET_MAKE=
  2779. else
  2780. echo "$as_me:$LINENO: result: no" >&5
  2781. echo "${ECHO_T}no" >&6
  2782. SET_MAKE="MAKE=${MAKE-make}"
  2783. fi
  2784. if test -n "$ac_tool_prefix"; then
  2785. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  2786. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  2787. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2788. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2789. if test "${ac_cv_prog_RANLIB+set}" = set; then
  2790. echo $ECHO_N "(cached) $ECHO_C" >&6
  2791. else
  2792. if test -n "$RANLIB"; then
  2793. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2794. else
  2795. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2796. for as_dir in $PATH
  2797. do
  2798. IFS=$as_save_IFS
  2799. test -z "$as_dir" && as_dir=.
  2800. for ac_exec_ext in '' $ac_executable_extensions; do
  2801. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2802. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  2803. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2804. break 2
  2805. fi
  2806. done
  2807. done
  2808. fi
  2809. fi
  2810. RANLIB=$ac_cv_prog_RANLIB
  2811. if test -n "$RANLIB"; then
  2812. echo "$as_me:$LINENO: result: $RANLIB" >&5
  2813. echo "${ECHO_T}$RANLIB" >&6
  2814. else
  2815. echo "$as_me:$LINENO: result: no" >&5
  2816. echo "${ECHO_T}no" >&6
  2817. fi
  2818. fi
  2819. if test -z "$ac_cv_prog_RANLIB"; then
  2820. ac_ct_RANLIB=$RANLIB
  2821. # Extract the first word of "ranlib", so it can be a program name with args.
  2822. set dummy ranlib; ac_word=$2
  2823. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2824. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2825. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  2826. echo $ECHO_N "(cached) $ECHO_C" >&6
  2827. else
  2828. if test -n "$ac_ct_RANLIB"; then
  2829. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  2830. else
  2831. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2832. for as_dir in $PATH
  2833. do
  2834. IFS=$as_save_IFS
  2835. test -z "$as_dir" && as_dir=.
  2836. for ac_exec_ext in '' $ac_executable_extensions; do
  2837. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2838. ac_cv_prog_ac_ct_RANLIB="ranlib"
  2839. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2840. break 2
  2841. fi
  2842. done
  2843. done
  2844. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  2845. fi
  2846. fi
  2847. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  2848. if test -n "$ac_ct_RANLIB"; then
  2849. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  2850. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  2851. else
  2852. echo "$as_me:$LINENO: result: no" >&5
  2853. echo "${ECHO_T}no" >&6
  2854. fi
  2855. RANLIB=$ac_ct_RANLIB
  2856. else
  2857. RANLIB="$ac_cv_prog_RANLIB"
  2858. fi
  2859. # -- Compiler Features --
  2860. echo "$as_me:$LINENO: checking for function prototypes" >&5
  2861. echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
  2862. if test "$ac_cv_prog_cc_stdc" != no; then
  2863. echo "$as_me:$LINENO: result: yes" >&5
  2864. echo "${ECHO_T}yes" >&6
  2865. cat >>confdefs.h <<\_ACEOF
  2866. #define PROTOTYPES 1
  2867. _ACEOF
  2868. cat >>confdefs.h <<\_ACEOF
  2869. #define __PROTOTYPES 1
  2870. _ACEOF
  2871. else
  2872. echo "$as_me:$LINENO: result: no" >&5
  2873. echo "${ECHO_T}no" >&6
  2874. fi
  2875. ac_ext=c
  2876. ac_cpp='$CPP $CPPFLAGS'
  2877. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2878. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2879. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2880. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2881. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2882. # On Suns, sometimes $CPP names a directory.
  2883. if test -n "$CPP" && test -d "$CPP"; then
  2884. CPP=
  2885. fi
  2886. if test -z "$CPP"; then
  2887. if test "${ac_cv_prog_CPP+set}" = set; then
  2888. echo $ECHO_N "(cached) $ECHO_C" >&6
  2889. else
  2890. # Double quotes because CPP needs to be expanded
  2891. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2892. do
  2893. ac_preproc_ok=false
  2894. for ac_c_preproc_warn_flag in '' yes
  2895. do
  2896. # Use a header file that comes with gcc, so configuring glibc
  2897. # with a fresh cross-compiler works.
  2898. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2899. # <limits.h> exists even on freestanding compilers.
  2900. # On the NeXT, cc -E runs the code through the compiler's parser,
  2901. # not just through cpp. "Syntax error" is here to catch this case.
  2902. cat >conftest.$ac_ext <<_ACEOF
  2903. /* confdefs.h. */
  2904. _ACEOF
  2905. cat confdefs.h >>conftest.$ac_ext
  2906. cat >>conftest.$ac_ext <<_ACEOF
  2907. /* end confdefs.h. */
  2908. #ifdef __STDC__
  2909. # include <limits.h>
  2910. #else
  2911. # include <assert.h>
  2912. #endif
  2913. Syntax error
  2914. _ACEOF
  2915. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2916. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2917. ac_status=$?
  2918. grep -v '^ *+' conftest.er1 >conftest.err
  2919. rm -f conftest.er1
  2920. cat conftest.err >&5
  2921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2922. (exit $ac_status); } >/dev/null; then
  2923. if test -s conftest.err; then
  2924. ac_cpp_err=$ac_c_preproc_warn_flag
  2925. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2926. else
  2927. ac_cpp_err=
  2928. fi
  2929. else
  2930. ac_cpp_err=yes
  2931. fi
  2932. if test -z "$ac_cpp_err"; then
  2933. :
  2934. else
  2935. echo "$as_me: failed program was:" >&5
  2936. sed 's/^/| /' conftest.$ac_ext >&5
  2937. # Broken: fails on valid input.
  2938. continue
  2939. fi
  2940. rm -f conftest.err conftest.$ac_ext
  2941. # OK, works on sane cases. Now check whether non-existent headers
  2942. # can be detected and how.
  2943. cat >conftest.$ac_ext <<_ACEOF
  2944. /* confdefs.h. */
  2945. _ACEOF
  2946. cat confdefs.h >>conftest.$ac_ext
  2947. cat >>conftest.$ac_ext <<_ACEOF
  2948. /* end confdefs.h. */
  2949. #include <ac_nonexistent.h>
  2950. _ACEOF
  2951. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2952. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2953. ac_status=$?
  2954. grep -v '^ *+' conftest.er1 >conftest.err
  2955. rm -f conftest.er1
  2956. cat conftest.err >&5
  2957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2958. (exit $ac_status); } >/dev/null; then
  2959. if test -s conftest.err; then
  2960. ac_cpp_err=$ac_c_preproc_warn_flag
  2961. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2962. else
  2963. ac_cpp_err=
  2964. fi
  2965. else
  2966. ac_cpp_err=yes
  2967. fi
  2968. if test -z "$ac_cpp_err"; then
  2969. # Broken: success on invalid input.
  2970. continue
  2971. else
  2972. echo "$as_me: failed program was:" >&5
  2973. sed 's/^/| /' conftest.$ac_ext >&5
  2974. # Passes both tests.
  2975. ac_preproc_ok=:
  2976. break
  2977. fi
  2978. rm -f conftest.err conftest.$ac_ext
  2979. done
  2980. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2981. rm -f conftest.err conftest.$ac_ext
  2982. if $ac_preproc_ok; then
  2983. break
  2984. fi
  2985. done
  2986. ac_cv_prog_CPP=$CPP
  2987. fi
  2988. CPP=$ac_cv_prog_CPP
  2989. else
  2990. ac_cv_prog_CPP=$CPP
  2991. fi
  2992. echo "$as_me:$LINENO: result: $CPP" >&5
  2993. echo "${ECHO_T}$CPP" >&6
  2994. ac_preproc_ok=false
  2995. for ac_c_preproc_warn_flag in '' yes
  2996. do
  2997. # Use a header file that comes with gcc, so configuring glibc
  2998. # with a fresh cross-compiler works.
  2999. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3000. # <limits.h> exists even on freestanding compilers.
  3001. # On the NeXT, cc -E runs the code through the compiler's parser,
  3002. # not just through cpp. "Syntax error" is here to catch this case.
  3003. cat >conftest.$ac_ext <<_ACEOF
  3004. /* confdefs.h. */
  3005. _ACEOF
  3006. cat confdefs.h >>conftest.$ac_ext
  3007. cat >>conftest.$ac_ext <<_ACEOF
  3008. /* end confdefs.h. */
  3009. #ifdef __STDC__
  3010. # include <limits.h>
  3011. #else
  3012. # include <assert.h>
  3013. #endif
  3014. Syntax error
  3015. _ACEOF
  3016. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3017. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3018. ac_status=$?
  3019. grep -v '^ *+' conftest.er1 >conftest.err
  3020. rm -f conftest.er1
  3021. cat conftest.err >&5
  3022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3023. (exit $ac_status); } >/dev/null; then
  3024. if test -s conftest.err; then
  3025. ac_cpp_err=$ac_c_preproc_warn_flag
  3026. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3027. else
  3028. ac_cpp_err=
  3029. fi
  3030. else
  3031. ac_cpp_err=yes
  3032. fi
  3033. if test -z "$ac_cpp_err"; then
  3034. :
  3035. else
  3036. echo "$as_me: failed program was:" >&5
  3037. sed 's/^/| /' conftest.$ac_ext >&5
  3038. # Broken: fails on valid input.
  3039. continue
  3040. fi
  3041. rm -f conftest.err conftest.$ac_ext
  3042. # OK, works on sane cases. Now check whether non-existent headers
  3043. # can be detected and how.
  3044. cat >conftest.$ac_ext <<_ACEOF
  3045. /* confdefs.h. */
  3046. _ACEOF
  3047. cat confdefs.h >>conftest.$ac_ext
  3048. cat >>conftest.$ac_ext <<_ACEOF
  3049. /* end confdefs.h. */
  3050. #include <ac_nonexistent.h>
  3051. _ACEOF
  3052. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3053. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3054. ac_status=$?
  3055. grep -v '^ *+' conftest.er1 >conftest.err
  3056. rm -f conftest.er1
  3057. cat conftest.err >&5
  3058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3059. (exit $ac_status); } >/dev/null; then
  3060. if test -s conftest.err; then
  3061. ac_cpp_err=$ac_c_preproc_warn_flag
  3062. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3063. else
  3064. ac_cpp_err=
  3065. fi
  3066. else
  3067. ac_cpp_err=yes
  3068. fi
  3069. if test -z "$ac_cpp_err"; then
  3070. # Broken: success on invalid input.
  3071. continue
  3072. else
  3073. echo "$as_me: failed program was:" >&5
  3074. sed 's/^/| /' conftest.$ac_ext >&5
  3075. # Passes both tests.
  3076. ac_preproc_ok=:
  3077. break
  3078. fi
  3079. rm -f conftest.err conftest.$ac_ext
  3080. done
  3081. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3082. rm -f conftest.err conftest.$ac_ext
  3083. if $ac_preproc_ok; then
  3084. :
  3085. else
  3086. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3087. See \`config.log' for more details." >&5
  3088. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3089. See \`config.log' for more details." >&2;}
  3090. { (exit 1); exit 1; }; }
  3091. fi
  3092. ac_ext=c
  3093. ac_cpp='$CPP $CPPFLAGS'
  3094. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3095. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3096. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3097. echo "$as_me:$LINENO: checking for egrep" >&5
  3098. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3099. if test "${ac_cv_prog_egrep+set}" = set; then
  3100. echo $ECHO_N "(cached) $ECHO_C" >&6
  3101. else
  3102. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3103. then ac_cv_prog_egrep='grep -E'
  3104. else ac_cv_prog_egrep='egrep'
  3105. fi
  3106. fi
  3107. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3108. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3109. EGREP=$ac_cv_prog_egrep
  3110. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3111. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3112. if test "${ac_cv_header_stdc+set}" = set; then
  3113. echo $ECHO_N "(cached) $ECHO_C" >&6
  3114. else
  3115. cat >conftest.$ac_ext <<_ACEOF
  3116. /* confdefs.h. */
  3117. _ACEOF
  3118. cat confdefs.h >>conftest.$ac_ext
  3119. cat >>conftest.$ac_ext <<_ACEOF
  3120. /* end confdefs.h. */
  3121. #include <stdlib.h>
  3122. #include <stdarg.h>
  3123. #include <string.h>
  3124. #include <float.h>
  3125. int
  3126. main ()
  3127. {
  3128. ;
  3129. return 0;
  3130. }
  3131. _ACEOF
  3132. rm -f conftest.$ac_objext
  3133. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3134. (eval $ac_compile) 2>conftest.er1
  3135. ac_status=$?
  3136. grep -v '^ *+' conftest.er1 >conftest.err
  3137. rm -f conftest.er1
  3138. cat conftest.err >&5
  3139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3140. (exit $ac_status); } &&
  3141. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3142. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3143. (eval $ac_try) 2>&5
  3144. ac_status=$?
  3145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3146. (exit $ac_status); }; } &&
  3147. { ac_try='test -s conftest.$ac_objext'
  3148. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3149. (eval $ac_try) 2>&5
  3150. ac_status=$?
  3151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3152. (exit $ac_status); }; }; then
  3153. ac_cv_header_stdc=yes
  3154. else
  3155. echo "$as_me: failed program was:" >&5
  3156. sed 's/^/| /' conftest.$ac_ext >&5
  3157. ac_cv_header_stdc=no
  3158. fi
  3159. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3160. if test $ac_cv_header_stdc = yes; then
  3161. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3162. cat >conftest.$ac_ext <<_ACEOF
  3163. /* confdefs.h. */
  3164. _ACEOF
  3165. cat confdefs.h >>conftest.$ac_ext
  3166. cat >>conftest.$ac_ext <<_ACEOF
  3167. /* end confdefs.h. */
  3168. #include <string.h>
  3169. _ACEOF
  3170. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3171. $EGREP "memchr" >/dev/null 2>&1; then
  3172. :
  3173. else
  3174. ac_cv_header_stdc=no
  3175. fi
  3176. rm -f conftest*
  3177. fi
  3178. if test $ac_cv_header_stdc = yes; then
  3179. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3180. cat >conftest.$ac_ext <<_ACEOF
  3181. /* confdefs.h. */
  3182. _ACEOF
  3183. cat confdefs.h >>conftest.$ac_ext
  3184. cat >>conftest.$ac_ext <<_ACEOF
  3185. /* end confdefs.h. */
  3186. #include <stdlib.h>
  3187. _ACEOF
  3188. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3189. $EGREP "free" >/dev/null 2>&1; then
  3190. :
  3191. else
  3192. ac_cv_header_stdc=no
  3193. fi
  3194. rm -f conftest*
  3195. fi
  3196. if test $ac_cv_header_stdc = yes; then
  3197. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3198. if test "$cross_compiling" = yes; then
  3199. :
  3200. else
  3201. cat >conftest.$ac_ext <<_ACEOF
  3202. /* confdefs.h. */
  3203. _ACEOF
  3204. cat confdefs.h >>conftest.$ac_ext
  3205. cat >>conftest.$ac_ext <<_ACEOF
  3206. /* end confdefs.h. */
  3207. #include <ctype.h>
  3208. #if ((' ' & 0x0FF) == 0x020)
  3209. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3210. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3211. #else
  3212. # define ISLOWER(c) \
  3213. (('a' <= (c) && (c) <= 'i') \
  3214. || ('j' <= (c) && (c) <= 'r') \
  3215. || ('s' <= (c) && (c) <= 'z'))
  3216. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3217. #endif
  3218. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3219. int
  3220. main ()
  3221. {
  3222. int i;
  3223. for (i = 0; i < 256; i++)
  3224. if (XOR (islower (i), ISLOWER (i))
  3225. || toupper (i) != TOUPPER (i))
  3226. exit(2);
  3227. exit (0);
  3228. }
  3229. _ACEOF
  3230. rm -f conftest$ac_exeext
  3231. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3232. (eval $ac_link) 2>&5
  3233. ac_status=$?
  3234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3235. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3236. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3237. (eval $ac_try) 2>&5
  3238. ac_status=$?
  3239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3240. (exit $ac_status); }; }; then
  3241. :
  3242. else
  3243. echo "$as_me: program exited with status $ac_status" >&5
  3244. echo "$as_me: failed program was:" >&5
  3245. sed 's/^/| /' conftest.$ac_ext >&5
  3246. ( exit $ac_status )
  3247. ac_cv_header_stdc=no
  3248. fi
  3249. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3250. fi
  3251. fi
  3252. fi
  3253. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3254. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3255. if test $ac_cv_header_stdc = yes; then
  3256. cat >>confdefs.h <<\_ACEOF
  3257. #define STDC_HEADERS 1
  3258. _ACEOF
  3259. fi
  3260. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3261. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3262. inttypes.h stdint.h unistd.h
  3263. do
  3264. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3265. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3266. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3267. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3268. echo $ECHO_N "(cached) $ECHO_C" >&6
  3269. else
  3270. cat >conftest.$ac_ext <<_ACEOF
  3271. /* confdefs.h. */
  3272. _ACEOF
  3273. cat confdefs.h >>conftest.$ac_ext
  3274. cat >>conftest.$ac_ext <<_ACEOF
  3275. /* end confdefs.h. */
  3276. $ac_includes_default
  3277. #include <$ac_header>
  3278. _ACEOF
  3279. rm -f conftest.$ac_objext
  3280. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3281. (eval $ac_compile) 2>conftest.er1
  3282. ac_status=$?
  3283. grep -v '^ *+' conftest.er1 >conftest.err
  3284. rm -f conftest.er1
  3285. cat conftest.err >&5
  3286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3287. (exit $ac_status); } &&
  3288. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3289. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3290. (eval $ac_try) 2>&5
  3291. ac_status=$?
  3292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3293. (exit $ac_status); }; } &&
  3294. { ac_try='test -s conftest.$ac_objext'
  3295. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3296. (eval $ac_try) 2>&5
  3297. ac_status=$?
  3298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3299. (exit $ac_status); }; }; then
  3300. eval "$as_ac_Header=yes"
  3301. else
  3302. echo "$as_me: failed program was:" >&5
  3303. sed 's/^/| /' conftest.$ac_ext >&5
  3304. eval "$as_ac_Header=no"
  3305. fi
  3306. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3307. fi
  3308. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3309. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3310. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3311. cat >>confdefs.h <<_ACEOF
  3312. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3313. _ACEOF
  3314. fi
  3315. done
  3316. if test "$ac_cv_prog_cc_stdc" != no; then
  3317. U= ANSI2KNR=
  3318. else
  3319. U=_ ANSI2KNR=./ansi2knr
  3320. fi
  3321. # Ensure some checks needed by ansi2knr itself.
  3322. for ac_header in string.h
  3323. do
  3324. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3325. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3326. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3327. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3328. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3329. echo $ECHO_N "(cached) $ECHO_C" >&6
  3330. fi
  3331. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3332. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3333. else
  3334. # Is the header compilable?
  3335. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3336. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3337. cat >conftest.$ac_ext <<_ACEOF
  3338. /* confdefs.h. */
  3339. _ACEOF
  3340. cat confdefs.h >>conftest.$ac_ext
  3341. cat >>conftest.$ac_ext <<_ACEOF
  3342. /* end confdefs.h. */
  3343. $ac_includes_default
  3344. #include <$ac_header>
  3345. _ACEOF
  3346. rm -f conftest.$ac_objext
  3347. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3348. (eval $ac_compile) 2>conftest.er1
  3349. ac_status=$?
  3350. grep -v '^ *+' conftest.er1 >conftest.err
  3351. rm -f conftest.er1
  3352. cat conftest.err >&5
  3353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3354. (exit $ac_status); } &&
  3355. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3356. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3357. (eval $ac_try) 2>&5
  3358. ac_status=$?
  3359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3360. (exit $ac_status); }; } &&
  3361. { ac_try='test -s conftest.$ac_objext'
  3362. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3363. (eval $ac_try) 2>&5
  3364. ac_status=$?
  3365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3366. (exit $ac_status); }; }; then
  3367. ac_header_compiler=yes
  3368. else
  3369. echo "$as_me: failed program was:" >&5
  3370. sed 's/^/| /' conftest.$ac_ext >&5
  3371. ac_header_compiler=no
  3372. fi
  3373. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3374. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3375. echo "${ECHO_T}$ac_header_compiler" >&6
  3376. # Is the header present?
  3377. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3378. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  3379. cat >conftest.$ac_ext <<_ACEOF
  3380. /* confdefs.h. */
  3381. _ACEOF
  3382. cat confdefs.h >>conftest.$ac_ext
  3383. cat >>conftest.$ac_ext <<_ACEOF
  3384. /* end confdefs.h. */
  3385. #include <$ac_header>
  3386. _ACEOF
  3387. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3388. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3389. ac_status=$?
  3390. grep -v '^ *+' conftest.er1 >conftest.err
  3391. rm -f conftest.er1
  3392. cat conftest.err >&5
  3393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3394. (exit $ac_status); } >/dev/null; then
  3395. if test -s conftest.err; then
  3396. ac_cpp_err=$ac_c_preproc_warn_flag
  3397. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3398. else
  3399. ac_cpp_err=
  3400. fi
  3401. else
  3402. ac_cpp_err=yes
  3403. fi
  3404. if test -z "$ac_cpp_err"; then
  3405. ac_header_preproc=yes
  3406. else
  3407. echo "$as_me: failed program was:" >&5
  3408. sed 's/^/| /' conftest.$ac_ext >&5
  3409. ac_header_preproc=no
  3410. fi
  3411. rm -f conftest.err conftest.$ac_ext
  3412. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3413. echo "${ECHO_T}$ac_header_preproc" >&6
  3414. # So? What about this header?
  3415. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3416. yes:no: )
  3417. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3418. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3419. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  3420. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  3421. ac_header_preproc=yes
  3422. ;;
  3423. no:yes:* )
  3424. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3425. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3426. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3427. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3428. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  3429. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  3430. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  3431. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  3432. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3433. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3434. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  3435. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  3436. (
  3437. cat <<\_ASBOX
  3438. ## --------------------------------- ##
  3439. ## Report this to the ngircd lists. ##
  3440. ## --------------------------------- ##
  3441. _ASBOX
  3442. ) |
  3443. sed "s/^/$as_me: WARNING: /" >&2
  3444. ;;
  3445. esac
  3446. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3447. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3448. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3449. echo $ECHO_N "(cached) $ECHO_C" >&6
  3450. else
  3451. eval "$as_ac_Header=\$ac_header_preproc"
  3452. fi
  3453. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3454. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3455. fi
  3456. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3457. cat >>confdefs.h <<_ACEOF
  3458. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3459. _ACEOF
  3460. fi
  3461. done
  3462. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  3463. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  3464. if test "${ac_cv_c_const+set}" = set; then
  3465. echo $ECHO_N "(cached) $ECHO_C" >&6
  3466. else
  3467. cat >conftest.$ac_ext <<_ACEOF
  3468. /* confdefs.h. */
  3469. _ACEOF
  3470. cat confdefs.h >>conftest.$ac_ext
  3471. cat >>conftest.$ac_ext <<_ACEOF
  3472. /* end confdefs.h. */
  3473. int
  3474. main ()
  3475. {
  3476. /* FIXME: Include the comments suggested by Paul. */
  3477. #ifndef __cplusplus
  3478. /* Ultrix mips cc rejects this. */
  3479. typedef int charset[2];
  3480. const charset x;
  3481. /* SunOS 4.1.1 cc rejects this. */
  3482. char const *const *ccp;
  3483. char **p;
  3484. /* NEC SVR4.0.2 mips cc rejects this. */
  3485. struct point {int x, y;};
  3486. static struct point const zero = {0,0};
  3487. /* AIX XL C 1.02.0.0 rejects this.
  3488. It does not let you subtract one const X* pointer from another in
  3489. an arm of an if-expression whose if-part is not a constant
  3490. expression */
  3491. const char *g = "string";
  3492. ccp = &g + (g ? g-g : 0);
  3493. /* HPUX 7.0 cc rejects these. */
  3494. ++ccp;
  3495. p = (char**) ccp;
  3496. ccp = (char const *const *) p;
  3497. { /* SCO 3.2v4 cc rejects this. */
  3498. char *t;
  3499. char const *s = 0 ? (char *) 0 : (char const *) 0;
  3500. *t++ = 0;
  3501. }
  3502. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  3503. int x[] = {25, 17};
  3504. const int *foo = &x[0];
  3505. ++foo;
  3506. }
  3507. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3508. typedef const int *iptr;
  3509. iptr p = 0;
  3510. ++p;
  3511. }
  3512. { /* AIX XL C 1.02.0.0 rejects this saying
  3513. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3514. struct s { int j; const int *ap[3]; };
  3515. struct s *b; b->j = 5;
  3516. }
  3517. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3518. const int foo = 10;
  3519. }
  3520. #endif
  3521. ;
  3522. return 0;
  3523. }
  3524. _ACEOF
  3525. rm -f conftest.$ac_objext
  3526. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3527. (eval $ac_compile) 2>conftest.er1
  3528. ac_status=$?
  3529. grep -v '^ *+' conftest.er1 >conftest.err
  3530. rm -f conftest.er1
  3531. cat conftest.err >&5
  3532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3533. (exit $ac_status); } &&
  3534. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3535. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3536. (eval $ac_try) 2>&5
  3537. ac_status=$?
  3538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3539. (exit $ac_status); }; } &&
  3540. { ac_try='test -s conftest.$ac_objext'
  3541. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3542. (eval $ac_try) 2>&5
  3543. ac_status=$?
  3544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3545. (exit $ac_status); }; }; then
  3546. ac_cv_c_const=yes
  3547. else
  3548. echo "$as_me: failed program was:" >&5
  3549. sed 's/^/| /' conftest.$ac_ext >&5
  3550. ac_cv_c_const=no
  3551. fi
  3552. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3553. fi
  3554. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  3555. echo "${ECHO_T}$ac_cv_c_const" >&6
  3556. if test $ac_cv_c_const = no; then
  3557. cat >>confdefs.h <<\_ACEOF
  3558. #define const
  3559. _ACEOF
  3560. fi
  3561. echo "$as_me:$LINENO: checking for inline" >&5
  3562. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  3563. if test "${ac_cv_c_inline+set}" = set; then
  3564. echo $ECHO_N "(cached) $ECHO_C" >&6
  3565. else
  3566. ac_cv_c_inline=no
  3567. for ac_kw in inline __inline__ __inline; do
  3568. cat >conftest.$ac_ext <<_ACEOF
  3569. /* confdefs.h. */
  3570. _ACEOF
  3571. cat confdefs.h >>conftest.$ac_ext
  3572. cat >>conftest.$ac_ext <<_ACEOF
  3573. /* end confdefs.h. */
  3574. #ifndef __cplusplus
  3575. typedef int foo_t;
  3576. static $ac_kw foo_t static_foo () {return 0; }
  3577. $ac_kw foo_t foo () {return 0; }
  3578. #endif
  3579. _ACEOF
  3580. rm -f conftest.$ac_objext
  3581. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3582. (eval $ac_compile) 2>conftest.er1
  3583. ac_status=$?
  3584. grep -v '^ *+' conftest.er1 >conftest.err
  3585. rm -f conftest.er1
  3586. cat conftest.err >&5
  3587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3588. (exit $ac_status); } &&
  3589. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3590. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3591. (eval $ac_try) 2>&5
  3592. ac_status=$?
  3593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3594. (exit $ac_status); }; } &&
  3595. { ac_try='test -s conftest.$ac_objext'
  3596. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3597. (eval $ac_try) 2>&5
  3598. ac_status=$?
  3599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3600. (exit $ac_status); }; }; then
  3601. ac_cv_c_inline=$ac_kw; break
  3602. else
  3603. echo "$as_me: failed program was:" >&5
  3604. sed 's/^/| /' conftest.$ac_ext >&5
  3605. fi
  3606. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3607. done
  3608. fi
  3609. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  3610. echo "${ECHO_T}$ac_cv_c_inline" >&6
  3611. case $ac_cv_c_inline in
  3612. inline | yes) ;;
  3613. *)
  3614. case $ac_cv_c_inline in
  3615. no) ac_val=;;
  3616. *) ac_val=$ac_cv_c_inline;;
  3617. esac
  3618. cat >>confdefs.h <<_ACEOF
  3619. #ifndef __cplusplus
  3620. #define inline $ac_val
  3621. #endif
  3622. _ACEOF
  3623. ;;
  3624. esac
  3625. # -- Hard coded system and compiler dependencies/features/options ... --
  3626. if test "$GCC" = "yes"; then
  3627. # We are using the GNU C compiler. Good!
  3628. CFLAGS="$CFLAGS -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes"
  3629. ssp_cc=yes
  3630. # we use -fstack-protector-all for the test to enfoce the use of the guard variable
  3631. echo "$as_me:$LINENO: checking whether ${CC} accepts -fstack-protector" >&5
  3632. echo $ECHO_N "checking whether ${CC} accepts -fstack-protector... $ECHO_C" >&6
  3633. ssp_old_cflags="$CFLAGS"
  3634. CFLAGS="$CFLAGS -fstack-protector-all"
  3635. cat >conftest.$ac_ext <<_ACEOF
  3636. /* confdefs.h. */
  3637. _ACEOF
  3638. cat confdefs.h >>conftest.$ac_ext
  3639. cat >>conftest.$ac_ext <<_ACEOF
  3640. /* end confdefs.h. */
  3641. int
  3642. main ()
  3643. {
  3644. ;
  3645. return 0;
  3646. }
  3647. _ACEOF
  3648. rm -f conftest.$ac_objext conftest$ac_exeext
  3649. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3650. (eval $ac_link) 2>conftest.er1
  3651. ac_status=$?
  3652. grep -v '^ *+' conftest.er1 >conftest.err
  3653. rm -f conftest.er1
  3654. cat conftest.err >&5
  3655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3656. (exit $ac_status); } &&
  3657. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3658. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3659. (eval $ac_try) 2>&5
  3660. ac_status=$?
  3661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3662. (exit $ac_status); }; } &&
  3663. { ac_try='test -s conftest$ac_exeext'
  3664. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3665. (eval $ac_try) 2>&5
  3666. ac_status=$?
  3667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3668. (exit $ac_status); }; }; then
  3669. :
  3670. else
  3671. echo "$as_me: failed program was:" >&5
  3672. sed 's/^/| /' conftest.$ac_ext >&5
  3673. ssp_cc=no
  3674. fi
  3675. rm -f conftest.err conftest.$ac_objext \
  3676. conftest$ac_exeext conftest.$ac_ext
  3677. echo $ssp_cc
  3678. CFLAGS="$ssp_old_cflags"
  3679. if test "X$ssp_cc" = "Xyes"; then
  3680. CFLAGS="$CFLAGS -fstack-protector"
  3681. cat >>confdefs.h <<\_ACEOF
  3682. #define ENABLE_SSP_CC 1
  3683. _ACEOF
  3684. fi
  3685. fi
  3686. case "$target_os" in
  3687. hpux*)
  3688. # This is HP/UX, we need to define _XOPEN_SOURCE_EXTENDED
  3689. # (tested with HP/UX 11.11)
  3690. CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
  3691. ;;
  3692. esac
  3693. # Add additional CFLAGS, eventually specified on the command line:
  3694. test -n "$CFLAGS_ADD" && CFLAGS="$CFLAGS $CFLAGS_ADD"
  3695. CFLAGS="$CFLAGS -DSYSCONFDIR='\"\$(sysconfdir)\"'"
  3696. # -- Headers --
  3697. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3698. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3699. if test "${ac_cv_header_stdc+set}" = set; then
  3700. echo $ECHO_N "(cached) $ECHO_C" >&6
  3701. else
  3702. cat >conftest.$ac_ext <<_ACEOF
  3703. /* confdefs.h. */
  3704. _ACEOF
  3705. cat confdefs.h >>conftest.$ac_ext
  3706. cat >>conftest.$ac_ext <<_ACEOF
  3707. /* end confdefs.h. */
  3708. #include <stdlib.h>
  3709. #include <stdarg.h>
  3710. #include <string.h>
  3711. #include <float.h>
  3712. int
  3713. main ()
  3714. {
  3715. ;
  3716. return 0;
  3717. }
  3718. _ACEOF
  3719. rm -f conftest.$ac_objext
  3720. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3721. (eval $ac_compile) 2>conftest.er1
  3722. ac_status=$?
  3723. grep -v '^ *+' conftest.er1 >conftest.err
  3724. rm -f conftest.er1
  3725. cat conftest.err >&5
  3726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3727. (exit $ac_status); } &&
  3728. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3729. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3730. (eval $ac_try) 2>&5
  3731. ac_status=$?
  3732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3733. (exit $ac_status); }; } &&
  3734. { ac_try='test -s conftest.$ac_objext'
  3735. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3736. (eval $ac_try) 2>&5
  3737. ac_status=$?
  3738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3739. (exit $ac_status); }; }; then
  3740. ac_cv_header_stdc=yes
  3741. else
  3742. echo "$as_me: failed program was:" >&5
  3743. sed 's/^/| /' conftest.$ac_ext >&5
  3744. ac_cv_header_stdc=no
  3745. fi
  3746. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3747. if test $ac_cv_header_stdc = yes; then
  3748. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3749. cat >conftest.$ac_ext <<_ACEOF
  3750. /* confdefs.h. */
  3751. _ACEOF
  3752. cat confdefs.h >>conftest.$ac_ext
  3753. cat >>conftest.$ac_ext <<_ACEOF
  3754. /* end confdefs.h. */
  3755. #include <string.h>
  3756. _ACEOF
  3757. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3758. $EGREP "memchr" >/dev/null 2>&1; then
  3759. :
  3760. else
  3761. ac_cv_header_stdc=no
  3762. fi
  3763. rm -f conftest*
  3764. fi
  3765. if test $ac_cv_header_stdc = yes; then
  3766. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3767. cat >conftest.$ac_ext <<_ACEOF
  3768. /* confdefs.h. */
  3769. _ACEOF
  3770. cat confdefs.h >>conftest.$ac_ext
  3771. cat >>conftest.$ac_ext <<_ACEOF
  3772. /* end confdefs.h. */
  3773. #include <stdlib.h>
  3774. _ACEOF
  3775. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3776. $EGREP "free" >/dev/null 2>&1; then
  3777. :
  3778. else
  3779. ac_cv_header_stdc=no
  3780. fi
  3781. rm -f conftest*
  3782. fi
  3783. if test $ac_cv_header_stdc = yes; then
  3784. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3785. if test "$cross_compiling" = yes; then
  3786. :
  3787. else
  3788. cat >conftest.$ac_ext <<_ACEOF
  3789. /* confdefs.h. */
  3790. _ACEOF
  3791. cat confdefs.h >>conftest.$ac_ext
  3792. cat >>conftest.$ac_ext <<_ACEOF
  3793. /* end confdefs.h. */
  3794. #include <ctype.h>
  3795. #if ((' ' & 0x0FF) == 0x020)
  3796. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3797. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3798. #else
  3799. # define ISLOWER(c) \
  3800. (('a' <= (c) && (c) <= 'i') \
  3801. || ('j' <= (c) && (c) <= 'r') \
  3802. || ('s' <= (c) && (c) <= 'z'))
  3803. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3804. #endif
  3805. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3806. int
  3807. main ()
  3808. {
  3809. int i;
  3810. for (i = 0; i < 256; i++)
  3811. if (XOR (islower (i), ISLOWER (i))
  3812. || toupper (i) != TOUPPER (i))
  3813. exit(2);
  3814. exit (0);
  3815. }
  3816. _ACEOF
  3817. rm -f conftest$ac_exeext
  3818. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3819. (eval $ac_link) 2>&5
  3820. ac_status=$?
  3821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3822. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3823. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3824. (eval $ac_try) 2>&5
  3825. ac_status=$?
  3826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3827. (exit $ac_status); }; }; then
  3828. :
  3829. else
  3830. echo "$as_me: program exited with status $ac_status" >&5
  3831. echo "$as_me: failed program was:" >&5
  3832. sed 's/^/| /' conftest.$ac_ext >&5
  3833. ( exit $ac_status )
  3834. ac_cv_header_stdc=no
  3835. fi
  3836. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3837. fi
  3838. fi
  3839. fi
  3840. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3841. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3842. if test $ac_cv_header_stdc = yes; then
  3843. cat >>confdefs.h <<\_ACEOF
  3844. #define STDC_HEADERS 1
  3845. _ACEOF
  3846. fi
  3847. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  3848. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  3849. if test "${ac_cv_header_time+set}" = set; then
  3850. echo $ECHO_N "(cached) $ECHO_C" >&6
  3851. else
  3852. cat >conftest.$ac_ext <<_ACEOF
  3853. /* confdefs.h. */
  3854. _ACEOF
  3855. cat confdefs.h >>conftest.$ac_ext
  3856. cat >>conftest.$ac_ext <<_ACEOF
  3857. /* end confdefs.h. */
  3858. #include <sys/types.h>
  3859. #include <sys/time.h>
  3860. #include <time.h>
  3861. int
  3862. main ()
  3863. {
  3864. if ((struct tm *) 0)
  3865. return 0;
  3866. ;
  3867. return 0;
  3868. }
  3869. _ACEOF
  3870. rm -f conftest.$ac_objext
  3871. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3872. (eval $ac_compile) 2>conftest.er1
  3873. ac_status=$?
  3874. grep -v '^ *+' conftest.er1 >conftest.err
  3875. rm -f conftest.er1
  3876. cat conftest.err >&5
  3877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3878. (exit $ac_status); } &&
  3879. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3880. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3881. (eval $ac_try) 2>&5
  3882. ac_status=$?
  3883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3884. (exit $ac_status); }; } &&
  3885. { ac_try='test -s conftest.$ac_objext'
  3886. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3887. (eval $ac_try) 2>&5
  3888. ac_status=$?
  3889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3890. (exit $ac_status); }; }; then
  3891. ac_cv_header_time=yes
  3892. else
  3893. echo "$as_me: failed program was:" >&5
  3894. sed 's/^/| /' conftest.$ac_ext >&5
  3895. ac_cv_header_time=no
  3896. fi
  3897. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3898. fi
  3899. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  3900. echo "${ECHO_T}$ac_cv_header_time" >&6
  3901. if test $ac_cv_header_time = yes; then
  3902. cat >>confdefs.h <<\_ACEOF
  3903. #define TIME_WITH_SYS_TIME 1
  3904. _ACEOF
  3905. fi
  3906. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  3907. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  3908. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  3909. echo $ECHO_N "(cached) $ECHO_C" >&6
  3910. else
  3911. cat >conftest.$ac_ext <<_ACEOF
  3912. /* confdefs.h. */
  3913. _ACEOF
  3914. cat confdefs.h >>conftest.$ac_ext
  3915. cat >>conftest.$ac_ext <<_ACEOF
  3916. /* end confdefs.h. */
  3917. #include <sys/types.h>
  3918. #include <sys/wait.h>
  3919. #ifndef WEXITSTATUS
  3920. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  3921. #endif
  3922. #ifndef WIFEXITED
  3923. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  3924. #endif
  3925. int
  3926. main ()
  3927. {
  3928. int s;
  3929. wait (&s);
  3930. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  3931. ;
  3932. return 0;
  3933. }
  3934. _ACEOF
  3935. rm -f conftest.$ac_objext
  3936. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3937. (eval $ac_compile) 2>conftest.er1
  3938. ac_status=$?
  3939. grep -v '^ *+' conftest.er1 >conftest.err
  3940. rm -f conftest.er1
  3941. cat conftest.err >&5
  3942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3943. (exit $ac_status); } &&
  3944. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3945. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3946. (eval $ac_try) 2>&5
  3947. ac_status=$?
  3948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3949. (exit $ac_status); }; } &&
  3950. { ac_try='test -s conftest.$ac_objext'
  3951. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3952. (eval $ac_try) 2>&5
  3953. ac_status=$?
  3954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3955. (exit $ac_status); }; }; then
  3956. ac_cv_header_sys_wait_h=yes
  3957. else
  3958. echo "$as_me: failed program was:" >&5
  3959. sed 's/^/| /' conftest.$ac_ext >&5
  3960. ac_cv_header_sys_wait_h=no
  3961. fi
  3962. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3963. fi
  3964. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  3965. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  3966. if test $ac_cv_header_sys_wait_h = yes; then
  3967. cat >>confdefs.h <<\_ACEOF
  3968. #define HAVE_SYS_WAIT_H 1
  3969. _ACEOF
  3970. fi
  3971. for ac_header in \
  3972. ctype.h errno.h fcntl.h netdb.h netinet/in.h stdlib.h string.h \
  3973. strings.h sys/socket.h sys/time.h unistd.h \
  3974. do
  3975. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3976. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3977. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3978. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3979. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3980. echo $ECHO_N "(cached) $ECHO_C" >&6
  3981. fi
  3982. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3983. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3984. else
  3985. # Is the header compilable?
  3986. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3987. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3988. cat >conftest.$ac_ext <<_ACEOF
  3989. /* confdefs.h. */
  3990. _ACEOF
  3991. cat confdefs.h >>conftest.$ac_ext
  3992. cat >>conftest.$ac_ext <<_ACEOF
  3993. /* end confdefs.h. */
  3994. $ac_includes_default
  3995. #include <$ac_header>
  3996. _ACEOF
  3997. rm -f conftest.$ac_objext
  3998. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3999. (eval $ac_compile) 2>conftest.er1
  4000. ac_status=$?
  4001. grep -v '^ *+' conftest.er1 >conftest.err
  4002. rm -f conftest.er1
  4003. cat conftest.err >&5
  4004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4005. (exit $ac_status); } &&
  4006. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4007. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4008. (eval $ac_try) 2>&5
  4009. ac_status=$?
  4010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4011. (exit $ac_status); }; } &&
  4012. { ac_try='test -s conftest.$ac_objext'
  4013. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4014. (eval $ac_try) 2>&5
  4015. ac_status=$?
  4016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4017. (exit $ac_status); }; }; then
  4018. ac_header_compiler=yes
  4019. else
  4020. echo "$as_me: failed program was:" >&5
  4021. sed 's/^/| /' conftest.$ac_ext >&5
  4022. ac_header_compiler=no
  4023. fi
  4024. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4025. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4026. echo "${ECHO_T}$ac_header_compiler" >&6
  4027. # Is the header present?
  4028. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4029. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4030. cat >conftest.$ac_ext <<_ACEOF
  4031. /* confdefs.h. */
  4032. _ACEOF
  4033. cat confdefs.h >>conftest.$ac_ext
  4034. cat >>conftest.$ac_ext <<_ACEOF
  4035. /* end confdefs.h. */
  4036. #include <$ac_header>
  4037. _ACEOF
  4038. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4039. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4040. ac_status=$?
  4041. grep -v '^ *+' conftest.er1 >conftest.err
  4042. rm -f conftest.er1
  4043. cat conftest.err >&5
  4044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4045. (exit $ac_status); } >/dev/null; then
  4046. if test -s conftest.err; then
  4047. ac_cpp_err=$ac_c_preproc_warn_flag
  4048. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4049. else
  4050. ac_cpp_err=
  4051. fi
  4052. else
  4053. ac_cpp_err=yes
  4054. fi
  4055. if test -z "$ac_cpp_err"; then
  4056. ac_header_preproc=yes
  4057. else
  4058. echo "$as_me: failed program was:" >&5
  4059. sed 's/^/| /' conftest.$ac_ext >&5
  4060. ac_header_preproc=no
  4061. fi
  4062. rm -f conftest.err conftest.$ac_ext
  4063. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4064. echo "${ECHO_T}$ac_header_preproc" >&6
  4065. # So? What about this header?
  4066. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4067. yes:no: )
  4068. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4069. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4070. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4071. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4072. ac_header_preproc=yes
  4073. ;;
  4074. no:yes:* )
  4075. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4076. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4077. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4078. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4079. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4080. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4081. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4082. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4083. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4084. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4085. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4086. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4087. (
  4088. cat <<\_ASBOX
  4089. ## --------------------------------- ##
  4090. ## Report this to the ngircd lists. ##
  4091. ## --------------------------------- ##
  4092. _ASBOX
  4093. ) |
  4094. sed "s/^/$as_me: WARNING: /" >&2
  4095. ;;
  4096. esac
  4097. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4098. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4099. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4100. echo $ECHO_N "(cached) $ECHO_C" >&6
  4101. else
  4102. eval "$as_ac_Header=\$ac_header_preproc"
  4103. fi
  4104. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4105. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4106. fi
  4107. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4108. cat >>confdefs.h <<_ACEOF
  4109. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4110. _ACEOF
  4111. else
  4112. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  4113. echo "$as_me: error: required C header missing!" >&2;}
  4114. { (exit 1); exit 1; }; }
  4115. fi
  4116. done
  4117. for ac_header in arpa/inet.h ctype.h malloc.h stdbool.h stddef.h varargs.h
  4118. do
  4119. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4120. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4121. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4122. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4123. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4124. echo $ECHO_N "(cached) $ECHO_C" >&6
  4125. fi
  4126. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4127. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4128. else
  4129. # Is the header compilable?
  4130. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4131. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4132. cat >conftest.$ac_ext <<_ACEOF
  4133. /* confdefs.h. */
  4134. _ACEOF
  4135. cat confdefs.h >>conftest.$ac_ext
  4136. cat >>conftest.$ac_ext <<_ACEOF
  4137. /* end confdefs.h. */
  4138. $ac_includes_default
  4139. #include <$ac_header>
  4140. _ACEOF
  4141. rm -f conftest.$ac_objext
  4142. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4143. (eval $ac_compile) 2>conftest.er1
  4144. ac_status=$?
  4145. grep -v '^ *+' conftest.er1 >conftest.err
  4146. rm -f conftest.er1
  4147. cat conftest.err >&5
  4148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4149. (exit $ac_status); } &&
  4150. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4151. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4152. (eval $ac_try) 2>&5
  4153. ac_status=$?
  4154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4155. (exit $ac_status); }; } &&
  4156. { ac_try='test -s conftest.$ac_objext'
  4157. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4158. (eval $ac_try) 2>&5
  4159. ac_status=$?
  4160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4161. (exit $ac_status); }; }; then
  4162. ac_header_compiler=yes
  4163. else
  4164. echo "$as_me: failed program was:" >&5
  4165. sed 's/^/| /' conftest.$ac_ext >&5
  4166. ac_header_compiler=no
  4167. fi
  4168. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4169. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4170. echo "${ECHO_T}$ac_header_compiler" >&6
  4171. # Is the header present?
  4172. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4173. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4174. cat >conftest.$ac_ext <<_ACEOF
  4175. /* confdefs.h. */
  4176. _ACEOF
  4177. cat confdefs.h >>conftest.$ac_ext
  4178. cat >>conftest.$ac_ext <<_ACEOF
  4179. /* end confdefs.h. */
  4180. #include <$ac_header>
  4181. _ACEOF
  4182. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4183. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4184. ac_status=$?
  4185. grep -v '^ *+' conftest.er1 >conftest.err
  4186. rm -f conftest.er1
  4187. cat conftest.err >&5
  4188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4189. (exit $ac_status); } >/dev/null; then
  4190. if test -s conftest.err; then
  4191. ac_cpp_err=$ac_c_preproc_warn_flag
  4192. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4193. else
  4194. ac_cpp_err=
  4195. fi
  4196. else
  4197. ac_cpp_err=yes
  4198. fi
  4199. if test -z "$ac_cpp_err"; then
  4200. ac_header_preproc=yes
  4201. else
  4202. echo "$as_me: failed program was:" >&5
  4203. sed 's/^/| /' conftest.$ac_ext >&5
  4204. ac_header_preproc=no
  4205. fi
  4206. rm -f conftest.err conftest.$ac_ext
  4207. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4208. echo "${ECHO_T}$ac_header_preproc" >&6
  4209. # So? What about this header?
  4210. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4211. yes:no: )
  4212. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4213. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4214. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4215. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4216. ac_header_preproc=yes
  4217. ;;
  4218. no:yes:* )
  4219. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4220. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4221. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4222. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4223. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4224. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4225. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4226. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4227. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4228. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4229. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4230. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4231. (
  4232. cat <<\_ASBOX
  4233. ## --------------------------------- ##
  4234. ## Report this to the ngircd lists. ##
  4235. ## --------------------------------- ##
  4236. _ASBOX
  4237. ) |
  4238. sed "s/^/$as_me: WARNING: /" >&2
  4239. ;;
  4240. esac
  4241. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4242. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4243. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4244. echo $ECHO_N "(cached) $ECHO_C" >&6
  4245. else
  4246. eval "$as_ac_Header=\$ac_header_preproc"
  4247. fi
  4248. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4249. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4250. fi
  4251. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4252. cat >>confdefs.h <<_ACEOF
  4253. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4254. _ACEOF
  4255. fi
  4256. done
  4257. # -- Datatypes --
  4258. echo "$as_me:$LINENO: checking whether socklen_t exists" >&5
  4259. echo $ECHO_N "checking whether socklen_t exists... $ECHO_C" >&6
  4260. cat >conftest.$ac_ext <<_ACEOF
  4261. /* confdefs.h. */
  4262. _ACEOF
  4263. cat confdefs.h >>conftest.$ac_ext
  4264. cat >>conftest.$ac_ext <<_ACEOF
  4265. /* end confdefs.h. */
  4266. #include <sys/types.h>
  4267. #include <sys/socket.h>
  4268. int
  4269. main ()
  4270. {
  4271. socklen_t a, b;
  4272. a = 2; b = 4; a += b;
  4273. ;
  4274. return 0;
  4275. }
  4276. _ACEOF
  4277. rm -f conftest.$ac_objext
  4278. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4279. (eval $ac_compile) 2>conftest.er1
  4280. ac_status=$?
  4281. grep -v '^ *+' conftest.er1 >conftest.err
  4282. rm -f conftest.er1
  4283. cat conftest.err >&5
  4284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4285. (exit $ac_status); } &&
  4286. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4287. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4288. (eval $ac_try) 2>&5
  4289. ac_status=$?
  4290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4291. (exit $ac_status); }; } &&
  4292. { ac_try='test -s conftest.$ac_objext'
  4293. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4294. (eval $ac_try) 2>&5
  4295. ac_status=$?
  4296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4297. (exit $ac_status); }; }; then
  4298. cat >>confdefs.h <<\_ACEOF
  4299. #define HAVE_socklen_t 1
  4300. _ACEOF
  4301. echo "$as_me:$LINENO: result: yes" >&5
  4302. echo "${ECHO_T}yes" >&6
  4303. else
  4304. echo "$as_me: failed program was:" >&5
  4305. sed 's/^/| /' conftest.$ac_ext >&5
  4306. echo "$as_me:$LINENO: result: no" >&5
  4307. echo "${ECHO_T}no" >&6
  4308. fi
  4309. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4310. echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  4311. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  4312. if test "${ac_cv_type_signal+set}" = set; then
  4313. echo $ECHO_N "(cached) $ECHO_C" >&6
  4314. else
  4315. cat >conftest.$ac_ext <<_ACEOF
  4316. /* confdefs.h. */
  4317. _ACEOF
  4318. cat confdefs.h >>conftest.$ac_ext
  4319. cat >>conftest.$ac_ext <<_ACEOF
  4320. /* end confdefs.h. */
  4321. #include <sys/types.h>
  4322. #include <signal.h>
  4323. #ifdef signal
  4324. # undef signal
  4325. #endif
  4326. #ifdef __cplusplus
  4327. extern "C" void (*signal (int, void (*)(int)))(int);
  4328. #else
  4329. void (*signal ()) ();
  4330. #endif
  4331. int
  4332. main ()
  4333. {
  4334. int i;
  4335. ;
  4336. return 0;
  4337. }
  4338. _ACEOF
  4339. rm -f conftest.$ac_objext
  4340. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4341. (eval $ac_compile) 2>conftest.er1
  4342. ac_status=$?
  4343. grep -v '^ *+' conftest.er1 >conftest.err
  4344. rm -f conftest.er1
  4345. cat conftest.err >&5
  4346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4347. (exit $ac_status); } &&
  4348. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4349. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4350. (eval $ac_try) 2>&5
  4351. ac_status=$?
  4352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4353. (exit $ac_status); }; } &&
  4354. { ac_try='test -s conftest.$ac_objext'
  4355. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4356. (eval $ac_try) 2>&5
  4357. ac_status=$?
  4358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4359. (exit $ac_status); }; }; then
  4360. ac_cv_type_signal=void
  4361. else
  4362. echo "$as_me: failed program was:" >&5
  4363. sed 's/^/| /' conftest.$ac_ext >&5
  4364. ac_cv_type_signal=int
  4365. fi
  4366. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4367. fi
  4368. echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  4369. echo "${ECHO_T}$ac_cv_type_signal" >&6
  4370. cat >>confdefs.h <<_ACEOF
  4371. #define RETSIGTYPE $ac_cv_type_signal
  4372. _ACEOF
  4373. echo "$as_me:$LINENO: checking for size_t" >&5
  4374. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  4375. if test "${ac_cv_type_size_t+set}" = set; then
  4376. echo $ECHO_N "(cached) $ECHO_C" >&6
  4377. else
  4378. cat >conftest.$ac_ext <<_ACEOF
  4379. /* confdefs.h. */
  4380. _ACEOF
  4381. cat confdefs.h >>conftest.$ac_ext
  4382. cat >>conftest.$ac_ext <<_ACEOF
  4383. /* end confdefs.h. */
  4384. $ac_includes_default
  4385. int
  4386. main ()
  4387. {
  4388. if ((size_t *) 0)
  4389. return 0;
  4390. if (sizeof (size_t))
  4391. return 0;
  4392. ;
  4393. return 0;
  4394. }
  4395. _ACEOF
  4396. rm -f conftest.$ac_objext
  4397. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4398. (eval $ac_compile) 2>conftest.er1
  4399. ac_status=$?
  4400. grep -v '^ *+' conftest.er1 >conftest.err
  4401. rm -f conftest.er1
  4402. cat conftest.err >&5
  4403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4404. (exit $ac_status); } &&
  4405. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4406. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4407. (eval $ac_try) 2>&5
  4408. ac_status=$?
  4409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4410. (exit $ac_status); }; } &&
  4411. { ac_try='test -s conftest.$ac_objext'
  4412. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4413. (eval $ac_try) 2>&5
  4414. ac_status=$?
  4415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4416. (exit $ac_status); }; }; then
  4417. ac_cv_type_size_t=yes
  4418. else
  4419. echo "$as_me: failed program was:" >&5
  4420. sed 's/^/| /' conftest.$ac_ext >&5
  4421. ac_cv_type_size_t=no
  4422. fi
  4423. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4424. fi
  4425. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  4426. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  4427. if test $ac_cv_type_size_t = yes; then
  4428. :
  4429. else
  4430. cat >>confdefs.h <<_ACEOF
  4431. #define size_t unsigned
  4432. _ACEOF
  4433. fi
  4434. # -- Libraries --
  4435. echo "$as_me:$LINENO: checking for memmove in -lUTIL" >&5
  4436. echo $ECHO_N "checking for memmove in -lUTIL... $ECHO_C" >&6
  4437. if test "${ac_cv_lib_UTIL_memmove+set}" = set; then
  4438. echo $ECHO_N "(cached) $ECHO_C" >&6
  4439. else
  4440. ac_check_lib_save_LIBS=$LIBS
  4441. LIBS="-lUTIL $LIBS"
  4442. cat >conftest.$ac_ext <<_ACEOF
  4443. /* confdefs.h. */
  4444. _ACEOF
  4445. cat confdefs.h >>conftest.$ac_ext
  4446. cat >>conftest.$ac_ext <<_ACEOF
  4447. /* end confdefs.h. */
  4448. /* Override any gcc2 internal prototype to avoid an error. */
  4449. #ifdef __cplusplus
  4450. extern "C"
  4451. #endif
  4452. /* We use char because int might match the return type of a gcc2
  4453. builtin and then its argument prototype would still apply. */
  4454. char memmove ();
  4455. int
  4456. main ()
  4457. {
  4458. memmove ();
  4459. ;
  4460. return 0;
  4461. }
  4462. _ACEOF
  4463. rm -f conftest.$ac_objext conftest$ac_exeext
  4464. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4465. (eval $ac_link) 2>conftest.er1
  4466. ac_status=$?
  4467. grep -v '^ *+' conftest.er1 >conftest.err
  4468. rm -f conftest.er1
  4469. cat conftest.err >&5
  4470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4471. (exit $ac_status); } &&
  4472. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4473. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4474. (eval $ac_try) 2>&5
  4475. ac_status=$?
  4476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4477. (exit $ac_status); }; } &&
  4478. { ac_try='test -s conftest$ac_exeext'
  4479. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4480. (eval $ac_try) 2>&5
  4481. ac_status=$?
  4482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4483. (exit $ac_status); }; }; then
  4484. ac_cv_lib_UTIL_memmove=yes
  4485. else
  4486. echo "$as_me: failed program was:" >&5
  4487. sed 's/^/| /' conftest.$ac_ext >&5
  4488. ac_cv_lib_UTIL_memmove=no
  4489. fi
  4490. rm -f conftest.err conftest.$ac_objext \
  4491. conftest$ac_exeext conftest.$ac_ext
  4492. LIBS=$ac_check_lib_save_LIBS
  4493. fi
  4494. echo "$as_me:$LINENO: result: $ac_cv_lib_UTIL_memmove" >&5
  4495. echo "${ECHO_T}$ac_cv_lib_UTIL_memmove" >&6
  4496. if test $ac_cv_lib_UTIL_memmove = yes; then
  4497. cat >>confdefs.h <<_ACEOF
  4498. #define HAVE_LIBUTIL 1
  4499. _ACEOF
  4500. LIBS="-lUTIL $LIBS"
  4501. fi
  4502. echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
  4503. echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
  4504. if test "${ac_cv_lib_socket_bind+set}" = set; then
  4505. echo $ECHO_N "(cached) $ECHO_C" >&6
  4506. else
  4507. ac_check_lib_save_LIBS=$LIBS
  4508. LIBS="-lsocket $LIBS"
  4509. cat >conftest.$ac_ext <<_ACEOF
  4510. /* confdefs.h. */
  4511. _ACEOF
  4512. cat confdefs.h >>conftest.$ac_ext
  4513. cat >>conftest.$ac_ext <<_ACEOF
  4514. /* end confdefs.h. */
  4515. /* Override any gcc2 internal prototype to avoid an error. */
  4516. #ifdef __cplusplus
  4517. extern "C"
  4518. #endif
  4519. /* We use char because int might match the return type of a gcc2
  4520. builtin and then its argument prototype would still apply. */
  4521. char bind ();
  4522. int
  4523. main ()
  4524. {
  4525. bind ();
  4526. ;
  4527. return 0;
  4528. }
  4529. _ACEOF
  4530. rm -f conftest.$ac_objext conftest$ac_exeext
  4531. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4532. (eval $ac_link) 2>conftest.er1
  4533. ac_status=$?
  4534. grep -v '^ *+' conftest.er1 >conftest.err
  4535. rm -f conftest.er1
  4536. cat conftest.err >&5
  4537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4538. (exit $ac_status); } &&
  4539. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4540. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4541. (eval $ac_try) 2>&5
  4542. ac_status=$?
  4543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4544. (exit $ac_status); }; } &&
  4545. { ac_try='test -s conftest$ac_exeext'
  4546. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4547. (eval $ac_try) 2>&5
  4548. ac_status=$?
  4549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4550. (exit $ac_status); }; }; then
  4551. ac_cv_lib_socket_bind=yes
  4552. else
  4553. echo "$as_me: failed program was:" >&5
  4554. sed 's/^/| /' conftest.$ac_ext >&5
  4555. ac_cv_lib_socket_bind=no
  4556. fi
  4557. rm -f conftest.err conftest.$ac_objext \
  4558. conftest$ac_exeext conftest.$ac_ext
  4559. LIBS=$ac_check_lib_save_LIBS
  4560. fi
  4561. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
  4562. echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
  4563. if test $ac_cv_lib_socket_bind = yes; then
  4564. cat >>confdefs.h <<_ACEOF
  4565. #define HAVE_LIBSOCKET 1
  4566. _ACEOF
  4567. LIBS="-lsocket $LIBS"
  4568. fi
  4569. echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
  4570. echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
  4571. if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
  4572. echo $ECHO_N "(cached) $ECHO_C" >&6
  4573. else
  4574. ac_check_lib_save_LIBS=$LIBS
  4575. LIBS="-lnsl $LIBS"
  4576. cat >conftest.$ac_ext <<_ACEOF
  4577. /* confdefs.h. */
  4578. _ACEOF
  4579. cat confdefs.h >>conftest.$ac_ext
  4580. cat >>conftest.$ac_ext <<_ACEOF
  4581. /* end confdefs.h. */
  4582. /* Override any gcc2 internal prototype to avoid an error. */
  4583. #ifdef __cplusplus
  4584. extern "C"
  4585. #endif
  4586. /* We use char because int might match the return type of a gcc2
  4587. builtin and then its argument prototype would still apply. */
  4588. char gethostent ();
  4589. int
  4590. main ()
  4591. {
  4592. gethostent ();
  4593. ;
  4594. return 0;
  4595. }
  4596. _ACEOF
  4597. rm -f conftest.$ac_objext conftest$ac_exeext
  4598. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4599. (eval $ac_link) 2>conftest.er1
  4600. ac_status=$?
  4601. grep -v '^ *+' conftest.er1 >conftest.err
  4602. rm -f conftest.er1
  4603. cat conftest.err >&5
  4604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4605. (exit $ac_status); } &&
  4606. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4607. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4608. (eval $ac_try) 2>&5
  4609. ac_status=$?
  4610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4611. (exit $ac_status); }; } &&
  4612. { ac_try='test -s conftest$ac_exeext'
  4613. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4614. (eval $ac_try) 2>&5
  4615. ac_status=$?
  4616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4617. (exit $ac_status); }; }; then
  4618. ac_cv_lib_nsl_gethostent=yes
  4619. else
  4620. echo "$as_me: failed program was:" >&5
  4621. sed 's/^/| /' conftest.$ac_ext >&5
  4622. ac_cv_lib_nsl_gethostent=no
  4623. fi
  4624. rm -f conftest.err conftest.$ac_objext \
  4625. conftest$ac_exeext conftest.$ac_ext
  4626. LIBS=$ac_check_lib_save_LIBS
  4627. fi
  4628. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
  4629. echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
  4630. if test $ac_cv_lib_nsl_gethostent = yes; then
  4631. cat >>confdefs.h <<_ACEOF
  4632. #define HAVE_LIBNSL 1
  4633. _ACEOF
  4634. LIBS="-lnsl $LIBS"
  4635. fi
  4636. # -- Functions --
  4637. echo "$as_me:$LINENO: checking for pid_t" >&5
  4638. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  4639. if test "${ac_cv_type_pid_t+set}" = set; then
  4640. echo $ECHO_N "(cached) $ECHO_C" >&6
  4641. else
  4642. cat >conftest.$ac_ext <<_ACEOF
  4643. /* confdefs.h. */
  4644. _ACEOF
  4645. cat confdefs.h >>conftest.$ac_ext
  4646. cat >>conftest.$ac_ext <<_ACEOF
  4647. /* end confdefs.h. */
  4648. $ac_includes_default
  4649. int
  4650. main ()
  4651. {
  4652. if ((pid_t *) 0)
  4653. return 0;
  4654. if (sizeof (pid_t))
  4655. return 0;
  4656. ;
  4657. return 0;
  4658. }
  4659. _ACEOF
  4660. rm -f conftest.$ac_objext
  4661. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4662. (eval $ac_compile) 2>conftest.er1
  4663. ac_status=$?
  4664. grep -v '^ *+' conftest.er1 >conftest.err
  4665. rm -f conftest.er1
  4666. cat conftest.err >&5
  4667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4668. (exit $ac_status); } &&
  4669. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4670. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4671. (eval $ac_try) 2>&5
  4672. ac_status=$?
  4673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4674. (exit $ac_status); }; } &&
  4675. { ac_try='test -s conftest.$ac_objext'
  4676. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4677. (eval $ac_try) 2>&5
  4678. ac_status=$?
  4679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4680. (exit $ac_status); }; }; then
  4681. ac_cv_type_pid_t=yes
  4682. else
  4683. echo "$as_me: failed program was:" >&5
  4684. sed 's/^/| /' conftest.$ac_ext >&5
  4685. ac_cv_type_pid_t=no
  4686. fi
  4687. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4688. fi
  4689. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  4690. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  4691. if test $ac_cv_type_pid_t = yes; then
  4692. :
  4693. else
  4694. cat >>confdefs.h <<_ACEOF
  4695. #define pid_t int
  4696. _ACEOF
  4697. fi
  4698. for ac_header in unistd.h vfork.h
  4699. do
  4700. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4701. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4702. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4703. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4704. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4705. echo $ECHO_N "(cached) $ECHO_C" >&6
  4706. fi
  4707. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4708. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4709. else
  4710. # Is the header compilable?
  4711. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4712. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4713. cat >conftest.$ac_ext <<_ACEOF
  4714. /* confdefs.h. */
  4715. _ACEOF
  4716. cat confdefs.h >>conftest.$ac_ext
  4717. cat >>conftest.$ac_ext <<_ACEOF
  4718. /* end confdefs.h. */
  4719. $ac_includes_default
  4720. #include <$ac_header>
  4721. _ACEOF
  4722. rm -f conftest.$ac_objext
  4723. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4724. (eval $ac_compile) 2>conftest.er1
  4725. ac_status=$?
  4726. grep -v '^ *+' conftest.er1 >conftest.err
  4727. rm -f conftest.er1
  4728. cat conftest.err >&5
  4729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4730. (exit $ac_status); } &&
  4731. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4732. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4733. (eval $ac_try) 2>&5
  4734. ac_status=$?
  4735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4736. (exit $ac_status); }; } &&
  4737. { ac_try='test -s conftest.$ac_objext'
  4738. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4739. (eval $ac_try) 2>&5
  4740. ac_status=$?
  4741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4742. (exit $ac_status); }; }; then
  4743. ac_header_compiler=yes
  4744. else
  4745. echo "$as_me: failed program was:" >&5
  4746. sed 's/^/| /' conftest.$ac_ext >&5
  4747. ac_header_compiler=no
  4748. fi
  4749. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4750. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4751. echo "${ECHO_T}$ac_header_compiler" >&6
  4752. # Is the header present?
  4753. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4754. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4755. cat >conftest.$ac_ext <<_ACEOF
  4756. /* confdefs.h. */
  4757. _ACEOF
  4758. cat confdefs.h >>conftest.$ac_ext
  4759. cat >>conftest.$ac_ext <<_ACEOF
  4760. /* end confdefs.h. */
  4761. #include <$ac_header>
  4762. _ACEOF
  4763. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4764. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4765. ac_status=$?
  4766. grep -v '^ *+' conftest.er1 >conftest.err
  4767. rm -f conftest.er1
  4768. cat conftest.err >&5
  4769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4770. (exit $ac_status); } >/dev/null; then
  4771. if test -s conftest.err; then
  4772. ac_cpp_err=$ac_c_preproc_warn_flag
  4773. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4774. else
  4775. ac_cpp_err=
  4776. fi
  4777. else
  4778. ac_cpp_err=yes
  4779. fi
  4780. if test -z "$ac_cpp_err"; then
  4781. ac_header_preproc=yes
  4782. else
  4783. echo "$as_me: failed program was:" >&5
  4784. sed 's/^/| /' conftest.$ac_ext >&5
  4785. ac_header_preproc=no
  4786. fi
  4787. rm -f conftest.err conftest.$ac_ext
  4788. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4789. echo "${ECHO_T}$ac_header_preproc" >&6
  4790. # So? What about this header?
  4791. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4792. yes:no: )
  4793. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4794. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4795. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4796. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4797. ac_header_preproc=yes
  4798. ;;
  4799. no:yes:* )
  4800. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4801. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4802. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4803. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4804. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4805. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4806. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4807. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4808. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4809. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4810. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4811. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4812. (
  4813. cat <<\_ASBOX
  4814. ## --------------------------------- ##
  4815. ## Report this to the ngircd lists. ##
  4816. ## --------------------------------- ##
  4817. _ASBOX
  4818. ) |
  4819. sed "s/^/$as_me: WARNING: /" >&2
  4820. ;;
  4821. esac
  4822. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4823. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4824. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4825. echo $ECHO_N "(cached) $ECHO_C" >&6
  4826. else
  4827. eval "$as_ac_Header=\$ac_header_preproc"
  4828. fi
  4829. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4830. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4831. fi
  4832. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4833. cat >>confdefs.h <<_ACEOF
  4834. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4835. _ACEOF
  4836. fi
  4837. done
  4838. for ac_func in fork vfork
  4839. do
  4840. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4841. echo "$as_me:$LINENO: checking for $ac_func" >&5
  4842. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4843. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4844. echo $ECHO_N "(cached) $ECHO_C" >&6
  4845. else
  4846. cat >conftest.$ac_ext <<_ACEOF
  4847. /* confdefs.h. */
  4848. _ACEOF
  4849. cat confdefs.h >>conftest.$ac_ext
  4850. cat >>conftest.$ac_ext <<_ACEOF
  4851. /* end confdefs.h. */
  4852. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4853. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4854. #define $ac_func innocuous_$ac_func
  4855. /* System header to define __stub macros and hopefully few prototypes,
  4856. which can conflict with char $ac_func (); below.
  4857. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4858. <limits.h> exists even on freestanding compilers. */
  4859. #ifdef __STDC__
  4860. # include <limits.h>
  4861. #else
  4862. # include <assert.h>
  4863. #endif
  4864. #undef $ac_func
  4865. /* Override any gcc2 internal prototype to avoid an error. */
  4866. #ifdef __cplusplus
  4867. extern "C"
  4868. {
  4869. #endif
  4870. /* We use char because int might match the return type of a gcc2
  4871. builtin and then its argument prototype would still apply. */
  4872. char $ac_func ();
  4873. /* The GNU C library defines this for functions which it implements
  4874. to always fail with ENOSYS. Some functions are actually named
  4875. something starting with __ and the normal name is an alias. */
  4876. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4877. choke me
  4878. #else
  4879. char (*f) () = $ac_func;
  4880. #endif
  4881. #ifdef __cplusplus
  4882. }
  4883. #endif
  4884. int
  4885. main ()
  4886. {
  4887. return f != $ac_func;
  4888. ;
  4889. return 0;
  4890. }
  4891. _ACEOF
  4892. rm -f conftest.$ac_objext conftest$ac_exeext
  4893. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4894. (eval $ac_link) 2>conftest.er1
  4895. ac_status=$?
  4896. grep -v '^ *+' conftest.er1 >conftest.err
  4897. rm -f conftest.er1
  4898. cat conftest.err >&5
  4899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4900. (exit $ac_status); } &&
  4901. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4902. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4903. (eval $ac_try) 2>&5
  4904. ac_status=$?
  4905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4906. (exit $ac_status); }; } &&
  4907. { ac_try='test -s conftest$ac_exeext'
  4908. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4909. (eval $ac_try) 2>&5
  4910. ac_status=$?
  4911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4912. (exit $ac_status); }; }; then
  4913. eval "$as_ac_var=yes"
  4914. else
  4915. echo "$as_me: failed program was:" >&5
  4916. sed 's/^/| /' conftest.$ac_ext >&5
  4917. eval "$as_ac_var=no"
  4918. fi
  4919. rm -f conftest.err conftest.$ac_objext \
  4920. conftest$ac_exeext conftest.$ac_ext
  4921. fi
  4922. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  4923. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4924. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4925. cat >>confdefs.h <<_ACEOF
  4926. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4927. _ACEOF
  4928. fi
  4929. done
  4930. if test "x$ac_cv_func_fork" = xyes; then
  4931. echo "$as_me:$LINENO: checking for working fork" >&5
  4932. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  4933. if test "${ac_cv_func_fork_works+set}" = set; then
  4934. echo $ECHO_N "(cached) $ECHO_C" >&6
  4935. else
  4936. if test "$cross_compiling" = yes; then
  4937. ac_cv_func_fork_works=cross
  4938. else
  4939. cat >conftest.$ac_ext <<_ACEOF
  4940. /* By Ruediger Kuhlmann. */
  4941. #include <sys/types.h>
  4942. #if HAVE_UNISTD_H
  4943. # include <unistd.h>
  4944. #endif
  4945. /* Some systems only have a dummy stub for fork() */
  4946. int main ()
  4947. {
  4948. if (fork() < 0)
  4949. exit (1);
  4950. exit (0);
  4951. }
  4952. _ACEOF
  4953. rm -f conftest$ac_exeext
  4954. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4955. (eval $ac_link) 2>&5
  4956. ac_status=$?
  4957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4958. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4959. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4960. (eval $ac_try) 2>&5
  4961. ac_status=$?
  4962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4963. (exit $ac_status); }; }; then
  4964. ac_cv_func_fork_works=yes
  4965. else
  4966. echo "$as_me: program exited with status $ac_status" >&5
  4967. echo "$as_me: failed program was:" >&5
  4968. sed 's/^/| /' conftest.$ac_ext >&5
  4969. ( exit $ac_status )
  4970. ac_cv_func_fork_works=no
  4971. fi
  4972. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4973. fi
  4974. fi
  4975. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  4976. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  4977. else
  4978. ac_cv_func_fork_works=$ac_cv_func_fork
  4979. fi
  4980. if test "x$ac_cv_func_fork_works" = xcross; then
  4981. case $host in
  4982. *-*-amigaos* | *-*-msdosdjgpp*)
  4983. # Override, as these systems have only a dummy fork() stub
  4984. ac_cv_func_fork_works=no
  4985. ;;
  4986. *)
  4987. ac_cv_func_fork_works=yes
  4988. ;;
  4989. esac
  4990. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  4991. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  4992. fi
  4993. ac_cv_func_vfork_works=$ac_cv_func_vfork
  4994. if test "x$ac_cv_func_vfork" = xyes; then
  4995. echo "$as_me:$LINENO: checking for working vfork" >&5
  4996. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  4997. if test "${ac_cv_func_vfork_works+set}" = set; then
  4998. echo $ECHO_N "(cached) $ECHO_C" >&6
  4999. else
  5000. if test "$cross_compiling" = yes; then
  5001. ac_cv_func_vfork_works=cross
  5002. else
  5003. cat >conftest.$ac_ext <<_ACEOF
  5004. /* confdefs.h. */
  5005. _ACEOF
  5006. cat confdefs.h >>conftest.$ac_ext
  5007. cat >>conftest.$ac_ext <<_ACEOF
  5008. /* end confdefs.h. */
  5009. /* Thanks to Paul Eggert for this test. */
  5010. #include <stdio.h>
  5011. #include <stdlib.h>
  5012. #include <sys/types.h>
  5013. #include <sys/stat.h>
  5014. #include <sys/wait.h>
  5015. #if HAVE_UNISTD_H
  5016. # include <unistd.h>
  5017. #endif
  5018. #if HAVE_VFORK_H
  5019. # include <vfork.h>
  5020. #endif
  5021. /* On some sparc systems, changes by the child to local and incoming
  5022. argument registers are propagated back to the parent. The compiler
  5023. is told about this with #include <vfork.h>, but some compilers
  5024. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  5025. static variable whose address is put into a register that is
  5026. clobbered by the vfork. */
  5027. static void
  5028. #ifdef __cplusplus
  5029. sparc_address_test (int arg)
  5030. # else
  5031. sparc_address_test (arg) int arg;
  5032. #endif
  5033. {
  5034. static pid_t child;
  5035. if (!child) {
  5036. child = vfork ();
  5037. if (child < 0) {
  5038. perror ("vfork");
  5039. _exit(2);
  5040. }
  5041. if (!child) {
  5042. arg = getpid();
  5043. write(-1, "", 0);
  5044. _exit (arg);
  5045. }
  5046. }
  5047. }
  5048. int
  5049. main ()
  5050. {
  5051. pid_t parent = getpid ();
  5052. pid_t child;
  5053. sparc_address_test (0);
  5054. child = vfork ();
  5055. if (child == 0) {
  5056. /* Here is another test for sparc vfork register problems. This
  5057. test uses lots of local variables, at least as many local
  5058. variables as main has allocated so far including compiler
  5059. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  5060. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  5061. reuse the register of parent for one of the local variables,
  5062. since it will think that parent can't possibly be used any more
  5063. in this routine. Assigning to the local variable will thus
  5064. munge parent in the parent process. */
  5065. pid_t
  5066. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  5067. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  5068. /* Convince the compiler that p..p7 are live; otherwise, it might
  5069. use the same hardware register for all 8 local variables. */
  5070. if (p != p1 || p != p2 || p != p3 || p != p4
  5071. || p != p5 || p != p6 || p != p7)
  5072. _exit(1);
  5073. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  5074. from child file descriptors. If the child closes a descriptor
  5075. before it execs or exits, this munges the parent's descriptor
  5076. as well. Test for this by closing stdout in the child. */
  5077. _exit(close(fileno(stdout)) != 0);
  5078. } else {
  5079. int status;
  5080. struct stat st;
  5081. while (wait(&status) != child)
  5082. ;
  5083. exit(
  5084. /* Was there some problem with vforking? */
  5085. child < 0
  5086. /* Did the child fail? (This shouldn't happen.) */
  5087. || status
  5088. /* Did the vfork/compiler bug occur? */
  5089. || parent != getpid()
  5090. /* Did the file descriptor bug occur? */
  5091. || fstat(fileno(stdout), &st) != 0
  5092. );
  5093. }
  5094. }
  5095. _ACEOF
  5096. rm -f conftest$ac_exeext
  5097. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5098. (eval $ac_link) 2>&5
  5099. ac_status=$?
  5100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5101. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5102. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5103. (eval $ac_try) 2>&5
  5104. ac_status=$?
  5105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5106. (exit $ac_status); }; }; then
  5107. ac_cv_func_vfork_works=yes
  5108. else
  5109. echo "$as_me: program exited with status $ac_status" >&5
  5110. echo "$as_me: failed program was:" >&5
  5111. sed 's/^/| /' conftest.$ac_ext >&5
  5112. ( exit $ac_status )
  5113. ac_cv_func_vfork_works=no
  5114. fi
  5115. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5116. fi
  5117. fi
  5118. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  5119. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  5120. fi;
  5121. if test "x$ac_cv_func_fork_works" = xcross; then
  5122. ac_cv_func_vfork_works=$ac_cv_func_vfork
  5123. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  5124. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  5125. fi
  5126. if test "x$ac_cv_func_vfork_works" = xyes; then
  5127. cat >>confdefs.h <<\_ACEOF
  5128. #define HAVE_WORKING_VFORK 1
  5129. _ACEOF
  5130. else
  5131. cat >>confdefs.h <<\_ACEOF
  5132. #define vfork fork
  5133. _ACEOF
  5134. fi
  5135. if test "x$ac_cv_func_fork_works" = xyes; then
  5136. cat >>confdefs.h <<\_ACEOF
  5137. #define HAVE_WORKING_FORK 1
  5138. _ACEOF
  5139. fi
  5140. for ac_func in strftime
  5141. do
  5142. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5143. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5144. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5145. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5146. echo $ECHO_N "(cached) $ECHO_C" >&6
  5147. else
  5148. cat >conftest.$ac_ext <<_ACEOF
  5149. /* confdefs.h. */
  5150. _ACEOF
  5151. cat confdefs.h >>conftest.$ac_ext
  5152. cat >>conftest.$ac_ext <<_ACEOF
  5153. /* end confdefs.h. */
  5154. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5155. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5156. #define $ac_func innocuous_$ac_func
  5157. /* System header to define __stub macros and hopefully few prototypes,
  5158. which can conflict with char $ac_func (); below.
  5159. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5160. <limits.h> exists even on freestanding compilers. */
  5161. #ifdef __STDC__
  5162. # include <limits.h>
  5163. #else
  5164. # include <assert.h>
  5165. #endif
  5166. #undef $ac_func
  5167. /* Override any gcc2 internal prototype to avoid an error. */
  5168. #ifdef __cplusplus
  5169. extern "C"
  5170. {
  5171. #endif
  5172. /* We use char because int might match the return type of a gcc2
  5173. builtin and then its argument prototype would still apply. */
  5174. char $ac_func ();
  5175. /* The GNU C library defines this for functions which it implements
  5176. to always fail with ENOSYS. Some functions are actually named
  5177. something starting with __ and the normal name is an alias. */
  5178. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5179. choke me
  5180. #else
  5181. char (*f) () = $ac_func;
  5182. #endif
  5183. #ifdef __cplusplus
  5184. }
  5185. #endif
  5186. int
  5187. main ()
  5188. {
  5189. return f != $ac_func;
  5190. ;
  5191. return 0;
  5192. }
  5193. _ACEOF
  5194. rm -f conftest.$ac_objext conftest$ac_exeext
  5195. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5196. (eval $ac_link) 2>conftest.er1
  5197. ac_status=$?
  5198. grep -v '^ *+' conftest.er1 >conftest.err
  5199. rm -f conftest.er1
  5200. cat conftest.err >&5
  5201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5202. (exit $ac_status); } &&
  5203. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5204. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5205. (eval $ac_try) 2>&5
  5206. ac_status=$?
  5207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5208. (exit $ac_status); }; } &&
  5209. { ac_try='test -s conftest$ac_exeext'
  5210. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5211. (eval $ac_try) 2>&5
  5212. ac_status=$?
  5213. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5214. (exit $ac_status); }; }; then
  5215. eval "$as_ac_var=yes"
  5216. else
  5217. echo "$as_me: failed program was:" >&5
  5218. sed 's/^/| /' conftest.$ac_ext >&5
  5219. eval "$as_ac_var=no"
  5220. fi
  5221. rm -f conftest.err conftest.$ac_objext \
  5222. conftest$ac_exeext conftest.$ac_ext
  5223. fi
  5224. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5225. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5226. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5227. cat >>confdefs.h <<_ACEOF
  5228. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5229. _ACEOF
  5230. else
  5231. # strftime is in -lintl on SCO UNIX.
  5232. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  5233. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  5234. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  5235. echo $ECHO_N "(cached) $ECHO_C" >&6
  5236. else
  5237. ac_check_lib_save_LIBS=$LIBS
  5238. LIBS="-lintl $LIBS"
  5239. cat >conftest.$ac_ext <<_ACEOF
  5240. /* confdefs.h. */
  5241. _ACEOF
  5242. cat confdefs.h >>conftest.$ac_ext
  5243. cat >>conftest.$ac_ext <<_ACEOF
  5244. /* end confdefs.h. */
  5245. /* Override any gcc2 internal prototype to avoid an error. */
  5246. #ifdef __cplusplus
  5247. extern "C"
  5248. #endif
  5249. /* We use char because int might match the return type of a gcc2
  5250. builtin and then its argument prototype would still apply. */
  5251. char strftime ();
  5252. int
  5253. main ()
  5254. {
  5255. strftime ();
  5256. ;
  5257. return 0;
  5258. }
  5259. _ACEOF
  5260. rm -f conftest.$ac_objext conftest$ac_exeext
  5261. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5262. (eval $ac_link) 2>conftest.er1
  5263. ac_status=$?
  5264. grep -v '^ *+' conftest.er1 >conftest.err
  5265. rm -f conftest.er1
  5266. cat conftest.err >&5
  5267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5268. (exit $ac_status); } &&
  5269. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5270. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5271. (eval $ac_try) 2>&5
  5272. ac_status=$?
  5273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5274. (exit $ac_status); }; } &&
  5275. { ac_try='test -s conftest$ac_exeext'
  5276. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5277. (eval $ac_try) 2>&5
  5278. ac_status=$?
  5279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5280. (exit $ac_status); }; }; then
  5281. ac_cv_lib_intl_strftime=yes
  5282. else
  5283. echo "$as_me: failed program was:" >&5
  5284. sed 's/^/| /' conftest.$ac_ext >&5
  5285. ac_cv_lib_intl_strftime=no
  5286. fi
  5287. rm -f conftest.err conftest.$ac_objext \
  5288. conftest$ac_exeext conftest.$ac_ext
  5289. LIBS=$ac_check_lib_save_LIBS
  5290. fi
  5291. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  5292. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  5293. if test $ac_cv_lib_intl_strftime = yes; then
  5294. cat >>confdefs.h <<\_ACEOF
  5295. #define HAVE_STRFTIME 1
  5296. _ACEOF
  5297. LIBS="-lintl $LIBS"
  5298. fi
  5299. fi
  5300. done
  5301. for ac_func in \
  5302. bind gethostbyaddr gethostbyname gethostname inet_ntoa malloc memmove \
  5303. memset realloc setsid setsockopt socket strcasecmp strchr strcspn strerror \
  5304. strstr waitpid
  5305. do
  5306. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5307. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5308. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5309. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5310. echo $ECHO_N "(cached) $ECHO_C" >&6
  5311. else
  5312. cat >conftest.$ac_ext <<_ACEOF
  5313. /* confdefs.h. */
  5314. _ACEOF
  5315. cat confdefs.h >>conftest.$ac_ext
  5316. cat >>conftest.$ac_ext <<_ACEOF
  5317. /* end confdefs.h. */
  5318. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5319. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5320. #define $ac_func innocuous_$ac_func
  5321. /* System header to define __stub macros and hopefully few prototypes,
  5322. which can conflict with char $ac_func (); below.
  5323. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5324. <limits.h> exists even on freestanding compilers. */
  5325. #ifdef __STDC__
  5326. # include <limits.h>
  5327. #else
  5328. # include <assert.h>
  5329. #endif
  5330. #undef $ac_func
  5331. /* Override any gcc2 internal prototype to avoid an error. */
  5332. #ifdef __cplusplus
  5333. extern "C"
  5334. {
  5335. #endif
  5336. /* We use char because int might match the return type of a gcc2
  5337. builtin and then its argument prototype would still apply. */
  5338. char $ac_func ();
  5339. /* The GNU C library defines this for functions which it implements
  5340. to always fail with ENOSYS. Some functions are actually named
  5341. something starting with __ and the normal name is an alias. */
  5342. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5343. choke me
  5344. #else
  5345. char (*f) () = $ac_func;
  5346. #endif
  5347. #ifdef __cplusplus
  5348. }
  5349. #endif
  5350. int
  5351. main ()
  5352. {
  5353. return f != $ac_func;
  5354. ;
  5355. return 0;
  5356. }
  5357. _ACEOF
  5358. rm -f conftest.$ac_objext conftest$ac_exeext
  5359. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5360. (eval $ac_link) 2>conftest.er1
  5361. ac_status=$?
  5362. grep -v '^ *+' conftest.er1 >conftest.err
  5363. rm -f conftest.er1
  5364. cat conftest.err >&5
  5365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5366. (exit $ac_status); } &&
  5367. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5368. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5369. (eval $ac_try) 2>&5
  5370. ac_status=$?
  5371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5372. (exit $ac_status); }; } &&
  5373. { ac_try='test -s conftest$ac_exeext'
  5374. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5375. (eval $ac_try) 2>&5
  5376. ac_status=$?
  5377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5378. (exit $ac_status); }; }; then
  5379. eval "$as_ac_var=yes"
  5380. else
  5381. echo "$as_me: failed program was:" >&5
  5382. sed 's/^/| /' conftest.$ac_ext >&5
  5383. eval "$as_ac_var=no"
  5384. fi
  5385. rm -f conftest.err conftest.$ac_objext \
  5386. conftest$ac_exeext conftest.$ac_ext
  5387. fi
  5388. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5389. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5390. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5391. cat >>confdefs.h <<_ACEOF
  5392. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5393. _ACEOF
  5394. else
  5395. { { echo "$as_me:$LINENO: error: required function missing!" >&5
  5396. echo "$as_me: error: required function missing!" >&2;}
  5397. { (exit 1); exit 1; }; }
  5398. fi
  5399. done
  5400. for ac_func in inet_aton isdigit sigaction snprintf vsnprintf strdup strlcpy strlcat
  5401. do
  5402. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5403. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5404. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5405. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5406. echo $ECHO_N "(cached) $ECHO_C" >&6
  5407. else
  5408. cat >conftest.$ac_ext <<_ACEOF
  5409. /* confdefs.h. */
  5410. _ACEOF
  5411. cat confdefs.h >>conftest.$ac_ext
  5412. cat >>conftest.$ac_ext <<_ACEOF
  5413. /* end confdefs.h. */
  5414. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5415. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5416. #define $ac_func innocuous_$ac_func
  5417. /* System header to define __stub macros and hopefully few prototypes,
  5418. which can conflict with char $ac_func (); below.
  5419. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5420. <limits.h> exists even on freestanding compilers. */
  5421. #ifdef __STDC__
  5422. # include <limits.h>
  5423. #else
  5424. # include <assert.h>
  5425. #endif
  5426. #undef $ac_func
  5427. /* Override any gcc2 internal prototype to avoid an error. */
  5428. #ifdef __cplusplus
  5429. extern "C"
  5430. {
  5431. #endif
  5432. /* We use char because int might match the return type of a gcc2
  5433. builtin and then its argument prototype would still apply. */
  5434. char $ac_func ();
  5435. /* The GNU C library defines this for functions which it implements
  5436. to always fail with ENOSYS. Some functions are actually named
  5437. something starting with __ and the normal name is an alias. */
  5438. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5439. choke me
  5440. #else
  5441. char (*f) () = $ac_func;
  5442. #endif
  5443. #ifdef __cplusplus
  5444. }
  5445. #endif
  5446. int
  5447. main ()
  5448. {
  5449. return f != $ac_func;
  5450. ;
  5451. return 0;
  5452. }
  5453. _ACEOF
  5454. rm -f conftest.$ac_objext conftest$ac_exeext
  5455. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5456. (eval $ac_link) 2>conftest.er1
  5457. ac_status=$?
  5458. grep -v '^ *+' conftest.er1 >conftest.err
  5459. rm -f conftest.er1
  5460. cat conftest.err >&5
  5461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5462. (exit $ac_status); } &&
  5463. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5464. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5465. (eval $ac_try) 2>&5
  5466. ac_status=$?
  5467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5468. (exit $ac_status); }; } &&
  5469. { ac_try='test -s conftest$ac_exeext'
  5470. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5471. (eval $ac_try) 2>&5
  5472. ac_status=$?
  5473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5474. (exit $ac_status); }; }; then
  5475. eval "$as_ac_var=yes"
  5476. else
  5477. echo "$as_me: failed program was:" >&5
  5478. sed 's/^/| /' conftest.$ac_ext >&5
  5479. eval "$as_ac_var=no"
  5480. fi
  5481. rm -f conftest.err conftest.$ac_objext \
  5482. conftest$ac_exeext conftest.$ac_ext
  5483. fi
  5484. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5485. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5486. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5487. cat >>confdefs.h <<_ACEOF
  5488. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5489. _ACEOF
  5490. fi
  5491. done
  5492. # -- Configuration options --
  5493. # use syslog?
  5494. x_syslog_on=no
  5495. # Check whether --with-syslog or --without-syslog was given.
  5496. if test "${with_syslog+set}" = set; then
  5497. withval="$with_syslog"
  5498. if test "$withval" != "no"; then
  5499. if test "$withval" != "yes"; then
  5500. CFLAGS="-I$withval/include $CFLAGS"
  5501. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5502. LDFLAGS="-L$withval/lib $LDFLAGS"
  5503. fi
  5504. echo "$as_me:$LINENO: checking for syslog in -lbe" >&5
  5505. echo $ECHO_N "checking for syslog in -lbe... $ECHO_C" >&6
  5506. if test "${ac_cv_lib_be_syslog+set}" = set; then
  5507. echo $ECHO_N "(cached) $ECHO_C" >&6
  5508. else
  5509. ac_check_lib_save_LIBS=$LIBS
  5510. LIBS="-lbe $LIBS"
  5511. cat >conftest.$ac_ext <<_ACEOF
  5512. /* confdefs.h. */
  5513. _ACEOF
  5514. cat confdefs.h >>conftest.$ac_ext
  5515. cat >>conftest.$ac_ext <<_ACEOF
  5516. /* end confdefs.h. */
  5517. /* Override any gcc2 internal prototype to avoid an error. */
  5518. #ifdef __cplusplus
  5519. extern "C"
  5520. #endif
  5521. /* We use char because int might match the return type of a gcc2
  5522. builtin and then its argument prototype would still apply. */
  5523. char syslog ();
  5524. int
  5525. main ()
  5526. {
  5527. syslog ();
  5528. ;
  5529. return 0;
  5530. }
  5531. _ACEOF
  5532. rm -f conftest.$ac_objext conftest$ac_exeext
  5533. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5534. (eval $ac_link) 2>conftest.er1
  5535. ac_status=$?
  5536. grep -v '^ *+' conftest.er1 >conftest.err
  5537. rm -f conftest.er1
  5538. cat conftest.err >&5
  5539. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5540. (exit $ac_status); } &&
  5541. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5542. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5543. (eval $ac_try) 2>&5
  5544. ac_status=$?
  5545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5546. (exit $ac_status); }; } &&
  5547. { ac_try='test -s conftest$ac_exeext'
  5548. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5549. (eval $ac_try) 2>&5
  5550. ac_status=$?
  5551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5552. (exit $ac_status); }; }; then
  5553. ac_cv_lib_be_syslog=yes
  5554. else
  5555. echo "$as_me: failed program was:" >&5
  5556. sed 's/^/| /' conftest.$ac_ext >&5
  5557. ac_cv_lib_be_syslog=no
  5558. fi
  5559. rm -f conftest.err conftest.$ac_objext \
  5560. conftest$ac_exeext conftest.$ac_ext
  5561. LIBS=$ac_check_lib_save_LIBS
  5562. fi
  5563. echo "$as_me:$LINENO: result: $ac_cv_lib_be_syslog" >&5
  5564. echo "${ECHO_T}$ac_cv_lib_be_syslog" >&6
  5565. if test $ac_cv_lib_be_syslog = yes; then
  5566. cat >>confdefs.h <<_ACEOF
  5567. #define HAVE_LIBBE 1
  5568. _ACEOF
  5569. LIBS="-lbe $LIBS"
  5570. fi
  5571. for ac_func in syslog
  5572. do
  5573. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5574. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5575. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5576. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5577. echo $ECHO_N "(cached) $ECHO_C" >&6
  5578. else
  5579. cat >conftest.$ac_ext <<_ACEOF
  5580. /* confdefs.h. */
  5581. _ACEOF
  5582. cat confdefs.h >>conftest.$ac_ext
  5583. cat >>conftest.$ac_ext <<_ACEOF
  5584. /* end confdefs.h. */
  5585. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5586. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5587. #define $ac_func innocuous_$ac_func
  5588. /* System header to define __stub macros and hopefully few prototypes,
  5589. which can conflict with char $ac_func (); below.
  5590. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5591. <limits.h> exists even on freestanding compilers. */
  5592. #ifdef __STDC__
  5593. # include <limits.h>
  5594. #else
  5595. # include <assert.h>
  5596. #endif
  5597. #undef $ac_func
  5598. /* Override any gcc2 internal prototype to avoid an error. */
  5599. #ifdef __cplusplus
  5600. extern "C"
  5601. {
  5602. #endif
  5603. /* We use char because int might match the return type of a gcc2
  5604. builtin and then its argument prototype would still apply. */
  5605. char $ac_func ();
  5606. /* The GNU C library defines this for functions which it implements
  5607. to always fail with ENOSYS. Some functions are actually named
  5608. something starting with __ and the normal name is an alias. */
  5609. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5610. choke me
  5611. #else
  5612. char (*f) () = $ac_func;
  5613. #endif
  5614. #ifdef __cplusplus
  5615. }
  5616. #endif
  5617. int
  5618. main ()
  5619. {
  5620. return f != $ac_func;
  5621. ;
  5622. return 0;
  5623. }
  5624. _ACEOF
  5625. rm -f conftest.$ac_objext conftest$ac_exeext
  5626. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5627. (eval $ac_link) 2>conftest.er1
  5628. ac_status=$?
  5629. grep -v '^ *+' conftest.er1 >conftest.err
  5630. rm -f conftest.er1
  5631. cat conftest.err >&5
  5632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5633. (exit $ac_status); } &&
  5634. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5635. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5636. (eval $ac_try) 2>&5
  5637. ac_status=$?
  5638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5639. (exit $ac_status); }; } &&
  5640. { ac_try='test -s conftest$ac_exeext'
  5641. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5642. (eval $ac_try) 2>&5
  5643. ac_status=$?
  5644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5645. (exit $ac_status); }; }; then
  5646. eval "$as_ac_var=yes"
  5647. else
  5648. echo "$as_me: failed program was:" >&5
  5649. sed 's/^/| /' conftest.$ac_ext >&5
  5650. eval "$as_ac_var=no"
  5651. fi
  5652. rm -f conftest.err conftest.$ac_objext \
  5653. conftest$ac_exeext conftest.$ac_ext
  5654. fi
  5655. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5656. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5657. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5658. cat >>confdefs.h <<_ACEOF
  5659. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5660. _ACEOF
  5661. x_syslog_on=yes
  5662. else
  5663. { { echo "$as_me:$LINENO: error: Can't enable syslog!" >&5
  5664. echo "$as_me: error: Can't enable syslog!" >&2;}
  5665. { (exit 1); exit 1; }; }
  5666. fi
  5667. done
  5668. fi
  5669. else
  5670. echo "$as_me:$LINENO: checking for syslog in -lbe" >&5
  5671. echo $ECHO_N "checking for syslog in -lbe... $ECHO_C" >&6
  5672. if test "${ac_cv_lib_be_syslog+set}" = set; then
  5673. echo $ECHO_N "(cached) $ECHO_C" >&6
  5674. else
  5675. ac_check_lib_save_LIBS=$LIBS
  5676. LIBS="-lbe $LIBS"
  5677. cat >conftest.$ac_ext <<_ACEOF
  5678. /* confdefs.h. */
  5679. _ACEOF
  5680. cat confdefs.h >>conftest.$ac_ext
  5681. cat >>conftest.$ac_ext <<_ACEOF
  5682. /* end confdefs.h. */
  5683. /* Override any gcc2 internal prototype to avoid an error. */
  5684. #ifdef __cplusplus
  5685. extern "C"
  5686. #endif
  5687. /* We use char because int might match the return type of a gcc2
  5688. builtin and then its argument prototype would still apply. */
  5689. char syslog ();
  5690. int
  5691. main ()
  5692. {
  5693. syslog ();
  5694. ;
  5695. return 0;
  5696. }
  5697. _ACEOF
  5698. rm -f conftest.$ac_objext conftest$ac_exeext
  5699. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5700. (eval $ac_link) 2>conftest.er1
  5701. ac_status=$?
  5702. grep -v '^ *+' conftest.er1 >conftest.err
  5703. rm -f conftest.er1
  5704. cat conftest.err >&5
  5705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5706. (exit $ac_status); } &&
  5707. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5708. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5709. (eval $ac_try) 2>&5
  5710. ac_status=$?
  5711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5712. (exit $ac_status); }; } &&
  5713. { ac_try='test -s conftest$ac_exeext'
  5714. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5715. (eval $ac_try) 2>&5
  5716. ac_status=$?
  5717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5718. (exit $ac_status); }; }; then
  5719. ac_cv_lib_be_syslog=yes
  5720. else
  5721. echo "$as_me: failed program was:" >&5
  5722. sed 's/^/| /' conftest.$ac_ext >&5
  5723. ac_cv_lib_be_syslog=no
  5724. fi
  5725. rm -f conftest.err conftest.$ac_objext \
  5726. conftest$ac_exeext conftest.$ac_ext
  5727. LIBS=$ac_check_lib_save_LIBS
  5728. fi
  5729. echo "$as_me:$LINENO: result: $ac_cv_lib_be_syslog" >&5
  5730. echo "${ECHO_T}$ac_cv_lib_be_syslog" >&6
  5731. if test $ac_cv_lib_be_syslog = yes; then
  5732. cat >>confdefs.h <<_ACEOF
  5733. #define HAVE_LIBBE 1
  5734. _ACEOF
  5735. LIBS="-lbe $LIBS"
  5736. fi
  5737. for ac_func in syslog
  5738. do
  5739. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5740. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5741. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5742. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5743. echo $ECHO_N "(cached) $ECHO_C" >&6
  5744. else
  5745. cat >conftest.$ac_ext <<_ACEOF
  5746. /* confdefs.h. */
  5747. _ACEOF
  5748. cat confdefs.h >>conftest.$ac_ext
  5749. cat >>conftest.$ac_ext <<_ACEOF
  5750. /* end confdefs.h. */
  5751. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5752. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5753. #define $ac_func innocuous_$ac_func
  5754. /* System header to define __stub macros and hopefully few prototypes,
  5755. which can conflict with char $ac_func (); below.
  5756. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5757. <limits.h> exists even on freestanding compilers. */
  5758. #ifdef __STDC__
  5759. # include <limits.h>
  5760. #else
  5761. # include <assert.h>
  5762. #endif
  5763. #undef $ac_func
  5764. /* Override any gcc2 internal prototype to avoid an error. */
  5765. #ifdef __cplusplus
  5766. extern "C"
  5767. {
  5768. #endif
  5769. /* We use char because int might match the return type of a gcc2
  5770. builtin and then its argument prototype would still apply. */
  5771. char $ac_func ();
  5772. /* The GNU C library defines this for functions which it implements
  5773. to always fail with ENOSYS. Some functions are actually named
  5774. something starting with __ and the normal name is an alias. */
  5775. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5776. choke me
  5777. #else
  5778. char (*f) () = $ac_func;
  5779. #endif
  5780. #ifdef __cplusplus
  5781. }
  5782. #endif
  5783. int
  5784. main ()
  5785. {
  5786. return f != $ac_func;
  5787. ;
  5788. return 0;
  5789. }
  5790. _ACEOF
  5791. rm -f conftest.$ac_objext conftest$ac_exeext
  5792. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5793. (eval $ac_link) 2>conftest.er1
  5794. ac_status=$?
  5795. grep -v '^ *+' conftest.er1 >conftest.err
  5796. rm -f conftest.er1
  5797. cat conftest.err >&5
  5798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5799. (exit $ac_status); } &&
  5800. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5801. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5802. (eval $ac_try) 2>&5
  5803. ac_status=$?
  5804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5805. (exit $ac_status); }; } &&
  5806. { ac_try='test -s conftest$ac_exeext'
  5807. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5808. (eval $ac_try) 2>&5
  5809. ac_status=$?
  5810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5811. (exit $ac_status); }; }; then
  5812. eval "$as_ac_var=yes"
  5813. else
  5814. echo "$as_me: failed program was:" >&5
  5815. sed 's/^/| /' conftest.$ac_ext >&5
  5816. eval "$as_ac_var=no"
  5817. fi
  5818. rm -f conftest.err conftest.$ac_objext \
  5819. conftest$ac_exeext conftest.$ac_ext
  5820. fi
  5821. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5822. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5823. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5824. cat >>confdefs.h <<_ACEOF
  5825. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5826. _ACEOF
  5827. x_syslog_on=yes
  5828. fi
  5829. done
  5830. fi;
  5831. if test "$x_syslog_on" = "yes"; then
  5832. cat >>confdefs.h <<\_ACEOF
  5833. #define SYSLOG 1
  5834. _ACEOF
  5835. for ac_header in syslog.h
  5836. do
  5837. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5838. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5839. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5840. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5841. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5842. echo $ECHO_N "(cached) $ECHO_C" >&6
  5843. fi
  5844. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5845. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5846. else
  5847. # Is the header compilable?
  5848. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5849. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5850. cat >conftest.$ac_ext <<_ACEOF
  5851. /* confdefs.h. */
  5852. _ACEOF
  5853. cat confdefs.h >>conftest.$ac_ext
  5854. cat >>conftest.$ac_ext <<_ACEOF
  5855. /* end confdefs.h. */
  5856. $ac_includes_default
  5857. #include <$ac_header>
  5858. _ACEOF
  5859. rm -f conftest.$ac_objext
  5860. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5861. (eval $ac_compile) 2>conftest.er1
  5862. ac_status=$?
  5863. grep -v '^ *+' conftest.er1 >conftest.err
  5864. rm -f conftest.er1
  5865. cat conftest.err >&5
  5866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5867. (exit $ac_status); } &&
  5868. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5869. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5870. (eval $ac_try) 2>&5
  5871. ac_status=$?
  5872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5873. (exit $ac_status); }; } &&
  5874. { ac_try='test -s conftest.$ac_objext'
  5875. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5876. (eval $ac_try) 2>&5
  5877. ac_status=$?
  5878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5879. (exit $ac_status); }; }; then
  5880. ac_header_compiler=yes
  5881. else
  5882. echo "$as_me: failed program was:" >&5
  5883. sed 's/^/| /' conftest.$ac_ext >&5
  5884. ac_header_compiler=no
  5885. fi
  5886. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5887. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5888. echo "${ECHO_T}$ac_header_compiler" >&6
  5889. # Is the header present?
  5890. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5891. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5892. cat >conftest.$ac_ext <<_ACEOF
  5893. /* confdefs.h. */
  5894. _ACEOF
  5895. cat confdefs.h >>conftest.$ac_ext
  5896. cat >>conftest.$ac_ext <<_ACEOF
  5897. /* end confdefs.h. */
  5898. #include <$ac_header>
  5899. _ACEOF
  5900. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5901. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5902. ac_status=$?
  5903. grep -v '^ *+' conftest.er1 >conftest.err
  5904. rm -f conftest.er1
  5905. cat conftest.err >&5
  5906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5907. (exit $ac_status); } >/dev/null; then
  5908. if test -s conftest.err; then
  5909. ac_cpp_err=$ac_c_preproc_warn_flag
  5910. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5911. else
  5912. ac_cpp_err=
  5913. fi
  5914. else
  5915. ac_cpp_err=yes
  5916. fi
  5917. if test -z "$ac_cpp_err"; then
  5918. ac_header_preproc=yes
  5919. else
  5920. echo "$as_me: failed program was:" >&5
  5921. sed 's/^/| /' conftest.$ac_ext >&5
  5922. ac_header_preproc=no
  5923. fi
  5924. rm -f conftest.err conftest.$ac_ext
  5925. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5926. echo "${ECHO_T}$ac_header_preproc" >&6
  5927. # So? What about this header?
  5928. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5929. yes:no: )
  5930. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5931. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5932. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5933. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5934. ac_header_preproc=yes
  5935. ;;
  5936. no:yes:* )
  5937. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5938. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5939. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5940. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5941. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5942. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5943. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5944. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5945. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5946. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5947. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5948. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5949. (
  5950. cat <<\_ASBOX
  5951. ## --------------------------------- ##
  5952. ## Report this to the ngircd lists. ##
  5953. ## --------------------------------- ##
  5954. _ASBOX
  5955. ) |
  5956. sed "s/^/$as_me: WARNING: /" >&2
  5957. ;;
  5958. esac
  5959. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5960. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5961. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5962. echo $ECHO_N "(cached) $ECHO_C" >&6
  5963. else
  5964. eval "$as_ac_Header=\$ac_header_preproc"
  5965. fi
  5966. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5967. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5968. fi
  5969. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5970. cat >>confdefs.h <<_ACEOF
  5971. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5972. _ACEOF
  5973. else
  5974. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  5975. echo "$as_me: error: required C header missing!" >&2;}
  5976. { (exit 1); exit 1; }; }
  5977. fi
  5978. done
  5979. fi
  5980. # use zlib compression?
  5981. x_zlib_on=no
  5982. # Check whether --with-zlib or --without-zlib was given.
  5983. if test "${with_zlib+set}" = set; then
  5984. withval="$with_zlib"
  5985. if test "$withval" != "no"; then
  5986. if test "$withval" != "yes"; then
  5987. CFLAGS="-I$withval/include $CFLAGS"
  5988. CPPFLAGS="-I$withval/include $CPPFLAGS"
  5989. LDFLAGS="-L$withval/lib $LDFLAGS"
  5990. fi
  5991. echo "$as_me:$LINENO: checking for deflate in -lz" >&5
  5992. echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
  5993. if test "${ac_cv_lib_z_deflate+set}" = set; then
  5994. echo $ECHO_N "(cached) $ECHO_C" >&6
  5995. else
  5996. ac_check_lib_save_LIBS=$LIBS
  5997. LIBS="-lz $LIBS"
  5998. cat >conftest.$ac_ext <<_ACEOF
  5999. /* confdefs.h. */
  6000. _ACEOF
  6001. cat confdefs.h >>conftest.$ac_ext
  6002. cat >>conftest.$ac_ext <<_ACEOF
  6003. /* end confdefs.h. */
  6004. /* Override any gcc2 internal prototype to avoid an error. */
  6005. #ifdef __cplusplus
  6006. extern "C"
  6007. #endif
  6008. /* We use char because int might match the return type of a gcc2
  6009. builtin and then its argument prototype would still apply. */
  6010. char deflate ();
  6011. int
  6012. main ()
  6013. {
  6014. deflate ();
  6015. ;
  6016. return 0;
  6017. }
  6018. _ACEOF
  6019. rm -f conftest.$ac_objext conftest$ac_exeext
  6020. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6021. (eval $ac_link) 2>conftest.er1
  6022. ac_status=$?
  6023. grep -v '^ *+' conftest.er1 >conftest.err
  6024. rm -f conftest.er1
  6025. cat conftest.err >&5
  6026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6027. (exit $ac_status); } &&
  6028. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6029. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6030. (eval $ac_try) 2>&5
  6031. ac_status=$?
  6032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6033. (exit $ac_status); }; } &&
  6034. { ac_try='test -s conftest$ac_exeext'
  6035. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6036. (eval $ac_try) 2>&5
  6037. ac_status=$?
  6038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6039. (exit $ac_status); }; }; then
  6040. ac_cv_lib_z_deflate=yes
  6041. else
  6042. echo "$as_me: failed program was:" >&5
  6043. sed 's/^/| /' conftest.$ac_ext >&5
  6044. ac_cv_lib_z_deflate=no
  6045. fi
  6046. rm -f conftest.err conftest.$ac_objext \
  6047. conftest$ac_exeext conftest.$ac_ext
  6048. LIBS=$ac_check_lib_save_LIBS
  6049. fi
  6050. echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
  6051. echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
  6052. if test $ac_cv_lib_z_deflate = yes; then
  6053. cat >>confdefs.h <<_ACEOF
  6054. #define HAVE_LIBZ 1
  6055. _ACEOF
  6056. LIBS="-lz $LIBS"
  6057. fi
  6058. for ac_func in deflate
  6059. do
  6060. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6061. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6062. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6063. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6064. echo $ECHO_N "(cached) $ECHO_C" >&6
  6065. else
  6066. cat >conftest.$ac_ext <<_ACEOF
  6067. /* confdefs.h. */
  6068. _ACEOF
  6069. cat confdefs.h >>conftest.$ac_ext
  6070. cat >>conftest.$ac_ext <<_ACEOF
  6071. /* end confdefs.h. */
  6072. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6073. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6074. #define $ac_func innocuous_$ac_func
  6075. /* System header to define __stub macros and hopefully few prototypes,
  6076. which can conflict with char $ac_func (); below.
  6077. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6078. <limits.h> exists even on freestanding compilers. */
  6079. #ifdef __STDC__
  6080. # include <limits.h>
  6081. #else
  6082. # include <assert.h>
  6083. #endif
  6084. #undef $ac_func
  6085. /* Override any gcc2 internal prototype to avoid an error. */
  6086. #ifdef __cplusplus
  6087. extern "C"
  6088. {
  6089. #endif
  6090. /* We use char because int might match the return type of a gcc2
  6091. builtin and then its argument prototype would still apply. */
  6092. char $ac_func ();
  6093. /* The GNU C library defines this for functions which it implements
  6094. to always fail with ENOSYS. Some functions are actually named
  6095. something starting with __ and the normal name is an alias. */
  6096. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6097. choke me
  6098. #else
  6099. char (*f) () = $ac_func;
  6100. #endif
  6101. #ifdef __cplusplus
  6102. }
  6103. #endif
  6104. int
  6105. main ()
  6106. {
  6107. return f != $ac_func;
  6108. ;
  6109. return 0;
  6110. }
  6111. _ACEOF
  6112. rm -f conftest.$ac_objext conftest$ac_exeext
  6113. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6114. (eval $ac_link) 2>conftest.er1
  6115. ac_status=$?
  6116. grep -v '^ *+' conftest.er1 >conftest.err
  6117. rm -f conftest.er1
  6118. cat conftest.err >&5
  6119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6120. (exit $ac_status); } &&
  6121. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6122. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6123. (eval $ac_try) 2>&5
  6124. ac_status=$?
  6125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6126. (exit $ac_status); }; } &&
  6127. { ac_try='test -s conftest$ac_exeext'
  6128. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6129. (eval $ac_try) 2>&5
  6130. ac_status=$?
  6131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6132. (exit $ac_status); }; }; then
  6133. eval "$as_ac_var=yes"
  6134. else
  6135. echo "$as_me: failed program was:" >&5
  6136. sed 's/^/| /' conftest.$ac_ext >&5
  6137. eval "$as_ac_var=no"
  6138. fi
  6139. rm -f conftest.err conftest.$ac_objext \
  6140. conftest$ac_exeext conftest.$ac_ext
  6141. fi
  6142. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6143. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6144. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6145. cat >>confdefs.h <<_ACEOF
  6146. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6147. _ACEOF
  6148. x_zlib_on=yes
  6149. else
  6150. { { echo "$as_me:$LINENO: error: Can't enable zlib!" >&5
  6151. echo "$as_me: error: Can't enable zlib!" >&2;}
  6152. { (exit 1); exit 1; }; }
  6153. fi
  6154. done
  6155. fi
  6156. else
  6157. echo "$as_me:$LINENO: checking for deflate in -lz" >&5
  6158. echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
  6159. if test "${ac_cv_lib_z_deflate+set}" = set; then
  6160. echo $ECHO_N "(cached) $ECHO_C" >&6
  6161. else
  6162. ac_check_lib_save_LIBS=$LIBS
  6163. LIBS="-lz $LIBS"
  6164. cat >conftest.$ac_ext <<_ACEOF
  6165. /* confdefs.h. */
  6166. _ACEOF
  6167. cat confdefs.h >>conftest.$ac_ext
  6168. cat >>conftest.$ac_ext <<_ACEOF
  6169. /* end confdefs.h. */
  6170. /* Override any gcc2 internal prototype to avoid an error. */
  6171. #ifdef __cplusplus
  6172. extern "C"
  6173. #endif
  6174. /* We use char because int might match the return type of a gcc2
  6175. builtin and then its argument prototype would still apply. */
  6176. char deflate ();
  6177. int
  6178. main ()
  6179. {
  6180. deflate ();
  6181. ;
  6182. return 0;
  6183. }
  6184. _ACEOF
  6185. rm -f conftest.$ac_objext conftest$ac_exeext
  6186. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6187. (eval $ac_link) 2>conftest.er1
  6188. ac_status=$?
  6189. grep -v '^ *+' conftest.er1 >conftest.err
  6190. rm -f conftest.er1
  6191. cat conftest.err >&5
  6192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6193. (exit $ac_status); } &&
  6194. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6195. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6196. (eval $ac_try) 2>&5
  6197. ac_status=$?
  6198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6199. (exit $ac_status); }; } &&
  6200. { ac_try='test -s conftest$ac_exeext'
  6201. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6202. (eval $ac_try) 2>&5
  6203. ac_status=$?
  6204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6205. (exit $ac_status); }; }; then
  6206. ac_cv_lib_z_deflate=yes
  6207. else
  6208. echo "$as_me: failed program was:" >&5
  6209. sed 's/^/| /' conftest.$ac_ext >&5
  6210. ac_cv_lib_z_deflate=no
  6211. fi
  6212. rm -f conftest.err conftest.$ac_objext \
  6213. conftest$ac_exeext conftest.$ac_ext
  6214. LIBS=$ac_check_lib_save_LIBS
  6215. fi
  6216. echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
  6217. echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
  6218. if test $ac_cv_lib_z_deflate = yes; then
  6219. cat >>confdefs.h <<_ACEOF
  6220. #define HAVE_LIBZ 1
  6221. _ACEOF
  6222. LIBS="-lz $LIBS"
  6223. fi
  6224. for ac_func in deflate
  6225. do
  6226. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6227. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6228. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6229. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6230. echo $ECHO_N "(cached) $ECHO_C" >&6
  6231. else
  6232. cat >conftest.$ac_ext <<_ACEOF
  6233. /* confdefs.h. */
  6234. _ACEOF
  6235. cat confdefs.h >>conftest.$ac_ext
  6236. cat >>conftest.$ac_ext <<_ACEOF
  6237. /* end confdefs.h. */
  6238. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6239. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6240. #define $ac_func innocuous_$ac_func
  6241. /* System header to define __stub macros and hopefully few prototypes,
  6242. which can conflict with char $ac_func (); below.
  6243. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6244. <limits.h> exists even on freestanding compilers. */
  6245. #ifdef __STDC__
  6246. # include <limits.h>
  6247. #else
  6248. # include <assert.h>
  6249. #endif
  6250. #undef $ac_func
  6251. /* Override any gcc2 internal prototype to avoid an error. */
  6252. #ifdef __cplusplus
  6253. extern "C"
  6254. {
  6255. #endif
  6256. /* We use char because int might match the return type of a gcc2
  6257. builtin and then its argument prototype would still apply. */
  6258. char $ac_func ();
  6259. /* The GNU C library defines this for functions which it implements
  6260. to always fail with ENOSYS. Some functions are actually named
  6261. something starting with __ and the normal name is an alias. */
  6262. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6263. choke me
  6264. #else
  6265. char (*f) () = $ac_func;
  6266. #endif
  6267. #ifdef __cplusplus
  6268. }
  6269. #endif
  6270. int
  6271. main ()
  6272. {
  6273. return f != $ac_func;
  6274. ;
  6275. return 0;
  6276. }
  6277. _ACEOF
  6278. rm -f conftest.$ac_objext conftest$ac_exeext
  6279. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6280. (eval $ac_link) 2>conftest.er1
  6281. ac_status=$?
  6282. grep -v '^ *+' conftest.er1 >conftest.err
  6283. rm -f conftest.er1
  6284. cat conftest.err >&5
  6285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6286. (exit $ac_status); } &&
  6287. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6288. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6289. (eval $ac_try) 2>&5
  6290. ac_status=$?
  6291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6292. (exit $ac_status); }; } &&
  6293. { ac_try='test -s conftest$ac_exeext'
  6294. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6295. (eval $ac_try) 2>&5
  6296. ac_status=$?
  6297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6298. (exit $ac_status); }; }; then
  6299. eval "$as_ac_var=yes"
  6300. else
  6301. echo "$as_me: failed program was:" >&5
  6302. sed 's/^/| /' conftest.$ac_ext >&5
  6303. eval "$as_ac_var=no"
  6304. fi
  6305. rm -f conftest.err conftest.$ac_objext \
  6306. conftest$ac_exeext conftest.$ac_ext
  6307. fi
  6308. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6309. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6310. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6311. cat >>confdefs.h <<_ACEOF
  6312. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6313. _ACEOF
  6314. x_zlib_on=yes
  6315. fi
  6316. done
  6317. fi;
  6318. if test "$x_zlib_on" = "yes"; then
  6319. cat >>confdefs.h <<\_ACEOF
  6320. #define ZLIB 1
  6321. _ACEOF
  6322. for ac_header in zlib.h
  6323. do
  6324. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6325. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6326. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6327. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6328. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6329. echo $ECHO_N "(cached) $ECHO_C" >&6
  6330. fi
  6331. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6332. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6333. else
  6334. # Is the header compilable?
  6335. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6336. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6337. cat >conftest.$ac_ext <<_ACEOF
  6338. /* confdefs.h. */
  6339. _ACEOF
  6340. cat confdefs.h >>conftest.$ac_ext
  6341. cat >>conftest.$ac_ext <<_ACEOF
  6342. /* end confdefs.h. */
  6343. $ac_includes_default
  6344. #include <$ac_header>
  6345. _ACEOF
  6346. rm -f conftest.$ac_objext
  6347. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6348. (eval $ac_compile) 2>conftest.er1
  6349. ac_status=$?
  6350. grep -v '^ *+' conftest.er1 >conftest.err
  6351. rm -f conftest.er1
  6352. cat conftest.err >&5
  6353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6354. (exit $ac_status); } &&
  6355. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6356. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6357. (eval $ac_try) 2>&5
  6358. ac_status=$?
  6359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6360. (exit $ac_status); }; } &&
  6361. { ac_try='test -s conftest.$ac_objext'
  6362. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6363. (eval $ac_try) 2>&5
  6364. ac_status=$?
  6365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6366. (exit $ac_status); }; }; then
  6367. ac_header_compiler=yes
  6368. else
  6369. echo "$as_me: failed program was:" >&5
  6370. sed 's/^/| /' conftest.$ac_ext >&5
  6371. ac_header_compiler=no
  6372. fi
  6373. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6374. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6375. echo "${ECHO_T}$ac_header_compiler" >&6
  6376. # Is the header present?
  6377. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6378. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6379. cat >conftest.$ac_ext <<_ACEOF
  6380. /* confdefs.h. */
  6381. _ACEOF
  6382. cat confdefs.h >>conftest.$ac_ext
  6383. cat >>conftest.$ac_ext <<_ACEOF
  6384. /* end confdefs.h. */
  6385. #include <$ac_header>
  6386. _ACEOF
  6387. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6388. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6389. ac_status=$?
  6390. grep -v '^ *+' conftest.er1 >conftest.err
  6391. rm -f conftest.er1
  6392. cat conftest.err >&5
  6393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6394. (exit $ac_status); } >/dev/null; then
  6395. if test -s conftest.err; then
  6396. ac_cpp_err=$ac_c_preproc_warn_flag
  6397. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6398. else
  6399. ac_cpp_err=
  6400. fi
  6401. else
  6402. ac_cpp_err=yes
  6403. fi
  6404. if test -z "$ac_cpp_err"; then
  6405. ac_header_preproc=yes
  6406. else
  6407. echo "$as_me: failed program was:" >&5
  6408. sed 's/^/| /' conftest.$ac_ext >&5
  6409. ac_header_preproc=no
  6410. fi
  6411. rm -f conftest.err conftest.$ac_ext
  6412. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6413. echo "${ECHO_T}$ac_header_preproc" >&6
  6414. # So? What about this header?
  6415. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6416. yes:no: )
  6417. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6418. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6419. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6420. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6421. ac_header_preproc=yes
  6422. ;;
  6423. no:yes:* )
  6424. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6425. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6426. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6427. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6428. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6429. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6430. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6431. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6432. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6433. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6434. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6435. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6436. (
  6437. cat <<\_ASBOX
  6438. ## --------------------------------- ##
  6439. ## Report this to the ngircd lists. ##
  6440. ## --------------------------------- ##
  6441. _ASBOX
  6442. ) |
  6443. sed "s/^/$as_me: WARNING: /" >&2
  6444. ;;
  6445. esac
  6446. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6447. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6448. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6449. echo $ECHO_N "(cached) $ECHO_C" >&6
  6450. else
  6451. eval "$as_ac_Header=\$ac_header_preproc"
  6452. fi
  6453. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6454. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6455. fi
  6456. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6457. cat >>confdefs.h <<_ACEOF
  6458. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6459. _ACEOF
  6460. else
  6461. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  6462. echo "$as_me: error: required C header missing!" >&2;}
  6463. { (exit 1); exit 1; }; }
  6464. fi
  6465. done
  6466. fi
  6467. # detect which IO API to use:
  6468. x_io_backend=none
  6469. # Check whether --with-select or --without-select was given.
  6470. if test "${with_select+set}" = set; then
  6471. withval="$with_select"
  6472. if test "$withval" != "no"; then
  6473. if test "$withval" != "yes"; then
  6474. CFLAGS="-I$withval/include $CFLAGS"
  6475. CPPFLAGS="-I$withval/include $CPPFLAGS"
  6476. LDFLAGS="-L$withval/lib $LDFLAGS"
  6477. fi
  6478. for ac_func in select
  6479. do
  6480. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6481. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6482. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6483. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6484. echo $ECHO_N "(cached) $ECHO_C" >&6
  6485. else
  6486. cat >conftest.$ac_ext <<_ACEOF
  6487. /* confdefs.h. */
  6488. _ACEOF
  6489. cat confdefs.h >>conftest.$ac_ext
  6490. cat >>conftest.$ac_ext <<_ACEOF
  6491. /* end confdefs.h. */
  6492. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6493. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6494. #define $ac_func innocuous_$ac_func
  6495. /* System header to define __stub macros and hopefully few prototypes,
  6496. which can conflict with char $ac_func (); below.
  6497. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6498. <limits.h> exists even on freestanding compilers. */
  6499. #ifdef __STDC__
  6500. # include <limits.h>
  6501. #else
  6502. # include <assert.h>
  6503. #endif
  6504. #undef $ac_func
  6505. /* Override any gcc2 internal prototype to avoid an error. */
  6506. #ifdef __cplusplus
  6507. extern "C"
  6508. {
  6509. #endif
  6510. /* We use char because int might match the return type of a gcc2
  6511. builtin and then its argument prototype would still apply. */
  6512. char $ac_func ();
  6513. /* The GNU C library defines this for functions which it implements
  6514. to always fail with ENOSYS. Some functions are actually named
  6515. something starting with __ and the normal name is an alias. */
  6516. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6517. choke me
  6518. #else
  6519. char (*f) () = $ac_func;
  6520. #endif
  6521. #ifdef __cplusplus
  6522. }
  6523. #endif
  6524. int
  6525. main ()
  6526. {
  6527. return f != $ac_func;
  6528. ;
  6529. return 0;
  6530. }
  6531. _ACEOF
  6532. rm -f conftest.$ac_objext conftest$ac_exeext
  6533. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6534. (eval $ac_link) 2>conftest.er1
  6535. ac_status=$?
  6536. grep -v '^ *+' conftest.er1 >conftest.err
  6537. rm -f conftest.er1
  6538. cat conftest.err >&5
  6539. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6540. (exit $ac_status); } &&
  6541. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6542. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6543. (eval $ac_try) 2>&5
  6544. ac_status=$?
  6545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6546. (exit $ac_status); }; } &&
  6547. { ac_try='test -s conftest$ac_exeext'
  6548. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6549. (eval $ac_try) 2>&5
  6550. ac_status=$?
  6551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6552. (exit $ac_status); }; }; then
  6553. eval "$as_ac_var=yes"
  6554. else
  6555. echo "$as_me: failed program was:" >&5
  6556. sed 's/^/| /' conftest.$ac_ext >&5
  6557. eval "$as_ac_var=no"
  6558. fi
  6559. rm -f conftest.err conftest.$ac_objext \
  6560. conftest$ac_exeext conftest.$ac_ext
  6561. fi
  6562. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6563. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6564. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6565. cat >>confdefs.h <<_ACEOF
  6566. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6567. _ACEOF
  6568. x_io_select=yes
  6569. else
  6570. { { echo "$as_me:$LINENO: error: Can't enable select IO support!" >&5
  6571. echo "$as_me: error: Can't enable select IO support!" >&2;}
  6572. { (exit 1); exit 1; }; }
  6573. fi
  6574. done
  6575. fi
  6576. else
  6577. for ac_func in select
  6578. do
  6579. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6580. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6581. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6582. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6583. echo $ECHO_N "(cached) $ECHO_C" >&6
  6584. else
  6585. cat >conftest.$ac_ext <<_ACEOF
  6586. /* confdefs.h. */
  6587. _ACEOF
  6588. cat confdefs.h >>conftest.$ac_ext
  6589. cat >>conftest.$ac_ext <<_ACEOF
  6590. /* end confdefs.h. */
  6591. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6592. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6593. #define $ac_func innocuous_$ac_func
  6594. /* System header to define __stub macros and hopefully few prototypes,
  6595. which can conflict with char $ac_func (); below.
  6596. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6597. <limits.h> exists even on freestanding compilers. */
  6598. #ifdef __STDC__
  6599. # include <limits.h>
  6600. #else
  6601. # include <assert.h>
  6602. #endif
  6603. #undef $ac_func
  6604. /* Override any gcc2 internal prototype to avoid an error. */
  6605. #ifdef __cplusplus
  6606. extern "C"
  6607. {
  6608. #endif
  6609. /* We use char because int might match the return type of a gcc2
  6610. builtin and then its argument prototype would still apply. */
  6611. char $ac_func ();
  6612. /* The GNU C library defines this for functions which it implements
  6613. to always fail with ENOSYS. Some functions are actually named
  6614. something starting with __ and the normal name is an alias. */
  6615. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6616. choke me
  6617. #else
  6618. char (*f) () = $ac_func;
  6619. #endif
  6620. #ifdef __cplusplus
  6621. }
  6622. #endif
  6623. int
  6624. main ()
  6625. {
  6626. return f != $ac_func;
  6627. ;
  6628. return 0;
  6629. }
  6630. _ACEOF
  6631. rm -f conftest.$ac_objext conftest$ac_exeext
  6632. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6633. (eval $ac_link) 2>conftest.er1
  6634. ac_status=$?
  6635. grep -v '^ *+' conftest.er1 >conftest.err
  6636. rm -f conftest.er1
  6637. cat conftest.err >&5
  6638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6639. (exit $ac_status); } &&
  6640. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6641. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6642. (eval $ac_try) 2>&5
  6643. ac_status=$?
  6644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6645. (exit $ac_status); }; } &&
  6646. { ac_try='test -s conftest$ac_exeext'
  6647. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6648. (eval $ac_try) 2>&5
  6649. ac_status=$?
  6650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6651. (exit $ac_status); }; }; then
  6652. eval "$as_ac_var=yes"
  6653. else
  6654. echo "$as_me: failed program was:" >&5
  6655. sed 's/^/| /' conftest.$ac_ext >&5
  6656. eval "$as_ac_var=no"
  6657. fi
  6658. rm -f conftest.err conftest.$ac_objext \
  6659. conftest$ac_exeext conftest.$ac_ext
  6660. fi
  6661. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6662. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6663. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6664. cat >>confdefs.h <<_ACEOF
  6665. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6666. _ACEOF
  6667. x_io_select=yes
  6668. fi
  6669. done
  6670. fi;
  6671. # Check whether --with-poll or --without-poll was given.
  6672. if test "${with_poll+set}" = set; then
  6673. withval="$with_poll"
  6674. if test "$withval" != "no"; then
  6675. if test "$withval" != "yes"; then
  6676. CFLAGS="-I$withval/include $CFLAGS"
  6677. CPPFLAGS="-I$withval/include $CPPFLAGS"
  6678. LDFLAGS="-L$withval/lib $LDFLAGS"
  6679. fi
  6680. for ac_func in poll
  6681. do
  6682. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6683. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6684. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6685. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6686. echo $ECHO_N "(cached) $ECHO_C" >&6
  6687. else
  6688. cat >conftest.$ac_ext <<_ACEOF
  6689. /* confdefs.h. */
  6690. _ACEOF
  6691. cat confdefs.h >>conftest.$ac_ext
  6692. cat >>conftest.$ac_ext <<_ACEOF
  6693. /* end confdefs.h. */
  6694. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6695. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6696. #define $ac_func innocuous_$ac_func
  6697. /* System header to define __stub macros and hopefully few prototypes,
  6698. which can conflict with char $ac_func (); below.
  6699. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6700. <limits.h> exists even on freestanding compilers. */
  6701. #ifdef __STDC__
  6702. # include <limits.h>
  6703. #else
  6704. # include <assert.h>
  6705. #endif
  6706. #undef $ac_func
  6707. /* Override any gcc2 internal prototype to avoid an error. */
  6708. #ifdef __cplusplus
  6709. extern "C"
  6710. {
  6711. #endif
  6712. /* We use char because int might match the return type of a gcc2
  6713. builtin and then its argument prototype would still apply. */
  6714. char $ac_func ();
  6715. /* The GNU C library defines this for functions which it implements
  6716. to always fail with ENOSYS. Some functions are actually named
  6717. something starting with __ and the normal name is an alias. */
  6718. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6719. choke me
  6720. #else
  6721. char (*f) () = $ac_func;
  6722. #endif
  6723. #ifdef __cplusplus
  6724. }
  6725. #endif
  6726. int
  6727. main ()
  6728. {
  6729. return f != $ac_func;
  6730. ;
  6731. return 0;
  6732. }
  6733. _ACEOF
  6734. rm -f conftest.$ac_objext conftest$ac_exeext
  6735. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6736. (eval $ac_link) 2>conftest.er1
  6737. ac_status=$?
  6738. grep -v '^ *+' conftest.er1 >conftest.err
  6739. rm -f conftest.er1
  6740. cat conftest.err >&5
  6741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6742. (exit $ac_status); } &&
  6743. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6744. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6745. (eval $ac_try) 2>&5
  6746. ac_status=$?
  6747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6748. (exit $ac_status); }; } &&
  6749. { ac_try='test -s conftest$ac_exeext'
  6750. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6751. (eval $ac_try) 2>&5
  6752. ac_status=$?
  6753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6754. (exit $ac_status); }; }; then
  6755. eval "$as_ac_var=yes"
  6756. else
  6757. echo "$as_me: failed program was:" >&5
  6758. sed 's/^/| /' conftest.$ac_ext >&5
  6759. eval "$as_ac_var=no"
  6760. fi
  6761. rm -f conftest.err conftest.$ac_objext \
  6762. conftest$ac_exeext conftest.$ac_ext
  6763. fi
  6764. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6765. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6766. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6767. cat >>confdefs.h <<_ACEOF
  6768. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6769. _ACEOF
  6770. x_io_backend=poll\(\)
  6771. else
  6772. { { echo "$as_me:$LINENO: error: Can't enable poll IO support!" >&5
  6773. echo "$as_me: error: Can't enable poll IO support!" >&2;}
  6774. { (exit 1); exit 1; }; }
  6775. fi
  6776. done
  6777. fi
  6778. else
  6779. for ac_func in poll
  6780. do
  6781. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6782. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6783. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6784. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6785. echo $ECHO_N "(cached) $ECHO_C" >&6
  6786. else
  6787. cat >conftest.$ac_ext <<_ACEOF
  6788. /* confdefs.h. */
  6789. _ACEOF
  6790. cat confdefs.h >>conftest.$ac_ext
  6791. cat >>conftest.$ac_ext <<_ACEOF
  6792. /* end confdefs.h. */
  6793. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6794. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6795. #define $ac_func innocuous_$ac_func
  6796. /* System header to define __stub macros and hopefully few prototypes,
  6797. which can conflict with char $ac_func (); below.
  6798. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6799. <limits.h> exists even on freestanding compilers. */
  6800. #ifdef __STDC__
  6801. # include <limits.h>
  6802. #else
  6803. # include <assert.h>
  6804. #endif
  6805. #undef $ac_func
  6806. /* Override any gcc2 internal prototype to avoid an error. */
  6807. #ifdef __cplusplus
  6808. extern "C"
  6809. {
  6810. #endif
  6811. /* We use char because int might match the return type of a gcc2
  6812. builtin and then its argument prototype would still apply. */
  6813. char $ac_func ();
  6814. /* The GNU C library defines this for functions which it implements
  6815. to always fail with ENOSYS. Some functions are actually named
  6816. something starting with __ and the normal name is an alias. */
  6817. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6818. choke me
  6819. #else
  6820. char (*f) () = $ac_func;
  6821. #endif
  6822. #ifdef __cplusplus
  6823. }
  6824. #endif
  6825. int
  6826. main ()
  6827. {
  6828. return f != $ac_func;
  6829. ;
  6830. return 0;
  6831. }
  6832. _ACEOF
  6833. rm -f conftest.$ac_objext conftest$ac_exeext
  6834. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6835. (eval $ac_link) 2>conftest.er1
  6836. ac_status=$?
  6837. grep -v '^ *+' conftest.er1 >conftest.err
  6838. rm -f conftest.er1
  6839. cat conftest.err >&5
  6840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6841. (exit $ac_status); } &&
  6842. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6843. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6844. (eval $ac_try) 2>&5
  6845. ac_status=$?
  6846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6847. (exit $ac_status); }; } &&
  6848. { ac_try='test -s conftest$ac_exeext'
  6849. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6850. (eval $ac_try) 2>&5
  6851. ac_status=$?
  6852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6853. (exit $ac_status); }; }; then
  6854. eval "$as_ac_var=yes"
  6855. else
  6856. echo "$as_me: failed program was:" >&5
  6857. sed 's/^/| /' conftest.$ac_ext >&5
  6858. eval "$as_ac_var=no"
  6859. fi
  6860. rm -f conftest.err conftest.$ac_objext \
  6861. conftest$ac_exeext conftest.$ac_ext
  6862. fi
  6863. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6864. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6865. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6866. cat >>confdefs.h <<_ACEOF
  6867. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6868. _ACEOF
  6869. x_io_backend=poll\(\)
  6870. fi
  6871. done
  6872. fi;
  6873. # Check whether --with-devpoll or --without-devpoll was given.
  6874. if test "${with_devpoll+set}" = set; then
  6875. withval="$with_devpoll"
  6876. if test "$withval" != "no"; then
  6877. if test "$withval" != "yes"; then
  6878. CFLAGS="-I$withval/include $CFLAGS"
  6879. CPPFLAGS="-I$withval/include $CPPFLAGS"
  6880. LDFLAGS="-L$withval/lib $LDFLAGS"
  6881. fi
  6882. for ac_header in sys/devpoll.h
  6883. do
  6884. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6885. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6886. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6887. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6888. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6889. echo $ECHO_N "(cached) $ECHO_C" >&6
  6890. fi
  6891. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6892. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6893. else
  6894. # Is the header compilable?
  6895. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6896. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6897. cat >conftest.$ac_ext <<_ACEOF
  6898. /* confdefs.h. */
  6899. _ACEOF
  6900. cat confdefs.h >>conftest.$ac_ext
  6901. cat >>conftest.$ac_ext <<_ACEOF
  6902. /* end confdefs.h. */
  6903. $ac_includes_default
  6904. #include <$ac_header>
  6905. _ACEOF
  6906. rm -f conftest.$ac_objext
  6907. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6908. (eval $ac_compile) 2>conftest.er1
  6909. ac_status=$?
  6910. grep -v '^ *+' conftest.er1 >conftest.err
  6911. rm -f conftest.er1
  6912. cat conftest.err >&5
  6913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6914. (exit $ac_status); } &&
  6915. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6916. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6917. (eval $ac_try) 2>&5
  6918. ac_status=$?
  6919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6920. (exit $ac_status); }; } &&
  6921. { ac_try='test -s conftest.$ac_objext'
  6922. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6923. (eval $ac_try) 2>&5
  6924. ac_status=$?
  6925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6926. (exit $ac_status); }; }; then
  6927. ac_header_compiler=yes
  6928. else
  6929. echo "$as_me: failed program was:" >&5
  6930. sed 's/^/| /' conftest.$ac_ext >&5
  6931. ac_header_compiler=no
  6932. fi
  6933. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6934. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6935. echo "${ECHO_T}$ac_header_compiler" >&6
  6936. # Is the header present?
  6937. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6938. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6939. cat >conftest.$ac_ext <<_ACEOF
  6940. /* confdefs.h. */
  6941. _ACEOF
  6942. cat confdefs.h >>conftest.$ac_ext
  6943. cat >>conftest.$ac_ext <<_ACEOF
  6944. /* end confdefs.h. */
  6945. #include <$ac_header>
  6946. _ACEOF
  6947. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6948. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6949. ac_status=$?
  6950. grep -v '^ *+' conftest.er1 >conftest.err
  6951. rm -f conftest.er1
  6952. cat conftest.err >&5
  6953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6954. (exit $ac_status); } >/dev/null; then
  6955. if test -s conftest.err; then
  6956. ac_cpp_err=$ac_c_preproc_warn_flag
  6957. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6958. else
  6959. ac_cpp_err=
  6960. fi
  6961. else
  6962. ac_cpp_err=yes
  6963. fi
  6964. if test -z "$ac_cpp_err"; then
  6965. ac_header_preproc=yes
  6966. else
  6967. echo "$as_me: failed program was:" >&5
  6968. sed 's/^/| /' conftest.$ac_ext >&5
  6969. ac_header_preproc=no
  6970. fi
  6971. rm -f conftest.err conftest.$ac_ext
  6972. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6973. echo "${ECHO_T}$ac_header_preproc" >&6
  6974. # So? What about this header?
  6975. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6976. yes:no: )
  6977. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6978. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6979. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6980. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6981. ac_header_preproc=yes
  6982. ;;
  6983. no:yes:* )
  6984. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6985. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6986. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6987. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6988. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6989. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6990. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6991. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6992. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6993. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6994. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6995. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6996. (
  6997. cat <<\_ASBOX
  6998. ## --------------------------------- ##
  6999. ## Report this to the ngircd lists. ##
  7000. ## --------------------------------- ##
  7001. _ASBOX
  7002. ) |
  7003. sed "s/^/$as_me: WARNING: /" >&2
  7004. ;;
  7005. esac
  7006. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7007. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7008. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7009. echo $ECHO_N "(cached) $ECHO_C" >&6
  7010. else
  7011. eval "$as_ac_Header=\$ac_header_preproc"
  7012. fi
  7013. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7014. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7015. fi
  7016. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7017. cat >>confdefs.h <<_ACEOF
  7018. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7019. _ACEOF
  7020. else
  7021. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  7022. echo "$as_me: error: required C header missing!" >&2;}
  7023. { (exit 1); exit 1; }; }
  7024. fi
  7025. done
  7026. fi
  7027. else
  7028. for ac_header in sys/devpoll.h
  7029. do
  7030. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7031. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7032. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7033. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7034. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7035. echo $ECHO_N "(cached) $ECHO_C" >&6
  7036. fi
  7037. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7038. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7039. else
  7040. # Is the header compilable?
  7041. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7042. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7043. cat >conftest.$ac_ext <<_ACEOF
  7044. /* confdefs.h. */
  7045. _ACEOF
  7046. cat confdefs.h >>conftest.$ac_ext
  7047. cat >>conftest.$ac_ext <<_ACEOF
  7048. /* end confdefs.h. */
  7049. $ac_includes_default
  7050. #include <$ac_header>
  7051. _ACEOF
  7052. rm -f conftest.$ac_objext
  7053. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7054. (eval $ac_compile) 2>conftest.er1
  7055. ac_status=$?
  7056. grep -v '^ *+' conftest.er1 >conftest.err
  7057. rm -f conftest.er1
  7058. cat conftest.err >&5
  7059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7060. (exit $ac_status); } &&
  7061. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7062. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7063. (eval $ac_try) 2>&5
  7064. ac_status=$?
  7065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7066. (exit $ac_status); }; } &&
  7067. { ac_try='test -s conftest.$ac_objext'
  7068. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7069. (eval $ac_try) 2>&5
  7070. ac_status=$?
  7071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7072. (exit $ac_status); }; }; then
  7073. ac_header_compiler=yes
  7074. else
  7075. echo "$as_me: failed program was:" >&5
  7076. sed 's/^/| /' conftest.$ac_ext >&5
  7077. ac_header_compiler=no
  7078. fi
  7079. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7080. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7081. echo "${ECHO_T}$ac_header_compiler" >&6
  7082. # Is the header present?
  7083. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7084. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7085. cat >conftest.$ac_ext <<_ACEOF
  7086. /* confdefs.h. */
  7087. _ACEOF
  7088. cat confdefs.h >>conftest.$ac_ext
  7089. cat >>conftest.$ac_ext <<_ACEOF
  7090. /* end confdefs.h. */
  7091. #include <$ac_header>
  7092. _ACEOF
  7093. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7094. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7095. ac_status=$?
  7096. grep -v '^ *+' conftest.er1 >conftest.err
  7097. rm -f conftest.er1
  7098. cat conftest.err >&5
  7099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7100. (exit $ac_status); } >/dev/null; then
  7101. if test -s conftest.err; then
  7102. ac_cpp_err=$ac_c_preproc_warn_flag
  7103. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7104. else
  7105. ac_cpp_err=
  7106. fi
  7107. else
  7108. ac_cpp_err=yes
  7109. fi
  7110. if test -z "$ac_cpp_err"; then
  7111. ac_header_preproc=yes
  7112. else
  7113. echo "$as_me: failed program was:" >&5
  7114. sed 's/^/| /' conftest.$ac_ext >&5
  7115. ac_header_preproc=no
  7116. fi
  7117. rm -f conftest.err conftest.$ac_ext
  7118. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7119. echo "${ECHO_T}$ac_header_preproc" >&6
  7120. # So? What about this header?
  7121. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7122. yes:no: )
  7123. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7124. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7125. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7126. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7127. ac_header_preproc=yes
  7128. ;;
  7129. no:yes:* )
  7130. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7131. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7132. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7133. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7134. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7135. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7136. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7137. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7138. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7139. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7140. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7141. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7142. (
  7143. cat <<\_ASBOX
  7144. ## --------------------------------- ##
  7145. ## Report this to the ngircd lists. ##
  7146. ## --------------------------------- ##
  7147. _ASBOX
  7148. ) |
  7149. sed "s/^/$as_me: WARNING: /" >&2
  7150. ;;
  7151. esac
  7152. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7153. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7154. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7155. echo $ECHO_N "(cached) $ECHO_C" >&6
  7156. else
  7157. eval "$as_ac_Header=\$ac_header_preproc"
  7158. fi
  7159. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7160. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7161. fi
  7162. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7163. cat >>confdefs.h <<_ACEOF
  7164. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7165. _ACEOF
  7166. x_io_backend=/dev/poll
  7167. fi
  7168. done
  7169. fi;
  7170. # Check whether --with-epoll or --without-epoll was given.
  7171. if test "${with_epoll+set}" = set; then
  7172. withval="$with_epoll"
  7173. if test "$withval" != "no"; then
  7174. if test "$withval" != "yes"; then
  7175. CFLAGS="-I$withval/include $CFLAGS"
  7176. CPPFLAGS="-I$withval/include $CPPFLAGS"
  7177. LDFLAGS="-L$withval/lib $LDFLAGS"
  7178. fi
  7179. for ac_func in epoll_create
  7180. do
  7181. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7182. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7183. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7184. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7185. echo $ECHO_N "(cached) $ECHO_C" >&6
  7186. else
  7187. cat >conftest.$ac_ext <<_ACEOF
  7188. /* confdefs.h. */
  7189. _ACEOF
  7190. cat confdefs.h >>conftest.$ac_ext
  7191. cat >>conftest.$ac_ext <<_ACEOF
  7192. /* end confdefs.h. */
  7193. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7194. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7195. #define $ac_func innocuous_$ac_func
  7196. /* System header to define __stub macros and hopefully few prototypes,
  7197. which can conflict with char $ac_func (); below.
  7198. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7199. <limits.h> exists even on freestanding compilers. */
  7200. #ifdef __STDC__
  7201. # include <limits.h>
  7202. #else
  7203. # include <assert.h>
  7204. #endif
  7205. #undef $ac_func
  7206. /* Override any gcc2 internal prototype to avoid an error. */
  7207. #ifdef __cplusplus
  7208. extern "C"
  7209. {
  7210. #endif
  7211. /* We use char because int might match the return type of a gcc2
  7212. builtin and then its argument prototype would still apply. */
  7213. char $ac_func ();
  7214. /* The GNU C library defines this for functions which it implements
  7215. to always fail with ENOSYS. Some functions are actually named
  7216. something starting with __ and the normal name is an alias. */
  7217. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7218. choke me
  7219. #else
  7220. char (*f) () = $ac_func;
  7221. #endif
  7222. #ifdef __cplusplus
  7223. }
  7224. #endif
  7225. int
  7226. main ()
  7227. {
  7228. return f != $ac_func;
  7229. ;
  7230. return 0;
  7231. }
  7232. _ACEOF
  7233. rm -f conftest.$ac_objext conftest$ac_exeext
  7234. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7235. (eval $ac_link) 2>conftest.er1
  7236. ac_status=$?
  7237. grep -v '^ *+' conftest.er1 >conftest.err
  7238. rm -f conftest.er1
  7239. cat conftest.err >&5
  7240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7241. (exit $ac_status); } &&
  7242. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7243. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7244. (eval $ac_try) 2>&5
  7245. ac_status=$?
  7246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7247. (exit $ac_status); }; } &&
  7248. { ac_try='test -s conftest$ac_exeext'
  7249. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7250. (eval $ac_try) 2>&5
  7251. ac_status=$?
  7252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7253. (exit $ac_status); }; }; then
  7254. eval "$as_ac_var=yes"
  7255. else
  7256. echo "$as_me: failed program was:" >&5
  7257. sed 's/^/| /' conftest.$ac_ext >&5
  7258. eval "$as_ac_var=no"
  7259. fi
  7260. rm -f conftest.err conftest.$ac_objext \
  7261. conftest$ac_exeext conftest.$ac_ext
  7262. fi
  7263. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7264. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7265. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7266. cat >>confdefs.h <<_ACEOF
  7267. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7268. _ACEOF
  7269. x_io_epoll=yes
  7270. else
  7271. { { echo "$as_me:$LINENO: error: Can't enable epoll IO support!" >&5
  7272. echo "$as_me: error: Can't enable epoll IO support!" >&2;}
  7273. { (exit 1); exit 1; }; }
  7274. fi
  7275. done
  7276. fi
  7277. else
  7278. for ac_func in epoll_create
  7279. do
  7280. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7281. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7282. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7283. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7284. echo $ECHO_N "(cached) $ECHO_C" >&6
  7285. else
  7286. cat >conftest.$ac_ext <<_ACEOF
  7287. /* confdefs.h. */
  7288. _ACEOF
  7289. cat confdefs.h >>conftest.$ac_ext
  7290. cat >>conftest.$ac_ext <<_ACEOF
  7291. /* end confdefs.h. */
  7292. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7293. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7294. #define $ac_func innocuous_$ac_func
  7295. /* System header to define __stub macros and hopefully few prototypes,
  7296. which can conflict with char $ac_func (); below.
  7297. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7298. <limits.h> exists even on freestanding compilers. */
  7299. #ifdef __STDC__
  7300. # include <limits.h>
  7301. #else
  7302. # include <assert.h>
  7303. #endif
  7304. #undef $ac_func
  7305. /* Override any gcc2 internal prototype to avoid an error. */
  7306. #ifdef __cplusplus
  7307. extern "C"
  7308. {
  7309. #endif
  7310. /* We use char because int might match the return type of a gcc2
  7311. builtin and then its argument prototype would still apply. */
  7312. char $ac_func ();
  7313. /* The GNU C library defines this for functions which it implements
  7314. to always fail with ENOSYS. Some functions are actually named
  7315. something starting with __ and the normal name is an alias. */
  7316. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7317. choke me
  7318. #else
  7319. char (*f) () = $ac_func;
  7320. #endif
  7321. #ifdef __cplusplus
  7322. }
  7323. #endif
  7324. int
  7325. main ()
  7326. {
  7327. return f != $ac_func;
  7328. ;
  7329. return 0;
  7330. }
  7331. _ACEOF
  7332. rm -f conftest.$ac_objext conftest$ac_exeext
  7333. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7334. (eval $ac_link) 2>conftest.er1
  7335. ac_status=$?
  7336. grep -v '^ *+' conftest.er1 >conftest.err
  7337. rm -f conftest.er1
  7338. cat conftest.err >&5
  7339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7340. (exit $ac_status); } &&
  7341. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7342. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7343. (eval $ac_try) 2>&5
  7344. ac_status=$?
  7345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7346. (exit $ac_status); }; } &&
  7347. { ac_try='test -s conftest$ac_exeext'
  7348. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7349. (eval $ac_try) 2>&5
  7350. ac_status=$?
  7351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7352. (exit $ac_status); }; }; then
  7353. eval "$as_ac_var=yes"
  7354. else
  7355. echo "$as_me: failed program was:" >&5
  7356. sed 's/^/| /' conftest.$ac_ext >&5
  7357. eval "$as_ac_var=no"
  7358. fi
  7359. rm -f conftest.err conftest.$ac_objext \
  7360. conftest$ac_exeext conftest.$ac_ext
  7361. fi
  7362. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7363. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7364. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7365. cat >>confdefs.h <<_ACEOF
  7366. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7367. _ACEOF
  7368. x_io_epoll=yes
  7369. fi
  7370. done
  7371. fi;
  7372. # Check whether --with-kqueue or --without-kqueue was given.
  7373. if test "${with_kqueue+set}" = set; then
  7374. withval="$with_kqueue"
  7375. if test "$withval" != "no"; then
  7376. if test "$withval" != "yes"; then
  7377. CFLAGS="-I$withval/include $CFLAGS"
  7378. CPPFLAGS="-I$withval/include $CPPFLAGS"
  7379. LDFLAGS="-L$withval/lib $LDFLAGS"
  7380. fi
  7381. for ac_func in kqueue
  7382. do
  7383. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7384. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7385. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7386. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7387. echo $ECHO_N "(cached) $ECHO_C" >&6
  7388. else
  7389. cat >conftest.$ac_ext <<_ACEOF
  7390. /* confdefs.h. */
  7391. _ACEOF
  7392. cat confdefs.h >>conftest.$ac_ext
  7393. cat >>conftest.$ac_ext <<_ACEOF
  7394. /* end confdefs.h. */
  7395. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7396. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7397. #define $ac_func innocuous_$ac_func
  7398. /* System header to define __stub macros and hopefully few prototypes,
  7399. which can conflict with char $ac_func (); below.
  7400. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7401. <limits.h> exists even on freestanding compilers. */
  7402. #ifdef __STDC__
  7403. # include <limits.h>
  7404. #else
  7405. # include <assert.h>
  7406. #endif
  7407. #undef $ac_func
  7408. /* Override any gcc2 internal prototype to avoid an error. */
  7409. #ifdef __cplusplus
  7410. extern "C"
  7411. {
  7412. #endif
  7413. /* We use char because int might match the return type of a gcc2
  7414. builtin and then its argument prototype would still apply. */
  7415. char $ac_func ();
  7416. /* The GNU C library defines this for functions which it implements
  7417. to always fail with ENOSYS. Some functions are actually named
  7418. something starting with __ and the normal name is an alias. */
  7419. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7420. choke me
  7421. #else
  7422. char (*f) () = $ac_func;
  7423. #endif
  7424. #ifdef __cplusplus
  7425. }
  7426. #endif
  7427. int
  7428. main ()
  7429. {
  7430. return f != $ac_func;
  7431. ;
  7432. return 0;
  7433. }
  7434. _ACEOF
  7435. rm -f conftest.$ac_objext conftest$ac_exeext
  7436. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7437. (eval $ac_link) 2>conftest.er1
  7438. ac_status=$?
  7439. grep -v '^ *+' conftest.er1 >conftest.err
  7440. rm -f conftest.er1
  7441. cat conftest.err >&5
  7442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7443. (exit $ac_status); } &&
  7444. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7445. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7446. (eval $ac_try) 2>&5
  7447. ac_status=$?
  7448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7449. (exit $ac_status); }; } &&
  7450. { ac_try='test -s conftest$ac_exeext'
  7451. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7452. (eval $ac_try) 2>&5
  7453. ac_status=$?
  7454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7455. (exit $ac_status); }; }; then
  7456. eval "$as_ac_var=yes"
  7457. else
  7458. echo "$as_me: failed program was:" >&5
  7459. sed 's/^/| /' conftest.$ac_ext >&5
  7460. eval "$as_ac_var=no"
  7461. fi
  7462. rm -f conftest.err conftest.$ac_objext \
  7463. conftest$ac_exeext conftest.$ac_ext
  7464. fi
  7465. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7466. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7467. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7468. cat >>confdefs.h <<_ACEOF
  7469. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7470. _ACEOF
  7471. x_io_backend=kqueue\(\)
  7472. else
  7473. { { echo "$as_me:$LINENO: error: Can't enable kqueue IO support!" >&5
  7474. echo "$as_me: error: Can't enable kqueue IO support!" >&2;}
  7475. { (exit 1); exit 1; }; }
  7476. fi
  7477. done
  7478. fi
  7479. else
  7480. for ac_func in kqueue
  7481. do
  7482. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7483. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7484. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7485. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7486. echo $ECHO_N "(cached) $ECHO_C" >&6
  7487. else
  7488. cat >conftest.$ac_ext <<_ACEOF
  7489. /* confdefs.h. */
  7490. _ACEOF
  7491. cat confdefs.h >>conftest.$ac_ext
  7492. cat >>conftest.$ac_ext <<_ACEOF
  7493. /* end confdefs.h. */
  7494. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7495. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7496. #define $ac_func innocuous_$ac_func
  7497. /* System header to define __stub macros and hopefully few prototypes,
  7498. which can conflict with char $ac_func (); below.
  7499. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7500. <limits.h> exists even on freestanding compilers. */
  7501. #ifdef __STDC__
  7502. # include <limits.h>
  7503. #else
  7504. # include <assert.h>
  7505. #endif
  7506. #undef $ac_func
  7507. /* Override any gcc2 internal prototype to avoid an error. */
  7508. #ifdef __cplusplus
  7509. extern "C"
  7510. {
  7511. #endif
  7512. /* We use char because int might match the return type of a gcc2
  7513. builtin and then its argument prototype would still apply. */
  7514. char $ac_func ();
  7515. /* The GNU C library defines this for functions which it implements
  7516. to always fail with ENOSYS. Some functions are actually named
  7517. something starting with __ and the normal name is an alias. */
  7518. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7519. choke me
  7520. #else
  7521. char (*f) () = $ac_func;
  7522. #endif
  7523. #ifdef __cplusplus
  7524. }
  7525. #endif
  7526. int
  7527. main ()
  7528. {
  7529. return f != $ac_func;
  7530. ;
  7531. return 0;
  7532. }
  7533. _ACEOF
  7534. rm -f conftest.$ac_objext conftest$ac_exeext
  7535. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7536. (eval $ac_link) 2>conftest.er1
  7537. ac_status=$?
  7538. grep -v '^ *+' conftest.er1 >conftest.err
  7539. rm -f conftest.er1
  7540. cat conftest.err >&5
  7541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7542. (exit $ac_status); } &&
  7543. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7544. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7545. (eval $ac_try) 2>&5
  7546. ac_status=$?
  7547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7548. (exit $ac_status); }; } &&
  7549. { ac_try='test -s conftest$ac_exeext'
  7550. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7551. (eval $ac_try) 2>&5
  7552. ac_status=$?
  7553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7554. (exit $ac_status); }; }; then
  7555. eval "$as_ac_var=yes"
  7556. else
  7557. echo "$as_me: failed program was:" >&5
  7558. sed 's/^/| /' conftest.$ac_ext >&5
  7559. eval "$as_ac_var=no"
  7560. fi
  7561. rm -f conftest.err conftest.$ac_objext \
  7562. conftest$ac_exeext conftest.$ac_ext
  7563. fi
  7564. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7565. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7566. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7567. cat >>confdefs.h <<_ACEOF
  7568. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7569. _ACEOF
  7570. x_io_backend=kqueue\(\)
  7571. fi
  7572. done
  7573. fi;
  7574. if test "$x_io_epoll" = "yes" -a "$x_io_select" = "yes"; then
  7575. # when epoll() and select() are available, we'll use both!
  7576. x_io_backend="epoll(), select()"
  7577. else
  7578. if test "$x_io_epoll" = "yes"; then
  7579. # we prefere epoll() if it is available
  7580. x_io_backend="epoll()"
  7581. else
  7582. if test "$x_io_select" = "yes" -a "$x_io_backend" = "none"; then
  7583. # we'll use select, when available and no "better"
  7584. # interface has been detected ...
  7585. x_io_backend="select()"
  7586. fi
  7587. fi
  7588. fi
  7589. if test "$x_io_backend" = "none"; then
  7590. { { echo "$as_me:$LINENO: error: No useabe IO API activated/found!?" >&5
  7591. echo "$as_me: error: No useabe IO API activated/found!?" >&2;}
  7592. { (exit 1); exit 1; }; }
  7593. fi
  7594. # use TCP wrappers?
  7595. x_tcpwrap_on=no
  7596. # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
  7597. if test "${with_tcp_wrappers+set}" = set; then
  7598. withval="$with_tcp_wrappers"
  7599. if test "$withval" != "no"; then
  7600. if test "$withval" != "yes"; then
  7601. CFLAGS="-I$withval/include $CFLAGS"
  7602. CPPFLAGS="-I$withval/include $CPPFLAGS"
  7603. LDFLAGS="-L$withval/lib $LDFLAGS"
  7604. fi
  7605. echo "$as_me:$LINENO: checking for hosts_access" >&5
  7606. echo $ECHO_N "checking for hosts_access... $ECHO_C" >&6
  7607. LIBS="-lwrap $LIBS"
  7608. cat >conftest.$ac_ext <<_ACEOF
  7609. /* confdefs.h. */
  7610. _ACEOF
  7611. cat confdefs.h >>conftest.$ac_ext
  7612. cat >>conftest.$ac_ext <<_ACEOF
  7613. /* end confdefs.h. */
  7614. #include <tcpd.h>
  7615. int allow_severity = 0;
  7616. int deny_severity = 0;
  7617. int
  7618. main ()
  7619. {
  7620. tcpd_warn("link test");
  7621. ;
  7622. return 0;
  7623. }
  7624. _ACEOF
  7625. rm -f conftest.$ac_objext conftest$ac_exeext
  7626. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7627. (eval $ac_link) 2>conftest.er1
  7628. ac_status=$?
  7629. grep -v '^ *+' conftest.er1 >conftest.err
  7630. rm -f conftest.er1
  7631. cat conftest.err >&5
  7632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7633. (exit $ac_status); } &&
  7634. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7635. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7636. (eval $ac_try) 2>&5
  7637. ac_status=$?
  7638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7639. (exit $ac_status); }; } &&
  7640. { ac_try='test -s conftest$ac_exeext'
  7641. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7642. (eval $ac_try) 2>&5
  7643. ac_status=$?
  7644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7645. (exit $ac_status); }; }; then
  7646. echo "$as_me:$LINENO: result: yes" >&5
  7647. echo "${ECHO_T}yes" >&6
  7648. cat >>confdefs.h <<\_ACEOF
  7649. #define TCPWRAP 1
  7650. _ACEOF
  7651. x_tcpwrap_on=yes
  7652. else
  7653. echo "$as_me: failed program was:" >&5
  7654. sed 's/^/| /' conftest.$ac_ext >&5
  7655. echo "$as_me:$LINENO: result: no" >&5
  7656. echo "${ECHO_T}no" >&6
  7657. { { echo "$as_me:$LINENO: error: Can't enable TCP wrappers!" >&5
  7658. echo "$as_me: error: Can't enable TCP wrappers!" >&2;}
  7659. { (exit 1); exit 1; }; }
  7660. fi
  7661. rm -f conftest.err conftest.$ac_objext \
  7662. conftest$ac_exeext conftest.$ac_ext
  7663. fi
  7664. fi;
  7665. # include support for "zeroconf"?
  7666. x_zeroconf_on=no
  7667. # Check whether --with-zeroconf or --without-zeroconf was given.
  7668. if test "${with_zeroconf+set}" = set; then
  7669. withval="$with_zeroconf"
  7670. if test "$withval" != "no"; then
  7671. if test "$withval" != "yes"; then
  7672. CFLAGS="-I$withval/include $CFLAGS"
  7673. CPPFLAGS="-I$withval/include $CPPFLAGS"
  7674. LDFLAGS="-L$withval/lib $LDFLAGS"
  7675. fi
  7676. for ac_func in DNSServiceRegistrationCreate
  7677. do
  7678. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7679. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7680. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7681. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7682. echo $ECHO_N "(cached) $ECHO_C" >&6
  7683. else
  7684. cat >conftest.$ac_ext <<_ACEOF
  7685. /* confdefs.h. */
  7686. _ACEOF
  7687. cat confdefs.h >>conftest.$ac_ext
  7688. cat >>conftest.$ac_ext <<_ACEOF
  7689. /* end confdefs.h. */
  7690. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7691. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7692. #define $ac_func innocuous_$ac_func
  7693. /* System header to define __stub macros and hopefully few prototypes,
  7694. which can conflict with char $ac_func (); below.
  7695. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7696. <limits.h> exists even on freestanding compilers. */
  7697. #ifdef __STDC__
  7698. # include <limits.h>
  7699. #else
  7700. # include <assert.h>
  7701. #endif
  7702. #undef $ac_func
  7703. /* Override any gcc2 internal prototype to avoid an error. */
  7704. #ifdef __cplusplus
  7705. extern "C"
  7706. {
  7707. #endif
  7708. /* We use char because int might match the return type of a gcc2
  7709. builtin and then its argument prototype would still apply. */
  7710. char $ac_func ();
  7711. /* The GNU C library defines this for functions which it implements
  7712. to always fail with ENOSYS. Some functions are actually named
  7713. something starting with __ and the normal name is an alias. */
  7714. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7715. choke me
  7716. #else
  7717. char (*f) () = $ac_func;
  7718. #endif
  7719. #ifdef __cplusplus
  7720. }
  7721. #endif
  7722. int
  7723. main ()
  7724. {
  7725. return f != $ac_func;
  7726. ;
  7727. return 0;
  7728. }
  7729. _ACEOF
  7730. rm -f conftest.$ac_objext conftest$ac_exeext
  7731. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7732. (eval $ac_link) 2>conftest.er1
  7733. ac_status=$?
  7734. grep -v '^ *+' conftest.er1 >conftest.err
  7735. rm -f conftest.er1
  7736. cat conftest.err >&5
  7737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7738. (exit $ac_status); } &&
  7739. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7740. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7741. (eval $ac_try) 2>&5
  7742. ac_status=$?
  7743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7744. (exit $ac_status); }; } &&
  7745. { ac_try='test -s conftest$ac_exeext'
  7746. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7747. (eval $ac_try) 2>&5
  7748. ac_status=$?
  7749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7750. (exit $ac_status); }; }; then
  7751. eval "$as_ac_var=yes"
  7752. else
  7753. echo "$as_me: failed program was:" >&5
  7754. sed 's/^/| /' conftest.$ac_ext >&5
  7755. eval "$as_ac_var=no"
  7756. fi
  7757. rm -f conftest.err conftest.$ac_objext \
  7758. conftest$ac_exeext conftest.$ac_ext
  7759. fi
  7760. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7761. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7762. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7763. cat >>confdefs.h <<_ACEOF
  7764. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7765. _ACEOF
  7766. x_zeroconf_on=osx
  7767. else
  7768. echo "$as_me:$LINENO: checking for pthread_mutexattr_init in -lpthread" >&5
  7769. echo $ECHO_N "checking for pthread_mutexattr_init in -lpthread... $ECHO_C" >&6
  7770. if test "${ac_cv_lib_pthread_pthread_mutexattr_init+set}" = set; then
  7771. echo $ECHO_N "(cached) $ECHO_C" >&6
  7772. else
  7773. ac_check_lib_save_LIBS=$LIBS
  7774. LIBS="-lpthread $LIBS"
  7775. cat >conftest.$ac_ext <<_ACEOF
  7776. /* confdefs.h. */
  7777. _ACEOF
  7778. cat confdefs.h >>conftest.$ac_ext
  7779. cat >>conftest.$ac_ext <<_ACEOF
  7780. /* end confdefs.h. */
  7781. /* Override any gcc2 internal prototype to avoid an error. */
  7782. #ifdef __cplusplus
  7783. extern "C"
  7784. #endif
  7785. /* We use char because int might match the return type of a gcc2
  7786. builtin and then its argument prototype would still apply. */
  7787. char pthread_mutexattr_init ();
  7788. int
  7789. main ()
  7790. {
  7791. pthread_mutexattr_init ();
  7792. ;
  7793. return 0;
  7794. }
  7795. _ACEOF
  7796. rm -f conftest.$ac_objext conftest$ac_exeext
  7797. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7798. (eval $ac_link) 2>conftest.er1
  7799. ac_status=$?
  7800. grep -v '^ *+' conftest.er1 >conftest.err
  7801. rm -f conftest.er1
  7802. cat conftest.err >&5
  7803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7804. (exit $ac_status); } &&
  7805. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7806. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7807. (eval $ac_try) 2>&5
  7808. ac_status=$?
  7809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7810. (exit $ac_status); }; } &&
  7811. { ac_try='test -s conftest$ac_exeext'
  7812. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7813. (eval $ac_try) 2>&5
  7814. ac_status=$?
  7815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7816. (exit $ac_status); }; }; then
  7817. ac_cv_lib_pthread_pthread_mutexattr_init=yes
  7818. else
  7819. echo "$as_me: failed program was:" >&5
  7820. sed 's/^/| /' conftest.$ac_ext >&5
  7821. ac_cv_lib_pthread_pthread_mutexattr_init=no
  7822. fi
  7823. rm -f conftest.err conftest.$ac_objext \
  7824. conftest$ac_exeext conftest.$ac_ext
  7825. LIBS=$ac_check_lib_save_LIBS
  7826. fi
  7827. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutexattr_init" >&5
  7828. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutexattr_init" >&6
  7829. if test $ac_cv_lib_pthread_pthread_mutexattr_init = yes; then
  7830. cat >>confdefs.h <<_ACEOF
  7831. #define HAVE_LIBPTHREAD 1
  7832. _ACEOF
  7833. LIBS="-lpthread $LIBS"
  7834. fi
  7835. echo "$as_me:$LINENO: checking for sw_discovery_init in -lhowl" >&5
  7836. echo $ECHO_N "checking for sw_discovery_init in -lhowl... $ECHO_C" >&6
  7837. if test "${ac_cv_lib_howl_sw_discovery_init+set}" = set; then
  7838. echo $ECHO_N "(cached) $ECHO_C" >&6
  7839. else
  7840. ac_check_lib_save_LIBS=$LIBS
  7841. LIBS="-lhowl $LIBS"
  7842. cat >conftest.$ac_ext <<_ACEOF
  7843. /* confdefs.h. */
  7844. _ACEOF
  7845. cat confdefs.h >>conftest.$ac_ext
  7846. cat >>conftest.$ac_ext <<_ACEOF
  7847. /* end confdefs.h. */
  7848. /* Override any gcc2 internal prototype to avoid an error. */
  7849. #ifdef __cplusplus
  7850. extern "C"
  7851. #endif
  7852. /* We use char because int might match the return type of a gcc2
  7853. builtin and then its argument prototype would still apply. */
  7854. char sw_discovery_init ();
  7855. int
  7856. main ()
  7857. {
  7858. sw_discovery_init ();
  7859. ;
  7860. return 0;
  7861. }
  7862. _ACEOF
  7863. rm -f conftest.$ac_objext conftest$ac_exeext
  7864. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7865. (eval $ac_link) 2>conftest.er1
  7866. ac_status=$?
  7867. grep -v '^ *+' conftest.er1 >conftest.err
  7868. rm -f conftest.er1
  7869. cat conftest.err >&5
  7870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7871. (exit $ac_status); } &&
  7872. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7873. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7874. (eval $ac_try) 2>&5
  7875. ac_status=$?
  7876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7877. (exit $ac_status); }; } &&
  7878. { ac_try='test -s conftest$ac_exeext'
  7879. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7880. (eval $ac_try) 2>&5
  7881. ac_status=$?
  7882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7883. (exit $ac_status); }; }; then
  7884. ac_cv_lib_howl_sw_discovery_init=yes
  7885. else
  7886. echo "$as_me: failed program was:" >&5
  7887. sed 's/^/| /' conftest.$ac_ext >&5
  7888. ac_cv_lib_howl_sw_discovery_init=no
  7889. fi
  7890. rm -f conftest.err conftest.$ac_objext \
  7891. conftest$ac_exeext conftest.$ac_ext
  7892. LIBS=$ac_check_lib_save_LIBS
  7893. fi
  7894. echo "$as_me:$LINENO: result: $ac_cv_lib_howl_sw_discovery_init" >&5
  7895. echo "${ECHO_T}$ac_cv_lib_howl_sw_discovery_init" >&6
  7896. if test $ac_cv_lib_howl_sw_discovery_init = yes; then
  7897. cat >>confdefs.h <<_ACEOF
  7898. #define HAVE_LIBHOWL 1
  7899. _ACEOF
  7900. LIBS="-lhowl $LIBS"
  7901. fi
  7902. for ac_func in sw_discovery_init
  7903. do
  7904. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7905. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7906. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7907. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7908. echo $ECHO_N "(cached) $ECHO_C" >&6
  7909. else
  7910. cat >conftest.$ac_ext <<_ACEOF
  7911. /* confdefs.h. */
  7912. _ACEOF
  7913. cat confdefs.h >>conftest.$ac_ext
  7914. cat >>conftest.$ac_ext <<_ACEOF
  7915. /* end confdefs.h. */
  7916. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7917. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7918. #define $ac_func innocuous_$ac_func
  7919. /* System header to define __stub macros and hopefully few prototypes,
  7920. which can conflict with char $ac_func (); below.
  7921. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7922. <limits.h> exists even on freestanding compilers. */
  7923. #ifdef __STDC__
  7924. # include <limits.h>
  7925. #else
  7926. # include <assert.h>
  7927. #endif
  7928. #undef $ac_func
  7929. /* Override any gcc2 internal prototype to avoid an error. */
  7930. #ifdef __cplusplus
  7931. extern "C"
  7932. {
  7933. #endif
  7934. /* We use char because int might match the return type of a gcc2
  7935. builtin and then its argument prototype would still apply. */
  7936. char $ac_func ();
  7937. /* The GNU C library defines this for functions which it implements
  7938. to always fail with ENOSYS. Some functions are actually named
  7939. something starting with __ and the normal name is an alias. */
  7940. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7941. choke me
  7942. #else
  7943. char (*f) () = $ac_func;
  7944. #endif
  7945. #ifdef __cplusplus
  7946. }
  7947. #endif
  7948. int
  7949. main ()
  7950. {
  7951. return f != $ac_func;
  7952. ;
  7953. return 0;
  7954. }
  7955. _ACEOF
  7956. rm -f conftest.$ac_objext conftest$ac_exeext
  7957. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7958. (eval $ac_link) 2>conftest.er1
  7959. ac_status=$?
  7960. grep -v '^ *+' conftest.er1 >conftest.err
  7961. rm -f conftest.er1
  7962. cat conftest.err >&5
  7963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7964. (exit $ac_status); } &&
  7965. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7966. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7967. (eval $ac_try) 2>&5
  7968. ac_status=$?
  7969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7970. (exit $ac_status); }; } &&
  7971. { ac_try='test -s conftest$ac_exeext'
  7972. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7973. (eval $ac_try) 2>&5
  7974. ac_status=$?
  7975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7976. (exit $ac_status); }; }; then
  7977. eval "$as_ac_var=yes"
  7978. else
  7979. echo "$as_me: failed program was:" >&5
  7980. sed 's/^/| /' conftest.$ac_ext >&5
  7981. eval "$as_ac_var=no"
  7982. fi
  7983. rm -f conftest.err conftest.$ac_objext \
  7984. conftest$ac_exeext conftest.$ac_ext
  7985. fi
  7986. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7987. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7988. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7989. cat >>confdefs.h <<_ACEOF
  7990. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7991. _ACEOF
  7992. \
  7993. x_zeroconf_on=howl
  7994. else
  7995. \
  7996. { { echo "$as_me:$LINENO: error: Can't enable Zeroconf!" >&5
  7997. echo "$as_me: error: Can't enable Zeroconf!" >&2;}
  7998. { (exit 1); exit 1; }; }
  7999. fi
  8000. done
  8001. fi
  8002. done
  8003. fi
  8004. fi;
  8005. if test "$x_zeroconf_on" = "osx"; then
  8006. for ac_header in DNSServiceDiscovery/DNSServiceDiscovery.h \
  8007. mach/port.h
  8008. do
  8009. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8010. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8011. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8012. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8013. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8014. echo $ECHO_N "(cached) $ECHO_C" >&6
  8015. fi
  8016. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8017. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8018. else
  8019. # Is the header compilable?
  8020. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8021. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8022. cat >conftest.$ac_ext <<_ACEOF
  8023. /* confdefs.h. */
  8024. _ACEOF
  8025. cat confdefs.h >>conftest.$ac_ext
  8026. cat >>conftest.$ac_ext <<_ACEOF
  8027. /* end confdefs.h. */
  8028. $ac_includes_default
  8029. #include <$ac_header>
  8030. _ACEOF
  8031. rm -f conftest.$ac_objext
  8032. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8033. (eval $ac_compile) 2>conftest.er1
  8034. ac_status=$?
  8035. grep -v '^ *+' conftest.er1 >conftest.err
  8036. rm -f conftest.er1
  8037. cat conftest.err >&5
  8038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8039. (exit $ac_status); } &&
  8040. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8041. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8042. (eval $ac_try) 2>&5
  8043. ac_status=$?
  8044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8045. (exit $ac_status); }; } &&
  8046. { ac_try='test -s conftest.$ac_objext'
  8047. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8048. (eval $ac_try) 2>&5
  8049. ac_status=$?
  8050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8051. (exit $ac_status); }; }; then
  8052. ac_header_compiler=yes
  8053. else
  8054. echo "$as_me: failed program was:" >&5
  8055. sed 's/^/| /' conftest.$ac_ext >&5
  8056. ac_header_compiler=no
  8057. fi
  8058. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8059. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8060. echo "${ECHO_T}$ac_header_compiler" >&6
  8061. # Is the header present?
  8062. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8063. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8064. cat >conftest.$ac_ext <<_ACEOF
  8065. /* confdefs.h. */
  8066. _ACEOF
  8067. cat confdefs.h >>conftest.$ac_ext
  8068. cat >>conftest.$ac_ext <<_ACEOF
  8069. /* end confdefs.h. */
  8070. #include <$ac_header>
  8071. _ACEOF
  8072. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8073. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8074. ac_status=$?
  8075. grep -v '^ *+' conftest.er1 >conftest.err
  8076. rm -f conftest.er1
  8077. cat conftest.err >&5
  8078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8079. (exit $ac_status); } >/dev/null; then
  8080. if test -s conftest.err; then
  8081. ac_cpp_err=$ac_c_preproc_warn_flag
  8082. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8083. else
  8084. ac_cpp_err=
  8085. fi
  8086. else
  8087. ac_cpp_err=yes
  8088. fi
  8089. if test -z "$ac_cpp_err"; then
  8090. ac_header_preproc=yes
  8091. else
  8092. echo "$as_me: failed program was:" >&5
  8093. sed 's/^/| /' conftest.$ac_ext >&5
  8094. ac_header_preproc=no
  8095. fi
  8096. rm -f conftest.err conftest.$ac_ext
  8097. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8098. echo "${ECHO_T}$ac_header_preproc" >&6
  8099. # So? What about this header?
  8100. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8101. yes:no: )
  8102. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8103. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8104. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8105. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8106. ac_header_preproc=yes
  8107. ;;
  8108. no:yes:* )
  8109. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8110. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8111. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8112. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8113. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8114. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8115. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8116. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8117. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8118. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8119. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8120. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8121. (
  8122. cat <<\_ASBOX
  8123. ## --------------------------------- ##
  8124. ## Report this to the ngircd lists. ##
  8125. ## --------------------------------- ##
  8126. _ASBOX
  8127. ) |
  8128. sed "s/^/$as_me: WARNING: /" >&2
  8129. ;;
  8130. esac
  8131. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8132. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8133. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8134. echo $ECHO_N "(cached) $ECHO_C" >&6
  8135. else
  8136. eval "$as_ac_Header=\$ac_header_preproc"
  8137. fi
  8138. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8139. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8140. fi
  8141. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8142. cat >>confdefs.h <<_ACEOF
  8143. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8144. _ACEOF
  8145. else
  8146. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  8147. echo "$as_me: error: required C header missing!" >&2;}
  8148. { (exit 1); exit 1; }; }
  8149. fi
  8150. done
  8151. cat >>confdefs.h <<\_ACEOF
  8152. #define ZEROCONF 1
  8153. _ACEOF
  8154. fi
  8155. if test "$x_zeroconf_on" = "howl"; then
  8156. for dir in /usr/local/include /usr/local/include/howl* \
  8157. /usr/include /usr/include/howl* \
  8158. /usr/local/include/avahi* /usr/include/avahi*; do
  8159. test -d "$dir" || continue
  8160. echo "$as_me:$LINENO: checking for Howl headers in $dir" >&5
  8161. echo $ECHO_N "checking for Howl headers in $dir... $ECHO_C" >&6
  8162. if test -f "$dir/rendezvous/rendezvous.h"; then
  8163. if test "$dir" != "/usr/local/include" -a \
  8164. "$dir" != "/usr/include"; then
  8165. CFLAGS="-I$dir $CFLAGS"
  8166. CPPFLAGS="-I$dir $CPPFLAGS"
  8167. fi
  8168. echo "$as_me:$LINENO: result: yes" >&5
  8169. echo "${ECHO_T}yes" >&6
  8170. break
  8171. else
  8172. echo "$as_me:$LINENO: result: no" >&5
  8173. echo "${ECHO_T}no" >&6
  8174. fi
  8175. done
  8176. for ac_header in rendezvous/rendezvous.h
  8177. do
  8178. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8179. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8180. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8181. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8182. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8183. echo $ECHO_N "(cached) $ECHO_C" >&6
  8184. fi
  8185. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8186. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8187. else
  8188. # Is the header compilable?
  8189. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8190. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8191. cat >conftest.$ac_ext <<_ACEOF
  8192. /* confdefs.h. */
  8193. _ACEOF
  8194. cat confdefs.h >>conftest.$ac_ext
  8195. cat >>conftest.$ac_ext <<_ACEOF
  8196. /* end confdefs.h. */
  8197. $ac_includes_default
  8198. #include <$ac_header>
  8199. _ACEOF
  8200. rm -f conftest.$ac_objext
  8201. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8202. (eval $ac_compile) 2>conftest.er1
  8203. ac_status=$?
  8204. grep -v '^ *+' conftest.er1 >conftest.err
  8205. rm -f conftest.er1
  8206. cat conftest.err >&5
  8207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8208. (exit $ac_status); } &&
  8209. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8210. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8211. (eval $ac_try) 2>&5
  8212. ac_status=$?
  8213. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8214. (exit $ac_status); }; } &&
  8215. { ac_try='test -s conftest.$ac_objext'
  8216. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8217. (eval $ac_try) 2>&5
  8218. ac_status=$?
  8219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8220. (exit $ac_status); }; }; then
  8221. ac_header_compiler=yes
  8222. else
  8223. echo "$as_me: failed program was:" >&5
  8224. sed 's/^/| /' conftest.$ac_ext >&5
  8225. ac_header_compiler=no
  8226. fi
  8227. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8228. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8229. echo "${ECHO_T}$ac_header_compiler" >&6
  8230. # Is the header present?
  8231. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8232. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8233. cat >conftest.$ac_ext <<_ACEOF
  8234. /* confdefs.h. */
  8235. _ACEOF
  8236. cat confdefs.h >>conftest.$ac_ext
  8237. cat >>conftest.$ac_ext <<_ACEOF
  8238. /* end confdefs.h. */
  8239. #include <$ac_header>
  8240. _ACEOF
  8241. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8242. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8243. ac_status=$?
  8244. grep -v '^ *+' conftest.er1 >conftest.err
  8245. rm -f conftest.er1
  8246. cat conftest.err >&5
  8247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8248. (exit $ac_status); } >/dev/null; then
  8249. if test -s conftest.err; then
  8250. ac_cpp_err=$ac_c_preproc_warn_flag
  8251. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8252. else
  8253. ac_cpp_err=
  8254. fi
  8255. else
  8256. ac_cpp_err=yes
  8257. fi
  8258. if test -z "$ac_cpp_err"; then
  8259. ac_header_preproc=yes
  8260. else
  8261. echo "$as_me: failed program was:" >&5
  8262. sed 's/^/| /' conftest.$ac_ext >&5
  8263. ac_header_preproc=no
  8264. fi
  8265. rm -f conftest.err conftest.$ac_ext
  8266. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8267. echo "${ECHO_T}$ac_header_preproc" >&6
  8268. # So? What about this header?
  8269. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8270. yes:no: )
  8271. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8272. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8273. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8274. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8275. ac_header_preproc=yes
  8276. ;;
  8277. no:yes:* )
  8278. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8279. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8280. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8281. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8282. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8283. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8284. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8285. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8286. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8287. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8288. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8289. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8290. (
  8291. cat <<\_ASBOX
  8292. ## --------------------------------- ##
  8293. ## Report this to the ngircd lists. ##
  8294. ## --------------------------------- ##
  8295. _ASBOX
  8296. ) |
  8297. sed "s/^/$as_me: WARNING: /" >&2
  8298. ;;
  8299. esac
  8300. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8301. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8302. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8303. echo $ECHO_N "(cached) $ECHO_C" >&6
  8304. else
  8305. eval "$as_ac_Header=\$ac_header_preproc"
  8306. fi
  8307. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8308. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8309. fi
  8310. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8311. cat >>confdefs.h <<_ACEOF
  8312. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8313. _ACEOF
  8314. else
  8315. \
  8316. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  8317. echo "$as_me: error: required C header missing!" >&2;}
  8318. { (exit 1); exit 1; }; }
  8319. fi
  8320. done
  8321. cat >>confdefs.h <<\_ACEOF
  8322. #define ZEROCONF 1
  8323. _ACEOF
  8324. fi
  8325. # do IDENT requests using libident?
  8326. x_identauth_on=no
  8327. # Check whether --with-ident or --without-ident was given.
  8328. if test "${with_ident+set}" = set; then
  8329. withval="$with_ident"
  8330. if test "$withval" != "no"; then
  8331. if test "$withval" != "yes"; then
  8332. CFLAGS="-I$withval/include $CFLAGS"
  8333. CPPFLAGS="-I$withval/include $CPPFLAGS"
  8334. LDFLAGS="-L$withval/lib $LDFLAGS"
  8335. fi
  8336. echo "$as_me:$LINENO: checking for ident_id in -lident" >&5
  8337. echo $ECHO_N "checking for ident_id in -lident... $ECHO_C" >&6
  8338. if test "${ac_cv_lib_ident_ident_id+set}" = set; then
  8339. echo $ECHO_N "(cached) $ECHO_C" >&6
  8340. else
  8341. ac_check_lib_save_LIBS=$LIBS
  8342. LIBS="-lident $LIBS"
  8343. cat >conftest.$ac_ext <<_ACEOF
  8344. /* confdefs.h. */
  8345. _ACEOF
  8346. cat confdefs.h >>conftest.$ac_ext
  8347. cat >>conftest.$ac_ext <<_ACEOF
  8348. /* end confdefs.h. */
  8349. /* Override any gcc2 internal prototype to avoid an error. */
  8350. #ifdef __cplusplus
  8351. extern "C"
  8352. #endif
  8353. /* We use char because int might match the return type of a gcc2
  8354. builtin and then its argument prototype would still apply. */
  8355. char ident_id ();
  8356. int
  8357. main ()
  8358. {
  8359. ident_id ();
  8360. ;
  8361. return 0;
  8362. }
  8363. _ACEOF
  8364. rm -f conftest.$ac_objext conftest$ac_exeext
  8365. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8366. (eval $ac_link) 2>conftest.er1
  8367. ac_status=$?
  8368. grep -v '^ *+' conftest.er1 >conftest.err
  8369. rm -f conftest.er1
  8370. cat conftest.err >&5
  8371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8372. (exit $ac_status); } &&
  8373. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8374. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8375. (eval $ac_try) 2>&5
  8376. ac_status=$?
  8377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8378. (exit $ac_status); }; } &&
  8379. { ac_try='test -s conftest$ac_exeext'
  8380. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8381. (eval $ac_try) 2>&5
  8382. ac_status=$?
  8383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8384. (exit $ac_status); }; }; then
  8385. ac_cv_lib_ident_ident_id=yes
  8386. else
  8387. echo "$as_me: failed program was:" >&5
  8388. sed 's/^/| /' conftest.$ac_ext >&5
  8389. ac_cv_lib_ident_ident_id=no
  8390. fi
  8391. rm -f conftest.err conftest.$ac_objext \
  8392. conftest$ac_exeext conftest.$ac_ext
  8393. LIBS=$ac_check_lib_save_LIBS
  8394. fi
  8395. echo "$as_me:$LINENO: result: $ac_cv_lib_ident_ident_id" >&5
  8396. echo "${ECHO_T}$ac_cv_lib_ident_ident_id" >&6
  8397. if test $ac_cv_lib_ident_ident_id = yes; then
  8398. cat >>confdefs.h <<_ACEOF
  8399. #define HAVE_LIBIDENT 1
  8400. _ACEOF
  8401. LIBS="-lident $LIBS"
  8402. fi
  8403. for ac_func in ident_id
  8404. do
  8405. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8406. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8407. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8408. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8409. echo $ECHO_N "(cached) $ECHO_C" >&6
  8410. else
  8411. cat >conftest.$ac_ext <<_ACEOF
  8412. /* confdefs.h. */
  8413. _ACEOF
  8414. cat confdefs.h >>conftest.$ac_ext
  8415. cat >>conftest.$ac_ext <<_ACEOF
  8416. /* end confdefs.h. */
  8417. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8418. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8419. #define $ac_func innocuous_$ac_func
  8420. /* System header to define __stub macros and hopefully few prototypes,
  8421. which can conflict with char $ac_func (); below.
  8422. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8423. <limits.h> exists even on freestanding compilers. */
  8424. #ifdef __STDC__
  8425. # include <limits.h>
  8426. #else
  8427. # include <assert.h>
  8428. #endif
  8429. #undef $ac_func
  8430. /* Override any gcc2 internal prototype to avoid an error. */
  8431. #ifdef __cplusplus
  8432. extern "C"
  8433. {
  8434. #endif
  8435. /* We use char because int might match the return type of a gcc2
  8436. builtin and then its argument prototype would still apply. */
  8437. char $ac_func ();
  8438. /* The GNU C library defines this for functions which it implements
  8439. to always fail with ENOSYS. Some functions are actually named
  8440. something starting with __ and the normal name is an alias. */
  8441. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8442. choke me
  8443. #else
  8444. char (*f) () = $ac_func;
  8445. #endif
  8446. #ifdef __cplusplus
  8447. }
  8448. #endif
  8449. int
  8450. main ()
  8451. {
  8452. return f != $ac_func;
  8453. ;
  8454. return 0;
  8455. }
  8456. _ACEOF
  8457. rm -f conftest.$ac_objext conftest$ac_exeext
  8458. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8459. (eval $ac_link) 2>conftest.er1
  8460. ac_status=$?
  8461. grep -v '^ *+' conftest.er1 >conftest.err
  8462. rm -f conftest.er1
  8463. cat conftest.err >&5
  8464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8465. (exit $ac_status); } &&
  8466. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8467. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8468. (eval $ac_try) 2>&5
  8469. ac_status=$?
  8470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8471. (exit $ac_status); }; } &&
  8472. { ac_try='test -s conftest$ac_exeext'
  8473. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8474. (eval $ac_try) 2>&5
  8475. ac_status=$?
  8476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8477. (exit $ac_status); }; }; then
  8478. eval "$as_ac_var=yes"
  8479. else
  8480. echo "$as_me: failed program was:" >&5
  8481. sed 's/^/| /' conftest.$ac_ext >&5
  8482. eval "$as_ac_var=no"
  8483. fi
  8484. rm -f conftest.err conftest.$ac_objext \
  8485. conftest$ac_exeext conftest.$ac_ext
  8486. fi
  8487. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8488. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8489. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8490. cat >>confdefs.h <<_ACEOF
  8491. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8492. _ACEOF
  8493. x_identauth_on=yes
  8494. else
  8495. { { echo "$as_me:$LINENO: error: Can't enable IDENT support!" >&5
  8496. echo "$as_me: error: Can't enable IDENT support!" >&2;}
  8497. { (exit 1); exit 1; }; }
  8498. fi
  8499. done
  8500. fi
  8501. fi;
  8502. if test "$x_identauth_on" = "yes"; then
  8503. cat >>confdefs.h <<\_ACEOF
  8504. #define IDENTAUTH 1
  8505. _ACEOF
  8506. for ac_header in ident.h
  8507. do
  8508. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8509. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8510. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8511. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8512. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8513. echo $ECHO_N "(cached) $ECHO_C" >&6
  8514. fi
  8515. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8516. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8517. else
  8518. # Is the header compilable?
  8519. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8520. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8521. cat >conftest.$ac_ext <<_ACEOF
  8522. /* confdefs.h. */
  8523. _ACEOF
  8524. cat confdefs.h >>conftest.$ac_ext
  8525. cat >>conftest.$ac_ext <<_ACEOF
  8526. /* end confdefs.h. */
  8527. $ac_includes_default
  8528. #include <$ac_header>
  8529. _ACEOF
  8530. rm -f conftest.$ac_objext
  8531. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8532. (eval $ac_compile) 2>conftest.er1
  8533. ac_status=$?
  8534. grep -v '^ *+' conftest.er1 >conftest.err
  8535. rm -f conftest.er1
  8536. cat conftest.err >&5
  8537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8538. (exit $ac_status); } &&
  8539. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8540. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8541. (eval $ac_try) 2>&5
  8542. ac_status=$?
  8543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8544. (exit $ac_status); }; } &&
  8545. { ac_try='test -s conftest.$ac_objext'
  8546. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8547. (eval $ac_try) 2>&5
  8548. ac_status=$?
  8549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8550. (exit $ac_status); }; }; then
  8551. ac_header_compiler=yes
  8552. else
  8553. echo "$as_me: failed program was:" >&5
  8554. sed 's/^/| /' conftest.$ac_ext >&5
  8555. ac_header_compiler=no
  8556. fi
  8557. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8558. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8559. echo "${ECHO_T}$ac_header_compiler" >&6
  8560. # Is the header present?
  8561. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8562. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8563. cat >conftest.$ac_ext <<_ACEOF
  8564. /* confdefs.h. */
  8565. _ACEOF
  8566. cat confdefs.h >>conftest.$ac_ext
  8567. cat >>conftest.$ac_ext <<_ACEOF
  8568. /* end confdefs.h. */
  8569. #include <$ac_header>
  8570. _ACEOF
  8571. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8572. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8573. ac_status=$?
  8574. grep -v '^ *+' conftest.er1 >conftest.err
  8575. rm -f conftest.er1
  8576. cat conftest.err >&5
  8577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8578. (exit $ac_status); } >/dev/null; then
  8579. if test -s conftest.err; then
  8580. ac_cpp_err=$ac_c_preproc_warn_flag
  8581. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8582. else
  8583. ac_cpp_err=
  8584. fi
  8585. else
  8586. ac_cpp_err=yes
  8587. fi
  8588. if test -z "$ac_cpp_err"; then
  8589. ac_header_preproc=yes
  8590. else
  8591. echo "$as_me: failed program was:" >&5
  8592. sed 's/^/| /' conftest.$ac_ext >&5
  8593. ac_header_preproc=no
  8594. fi
  8595. rm -f conftest.err conftest.$ac_ext
  8596. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8597. echo "${ECHO_T}$ac_header_preproc" >&6
  8598. # So? What about this header?
  8599. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8600. yes:no: )
  8601. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8602. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8603. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8604. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8605. ac_header_preproc=yes
  8606. ;;
  8607. no:yes:* )
  8608. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8609. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8610. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8611. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8612. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8613. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8614. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8615. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8616. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8617. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8618. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8619. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8620. (
  8621. cat <<\_ASBOX
  8622. ## --------------------------------- ##
  8623. ## Report this to the ngircd lists. ##
  8624. ## --------------------------------- ##
  8625. _ASBOX
  8626. ) |
  8627. sed "s/^/$as_me: WARNING: /" >&2
  8628. ;;
  8629. esac
  8630. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8631. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8632. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8633. echo $ECHO_N "(cached) $ECHO_C" >&6
  8634. else
  8635. eval "$as_ac_Header=\$ac_header_preproc"
  8636. fi
  8637. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8638. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8639. fi
  8640. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8641. cat >>confdefs.h <<_ACEOF
  8642. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8643. _ACEOF
  8644. else
  8645. { { echo "$as_me:$LINENO: error: required C header missing!" >&5
  8646. echo "$as_me: error: required C header missing!" >&2;}
  8647. { (exit 1); exit 1; }; }
  8648. fi
  8649. done
  8650. fi
  8651. # compile in IRC+ protocol support?
  8652. x_ircplus_on=yes
  8653. # Check whether --enable-ircplus or --disable-ircplus was given.
  8654. if test "${enable_ircplus+set}" = set; then
  8655. enableval="$enable_ircplus"
  8656. if test "$enableval" = "no"; then x_ircplus_on=no; fi
  8657. fi;
  8658. if test "$x_ircplus_on" = "yes"; then
  8659. cat >>confdefs.h <<\_ACEOF
  8660. #define IRCPLUS 1
  8661. _ACEOF
  8662. fi
  8663. # enable support for IPv6?
  8664. x_ipv6_on=no
  8665. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  8666. if test "${enable_ipv6+set}" = set; then
  8667. enableval="$enable_ipv6"
  8668. if test "$enableval" = "yes"; then x_ipv6_on=yes; fi
  8669. fi;
  8670. if test "$x_ipv6_on" = "yes"; then
  8671. for ac_func in \
  8672. getaddrinfo getnameinfo \
  8673. do
  8674. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8675. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8676. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8677. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8678. echo $ECHO_N "(cached) $ECHO_C" >&6
  8679. else
  8680. cat >conftest.$ac_ext <<_ACEOF
  8681. /* confdefs.h. */
  8682. _ACEOF
  8683. cat confdefs.h >>conftest.$ac_ext
  8684. cat >>conftest.$ac_ext <<_ACEOF
  8685. /* end confdefs.h. */
  8686. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8687. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8688. #define $ac_func innocuous_$ac_func
  8689. /* System header to define __stub macros and hopefully few prototypes,
  8690. which can conflict with char $ac_func (); below.
  8691. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8692. <limits.h> exists even on freestanding compilers. */
  8693. #ifdef __STDC__
  8694. # include <limits.h>
  8695. #else
  8696. # include <assert.h>
  8697. #endif
  8698. #undef $ac_func
  8699. /* Override any gcc2 internal prototype to avoid an error. */
  8700. #ifdef __cplusplus
  8701. extern "C"
  8702. {
  8703. #endif
  8704. /* We use char because int might match the return type of a gcc2
  8705. builtin and then its argument prototype would still apply. */
  8706. char $ac_func ();
  8707. /* The GNU C library defines this for functions which it implements
  8708. to always fail with ENOSYS. Some functions are actually named
  8709. something starting with __ and the normal name is an alias. */
  8710. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8711. choke me
  8712. #else
  8713. char (*f) () = $ac_func;
  8714. #endif
  8715. #ifdef __cplusplus
  8716. }
  8717. #endif
  8718. int
  8719. main ()
  8720. {
  8721. return f != $ac_func;
  8722. ;
  8723. return 0;
  8724. }
  8725. _ACEOF
  8726. rm -f conftest.$ac_objext conftest$ac_exeext
  8727. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8728. (eval $ac_link) 2>conftest.er1
  8729. ac_status=$?
  8730. grep -v '^ *+' conftest.er1 >conftest.err
  8731. rm -f conftest.er1
  8732. cat conftest.err >&5
  8733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8734. (exit $ac_status); } &&
  8735. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8736. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8737. (eval $ac_try) 2>&5
  8738. ac_status=$?
  8739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8740. (exit $ac_status); }; } &&
  8741. { ac_try='test -s conftest$ac_exeext'
  8742. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8743. (eval $ac_try) 2>&5
  8744. ac_status=$?
  8745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8746. (exit $ac_status); }; }; then
  8747. eval "$as_ac_var=yes"
  8748. else
  8749. echo "$as_me: failed program was:" >&5
  8750. sed 's/^/| /' conftest.$ac_ext >&5
  8751. eval "$as_ac_var=no"
  8752. fi
  8753. rm -f conftest.err conftest.$ac_objext \
  8754. conftest$ac_exeext conftest.$ac_ext
  8755. fi
  8756. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8757. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8758. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8759. cat >>confdefs.h <<_ACEOF
  8760. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8761. _ACEOF
  8762. else
  8763. { { echo "$as_me:$LINENO: error: required function missing for IPv6 support!" >&5
  8764. echo "$as_me: error: required function missing for IPv6 support!" >&2;}
  8765. { (exit 1); exit 1; }; }
  8766. fi
  8767. done
  8768. cat >>confdefs.h <<\_ACEOF
  8769. #define WANT_IPV6 1
  8770. _ACEOF
  8771. fi
  8772. # compile in IRC "sniffer"?
  8773. x_sniffer_on=no; x_debug_on=no
  8774. # Check whether --enable-sniffer or --disable-sniffer was given.
  8775. if test "${enable_sniffer+set}" = set; then
  8776. enableval="$enable_sniffer"
  8777. if test "$enableval" = "yes"; then
  8778. cat >>confdefs.h <<\_ACEOF
  8779. #define SNIFFER 1
  8780. _ACEOF
  8781. x_sniffer_on=yes; x_debug_on=yes
  8782. fi
  8783. fi;
  8784. # enable additional debugging code?
  8785. # Check whether --enable-debug or --disable-debug was given.
  8786. if test "${enable_debug+set}" = set; then
  8787. enableval="$enable_debug"
  8788. if test "$enableval" = "yes"; then x_debug_on=yes; fi
  8789. fi;
  8790. if test "$x_debug_on" = "yes"; then
  8791. cat >>confdefs.h <<\_ACEOF
  8792. #define DEBUG 1
  8793. _ACEOF
  8794. test "$GCC" = "yes" && CFLAGS="-pedantic $CFLAGS"
  8795. fi
  8796. # enable "strict RFC rules"?
  8797. x_strict_rfc_on=no
  8798. # Check whether --enable-strict-rfc or --disable-strict-rfc was given.
  8799. if test "${enable_strict_rfc+set}" = set; then
  8800. enableval="$enable_strict_rfc"
  8801. if test "$enableval" = "yes"; then
  8802. cat >>confdefs.h <<\_ACEOF
  8803. #define STRICT_RFC 1
  8804. _ACEOF
  8805. x_strict_rfc_on=yes
  8806. fi
  8807. fi;
  8808. # -- Definitions --
  8809. cat >>confdefs.h <<_ACEOF
  8810. #define TARGET_CPU "$target_cpu"
  8811. _ACEOF
  8812. cat >>confdefs.h <<_ACEOF
  8813. #define TARGET_VENDOR "$target_vendor"
  8814. _ACEOF
  8815. cat >>confdefs.h <<_ACEOF
  8816. #define TARGET_OS "$target_os"
  8817. _ACEOF
  8818. # Add additional CFLAGS, eventually specified on the command line, but after
  8819. # running this configure script. Useful for "-Werror" for example.
  8820. test -n "$CFLAGS_END" && CFLAGS="$CFLAGS $CFLAGS_END"
  8821. # -- Generate files --
  8822. ac_config_files="$ac_config_files Makefile doc/Makefile doc/src/Makefile src/Makefile src/portab/Makefile src/ipaddr/Makefile src/tool/Makefile src/ngircd/Makefile src/testsuite/Makefile man/Makefile contrib/Makefile contrib/Debian/Makefile contrib/MacOSX/Makefile contrib/MacOSX/ngIRCd.xcodeproj/Makefile"
  8823. cat >confcache <<\_ACEOF
  8824. # This file is a shell script that caches the results of configure
  8825. # tests run on this system so they can be shared between configure
  8826. # scripts and configure runs, see configure's option --config-cache.
  8827. # It is not useful on other systems. If it contains results you don't
  8828. # want to keep, you may remove or edit it.
  8829. #
  8830. # config.status only pays attention to the cache file if you give it
  8831. # the --recheck option to rerun configure.
  8832. #
  8833. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8834. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8835. # following values.
  8836. _ACEOF
  8837. # The following way of writing the cache mishandles newlines in values,
  8838. # but we know of no workaround that is simple, portable, and efficient.
  8839. # So, don't put newlines in cache variables' values.
  8840. # Ultrix sh set writes to stderr and can't be redirected directly,
  8841. # and sets the high bit in the cache file unless we assign to the vars.
  8842. {
  8843. (set) 2>&1 |
  8844. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8845. *ac_space=\ *)
  8846. # `set' does not quote correctly, so add quotes (double-quote
  8847. # substitution turns \\\\ into \\, and sed turns \\ into \).
  8848. sed -n \
  8849. "s/'/'\\\\''/g;
  8850. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8851. ;;
  8852. *)
  8853. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8854. sed -n \
  8855. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8856. ;;
  8857. esac;
  8858. } |
  8859. sed '
  8860. t clear
  8861. : clear
  8862. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8863. t end
  8864. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8865. : end' >>confcache
  8866. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  8867. if test -w $cache_file; then
  8868. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  8869. cat confcache >$cache_file
  8870. else
  8871. echo "not updating unwritable cache $cache_file"
  8872. fi
  8873. fi
  8874. rm -f confcache
  8875. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8876. # Let make expand exec_prefix.
  8877. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8878. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  8879. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  8880. # trailing colons and then remove the whole line if VPATH becomes empty
  8881. # (actually we leave an empty line to preserve line numbers).
  8882. if test "x$srcdir" = x.; then
  8883. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  8884. s/:*\$(srcdir):*/:/;
  8885. s/:*\${srcdir}:*/:/;
  8886. s/:*@srcdir@:*/:/;
  8887. s/^\([^=]*=[ ]*\):*/\1/;
  8888. s/:*$//;
  8889. s/^[^=]*=[ ]*$//;
  8890. }'
  8891. fi
  8892. DEFS=-DHAVE_CONFIG_H
  8893. ac_libobjs=
  8894. ac_ltlibobjs=
  8895. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8896. # 1. Remove the extension, and $U if already installed.
  8897. ac_i=`echo "$ac_i" |
  8898. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  8899. # 2. Add them.
  8900. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  8901. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  8902. done
  8903. LIBOBJS=$ac_libobjs
  8904. LTLIBOBJS=$ac_ltlibobjs
  8905. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  8906. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  8907. Usually this means the macro was only invoked conditionally." >&5
  8908. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  8909. Usually this means the macro was only invoked conditionally." >&2;}
  8910. { (exit 1); exit 1; }; }
  8911. fi
  8912. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  8913. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  8914. Usually this means the macro was only invoked conditionally." >&5
  8915. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  8916. Usually this means the macro was only invoked conditionally." >&2;}
  8917. { (exit 1); exit 1; }; }
  8918. fi
  8919. : ${CONFIG_STATUS=./config.status}
  8920. ac_clean_files_save=$ac_clean_files
  8921. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8922. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  8923. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8924. cat >$CONFIG_STATUS <<_ACEOF
  8925. #! $SHELL
  8926. # Generated by $as_me.
  8927. # Run this file to recreate the current configuration.
  8928. # Compiler output produced by configure, useful for debugging
  8929. # configure, is in config.log if it exists.
  8930. debug=false
  8931. ac_cs_recheck=false
  8932. ac_cs_silent=false
  8933. SHELL=\${CONFIG_SHELL-$SHELL}
  8934. _ACEOF
  8935. cat >>$CONFIG_STATUS <<\_ACEOF
  8936. ## --------------------- ##
  8937. ## M4sh Initialization. ##
  8938. ## --------------------- ##
  8939. # Be Bourne compatible
  8940. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  8941. emulate sh
  8942. NULLCMD=:
  8943. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  8944. # is contrary to our usage. Disable this feature.
  8945. alias -g '${1+"$@"}'='"$@"'
  8946. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  8947. set -o posix
  8948. fi
  8949. DUALCASE=1; export DUALCASE # for MKS sh
  8950. # Support unset when possible.
  8951. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  8952. as_unset=unset
  8953. else
  8954. as_unset=false
  8955. fi
  8956. # Work around bugs in pre-3.0 UWIN ksh.
  8957. $as_unset ENV MAIL MAILPATH
  8958. PS1='$ '
  8959. PS2='> '
  8960. PS4='+ '
  8961. # NLS nuisances.
  8962. for as_var in \
  8963. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  8964. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  8965. LC_TELEPHONE LC_TIME
  8966. do
  8967. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  8968. eval $as_var=C; export $as_var
  8969. else
  8970. $as_unset $as_var
  8971. fi
  8972. done
  8973. # Required to use basename.
  8974. if expr a : '\(a\)' >/dev/null 2>&1; then
  8975. as_expr=expr
  8976. else
  8977. as_expr=false
  8978. fi
  8979. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  8980. as_basename=basename
  8981. else
  8982. as_basename=false
  8983. fi
  8984. # Name of the executable.
  8985. as_me=`$as_basename "$0" ||
  8986. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8987. X"$0" : 'X\(//\)$' \| \
  8988. X"$0" : 'X\(/\)$' \| \
  8989. . : '\(.\)' 2>/dev/null ||
  8990. echo X/"$0" |
  8991. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  8992. /^X\/\(\/\/\)$/{ s//\1/; q; }
  8993. /^X\/\(\/\).*/{ s//\1/; q; }
  8994. s/.*/./; q'`
  8995. # PATH needs CR, and LINENO needs CR and PATH.
  8996. # Avoid depending upon Character Ranges.
  8997. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8998. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8999. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9000. as_cr_digits='0123456789'
  9001. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9002. # The user is always right.
  9003. if test "${PATH_SEPARATOR+set}" != set; then
  9004. echo "#! /bin/sh" >conf$$.sh
  9005. echo "exit 0" >>conf$$.sh
  9006. chmod +x conf$$.sh
  9007. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9008. PATH_SEPARATOR=';'
  9009. else
  9010. PATH_SEPARATOR=:
  9011. fi
  9012. rm -f conf$$.sh
  9013. fi
  9014. as_lineno_1=$LINENO
  9015. as_lineno_2=$LINENO
  9016. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  9017. test "x$as_lineno_1" != "x$as_lineno_2" &&
  9018. test "x$as_lineno_3" = "x$as_lineno_2" || {
  9019. # Find who we are. Look in the path if we contain no path at all
  9020. # relative or not.
  9021. case $0 in
  9022. *[\\/]* ) as_myself=$0 ;;
  9023. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9024. for as_dir in $PATH
  9025. do
  9026. IFS=$as_save_IFS
  9027. test -z "$as_dir" && as_dir=.
  9028. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9029. done
  9030. ;;
  9031. esac
  9032. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9033. # in which case we are not to be found in the path.
  9034. if test "x$as_myself" = x; then
  9035. as_myself=$0
  9036. fi
  9037. if test ! -f "$as_myself"; then
  9038. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  9039. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  9040. { (exit 1); exit 1; }; }
  9041. fi
  9042. case $CONFIG_SHELL in
  9043. '')
  9044. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9045. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  9046. do
  9047. IFS=$as_save_IFS
  9048. test -z "$as_dir" && as_dir=.
  9049. for as_base in sh bash ksh sh5; do
  9050. case $as_dir in
  9051. /*)
  9052. if ("$as_dir/$as_base" -c '
  9053. as_lineno_1=$LINENO
  9054. as_lineno_2=$LINENO
  9055. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  9056. test "x$as_lineno_1" != "x$as_lineno_2" &&
  9057. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  9058. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  9059. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  9060. CONFIG_SHELL=$as_dir/$as_base
  9061. export CONFIG_SHELL
  9062. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  9063. fi;;
  9064. esac
  9065. done
  9066. done
  9067. ;;
  9068. esac
  9069. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  9070. # uniformly replaced by the line number. The first 'sed' inserts a
  9071. # line-number line before each line; the second 'sed' does the real
  9072. # work. The second script uses 'N' to pair each line-number line
  9073. # with the numbered line, and appends trailing '-' during
  9074. # substitution so that $LINENO is not a special case at line end.
  9075. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  9076. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  9077. sed '=' <$as_myself |
  9078. sed '
  9079. N
  9080. s,$,-,
  9081. : loop
  9082. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  9083. t loop
  9084. s,-$,,
  9085. s,^['$as_cr_digits']*\n,,
  9086. ' >$as_me.lineno &&
  9087. chmod +x $as_me.lineno ||
  9088. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  9089. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  9090. { (exit 1); exit 1; }; }
  9091. # Don't try to exec as it changes $[0], causing all sort of problems
  9092. # (the dirname of $[0] is not the place where we might find the
  9093. # original and so on. Autoconf is especially sensible to this).
  9094. . ./$as_me.lineno
  9095. # Exit status is that of the last command.
  9096. exit
  9097. }
  9098. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  9099. *c*,-n*) ECHO_N= ECHO_C='
  9100. ' ECHO_T=' ' ;;
  9101. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  9102. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  9103. esac
  9104. if expr a : '\(a\)' >/dev/null 2>&1; then
  9105. as_expr=expr
  9106. else
  9107. as_expr=false
  9108. fi
  9109. rm -f conf$$ conf$$.exe conf$$.file
  9110. echo >conf$$.file
  9111. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9112. # We could just check for DJGPP; but this test a) works b) is more generic
  9113. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  9114. if test -f conf$$.exe; then
  9115. # Don't use ln at all; we don't have any links
  9116. as_ln_s='cp -p'
  9117. else
  9118. as_ln_s='ln -s'
  9119. fi
  9120. elif ln conf$$.file conf$$ 2>/dev/null; then
  9121. as_ln_s=ln
  9122. else
  9123. as_ln_s='cp -p'
  9124. fi
  9125. rm -f conf$$ conf$$.exe conf$$.file
  9126. if mkdir -p . 2>/dev/null; then
  9127. as_mkdir_p=:
  9128. else
  9129. test -d ./-p && rmdir ./-p
  9130. as_mkdir_p=false
  9131. fi
  9132. as_executable_p="test -f"
  9133. # Sed expression to map a string onto a valid CPP name.
  9134. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9135. # Sed expression to map a string onto a valid variable name.
  9136. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9137. # IFS
  9138. # We need space, tab and new line, in precisely that order.
  9139. as_nl='
  9140. '
  9141. IFS=" $as_nl"
  9142. # CDPATH.
  9143. $as_unset CDPATH
  9144. exec 6>&1
  9145. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  9146. # report actual input values of CONFIG_FILES etc. instead of their
  9147. # values after options handling. Logging --version etc. is OK.
  9148. exec 5>>config.log
  9149. {
  9150. echo
  9151. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9152. ## Running $as_me. ##
  9153. _ASBOX
  9154. } >&5
  9155. cat >&5 <<_CSEOF
  9156. This file was extended by ngircd $as_me 0.12.1, which was
  9157. generated by GNU Autoconf 2.59. Invocation command line was
  9158. CONFIG_FILES = $CONFIG_FILES
  9159. CONFIG_HEADERS = $CONFIG_HEADERS
  9160. CONFIG_LINKS = $CONFIG_LINKS
  9161. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9162. $ $0 $@
  9163. _CSEOF
  9164. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  9165. echo >&5
  9166. _ACEOF
  9167. # Files that config.status was made for.
  9168. if test -n "$ac_config_files"; then
  9169. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  9170. fi
  9171. if test -n "$ac_config_headers"; then
  9172. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  9173. fi
  9174. if test -n "$ac_config_links"; then
  9175. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  9176. fi
  9177. if test -n "$ac_config_commands"; then
  9178. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  9179. fi
  9180. cat >>$CONFIG_STATUS <<\_ACEOF
  9181. ac_cs_usage="\
  9182. \`$as_me' instantiates files from templates according to the
  9183. current configuration.
  9184. Usage: $0 [OPTIONS] [FILE]...
  9185. -h, --help print this help, then exit
  9186. -V, --version print version number, then exit
  9187. -q, --quiet do not print progress messages
  9188. -d, --debug don't remove temporary files
  9189. --recheck update $as_me by reconfiguring in the same conditions
  9190. --file=FILE[:TEMPLATE]
  9191. instantiate the configuration file FILE
  9192. --header=FILE[:TEMPLATE]
  9193. instantiate the configuration header FILE
  9194. Configuration files:
  9195. $config_files
  9196. Configuration headers:
  9197. $config_headers
  9198. Configuration commands:
  9199. $config_commands
  9200. Report bugs to <bug-autoconf@gnu.org>."
  9201. _ACEOF
  9202. cat >>$CONFIG_STATUS <<_ACEOF
  9203. ac_cs_version="\\
  9204. ngircd config.status 0.12.1
  9205. configured by $0, generated by GNU Autoconf 2.59,
  9206. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  9207. Copyright (C) 2003 Free Software Foundation, Inc.
  9208. This config.status script is free software; the Free Software Foundation
  9209. gives unlimited permission to copy, distribute and modify it."
  9210. srcdir=$srcdir
  9211. INSTALL="$INSTALL"
  9212. _ACEOF
  9213. cat >>$CONFIG_STATUS <<\_ACEOF
  9214. # If no file are specified by the user, then we need to provide default
  9215. # value. By we need to know if files were specified by the user.
  9216. ac_need_defaults=:
  9217. while test $# != 0
  9218. do
  9219. case $1 in
  9220. --*=*)
  9221. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  9222. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  9223. ac_shift=:
  9224. ;;
  9225. -*)
  9226. ac_option=$1
  9227. ac_optarg=$2
  9228. ac_shift=shift
  9229. ;;
  9230. *) # This is not an option, so the user has probably given explicit
  9231. # arguments.
  9232. ac_option=$1
  9233. ac_need_defaults=false;;
  9234. esac
  9235. case $ac_option in
  9236. # Handling of the options.
  9237. _ACEOF
  9238. cat >>$CONFIG_STATUS <<\_ACEOF
  9239. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9240. ac_cs_recheck=: ;;
  9241. --version | --vers* | -V )
  9242. echo "$ac_cs_version"; exit 0 ;;
  9243. --he | --h)
  9244. # Conflict between --help and --header
  9245. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  9246. Try \`$0 --help' for more information." >&5
  9247. echo "$as_me: error: ambiguous option: $1
  9248. Try \`$0 --help' for more information." >&2;}
  9249. { (exit 1); exit 1; }; };;
  9250. --help | --hel | -h )
  9251. echo "$ac_cs_usage"; exit 0 ;;
  9252. --debug | --d* | -d )
  9253. debug=: ;;
  9254. --file | --fil | --fi | --f )
  9255. $ac_shift
  9256. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  9257. ac_need_defaults=false;;
  9258. --header | --heade | --head | --hea )
  9259. $ac_shift
  9260. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  9261. ac_need_defaults=false;;
  9262. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9263. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9264. ac_cs_silent=: ;;
  9265. # This is an error.
  9266. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  9267. Try \`$0 --help' for more information." >&5
  9268. echo "$as_me: error: unrecognized option: $1
  9269. Try \`$0 --help' for more information." >&2;}
  9270. { (exit 1); exit 1; }; } ;;
  9271. *) ac_config_targets="$ac_config_targets $1" ;;
  9272. esac
  9273. shift
  9274. done
  9275. ac_configure_extra_args=
  9276. if $ac_cs_silent; then
  9277. exec 6>/dev/null
  9278. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9279. fi
  9280. _ACEOF
  9281. cat >>$CONFIG_STATUS <<_ACEOF
  9282. if \$ac_cs_recheck; then
  9283. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  9284. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9285. fi
  9286. _ACEOF
  9287. cat >>$CONFIG_STATUS <<_ACEOF
  9288. #
  9289. # INIT-COMMANDS section.
  9290. #
  9291. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  9292. _ACEOF
  9293. cat >>$CONFIG_STATUS <<\_ACEOF
  9294. for ac_config_target in $ac_config_targets
  9295. do
  9296. case "$ac_config_target" in
  9297. # Handling of arguments.
  9298. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  9299. "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  9300. "doc/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/src/Makefile" ;;
  9301. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  9302. "src/portab/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/portab/Makefile" ;;
  9303. "src/ipaddr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ipaddr/Makefile" ;;
  9304. "src/tool/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tool/Makefile" ;;
  9305. "src/ngircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ngircd/Makefile" ;;
  9306. "src/testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/testsuite/Makefile" ;;
  9307. "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  9308. "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
  9309. "contrib/Debian/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Debian/Makefile" ;;
  9310. "contrib/MacOSX/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/MacOSX/Makefile" ;;
  9311. "contrib/MacOSX/ngIRCd.xcodeproj/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/MacOSX/ngIRCd.xcodeproj/Makefile" ;;
  9312. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  9313. "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  9314. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  9315. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  9316. { (exit 1); exit 1; }; };;
  9317. esac
  9318. done
  9319. # If the user did not use the arguments to specify the items to instantiate,
  9320. # then the envvar interface is used. Set only those that are not.
  9321. # We use the long form for the default assignment because of an extremely
  9322. # bizarre bug on SunOS 4.1.3.
  9323. if $ac_need_defaults; then
  9324. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  9325. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  9326. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  9327. fi
  9328. # Have a temporary directory for convenience. Make it in the build tree
  9329. # simply because there is no reason to put it here, and in addition,
  9330. # creating and moving files from /tmp can sometimes cause problems.
  9331. # Create a temporary directory, and hook for its removal unless debugging.
  9332. $debug ||
  9333. {
  9334. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  9335. trap '{ (exit 1); exit 1; }' 1 2 13 15
  9336. }
  9337. # Create a (secure) tmp directory for tmp files.
  9338. {
  9339. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  9340. test -n "$tmp" && test -d "$tmp"
  9341. } ||
  9342. {
  9343. tmp=./confstat$$-$RANDOM
  9344. (umask 077 && mkdir $tmp)
  9345. } ||
  9346. {
  9347. echo "$me: cannot create a temporary directory in ." >&2
  9348. { (exit 1); exit 1; }
  9349. }
  9350. _ACEOF
  9351. cat >>$CONFIG_STATUS <<_ACEOF
  9352. #
  9353. # CONFIG_FILES section.
  9354. #
  9355. # No need to generate the scripts if there are no CONFIG_FILES.
  9356. # This happens for instance when ./config.status config.h
  9357. if test -n "\$CONFIG_FILES"; then
  9358. # Protect against being on the right side of a sed subst in config.status.
  9359. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  9360. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  9361. s,@SHELL@,$SHELL,;t t
  9362. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  9363. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  9364. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  9365. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  9366. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  9367. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  9368. s,@exec_prefix@,$exec_prefix,;t t
  9369. s,@prefix@,$prefix,;t t
  9370. s,@program_transform_name@,$program_transform_name,;t t
  9371. s,@bindir@,$bindir,;t t
  9372. s,@sbindir@,$sbindir,;t t
  9373. s,@libexecdir@,$libexecdir,;t t
  9374. s,@datadir@,$datadir,;t t
  9375. s,@sysconfdir@,$sysconfdir,;t t
  9376. s,@sharedstatedir@,$sharedstatedir,;t t
  9377. s,@localstatedir@,$localstatedir,;t t
  9378. s,@libdir@,$libdir,;t t
  9379. s,@includedir@,$includedir,;t t
  9380. s,@oldincludedir@,$oldincludedir,;t t
  9381. s,@infodir@,$infodir,;t t
  9382. s,@mandir@,$mandir,;t t
  9383. s,@build_alias@,$build_alias,;t t
  9384. s,@host_alias@,$host_alias,;t t
  9385. s,@target_alias@,$target_alias,;t t
  9386. s,@DEFS@,$DEFS,;t t
  9387. s,@ECHO_C@,$ECHO_C,;t t
  9388. s,@ECHO_N@,$ECHO_N,;t t
  9389. s,@ECHO_T@,$ECHO_T,;t t
  9390. s,@LIBS@,$LIBS,;t t
  9391. s,@build@,$build,;t t
  9392. s,@build_cpu@,$build_cpu,;t t
  9393. s,@build_vendor@,$build_vendor,;t t
  9394. s,@build_os@,$build_os,;t t
  9395. s,@host@,$host,;t t
  9396. s,@host_cpu@,$host_cpu,;t t
  9397. s,@host_vendor@,$host_vendor,;t t
  9398. s,@host_os@,$host_os,;t t
  9399. s,@target@,$target,;t t
  9400. s,@target_cpu@,$target_cpu,;t t
  9401. s,@target_vendor@,$target_vendor,;t t
  9402. s,@target_os@,$target_os,;t t
  9403. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  9404. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  9405. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  9406. s,@CYGPATH_W@,$CYGPATH_W,;t t
  9407. s,@PACKAGE@,$PACKAGE,;t t
  9408. s,@VERSION@,$VERSION,;t t
  9409. s,@ACLOCAL@,$ACLOCAL,;t t
  9410. s,@AUTOCONF@,$AUTOCONF,;t t
  9411. s,@AUTOMAKE@,$AUTOMAKE,;t t
  9412. s,@AUTOHEADER@,$AUTOHEADER,;t t
  9413. s,@MAKEINFO@,$MAKEINFO,;t t
  9414. s,@install_sh@,$install_sh,;t t
  9415. s,@STRIP@,$STRIP,;t t
  9416. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  9417. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  9418. s,@mkdir_p@,$mkdir_p,;t t
  9419. s,@AWK@,$AWK,;t t
  9420. s,@SET_MAKE@,$SET_MAKE,;t t
  9421. s,@am__leading_dot@,$am__leading_dot,;t t
  9422. s,@AMTAR@,$AMTAR,;t t
  9423. s,@am__tar@,$am__tar,;t t
  9424. s,@am__untar@,$am__untar,;t t
  9425. s,@CC@,$CC,;t t
  9426. s,@CFLAGS@,$CFLAGS,;t t
  9427. s,@LDFLAGS@,$LDFLAGS,;t t
  9428. s,@CPPFLAGS@,$CPPFLAGS,;t t
  9429. s,@ac_ct_CC@,$ac_ct_CC,;t t
  9430. s,@EXEEXT@,$EXEEXT,;t t
  9431. s,@OBJEXT@,$OBJEXT,;t t
  9432. s,@DEPDIR@,$DEPDIR,;t t
  9433. s,@am__include@,$am__include,;t t
  9434. s,@am__quote@,$am__quote,;t t
  9435. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  9436. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  9437. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  9438. s,@CCDEPMODE@,$CCDEPMODE,;t t
  9439. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  9440. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  9441. s,@LN_S@,$LN_S,;t t
  9442. s,@RANLIB@,$RANLIB,;t t
  9443. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  9444. s,@CPP@,$CPP,;t t
  9445. s,@EGREP@,$EGREP,;t t
  9446. s,@U@,$U,;t t
  9447. s,@ANSI2KNR@,$ANSI2KNR,;t t
  9448. s,@LIBOBJS@,$LIBOBJS,;t t
  9449. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  9450. CEOF
  9451. _ACEOF
  9452. cat >>$CONFIG_STATUS <<\_ACEOF
  9453. # Split the substitutions into bite-sized pieces for seds with
  9454. # small command number limits, like on Digital OSF/1 and HP-UX.
  9455. ac_max_sed_lines=48
  9456. ac_sed_frag=1 # Number of current file.
  9457. ac_beg=1 # First line for current file.
  9458. ac_end=$ac_max_sed_lines # Line after last line for current file.
  9459. ac_more_lines=:
  9460. ac_sed_cmds=
  9461. while $ac_more_lines; do
  9462. if test $ac_beg -gt 1; then
  9463. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  9464. else
  9465. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  9466. fi
  9467. if test ! -s $tmp/subs.frag; then
  9468. ac_more_lines=false
  9469. else
  9470. # The purpose of the label and of the branching condition is to
  9471. # speed up the sed processing (if there are no `@' at all, there
  9472. # is no need to browse any of the substitutions).
  9473. # These are the two extra sed commands mentioned above.
  9474. (echo ':t
  9475. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  9476. if test -z "$ac_sed_cmds"; then
  9477. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  9478. else
  9479. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  9480. fi
  9481. ac_sed_frag=`expr $ac_sed_frag + 1`
  9482. ac_beg=$ac_end
  9483. ac_end=`expr $ac_end + $ac_max_sed_lines`
  9484. fi
  9485. done
  9486. if test -z "$ac_sed_cmds"; then
  9487. ac_sed_cmds=cat
  9488. fi
  9489. fi # test -n "$CONFIG_FILES"
  9490. _ACEOF
  9491. cat >>$CONFIG_STATUS <<\_ACEOF
  9492. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  9493. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  9494. case $ac_file in
  9495. - | *:- | *:-:* ) # input from stdin
  9496. cat >$tmp/stdin
  9497. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9498. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9499. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9500. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9501. * ) ac_file_in=$ac_file.in ;;
  9502. esac
  9503. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  9504. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  9505. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9506. X"$ac_file" : 'X\(//\)[^/]' \| \
  9507. X"$ac_file" : 'X\(//\)$' \| \
  9508. X"$ac_file" : 'X\(/\)' \| \
  9509. . : '\(.\)' 2>/dev/null ||
  9510. echo X"$ac_file" |
  9511. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9512. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9513. /^X\(\/\/\)$/{ s//\1/; q; }
  9514. /^X\(\/\).*/{ s//\1/; q; }
  9515. s/.*/./; q'`
  9516. { if $as_mkdir_p; then
  9517. mkdir -p "$ac_dir"
  9518. else
  9519. as_dir="$ac_dir"
  9520. as_dirs=
  9521. while test ! -d "$as_dir"; do
  9522. as_dirs="$as_dir $as_dirs"
  9523. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  9524. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9525. X"$as_dir" : 'X\(//\)[^/]' \| \
  9526. X"$as_dir" : 'X\(//\)$' \| \
  9527. X"$as_dir" : 'X\(/\)' \| \
  9528. . : '\(.\)' 2>/dev/null ||
  9529. echo X"$as_dir" |
  9530. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9531. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9532. /^X\(\/\/\)$/{ s//\1/; q; }
  9533. /^X\(\/\).*/{ s//\1/; q; }
  9534. s/.*/./; q'`
  9535. done
  9536. test ! -n "$as_dirs" || mkdir $as_dirs
  9537. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  9538. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  9539. { (exit 1); exit 1; }; }; }
  9540. ac_builddir=.
  9541. if test "$ac_dir" != .; then
  9542. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  9543. # A "../" for each directory in $ac_dir_suffix.
  9544. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  9545. else
  9546. ac_dir_suffix= ac_top_builddir=
  9547. fi
  9548. case $srcdir in
  9549. .) # No --srcdir option. We are building in place.
  9550. ac_srcdir=.
  9551. if test -z "$ac_top_builddir"; then
  9552. ac_top_srcdir=.
  9553. else
  9554. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  9555. fi ;;
  9556. [\\/]* | ?:[\\/]* ) # Absolute path.
  9557. ac_srcdir=$srcdir$ac_dir_suffix;
  9558. ac_top_srcdir=$srcdir ;;
  9559. *) # Relative path.
  9560. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  9561. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  9562. esac
  9563. # Do not use `cd foo && pwd` to compute absolute paths, because
  9564. # the directories may not exist.
  9565. case `pwd` in
  9566. .) ac_abs_builddir="$ac_dir";;
  9567. *)
  9568. case "$ac_dir" in
  9569. .) ac_abs_builddir=`pwd`;;
  9570. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  9571. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  9572. esac;;
  9573. esac
  9574. case $ac_abs_builddir in
  9575. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  9576. *)
  9577. case ${ac_top_builddir}. in
  9578. .) ac_abs_top_builddir=$ac_abs_builddir;;
  9579. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  9580. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  9581. esac;;
  9582. esac
  9583. case $ac_abs_builddir in
  9584. .) ac_abs_srcdir=$ac_srcdir;;
  9585. *)
  9586. case $ac_srcdir in
  9587. .) ac_abs_srcdir=$ac_abs_builddir;;
  9588. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  9589. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  9590. esac;;
  9591. esac
  9592. case $ac_abs_builddir in
  9593. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  9594. *)
  9595. case $ac_top_srcdir in
  9596. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  9597. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  9598. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  9599. esac;;
  9600. esac
  9601. case $INSTALL in
  9602. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  9603. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  9604. esac
  9605. # Let's still pretend it is `configure' which instantiates (i.e., don't
  9606. # use $as_me), people would be surprised to read:
  9607. # /* config.h. Generated by config.status. */
  9608. if test x"$ac_file" = x-; then
  9609. configure_input=
  9610. else
  9611. configure_input="$ac_file. "
  9612. fi
  9613. configure_input=$configure_input"Generated from `echo $ac_file_in |
  9614. sed 's,.*/,,'` by configure."
  9615. # First look for the input files in the build tree, otherwise in the
  9616. # src tree.
  9617. ac_file_inputs=`IFS=:
  9618. for f in $ac_file_in; do
  9619. case $f in
  9620. -) echo $tmp/stdin ;;
  9621. [\\/$]*)
  9622. # Absolute (can't be DOS-style, as IFS=:)
  9623. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9624. echo "$as_me: error: cannot find input file: $f" >&2;}
  9625. { (exit 1); exit 1; }; }
  9626. echo "$f";;
  9627. *) # Relative
  9628. if test -f "$f"; then
  9629. # Build tree
  9630. echo "$f"
  9631. elif test -f "$srcdir/$f"; then
  9632. # Source tree
  9633. echo "$srcdir/$f"
  9634. else
  9635. # /dev/null tree
  9636. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9637. echo "$as_me: error: cannot find input file: $f" >&2;}
  9638. { (exit 1); exit 1; }; }
  9639. fi;;
  9640. esac
  9641. done` || { (exit 1); exit 1; }
  9642. if test x"$ac_file" != x-; then
  9643. { echo "$as_me:$LINENO: creating $ac_file" >&5
  9644. echo "$as_me: creating $ac_file" >&6;}
  9645. rm -f "$ac_file"
  9646. fi
  9647. _ACEOF
  9648. cat >>$CONFIG_STATUS <<_ACEOF
  9649. sed "$ac_vpsub
  9650. $extrasub
  9651. _ACEOF
  9652. cat >>$CONFIG_STATUS <<\_ACEOF
  9653. :t
  9654. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9655. s,@configure_input@,$configure_input,;t t
  9656. s,@srcdir@,$ac_srcdir,;t t
  9657. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  9658. s,@top_srcdir@,$ac_top_srcdir,;t t
  9659. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  9660. s,@builddir@,$ac_builddir,;t t
  9661. s,@abs_builddir@,$ac_abs_builddir,;t t
  9662. s,@top_builddir@,$ac_top_builddir,;t t
  9663. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  9664. s,@INSTALL@,$ac_INSTALL,;t t
  9665. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  9666. rm -f $tmp/stdin
  9667. if test x"$ac_file" != x-; then
  9668. mv $tmp/out $ac_file
  9669. else
  9670. cat $tmp/out
  9671. rm -f $tmp/out
  9672. fi
  9673. done
  9674. _ACEOF
  9675. cat >>$CONFIG_STATUS <<\_ACEOF
  9676. #
  9677. # CONFIG_HEADER section.
  9678. #
  9679. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  9680. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  9681. #
  9682. # ac_d sets the value in "#define NAME VALUE" lines.
  9683. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  9684. ac_dB='[ ].*$,\1#\2'
  9685. ac_dC=' '
  9686. ac_dD=',;t'
  9687. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  9688. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  9689. ac_uB='$,\1#\2define\3'
  9690. ac_uC=' '
  9691. ac_uD=',;t'
  9692. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  9693. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  9694. case $ac_file in
  9695. - | *:- | *:-:* ) # input from stdin
  9696. cat >$tmp/stdin
  9697. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9698. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9699. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9700. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9701. * ) ac_file_in=$ac_file.in ;;
  9702. esac
  9703. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  9704. echo "$as_me: creating $ac_file" >&6;}
  9705. # First look for the input files in the build tree, otherwise in the
  9706. # src tree.
  9707. ac_file_inputs=`IFS=:
  9708. for f in $ac_file_in; do
  9709. case $f in
  9710. -) echo $tmp/stdin ;;
  9711. [\\/$]*)
  9712. # Absolute (can't be DOS-style, as IFS=:)
  9713. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9714. echo "$as_me: error: cannot find input file: $f" >&2;}
  9715. { (exit 1); exit 1; }; }
  9716. # Do quote $f, to prevent DOS paths from being IFS'd.
  9717. echo "$f";;
  9718. *) # Relative
  9719. if test -f "$f"; then
  9720. # Build tree
  9721. echo "$f"
  9722. elif test -f "$srcdir/$f"; then
  9723. # Source tree
  9724. echo "$srcdir/$f"
  9725. else
  9726. # /dev/null tree
  9727. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9728. echo "$as_me: error: cannot find input file: $f" >&2;}
  9729. { (exit 1); exit 1; }; }
  9730. fi;;
  9731. esac
  9732. done` || { (exit 1); exit 1; }
  9733. # Remove the trailing spaces.
  9734. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  9735. _ACEOF
  9736. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  9737. # `conftest.undefs', that substitutes the proper values into
  9738. # config.h.in to produce config.h. The first handles `#define'
  9739. # templates, and the second `#undef' templates.
  9740. # And first: Protect against being on the right side of a sed subst in
  9741. # config.status. Protect against being in an unquoted here document
  9742. # in config.status.
  9743. rm -f conftest.defines conftest.undefs
  9744. # Using a here document instead of a string reduces the quoting nightmare.
  9745. # Putting comments in sed scripts is not portable.
  9746. #
  9747. # `end' is used to avoid that the second main sed command (meant for
  9748. # 0-ary CPP macros) applies to n-ary macro definitions.
  9749. # See the Autoconf documentation for `clear'.
  9750. cat >confdef2sed.sed <<\_ACEOF
  9751. s/[\\&,]/\\&/g
  9752. s,[\\$`],\\&,g
  9753. t clear
  9754. : clear
  9755. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  9756. t end
  9757. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  9758. : end
  9759. _ACEOF
  9760. # If some macros were called several times there might be several times
  9761. # the same #defines, which is useless. Nevertheless, we may not want to
  9762. # sort them, since we want the *last* AC-DEFINE to be honored.
  9763. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  9764. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  9765. rm -f confdef2sed.sed
  9766. # This sed command replaces #undef with comments. This is necessary, for
  9767. # example, in the case of _POSIX_SOURCE, which is predefined and required
  9768. # on some systems where configure will not decide to define it.
  9769. cat >>conftest.undefs <<\_ACEOF
  9770. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  9771. _ACEOF
  9772. # Break up conftest.defines because some shells have a limit on the size
  9773. # of here documents, and old seds have small limits too (100 cmds).
  9774. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  9775. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  9776. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  9777. echo ' :' >>$CONFIG_STATUS
  9778. rm -f conftest.tail
  9779. while grep . conftest.defines >/dev/null
  9780. do
  9781. # Write a limited-size here document to $tmp/defines.sed.
  9782. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  9783. # Speed up: don't consider the non `#define' lines.
  9784. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  9785. # Work around the forget-to-reset-the-flag bug.
  9786. echo 't clr' >>$CONFIG_STATUS
  9787. echo ': clr' >>$CONFIG_STATUS
  9788. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  9789. echo 'CEOF
  9790. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  9791. rm -f $tmp/in
  9792. mv $tmp/out $tmp/in
  9793. ' >>$CONFIG_STATUS
  9794. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  9795. rm -f conftest.defines
  9796. mv conftest.tail conftest.defines
  9797. done
  9798. rm -f conftest.defines
  9799. echo ' fi # grep' >>$CONFIG_STATUS
  9800. echo >>$CONFIG_STATUS
  9801. # Break up conftest.undefs because some shells have a limit on the size
  9802. # of here documents, and old seds have small limits too (100 cmds).
  9803. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  9804. rm -f conftest.tail
  9805. while grep . conftest.undefs >/dev/null
  9806. do
  9807. # Write a limited-size here document to $tmp/undefs.sed.
  9808. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  9809. # Speed up: don't consider the non `#undef'
  9810. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  9811. # Work around the forget-to-reset-the-flag bug.
  9812. echo 't clr' >>$CONFIG_STATUS
  9813. echo ': clr' >>$CONFIG_STATUS
  9814. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  9815. echo 'CEOF
  9816. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  9817. rm -f $tmp/in
  9818. mv $tmp/out $tmp/in
  9819. ' >>$CONFIG_STATUS
  9820. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  9821. rm -f conftest.undefs
  9822. mv conftest.tail conftest.undefs
  9823. done
  9824. rm -f conftest.undefs
  9825. cat >>$CONFIG_STATUS <<\_ACEOF
  9826. # Let's still pretend it is `configure' which instantiates (i.e., don't
  9827. # use $as_me), people would be surprised to read:
  9828. # /* config.h. Generated by config.status. */
  9829. if test x"$ac_file" = x-; then
  9830. echo "/* Generated by configure. */" >$tmp/config.h
  9831. else
  9832. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  9833. fi
  9834. cat $tmp/in >>$tmp/config.h
  9835. rm -f $tmp/in
  9836. if test x"$ac_file" != x-; then
  9837. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  9838. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  9839. echo "$as_me: $ac_file is unchanged" >&6;}
  9840. else
  9841. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  9842. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9843. X"$ac_file" : 'X\(//\)[^/]' \| \
  9844. X"$ac_file" : 'X\(//\)$' \| \
  9845. X"$ac_file" : 'X\(/\)' \| \
  9846. . : '\(.\)' 2>/dev/null ||
  9847. echo X"$ac_file" |
  9848. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9849. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9850. /^X\(\/\/\)$/{ s//\1/; q; }
  9851. /^X\(\/\).*/{ s//\1/; q; }
  9852. s/.*/./; q'`
  9853. { if $as_mkdir_p; then
  9854. mkdir -p "$ac_dir"
  9855. else
  9856. as_dir="$ac_dir"
  9857. as_dirs=
  9858. while test ! -d "$as_dir"; do
  9859. as_dirs="$as_dir $as_dirs"
  9860. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  9861. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9862. X"$as_dir" : 'X\(//\)[^/]' \| \
  9863. X"$as_dir" : 'X\(//\)$' \| \
  9864. X"$as_dir" : 'X\(/\)' \| \
  9865. . : '\(.\)' 2>/dev/null ||
  9866. echo X"$as_dir" |
  9867. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9868. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9869. /^X\(\/\/\)$/{ s//\1/; q; }
  9870. /^X\(\/\).*/{ s//\1/; q; }
  9871. s/.*/./; q'`
  9872. done
  9873. test ! -n "$as_dirs" || mkdir $as_dirs
  9874. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  9875. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  9876. { (exit 1); exit 1; }; }; }
  9877. rm -f $ac_file
  9878. mv $tmp/config.h $ac_file
  9879. fi
  9880. else
  9881. cat $tmp/config.h
  9882. rm -f $tmp/config.h
  9883. fi
  9884. # Compute $ac_file's index in $config_headers.
  9885. _am_stamp_count=1
  9886. for _am_header in $config_headers :; do
  9887. case $_am_header in
  9888. $ac_file | $ac_file:* )
  9889. break ;;
  9890. * )
  9891. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  9892. esac
  9893. done
  9894. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  9895. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9896. X$ac_file : 'X\(//\)[^/]' \| \
  9897. X$ac_file : 'X\(//\)$' \| \
  9898. X$ac_file : 'X\(/\)' \| \
  9899. . : '\(.\)' 2>/dev/null ||
  9900. echo X$ac_file |
  9901. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9902. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9903. /^X\(\/\/\)$/{ s//\1/; q; }
  9904. /^X\(\/\).*/{ s//\1/; q; }
  9905. s/.*/./; q'`/stamp-h$_am_stamp_count
  9906. done
  9907. _ACEOF
  9908. cat >>$CONFIG_STATUS <<\_ACEOF
  9909. #
  9910. # CONFIG_COMMANDS section.
  9911. #
  9912. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  9913. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  9914. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9915. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  9916. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9917. X"$ac_dest" : 'X\(//\)[^/]' \| \
  9918. X"$ac_dest" : 'X\(//\)$' \| \
  9919. X"$ac_dest" : 'X\(/\)' \| \
  9920. . : '\(.\)' 2>/dev/null ||
  9921. echo X"$ac_dest" |
  9922. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9923. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9924. /^X\(\/\/\)$/{ s//\1/; q; }
  9925. /^X\(\/\).*/{ s//\1/; q; }
  9926. s/.*/./; q'`
  9927. { if $as_mkdir_p; then
  9928. mkdir -p "$ac_dir"
  9929. else
  9930. as_dir="$ac_dir"
  9931. as_dirs=
  9932. while test ! -d "$as_dir"; do
  9933. as_dirs="$as_dir $as_dirs"
  9934. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  9935. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9936. X"$as_dir" : 'X\(//\)[^/]' \| \
  9937. X"$as_dir" : 'X\(//\)$' \| \
  9938. X"$as_dir" : 'X\(/\)' \| \
  9939. . : '\(.\)' 2>/dev/null ||
  9940. echo X"$as_dir" |
  9941. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9942. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9943. /^X\(\/\/\)$/{ s//\1/; q; }
  9944. /^X\(\/\).*/{ s//\1/; q; }
  9945. s/.*/./; q'`
  9946. done
  9947. test ! -n "$as_dirs" || mkdir $as_dirs
  9948. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  9949. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  9950. { (exit 1); exit 1; }; }; }
  9951. ac_builddir=.
  9952. if test "$ac_dir" != .; then
  9953. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  9954. # A "../" for each directory in $ac_dir_suffix.
  9955. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  9956. else
  9957. ac_dir_suffix= ac_top_builddir=
  9958. fi
  9959. case $srcdir in
  9960. .) # No --srcdir option. We are building in place.
  9961. ac_srcdir=.
  9962. if test -z "$ac_top_builddir"; then
  9963. ac_top_srcdir=.
  9964. else
  9965. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  9966. fi ;;
  9967. [\\/]* | ?:[\\/]* ) # Absolute path.
  9968. ac_srcdir=$srcdir$ac_dir_suffix;
  9969. ac_top_srcdir=$srcdir ;;
  9970. *) # Relative path.
  9971. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  9972. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  9973. esac
  9974. # Do not use `cd foo && pwd` to compute absolute paths, because
  9975. # the directories may not exist.
  9976. case `pwd` in
  9977. .) ac_abs_builddir="$ac_dir";;
  9978. *)
  9979. case "$ac_dir" in
  9980. .) ac_abs_builddir=`pwd`;;
  9981. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  9982. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  9983. esac;;
  9984. esac
  9985. case $ac_abs_builddir in
  9986. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  9987. *)
  9988. case ${ac_top_builddir}. in
  9989. .) ac_abs_top_builddir=$ac_abs_builddir;;
  9990. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  9991. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  9992. esac;;
  9993. esac
  9994. case $ac_abs_builddir in
  9995. .) ac_abs_srcdir=$ac_srcdir;;
  9996. *)
  9997. case $ac_srcdir in
  9998. .) ac_abs_srcdir=$ac_abs_builddir;;
  9999. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  10000. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  10001. esac;;
  10002. esac
  10003. case $ac_abs_builddir in
  10004. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  10005. *)
  10006. case $ac_top_srcdir in
  10007. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  10008. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  10009. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  10010. esac;;
  10011. esac
  10012. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  10013. echo "$as_me: executing $ac_dest commands" >&6;}
  10014. case $ac_dest in
  10015. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  10016. # Strip MF so we end up with the name of the file.
  10017. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10018. # Check whether this is an Automake generated Makefile or not.
  10019. # We used to match only the files named `Makefile.in', but
  10020. # some people rename them; so instead we look at the file content.
  10021. # Grep'ing the first line is not enough: some people post-process
  10022. # each Makefile.in and add a new line on top of each file to say so.
  10023. # So let's grep whole file.
  10024. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  10025. dirpart=`(dirname "$mf") 2>/dev/null ||
  10026. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10027. X"$mf" : 'X\(//\)[^/]' \| \
  10028. X"$mf" : 'X\(//\)$' \| \
  10029. X"$mf" : 'X\(/\)' \| \
  10030. . : '\(.\)' 2>/dev/null ||
  10031. echo X"$mf" |
  10032. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10033. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10034. /^X\(\/\/\)$/{ s//\1/; q; }
  10035. /^X\(\/\).*/{ s//\1/; q; }
  10036. s/.*/./; q'`
  10037. else
  10038. continue
  10039. fi
  10040. # Extract the definition of DEPDIR, am__include, and am__quote
  10041. # from the Makefile without running `make'.
  10042. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  10043. test -z "$DEPDIR" && continue
  10044. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  10045. test -z "am__include" && continue
  10046. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  10047. # When using ansi2knr, U may be empty or an underscore; expand it
  10048. U=`sed -n 's/^U = //p' < "$mf"`
  10049. # Find all dependency output files, they are included files with
  10050. # $(DEPDIR) in their names. We invoke sed twice because it is the
  10051. # simplest approach to changing $(DEPDIR) to its actual value in the
  10052. # expansion.
  10053. for file in `sed -n "
  10054. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  10055. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  10056. # Make sure the directory exists.
  10057. test -f "$dirpart/$file" && continue
  10058. fdir=`(dirname "$file") 2>/dev/null ||
  10059. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10060. X"$file" : 'X\(//\)[^/]' \| \
  10061. X"$file" : 'X\(//\)$' \| \
  10062. X"$file" : 'X\(/\)' \| \
  10063. . : '\(.\)' 2>/dev/null ||
  10064. echo X"$file" |
  10065. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10066. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10067. /^X\(\/\/\)$/{ s//\1/; q; }
  10068. /^X\(\/\).*/{ s//\1/; q; }
  10069. s/.*/./; q'`
  10070. { if $as_mkdir_p; then
  10071. mkdir -p $dirpart/$fdir
  10072. else
  10073. as_dir=$dirpart/$fdir
  10074. as_dirs=
  10075. while test ! -d "$as_dir"; do
  10076. as_dirs="$as_dir $as_dirs"
  10077. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  10078. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10079. X"$as_dir" : 'X\(//\)[^/]' \| \
  10080. X"$as_dir" : 'X\(//\)$' \| \
  10081. X"$as_dir" : 'X\(/\)' \| \
  10082. . : '\(.\)' 2>/dev/null ||
  10083. echo X"$as_dir" |
  10084. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10085. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10086. /^X\(\/\/\)$/{ s//\1/; q; }
  10087. /^X\(\/\).*/{ s//\1/; q; }
  10088. s/.*/./; q'`
  10089. done
  10090. test ! -n "$as_dirs" || mkdir $as_dirs
  10091. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  10092. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  10093. { (exit 1); exit 1; }; }; }
  10094. # echo "creating $dirpart/$file"
  10095. echo '# dummy' > "$dirpart/$file"
  10096. done
  10097. done
  10098. ;;
  10099. esac
  10100. done
  10101. _ACEOF
  10102. cat >>$CONFIG_STATUS <<\_ACEOF
  10103. { (exit 0); exit 0; }
  10104. _ACEOF
  10105. chmod +x $CONFIG_STATUS
  10106. ac_clean_files=$ac_clean_files_save
  10107. # configure is writing to config.log, and then calls config.status.
  10108. # config.status does its own redirection, appending to config.log.
  10109. # Unfortunately, on DOS this fails, as config.log is still kept open
  10110. # by configure, so config.status won't be able to write to it; its
  10111. # output is simply discarded. So we exec the FD to /dev/null,
  10112. # effectively closing config.log, so it can be properly (re)opened and
  10113. # appended to by config.status. When coming back to configure, we
  10114. # need to make the FD available again.
  10115. if test "$no_create" != yes; then
  10116. ac_cs_success=:
  10117. ac_config_status_args=
  10118. test "$silent" = yes &&
  10119. ac_config_status_args="$ac_config_status_args --quiet"
  10120. exec 5>/dev/null
  10121. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  10122. exec 5>>config.log
  10123. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10124. # would make configure fail if this is the last instruction.
  10125. $ac_cs_success || { (exit 1); exit 1; }
  10126. fi
  10127. type dpkg >/dev/null 2>&1
  10128. if test $? -eq 0; then
  10129. # Generate debian/ link if the dpkg command exists
  10130. # (read: if we are running on a debian compatible system)
  10131. echo "creating Debian-specific links ..."
  10132. test -f debian/rules || ln -s contrib/Debian debian
  10133. fi
  10134. # -- Result --
  10135. echo
  10136. echo "ngIRCd $PACKAGE_VERSION has been configured with the following options:"
  10137. echo
  10138. # Someone please show me a better way :) [borrowed by OpenSSH]
  10139. B=`eval echo ${bindir}` ; B=`eval echo ${B}`
  10140. S=`eval echo ${sbindir}` ; S=`eval echo ${S}`
  10141. C=`eval echo ${sysconfdir}` ; C=`eval echo ${C}`
  10142. M=`eval echo ${mandir}` ; M=`eval echo ${M}`
  10143. D=`eval echo ${datadir}/doc/${PACKAGE}` ; D=`eval echo ${D}`
  10144. echo " Target: ${target}"
  10145. test "$target" != "$host" && echo " Host: ${host}"
  10146. echo " Compiler: ${CC}"
  10147. test -n "$CFLAGS" && echo " Compiler flags: ${CFLAGS}"
  10148. test -n "$CPPFLAGS" && echo " Preprocessor flags: ${CPPFLAGS}"
  10149. test -n "$LDFLAGS" && echo " Linker flags: ${LDFLAGS}"
  10150. test -n "$LIBS" && echo " Libraries: ${LIBS}"
  10151. echo
  10152. echo " 'ngircd' binary: $S"
  10153. echo " Configuration file: $C"
  10154. echo " Manual pages: $M"
  10155. echo " Documentation: $D"
  10156. echo
  10157. echo $ECHO_N " Syslog support: $ECHO_C"
  10158. test "$x_syslog_on" = "yes" \
  10159. && echo $ECHO_N "yes $ECHO_C" \
  10160. || echo $ECHO_N "no $ECHO_C"
  10161. echo $ECHO_N " Enable debug code: $ECHO_C"
  10162. test "$x_debug_on" = "yes" \
  10163. && echo "yes" \
  10164. || echo "no"
  10165. echo $ECHO_N " zlib compression: $ECHO_C"
  10166. test "$x_zlib_on" = "yes" \
  10167. && echo $ECHO_N "yes $ECHO_C" \
  10168. || echo $ECHO_N "no $ECHO_C"
  10169. echo $ECHO_N " IRC sniffer: $ECHO_C"
  10170. test "$x_sniffer_on" = "yes" \
  10171. && echo "yes" \
  10172. || echo "no"
  10173. echo $ECHO_N " Use TCP Wrappers: $ECHO_C"
  10174. test "$x_tcpwrap_on" = "yes" \
  10175. && echo $ECHO_N "yes $ECHO_C" \
  10176. || echo $ECHO_N "no $ECHO_C"
  10177. echo $ECHO_N " Strict RFC mode: $ECHO_C"
  10178. test "$x_strict_rfc_on" = "yes" \
  10179. && echo "yes" \
  10180. || echo "no"
  10181. echo $ECHO_N " Zeroconf support: $ECHO_C"
  10182. case "$x_zeroconf_on" in
  10183. osx)
  10184. echo $ECHO_N "Apple $ECHO_C"
  10185. ;;
  10186. howl)
  10187. echo $ECHO_N "Howl $ECHO_C"
  10188. ;;
  10189. *)
  10190. echo $ECHO_N "no $ECHO_C"
  10191. ;;
  10192. esac
  10193. echo $ECHO_N " IRC+ protocol: $ECHO_C"
  10194. test "$x_ircplus_on" = "yes" \
  10195. && echo "yes" \
  10196. || echo "no"
  10197. echo $ECHO_N " IDENT support: $ECHO_C"
  10198. test "$x_identauth_on" = "yes" \
  10199. && echo $ECHO_N "yes $ECHO_C" \
  10200. || echo $ECHO_N "no $ECHO_C"
  10201. echo $ECHO_N " I/O backend: $ECHO_C"
  10202. echo "\"$x_io_backend\""
  10203. echo $ECHO_N " IPv6 protocol: $ECHO_C"
  10204. echo "$x_ipv6_on"
  10205. echo
  10206. # -eof-