configure 258 KB

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