configure 411 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.14 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.59.
  5. #
  6. # Copyright (C) 2003 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. #
  10. # Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be Bourne compatible
  15. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16. emulate sh
  17. NULLCMD=:
  18. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19. # is contrary to our usage. Disable this feature.
  20. alias -g '${1+"$@"}'='"$@"'
  21. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  22. set -o posix
  23. fi
  24. DUALCASE=1; export DUALCASE # for MKS sh
  25. # Support unset when possible.
  26. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  27. as_unset=unset
  28. else
  29. as_unset=false
  30. fi
  31. # Work around bugs in pre-3.0 UWIN ksh.
  32. $as_unset ENV MAIL MAILPATH
  33. PS1='$ '
  34. PS2='> '
  35. PS4='+ '
  36. # NLS nuisances.
  37. for as_var in \
  38. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  39. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  40. LC_TELEPHONE LC_TIME
  41. do
  42. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  43. eval $as_var=C; export $as_var
  44. else
  45. $as_unset $as_var
  46. fi
  47. done
  48. # Required to use basename.
  49. if expr a : '\(a\)' >/dev/null 2>&1; then
  50. as_expr=expr
  51. else
  52. as_expr=false
  53. fi
  54. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  55. as_basename=basename
  56. else
  57. as_basename=false
  58. fi
  59. # Name of the executable.
  60. as_me=`$as_basename "$0" ||
  61. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  62. X"$0" : 'X\(//\)$' \| \
  63. X"$0" : 'X\(/\)$' \| \
  64. . : '\(.\)' 2>/dev/null ||
  65. echo X/"$0" |
  66. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  67. /^X\/\(\/\/\)$/{ s//\1/; q; }
  68. /^X\/\(\/\).*/{ s//\1/; q; }
  69. s/.*/./; q'`
  70. # PATH needs CR, and LINENO needs CR and PATH.
  71. # Avoid depending upon Character Ranges.
  72. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  73. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  74. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  75. as_cr_digits='0123456789'
  76. as_cr_alnum=$as_cr_Letters$as_cr_digits
  77. # The user is always right.
  78. if test "${PATH_SEPARATOR+set}" != set; then
  79. echo "#! /bin/sh" >conf$$.sh
  80. echo "exit 0" >>conf$$.sh
  81. chmod +x conf$$.sh
  82. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  83. PATH_SEPARATOR=';'
  84. else
  85. PATH_SEPARATOR=:
  86. fi
  87. rm -f conf$$.sh
  88. fi
  89. as_lineno_1=$LINENO
  90. as_lineno_2=$LINENO
  91. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  92. test "x$as_lineno_1" != "x$as_lineno_2" &&
  93. test "x$as_lineno_3" = "x$as_lineno_2" || {
  94. # Find who we are. Look in the path if we contain no path at all
  95. # relative or not.
  96. case $0 in
  97. *[\\/]* ) as_myself=$0 ;;
  98. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  99. for as_dir in $PATH
  100. do
  101. IFS=$as_save_IFS
  102. test -z "$as_dir" && as_dir=.
  103. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  104. done
  105. ;;
  106. esac
  107. # We did not find ourselves, most probably we were run as `sh COMMAND'
  108. # in which case we are not to be found in the path.
  109. if test "x$as_myself" = x; then
  110. as_myself=$0
  111. fi
  112. if test ! -f "$as_myself"; then
  113. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  114. { (exit 1); exit 1; }; }
  115. fi
  116. case $CONFIG_SHELL in
  117. '')
  118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  119. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  120. do
  121. IFS=$as_save_IFS
  122. test -z "$as_dir" && as_dir=.
  123. for as_base in sh bash ksh sh5; do
  124. case $as_dir in
  125. /*)
  126. if ("$as_dir/$as_base" -c '
  127. as_lineno_1=$LINENO
  128. as_lineno_2=$LINENO
  129. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  130. test "x$as_lineno_1" != "x$as_lineno_2" &&
  131. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  132. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  133. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  134. CONFIG_SHELL=$as_dir/$as_base
  135. export CONFIG_SHELL
  136. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  137. fi;;
  138. esac
  139. done
  140. done
  141. ;;
  142. esac
  143. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  144. # uniformly replaced by the line number. The first 'sed' inserts a
  145. # line-number line before each line; the second 'sed' does the real
  146. # work. The second script uses 'N' to pair each line-number line
  147. # with the numbered line, and appends trailing '-' during
  148. # substitution so that $LINENO is not a special case at line end.
  149. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  150. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  151. sed '=' <$as_myself |
  152. sed '
  153. N
  154. s,$,-,
  155. : loop
  156. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  157. t loop
  158. s,-$,,
  159. s,^['$as_cr_digits']*\n,,
  160. ' >$as_me.lineno &&
  161. chmod +x $as_me.lineno ||
  162. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  163. { (exit 1); exit 1; }; }
  164. # Don't try to exec as it changes $[0], causing all sort of problems
  165. # (the dirname of $[0] is not the place where we might find the
  166. # original and so on. Autoconf is especially sensible to this).
  167. . ./$as_me.lineno
  168. # Exit status is that of the last command.
  169. exit
  170. }
  171. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  172. *c*,-n*) ECHO_N= ECHO_C='
  173. ' ECHO_T=' ' ;;
  174. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  175. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  176. esac
  177. if expr a : '\(a\)' >/dev/null 2>&1; then
  178. as_expr=expr
  179. else
  180. as_expr=false
  181. fi
  182. rm -f conf$$ conf$$.exe conf$$.file
  183. echo >conf$$.file
  184. if ln -s conf$$.file conf$$ 2>/dev/null; then
  185. # We could just check for DJGPP; but this test a) works b) is more generic
  186. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  187. if test -f conf$$.exe; then
  188. # Don't use ln at all; we don't have any links
  189. as_ln_s='cp -p'
  190. else
  191. as_ln_s='ln -s'
  192. fi
  193. elif ln conf$$.file conf$$ 2>/dev/null; then
  194. as_ln_s=ln
  195. else
  196. as_ln_s='cp -p'
  197. fi
  198. rm -f conf$$ conf$$.exe conf$$.file
  199. if mkdir -p . 2>/dev/null; then
  200. as_mkdir_p=:
  201. else
  202. test -d ./-p && rmdir ./-p
  203. as_mkdir_p=false
  204. fi
  205. as_executable_p="test -f"
  206. # Sed expression to map a string onto a valid CPP name.
  207. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  208. # Sed expression to map a string onto a valid variable name.
  209. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  210. # IFS
  211. # We need space, tab and new line, in precisely that order.
  212. as_nl='
  213. '
  214. IFS=" $as_nl"
  215. # CDPATH.
  216. $as_unset CDPATH
  217. # Name of the host.
  218. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  219. # so uname gets run too.
  220. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  221. exec 6>&1
  222. #
  223. # Initializations.
  224. #
  225. ac_default_prefix=/usr/local
  226. ac_config_libobj_dir=.
  227. cross_compiling=no
  228. subdirs=
  229. MFLAGS=
  230. MAKEFLAGS=
  231. SHELL=${CONFIG_SHELL-/bin/sh}
  232. # Maximum number of lines to put in a shell here document.
  233. # This variable seems obsolete. It should probably be removed, and
  234. # only ac_max_sed_lines should be used.
  235. : ${ac_max_here_lines=38}
  236. # Identity of this package.
  237. PACKAGE_NAME=
  238. PACKAGE_TARNAME=
  239. PACKAGE_VERSION=
  240. PACKAGE_STRING=
  241. PACKAGE_BUGREPORT=
  242. ac_unique_file="wraith"
  243. ac_unique_file="src/eggdrop.h"
  244. # Factoring default headers for most tests.
  245. ac_includes_default="\
  246. #include <stdio.h>
  247. #if HAVE_SYS_TYPES_H
  248. # include <sys/types.h>
  249. #endif
  250. #if HAVE_SYS_STAT_H
  251. # include <sys/stat.h>
  252. #endif
  253. #if STDC_HEADERS
  254. # include <stdlib.h>
  255. # include <stddef.h>
  256. #else
  257. # if HAVE_STDLIB_H
  258. # include <stdlib.h>
  259. # endif
  260. #endif
  261. #if HAVE_STRING_H
  262. # if !STDC_HEADERS && HAVE_MEMORY_H
  263. # include <memory.h>
  264. # endif
  265. # include <string.h>
  266. #endif
  267. #if HAVE_STRINGS_H
  268. # include <strings.h>
  269. #endif
  270. #if HAVE_INTTYPES_H
  271. # include <inttypes.h>
  272. #else
  273. # if HAVE_STDINT_H
  274. # include <stdint.h>
  275. # endif
  276. #endif
  277. #if HAVE_UNISTD_H
  278. # include <unistd.h>
  279. #endif"
  280. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS egg_ac_parameters CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CCDEPMODE CCDEBUG SET_MAKE HEAD_1 AWK BASENAME OBJCOPY STRIP UNAME DISTCC RESLIB RESINCLUDE ZLIB SSL LIBOBJS TCLLIB TCLLIBFN TCLINC TCLINCFN TCL_REQS TCL_LIBS VERSION NUMVER PACKNAME MOD_UPDIR LTLIBOBJS'
  281. ac_subst_files=''
  282. # Initialize some variables set by options.
  283. ac_init_help=
  284. ac_init_version=false
  285. # The variables have the same names as the options, with
  286. # dashes changed to underlines.
  287. cache_file=./config.cache
  288. exec_prefix=NONE
  289. no_create=
  290. no_recursion=
  291. prefix=NONE
  292. program_prefix=NONE
  293. program_suffix=NONE
  294. program_transform_name=s,x,x,
  295. silent=
  296. site=
  297. srcdir=
  298. verbose=
  299. x_includes=NONE
  300. x_libraries=NONE
  301. # Installation directory options.
  302. # These are left unexpanded so users can "make install exec_prefix=/foo"
  303. # and all the variables that are supposed to be based on exec_prefix
  304. # by default will actually change.
  305. # Use braces instead of parens because sh, perl, etc. also accept them.
  306. bindir='${exec_prefix}/bin'
  307. sbindir='${exec_prefix}/sbin'
  308. libexecdir='${exec_prefix}/libexec'
  309. datadir='${prefix}/share'
  310. sysconfdir='${prefix}/etc'
  311. sharedstatedir='${prefix}/com'
  312. localstatedir='${prefix}/var'
  313. libdir='${exec_prefix}/lib'
  314. includedir='${prefix}/include'
  315. oldincludedir='/usr/include'
  316. infodir='${prefix}/info'
  317. mandir='${prefix}/man'
  318. ac_prev=
  319. for ac_option
  320. do
  321. # If the previous option needs an argument, assign it.
  322. if test -n "$ac_prev"; then
  323. eval "$ac_prev=\$ac_option"
  324. ac_prev=
  325. continue
  326. fi
  327. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  328. # Accept the important Cygnus configure options, so we can diagnose typos.
  329. case $ac_option in
  330. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  331. ac_prev=bindir ;;
  332. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  333. bindir=$ac_optarg ;;
  334. -build | --build | --buil | --bui | --bu)
  335. ac_prev=build_alias ;;
  336. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  337. build_alias=$ac_optarg ;;
  338. -cache-file | --cache-file | --cache-fil | --cache-fi \
  339. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  340. ac_prev=cache_file ;;
  341. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  342. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  343. cache_file=$ac_optarg ;;
  344. --config-cache | -C)
  345. cache_file=config.cache ;;
  346. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  347. ac_prev=datadir ;;
  348. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  349. | --da=*)
  350. datadir=$ac_optarg ;;
  351. -disable-* | --disable-*)
  352. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  353. # Reject names that are not valid shell variable names.
  354. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  355. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  356. { (exit 1); exit 1; }; }
  357. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  358. eval "enable_$ac_feature=no" ;;
  359. -enable-* | --enable-*)
  360. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  361. # Reject names that are not valid shell variable names.
  362. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  363. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  364. { (exit 1); exit 1; }; }
  365. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  366. case $ac_option in
  367. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  368. *) ac_optarg=yes ;;
  369. esac
  370. eval "enable_$ac_feature='$ac_optarg'" ;;
  371. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  372. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  373. | --exec | --exe | --ex)
  374. ac_prev=exec_prefix ;;
  375. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  376. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  377. | --exec=* | --exe=* | --ex=*)
  378. exec_prefix=$ac_optarg ;;
  379. -gas | --gas | --ga | --g)
  380. # Obsolete; use --with-gas.
  381. with_gas=yes ;;
  382. -help | --help | --hel | --he | -h)
  383. ac_init_help=long ;;
  384. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  385. ac_init_help=recursive ;;
  386. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  387. ac_init_help=short ;;
  388. -host | --host | --hos | --ho)
  389. ac_prev=host_alias ;;
  390. -host=* | --host=* | --hos=* | --ho=*)
  391. host_alias=$ac_optarg ;;
  392. -includedir | --includedir | --includedi | --included | --include \
  393. | --includ | --inclu | --incl | --inc)
  394. ac_prev=includedir ;;
  395. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  396. | --includ=* | --inclu=* | --incl=* | --inc=*)
  397. includedir=$ac_optarg ;;
  398. -infodir | --infodir | --infodi | --infod | --info | --inf)
  399. ac_prev=infodir ;;
  400. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  401. infodir=$ac_optarg ;;
  402. -libdir | --libdir | --libdi | --libd)
  403. ac_prev=libdir ;;
  404. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  405. libdir=$ac_optarg ;;
  406. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  407. | --libexe | --libex | --libe)
  408. ac_prev=libexecdir ;;
  409. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  410. | --libexe=* | --libex=* | --libe=*)
  411. libexecdir=$ac_optarg ;;
  412. -localstatedir | --localstatedir | --localstatedi | --localstated \
  413. | --localstate | --localstat | --localsta | --localst \
  414. | --locals | --local | --loca | --loc | --lo)
  415. ac_prev=localstatedir ;;
  416. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  417. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  418. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  419. localstatedir=$ac_optarg ;;
  420. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  421. ac_prev=mandir ;;
  422. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  423. mandir=$ac_optarg ;;
  424. -nfp | --nfp | --nf)
  425. # Obsolete; use --without-fp.
  426. with_fp=no ;;
  427. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  428. | --no-cr | --no-c | -n)
  429. no_create=yes ;;
  430. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  431. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  432. no_recursion=yes ;;
  433. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  434. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  435. | --oldin | --oldi | --old | --ol | --o)
  436. ac_prev=oldincludedir ;;
  437. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  438. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  439. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  440. oldincludedir=$ac_optarg ;;
  441. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  442. ac_prev=prefix ;;
  443. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  444. prefix=$ac_optarg ;;
  445. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  446. | --program-pre | --program-pr | --program-p)
  447. ac_prev=program_prefix ;;
  448. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  449. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  450. program_prefix=$ac_optarg ;;
  451. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  452. | --program-suf | --program-su | --program-s)
  453. ac_prev=program_suffix ;;
  454. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  455. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  456. program_suffix=$ac_optarg ;;
  457. -program-transform-name | --program-transform-name \
  458. | --program-transform-nam | --program-transform-na \
  459. | --program-transform-n | --program-transform- \
  460. | --program-transform | --program-transfor \
  461. | --program-transfo | --program-transf \
  462. | --program-trans | --program-tran \
  463. | --progr-tra | --program-tr | --program-t)
  464. ac_prev=program_transform_name ;;
  465. -program-transform-name=* | --program-transform-name=* \
  466. | --program-transform-nam=* | --program-transform-na=* \
  467. | --program-transform-n=* | --program-transform-=* \
  468. | --program-transform=* | --program-transfor=* \
  469. | --program-transfo=* | --program-transf=* \
  470. | --program-trans=* | --program-tran=* \
  471. | --progr-tra=* | --program-tr=* | --program-t=*)
  472. program_transform_name=$ac_optarg ;;
  473. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  474. | -silent | --silent | --silen | --sile | --sil)
  475. silent=yes ;;
  476. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  477. ac_prev=sbindir ;;
  478. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  479. | --sbi=* | --sb=*)
  480. sbindir=$ac_optarg ;;
  481. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  482. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  483. | --sharedst | --shareds | --shared | --share | --shar \
  484. | --sha | --sh)
  485. ac_prev=sharedstatedir ;;
  486. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  487. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  488. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  489. | --sha=* | --sh=*)
  490. sharedstatedir=$ac_optarg ;;
  491. -site | --site | --sit)
  492. ac_prev=site ;;
  493. -site=* | --site=* | --sit=*)
  494. site=$ac_optarg ;;
  495. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  496. ac_prev=srcdir ;;
  497. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  498. srcdir=$ac_optarg ;;
  499. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  500. | --syscon | --sysco | --sysc | --sys | --sy)
  501. ac_prev=sysconfdir ;;
  502. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  503. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  504. sysconfdir=$ac_optarg ;;
  505. -target | --target | --targe | --targ | --tar | --ta | --t)
  506. ac_prev=target_alias ;;
  507. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  508. target_alias=$ac_optarg ;;
  509. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  510. verbose=yes ;;
  511. -version | --version | --versio | --versi | --vers | -V)
  512. ac_init_version=: ;;
  513. -with-* | --with-*)
  514. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  515. # Reject names that are not valid shell variable names.
  516. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  517. { echo "$as_me: error: invalid package name: $ac_package" >&2
  518. { (exit 1); exit 1; }; }
  519. ac_package=`echo $ac_package| sed 's/-/_/g'`
  520. case $ac_option in
  521. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  522. *) ac_optarg=yes ;;
  523. esac
  524. eval "with_$ac_package='$ac_optarg'" ;;
  525. -without-* | --without-*)
  526. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  527. # Reject names that are not valid shell variable names.
  528. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  529. { echo "$as_me: error: invalid package name: $ac_package" >&2
  530. { (exit 1); exit 1; }; }
  531. ac_package=`echo $ac_package | sed 's/-/_/g'`
  532. eval "with_$ac_package=no" ;;
  533. --x)
  534. # Obsolete; use --with-x.
  535. with_x=yes ;;
  536. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  537. | --x-incl | --x-inc | --x-in | --x-i)
  538. ac_prev=x_includes ;;
  539. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  540. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  541. x_includes=$ac_optarg ;;
  542. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  543. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  544. ac_prev=x_libraries ;;
  545. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  546. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  547. x_libraries=$ac_optarg ;;
  548. -*) { echo "$as_me: error: unrecognized option: $ac_option
  549. Try \`$0 --help' for more information." >&2
  550. { (exit 1); exit 1; }; }
  551. ;;
  552. *=*)
  553. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  554. # Reject names that are not valid shell variable names.
  555. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  556. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  557. { (exit 1); exit 1; }; }
  558. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  559. eval "$ac_envvar='$ac_optarg'"
  560. export $ac_envvar ;;
  561. *)
  562. # FIXME: should be removed in autoconf 3.0.
  563. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  564. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  565. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  566. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  567. ;;
  568. esac
  569. done
  570. if test -n "$ac_prev"; then
  571. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  572. { echo "$as_me: error: missing argument to $ac_option" >&2
  573. { (exit 1); exit 1; }; }
  574. fi
  575. # Be sure to have absolute paths.
  576. for ac_var in exec_prefix prefix
  577. do
  578. eval ac_val=$`echo $ac_var`
  579. case $ac_val in
  580. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  581. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  582. { (exit 1); exit 1; }; };;
  583. esac
  584. done
  585. # Be sure to have absolute paths.
  586. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  587. localstatedir libdir includedir oldincludedir infodir mandir
  588. do
  589. eval ac_val=$`echo $ac_var`
  590. case $ac_val in
  591. [\\/$]* | ?:[\\/]* ) ;;
  592. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  593. { (exit 1); exit 1; }; };;
  594. esac
  595. done
  596. # There might be people who depend on the old broken behavior: `$host'
  597. # used to hold the argument of --host etc.
  598. # FIXME: To remove some day.
  599. build=$build_alias
  600. host=$host_alias
  601. target=$target_alias
  602. # FIXME: To remove some day.
  603. if test "x$host_alias" != x; then
  604. if test "x$build_alias" = x; then
  605. cross_compiling=maybe
  606. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  607. If a cross compiler is detected then cross compile mode will be used." >&2
  608. elif test "x$build_alias" != "x$host_alias"; then
  609. cross_compiling=yes
  610. fi
  611. fi
  612. ac_tool_prefix=
  613. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  614. test "$silent" = yes && exec 6>/dev/null
  615. # Find the source files, if location was not specified.
  616. if test -z "$srcdir"; then
  617. ac_srcdir_defaulted=yes
  618. # Try the directory containing this script, then its parent.
  619. ac_confdir=`(dirname "$0") 2>/dev/null ||
  620. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  621. X"$0" : 'X\(//\)[^/]' \| \
  622. X"$0" : 'X\(//\)$' \| \
  623. X"$0" : 'X\(/\)' \| \
  624. . : '\(.\)' 2>/dev/null ||
  625. echo X"$0" |
  626. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  627. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  628. /^X\(\/\/\)$/{ s//\1/; q; }
  629. /^X\(\/\).*/{ s//\1/; q; }
  630. s/.*/./; q'`
  631. srcdir=$ac_confdir
  632. if test ! -r $srcdir/$ac_unique_file; then
  633. srcdir=..
  634. fi
  635. else
  636. ac_srcdir_defaulted=no
  637. fi
  638. if test ! -r $srcdir/$ac_unique_file; then
  639. if test "$ac_srcdir_defaulted" = yes; then
  640. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  641. { (exit 1); exit 1; }; }
  642. else
  643. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  644. { (exit 1); exit 1; }; }
  645. fi
  646. fi
  647. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  648. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  649. { (exit 1); exit 1; }; }
  650. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  651. ac_env_build_alias_set=${build_alias+set}
  652. ac_env_build_alias_value=$build_alias
  653. ac_cv_env_build_alias_set=${build_alias+set}
  654. ac_cv_env_build_alias_value=$build_alias
  655. ac_env_host_alias_set=${host_alias+set}
  656. ac_env_host_alias_value=$host_alias
  657. ac_cv_env_host_alias_set=${host_alias+set}
  658. ac_cv_env_host_alias_value=$host_alias
  659. ac_env_target_alias_set=${target_alias+set}
  660. ac_env_target_alias_value=$target_alias
  661. ac_cv_env_target_alias_set=${target_alias+set}
  662. ac_cv_env_target_alias_value=$target_alias
  663. ac_env_CC_set=${CC+set}
  664. ac_env_CC_value=$CC
  665. ac_cv_env_CC_set=${CC+set}
  666. ac_cv_env_CC_value=$CC
  667. ac_env_CFLAGS_set=${CFLAGS+set}
  668. ac_env_CFLAGS_value=$CFLAGS
  669. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  670. ac_cv_env_CFLAGS_value=$CFLAGS
  671. ac_env_LDFLAGS_set=${LDFLAGS+set}
  672. ac_env_LDFLAGS_value=$LDFLAGS
  673. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  674. ac_cv_env_LDFLAGS_value=$LDFLAGS
  675. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  676. ac_env_CPPFLAGS_value=$CPPFLAGS
  677. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  678. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  679. ac_env_CPP_set=${CPP+set}
  680. ac_env_CPP_value=$CPP
  681. ac_cv_env_CPP_set=${CPP+set}
  682. ac_cv_env_CPP_value=$CPP
  683. #
  684. # Report the --help message.
  685. #
  686. if test "$ac_init_help" = "long"; then
  687. # Omit some internal or obsolete options to make the list less imposing.
  688. # This message is too long to be a string in the A/UX 3.1 sh.
  689. cat <<_ACEOF
  690. \`configure' configures this package to adapt to many kinds of systems.
  691. Usage: $0 [OPTION]... [VAR=VALUE]...
  692. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  693. VAR=VALUE. See below for descriptions of some of the useful variables.
  694. Defaults for the options are specified in brackets.
  695. Configuration:
  696. -h, --help display this help and exit
  697. --help=short display options specific to this package
  698. --help=recursive display the short help of all the included packages
  699. -V, --version display version information and exit
  700. -q, --quiet, --silent do not print \`checking...' messages
  701. --cache-file=FILE cache test results in FILE [disabled]
  702. -C, --config-cache alias for \`--cache-file=config.cache'
  703. -n, --no-create do not create output files
  704. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  705. _ACEOF
  706. cat <<_ACEOF
  707. Installation directories:
  708. --prefix=PREFIX install architecture-independent files in PREFIX
  709. [$ac_default_prefix]
  710. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  711. [PREFIX]
  712. By default, \`make install' will install all the files in
  713. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  714. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  715. for instance \`--prefix=\$HOME'.
  716. For better control, use the options below.
  717. Fine tuning of the installation directories:
  718. --bindir=DIR user executables [EPREFIX/bin]
  719. --sbindir=DIR system admin executables [EPREFIX/sbin]
  720. --libexecdir=DIR program executables [EPREFIX/libexec]
  721. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  722. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  723. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  724. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  725. --libdir=DIR object code libraries [EPREFIX/lib]
  726. --includedir=DIR C header files [PREFIX/include]
  727. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  728. --infodir=DIR info documentation [PREFIX/info]
  729. --mandir=DIR man documentation [PREFIX/man]
  730. _ACEOF
  731. cat <<\_ACEOF
  732. _ACEOF
  733. fi
  734. if test -n "$ac_init_help"; then
  735. cat <<\_ACEOF
  736. Optional Features:
  737. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  738. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  739. --disable-ipv6 disable IPv6 support
  740. Optional Packages:
  741. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  742. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  743. --with-tcllib=PATH full path to Tcl library
  744. --with-tclinc=PATH full path to Tcl header
  745. Some influential environment variables:
  746. CC C compiler command
  747. CFLAGS C compiler flags
  748. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  749. nonstandard directory <lib dir>
  750. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  751. headers in a nonstandard directory <include dir>
  752. CPP C preprocessor
  753. Use these variables to override the choices made by `configure' or to help
  754. it to find libraries and programs with nonstandard names/locations.
  755. _ACEOF
  756. fi
  757. if test "$ac_init_help" = "recursive"; then
  758. # If there are subdirs, report their specific --help.
  759. ac_popdir=`pwd`
  760. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  761. test -d $ac_dir || continue
  762. ac_builddir=.
  763. if test "$ac_dir" != .; then
  764. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  765. # A "../" for each directory in $ac_dir_suffix.
  766. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  767. else
  768. ac_dir_suffix= ac_top_builddir=
  769. fi
  770. case $srcdir in
  771. .) # No --srcdir option. We are building in place.
  772. ac_srcdir=.
  773. if test -z "$ac_top_builddir"; then
  774. ac_top_srcdir=.
  775. else
  776. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  777. fi ;;
  778. [\\/]* | ?:[\\/]* ) # Absolute path.
  779. ac_srcdir=$srcdir$ac_dir_suffix;
  780. ac_top_srcdir=$srcdir ;;
  781. *) # Relative path.
  782. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  783. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  784. esac
  785. # Do not use `cd foo && pwd` to compute absolute paths, because
  786. # the directories may not exist.
  787. case `pwd` in
  788. .) ac_abs_builddir="$ac_dir";;
  789. *)
  790. case "$ac_dir" in
  791. .) ac_abs_builddir=`pwd`;;
  792. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  793. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  794. esac;;
  795. esac
  796. case $ac_abs_builddir in
  797. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  798. *)
  799. case ${ac_top_builddir}. in
  800. .) ac_abs_top_builddir=$ac_abs_builddir;;
  801. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  802. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  803. esac;;
  804. esac
  805. case $ac_abs_builddir in
  806. .) ac_abs_srcdir=$ac_srcdir;;
  807. *)
  808. case $ac_srcdir in
  809. .) ac_abs_srcdir=$ac_abs_builddir;;
  810. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  811. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  812. esac;;
  813. esac
  814. case $ac_abs_builddir in
  815. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  816. *)
  817. case $ac_top_srcdir in
  818. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  819. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  820. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  821. esac;;
  822. esac
  823. cd $ac_dir
  824. # Check for guested configure; otherwise get Cygnus style configure.
  825. if test -f $ac_srcdir/configure.gnu; then
  826. echo
  827. $SHELL $ac_srcdir/configure.gnu --help=recursive
  828. elif test -f $ac_srcdir/configure; then
  829. echo
  830. $SHELL $ac_srcdir/configure --help=recursive
  831. elif test -f $ac_srcdir/configure.ac ||
  832. test -f $ac_srcdir/configure.in; then
  833. echo
  834. $ac_configure --help
  835. else
  836. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  837. fi
  838. cd "$ac_popdir"
  839. done
  840. fi
  841. test -n "$ac_init_help" && exit 0
  842. if $ac_init_version; then
  843. cat <<\_ACEOF
  844. Copyright (C) 2003 Free Software Foundation, Inc.
  845. This configure script is free software; the Free Software Foundation
  846. gives unlimited permission to copy, distribute and modify it.
  847. Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  848. _ACEOF
  849. exit 0
  850. fi
  851. exec 5>config.log
  852. cat >&5 <<_ACEOF
  853. This file contains any messages produced by compilers while
  854. running configure, to aid debugging if configure makes a mistake.
  855. It was created by $as_me, which was
  856. generated by GNU Autoconf 2.59. Invocation command line was
  857. $ $0 $@
  858. _ACEOF
  859. {
  860. cat <<_ASUNAME
  861. ## --------- ##
  862. ## Platform. ##
  863. ## --------- ##
  864. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  865. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  866. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  867. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  868. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  869. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  870. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  871. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  872. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  873. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  874. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  875. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  876. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  877. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  878. _ASUNAME
  879. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  880. for as_dir in $PATH
  881. do
  882. IFS=$as_save_IFS
  883. test -z "$as_dir" && as_dir=.
  884. echo "PATH: $as_dir"
  885. done
  886. } >&5
  887. cat >&5 <<_ACEOF
  888. ## ----------- ##
  889. ## Core tests. ##
  890. ## ----------- ##
  891. _ACEOF
  892. # Keep a trace of the command line.
  893. # Strip out --no-create and --no-recursion so they do not pile up.
  894. # Strip out --silent because we don't want to record it for future runs.
  895. # Also quote any args containing shell meta-characters.
  896. # Make two passes to allow for proper duplicate-argument suppression.
  897. ac_configure_args=
  898. ac_configure_args0=
  899. ac_configure_args1=
  900. ac_sep=
  901. ac_must_keep_next=false
  902. for ac_pass in 1 2
  903. do
  904. for ac_arg
  905. do
  906. case $ac_arg in
  907. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  908. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  909. | -silent | --silent | --silen | --sile | --sil)
  910. continue ;;
  911. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  912. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  913. esac
  914. case $ac_pass in
  915. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  916. 2)
  917. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  918. if test $ac_must_keep_next = true; then
  919. ac_must_keep_next=false # Got value, back to normal.
  920. else
  921. case $ac_arg in
  922. *=* | --config-cache | -C | -disable-* | --disable-* \
  923. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  924. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  925. | -with-* | --with-* | -without-* | --without-* | --x)
  926. case "$ac_configure_args0 " in
  927. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  928. esac
  929. ;;
  930. -* ) ac_must_keep_next=true ;;
  931. esac
  932. fi
  933. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  934. # Get rid of the leading space.
  935. ac_sep=" "
  936. ;;
  937. esac
  938. done
  939. done
  940. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  941. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  942. # When interrupted or exit'd, cleanup temporary files, and complete
  943. # config.log. We remove comments because anyway the quotes in there
  944. # would cause problems or look ugly.
  945. # WARNING: Be sure not to use single quotes in there, as some shells,
  946. # such as our DU 5.0 friend, will then `close' the trap.
  947. trap 'exit_status=$?
  948. # Save into config.log some information that might help in debugging.
  949. {
  950. echo
  951. cat <<\_ASBOX
  952. ## ---------------- ##
  953. ## Cache variables. ##
  954. ## ---------------- ##
  955. _ASBOX
  956. echo
  957. # The following way of writing the cache mishandles newlines in values,
  958. {
  959. (set) 2>&1 |
  960. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  961. *ac_space=\ *)
  962. sed -n \
  963. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  964. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  965. ;;
  966. *)
  967. sed -n \
  968. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  969. ;;
  970. esac;
  971. }
  972. echo
  973. cat <<\_ASBOX
  974. ## ----------------- ##
  975. ## Output variables. ##
  976. ## ----------------- ##
  977. _ASBOX
  978. echo
  979. for ac_var in $ac_subst_vars
  980. do
  981. eval ac_val=$`echo $ac_var`
  982. echo "$ac_var='"'"'$ac_val'"'"'"
  983. done | sort
  984. echo
  985. if test -n "$ac_subst_files"; then
  986. cat <<\_ASBOX
  987. ## ------------- ##
  988. ## Output files. ##
  989. ## ------------- ##
  990. _ASBOX
  991. echo
  992. for ac_var in $ac_subst_files
  993. do
  994. eval ac_val=$`echo $ac_var`
  995. echo "$ac_var='"'"'$ac_val'"'"'"
  996. done | sort
  997. echo
  998. fi
  999. if test -s confdefs.h; then
  1000. cat <<\_ASBOX
  1001. ## ----------- ##
  1002. ## confdefs.h. ##
  1003. ## ----------- ##
  1004. _ASBOX
  1005. echo
  1006. sed "/^$/d" confdefs.h | sort
  1007. echo
  1008. fi
  1009. test "$ac_signal" != 0 &&
  1010. echo "$as_me: caught signal $ac_signal"
  1011. echo "$as_me: exit $exit_status"
  1012. } >&5
  1013. rm -f core *.core &&
  1014. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1015. exit $exit_status
  1016. ' 0
  1017. for ac_signal in 1 2 13 15; do
  1018. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1019. done
  1020. ac_signal=0
  1021. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1022. rm -rf conftest* confdefs.h
  1023. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1024. echo >confdefs.h
  1025. # Predefined preprocessor variables.
  1026. cat >>confdefs.h <<_ACEOF
  1027. #define PACKAGE_NAME "$PACKAGE_NAME"
  1028. _ACEOF
  1029. cat >>confdefs.h <<_ACEOF
  1030. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1031. _ACEOF
  1032. cat >>confdefs.h <<_ACEOF
  1033. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1034. _ACEOF
  1035. cat >>confdefs.h <<_ACEOF
  1036. #define PACKAGE_STRING "$PACKAGE_STRING"
  1037. _ACEOF
  1038. cat >>confdefs.h <<_ACEOF
  1039. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1040. _ACEOF
  1041. # Let the site file select an alternate cache file if it wants to.
  1042. # Prefer explicitly selected file to automatically selected ones.
  1043. if test -z "$CONFIG_SITE"; then
  1044. if test "x$prefix" != xNONE; then
  1045. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1046. else
  1047. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1048. fi
  1049. fi
  1050. for ac_site_file in $CONFIG_SITE; do
  1051. if test -r "$ac_site_file"; then
  1052. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1053. echo "$as_me: loading site script $ac_site_file" >&6;}
  1054. sed 's/^/| /' "$ac_site_file" >&5
  1055. . "$ac_site_file"
  1056. fi
  1057. done
  1058. if test -r "$cache_file"; then
  1059. # Some versions of bash will fail to source /dev/null (special
  1060. # files actually), so we avoid doing that.
  1061. if test -f "$cache_file"; then
  1062. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1063. echo "$as_me: loading cache $cache_file" >&6;}
  1064. case $cache_file in
  1065. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1066. *) . ./$cache_file;;
  1067. esac
  1068. fi
  1069. else
  1070. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1071. echo "$as_me: creating cache $cache_file" >&6;}
  1072. >$cache_file
  1073. fi
  1074. # Check that the precious variables saved in the cache have kept the same
  1075. # value.
  1076. ac_cache_corrupted=false
  1077. for ac_var in `(set) 2>&1 |
  1078. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1079. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1080. eval ac_new_set=\$ac_env_${ac_var}_set
  1081. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1082. eval ac_new_val="\$ac_env_${ac_var}_value"
  1083. case $ac_old_set,$ac_new_set in
  1084. set,)
  1085. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1086. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1087. ac_cache_corrupted=: ;;
  1088. ,set)
  1089. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1090. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1091. ac_cache_corrupted=: ;;
  1092. ,);;
  1093. *)
  1094. if test "x$ac_old_val" != "x$ac_new_val"; then
  1095. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1096. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1097. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1098. echo "$as_me: former value: $ac_old_val" >&2;}
  1099. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1100. echo "$as_me: current value: $ac_new_val" >&2;}
  1101. ac_cache_corrupted=:
  1102. fi;;
  1103. esac
  1104. # Pass precious variables to config.status.
  1105. if test "$ac_new_set" = set; then
  1106. case $ac_new_val in
  1107. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1108. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1109. *) ac_arg=$ac_var=$ac_new_val ;;
  1110. esac
  1111. case " $ac_configure_args " in
  1112. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1113. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1114. esac
  1115. fi
  1116. done
  1117. if $ac_cache_corrupted; then
  1118. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1119. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1120. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1121. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1122. { (exit 1); exit 1; }; }
  1123. fi
  1124. ac_ext=c
  1125. ac_cpp='$CPP $CPPFLAGS'
  1126. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1127. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1128. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1129. ac_config_headers="$ac_config_headers config.h"
  1130. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1131. egg_ac_parameters=
  1132. ac_prev=
  1133. for ac_arg in $ac_configure_args; do
  1134. if test -n "$ac_prev"; then
  1135. ac_prev=
  1136. continue
  1137. fi
  1138. case $ac_arg in
  1139. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1140. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1141. ac_prev=cache_file ;;
  1142. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1143. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1144. | --c=*)
  1145. ;;
  1146. --config-cache | -C)
  1147. ;;
  1148. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1149. ac_prev=srcdir ;;
  1150. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1151. ;;
  1152. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1153. esac
  1154. done
  1155. # Setup build environment
  1156. ac_ext=c
  1157. ac_cpp='$CPP $CPPFLAGS'
  1158. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1159. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1160. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1161. if test -n "$ac_tool_prefix"; then
  1162. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1163. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1164. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1165. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1166. if test "${ac_cv_prog_CC+set}" = set; then
  1167. echo $ECHO_N "(cached) $ECHO_C" >&6
  1168. else
  1169. if test -n "$CC"; then
  1170. ac_cv_prog_CC="$CC" # Let the user override the test.
  1171. else
  1172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1173. for as_dir in $PATH
  1174. do
  1175. IFS=$as_save_IFS
  1176. test -z "$as_dir" && as_dir=.
  1177. for ac_exec_ext in '' $ac_executable_extensions; do
  1178. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1179. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1180. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1181. break 2
  1182. fi
  1183. done
  1184. done
  1185. fi
  1186. fi
  1187. CC=$ac_cv_prog_CC
  1188. if test -n "$CC"; then
  1189. echo "$as_me:$LINENO: result: $CC" >&5
  1190. echo "${ECHO_T}$CC" >&6
  1191. else
  1192. echo "$as_me:$LINENO: result: no" >&5
  1193. echo "${ECHO_T}no" >&6
  1194. fi
  1195. fi
  1196. if test -z "$ac_cv_prog_CC"; then
  1197. ac_ct_CC=$CC
  1198. # Extract the first word of "gcc", so it can be a program name with args.
  1199. set dummy gcc; ac_word=$2
  1200. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1201. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1202. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1203. echo $ECHO_N "(cached) $ECHO_C" >&6
  1204. else
  1205. if test -n "$ac_ct_CC"; then
  1206. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1207. else
  1208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1209. for as_dir in $PATH
  1210. do
  1211. IFS=$as_save_IFS
  1212. test -z "$as_dir" && as_dir=.
  1213. for ac_exec_ext in '' $ac_executable_extensions; do
  1214. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1215. ac_cv_prog_ac_ct_CC="gcc"
  1216. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1217. break 2
  1218. fi
  1219. done
  1220. done
  1221. fi
  1222. fi
  1223. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1224. if test -n "$ac_ct_CC"; then
  1225. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1226. echo "${ECHO_T}$ac_ct_CC" >&6
  1227. else
  1228. echo "$as_me:$LINENO: result: no" >&5
  1229. echo "${ECHO_T}no" >&6
  1230. fi
  1231. CC=$ac_ct_CC
  1232. else
  1233. CC="$ac_cv_prog_CC"
  1234. fi
  1235. if test -z "$CC"; then
  1236. if test -n "$ac_tool_prefix"; then
  1237. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1238. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1239. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1240. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1241. if test "${ac_cv_prog_CC+set}" = set; then
  1242. echo $ECHO_N "(cached) $ECHO_C" >&6
  1243. else
  1244. if test -n "$CC"; then
  1245. ac_cv_prog_CC="$CC" # Let the user override the test.
  1246. else
  1247. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1248. for as_dir in $PATH
  1249. do
  1250. IFS=$as_save_IFS
  1251. test -z "$as_dir" && as_dir=.
  1252. for ac_exec_ext in '' $ac_executable_extensions; do
  1253. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1254. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1255. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1256. break 2
  1257. fi
  1258. done
  1259. done
  1260. fi
  1261. fi
  1262. CC=$ac_cv_prog_CC
  1263. if test -n "$CC"; then
  1264. echo "$as_me:$LINENO: result: $CC" >&5
  1265. echo "${ECHO_T}$CC" >&6
  1266. else
  1267. echo "$as_me:$LINENO: result: no" >&5
  1268. echo "${ECHO_T}no" >&6
  1269. fi
  1270. fi
  1271. if test -z "$ac_cv_prog_CC"; then
  1272. ac_ct_CC=$CC
  1273. # Extract the first word of "cc", so it can be a program name with args.
  1274. set dummy cc; ac_word=$2
  1275. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1276. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1277. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1278. echo $ECHO_N "(cached) $ECHO_C" >&6
  1279. else
  1280. if test -n "$ac_ct_CC"; then
  1281. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1282. else
  1283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1284. for as_dir in $PATH
  1285. do
  1286. IFS=$as_save_IFS
  1287. test -z "$as_dir" && as_dir=.
  1288. for ac_exec_ext in '' $ac_executable_extensions; do
  1289. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1290. ac_cv_prog_ac_ct_CC="cc"
  1291. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1292. break 2
  1293. fi
  1294. done
  1295. done
  1296. fi
  1297. fi
  1298. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1299. if test -n "$ac_ct_CC"; then
  1300. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1301. echo "${ECHO_T}$ac_ct_CC" >&6
  1302. else
  1303. echo "$as_me:$LINENO: result: no" >&5
  1304. echo "${ECHO_T}no" >&6
  1305. fi
  1306. CC=$ac_ct_CC
  1307. else
  1308. CC="$ac_cv_prog_CC"
  1309. fi
  1310. fi
  1311. if test -z "$CC"; then
  1312. # Extract the first word of "cc", so it can be a program name with args.
  1313. set dummy cc; ac_word=$2
  1314. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1315. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1316. if test "${ac_cv_prog_CC+set}" = set; then
  1317. echo $ECHO_N "(cached) $ECHO_C" >&6
  1318. else
  1319. if test -n "$CC"; then
  1320. ac_cv_prog_CC="$CC" # Let the user override the test.
  1321. else
  1322. ac_prog_rejected=no
  1323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1324. for as_dir in $PATH
  1325. do
  1326. IFS=$as_save_IFS
  1327. test -z "$as_dir" && as_dir=.
  1328. for ac_exec_ext in '' $ac_executable_extensions; do
  1329. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1330. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1331. ac_prog_rejected=yes
  1332. continue
  1333. fi
  1334. ac_cv_prog_CC="cc"
  1335. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1336. break 2
  1337. fi
  1338. done
  1339. done
  1340. if test $ac_prog_rejected = yes; then
  1341. # We found a bogon in the path, so make sure we never use it.
  1342. set dummy $ac_cv_prog_CC
  1343. shift
  1344. if test $# != 0; then
  1345. # We chose a different compiler from the bogus one.
  1346. # However, it has the same basename, so the bogon will be chosen
  1347. # first if we set CC to just the basename; use the full file name.
  1348. shift
  1349. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1350. fi
  1351. fi
  1352. fi
  1353. fi
  1354. CC=$ac_cv_prog_CC
  1355. if test -n "$CC"; then
  1356. echo "$as_me:$LINENO: result: $CC" >&5
  1357. echo "${ECHO_T}$CC" >&6
  1358. else
  1359. echo "$as_me:$LINENO: result: no" >&5
  1360. echo "${ECHO_T}no" >&6
  1361. fi
  1362. fi
  1363. if test -z "$CC"; then
  1364. if test -n "$ac_tool_prefix"; then
  1365. for ac_prog in cl
  1366. do
  1367. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1368. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1369. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1370. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1371. if test "${ac_cv_prog_CC+set}" = set; then
  1372. echo $ECHO_N "(cached) $ECHO_C" >&6
  1373. else
  1374. if test -n "$CC"; then
  1375. ac_cv_prog_CC="$CC" # Let the user override the test.
  1376. else
  1377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1378. for as_dir in $PATH
  1379. do
  1380. IFS=$as_save_IFS
  1381. test -z "$as_dir" && as_dir=.
  1382. for ac_exec_ext in '' $ac_executable_extensions; do
  1383. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1384. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1385. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1386. break 2
  1387. fi
  1388. done
  1389. done
  1390. fi
  1391. fi
  1392. CC=$ac_cv_prog_CC
  1393. if test -n "$CC"; then
  1394. echo "$as_me:$LINENO: result: $CC" >&5
  1395. echo "${ECHO_T}$CC" >&6
  1396. else
  1397. echo "$as_me:$LINENO: result: no" >&5
  1398. echo "${ECHO_T}no" >&6
  1399. fi
  1400. test -n "$CC" && break
  1401. done
  1402. fi
  1403. if test -z "$CC"; then
  1404. ac_ct_CC=$CC
  1405. for ac_prog in cl
  1406. do
  1407. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1408. set dummy $ac_prog; ac_word=$2
  1409. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1410. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1411. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1412. echo $ECHO_N "(cached) $ECHO_C" >&6
  1413. else
  1414. if test -n "$ac_ct_CC"; then
  1415. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1416. else
  1417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1418. for as_dir in $PATH
  1419. do
  1420. IFS=$as_save_IFS
  1421. test -z "$as_dir" && as_dir=.
  1422. for ac_exec_ext in '' $ac_executable_extensions; do
  1423. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1424. ac_cv_prog_ac_ct_CC="$ac_prog"
  1425. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1426. break 2
  1427. fi
  1428. done
  1429. done
  1430. fi
  1431. fi
  1432. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1433. if test -n "$ac_ct_CC"; then
  1434. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1435. echo "${ECHO_T}$ac_ct_CC" >&6
  1436. else
  1437. echo "$as_me:$LINENO: result: no" >&5
  1438. echo "${ECHO_T}no" >&6
  1439. fi
  1440. test -n "$ac_ct_CC" && break
  1441. done
  1442. CC=$ac_ct_CC
  1443. fi
  1444. fi
  1445. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1446. See \`config.log' for more details." >&5
  1447. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1448. See \`config.log' for more details." >&2;}
  1449. { (exit 1); exit 1; }; }
  1450. # Provide some information about the compiler.
  1451. echo "$as_me:$LINENO:" \
  1452. "checking for C compiler version" >&5
  1453. ac_compiler=`set X $ac_compile; echo $2`
  1454. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1455. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1456. ac_status=$?
  1457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1458. (exit $ac_status); }
  1459. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1460. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1461. ac_status=$?
  1462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1463. (exit $ac_status); }
  1464. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1465. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1466. ac_status=$?
  1467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1468. (exit $ac_status); }
  1469. cat >conftest.$ac_ext <<_ACEOF
  1470. /* confdefs.h. */
  1471. _ACEOF
  1472. cat confdefs.h >>conftest.$ac_ext
  1473. cat >>conftest.$ac_ext <<_ACEOF
  1474. /* end confdefs.h. */
  1475. int
  1476. main ()
  1477. {
  1478. ;
  1479. return 0;
  1480. }
  1481. _ACEOF
  1482. ac_clean_files_save=$ac_clean_files
  1483. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1484. # Try to create an executable without -o first, disregard a.out.
  1485. # It will help us diagnose broken compilers, and finding out an intuition
  1486. # of exeext.
  1487. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1488. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1489. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1490. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1491. (eval $ac_link_default) 2>&5
  1492. ac_status=$?
  1493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1494. (exit $ac_status); }; then
  1495. # Find the output, starting from the most likely. This scheme is
  1496. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1497. # resort.
  1498. # Be careful to initialize this variable, since it used to be cached.
  1499. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1500. ac_cv_exeext=
  1501. # b.out is created by i960 compilers.
  1502. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1503. do
  1504. test -f "$ac_file" || continue
  1505. case $ac_file in
  1506. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1507. ;;
  1508. conftest.$ac_ext )
  1509. # This is the source file.
  1510. ;;
  1511. [ab].out )
  1512. # We found the default executable, but exeext='' is most
  1513. # certainly right.
  1514. break;;
  1515. *.* )
  1516. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1517. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1518. # but it would be cool to find out if it's true. Does anybody
  1519. # maintain Libtool? --akim.
  1520. export ac_cv_exeext
  1521. break;;
  1522. * )
  1523. break;;
  1524. esac
  1525. done
  1526. else
  1527. echo "$as_me: failed program was:" >&5
  1528. sed 's/^/| /' conftest.$ac_ext >&5
  1529. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1530. See \`config.log' for more details." >&5
  1531. echo "$as_me: error: C compiler cannot create executables
  1532. See \`config.log' for more details." >&2;}
  1533. { (exit 77); exit 77; }; }
  1534. fi
  1535. ac_exeext=$ac_cv_exeext
  1536. echo "$as_me:$LINENO: result: $ac_file" >&5
  1537. echo "${ECHO_T}$ac_file" >&6
  1538. # Check the compiler produces executables we can run. If not, either
  1539. # the compiler is broken, or we cross compile.
  1540. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1541. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1542. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1543. # If not cross compiling, check that we can run a simple program.
  1544. if test "$cross_compiling" != yes; then
  1545. if { ac_try='./$ac_file'
  1546. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1547. (eval $ac_try) 2>&5
  1548. ac_status=$?
  1549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1550. (exit $ac_status); }; }; then
  1551. cross_compiling=no
  1552. else
  1553. if test "$cross_compiling" = maybe; then
  1554. cross_compiling=yes
  1555. else
  1556. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1557. If you meant to cross compile, use \`--host'.
  1558. See \`config.log' for more details." >&5
  1559. echo "$as_me: error: cannot run C compiled programs.
  1560. If you meant to cross compile, use \`--host'.
  1561. See \`config.log' for more details." >&2;}
  1562. { (exit 1); exit 1; }; }
  1563. fi
  1564. fi
  1565. fi
  1566. echo "$as_me:$LINENO: result: yes" >&5
  1567. echo "${ECHO_T}yes" >&6
  1568. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1569. ac_clean_files=$ac_clean_files_save
  1570. # Check the compiler produces executables we can run. If not, either
  1571. # the compiler is broken, or we cross compile.
  1572. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1573. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1574. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1575. echo "${ECHO_T}$cross_compiling" >&6
  1576. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1577. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1578. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1579. (eval $ac_link) 2>&5
  1580. ac_status=$?
  1581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1582. (exit $ac_status); }; then
  1583. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1584. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1585. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1586. # `rm'.
  1587. for ac_file in conftest.exe conftest conftest.*; do
  1588. test -f "$ac_file" || continue
  1589. case $ac_file in
  1590. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1591. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1592. export ac_cv_exeext
  1593. break;;
  1594. * ) break;;
  1595. esac
  1596. done
  1597. else
  1598. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1599. See \`config.log' for more details." >&5
  1600. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1601. See \`config.log' for more details." >&2;}
  1602. { (exit 1); exit 1; }; }
  1603. fi
  1604. rm -f conftest$ac_cv_exeext
  1605. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1606. echo "${ECHO_T}$ac_cv_exeext" >&6
  1607. rm -f conftest.$ac_ext
  1608. EXEEXT=$ac_cv_exeext
  1609. ac_exeext=$EXEEXT
  1610. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1611. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1612. if test "${ac_cv_objext+set}" = set; then
  1613. echo $ECHO_N "(cached) $ECHO_C" >&6
  1614. else
  1615. cat >conftest.$ac_ext <<_ACEOF
  1616. /* confdefs.h. */
  1617. _ACEOF
  1618. cat confdefs.h >>conftest.$ac_ext
  1619. cat >>conftest.$ac_ext <<_ACEOF
  1620. /* end confdefs.h. */
  1621. int
  1622. main ()
  1623. {
  1624. ;
  1625. return 0;
  1626. }
  1627. _ACEOF
  1628. rm -f conftest.o conftest.obj
  1629. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1630. (eval $ac_compile) 2>&5
  1631. ac_status=$?
  1632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1633. (exit $ac_status); }; then
  1634. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1635. case $ac_file in
  1636. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1637. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1638. break;;
  1639. esac
  1640. done
  1641. else
  1642. echo "$as_me: failed program was:" >&5
  1643. sed 's/^/| /' conftest.$ac_ext >&5
  1644. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1645. See \`config.log' for more details." >&5
  1646. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1647. See \`config.log' for more details." >&2;}
  1648. { (exit 1); exit 1; }; }
  1649. fi
  1650. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1651. fi
  1652. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1653. echo "${ECHO_T}$ac_cv_objext" >&6
  1654. OBJEXT=$ac_cv_objext
  1655. ac_objext=$OBJEXT
  1656. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1657. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1658. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1659. echo $ECHO_N "(cached) $ECHO_C" >&6
  1660. else
  1661. cat >conftest.$ac_ext <<_ACEOF
  1662. /* confdefs.h. */
  1663. _ACEOF
  1664. cat confdefs.h >>conftest.$ac_ext
  1665. cat >>conftest.$ac_ext <<_ACEOF
  1666. /* end confdefs.h. */
  1667. int
  1668. main ()
  1669. {
  1670. #ifndef __GNUC__
  1671. choke me
  1672. #endif
  1673. ;
  1674. return 0;
  1675. }
  1676. _ACEOF
  1677. rm -f conftest.$ac_objext
  1678. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1679. (eval $ac_compile) 2>conftest.er1
  1680. ac_status=$?
  1681. grep -v '^ *+' conftest.er1 >conftest.err
  1682. rm -f conftest.er1
  1683. cat conftest.err >&5
  1684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1685. (exit $ac_status); } &&
  1686. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1687. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1688. (eval $ac_try) 2>&5
  1689. ac_status=$?
  1690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1691. (exit $ac_status); }; } &&
  1692. { ac_try='test -s conftest.$ac_objext'
  1693. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1694. (eval $ac_try) 2>&5
  1695. ac_status=$?
  1696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1697. (exit $ac_status); }; }; then
  1698. ac_compiler_gnu=yes
  1699. else
  1700. echo "$as_me: failed program was:" >&5
  1701. sed 's/^/| /' conftest.$ac_ext >&5
  1702. ac_compiler_gnu=no
  1703. fi
  1704. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1705. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1706. fi
  1707. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1708. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1709. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1710. ac_test_CFLAGS=${CFLAGS+set}
  1711. ac_save_CFLAGS=$CFLAGS
  1712. CFLAGS="-g"
  1713. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1714. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1715. if test "${ac_cv_prog_cc_g+set}" = set; then
  1716. echo $ECHO_N "(cached) $ECHO_C" >&6
  1717. else
  1718. cat >conftest.$ac_ext <<_ACEOF
  1719. /* confdefs.h. */
  1720. _ACEOF
  1721. cat confdefs.h >>conftest.$ac_ext
  1722. cat >>conftest.$ac_ext <<_ACEOF
  1723. /* end confdefs.h. */
  1724. int
  1725. main ()
  1726. {
  1727. ;
  1728. return 0;
  1729. }
  1730. _ACEOF
  1731. rm -f conftest.$ac_objext
  1732. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1733. (eval $ac_compile) 2>conftest.er1
  1734. ac_status=$?
  1735. grep -v '^ *+' conftest.er1 >conftest.err
  1736. rm -f conftest.er1
  1737. cat conftest.err >&5
  1738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1739. (exit $ac_status); } &&
  1740. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1741. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1742. (eval $ac_try) 2>&5
  1743. ac_status=$?
  1744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1745. (exit $ac_status); }; } &&
  1746. { ac_try='test -s conftest.$ac_objext'
  1747. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1748. (eval $ac_try) 2>&5
  1749. ac_status=$?
  1750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1751. (exit $ac_status); }; }; then
  1752. ac_cv_prog_cc_g=yes
  1753. else
  1754. echo "$as_me: failed program was:" >&5
  1755. sed 's/^/| /' conftest.$ac_ext >&5
  1756. ac_cv_prog_cc_g=no
  1757. fi
  1758. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1759. fi
  1760. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1761. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1762. if test "$ac_test_CFLAGS" = set; then
  1763. CFLAGS=$ac_save_CFLAGS
  1764. elif test $ac_cv_prog_cc_g = yes; then
  1765. if test "$GCC" = yes; then
  1766. CFLAGS="-g -O2"
  1767. else
  1768. CFLAGS="-g"
  1769. fi
  1770. else
  1771. if test "$GCC" = yes; then
  1772. CFLAGS="-O2"
  1773. else
  1774. CFLAGS=
  1775. fi
  1776. fi
  1777. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1778. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1779. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1780. echo $ECHO_N "(cached) $ECHO_C" >&6
  1781. else
  1782. ac_cv_prog_cc_stdc=no
  1783. ac_save_CC=$CC
  1784. cat >conftest.$ac_ext <<_ACEOF
  1785. /* confdefs.h. */
  1786. _ACEOF
  1787. cat confdefs.h >>conftest.$ac_ext
  1788. cat >>conftest.$ac_ext <<_ACEOF
  1789. /* end confdefs.h. */
  1790. #include <stdarg.h>
  1791. #include <stdio.h>
  1792. #include <sys/types.h>
  1793. #include <sys/stat.h>
  1794. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1795. struct buf { int x; };
  1796. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1797. static char *e (p, i)
  1798. char **p;
  1799. int i;
  1800. {
  1801. return p[i];
  1802. }
  1803. static char *f (char * (*g) (char **, int), char **p, ...)
  1804. {
  1805. char *s;
  1806. va_list v;
  1807. va_start (v,p);
  1808. s = g (p, va_arg (v,int));
  1809. va_end (v);
  1810. return s;
  1811. }
  1812. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1813. function prototypes and stuff, but not '\xHH' hex character constants.
  1814. These don't provoke an error unfortunately, instead are silently treated
  1815. as 'x'. The following induces an error, until -std1 is added to get
  1816. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  1817. array size at least. It's necessary to write '\x00'==0 to get something
  1818. that's true only with -std1. */
  1819. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1820. int test (int i, double x);
  1821. struct s1 {int (*f) (int a);};
  1822. struct s2 {int (*f) (double a);};
  1823. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1824. int argc;
  1825. char **argv;
  1826. int
  1827. main ()
  1828. {
  1829. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1830. ;
  1831. return 0;
  1832. }
  1833. _ACEOF
  1834. # Don't try gcc -ansi; that turns off useful extensions and
  1835. # breaks some systems' header files.
  1836. # AIX -qlanglvl=ansi
  1837. # Ultrix and OSF/1 -std1
  1838. # HP-UX 10.20 and later -Ae
  1839. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1840. # SVR4 -Xc -D__EXTENSIONS__
  1841. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1842. do
  1843. CC="$ac_save_CC $ac_arg"
  1844. rm -f conftest.$ac_objext
  1845. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1846. (eval $ac_compile) 2>conftest.er1
  1847. ac_status=$?
  1848. grep -v '^ *+' conftest.er1 >conftest.err
  1849. rm -f conftest.er1
  1850. cat conftest.err >&5
  1851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1852. (exit $ac_status); } &&
  1853. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1854. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1855. (eval $ac_try) 2>&5
  1856. ac_status=$?
  1857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1858. (exit $ac_status); }; } &&
  1859. { ac_try='test -s conftest.$ac_objext'
  1860. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1861. (eval $ac_try) 2>&5
  1862. ac_status=$?
  1863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1864. (exit $ac_status); }; }; then
  1865. ac_cv_prog_cc_stdc=$ac_arg
  1866. break
  1867. else
  1868. echo "$as_me: failed program was:" >&5
  1869. sed 's/^/| /' conftest.$ac_ext >&5
  1870. fi
  1871. rm -f conftest.err conftest.$ac_objext
  1872. done
  1873. rm -f conftest.$ac_ext conftest.$ac_objext
  1874. CC=$ac_save_CC
  1875. fi
  1876. case "x$ac_cv_prog_cc_stdc" in
  1877. x|xno)
  1878. echo "$as_me:$LINENO: result: none needed" >&5
  1879. echo "${ECHO_T}none needed" >&6 ;;
  1880. *)
  1881. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1882. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1883. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1884. esac
  1885. # Some people use a C++ compiler to compile C. Since we use `exit',
  1886. # in C++ we need to declare it. In case someone uses the same compiler
  1887. # for both compiling C and C++ we need to have the C++ compiler decide
  1888. # the declaration of exit, since it's the most demanding environment.
  1889. cat >conftest.$ac_ext <<_ACEOF
  1890. #ifndef __cplusplus
  1891. choke me
  1892. #endif
  1893. _ACEOF
  1894. rm -f conftest.$ac_objext
  1895. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1896. (eval $ac_compile) 2>conftest.er1
  1897. ac_status=$?
  1898. grep -v '^ *+' conftest.er1 >conftest.err
  1899. rm -f conftest.er1
  1900. cat conftest.err >&5
  1901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1902. (exit $ac_status); } &&
  1903. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1904. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1905. (eval $ac_try) 2>&5
  1906. ac_status=$?
  1907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1908. (exit $ac_status); }; } &&
  1909. { ac_try='test -s conftest.$ac_objext'
  1910. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1911. (eval $ac_try) 2>&5
  1912. ac_status=$?
  1913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1914. (exit $ac_status); }; }; then
  1915. for ac_declaration in \
  1916. '' \
  1917. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1918. 'extern "C" void std::exit (int); using std::exit;' \
  1919. 'extern "C" void exit (int) throw ();' \
  1920. 'extern "C" void exit (int);' \
  1921. 'void exit (int);'
  1922. do
  1923. cat >conftest.$ac_ext <<_ACEOF
  1924. /* confdefs.h. */
  1925. _ACEOF
  1926. cat confdefs.h >>conftest.$ac_ext
  1927. cat >>conftest.$ac_ext <<_ACEOF
  1928. /* end confdefs.h. */
  1929. $ac_declaration
  1930. #include <stdlib.h>
  1931. int
  1932. main ()
  1933. {
  1934. exit (42);
  1935. ;
  1936. return 0;
  1937. }
  1938. _ACEOF
  1939. rm -f conftest.$ac_objext
  1940. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1941. (eval $ac_compile) 2>conftest.er1
  1942. ac_status=$?
  1943. grep -v '^ *+' conftest.er1 >conftest.err
  1944. rm -f conftest.er1
  1945. cat conftest.err >&5
  1946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1947. (exit $ac_status); } &&
  1948. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1949. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1950. (eval $ac_try) 2>&5
  1951. ac_status=$?
  1952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1953. (exit $ac_status); }; } &&
  1954. { ac_try='test -s conftest.$ac_objext'
  1955. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1956. (eval $ac_try) 2>&5
  1957. ac_status=$?
  1958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1959. (exit $ac_status); }; }; then
  1960. :
  1961. else
  1962. echo "$as_me: failed program was:" >&5
  1963. sed 's/^/| /' conftest.$ac_ext >&5
  1964. continue
  1965. fi
  1966. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1967. cat >conftest.$ac_ext <<_ACEOF
  1968. /* confdefs.h. */
  1969. _ACEOF
  1970. cat confdefs.h >>conftest.$ac_ext
  1971. cat >>conftest.$ac_ext <<_ACEOF
  1972. /* end confdefs.h. */
  1973. $ac_declaration
  1974. int
  1975. main ()
  1976. {
  1977. exit (42);
  1978. ;
  1979. return 0;
  1980. }
  1981. _ACEOF
  1982. rm -f conftest.$ac_objext
  1983. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1984. (eval $ac_compile) 2>conftest.er1
  1985. ac_status=$?
  1986. grep -v '^ *+' conftest.er1 >conftest.err
  1987. rm -f conftest.er1
  1988. cat conftest.err >&5
  1989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1990. (exit $ac_status); } &&
  1991. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1992. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1993. (eval $ac_try) 2>&5
  1994. ac_status=$?
  1995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1996. (exit $ac_status); }; } &&
  1997. { ac_try='test -s conftest.$ac_objext'
  1998. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1999. (eval $ac_try) 2>&5
  2000. ac_status=$?
  2001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2002. (exit $ac_status); }; }; then
  2003. break
  2004. else
  2005. echo "$as_me: failed program was:" >&5
  2006. sed 's/^/| /' conftest.$ac_ext >&5
  2007. fi
  2008. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2009. done
  2010. rm -f conftest*
  2011. if test -n "$ac_declaration"; then
  2012. echo '#ifdef __cplusplus' >>confdefs.h
  2013. echo $ac_declaration >>confdefs.h
  2014. echo '#endif' >>confdefs.h
  2015. fi
  2016. else
  2017. echo "$as_me: failed program was:" >&5
  2018. sed 's/^/| /' conftest.$ac_ext >&5
  2019. fi
  2020. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2021. ac_ext=c
  2022. ac_cpp='$CPP $CPPFLAGS'
  2023. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2024. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2025. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2026. if test "${cross_compiling-x}" = "x"
  2027. then
  2028. cat << 'EOF' >&2
  2029. configure: error:
  2030. This system does not appear to have a working C compiler.
  2031. A working C compiler is required to compile Eggdrop.
  2032. EOF
  2033. exit 1
  2034. fi
  2035. # Crazy machines
  2036. ac_ext=c
  2037. ac_cpp='$CPP $CPPFLAGS'
  2038. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2039. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2040. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2041. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2042. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2043. # On Suns, sometimes $CPP names a directory.
  2044. if test -n "$CPP" && test -d "$CPP"; then
  2045. CPP=
  2046. fi
  2047. if test -z "$CPP"; then
  2048. if test "${ac_cv_prog_CPP+set}" = set; then
  2049. echo $ECHO_N "(cached) $ECHO_C" >&6
  2050. else
  2051. # Double quotes because CPP needs to be expanded
  2052. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2053. do
  2054. ac_preproc_ok=false
  2055. for ac_c_preproc_warn_flag in '' yes
  2056. do
  2057. # Use a header file that comes with gcc, so configuring glibc
  2058. # with a fresh cross-compiler works.
  2059. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2060. # <limits.h> exists even on freestanding compilers.
  2061. # On the NeXT, cc -E runs the code through the compiler's parser,
  2062. # not just through cpp. "Syntax error" is here to catch this case.
  2063. cat >conftest.$ac_ext <<_ACEOF
  2064. /* confdefs.h. */
  2065. _ACEOF
  2066. cat confdefs.h >>conftest.$ac_ext
  2067. cat >>conftest.$ac_ext <<_ACEOF
  2068. /* end confdefs.h. */
  2069. #ifdef __STDC__
  2070. # include <limits.h>
  2071. #else
  2072. # include <assert.h>
  2073. #endif
  2074. Syntax error
  2075. _ACEOF
  2076. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2077. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2078. ac_status=$?
  2079. grep -v '^ *+' conftest.er1 >conftest.err
  2080. rm -f conftest.er1
  2081. cat conftest.err >&5
  2082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2083. (exit $ac_status); } >/dev/null; then
  2084. if test -s conftest.err; then
  2085. ac_cpp_err=$ac_c_preproc_warn_flag
  2086. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2087. else
  2088. ac_cpp_err=
  2089. fi
  2090. else
  2091. ac_cpp_err=yes
  2092. fi
  2093. if test -z "$ac_cpp_err"; then
  2094. :
  2095. else
  2096. echo "$as_me: failed program was:" >&5
  2097. sed 's/^/| /' conftest.$ac_ext >&5
  2098. # Broken: fails on valid input.
  2099. continue
  2100. fi
  2101. rm -f conftest.err conftest.$ac_ext
  2102. # OK, works on sane cases. Now check whether non-existent headers
  2103. # can be detected and how.
  2104. cat >conftest.$ac_ext <<_ACEOF
  2105. /* confdefs.h. */
  2106. _ACEOF
  2107. cat confdefs.h >>conftest.$ac_ext
  2108. cat >>conftest.$ac_ext <<_ACEOF
  2109. /* end confdefs.h. */
  2110. #include <ac_nonexistent.h>
  2111. _ACEOF
  2112. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2113. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2114. ac_status=$?
  2115. grep -v '^ *+' conftest.er1 >conftest.err
  2116. rm -f conftest.er1
  2117. cat conftest.err >&5
  2118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2119. (exit $ac_status); } >/dev/null; then
  2120. if test -s conftest.err; then
  2121. ac_cpp_err=$ac_c_preproc_warn_flag
  2122. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2123. else
  2124. ac_cpp_err=
  2125. fi
  2126. else
  2127. ac_cpp_err=yes
  2128. fi
  2129. if test -z "$ac_cpp_err"; then
  2130. # Broken: success on invalid input.
  2131. continue
  2132. else
  2133. echo "$as_me: failed program was:" >&5
  2134. sed 's/^/| /' conftest.$ac_ext >&5
  2135. # Passes both tests.
  2136. ac_preproc_ok=:
  2137. break
  2138. fi
  2139. rm -f conftest.err conftest.$ac_ext
  2140. done
  2141. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2142. rm -f conftest.err conftest.$ac_ext
  2143. if $ac_preproc_ok; then
  2144. break
  2145. fi
  2146. done
  2147. ac_cv_prog_CPP=$CPP
  2148. fi
  2149. CPP=$ac_cv_prog_CPP
  2150. else
  2151. ac_cv_prog_CPP=$CPP
  2152. fi
  2153. echo "$as_me:$LINENO: result: $CPP" >&5
  2154. echo "${ECHO_T}$CPP" >&6
  2155. ac_preproc_ok=false
  2156. for ac_c_preproc_warn_flag in '' yes
  2157. do
  2158. # Use a header file that comes with gcc, so configuring glibc
  2159. # with a fresh cross-compiler works.
  2160. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2161. # <limits.h> exists even on freestanding compilers.
  2162. # On the NeXT, cc -E runs the code through the compiler's parser,
  2163. # not just through cpp. "Syntax error" is here to catch this case.
  2164. cat >conftest.$ac_ext <<_ACEOF
  2165. /* confdefs.h. */
  2166. _ACEOF
  2167. cat confdefs.h >>conftest.$ac_ext
  2168. cat >>conftest.$ac_ext <<_ACEOF
  2169. /* end confdefs.h. */
  2170. #ifdef __STDC__
  2171. # include <limits.h>
  2172. #else
  2173. # include <assert.h>
  2174. #endif
  2175. Syntax error
  2176. _ACEOF
  2177. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2178. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2179. ac_status=$?
  2180. grep -v '^ *+' conftest.er1 >conftest.err
  2181. rm -f conftest.er1
  2182. cat conftest.err >&5
  2183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2184. (exit $ac_status); } >/dev/null; then
  2185. if test -s conftest.err; then
  2186. ac_cpp_err=$ac_c_preproc_warn_flag
  2187. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2188. else
  2189. ac_cpp_err=
  2190. fi
  2191. else
  2192. ac_cpp_err=yes
  2193. fi
  2194. if test -z "$ac_cpp_err"; then
  2195. :
  2196. else
  2197. echo "$as_me: failed program was:" >&5
  2198. sed 's/^/| /' conftest.$ac_ext >&5
  2199. # Broken: fails on valid input.
  2200. continue
  2201. fi
  2202. rm -f conftest.err conftest.$ac_ext
  2203. # OK, works on sane cases. Now check whether non-existent headers
  2204. # can be detected and how.
  2205. cat >conftest.$ac_ext <<_ACEOF
  2206. /* confdefs.h. */
  2207. _ACEOF
  2208. cat confdefs.h >>conftest.$ac_ext
  2209. cat >>conftest.$ac_ext <<_ACEOF
  2210. /* end confdefs.h. */
  2211. #include <ac_nonexistent.h>
  2212. _ACEOF
  2213. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2214. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2215. ac_status=$?
  2216. grep -v '^ *+' conftest.er1 >conftest.err
  2217. rm -f conftest.er1
  2218. cat conftest.err >&5
  2219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2220. (exit $ac_status); } >/dev/null; then
  2221. if test -s conftest.err; then
  2222. ac_cpp_err=$ac_c_preproc_warn_flag
  2223. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2224. else
  2225. ac_cpp_err=
  2226. fi
  2227. else
  2228. ac_cpp_err=yes
  2229. fi
  2230. if test -z "$ac_cpp_err"; then
  2231. # Broken: success on invalid input.
  2232. continue
  2233. else
  2234. echo "$as_me: failed program was:" >&5
  2235. sed 's/^/| /' conftest.$ac_ext >&5
  2236. # Passes both tests.
  2237. ac_preproc_ok=:
  2238. break
  2239. fi
  2240. rm -f conftest.err conftest.$ac_ext
  2241. done
  2242. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2243. rm -f conftest.err conftest.$ac_ext
  2244. if $ac_preproc_ok; then
  2245. :
  2246. else
  2247. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2248. See \`config.log' for more details." >&5
  2249. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2250. See \`config.log' for more details." >&2;}
  2251. { (exit 1); exit 1; }; }
  2252. fi
  2253. ac_ext=c
  2254. ac_cpp='$CPP $CPPFLAGS'
  2255. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2256. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2257. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2258. echo "$as_me:$LINENO: checking for egrep" >&5
  2259. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2260. if test "${ac_cv_prog_egrep+set}" = set; then
  2261. echo $ECHO_N "(cached) $ECHO_C" >&6
  2262. else
  2263. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2264. then ac_cv_prog_egrep='grep -E'
  2265. else ac_cv_prog_egrep='egrep'
  2266. fi
  2267. fi
  2268. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2269. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2270. EGREP=$ac_cv_prog_egrep
  2271. echo "$as_me:$LINENO: checking for AIX" >&5
  2272. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  2273. cat >conftest.$ac_ext <<_ACEOF
  2274. /* confdefs.h. */
  2275. _ACEOF
  2276. cat confdefs.h >>conftest.$ac_ext
  2277. cat >>conftest.$ac_ext <<_ACEOF
  2278. /* end confdefs.h. */
  2279. #ifdef _AIX
  2280. yes
  2281. #endif
  2282. _ACEOF
  2283. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2284. $EGREP "yes" >/dev/null 2>&1; then
  2285. echo "$as_me:$LINENO: result: yes" >&5
  2286. echo "${ECHO_T}yes" >&6
  2287. cat >>confdefs.h <<\_ACEOF
  2288. #define _ALL_SOURCE 1
  2289. _ACEOF
  2290. else
  2291. echo "$as_me:$LINENO: result: no" >&5
  2292. echo "${ECHO_T}no" >&6
  2293. fi
  2294. rm -f conftest*
  2295. echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  2296. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
  2297. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  2298. echo $ECHO_N "(cached) $ECHO_C" >&6
  2299. else
  2300. ac_check_lib_save_LIBS=$LIBS
  2301. LIBS="-lcposix $LIBS"
  2302. cat >conftest.$ac_ext <<_ACEOF
  2303. /* confdefs.h. */
  2304. _ACEOF
  2305. cat confdefs.h >>conftest.$ac_ext
  2306. cat >>conftest.$ac_ext <<_ACEOF
  2307. /* end confdefs.h. */
  2308. /* Override any gcc2 internal prototype to avoid an error. */
  2309. #ifdef __cplusplus
  2310. extern "C"
  2311. #endif
  2312. /* We use char because int might match the return type of a gcc2
  2313. builtin and then its argument prototype would still apply. */
  2314. char strerror ();
  2315. int
  2316. main ()
  2317. {
  2318. strerror ();
  2319. ;
  2320. return 0;
  2321. }
  2322. _ACEOF
  2323. rm -f conftest.$ac_objext conftest$ac_exeext
  2324. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2325. (eval $ac_link) 2>conftest.er1
  2326. ac_status=$?
  2327. grep -v '^ *+' conftest.er1 >conftest.err
  2328. rm -f conftest.er1
  2329. cat conftest.err >&5
  2330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2331. (exit $ac_status); } &&
  2332. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2333. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2334. (eval $ac_try) 2>&5
  2335. ac_status=$?
  2336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2337. (exit $ac_status); }; } &&
  2338. { ac_try='test -s conftest$ac_exeext'
  2339. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2340. (eval $ac_try) 2>&5
  2341. ac_status=$?
  2342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2343. (exit $ac_status); }; }; then
  2344. ac_cv_lib_cposix_strerror=yes
  2345. else
  2346. echo "$as_me: failed program was:" >&5
  2347. sed 's/^/| /' conftest.$ac_ext >&5
  2348. ac_cv_lib_cposix_strerror=no
  2349. fi
  2350. rm -f conftest.err conftest.$ac_objext \
  2351. conftest$ac_exeext conftest.$ac_ext
  2352. LIBS=$ac_check_lib_save_LIBS
  2353. fi
  2354. echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  2355. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
  2356. if test $ac_cv_lib_cposix_strerror = yes; then
  2357. LIBS="$LIBS -lcposix"
  2358. fi
  2359. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2360. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2361. if test "${ac_cv_header_stdc+set}" = set; then
  2362. echo $ECHO_N "(cached) $ECHO_C" >&6
  2363. else
  2364. cat >conftest.$ac_ext <<_ACEOF
  2365. /* confdefs.h. */
  2366. _ACEOF
  2367. cat confdefs.h >>conftest.$ac_ext
  2368. cat >>conftest.$ac_ext <<_ACEOF
  2369. /* end confdefs.h. */
  2370. #include <stdlib.h>
  2371. #include <stdarg.h>
  2372. #include <string.h>
  2373. #include <float.h>
  2374. int
  2375. main ()
  2376. {
  2377. ;
  2378. return 0;
  2379. }
  2380. _ACEOF
  2381. rm -f conftest.$ac_objext
  2382. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2383. (eval $ac_compile) 2>conftest.er1
  2384. ac_status=$?
  2385. grep -v '^ *+' conftest.er1 >conftest.err
  2386. rm -f conftest.er1
  2387. cat conftest.err >&5
  2388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2389. (exit $ac_status); } &&
  2390. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2391. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2392. (eval $ac_try) 2>&5
  2393. ac_status=$?
  2394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2395. (exit $ac_status); }; } &&
  2396. { ac_try='test -s conftest.$ac_objext'
  2397. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2398. (eval $ac_try) 2>&5
  2399. ac_status=$?
  2400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2401. (exit $ac_status); }; }; then
  2402. ac_cv_header_stdc=yes
  2403. else
  2404. echo "$as_me: failed program was:" >&5
  2405. sed 's/^/| /' conftest.$ac_ext >&5
  2406. ac_cv_header_stdc=no
  2407. fi
  2408. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2409. if test $ac_cv_header_stdc = yes; then
  2410. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2411. cat >conftest.$ac_ext <<_ACEOF
  2412. /* confdefs.h. */
  2413. _ACEOF
  2414. cat confdefs.h >>conftest.$ac_ext
  2415. cat >>conftest.$ac_ext <<_ACEOF
  2416. /* end confdefs.h. */
  2417. #include <string.h>
  2418. _ACEOF
  2419. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2420. $EGREP "memchr" >/dev/null 2>&1; then
  2421. :
  2422. else
  2423. ac_cv_header_stdc=no
  2424. fi
  2425. rm -f conftest*
  2426. fi
  2427. if test $ac_cv_header_stdc = yes; then
  2428. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2429. cat >conftest.$ac_ext <<_ACEOF
  2430. /* confdefs.h. */
  2431. _ACEOF
  2432. cat confdefs.h >>conftest.$ac_ext
  2433. cat >>conftest.$ac_ext <<_ACEOF
  2434. /* end confdefs.h. */
  2435. #include <stdlib.h>
  2436. _ACEOF
  2437. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2438. $EGREP "free" >/dev/null 2>&1; then
  2439. :
  2440. else
  2441. ac_cv_header_stdc=no
  2442. fi
  2443. rm -f conftest*
  2444. fi
  2445. if test $ac_cv_header_stdc = yes; then
  2446. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2447. if test "$cross_compiling" = yes; then
  2448. :
  2449. else
  2450. cat >conftest.$ac_ext <<_ACEOF
  2451. /* confdefs.h. */
  2452. _ACEOF
  2453. cat confdefs.h >>conftest.$ac_ext
  2454. cat >>conftest.$ac_ext <<_ACEOF
  2455. /* end confdefs.h. */
  2456. #include <ctype.h>
  2457. #if ((' ' & 0x0FF) == 0x020)
  2458. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2459. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2460. #else
  2461. # define ISLOWER(c) \
  2462. (('a' <= (c) && (c) <= 'i') \
  2463. || ('j' <= (c) && (c) <= 'r') \
  2464. || ('s' <= (c) && (c) <= 'z'))
  2465. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2466. #endif
  2467. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2468. int
  2469. main ()
  2470. {
  2471. int i;
  2472. for (i = 0; i < 256; i++)
  2473. if (XOR (islower (i), ISLOWER (i))
  2474. || toupper (i) != TOUPPER (i))
  2475. exit(2);
  2476. exit (0);
  2477. }
  2478. _ACEOF
  2479. rm -f conftest$ac_exeext
  2480. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2481. (eval $ac_link) 2>&5
  2482. ac_status=$?
  2483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2484. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2485. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2486. (eval $ac_try) 2>&5
  2487. ac_status=$?
  2488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2489. (exit $ac_status); }; }; then
  2490. :
  2491. else
  2492. echo "$as_me: program exited with status $ac_status" >&5
  2493. echo "$as_me: failed program was:" >&5
  2494. sed 's/^/| /' conftest.$ac_ext >&5
  2495. ( exit $ac_status )
  2496. ac_cv_header_stdc=no
  2497. fi
  2498. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2499. fi
  2500. fi
  2501. fi
  2502. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2503. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2504. if test $ac_cv_header_stdc = yes; then
  2505. cat >>confdefs.h <<\_ACEOF
  2506. #define STDC_HEADERS 1
  2507. _ACEOF
  2508. fi
  2509. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2510. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2511. inttypes.h stdint.h unistd.h
  2512. do
  2513. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2514. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2515. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2516. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2517. echo $ECHO_N "(cached) $ECHO_C" >&6
  2518. else
  2519. cat >conftest.$ac_ext <<_ACEOF
  2520. /* confdefs.h. */
  2521. _ACEOF
  2522. cat confdefs.h >>conftest.$ac_ext
  2523. cat >>conftest.$ac_ext <<_ACEOF
  2524. /* end confdefs.h. */
  2525. $ac_includes_default
  2526. #include <$ac_header>
  2527. _ACEOF
  2528. rm -f conftest.$ac_objext
  2529. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2530. (eval $ac_compile) 2>conftest.er1
  2531. ac_status=$?
  2532. grep -v '^ *+' conftest.er1 >conftest.err
  2533. rm -f conftest.er1
  2534. cat conftest.err >&5
  2535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2536. (exit $ac_status); } &&
  2537. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2538. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2539. (eval $ac_try) 2>&5
  2540. ac_status=$?
  2541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2542. (exit $ac_status); }; } &&
  2543. { ac_try='test -s conftest.$ac_objext'
  2544. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2545. (eval $ac_try) 2>&5
  2546. ac_status=$?
  2547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2548. (exit $ac_status); }; }; then
  2549. eval "$as_ac_Header=yes"
  2550. else
  2551. echo "$as_me: failed program was:" >&5
  2552. sed 's/^/| /' conftest.$ac_ext >&5
  2553. eval "$as_ac_Header=no"
  2554. fi
  2555. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2556. fi
  2557. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2558. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2559. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2560. cat >>confdefs.h <<_ACEOF
  2561. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2562. _ACEOF
  2563. fi
  2564. done
  2565. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2566. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2567. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2568. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2569. echo $ECHO_N "(cached) $ECHO_C" >&6
  2570. fi
  2571. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2572. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2573. else
  2574. # Is the header compilable?
  2575. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2576. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2577. cat >conftest.$ac_ext <<_ACEOF
  2578. /* confdefs.h. */
  2579. _ACEOF
  2580. cat confdefs.h >>conftest.$ac_ext
  2581. cat >>conftest.$ac_ext <<_ACEOF
  2582. /* end confdefs.h. */
  2583. $ac_includes_default
  2584. #include <minix/config.h>
  2585. _ACEOF
  2586. rm -f conftest.$ac_objext
  2587. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2588. (eval $ac_compile) 2>conftest.er1
  2589. ac_status=$?
  2590. grep -v '^ *+' conftest.er1 >conftest.err
  2591. rm -f conftest.er1
  2592. cat conftest.err >&5
  2593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2594. (exit $ac_status); } &&
  2595. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2596. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2597. (eval $ac_try) 2>&5
  2598. ac_status=$?
  2599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2600. (exit $ac_status); }; } &&
  2601. { ac_try='test -s conftest.$ac_objext'
  2602. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2603. (eval $ac_try) 2>&5
  2604. ac_status=$?
  2605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2606. (exit $ac_status); }; }; then
  2607. ac_header_compiler=yes
  2608. else
  2609. echo "$as_me: failed program was:" >&5
  2610. sed 's/^/| /' conftest.$ac_ext >&5
  2611. ac_header_compiler=no
  2612. fi
  2613. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2614. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2615. echo "${ECHO_T}$ac_header_compiler" >&6
  2616. # Is the header present?
  2617. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2618. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2619. cat >conftest.$ac_ext <<_ACEOF
  2620. /* confdefs.h. */
  2621. _ACEOF
  2622. cat confdefs.h >>conftest.$ac_ext
  2623. cat >>conftest.$ac_ext <<_ACEOF
  2624. /* end confdefs.h. */
  2625. #include <minix/config.h>
  2626. _ACEOF
  2627. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2628. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2629. ac_status=$?
  2630. grep -v '^ *+' conftest.er1 >conftest.err
  2631. rm -f conftest.er1
  2632. cat conftest.err >&5
  2633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2634. (exit $ac_status); } >/dev/null; then
  2635. if test -s conftest.err; then
  2636. ac_cpp_err=$ac_c_preproc_warn_flag
  2637. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2638. else
  2639. ac_cpp_err=
  2640. fi
  2641. else
  2642. ac_cpp_err=yes
  2643. fi
  2644. if test -z "$ac_cpp_err"; then
  2645. ac_header_preproc=yes
  2646. else
  2647. echo "$as_me: failed program was:" >&5
  2648. sed 's/^/| /' conftest.$ac_ext >&5
  2649. ac_header_preproc=no
  2650. fi
  2651. rm -f conftest.err conftest.$ac_ext
  2652. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2653. echo "${ECHO_T}$ac_header_preproc" >&6
  2654. # So? What about this header?
  2655. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  2656. yes:no: )
  2657. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2658. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2659. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2660. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2661. ac_header_preproc=yes
  2662. ;;
  2663. no:yes:* )
  2664. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2665. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2666. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2667. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2668. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2669. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2670. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2671. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2672. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2673. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2674. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2675. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2676. (
  2677. cat <<\_ASBOX
  2678. ## ------------------------------------------ ##
  2679. ## Report this to the AC_PACKAGE_NAME lists. ##
  2680. ## ------------------------------------------ ##
  2681. _ASBOX
  2682. ) |
  2683. sed "s/^/$as_me: WARNING: /" >&2
  2684. ;;
  2685. esac
  2686. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2687. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2688. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2689. echo $ECHO_N "(cached) $ECHO_C" >&6
  2690. else
  2691. ac_cv_header_minix_config_h=$ac_header_preproc
  2692. fi
  2693. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2694. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2695. fi
  2696. if test $ac_cv_header_minix_config_h = yes; then
  2697. MINIX=yes
  2698. else
  2699. MINIX=
  2700. fi
  2701. if test "$MINIX" = yes; then
  2702. cat >>confdefs.h <<\_ACEOF
  2703. #define _POSIX_SOURCE 1
  2704. _ACEOF
  2705. cat >>confdefs.h <<\_ACEOF
  2706. #define _POSIX_1_SOURCE 2
  2707. _ACEOF
  2708. cat >>confdefs.h <<\_ACEOF
  2709. #define _MINIX 1
  2710. _ACEOF
  2711. fi
  2712. #checkpoint
  2713. cat >confcache <<\_ACEOF
  2714. # This file is a shell script that caches the results of configure
  2715. # tests run on this system so they can be shared between configure
  2716. # scripts and configure runs, see configure's option --config-cache.
  2717. # It is not useful on other systems. If it contains results you don't
  2718. # want to keep, you may remove or edit it.
  2719. #
  2720. # config.status only pays attention to the cache file if you give it
  2721. # the --recheck option to rerun configure.
  2722. #
  2723. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2724. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2725. # following values.
  2726. _ACEOF
  2727. # The following way of writing the cache mishandles newlines in values,
  2728. # but we know of no workaround that is simple, portable, and efficient.
  2729. # So, don't put newlines in cache variables' values.
  2730. # Ultrix sh set writes to stderr and can't be redirected directly,
  2731. # and sets the high bit in the cache file unless we assign to the vars.
  2732. {
  2733. (set) 2>&1 |
  2734. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2735. *ac_space=\ *)
  2736. # `set' does not quote correctly, so add quotes (double-quote
  2737. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2738. sed -n \
  2739. "s/'/'\\\\''/g;
  2740. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2741. ;;
  2742. *)
  2743. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2744. sed -n \
  2745. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2746. ;;
  2747. esac;
  2748. } |
  2749. sed '
  2750. t clear
  2751. : clear
  2752. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2753. t end
  2754. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2755. : end' >>confcache
  2756. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2757. if test -w $cache_file; then
  2758. test "x$cache_file" != "x/dev/null"
  2759. cat confcache >$cache_file
  2760. else
  2761. echo "not updating unwritable cache $cache_file"
  2762. fi
  2763. fi
  2764. rm -f confcache
  2765. # Speedup compile
  2766. if test -z "$no_pipe"
  2767. then
  2768. if test -n "$GCC"
  2769. then
  2770. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2771. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2772. if test "${egg_cv_var_ccpipe+set}" = set; then
  2773. echo $ECHO_N "(cached) $ECHO_C" >&6
  2774. else
  2775. ac_old_CC="$CC"
  2776. CC="$CC -pipe"
  2777. cat >conftest.$ac_ext <<_ACEOF
  2778. /* confdefs.h. */
  2779. _ACEOF
  2780. cat confdefs.h >>conftest.$ac_ext
  2781. cat >>conftest.$ac_ext <<_ACEOF
  2782. /* end confdefs.h. */
  2783. int
  2784. main ()
  2785. {
  2786. ;
  2787. return 0;
  2788. }
  2789. _ACEOF
  2790. rm -f conftest.$ac_objext
  2791. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2792. (eval $ac_compile) 2>conftest.er1
  2793. ac_status=$?
  2794. grep -v '^ *+' conftest.er1 >conftest.err
  2795. rm -f conftest.er1
  2796. cat conftest.err >&5
  2797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2798. (exit $ac_status); } &&
  2799. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2801. (eval $ac_try) 2>&5
  2802. ac_status=$?
  2803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2804. (exit $ac_status); }; } &&
  2805. { ac_try='test -s conftest.$ac_objext'
  2806. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2807. (eval $ac_try) 2>&5
  2808. ac_status=$?
  2809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2810. (exit $ac_status); }; }; then
  2811. egg_cv_var_ccpipe="yes"
  2812. else
  2813. echo "$as_me: failed program was:" >&5
  2814. sed 's/^/| /' conftest.$ac_ext >&5
  2815. egg_cv_var_ccpipe="no"
  2816. fi
  2817. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2818. CC="$ac_old_CC"
  2819. fi
  2820. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2821. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2822. if test "$egg_cv_var_ccpipe" = "yes"
  2823. then
  2824. CC="$CC -pipe"
  2825. fi
  2826. fi
  2827. fi
  2828. CCDEPMODE=gcc
  2829. num=`$CC -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  2830. if test $num = "3"; then
  2831. CCDEPMODE=gcc3
  2832. fi
  2833. # Create static binaries
  2834. if test -z "$no_static"
  2835. then
  2836. if test -n "$GCC"
  2837. then
  2838. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  2839. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  2840. if test "${egg_cv_var_ccstatic+set}" = set; then
  2841. echo $ECHO_N "(cached) $ECHO_C" >&6
  2842. else
  2843. ac_old_CC="$CC"
  2844. CC="$CC -static"
  2845. cat >conftest.$ac_ext <<_ACEOF
  2846. /* confdefs.h. */
  2847. _ACEOF
  2848. cat confdefs.h >>conftest.$ac_ext
  2849. cat >>conftest.$ac_ext <<_ACEOF
  2850. /* end confdefs.h. */
  2851. int
  2852. main ()
  2853. {
  2854. ;
  2855. return 0;
  2856. }
  2857. _ACEOF
  2858. rm -f conftest.$ac_objext
  2859. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2860. (eval $ac_compile) 2>conftest.er1
  2861. ac_status=$?
  2862. grep -v '^ *+' conftest.er1 >conftest.err
  2863. rm -f conftest.er1
  2864. cat conftest.err >&5
  2865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2866. (exit $ac_status); } &&
  2867. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2868. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2869. (eval $ac_try) 2>&5
  2870. ac_status=$?
  2871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2872. (exit $ac_status); }; } &&
  2873. { ac_try='test -s conftest.$ac_objext'
  2874. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2875. (eval $ac_try) 2>&5
  2876. ac_status=$?
  2877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2878. (exit $ac_status); }; }; then
  2879. egg_cv_var_ccstatic="yes"
  2880. else
  2881. echo "$as_me: failed program was:" >&5
  2882. sed 's/^/| /' conftest.$ac_ext >&5
  2883. egg_cv_var_ccstatic="no"
  2884. fi
  2885. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2886. CC="$ac_old_CC"
  2887. fi
  2888. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  2889. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  2890. if test "$egg_cv_var_ccstatic" = "yes"
  2891. then
  2892. CCDEBUG="$CC"
  2893. CC="$CC -static"
  2894. else
  2895. cat << 'EOF' >&2
  2896. configure: error:
  2897. Your C compiler does not support -static.
  2898. This compile flag is required for the botpack.
  2899. EOF
  2900. exit 1
  2901. fi
  2902. fi
  2903. fi
  2904. # Checks for programs
  2905. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2906. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2907. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2908. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2909. echo $ECHO_N "(cached) $ECHO_C" >&6
  2910. else
  2911. cat >conftest.make <<\_ACEOF
  2912. all:
  2913. @echo 'ac_maketemp="$(MAKE)"'
  2914. _ACEOF
  2915. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2916. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2917. if test -n "$ac_maketemp"; then
  2918. eval ac_cv_prog_make_${ac_make}_set=yes
  2919. else
  2920. eval ac_cv_prog_make_${ac_make}_set=no
  2921. fi
  2922. rm -f conftest.make
  2923. fi
  2924. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2925. echo "$as_me:$LINENO: result: yes" >&5
  2926. echo "${ECHO_T}yes" >&6
  2927. SET_MAKE=
  2928. else
  2929. echo "$as_me:$LINENO: result: no" >&5
  2930. echo "${ECHO_T}no" >&6
  2931. SET_MAKE="MAKE=${MAKE-make}"
  2932. fi
  2933. cat << 'EOF' > conftest.head
  2934. a
  2935. b
  2936. c
  2937. EOF
  2938. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  2939. do
  2940. echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  2941. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6
  2942. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  2943. echo $ECHO_N "(cached) $ECHO_C" >&6
  2944. else
  2945. if test -n "$HEAD_1"
  2946. then
  2947. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  2948. else
  2949. if test "`cat conftest.head | $ac_prog`" = "a";
  2950. then
  2951. echo "$as_me:$LINENO: result: yes" >&5
  2952. echo "${ECHO_T}yes" >&6
  2953. ac_cv_prog_HEAD_1=$ac_prog
  2954. else
  2955. echo "$as_me:$LINENO: result: no" >&5
  2956. echo "${ECHO_T}no" >&6
  2957. fi
  2958. fi
  2959. fi
  2960. test -n "$ac_cv_prog_HEAD_1" && break
  2961. done
  2962. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  2963. then
  2964. cat << 'EOF' >&2
  2965. configure: error:
  2966. This system seems to lack a working 'head -1' or 'head -n 1' command.
  2967. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  2968. EOF
  2969. exit 1
  2970. fi
  2971. rm -f conftest.head
  2972. HEAD_1=$ac_cv_prog_HEAD_1
  2973. # awk is needed for Tcl library and header checks, and eggdrop version subst
  2974. for ac_prog in gawk mawk nawk awk
  2975. do
  2976. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2977. set dummy $ac_prog; ac_word=$2
  2978. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2979. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2980. if test "${ac_cv_prog_AWK+set}" = set; then
  2981. echo $ECHO_N "(cached) $ECHO_C" >&6
  2982. else
  2983. if test -n "$AWK"; then
  2984. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2985. else
  2986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2987. for as_dir in $PATH
  2988. do
  2989. IFS=$as_save_IFS
  2990. test -z "$as_dir" && as_dir=.
  2991. for ac_exec_ext in '' $ac_executable_extensions; do
  2992. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2993. ac_cv_prog_AWK="$ac_prog"
  2994. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2995. break 2
  2996. fi
  2997. done
  2998. done
  2999. fi
  3000. fi
  3001. AWK=$ac_cv_prog_AWK
  3002. if test -n "$AWK"; then
  3003. echo "$as_me:$LINENO: result: $AWK" >&5
  3004. echo "${ECHO_T}$AWK" >&6
  3005. else
  3006. echo "$as_me:$LINENO: result: no" >&5
  3007. echo "${ECHO_T}no" >&6
  3008. fi
  3009. test -n "$AWK" && break
  3010. done
  3011. if test "${AWK-x}" = "x"
  3012. then
  3013. cat << 'EOF' >&2
  3014. configure: error:
  3015. This system seems to lack a working 'awk' command.
  3016. A working 'awk' command is required to compile Eggdrop.
  3017. EOF
  3018. exit 1
  3019. fi
  3020. # basename is needed for Tcl library and header checks
  3021. # Extract the first word of "basename", so it can be a program name with args.
  3022. set dummy basename; ac_word=$2
  3023. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3024. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3025. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3026. echo $ECHO_N "(cached) $ECHO_C" >&6
  3027. else
  3028. if test -n "$BASENAME"; then
  3029. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3030. else
  3031. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3032. for as_dir in $PATH
  3033. do
  3034. IFS=$as_save_IFS
  3035. test -z "$as_dir" && as_dir=.
  3036. for ac_exec_ext in '' $ac_executable_extensions; do
  3037. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3038. ac_cv_prog_BASENAME="basename"
  3039. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3040. break 2
  3041. fi
  3042. done
  3043. done
  3044. fi
  3045. fi
  3046. BASENAME=$ac_cv_prog_BASENAME
  3047. if test -n "$BASENAME"; then
  3048. echo "$as_me:$LINENO: result: $BASENAME" >&5
  3049. echo "${ECHO_T}$BASENAME" >&6
  3050. else
  3051. echo "$as_me:$LINENO: result: no" >&5
  3052. echo "${ECHO_T}no" >&6
  3053. fi
  3054. if test "${BASENAME-x}" = "x"
  3055. then
  3056. cat << 'EOF' >&2
  3057. configure: error:
  3058. This system seems to lack a working 'basename' command.
  3059. A working 'basename' command is required to compile Eggdrop.
  3060. EOF
  3061. exit 1
  3062. fi
  3063. # Extract the first word of "objcopy", so it can be a program name with args.
  3064. set dummy objcopy; ac_word=$2
  3065. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3066. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3067. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  3068. echo $ECHO_N "(cached) $ECHO_C" >&6
  3069. else
  3070. if test -n "$OBJCOPY"; then
  3071. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3072. else
  3073. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3074. for as_dir in $PATH
  3075. do
  3076. IFS=$as_save_IFS
  3077. test -z "$as_dir" && as_dir=.
  3078. for ac_exec_ext in '' $ac_executable_extensions; do
  3079. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3080. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3081. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3082. break 2
  3083. fi
  3084. done
  3085. done
  3086. fi
  3087. fi
  3088. OBJCOPY=$ac_cv_prog_OBJCOPY
  3089. if test -n "$OBJCOPY"; then
  3090. echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  3091. echo "${ECHO_T}$OBJCOPY" >&6
  3092. else
  3093. echo "$as_me:$LINENO: result: no" >&5
  3094. echo "${ECHO_T}no" >&6
  3095. fi
  3096. # Extract the first word of "strip", so it can be a program name with args.
  3097. set dummy strip; ac_word=$2
  3098. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3099. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3100. if test "${ac_cv_prog_STRIP+set}" = set; then
  3101. echo $ECHO_N "(cached) $ECHO_C" >&6
  3102. else
  3103. if test -n "$STRIP"; then
  3104. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3105. else
  3106. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3107. for as_dir in $PATH
  3108. do
  3109. IFS=$as_save_IFS
  3110. test -z "$as_dir" && as_dir=.
  3111. for ac_exec_ext in '' $ac_executable_extensions; do
  3112. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3113. ac_cv_prog_STRIP="strip"
  3114. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3115. break 2
  3116. fi
  3117. done
  3118. done
  3119. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3120. fi
  3121. fi
  3122. STRIP=$ac_cv_prog_STRIP
  3123. if test -n "$STRIP"; then
  3124. echo "$as_me:$LINENO: result: $STRIP" >&5
  3125. echo "${ECHO_T}$STRIP" >&6
  3126. else
  3127. echo "$as_me:$LINENO: result: no" >&5
  3128. echo "${ECHO_T}no" >&6
  3129. fi
  3130. # Extract the first word of "uname", so it can be a program name with args.
  3131. set dummy uname; ac_word=$2
  3132. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3133. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3134. if test "${ac_cv_prog_UNAME+set}" = set; then
  3135. echo $ECHO_N "(cached) $ECHO_C" >&6
  3136. else
  3137. if test -n "$UNAME"; then
  3138. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3139. else
  3140. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3141. for as_dir in $PATH
  3142. do
  3143. IFS=$as_save_IFS
  3144. test -z "$as_dir" && as_dir=.
  3145. for ac_exec_ext in '' $ac_executable_extensions; do
  3146. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3147. ac_cv_prog_UNAME="uname"
  3148. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3149. break 2
  3150. fi
  3151. done
  3152. done
  3153. fi
  3154. fi
  3155. UNAME=$ac_cv_prog_UNAME
  3156. if test -n "$UNAME"; then
  3157. echo "$as_me:$LINENO: result: $UNAME" >&5
  3158. echo "${ECHO_T}$UNAME" >&6
  3159. else
  3160. echo "$as_me:$LINENO: result: no" >&5
  3161. echo "${ECHO_T}no" >&6
  3162. fi
  3163. #AC_CHECK_PROG(CCACHE, ccache, ccache)
  3164. # Extract the first word of "distcc", so it can be a program name with args.
  3165. set dummy distcc; ac_word=$2
  3166. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3167. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3168. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3169. echo $ECHO_N "(cached) $ECHO_C" >&6
  3170. else
  3171. if test -n "$DISTCC"; then
  3172. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3173. else
  3174. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3175. for as_dir in $PATH
  3176. do
  3177. IFS=$as_save_IFS
  3178. test -z "$as_dir" && as_dir=.
  3179. for ac_exec_ext in '' $ac_executable_extensions; do
  3180. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3181. ac_cv_prog_DISTCC="distcc"
  3182. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3183. break 2
  3184. fi
  3185. done
  3186. done
  3187. fi
  3188. fi
  3189. DISTCC=$ac_cv_prog_DISTCC
  3190. if test -n "$DISTCC"; then
  3191. echo "$as_me:$LINENO: result: $DISTCC" >&5
  3192. echo "${ECHO_T}$DISTCC" >&6
  3193. else
  3194. echo "$as_me:$LINENO: result: no" >&5
  3195. echo "${ECHO_T}no" >&6
  3196. fi
  3197. # Test the os and set the module linking settings
  3198. LINUX=no
  3199. IRIX=no
  3200. SUNOS=no
  3201. HPUX=no
  3202. EGG_CYGWIN=no
  3203. echo "$as_me:$LINENO: checking system type" >&5
  3204. echo $ECHO_N "checking system type... $ECHO_C" >&6
  3205. if test "${egg_cv_var_system_type+set}" = set; then
  3206. echo $ECHO_N "(cached) $ECHO_C" >&6
  3207. else
  3208. egg_cv_var_system_type=`$UNAME -s`
  3209. fi
  3210. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3211. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3212. echo "$as_me:$LINENO: checking system release" >&5
  3213. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3214. if test "${egg_cv_var_system_release+set}" = set; then
  3215. echo $ECHO_N "(cached) $ECHO_C" >&6
  3216. else
  3217. egg_cv_var_system_release=`$UNAME -r`
  3218. fi
  3219. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3220. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3221. case "$egg_cv_var_system_type" in
  3222. BSD/OS)
  3223. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3224. 2)
  3225. ;;
  3226. *)
  3227. CFLAGS="$CFLAGS -Wall"
  3228. ;;
  3229. esac
  3230. ;;
  3231. CYGWI*)
  3232. case "`echo $egg_cv_var_system_release | cut -c 1-3`" in
  3233. 1.*)
  3234. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3235. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3236. WIN32FLAGS=
  3237. cat >conftest.$ac_ext <<_ACEOF
  3238. /* confdefs.h. */
  3239. _ACEOF
  3240. cat confdefs.h >>conftest.$ac_ext
  3241. cat >>conftest.$ac_ext <<_ACEOF
  3242. /* end confdefs.h. */
  3243. int
  3244. main ()
  3245. {
  3246. #ifndef WIN32
  3247. # ifndef _WIN32
  3248. # error WIN32 or _WIN32 not defined
  3249. # endif
  3250. #endif
  3251. ;
  3252. return 0;
  3253. }
  3254. _ACEOF
  3255. rm -f conftest.$ac_objext
  3256. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3257. (eval $ac_compile) 2>conftest.er1
  3258. ac_status=$?
  3259. grep -v '^ *+' conftest.er1 >conftest.err
  3260. rm -f conftest.er1
  3261. cat conftest.err >&5
  3262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3263. (exit $ac_status); } &&
  3264. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3265. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3266. (eval $ac_try) 2>&5
  3267. ac_status=$?
  3268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3269. (exit $ac_status); }; } &&
  3270. { ac_try='test -s conftest.$ac_objext'
  3271. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3272. (eval $ac_try) 2>&5
  3273. ac_status=$?
  3274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3275. (exit $ac_status); }; }; then
  3276. echo "$as_me:$LINENO: result: present by default" >&5
  3277. echo "${ECHO_T}present by default" >&6
  3278. else
  3279. echo "$as_me: failed program was:" >&5
  3280. sed 's/^/| /' conftest.$ac_ext >&5
  3281. ac_compile_save="$ac_compile"
  3282. save_CC="$CC"
  3283. ac_compile="$ac_compile -mwin32"
  3284. CC="$CC -mwin32"
  3285. cat >conftest.$ac_ext <<_ACEOF
  3286. /* confdefs.h. */
  3287. _ACEOF
  3288. cat confdefs.h >>conftest.$ac_ext
  3289. cat >>conftest.$ac_ext <<_ACEOF
  3290. /* end confdefs.h. */
  3291. int
  3292. main ()
  3293. {
  3294. #ifndef WIN32
  3295. # ifndef _WIN32
  3296. # error WIN32 or _WIN32 not defined
  3297. # endif
  3298. #endif
  3299. ;
  3300. return 0;
  3301. }
  3302. _ACEOF
  3303. rm -f conftest.$ac_objext
  3304. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3305. (eval $ac_compile) 2>conftest.er1
  3306. ac_status=$?
  3307. grep -v '^ *+' conftest.er1 >conftest.err
  3308. rm -f conftest.er1
  3309. cat conftest.err >&5
  3310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3311. (exit $ac_status); } &&
  3312. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3313. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3314. (eval $ac_try) 2>&5
  3315. ac_status=$?
  3316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3317. (exit $ac_status); }; } &&
  3318. { ac_try='test -s conftest.$ac_objext'
  3319. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3320. (eval $ac_try) 2>&5
  3321. ac_status=$?
  3322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3323. (exit $ac_status); }; }; then
  3324. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3325. echo "${ECHO_T}found via -mwin32" >&6
  3326. ac_compile="$ac_compile_save"
  3327. CC="$save_CC"
  3328. WIN32FLAGS="-mwin32"
  3329. else
  3330. echo "$as_me: failed program was:" >&5
  3331. sed 's/^/| /' conftest.$ac_ext >&5
  3332. ac_compile="$ac_compile_save"
  3333. CC="$save_CC"
  3334. echo "$as_me:$LINENO: result: not found" >&5
  3335. echo "${ECHO_T}not found" >&6
  3336. fi
  3337. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3338. fi
  3339. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3340. CC="$CC $WIN32FLAGS"
  3341. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3342. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3343. if test -r /usr/lib/binmode.o
  3344. then
  3345. echo "$as_me:$LINENO: result: yes" >&5
  3346. echo "${ECHO_T}yes" >&6
  3347. LIBS="$LIBS /usr/lib/binmode.o"
  3348. else
  3349. echo "$as_me:$LINENO: result: no" >&5
  3350. echo "${ECHO_T}no" >&6
  3351. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3352. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3353. fi
  3354. ;;
  3355. *)
  3356. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3357. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3358. ;;
  3359. esac
  3360. EGG_CYGWIN=yes
  3361. cat >>confdefs.h <<\_ACEOF
  3362. #define CYGWIN_HACKS 1
  3363. _ACEOF
  3364. ;;
  3365. HP-UX)
  3366. HPUX=yes
  3367. cat >>confdefs.h <<\_ACEOF
  3368. #define HPUX_HACKS 1
  3369. _ACEOF
  3370. if test "`echo $egg_cv_var_system_release | cut -d . -f 2`" = "10"
  3371. then
  3372. cat >>confdefs.h <<\_ACEOF
  3373. #define HPUX10_HACKS 1
  3374. _ACEOF
  3375. fi
  3376. ;;
  3377. dell)
  3378. echo "$as_me:$LINENO: result: Dell SVR4" >&5
  3379. echo "${ECHO_T}Dell SVR4" >&6
  3380. ;;
  3381. IRIX)
  3382. IRIX=yes
  3383. ;;
  3384. Ultrix)
  3385. SHELL=/bin/sh5
  3386. ;;
  3387. SINIX*)
  3388. ;;
  3389. BeOS)
  3390. ;;
  3391. Linux)
  3392. LINUX=yes
  3393. CFLAGS="$CFLAGS -Wall"
  3394. ;;
  3395. Lynx)
  3396. ;;
  3397. QNX)
  3398. ;;
  3399. OSF1)
  3400. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3401. V*)
  3402. # FIXME: we should check this in a separate test
  3403. # Digital OSF uses an ancient version of gawk
  3404. if test "$AWK" = "gawk"
  3405. then
  3406. AWK=awk
  3407. fi
  3408. ;;
  3409. 1.0|1.1|1.2)
  3410. cat >>confdefs.h <<\_ACEOF
  3411. #define OSF1_HACKS 1
  3412. _ACEOF
  3413. ;;
  3414. 1.*)
  3415. cat >>confdefs.h <<\_ACEOF
  3416. #define OSF1_HACKS 1
  3417. _ACEOF
  3418. ;;
  3419. *)
  3420. ;;
  3421. esac
  3422. cat >>confdefs.h <<\_ACEOF
  3423. #define STOP_UAC 1
  3424. _ACEOF
  3425. cat >>confdefs.h <<\_ACEOF
  3426. #define BROKEN_SNPRINTF 1
  3427. _ACEOF
  3428. ;;
  3429. SunOS)
  3430. if ! test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"
  3431. then
  3432. # SunOS 4
  3433. SUNOS=yes
  3434. fi
  3435. ;;
  3436. *BSD)
  3437. # FreeBSD/OpenBSD/NetBSD
  3438. ;;
  3439. *)
  3440. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3441. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3442. if test -r /mach
  3443. then
  3444. echo "$as_me:$LINENO: result: yes" >&5
  3445. echo "${ECHO_T}yes" >&6
  3446. cat >>confdefs.h <<\_ACEOF
  3447. #define BORGCUBES 1
  3448. _ACEOF
  3449. else
  3450. echo "$as_me:$LINENO: result: no" >&5
  3451. echo "${ECHO_T}no" >&6
  3452. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3453. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3454. if test -r /cmds
  3455. then
  3456. echo "$as_me:$LINENO: result: yes" >&5
  3457. echo "${ECHO_T}yes" >&6
  3458. else
  3459. echo "$as_me:$LINENO: result: no" >&5
  3460. echo "${ECHO_T}no" >&6
  3461. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3462. echo "${ECHO_T}Something unknown!" >&6
  3463. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3464. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3465. fi
  3466. fi
  3467. ;;
  3468. esac
  3469. dns_reslib_avail="true"
  3470. echo "$as_me:$LINENO: checking for res_init" >&5
  3471. echo $ECHO_N "checking for res_init... $ECHO_C" >&6
  3472. if test "${ac_cv_func_res_init+set}" = set; then
  3473. echo $ECHO_N "(cached) $ECHO_C" >&6
  3474. else
  3475. cat >conftest.$ac_ext <<_ACEOF
  3476. /* confdefs.h. */
  3477. _ACEOF
  3478. cat confdefs.h >>conftest.$ac_ext
  3479. cat >>conftest.$ac_ext <<_ACEOF
  3480. /* end confdefs.h. */
  3481. /* Define res_init to an innocuous variant, in case <limits.h> declares res_init.
  3482. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3483. #define res_init innocuous_res_init
  3484. /* System header to define __stub macros and hopefully few prototypes,
  3485. which can conflict with char res_init (); below.
  3486. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3487. <limits.h> exists even on freestanding compilers. */
  3488. #ifdef __STDC__
  3489. # include <limits.h>
  3490. #else
  3491. # include <assert.h>
  3492. #endif
  3493. #undef res_init
  3494. /* Override any gcc2 internal prototype to avoid an error. */
  3495. #ifdef __cplusplus
  3496. extern "C"
  3497. {
  3498. #endif
  3499. /* We use char because int might match the return type of a gcc2
  3500. builtin and then its argument prototype would still apply. */
  3501. char res_init ();
  3502. /* The GNU C library defines this for functions which it implements
  3503. to always fail with ENOSYS. Some functions are actually named
  3504. something starting with __ and the normal name is an alias. */
  3505. #if defined (__stub_res_init) || defined (__stub___res_init)
  3506. choke me
  3507. #else
  3508. char (*f) () = res_init;
  3509. #endif
  3510. #ifdef __cplusplus
  3511. }
  3512. #endif
  3513. int
  3514. main ()
  3515. {
  3516. return f != res_init;
  3517. ;
  3518. return 0;
  3519. }
  3520. _ACEOF
  3521. rm -f conftest.$ac_objext conftest$ac_exeext
  3522. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3523. (eval $ac_link) 2>conftest.er1
  3524. ac_status=$?
  3525. grep -v '^ *+' conftest.er1 >conftest.err
  3526. rm -f conftest.er1
  3527. cat conftest.err >&5
  3528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3529. (exit $ac_status); } &&
  3530. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3531. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3532. (eval $ac_try) 2>&5
  3533. ac_status=$?
  3534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3535. (exit $ac_status); }; } &&
  3536. { ac_try='test -s conftest$ac_exeext'
  3537. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3538. (eval $ac_try) 2>&5
  3539. ac_status=$?
  3540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3541. (exit $ac_status); }; }; then
  3542. ac_cv_func_res_init=yes
  3543. else
  3544. echo "$as_me: failed program was:" >&5
  3545. sed 's/^/| /' conftest.$ac_ext >&5
  3546. ac_cv_func_res_init=no
  3547. fi
  3548. rm -f conftest.err conftest.$ac_objext \
  3549. conftest$ac_exeext conftest.$ac_ext
  3550. fi
  3551. echo "$as_me:$LINENO: result: $ac_cv_func_res_init" >&5
  3552. echo "${ECHO_T}$ac_cv_func_res_init" >&6
  3553. if test $ac_cv_func_res_init = yes; then
  3554. :
  3555. else
  3556. echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
  3557. echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
  3558. if test "${ac_cv_lib_resolv_res_init+set}" = set; then
  3559. echo $ECHO_N "(cached) $ECHO_C" >&6
  3560. else
  3561. ac_check_lib_save_LIBS=$LIBS
  3562. LIBS="-lresolv $LIBS"
  3563. cat >conftest.$ac_ext <<_ACEOF
  3564. /* confdefs.h. */
  3565. _ACEOF
  3566. cat confdefs.h >>conftest.$ac_ext
  3567. cat >>conftest.$ac_ext <<_ACEOF
  3568. /* end confdefs.h. */
  3569. /* Override any gcc2 internal prototype to avoid an error. */
  3570. #ifdef __cplusplus
  3571. extern "C"
  3572. #endif
  3573. /* We use char because int might match the return type of a gcc2
  3574. builtin and then its argument prototype would still apply. */
  3575. char res_init ();
  3576. int
  3577. main ()
  3578. {
  3579. res_init ();
  3580. ;
  3581. return 0;
  3582. }
  3583. _ACEOF
  3584. rm -f conftest.$ac_objext conftest$ac_exeext
  3585. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3586. (eval $ac_link) 2>conftest.er1
  3587. ac_status=$?
  3588. grep -v '^ *+' conftest.er1 >conftest.err
  3589. rm -f conftest.er1
  3590. cat conftest.err >&5
  3591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3592. (exit $ac_status); } &&
  3593. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3594. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3595. (eval $ac_try) 2>&5
  3596. ac_status=$?
  3597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3598. (exit $ac_status); }; } &&
  3599. { ac_try='test -s conftest$ac_exeext'
  3600. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3601. (eval $ac_try) 2>&5
  3602. ac_status=$?
  3603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3604. (exit $ac_status); }; }; then
  3605. ac_cv_lib_resolv_res_init=yes
  3606. else
  3607. echo "$as_me: failed program was:" >&5
  3608. sed 's/^/| /' conftest.$ac_ext >&5
  3609. ac_cv_lib_resolv_res_init=no
  3610. fi
  3611. rm -f conftest.err conftest.$ac_objext \
  3612. conftest$ac_exeext conftest.$ac_ext
  3613. LIBS=$ac_check_lib_save_LIBS
  3614. fi
  3615. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
  3616. echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
  3617. if test $ac_cv_lib_resolv_res_init = yes; then
  3618. RESLIB="-lresolv"
  3619. else
  3620. echo "$as_me:$LINENO: checking for res_init in -lbind" >&5
  3621. echo $ECHO_N "checking for res_init in -lbind... $ECHO_C" >&6
  3622. if test "${ac_cv_lib_bind_res_init+set}" = set; then
  3623. echo $ECHO_N "(cached) $ECHO_C" >&6
  3624. else
  3625. ac_check_lib_save_LIBS=$LIBS
  3626. LIBS="-lbind $LIBS"
  3627. cat >conftest.$ac_ext <<_ACEOF
  3628. /* confdefs.h. */
  3629. _ACEOF
  3630. cat confdefs.h >>conftest.$ac_ext
  3631. cat >>conftest.$ac_ext <<_ACEOF
  3632. /* end confdefs.h. */
  3633. /* Override any gcc2 internal prototype to avoid an error. */
  3634. #ifdef __cplusplus
  3635. extern "C"
  3636. #endif
  3637. /* We use char because int might match the return type of a gcc2
  3638. builtin and then its argument prototype would still apply. */
  3639. char res_init ();
  3640. int
  3641. main ()
  3642. {
  3643. res_init ();
  3644. ;
  3645. return 0;
  3646. }
  3647. _ACEOF
  3648. rm -f conftest.$ac_objext conftest$ac_exeext
  3649. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3650. (eval $ac_link) 2>conftest.er1
  3651. ac_status=$?
  3652. grep -v '^ *+' conftest.er1 >conftest.err
  3653. rm -f conftest.er1
  3654. cat conftest.err >&5
  3655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3656. (exit $ac_status); } &&
  3657. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3658. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3659. (eval $ac_try) 2>&5
  3660. ac_status=$?
  3661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3662. (exit $ac_status); }; } &&
  3663. { ac_try='test -s conftest$ac_exeext'
  3664. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3665. (eval $ac_try) 2>&5
  3666. ac_status=$?
  3667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3668. (exit $ac_status); }; }; then
  3669. ac_cv_lib_bind_res_init=yes
  3670. else
  3671. echo "$as_me: failed program was:" >&5
  3672. sed 's/^/| /' conftest.$ac_ext >&5
  3673. ac_cv_lib_bind_res_init=no
  3674. fi
  3675. rm -f conftest.err conftest.$ac_objext \
  3676. conftest$ac_exeext conftest.$ac_ext
  3677. LIBS=$ac_check_lib_save_LIBS
  3678. fi
  3679. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_init" >&5
  3680. echo "${ECHO_T}$ac_cv_lib_bind_res_init" >&6
  3681. if test $ac_cv_lib_bind_res_init = yes; then
  3682. RESLIB="-lbind"
  3683. else
  3684. dns_reslib_avail="false";
  3685. fi
  3686. fi
  3687. fi
  3688. if test "${dns_reslib_avail}" = false; then
  3689. dns_reslib_avail="true"
  3690. echo "$as_me:$LINENO: checking for __res_init" >&5
  3691. echo $ECHO_N "checking for __res_init... $ECHO_C" >&6
  3692. if test "${ac_cv_func___res_init+set}" = set; then
  3693. echo $ECHO_N "(cached) $ECHO_C" >&6
  3694. else
  3695. cat >conftest.$ac_ext <<_ACEOF
  3696. /* confdefs.h. */
  3697. _ACEOF
  3698. cat confdefs.h >>conftest.$ac_ext
  3699. cat >>conftest.$ac_ext <<_ACEOF
  3700. /* end confdefs.h. */
  3701. /* Define __res_init to an innocuous variant, in case <limits.h> declares __res_init.
  3702. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3703. #define __res_init innocuous___res_init
  3704. /* System header to define __stub macros and hopefully few prototypes,
  3705. which can conflict with char __res_init (); below.
  3706. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3707. <limits.h> exists even on freestanding compilers. */
  3708. #ifdef __STDC__
  3709. # include <limits.h>
  3710. #else
  3711. # include <assert.h>
  3712. #endif
  3713. #undef __res_init
  3714. /* Override any gcc2 internal prototype to avoid an error. */
  3715. #ifdef __cplusplus
  3716. extern "C"
  3717. {
  3718. #endif
  3719. /* We use char because int might match the return type of a gcc2
  3720. builtin and then its argument prototype would still apply. */
  3721. char __res_init ();
  3722. /* The GNU C library defines this for functions which it implements
  3723. to always fail with ENOSYS. Some functions are actually named
  3724. something starting with __ and the normal name is an alias. */
  3725. #if defined (__stub___res_init) || defined (__stub_____res_init)
  3726. choke me
  3727. #else
  3728. char (*f) () = __res_init;
  3729. #endif
  3730. #ifdef __cplusplus
  3731. }
  3732. #endif
  3733. int
  3734. main ()
  3735. {
  3736. return f != __res_init;
  3737. ;
  3738. return 0;
  3739. }
  3740. _ACEOF
  3741. rm -f conftest.$ac_objext conftest$ac_exeext
  3742. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3743. (eval $ac_link) 2>conftest.er1
  3744. ac_status=$?
  3745. grep -v '^ *+' conftest.er1 >conftest.err
  3746. rm -f conftest.er1
  3747. cat conftest.err >&5
  3748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3749. (exit $ac_status); } &&
  3750. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3751. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3752. (eval $ac_try) 2>&5
  3753. ac_status=$?
  3754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3755. (exit $ac_status); }; } &&
  3756. { ac_try='test -s conftest$ac_exeext'
  3757. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3758. (eval $ac_try) 2>&5
  3759. ac_status=$?
  3760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3761. (exit $ac_status); }; }; then
  3762. ac_cv_func___res_init=yes
  3763. else
  3764. echo "$as_me: failed program was:" >&5
  3765. sed 's/^/| /' conftest.$ac_ext >&5
  3766. ac_cv_func___res_init=no
  3767. fi
  3768. rm -f conftest.err conftest.$ac_objext \
  3769. conftest$ac_exeext conftest.$ac_ext
  3770. fi
  3771. echo "$as_me:$LINENO: result: $ac_cv_func___res_init" >&5
  3772. echo "${ECHO_T}$ac_cv_func___res_init" >&6
  3773. if test $ac_cv_func___res_init = yes; then
  3774. :
  3775. else
  3776. echo "$as_me:$LINENO: checking for __res_init in -lresolv" >&5
  3777. echo $ECHO_N "checking for __res_init in -lresolv... $ECHO_C" >&6
  3778. if test "${ac_cv_lib_resolv___res_init+set}" = set; then
  3779. echo $ECHO_N "(cached) $ECHO_C" >&6
  3780. else
  3781. ac_check_lib_save_LIBS=$LIBS
  3782. LIBS="-lresolv $LIBS"
  3783. cat >conftest.$ac_ext <<_ACEOF
  3784. /* confdefs.h. */
  3785. _ACEOF
  3786. cat confdefs.h >>conftest.$ac_ext
  3787. cat >>conftest.$ac_ext <<_ACEOF
  3788. /* end confdefs.h. */
  3789. /* Override any gcc2 internal prototype to avoid an error. */
  3790. #ifdef __cplusplus
  3791. extern "C"
  3792. #endif
  3793. /* We use char because int might match the return type of a gcc2
  3794. builtin and then its argument prototype would still apply. */
  3795. char __res_init ();
  3796. int
  3797. main ()
  3798. {
  3799. __res_init ();
  3800. ;
  3801. return 0;
  3802. }
  3803. _ACEOF
  3804. rm -f conftest.$ac_objext conftest$ac_exeext
  3805. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3806. (eval $ac_link) 2>conftest.er1
  3807. ac_status=$?
  3808. grep -v '^ *+' conftest.er1 >conftest.err
  3809. rm -f conftest.er1
  3810. cat conftest.err >&5
  3811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3812. (exit $ac_status); } &&
  3813. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3814. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3815. (eval $ac_try) 2>&5
  3816. ac_status=$?
  3817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3818. (exit $ac_status); }; } &&
  3819. { ac_try='test -s conftest$ac_exeext'
  3820. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3821. (eval $ac_try) 2>&5
  3822. ac_status=$?
  3823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3824. (exit $ac_status); }; }; then
  3825. ac_cv_lib_resolv___res_init=yes
  3826. else
  3827. echo "$as_me: failed program was:" >&5
  3828. sed 's/^/| /' conftest.$ac_ext >&5
  3829. ac_cv_lib_resolv___res_init=no
  3830. fi
  3831. rm -f conftest.err conftest.$ac_objext \
  3832. conftest$ac_exeext conftest.$ac_ext
  3833. LIBS=$ac_check_lib_save_LIBS
  3834. fi
  3835. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_init" >&5
  3836. echo "${ECHO_T}$ac_cv_lib_resolv___res_init" >&6
  3837. if test $ac_cv_lib_resolv___res_init = yes; then
  3838. RESLIB="-lresolv"
  3839. else
  3840. echo "$as_me:$LINENO: checking for __res_init in -lbind" >&5
  3841. echo $ECHO_N "checking for __res_init in -lbind... $ECHO_C" >&6
  3842. if test "${ac_cv_lib_bind___res_init+set}" = set; then
  3843. echo $ECHO_N "(cached) $ECHO_C" >&6
  3844. else
  3845. ac_check_lib_save_LIBS=$LIBS
  3846. LIBS="-lbind $LIBS"
  3847. cat >conftest.$ac_ext <<_ACEOF
  3848. /* confdefs.h. */
  3849. _ACEOF
  3850. cat confdefs.h >>conftest.$ac_ext
  3851. cat >>conftest.$ac_ext <<_ACEOF
  3852. /* end confdefs.h. */
  3853. /* Override any gcc2 internal prototype to avoid an error. */
  3854. #ifdef __cplusplus
  3855. extern "C"
  3856. #endif
  3857. /* We use char because int might match the return type of a gcc2
  3858. builtin and then its argument prototype would still apply. */
  3859. char __res_init ();
  3860. int
  3861. main ()
  3862. {
  3863. __res_init ();
  3864. ;
  3865. return 0;
  3866. }
  3867. _ACEOF
  3868. rm -f conftest.$ac_objext conftest$ac_exeext
  3869. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3870. (eval $ac_link) 2>conftest.er1
  3871. ac_status=$?
  3872. grep -v '^ *+' conftest.er1 >conftest.err
  3873. rm -f conftest.er1
  3874. cat conftest.err >&5
  3875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3876. (exit $ac_status); } &&
  3877. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3878. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3879. (eval $ac_try) 2>&5
  3880. ac_status=$?
  3881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3882. (exit $ac_status); }; } &&
  3883. { ac_try='test -s conftest$ac_exeext'
  3884. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3885. (eval $ac_try) 2>&5
  3886. ac_status=$?
  3887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3888. (exit $ac_status); }; }; then
  3889. ac_cv_lib_bind___res_init=yes
  3890. else
  3891. echo "$as_me: failed program was:" >&5
  3892. sed 's/^/| /' conftest.$ac_ext >&5
  3893. ac_cv_lib_bind___res_init=no
  3894. fi
  3895. rm -f conftest.err conftest.$ac_objext \
  3896. conftest$ac_exeext conftest.$ac_ext
  3897. LIBS=$ac_check_lib_save_LIBS
  3898. fi
  3899. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_init" >&5
  3900. echo "${ECHO_T}$ac_cv_lib_bind___res_init" >&6
  3901. if test $ac_cv_lib_bind___res_init = yes; then
  3902. RESLIB="-lbind"
  3903. else
  3904. dns_reslib_avail="false";
  3905. fi
  3906. fi
  3907. fi
  3908. fi
  3909. echo "$as_me:$LINENO: checking for res_mkquery" >&5
  3910. echo $ECHO_N "checking for res_mkquery... $ECHO_C" >&6
  3911. if test "${ac_cv_func_res_mkquery+set}" = set; then
  3912. echo $ECHO_N "(cached) $ECHO_C" >&6
  3913. else
  3914. cat >conftest.$ac_ext <<_ACEOF
  3915. /* confdefs.h. */
  3916. _ACEOF
  3917. cat confdefs.h >>conftest.$ac_ext
  3918. cat >>conftest.$ac_ext <<_ACEOF
  3919. /* end confdefs.h. */
  3920. /* Define res_mkquery to an innocuous variant, in case <limits.h> declares res_mkquery.
  3921. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3922. #define res_mkquery innocuous_res_mkquery
  3923. /* System header to define __stub macros and hopefully few prototypes,
  3924. which can conflict with char res_mkquery (); below.
  3925. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3926. <limits.h> exists even on freestanding compilers. */
  3927. #ifdef __STDC__
  3928. # include <limits.h>
  3929. #else
  3930. # include <assert.h>
  3931. #endif
  3932. #undef res_mkquery
  3933. /* Override any gcc2 internal prototype to avoid an error. */
  3934. #ifdef __cplusplus
  3935. extern "C"
  3936. {
  3937. #endif
  3938. /* We use char because int might match the return type of a gcc2
  3939. builtin and then its argument prototype would still apply. */
  3940. char res_mkquery ();
  3941. /* The GNU C library defines this for functions which it implements
  3942. to always fail with ENOSYS. Some functions are actually named
  3943. something starting with __ and the normal name is an alias. */
  3944. #if defined (__stub_res_mkquery) || defined (__stub___res_mkquery)
  3945. choke me
  3946. #else
  3947. char (*f) () = res_mkquery;
  3948. #endif
  3949. #ifdef __cplusplus
  3950. }
  3951. #endif
  3952. int
  3953. main ()
  3954. {
  3955. return f != res_mkquery;
  3956. ;
  3957. return 0;
  3958. }
  3959. _ACEOF
  3960. rm -f conftest.$ac_objext conftest$ac_exeext
  3961. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3962. (eval $ac_link) 2>conftest.er1
  3963. ac_status=$?
  3964. grep -v '^ *+' conftest.er1 >conftest.err
  3965. rm -f conftest.er1
  3966. cat conftest.err >&5
  3967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3968. (exit $ac_status); } &&
  3969. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3970. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3971. (eval $ac_try) 2>&5
  3972. ac_status=$?
  3973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3974. (exit $ac_status); }; } &&
  3975. { ac_try='test -s conftest$ac_exeext'
  3976. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3977. (eval $ac_try) 2>&5
  3978. ac_status=$?
  3979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3980. (exit $ac_status); }; }; then
  3981. ac_cv_func_res_mkquery=yes
  3982. else
  3983. echo "$as_me: failed program was:" >&5
  3984. sed 's/^/| /' conftest.$ac_ext >&5
  3985. ac_cv_func_res_mkquery=no
  3986. fi
  3987. rm -f conftest.err conftest.$ac_objext \
  3988. conftest$ac_exeext conftest.$ac_ext
  3989. fi
  3990. echo "$as_me:$LINENO: result: $ac_cv_func_res_mkquery" >&5
  3991. echo "${ECHO_T}$ac_cv_func_res_mkquery" >&6
  3992. if test $ac_cv_func_res_mkquery = yes; then
  3993. :
  3994. else
  3995. echo "$as_me:$LINENO: checking for res_mkquery in -lresolv" >&5
  3996. echo $ECHO_N "checking for res_mkquery in -lresolv... $ECHO_C" >&6
  3997. if test "${ac_cv_lib_resolv_res_mkquery+set}" = set; then
  3998. echo $ECHO_N "(cached) $ECHO_C" >&6
  3999. else
  4000. ac_check_lib_save_LIBS=$LIBS
  4001. LIBS="-lresolv $LIBS"
  4002. cat >conftest.$ac_ext <<_ACEOF
  4003. /* confdefs.h. */
  4004. _ACEOF
  4005. cat confdefs.h >>conftest.$ac_ext
  4006. cat >>conftest.$ac_ext <<_ACEOF
  4007. /* end confdefs.h. */
  4008. /* Override any gcc2 internal prototype to avoid an error. */
  4009. #ifdef __cplusplus
  4010. extern "C"
  4011. #endif
  4012. /* We use char because int might match the return type of a gcc2
  4013. builtin and then its argument prototype would still apply. */
  4014. char res_mkquery ();
  4015. int
  4016. main ()
  4017. {
  4018. res_mkquery ();
  4019. ;
  4020. return 0;
  4021. }
  4022. _ACEOF
  4023. rm -f conftest.$ac_objext conftest$ac_exeext
  4024. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4025. (eval $ac_link) 2>conftest.er1
  4026. ac_status=$?
  4027. grep -v '^ *+' conftest.er1 >conftest.err
  4028. rm -f conftest.er1
  4029. cat conftest.err >&5
  4030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4031. (exit $ac_status); } &&
  4032. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4033. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4034. (eval $ac_try) 2>&5
  4035. ac_status=$?
  4036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4037. (exit $ac_status); }; } &&
  4038. { ac_try='test -s conftest$ac_exeext'
  4039. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4040. (eval $ac_try) 2>&5
  4041. ac_status=$?
  4042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4043. (exit $ac_status); }; }; then
  4044. ac_cv_lib_resolv_res_mkquery=yes
  4045. else
  4046. echo "$as_me: failed program was:" >&5
  4047. sed 's/^/| /' conftest.$ac_ext >&5
  4048. ac_cv_lib_resolv_res_mkquery=no
  4049. fi
  4050. rm -f conftest.err conftest.$ac_objext \
  4051. conftest$ac_exeext conftest.$ac_ext
  4052. LIBS=$ac_check_lib_save_LIBS
  4053. fi
  4054. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_mkquery" >&5
  4055. echo "${ECHO_T}$ac_cv_lib_resolv_res_mkquery" >&6
  4056. if test $ac_cv_lib_resolv_res_mkquery = yes; then
  4057. if test "x${RESLIB}" != "x-lresolv"; then
  4058. RESLIB="${RESLIB} -lresolv"
  4059. fi
  4060. else
  4061. echo "$as_me:$LINENO: checking for res_mkquery in -lbind" >&5
  4062. echo $ECHO_N "checking for res_mkquery in -lbind... $ECHO_C" >&6
  4063. if test "${ac_cv_lib_bind_res_mkquery+set}" = set; then
  4064. echo $ECHO_N "(cached) $ECHO_C" >&6
  4065. else
  4066. ac_check_lib_save_LIBS=$LIBS
  4067. LIBS="-lbind $LIBS"
  4068. cat >conftest.$ac_ext <<_ACEOF
  4069. /* confdefs.h. */
  4070. _ACEOF
  4071. cat confdefs.h >>conftest.$ac_ext
  4072. cat >>conftest.$ac_ext <<_ACEOF
  4073. /* end confdefs.h. */
  4074. /* Override any gcc2 internal prototype to avoid an error. */
  4075. #ifdef __cplusplus
  4076. extern "C"
  4077. #endif
  4078. /* We use char because int might match the return type of a gcc2
  4079. builtin and then its argument prototype would still apply. */
  4080. char res_mkquery ();
  4081. int
  4082. main ()
  4083. {
  4084. res_mkquery ();
  4085. ;
  4086. return 0;
  4087. }
  4088. _ACEOF
  4089. rm -f conftest.$ac_objext conftest$ac_exeext
  4090. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4091. (eval $ac_link) 2>conftest.er1
  4092. ac_status=$?
  4093. grep -v '^ *+' conftest.er1 >conftest.err
  4094. rm -f conftest.er1
  4095. cat conftest.err >&5
  4096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4097. (exit $ac_status); } &&
  4098. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4099. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4100. (eval $ac_try) 2>&5
  4101. ac_status=$?
  4102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4103. (exit $ac_status); }; } &&
  4104. { ac_try='test -s conftest$ac_exeext'
  4105. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4106. (eval $ac_try) 2>&5
  4107. ac_status=$?
  4108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4109. (exit $ac_status); }; }; then
  4110. ac_cv_lib_bind_res_mkquery=yes
  4111. else
  4112. echo "$as_me: failed program was:" >&5
  4113. sed 's/^/| /' conftest.$ac_ext >&5
  4114. ac_cv_lib_bind_res_mkquery=no
  4115. fi
  4116. rm -f conftest.err conftest.$ac_objext \
  4117. conftest$ac_exeext conftest.$ac_ext
  4118. LIBS=$ac_check_lib_save_LIBS
  4119. fi
  4120. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_mkquery" >&5
  4121. echo "${ECHO_T}$ac_cv_lib_bind_res_mkquery" >&6
  4122. if test $ac_cv_lib_bind_res_mkquery = yes; then
  4123. if test "x${RESLIB}" != "x-lbind"; then
  4124. RESLIB="${RESLIB} -lbind"
  4125. fi
  4126. else
  4127. dns_reslib_avail="false";
  4128. fi
  4129. fi
  4130. fi
  4131. if test "${dns_reslib_avail}" = false; then
  4132. dns_reslib_avail="true"
  4133. echo "$as_me:$LINENO: checking for __res_mkquery" >&5
  4134. echo $ECHO_N "checking for __res_mkquery... $ECHO_C" >&6
  4135. if test "${ac_cv_func___res_mkquery+set}" = set; then
  4136. echo $ECHO_N "(cached) $ECHO_C" >&6
  4137. else
  4138. cat >conftest.$ac_ext <<_ACEOF
  4139. /* confdefs.h. */
  4140. _ACEOF
  4141. cat confdefs.h >>conftest.$ac_ext
  4142. cat >>conftest.$ac_ext <<_ACEOF
  4143. /* end confdefs.h. */
  4144. /* Define __res_mkquery to an innocuous variant, in case <limits.h> declares __res_mkquery.
  4145. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4146. #define __res_mkquery innocuous___res_mkquery
  4147. /* System header to define __stub macros and hopefully few prototypes,
  4148. which can conflict with char __res_mkquery (); below.
  4149. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4150. <limits.h> exists even on freestanding compilers. */
  4151. #ifdef __STDC__
  4152. # include <limits.h>
  4153. #else
  4154. # include <assert.h>
  4155. #endif
  4156. #undef __res_mkquery
  4157. /* Override any gcc2 internal prototype to avoid an error. */
  4158. #ifdef __cplusplus
  4159. extern "C"
  4160. {
  4161. #endif
  4162. /* We use char because int might match the return type of a gcc2
  4163. builtin and then its argument prototype would still apply. */
  4164. char __res_mkquery ();
  4165. /* The GNU C library defines this for functions which it implements
  4166. to always fail with ENOSYS. Some functions are actually named
  4167. something starting with __ and the normal name is an alias. */
  4168. #if defined (__stub___res_mkquery) || defined (__stub_____res_mkquery)
  4169. choke me
  4170. #else
  4171. char (*f) () = __res_mkquery;
  4172. #endif
  4173. #ifdef __cplusplus
  4174. }
  4175. #endif
  4176. int
  4177. main ()
  4178. {
  4179. return f != __res_mkquery;
  4180. ;
  4181. return 0;
  4182. }
  4183. _ACEOF
  4184. rm -f conftest.$ac_objext conftest$ac_exeext
  4185. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4186. (eval $ac_link) 2>conftest.er1
  4187. ac_status=$?
  4188. grep -v '^ *+' conftest.er1 >conftest.err
  4189. rm -f conftest.er1
  4190. cat conftest.err >&5
  4191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4192. (exit $ac_status); } &&
  4193. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4194. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4195. (eval $ac_try) 2>&5
  4196. ac_status=$?
  4197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4198. (exit $ac_status); }; } &&
  4199. { ac_try='test -s conftest$ac_exeext'
  4200. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4201. (eval $ac_try) 2>&5
  4202. ac_status=$?
  4203. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4204. (exit $ac_status); }; }; then
  4205. ac_cv_func___res_mkquery=yes
  4206. else
  4207. echo "$as_me: failed program was:" >&5
  4208. sed 's/^/| /' conftest.$ac_ext >&5
  4209. ac_cv_func___res_mkquery=no
  4210. fi
  4211. rm -f conftest.err conftest.$ac_objext \
  4212. conftest$ac_exeext conftest.$ac_ext
  4213. fi
  4214. echo "$as_me:$LINENO: result: $ac_cv_func___res_mkquery" >&5
  4215. echo "${ECHO_T}$ac_cv_func___res_mkquery" >&6
  4216. if test $ac_cv_func___res_mkquery = yes; then
  4217. :
  4218. else
  4219. echo "$as_me:$LINENO: checking for __res_mkquery in -lresolv" >&5
  4220. echo $ECHO_N "checking for __res_mkquery in -lresolv... $ECHO_C" >&6
  4221. if test "${ac_cv_lib_resolv___res_mkquery+set}" = set; then
  4222. echo $ECHO_N "(cached) $ECHO_C" >&6
  4223. else
  4224. ac_check_lib_save_LIBS=$LIBS
  4225. LIBS="-lresolv $LIBS"
  4226. cat >conftest.$ac_ext <<_ACEOF
  4227. /* confdefs.h. */
  4228. _ACEOF
  4229. cat confdefs.h >>conftest.$ac_ext
  4230. cat >>conftest.$ac_ext <<_ACEOF
  4231. /* end confdefs.h. */
  4232. /* Override any gcc2 internal prototype to avoid an error. */
  4233. #ifdef __cplusplus
  4234. extern "C"
  4235. #endif
  4236. /* We use char because int might match the return type of a gcc2
  4237. builtin and then its argument prototype would still apply. */
  4238. char __res_mkquery ();
  4239. int
  4240. main ()
  4241. {
  4242. __res_mkquery ();
  4243. ;
  4244. return 0;
  4245. }
  4246. _ACEOF
  4247. rm -f conftest.$ac_objext conftest$ac_exeext
  4248. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4249. (eval $ac_link) 2>conftest.er1
  4250. ac_status=$?
  4251. grep -v '^ *+' conftest.er1 >conftest.err
  4252. rm -f conftest.er1
  4253. cat conftest.err >&5
  4254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4255. (exit $ac_status); } &&
  4256. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4257. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4258. (eval $ac_try) 2>&5
  4259. ac_status=$?
  4260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4261. (exit $ac_status); }; } &&
  4262. { ac_try='test -s conftest$ac_exeext'
  4263. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4264. (eval $ac_try) 2>&5
  4265. ac_status=$?
  4266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4267. (exit $ac_status); }; }; then
  4268. ac_cv_lib_resolv___res_mkquery=yes
  4269. else
  4270. echo "$as_me: failed program was:" >&5
  4271. sed 's/^/| /' conftest.$ac_ext >&5
  4272. ac_cv_lib_resolv___res_mkquery=no
  4273. fi
  4274. rm -f conftest.err conftest.$ac_objext \
  4275. conftest$ac_exeext conftest.$ac_ext
  4276. LIBS=$ac_check_lib_save_LIBS
  4277. fi
  4278. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_mkquery" >&5
  4279. echo "${ECHO_T}$ac_cv_lib_resolv___res_mkquery" >&6
  4280. if test $ac_cv_lib_resolv___res_mkquery = yes; then
  4281. if test "x${RESLIB}" != "x-lresolv"; then
  4282. RESLIB="${RESLIB} -lresolv"
  4283. fi
  4284. else
  4285. echo "$as_me:$LINENO: checking for __res_mkquery in -lbind" >&5
  4286. echo $ECHO_N "checking for __res_mkquery in -lbind... $ECHO_C" >&6
  4287. if test "${ac_cv_lib_bind___res_mkquery+set}" = set; then
  4288. echo $ECHO_N "(cached) $ECHO_C" >&6
  4289. else
  4290. ac_check_lib_save_LIBS=$LIBS
  4291. LIBS="-lbind $LIBS"
  4292. cat >conftest.$ac_ext <<_ACEOF
  4293. /* confdefs.h. */
  4294. _ACEOF
  4295. cat confdefs.h >>conftest.$ac_ext
  4296. cat >>conftest.$ac_ext <<_ACEOF
  4297. /* end confdefs.h. */
  4298. /* Override any gcc2 internal prototype to avoid an error. */
  4299. #ifdef __cplusplus
  4300. extern "C"
  4301. #endif
  4302. /* We use char because int might match the return type of a gcc2
  4303. builtin and then its argument prototype would still apply. */
  4304. char __res_mkquery ();
  4305. int
  4306. main ()
  4307. {
  4308. __res_mkquery ();
  4309. ;
  4310. return 0;
  4311. }
  4312. _ACEOF
  4313. rm -f conftest.$ac_objext conftest$ac_exeext
  4314. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4315. (eval $ac_link) 2>conftest.er1
  4316. ac_status=$?
  4317. grep -v '^ *+' conftest.er1 >conftest.err
  4318. rm -f conftest.er1
  4319. cat conftest.err >&5
  4320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4321. (exit $ac_status); } &&
  4322. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4323. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4324. (eval $ac_try) 2>&5
  4325. ac_status=$?
  4326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4327. (exit $ac_status); }; } &&
  4328. { ac_try='test -s conftest$ac_exeext'
  4329. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4330. (eval $ac_try) 2>&5
  4331. ac_status=$?
  4332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4333. (exit $ac_status); }; }; then
  4334. ac_cv_lib_bind___res_mkquery=yes
  4335. else
  4336. echo "$as_me: failed program was:" >&5
  4337. sed 's/^/| /' conftest.$ac_ext >&5
  4338. ac_cv_lib_bind___res_mkquery=no
  4339. fi
  4340. rm -f conftest.err conftest.$ac_objext \
  4341. conftest$ac_exeext conftest.$ac_ext
  4342. LIBS=$ac_check_lib_save_LIBS
  4343. fi
  4344. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_mkquery" >&5
  4345. echo "${ECHO_T}$ac_cv_lib_bind___res_mkquery" >&6
  4346. if test $ac_cv_lib_bind___res_mkquery = yes; then
  4347. if test "x${RESLIB}" != "x-lbind"; then
  4348. RESLIB="${RESLIB} -lbind"
  4349. fi
  4350. else
  4351. dns_reslib_avail="false";
  4352. fi
  4353. fi
  4354. fi
  4355. fi
  4356. if test "${dns_reslib_avail}" = false; then
  4357. if test "$ac_cv_cygwin" = "yes"; then
  4358. echo "$as_me:$LINENO: checking for /usr/local/bind/lib/libbind.a" >&5
  4359. echo $ECHO_N "checking for /usr/local/bind/lib/libbind.a... $ECHO_C" >&6
  4360. if test -r /usr/local/bind/lib/libbind.a; then
  4361. echo "$as_me:$LINENO: result: yes" >&5
  4362. echo "${ECHO_T}yes" >&6
  4363. RESLIB="${RESLIB} -L/usr/local/bind/lib -lbind"
  4364. RESINCLUDE="-I/usr/local/bind/include"
  4365. dns_reslib_avail="true"
  4366. else
  4367. echo "$as_me:$LINENO: result: no" >&5
  4368. echo "${ECHO_T}no" >&6
  4369. fi
  4370. fi
  4371. fi
  4372. if test "${dns_reslib_avail}" = false; then
  4373. cat >&2 <<EOF
  4374. configure: warning:
  4375. Your system provides no functional resolver library.
  4376. One is required for buld.
  4377. EOF
  4378. exit 1
  4379. fi
  4380. #checkpoint
  4381. cat >confcache <<\_ACEOF
  4382. # This file is a shell script that caches the results of configure
  4383. # tests run on this system so they can be shared between configure
  4384. # scripts and configure runs, see configure's option --config-cache.
  4385. # It is not useful on other systems. If it contains results you don't
  4386. # want to keep, you may remove or edit it.
  4387. #
  4388. # config.status only pays attention to the cache file if you give it
  4389. # the --recheck option to rerun configure.
  4390. #
  4391. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4392. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4393. # following values.
  4394. _ACEOF
  4395. # The following way of writing the cache mishandles newlines in values,
  4396. # but we know of no workaround that is simple, portable, and efficient.
  4397. # So, don't put newlines in cache variables' values.
  4398. # Ultrix sh set writes to stderr and can't be redirected directly,
  4399. # and sets the high bit in the cache file unless we assign to the vars.
  4400. {
  4401. (set) 2>&1 |
  4402. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4403. *ac_space=\ *)
  4404. # `set' does not quote correctly, so add quotes (double-quote
  4405. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4406. sed -n \
  4407. "s/'/'\\\\''/g;
  4408. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4409. ;;
  4410. *)
  4411. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4412. sed -n \
  4413. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4414. ;;
  4415. esac;
  4416. } |
  4417. sed '
  4418. t clear
  4419. : clear
  4420. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4421. t end
  4422. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4423. : end' >>confcache
  4424. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4425. if test -w $cache_file; then
  4426. test "x$cache_file" != "x/dev/null"
  4427. cat confcache >$cache_file
  4428. else
  4429. echo "not updating unwritable cache $cache_file"
  4430. fi
  4431. fi
  4432. rm -f confcache
  4433. # Checks for system libraries
  4434. # FIXME: this needs to be fixed so that it works on IRIX
  4435. if test "$IRIX" = "yes"
  4436. then
  4437. { echo "$as_me:$LINENO: WARNING: Skipping library tests because they CONFUSE Irix." >&5
  4438. echo "$as_me: WARNING: Skipping library tests because they CONFUSE Irix." >&2;}
  4439. else
  4440. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4441. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  4442. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4443. echo $ECHO_N "(cached) $ECHO_C" >&6
  4444. else
  4445. ac_check_lib_save_LIBS=$LIBS
  4446. LIBS="-lsocket $LIBS"
  4447. cat >conftest.$ac_ext <<_ACEOF
  4448. /* confdefs.h. */
  4449. _ACEOF
  4450. cat confdefs.h >>conftest.$ac_ext
  4451. cat >>conftest.$ac_ext <<_ACEOF
  4452. /* end confdefs.h. */
  4453. /* Override any gcc2 internal prototype to avoid an error. */
  4454. #ifdef __cplusplus
  4455. extern "C"
  4456. #endif
  4457. /* We use char because int might match the return type of a gcc2
  4458. builtin and then its argument prototype would still apply. */
  4459. char socket ();
  4460. int
  4461. main ()
  4462. {
  4463. socket ();
  4464. ;
  4465. return 0;
  4466. }
  4467. _ACEOF
  4468. rm -f conftest.$ac_objext conftest$ac_exeext
  4469. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4470. (eval $ac_link) 2>conftest.er1
  4471. ac_status=$?
  4472. grep -v '^ *+' conftest.er1 >conftest.err
  4473. rm -f conftest.er1
  4474. cat conftest.err >&5
  4475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4476. (exit $ac_status); } &&
  4477. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4478. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4479. (eval $ac_try) 2>&5
  4480. ac_status=$?
  4481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4482. (exit $ac_status); }; } &&
  4483. { ac_try='test -s conftest$ac_exeext'
  4484. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4485. (eval $ac_try) 2>&5
  4486. ac_status=$?
  4487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4488. (exit $ac_status); }; }; then
  4489. ac_cv_lib_socket_socket=yes
  4490. else
  4491. echo "$as_me: failed program was:" >&5
  4492. sed 's/^/| /' conftest.$ac_ext >&5
  4493. ac_cv_lib_socket_socket=no
  4494. fi
  4495. rm -f conftest.err conftest.$ac_objext \
  4496. conftest$ac_exeext conftest.$ac_ext
  4497. LIBS=$ac_check_lib_save_LIBS
  4498. fi
  4499. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4500. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  4501. if test $ac_cv_lib_socket_socket = yes; then
  4502. cat >>confdefs.h <<_ACEOF
  4503. #define HAVE_LIBSOCKET 1
  4504. _ACEOF
  4505. LIBS="-lsocket $LIBS"
  4506. fi
  4507. echo "$as_me:$LINENO: checking for connect in -lnsl" >&5
  4508. echo $ECHO_N "checking for connect in -lnsl... $ECHO_C" >&6
  4509. if test "${ac_cv_lib_nsl_connect+set}" = set; then
  4510. echo $ECHO_N "(cached) $ECHO_C" >&6
  4511. else
  4512. ac_check_lib_save_LIBS=$LIBS
  4513. LIBS="-lnsl $LIBS"
  4514. cat >conftest.$ac_ext <<_ACEOF
  4515. /* confdefs.h. */
  4516. _ACEOF
  4517. cat confdefs.h >>conftest.$ac_ext
  4518. cat >>conftest.$ac_ext <<_ACEOF
  4519. /* end confdefs.h. */
  4520. /* Override any gcc2 internal prototype to avoid an error. */
  4521. #ifdef __cplusplus
  4522. extern "C"
  4523. #endif
  4524. /* We use char because int might match the return type of a gcc2
  4525. builtin and then its argument prototype would still apply. */
  4526. char connect ();
  4527. int
  4528. main ()
  4529. {
  4530. connect ();
  4531. ;
  4532. return 0;
  4533. }
  4534. _ACEOF
  4535. rm -f conftest.$ac_objext conftest$ac_exeext
  4536. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4537. (eval $ac_link) 2>conftest.er1
  4538. ac_status=$?
  4539. grep -v '^ *+' conftest.er1 >conftest.err
  4540. rm -f conftest.er1
  4541. cat conftest.err >&5
  4542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4543. (exit $ac_status); } &&
  4544. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4545. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4546. (eval $ac_try) 2>&5
  4547. ac_status=$?
  4548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4549. (exit $ac_status); }; } &&
  4550. { ac_try='test -s conftest$ac_exeext'
  4551. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4552. (eval $ac_try) 2>&5
  4553. ac_status=$?
  4554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4555. (exit $ac_status); }; }; then
  4556. ac_cv_lib_nsl_connect=yes
  4557. else
  4558. echo "$as_me: failed program was:" >&5
  4559. sed 's/^/| /' conftest.$ac_ext >&5
  4560. ac_cv_lib_nsl_connect=no
  4561. fi
  4562. rm -f conftest.err conftest.$ac_objext \
  4563. conftest$ac_exeext conftest.$ac_ext
  4564. LIBS=$ac_check_lib_save_LIBS
  4565. fi
  4566. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_connect" >&5
  4567. echo "${ECHO_T}$ac_cv_lib_nsl_connect" >&6
  4568. if test $ac_cv_lib_nsl_connect = yes; then
  4569. cat >>confdefs.h <<_ACEOF
  4570. #define HAVE_LIBNSL 1
  4571. _ACEOF
  4572. LIBS="-lnsl $LIBS"
  4573. fi
  4574. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  4575. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  4576. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  4577. echo $ECHO_N "(cached) $ECHO_C" >&6
  4578. else
  4579. ac_check_lib_save_LIBS=$LIBS
  4580. LIBS="-ldns $LIBS"
  4581. cat >conftest.$ac_ext <<_ACEOF
  4582. /* confdefs.h. */
  4583. _ACEOF
  4584. cat confdefs.h >>conftest.$ac_ext
  4585. cat >>conftest.$ac_ext <<_ACEOF
  4586. /* end confdefs.h. */
  4587. /* Override any gcc2 internal prototype to avoid an error. */
  4588. #ifdef __cplusplus
  4589. extern "C"
  4590. #endif
  4591. /* We use char because int might match the return type of a gcc2
  4592. builtin and then its argument prototype would still apply. */
  4593. char gethostbyname ();
  4594. int
  4595. main ()
  4596. {
  4597. gethostbyname ();
  4598. ;
  4599. return 0;
  4600. }
  4601. _ACEOF
  4602. rm -f conftest.$ac_objext conftest$ac_exeext
  4603. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4604. (eval $ac_link) 2>conftest.er1
  4605. ac_status=$?
  4606. grep -v '^ *+' conftest.er1 >conftest.err
  4607. rm -f conftest.er1
  4608. cat conftest.err >&5
  4609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4610. (exit $ac_status); } &&
  4611. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4612. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4613. (eval $ac_try) 2>&5
  4614. ac_status=$?
  4615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4616. (exit $ac_status); }; } &&
  4617. { ac_try='test -s conftest$ac_exeext'
  4618. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4619. (eval $ac_try) 2>&5
  4620. ac_status=$?
  4621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4622. (exit $ac_status); }; }; then
  4623. ac_cv_lib_dns_gethostbyname=yes
  4624. else
  4625. echo "$as_me: failed program was:" >&5
  4626. sed 's/^/| /' conftest.$ac_ext >&5
  4627. ac_cv_lib_dns_gethostbyname=no
  4628. fi
  4629. rm -f conftest.err conftest.$ac_objext \
  4630. conftest$ac_exeext conftest.$ac_ext
  4631. LIBS=$ac_check_lib_save_LIBS
  4632. fi
  4633. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  4634. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  4635. if test $ac_cv_lib_dns_gethostbyname = yes; then
  4636. cat >>confdefs.h <<_ACEOF
  4637. #define HAVE_LIBDNS 1
  4638. _ACEOF
  4639. LIBS="-ldns $LIBS"
  4640. fi
  4641. echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
  4642. echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
  4643. if test "${ac_cv_lib_z_gzopen+set}" = set; then
  4644. echo $ECHO_N "(cached) $ECHO_C" >&6
  4645. else
  4646. ac_check_lib_save_LIBS=$LIBS
  4647. LIBS="-lz $LIBS"
  4648. cat >conftest.$ac_ext <<_ACEOF
  4649. /* confdefs.h. */
  4650. _ACEOF
  4651. cat confdefs.h >>conftest.$ac_ext
  4652. cat >>conftest.$ac_ext <<_ACEOF
  4653. /* end confdefs.h. */
  4654. /* Override any gcc2 internal prototype to avoid an error. */
  4655. #ifdef __cplusplus
  4656. extern "C"
  4657. #endif
  4658. /* We use char because int might match the return type of a gcc2
  4659. builtin and then its argument prototype would still apply. */
  4660. char gzopen ();
  4661. int
  4662. main ()
  4663. {
  4664. gzopen ();
  4665. ;
  4666. return 0;
  4667. }
  4668. _ACEOF
  4669. rm -f conftest.$ac_objext conftest$ac_exeext
  4670. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4671. (eval $ac_link) 2>conftest.er1
  4672. ac_status=$?
  4673. grep -v '^ *+' conftest.er1 >conftest.err
  4674. rm -f conftest.er1
  4675. cat conftest.err >&5
  4676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4677. (exit $ac_status); } &&
  4678. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4679. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4680. (eval $ac_try) 2>&5
  4681. ac_status=$?
  4682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4683. (exit $ac_status); }; } &&
  4684. { ac_try='test -s conftest$ac_exeext'
  4685. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4686. (eval $ac_try) 2>&5
  4687. ac_status=$?
  4688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4689. (exit $ac_status); }; }; then
  4690. ac_cv_lib_z_gzopen=yes
  4691. else
  4692. echo "$as_me: failed program was:" >&5
  4693. sed 's/^/| /' conftest.$ac_ext >&5
  4694. ac_cv_lib_z_gzopen=no
  4695. fi
  4696. rm -f conftest.err conftest.$ac_objext \
  4697. conftest$ac_exeext conftest.$ac_ext
  4698. LIBS=$ac_check_lib_save_LIBS
  4699. fi
  4700. echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
  4701. echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
  4702. if test $ac_cv_lib_z_gzopen = yes; then
  4703. ZLIB="-lz"
  4704. fi
  4705. echo "$as_me:$LINENO: checking for SSL_accept in -lssl" >&5
  4706. echo $ECHO_N "checking for SSL_accept in -lssl... $ECHO_C" >&6
  4707. if test "${ac_cv_lib_ssl_SSL_accept+set}" = set; then
  4708. echo $ECHO_N "(cached) $ECHO_C" >&6
  4709. else
  4710. ac_check_lib_save_LIBS=$LIBS
  4711. LIBS="-lssl -lcrypto $LIBS"
  4712. cat >conftest.$ac_ext <<_ACEOF
  4713. /* confdefs.h. */
  4714. _ACEOF
  4715. cat confdefs.h >>conftest.$ac_ext
  4716. cat >>conftest.$ac_ext <<_ACEOF
  4717. /* end confdefs.h. */
  4718. /* Override any gcc2 internal prototype to avoid an error. */
  4719. #ifdef __cplusplus
  4720. extern "C"
  4721. #endif
  4722. /* We use char because int might match the return type of a gcc2
  4723. builtin and then its argument prototype would still apply. */
  4724. char SSL_accept ();
  4725. int
  4726. main ()
  4727. {
  4728. SSL_accept ();
  4729. ;
  4730. return 0;
  4731. }
  4732. _ACEOF
  4733. rm -f conftest.$ac_objext conftest$ac_exeext
  4734. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4735. (eval $ac_link) 2>conftest.er1
  4736. ac_status=$?
  4737. grep -v '^ *+' conftest.er1 >conftest.err
  4738. rm -f conftest.er1
  4739. cat conftest.err >&5
  4740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4741. (exit $ac_status); } &&
  4742. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4743. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4744. (eval $ac_try) 2>&5
  4745. ac_status=$?
  4746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4747. (exit $ac_status); }; } &&
  4748. { ac_try='test -s conftest$ac_exeext'
  4749. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4750. (eval $ac_try) 2>&5
  4751. ac_status=$?
  4752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4753. (exit $ac_status); }; }; then
  4754. ac_cv_lib_ssl_SSL_accept=yes
  4755. else
  4756. echo "$as_me: failed program was:" >&5
  4757. sed 's/^/| /' conftest.$ac_ext >&5
  4758. ac_cv_lib_ssl_SSL_accept=no
  4759. fi
  4760. rm -f conftest.err conftest.$ac_objext \
  4761. conftest$ac_exeext conftest.$ac_ext
  4762. LIBS=$ac_check_lib_save_LIBS
  4763. fi
  4764. echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_accept" >&5
  4765. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_accept" >&6
  4766. if test $ac_cv_lib_ssl_SSL_accept = yes; then
  4767. SSL="-lssl -lcrypto"
  4768. else
  4769. SSL=""
  4770. fi
  4771. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  4772. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  4773. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  4774. echo $ECHO_N "(cached) $ECHO_C" >&6
  4775. else
  4776. ac_check_lib_save_LIBS=$LIBS
  4777. LIBS="-ldl $LIBS"
  4778. cat >conftest.$ac_ext <<_ACEOF
  4779. /* confdefs.h. */
  4780. _ACEOF
  4781. cat confdefs.h >>conftest.$ac_ext
  4782. cat >>conftest.$ac_ext <<_ACEOF
  4783. /* end confdefs.h. */
  4784. /* Override any gcc2 internal prototype to avoid an error. */
  4785. #ifdef __cplusplus
  4786. extern "C"
  4787. #endif
  4788. /* We use char because int might match the return type of a gcc2
  4789. builtin and then its argument prototype would still apply. */
  4790. char dlopen ();
  4791. int
  4792. main ()
  4793. {
  4794. dlopen ();
  4795. ;
  4796. return 0;
  4797. }
  4798. _ACEOF
  4799. rm -f conftest.$ac_objext conftest$ac_exeext
  4800. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4801. (eval $ac_link) 2>conftest.er1
  4802. ac_status=$?
  4803. grep -v '^ *+' conftest.er1 >conftest.err
  4804. rm -f conftest.er1
  4805. cat conftest.err >&5
  4806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4807. (exit $ac_status); } &&
  4808. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4809. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4810. (eval $ac_try) 2>&5
  4811. ac_status=$?
  4812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4813. (exit $ac_status); }; } &&
  4814. { ac_try='test -s conftest$ac_exeext'
  4815. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4816. (eval $ac_try) 2>&5
  4817. ac_status=$?
  4818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4819. (exit $ac_status); }; }; then
  4820. ac_cv_lib_dl_dlopen=yes
  4821. else
  4822. echo "$as_me: failed program was:" >&5
  4823. sed 's/^/| /' conftest.$ac_ext >&5
  4824. ac_cv_lib_dl_dlopen=no
  4825. fi
  4826. rm -f conftest.err conftest.$ac_objext \
  4827. conftest$ac_exeext conftest.$ac_ext
  4828. LIBS=$ac_check_lib_save_LIBS
  4829. fi
  4830. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  4831. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  4832. if test $ac_cv_lib_dl_dlopen = yes; then
  4833. cat >>confdefs.h <<_ACEOF
  4834. #define HAVE_LIBDL 1
  4835. _ACEOF
  4836. LIBS="-ldl $LIBS"
  4837. fi
  4838. echo "$as_me:$LINENO: checking for tan in -lm" >&5
  4839. echo $ECHO_N "checking for tan in -lm... $ECHO_C" >&6
  4840. if test "${ac_cv_lib_m_tan+set}" = set; then
  4841. echo $ECHO_N "(cached) $ECHO_C" >&6
  4842. else
  4843. ac_check_lib_save_LIBS=$LIBS
  4844. LIBS="-lm $LIBS"
  4845. cat >conftest.$ac_ext <<_ACEOF
  4846. /* confdefs.h. */
  4847. _ACEOF
  4848. cat confdefs.h >>conftest.$ac_ext
  4849. cat >>conftest.$ac_ext <<_ACEOF
  4850. /* end confdefs.h. */
  4851. /* Override any gcc2 internal prototype to avoid an error. */
  4852. #ifdef __cplusplus
  4853. extern "C"
  4854. #endif
  4855. /* We use char because int might match the return type of a gcc2
  4856. builtin and then its argument prototype would still apply. */
  4857. char tan ();
  4858. int
  4859. main ()
  4860. {
  4861. tan ();
  4862. ;
  4863. return 0;
  4864. }
  4865. _ACEOF
  4866. rm -f conftest.$ac_objext conftest$ac_exeext
  4867. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4868. (eval $ac_link) 2>conftest.er1
  4869. ac_status=$?
  4870. grep -v '^ *+' conftest.er1 >conftest.err
  4871. rm -f conftest.er1
  4872. cat conftest.err >&5
  4873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4874. (exit $ac_status); } &&
  4875. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4876. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4877. (eval $ac_try) 2>&5
  4878. ac_status=$?
  4879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4880. (exit $ac_status); }; } &&
  4881. { ac_try='test -s conftest$ac_exeext'
  4882. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4883. (eval $ac_try) 2>&5
  4884. ac_status=$?
  4885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4886. (exit $ac_status); }; }; then
  4887. ac_cv_lib_m_tan=yes
  4888. else
  4889. echo "$as_me: failed program was:" >&5
  4890. sed 's/^/| /' conftest.$ac_ext >&5
  4891. ac_cv_lib_m_tan=no
  4892. fi
  4893. rm -f conftest.err conftest.$ac_objext \
  4894. conftest$ac_exeext conftest.$ac_ext
  4895. LIBS=$ac_check_lib_save_LIBS
  4896. fi
  4897. echo "$as_me:$LINENO: result: $ac_cv_lib_m_tan" >&5
  4898. echo "${ECHO_T}$ac_cv_lib_m_tan" >&6
  4899. if test $ac_cv_lib_m_tan = yes; then
  4900. EGG_MATH_LIB="-lm"
  4901. fi
  4902. # This is needed for Tcl libraries compiled with thread support
  4903. echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
  4904. echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
  4905. if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
  4906. echo $ECHO_N "(cached) $ECHO_C" >&6
  4907. else
  4908. ac_check_lib_save_LIBS=$LIBS
  4909. LIBS="-lpthread $LIBS"
  4910. cat >conftest.$ac_ext <<_ACEOF
  4911. /* confdefs.h. */
  4912. _ACEOF
  4913. cat confdefs.h >>conftest.$ac_ext
  4914. cat >>conftest.$ac_ext <<_ACEOF
  4915. /* end confdefs.h. */
  4916. /* Override any gcc2 internal prototype to avoid an error. */
  4917. #ifdef __cplusplus
  4918. extern "C"
  4919. #endif
  4920. /* We use char because int might match the return type of a gcc2
  4921. builtin and then its argument prototype would still apply. */
  4922. char pthread_mutex_init ();
  4923. int
  4924. main ()
  4925. {
  4926. pthread_mutex_init ();
  4927. ;
  4928. return 0;
  4929. }
  4930. _ACEOF
  4931. rm -f conftest.$ac_objext conftest$ac_exeext
  4932. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4933. (eval $ac_link) 2>conftest.er1
  4934. ac_status=$?
  4935. grep -v '^ *+' conftest.er1 >conftest.err
  4936. rm -f conftest.er1
  4937. cat conftest.err >&5
  4938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4939. (exit $ac_status); } &&
  4940. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4941. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4942. (eval $ac_try) 2>&5
  4943. ac_status=$?
  4944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4945. (exit $ac_status); }; } &&
  4946. { ac_try='test -s conftest$ac_exeext'
  4947. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4948. (eval $ac_try) 2>&5
  4949. ac_status=$?
  4950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4951. (exit $ac_status); }; }; then
  4952. ac_cv_lib_pthread_pthread_mutex_init=yes
  4953. else
  4954. echo "$as_me: failed program was:" >&5
  4955. sed 's/^/| /' conftest.$ac_ext >&5
  4956. ac_cv_lib_pthread_pthread_mutex_init=no
  4957. fi
  4958. rm -f conftest.err conftest.$ac_objext \
  4959. conftest$ac_exeext conftest.$ac_ext
  4960. LIBS=$ac_check_lib_save_LIBS
  4961. fi
  4962. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
  4963. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
  4964. if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
  4965. ac_cv_lib_pthread_pthread_mutex_init=yes
  4966. ac_cv_lib_pthread="-lpthread"
  4967. else
  4968. echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5
  4969. echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6
  4970. if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then
  4971. echo $ECHO_N "(cached) $ECHO_C" >&6
  4972. else
  4973. ac_check_lib_save_LIBS=$LIBS
  4974. LIBS="-lpthread $LIBS"
  4975. cat >conftest.$ac_ext <<_ACEOF
  4976. /* confdefs.h. */
  4977. _ACEOF
  4978. cat confdefs.h >>conftest.$ac_ext
  4979. cat >>conftest.$ac_ext <<_ACEOF
  4980. /* end confdefs.h. */
  4981. /* Override any gcc2 internal prototype to avoid an error. */
  4982. #ifdef __cplusplus
  4983. extern "C"
  4984. #endif
  4985. /* We use char because int might match the return type of a gcc2
  4986. builtin and then its argument prototype would still apply. */
  4987. char __pthread_mutex_init ();
  4988. int
  4989. main ()
  4990. {
  4991. __pthread_mutex_init ();
  4992. ;
  4993. return 0;
  4994. }
  4995. _ACEOF
  4996. rm -f conftest.$ac_objext conftest$ac_exeext
  4997. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4998. (eval $ac_link) 2>conftest.er1
  4999. ac_status=$?
  5000. grep -v '^ *+' conftest.er1 >conftest.err
  5001. rm -f conftest.er1
  5002. cat conftest.err >&5
  5003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5004. (exit $ac_status); } &&
  5005. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5006. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5007. (eval $ac_try) 2>&5
  5008. ac_status=$?
  5009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5010. (exit $ac_status); }; } &&
  5011. { ac_try='test -s conftest$ac_exeext'
  5012. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5013. (eval $ac_try) 2>&5
  5014. ac_status=$?
  5015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5016. (exit $ac_status); }; }; then
  5017. ac_cv_lib_pthread___pthread_mutex_init=yes
  5018. else
  5019. echo "$as_me: failed program was:" >&5
  5020. sed 's/^/| /' conftest.$ac_ext >&5
  5021. ac_cv_lib_pthread___pthread_mutex_init=no
  5022. fi
  5023. rm -f conftest.err conftest.$ac_objext \
  5024. conftest$ac_exeext conftest.$ac_ext
  5025. LIBS=$ac_check_lib_save_LIBS
  5026. fi
  5027. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
  5028. echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6
  5029. if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then
  5030. ac_cv_lib_pthread_pthread_mutex_init=yes
  5031. ac_cv_lib_pthread="-lpthread"
  5032. else
  5033. echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5
  5034. echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6
  5035. if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then
  5036. echo $ECHO_N "(cached) $ECHO_C" >&6
  5037. else
  5038. ac_check_lib_save_LIBS=$LIBS
  5039. LIBS="-lpthreads $LIBS"
  5040. cat >conftest.$ac_ext <<_ACEOF
  5041. /* confdefs.h. */
  5042. _ACEOF
  5043. cat confdefs.h >>conftest.$ac_ext
  5044. cat >>conftest.$ac_ext <<_ACEOF
  5045. /* end confdefs.h. */
  5046. /* Override any gcc2 internal prototype to avoid an error. */
  5047. #ifdef __cplusplus
  5048. extern "C"
  5049. #endif
  5050. /* We use char because int might match the return type of a gcc2
  5051. builtin and then its argument prototype would still apply. */
  5052. char pthread_mutex_init ();
  5053. int
  5054. main ()
  5055. {
  5056. pthread_mutex_init ();
  5057. ;
  5058. return 0;
  5059. }
  5060. _ACEOF
  5061. rm -f conftest.$ac_objext conftest$ac_exeext
  5062. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5063. (eval $ac_link) 2>conftest.er1
  5064. ac_status=$?
  5065. grep -v '^ *+' conftest.er1 >conftest.err
  5066. rm -f conftest.er1
  5067. cat conftest.err >&5
  5068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5069. (exit $ac_status); } &&
  5070. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5071. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5072. (eval $ac_try) 2>&5
  5073. ac_status=$?
  5074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5075. (exit $ac_status); }; } &&
  5076. { ac_try='test -s conftest$ac_exeext'
  5077. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5078. (eval $ac_try) 2>&5
  5079. ac_status=$?
  5080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5081. (exit $ac_status); }; }; then
  5082. ac_cv_lib_pthreads_pthread_mutex_init=yes
  5083. else
  5084. echo "$as_me: failed program was:" >&5
  5085. sed 's/^/| /' conftest.$ac_ext >&5
  5086. ac_cv_lib_pthreads_pthread_mutex_init=no
  5087. fi
  5088. rm -f conftest.err conftest.$ac_objext \
  5089. conftest$ac_exeext conftest.$ac_ext
  5090. LIBS=$ac_check_lib_save_LIBS
  5091. fi
  5092. echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
  5093. echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6
  5094. if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then
  5095. ac_cv_lib_pthread_pthread_mutex_init=yes
  5096. ac_cv_lib_pthread="-lpthreads"
  5097. else
  5098. echo "$as_me:$LINENO: checking for pthread_mutex_init" >&5
  5099. echo $ECHO_N "checking for pthread_mutex_init... $ECHO_C" >&6
  5100. if test "${ac_cv_func_pthread_mutex_init+set}" = set; then
  5101. echo $ECHO_N "(cached) $ECHO_C" >&6
  5102. else
  5103. cat >conftest.$ac_ext <<_ACEOF
  5104. /* confdefs.h. */
  5105. _ACEOF
  5106. cat confdefs.h >>conftest.$ac_ext
  5107. cat >>conftest.$ac_ext <<_ACEOF
  5108. /* end confdefs.h. */
  5109. /* Define pthread_mutex_init to an innocuous variant, in case <limits.h> declares pthread_mutex_init.
  5110. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5111. #define pthread_mutex_init innocuous_pthread_mutex_init
  5112. /* System header to define __stub macros and hopefully few prototypes,
  5113. which can conflict with char pthread_mutex_init (); below.
  5114. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5115. <limits.h> exists even on freestanding compilers. */
  5116. #ifdef __STDC__
  5117. # include <limits.h>
  5118. #else
  5119. # include <assert.h>
  5120. #endif
  5121. #undef pthread_mutex_init
  5122. /* Override any gcc2 internal prototype to avoid an error. */
  5123. #ifdef __cplusplus
  5124. extern "C"
  5125. {
  5126. #endif
  5127. /* We use char because int might match the return type of a gcc2
  5128. builtin and then its argument prototype would still apply. */
  5129. char pthread_mutex_init ();
  5130. /* The GNU C library defines this for functions which it implements
  5131. to always fail with ENOSYS. Some functions are actually named
  5132. something starting with __ and the normal name is an alias. */
  5133. #if defined (__stub_pthread_mutex_init) || defined (__stub___pthread_mutex_init)
  5134. choke me
  5135. #else
  5136. char (*f) () = pthread_mutex_init;
  5137. #endif
  5138. #ifdef __cplusplus
  5139. }
  5140. #endif
  5141. int
  5142. main ()
  5143. {
  5144. return f != pthread_mutex_init;
  5145. ;
  5146. return 0;
  5147. }
  5148. _ACEOF
  5149. rm -f conftest.$ac_objext conftest$ac_exeext
  5150. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5151. (eval $ac_link) 2>conftest.er1
  5152. ac_status=$?
  5153. grep -v '^ *+' conftest.er1 >conftest.err
  5154. rm -f conftest.er1
  5155. cat conftest.err >&5
  5156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5157. (exit $ac_status); } &&
  5158. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5159. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5160. (eval $ac_try) 2>&5
  5161. ac_status=$?
  5162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5163. (exit $ac_status); }; } &&
  5164. { ac_try='test -s conftest$ac_exeext'
  5165. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5166. (eval $ac_try) 2>&5
  5167. ac_status=$?
  5168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5169. (exit $ac_status); }; }; then
  5170. ac_cv_func_pthread_mutex_init=yes
  5171. else
  5172. echo "$as_me: failed program was:" >&5
  5173. sed 's/^/| /' conftest.$ac_ext >&5
  5174. ac_cv_func_pthread_mutex_init=no
  5175. fi
  5176. rm -f conftest.err conftest.$ac_objext \
  5177. conftest$ac_exeext conftest.$ac_ext
  5178. fi
  5179. echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_init" >&5
  5180. echo "${ECHO_T}$ac_cv_func_pthread_mutex_init" >&6
  5181. if test $ac_cv_func_pthread_mutex_init = yes; then
  5182. ac_cv_lib_pthread_pthread_mutex_init=yes
  5183. ac_cv_lib_pthread=""
  5184. else
  5185. ac_cv_lib_pthread_pthread_mutex_init=no
  5186. fi
  5187. fi
  5188. fi
  5189. fi
  5190. if test "$SUNOS" = "yes"
  5191. then
  5192. # For suns without yp or something like that
  5193. echo "$as_me:$LINENO: checking for main in -ldl" >&5
  5194. echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
  5195. if test "${ac_cv_lib_dl_main+set}" = set; then
  5196. echo $ECHO_N "(cached) $ECHO_C" >&6
  5197. else
  5198. ac_check_lib_save_LIBS=$LIBS
  5199. LIBS="-ldl $LIBS"
  5200. cat >conftest.$ac_ext <<_ACEOF
  5201. /* confdefs.h. */
  5202. _ACEOF
  5203. cat confdefs.h >>conftest.$ac_ext
  5204. cat >>conftest.$ac_ext <<_ACEOF
  5205. /* end confdefs.h. */
  5206. int
  5207. main ()
  5208. {
  5209. main ();
  5210. ;
  5211. return 0;
  5212. }
  5213. _ACEOF
  5214. rm -f conftest.$ac_objext conftest$ac_exeext
  5215. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5216. (eval $ac_link) 2>conftest.er1
  5217. ac_status=$?
  5218. grep -v '^ *+' conftest.er1 >conftest.err
  5219. rm -f conftest.er1
  5220. cat conftest.err >&5
  5221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5222. (exit $ac_status); } &&
  5223. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5224. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5225. (eval $ac_try) 2>&5
  5226. ac_status=$?
  5227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5228. (exit $ac_status); }; } &&
  5229. { ac_try='test -s conftest$ac_exeext'
  5230. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5231. (eval $ac_try) 2>&5
  5232. ac_status=$?
  5233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5234. (exit $ac_status); }; }; then
  5235. ac_cv_lib_dl_main=yes
  5236. else
  5237. echo "$as_me: failed program was:" >&5
  5238. sed 's/^/| /' conftest.$ac_ext >&5
  5239. ac_cv_lib_dl_main=no
  5240. fi
  5241. rm -f conftest.err conftest.$ac_objext \
  5242. conftest$ac_exeext conftest.$ac_ext
  5243. LIBS=$ac_check_lib_save_LIBS
  5244. fi
  5245. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
  5246. echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
  5247. if test $ac_cv_lib_dl_main = yes; then
  5248. cat >>confdefs.h <<_ACEOF
  5249. #define HAVE_LIBDL 1
  5250. _ACEOF
  5251. LIBS="-ldl $LIBS"
  5252. fi
  5253. else
  5254. if test "$HPUX" = "yes"
  5255. then
  5256. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  5257. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  5258. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  5259. echo $ECHO_N "(cached) $ECHO_C" >&6
  5260. else
  5261. ac_check_lib_save_LIBS=$LIBS
  5262. LIBS="-ldld $LIBS"
  5263. cat >conftest.$ac_ext <<_ACEOF
  5264. /* confdefs.h. */
  5265. _ACEOF
  5266. cat confdefs.h >>conftest.$ac_ext
  5267. cat >>conftest.$ac_ext <<_ACEOF
  5268. /* end confdefs.h. */
  5269. /* Override any gcc2 internal prototype to avoid an error. */
  5270. #ifdef __cplusplus
  5271. extern "C"
  5272. #endif
  5273. /* We use char because int might match the return type of a gcc2
  5274. builtin and then its argument prototype would still apply. */
  5275. char shl_load ();
  5276. int
  5277. main ()
  5278. {
  5279. shl_load ();
  5280. ;
  5281. return 0;
  5282. }
  5283. _ACEOF
  5284. rm -f conftest.$ac_objext conftest$ac_exeext
  5285. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5286. (eval $ac_link) 2>conftest.er1
  5287. ac_status=$?
  5288. grep -v '^ *+' conftest.er1 >conftest.err
  5289. rm -f conftest.er1
  5290. cat conftest.err >&5
  5291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5292. (exit $ac_status); } &&
  5293. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5294. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5295. (eval $ac_try) 2>&5
  5296. ac_status=$?
  5297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5298. (exit $ac_status); }; } &&
  5299. { ac_try='test -s conftest$ac_exeext'
  5300. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5301. (eval $ac_try) 2>&5
  5302. ac_status=$?
  5303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5304. (exit $ac_status); }; }; then
  5305. ac_cv_lib_dld_shl_load=yes
  5306. else
  5307. echo "$as_me: failed program was:" >&5
  5308. sed 's/^/| /' conftest.$ac_ext >&5
  5309. ac_cv_lib_dld_shl_load=no
  5310. fi
  5311. rm -f conftest.err conftest.$ac_objext \
  5312. conftest$ac_exeext conftest.$ac_ext
  5313. LIBS=$ac_check_lib_save_LIBS
  5314. fi
  5315. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  5316. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  5317. if test $ac_cv_lib_dld_shl_load = yes; then
  5318. cat >>confdefs.h <<_ACEOF
  5319. #define HAVE_LIBDLD 1
  5320. _ACEOF
  5321. LIBS="-ldld $LIBS"
  5322. fi
  5323. fi
  5324. fi
  5325. fi
  5326. # Checks for header files
  5327. ac_header_dirent=no
  5328. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  5329. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  5330. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  5331. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  5332. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5333. echo $ECHO_N "(cached) $ECHO_C" >&6
  5334. else
  5335. cat >conftest.$ac_ext <<_ACEOF
  5336. /* confdefs.h. */
  5337. _ACEOF
  5338. cat confdefs.h >>conftest.$ac_ext
  5339. cat >>conftest.$ac_ext <<_ACEOF
  5340. /* end confdefs.h. */
  5341. #include <sys/types.h>
  5342. #include <$ac_hdr>
  5343. int
  5344. main ()
  5345. {
  5346. if ((DIR *) 0)
  5347. return 0;
  5348. ;
  5349. return 0;
  5350. }
  5351. _ACEOF
  5352. rm -f conftest.$ac_objext
  5353. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5354. (eval $ac_compile) 2>conftest.er1
  5355. ac_status=$?
  5356. grep -v '^ *+' conftest.er1 >conftest.err
  5357. rm -f conftest.er1
  5358. cat conftest.err >&5
  5359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5360. (exit $ac_status); } &&
  5361. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5362. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5363. (eval $ac_try) 2>&5
  5364. ac_status=$?
  5365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5366. (exit $ac_status); }; } &&
  5367. { ac_try='test -s conftest.$ac_objext'
  5368. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5369. (eval $ac_try) 2>&5
  5370. ac_status=$?
  5371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5372. (exit $ac_status); }; }; then
  5373. eval "$as_ac_Header=yes"
  5374. else
  5375. echo "$as_me: failed program was:" >&5
  5376. sed 's/^/| /' conftest.$ac_ext >&5
  5377. eval "$as_ac_Header=no"
  5378. fi
  5379. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5380. fi
  5381. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5382. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5383. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5384. cat >>confdefs.h <<_ACEOF
  5385. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  5386. _ACEOF
  5387. ac_header_dirent=$ac_hdr; break
  5388. fi
  5389. done
  5390. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  5391. if test $ac_header_dirent = dirent.h; then
  5392. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  5393. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  5394. if test "${ac_cv_search_opendir+set}" = set; then
  5395. echo $ECHO_N "(cached) $ECHO_C" >&6
  5396. else
  5397. ac_func_search_save_LIBS=$LIBS
  5398. ac_cv_search_opendir=no
  5399. cat >conftest.$ac_ext <<_ACEOF
  5400. /* confdefs.h. */
  5401. _ACEOF
  5402. cat confdefs.h >>conftest.$ac_ext
  5403. cat >>conftest.$ac_ext <<_ACEOF
  5404. /* end confdefs.h. */
  5405. /* Override any gcc2 internal prototype to avoid an error. */
  5406. #ifdef __cplusplus
  5407. extern "C"
  5408. #endif
  5409. /* We use char because int might match the return type of a gcc2
  5410. builtin and then its argument prototype would still apply. */
  5411. char opendir ();
  5412. int
  5413. main ()
  5414. {
  5415. opendir ();
  5416. ;
  5417. return 0;
  5418. }
  5419. _ACEOF
  5420. rm -f conftest.$ac_objext conftest$ac_exeext
  5421. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5422. (eval $ac_link) 2>conftest.er1
  5423. ac_status=$?
  5424. grep -v '^ *+' conftest.er1 >conftest.err
  5425. rm -f conftest.er1
  5426. cat conftest.err >&5
  5427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5428. (exit $ac_status); } &&
  5429. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5430. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5431. (eval $ac_try) 2>&5
  5432. ac_status=$?
  5433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5434. (exit $ac_status); }; } &&
  5435. { ac_try='test -s conftest$ac_exeext'
  5436. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5437. (eval $ac_try) 2>&5
  5438. ac_status=$?
  5439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5440. (exit $ac_status); }; }; then
  5441. ac_cv_search_opendir="none required"
  5442. else
  5443. echo "$as_me: failed program was:" >&5
  5444. sed 's/^/| /' conftest.$ac_ext >&5
  5445. fi
  5446. rm -f conftest.err conftest.$ac_objext \
  5447. conftest$ac_exeext conftest.$ac_ext
  5448. if test "$ac_cv_search_opendir" = no; then
  5449. for ac_lib in dir; do
  5450. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5451. cat >conftest.$ac_ext <<_ACEOF
  5452. /* confdefs.h. */
  5453. _ACEOF
  5454. cat confdefs.h >>conftest.$ac_ext
  5455. cat >>conftest.$ac_ext <<_ACEOF
  5456. /* end confdefs.h. */
  5457. /* Override any gcc2 internal prototype to avoid an error. */
  5458. #ifdef __cplusplus
  5459. extern "C"
  5460. #endif
  5461. /* We use char because int might match the return type of a gcc2
  5462. builtin and then its argument prototype would still apply. */
  5463. char opendir ();
  5464. int
  5465. main ()
  5466. {
  5467. opendir ();
  5468. ;
  5469. return 0;
  5470. }
  5471. _ACEOF
  5472. rm -f conftest.$ac_objext conftest$ac_exeext
  5473. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5474. (eval $ac_link) 2>conftest.er1
  5475. ac_status=$?
  5476. grep -v '^ *+' conftest.er1 >conftest.err
  5477. rm -f conftest.er1
  5478. cat conftest.err >&5
  5479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5480. (exit $ac_status); } &&
  5481. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5482. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5483. (eval $ac_try) 2>&5
  5484. ac_status=$?
  5485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5486. (exit $ac_status); }; } &&
  5487. { ac_try='test -s conftest$ac_exeext'
  5488. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5489. (eval $ac_try) 2>&5
  5490. ac_status=$?
  5491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5492. (exit $ac_status); }; }; then
  5493. ac_cv_search_opendir="-l$ac_lib"
  5494. break
  5495. else
  5496. echo "$as_me: failed program was:" >&5
  5497. sed 's/^/| /' conftest.$ac_ext >&5
  5498. fi
  5499. rm -f conftest.err conftest.$ac_objext \
  5500. conftest$ac_exeext conftest.$ac_ext
  5501. done
  5502. fi
  5503. LIBS=$ac_func_search_save_LIBS
  5504. fi
  5505. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  5506. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  5507. if test "$ac_cv_search_opendir" != no; then
  5508. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  5509. fi
  5510. else
  5511. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  5512. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  5513. if test "${ac_cv_search_opendir+set}" = set; then
  5514. echo $ECHO_N "(cached) $ECHO_C" >&6
  5515. else
  5516. ac_func_search_save_LIBS=$LIBS
  5517. ac_cv_search_opendir=no
  5518. cat >conftest.$ac_ext <<_ACEOF
  5519. /* confdefs.h. */
  5520. _ACEOF
  5521. cat confdefs.h >>conftest.$ac_ext
  5522. cat >>conftest.$ac_ext <<_ACEOF
  5523. /* end confdefs.h. */
  5524. /* Override any gcc2 internal prototype to avoid an error. */
  5525. #ifdef __cplusplus
  5526. extern "C"
  5527. #endif
  5528. /* We use char because int might match the return type of a gcc2
  5529. builtin and then its argument prototype would still apply. */
  5530. char opendir ();
  5531. int
  5532. main ()
  5533. {
  5534. opendir ();
  5535. ;
  5536. return 0;
  5537. }
  5538. _ACEOF
  5539. rm -f conftest.$ac_objext conftest$ac_exeext
  5540. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5541. (eval $ac_link) 2>conftest.er1
  5542. ac_status=$?
  5543. grep -v '^ *+' conftest.er1 >conftest.err
  5544. rm -f conftest.er1
  5545. cat conftest.err >&5
  5546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5547. (exit $ac_status); } &&
  5548. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5549. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5550. (eval $ac_try) 2>&5
  5551. ac_status=$?
  5552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5553. (exit $ac_status); }; } &&
  5554. { ac_try='test -s conftest$ac_exeext'
  5555. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5556. (eval $ac_try) 2>&5
  5557. ac_status=$?
  5558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5559. (exit $ac_status); }; }; then
  5560. ac_cv_search_opendir="none required"
  5561. else
  5562. echo "$as_me: failed program was:" >&5
  5563. sed 's/^/| /' conftest.$ac_ext >&5
  5564. fi
  5565. rm -f conftest.err conftest.$ac_objext \
  5566. conftest$ac_exeext conftest.$ac_ext
  5567. if test "$ac_cv_search_opendir" = no; then
  5568. for ac_lib in x; do
  5569. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5570. cat >conftest.$ac_ext <<_ACEOF
  5571. /* confdefs.h. */
  5572. _ACEOF
  5573. cat confdefs.h >>conftest.$ac_ext
  5574. cat >>conftest.$ac_ext <<_ACEOF
  5575. /* end confdefs.h. */
  5576. /* Override any gcc2 internal prototype to avoid an error. */
  5577. #ifdef __cplusplus
  5578. extern "C"
  5579. #endif
  5580. /* We use char because int might match the return type of a gcc2
  5581. builtin and then its argument prototype would still apply. */
  5582. char opendir ();
  5583. int
  5584. main ()
  5585. {
  5586. opendir ();
  5587. ;
  5588. return 0;
  5589. }
  5590. _ACEOF
  5591. rm -f conftest.$ac_objext conftest$ac_exeext
  5592. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5593. (eval $ac_link) 2>conftest.er1
  5594. ac_status=$?
  5595. grep -v '^ *+' conftest.er1 >conftest.err
  5596. rm -f conftest.er1
  5597. cat conftest.err >&5
  5598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5599. (exit $ac_status); } &&
  5600. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5601. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5602. (eval $ac_try) 2>&5
  5603. ac_status=$?
  5604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5605. (exit $ac_status); }; } &&
  5606. { ac_try='test -s conftest$ac_exeext'
  5607. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5608. (eval $ac_try) 2>&5
  5609. ac_status=$?
  5610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5611. (exit $ac_status); }; }; then
  5612. ac_cv_search_opendir="-l$ac_lib"
  5613. break
  5614. else
  5615. echo "$as_me: failed program was:" >&5
  5616. sed 's/^/| /' conftest.$ac_ext >&5
  5617. fi
  5618. rm -f conftest.err conftest.$ac_objext \
  5619. conftest$ac_exeext conftest.$ac_ext
  5620. done
  5621. fi
  5622. LIBS=$ac_func_search_save_LIBS
  5623. fi
  5624. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  5625. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  5626. if test "$ac_cv_search_opendir" != no; then
  5627. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  5628. fi
  5629. fi
  5630. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  5631. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  5632. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  5633. echo $ECHO_N "(cached) $ECHO_C" >&6
  5634. else
  5635. cat >conftest.$ac_ext <<_ACEOF
  5636. /* confdefs.h. */
  5637. _ACEOF
  5638. cat confdefs.h >>conftest.$ac_ext
  5639. cat >>conftest.$ac_ext <<_ACEOF
  5640. /* end confdefs.h. */
  5641. #include <sys/types.h>
  5642. #include <sys/wait.h>
  5643. #ifndef WEXITSTATUS
  5644. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  5645. #endif
  5646. #ifndef WIFEXITED
  5647. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  5648. #endif
  5649. int
  5650. main ()
  5651. {
  5652. int s;
  5653. wait (&s);
  5654. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  5655. ;
  5656. return 0;
  5657. }
  5658. _ACEOF
  5659. rm -f conftest.$ac_objext
  5660. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5661. (eval $ac_compile) 2>conftest.er1
  5662. ac_status=$?
  5663. grep -v '^ *+' conftest.er1 >conftest.err
  5664. rm -f conftest.er1
  5665. cat conftest.err >&5
  5666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5667. (exit $ac_status); } &&
  5668. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5669. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5670. (eval $ac_try) 2>&5
  5671. ac_status=$?
  5672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5673. (exit $ac_status); }; } &&
  5674. { ac_try='test -s conftest.$ac_objext'
  5675. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5676. (eval $ac_try) 2>&5
  5677. ac_status=$?
  5678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5679. (exit $ac_status); }; }; then
  5680. ac_cv_header_sys_wait_h=yes
  5681. else
  5682. echo "$as_me: failed program was:" >&5
  5683. sed 's/^/| /' conftest.$ac_ext >&5
  5684. ac_cv_header_sys_wait_h=no
  5685. fi
  5686. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5687. fi
  5688. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  5689. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  5690. if test $ac_cv_header_sys_wait_h = yes; then
  5691. cat >>confdefs.h <<\_ACEOF
  5692. #define HAVE_SYS_WAIT_H 1
  5693. _ACEOF
  5694. fi
  5695. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  5696. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  5697. if test "${ac_cv_header_time+set}" = set; then
  5698. echo $ECHO_N "(cached) $ECHO_C" >&6
  5699. else
  5700. cat >conftest.$ac_ext <<_ACEOF
  5701. /* confdefs.h. */
  5702. _ACEOF
  5703. cat confdefs.h >>conftest.$ac_ext
  5704. cat >>conftest.$ac_ext <<_ACEOF
  5705. /* end confdefs.h. */
  5706. #include <sys/types.h>
  5707. #include <sys/time.h>
  5708. #include <time.h>
  5709. int
  5710. main ()
  5711. {
  5712. if ((struct tm *) 0)
  5713. return 0;
  5714. ;
  5715. return 0;
  5716. }
  5717. _ACEOF
  5718. rm -f conftest.$ac_objext
  5719. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5720. (eval $ac_compile) 2>conftest.er1
  5721. ac_status=$?
  5722. grep -v '^ *+' conftest.er1 >conftest.err
  5723. rm -f conftest.er1
  5724. cat conftest.err >&5
  5725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5726. (exit $ac_status); } &&
  5727. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5728. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5729. (eval $ac_try) 2>&5
  5730. ac_status=$?
  5731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5732. (exit $ac_status); }; } &&
  5733. { ac_try='test -s conftest.$ac_objext'
  5734. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5735. (eval $ac_try) 2>&5
  5736. ac_status=$?
  5737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5738. (exit $ac_status); }; }; then
  5739. ac_cv_header_time=yes
  5740. else
  5741. echo "$as_me: failed program was:" >&5
  5742. sed 's/^/| /' conftest.$ac_ext >&5
  5743. ac_cv_header_time=no
  5744. fi
  5745. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5746. fi
  5747. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  5748. echo "${ECHO_T}$ac_cv_header_time" >&6
  5749. if test $ac_cv_header_time = yes; then
  5750. cat >>confdefs.h <<\_ACEOF
  5751. #define TIME_WITH_SYS_TIME 1
  5752. _ACEOF
  5753. fi
  5754. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  5755. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  5756. if test "${ac_cv_header_stat_broken+set}" = set; then
  5757. echo $ECHO_N "(cached) $ECHO_C" >&6
  5758. else
  5759. cat >conftest.$ac_ext <<_ACEOF
  5760. /* confdefs.h. */
  5761. _ACEOF
  5762. cat confdefs.h >>conftest.$ac_ext
  5763. cat >>conftest.$ac_ext <<_ACEOF
  5764. /* end confdefs.h. */
  5765. #include <sys/types.h>
  5766. #include <sys/stat.h>
  5767. #if defined(S_ISBLK) && defined(S_IFDIR)
  5768. # if S_ISBLK (S_IFDIR)
  5769. You lose.
  5770. # endif
  5771. #endif
  5772. #if defined(S_ISBLK) && defined(S_IFCHR)
  5773. # if S_ISBLK (S_IFCHR)
  5774. You lose.
  5775. # endif
  5776. #endif
  5777. #if defined(S_ISLNK) && defined(S_IFREG)
  5778. # if S_ISLNK (S_IFREG)
  5779. You lose.
  5780. # endif
  5781. #endif
  5782. #if defined(S_ISSOCK) && defined(S_IFREG)
  5783. # if S_ISSOCK (S_IFREG)
  5784. You lose.
  5785. # endif
  5786. #endif
  5787. _ACEOF
  5788. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5789. $EGREP "You lose" >/dev/null 2>&1; then
  5790. ac_cv_header_stat_broken=yes
  5791. else
  5792. ac_cv_header_stat_broken=no
  5793. fi
  5794. rm -f conftest*
  5795. fi
  5796. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  5797. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  5798. if test $ac_cv_header_stat_broken = yes; then
  5799. cat >>confdefs.h <<\_ACEOF
  5800. #define STAT_MACROS_BROKEN 1
  5801. _ACEOF
  5802. fi
  5803. #checkpoint
  5804. cat >confcache <<\_ACEOF
  5805. # This file is a shell script that caches the results of configure
  5806. # tests run on this system so they can be shared between configure
  5807. # scripts and configure runs, see configure's option --config-cache.
  5808. # It is not useful on other systems. If it contains results you don't
  5809. # want to keep, you may remove or edit it.
  5810. #
  5811. # config.status only pays attention to the cache file if you give it
  5812. # the --recheck option to rerun configure.
  5813. #
  5814. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5815. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5816. # following values.
  5817. _ACEOF
  5818. # The following way of writing the cache mishandles newlines in values,
  5819. # but we know of no workaround that is simple, portable, and efficient.
  5820. # So, don't put newlines in cache variables' values.
  5821. # Ultrix sh set writes to stderr and can't be redirected directly,
  5822. # and sets the high bit in the cache file unless we assign to the vars.
  5823. {
  5824. (set) 2>&1 |
  5825. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5826. *ac_space=\ *)
  5827. # `set' does not quote correctly, so add quotes (double-quote
  5828. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5829. sed -n \
  5830. "s/'/'\\\\''/g;
  5831. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5832. ;;
  5833. *)
  5834. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5835. sed -n \
  5836. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5837. ;;
  5838. esac;
  5839. } |
  5840. sed '
  5841. t clear
  5842. : clear
  5843. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5844. t end
  5845. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5846. : end' >>confcache
  5847. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5848. if test -w $cache_file; then
  5849. test "x$cache_file" != "x/dev/null"
  5850. cat confcache >$cache_file
  5851. else
  5852. echo "not updating unwritable cache $cache_file"
  5853. fi
  5854. fi
  5855. rm -f confcache
  5856. for ac_header in arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5857. do
  5858. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5859. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5860. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5861. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5862. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5863. echo $ECHO_N "(cached) $ECHO_C" >&6
  5864. fi
  5865. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5866. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5867. else
  5868. # Is the header compilable?
  5869. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5870. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5871. cat >conftest.$ac_ext <<_ACEOF
  5872. /* confdefs.h. */
  5873. _ACEOF
  5874. cat confdefs.h >>conftest.$ac_ext
  5875. cat >>conftest.$ac_ext <<_ACEOF
  5876. /* end confdefs.h. */
  5877. $ac_includes_default
  5878. #include <$ac_header>
  5879. _ACEOF
  5880. rm -f conftest.$ac_objext
  5881. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5882. (eval $ac_compile) 2>conftest.er1
  5883. ac_status=$?
  5884. grep -v '^ *+' conftest.er1 >conftest.err
  5885. rm -f conftest.er1
  5886. cat conftest.err >&5
  5887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5888. (exit $ac_status); } &&
  5889. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5890. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5891. (eval $ac_try) 2>&5
  5892. ac_status=$?
  5893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5894. (exit $ac_status); }; } &&
  5895. { ac_try='test -s conftest.$ac_objext'
  5896. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5897. (eval $ac_try) 2>&5
  5898. ac_status=$?
  5899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5900. (exit $ac_status); }; }; then
  5901. ac_header_compiler=yes
  5902. else
  5903. echo "$as_me: failed program was:" >&5
  5904. sed 's/^/| /' conftest.$ac_ext >&5
  5905. ac_header_compiler=no
  5906. fi
  5907. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5908. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5909. echo "${ECHO_T}$ac_header_compiler" >&6
  5910. # Is the header present?
  5911. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5912. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5913. cat >conftest.$ac_ext <<_ACEOF
  5914. /* confdefs.h. */
  5915. _ACEOF
  5916. cat confdefs.h >>conftest.$ac_ext
  5917. cat >>conftest.$ac_ext <<_ACEOF
  5918. /* end confdefs.h. */
  5919. #include <$ac_header>
  5920. _ACEOF
  5921. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5922. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5923. ac_status=$?
  5924. grep -v '^ *+' conftest.er1 >conftest.err
  5925. rm -f conftest.er1
  5926. cat conftest.err >&5
  5927. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5928. (exit $ac_status); } >/dev/null; then
  5929. if test -s conftest.err; then
  5930. ac_cpp_err=$ac_c_preproc_warn_flag
  5931. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5932. else
  5933. ac_cpp_err=
  5934. fi
  5935. else
  5936. ac_cpp_err=yes
  5937. fi
  5938. if test -z "$ac_cpp_err"; then
  5939. ac_header_preproc=yes
  5940. else
  5941. echo "$as_me: failed program was:" >&5
  5942. sed 's/^/| /' conftest.$ac_ext >&5
  5943. ac_header_preproc=no
  5944. fi
  5945. rm -f conftest.err conftest.$ac_ext
  5946. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5947. echo "${ECHO_T}$ac_header_preproc" >&6
  5948. # So? What about this header?
  5949. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5950. yes:no: )
  5951. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5952. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5953. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5954. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5955. ac_header_preproc=yes
  5956. ;;
  5957. no:yes:* )
  5958. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5959. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5960. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5961. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5962. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5963. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5964. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5965. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5966. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5967. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5968. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5969. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5970. (
  5971. cat <<\_ASBOX
  5972. ## ------------------------------------------ ##
  5973. ## Report this to the AC_PACKAGE_NAME lists. ##
  5974. ## ------------------------------------------ ##
  5975. _ASBOX
  5976. ) |
  5977. sed "s/^/$as_me: WARNING: /" >&2
  5978. ;;
  5979. esac
  5980. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5981. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5982. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5983. echo $ECHO_N "(cached) $ECHO_C" >&6
  5984. else
  5985. eval "$as_ac_Header=\$ac_header_preproc"
  5986. fi
  5987. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5988. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5989. fi
  5990. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5991. cat >>confdefs.h <<_ACEOF
  5992. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5993. _ACEOF
  5994. fi
  5995. done
  5996. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5997. do
  5998. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5999. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6000. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6001. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6002. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6003. echo $ECHO_N "(cached) $ECHO_C" >&6
  6004. fi
  6005. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6006. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6007. else
  6008. # Is the header compilable?
  6009. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6010. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6011. cat >conftest.$ac_ext <<_ACEOF
  6012. /* confdefs.h. */
  6013. _ACEOF
  6014. cat confdefs.h >>conftest.$ac_ext
  6015. cat >>conftest.$ac_ext <<_ACEOF
  6016. /* end confdefs.h. */
  6017. $ac_includes_default
  6018. #include <$ac_header>
  6019. _ACEOF
  6020. rm -f conftest.$ac_objext
  6021. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6022. (eval $ac_compile) 2>conftest.er1
  6023. ac_status=$?
  6024. grep -v '^ *+' conftest.er1 >conftest.err
  6025. rm -f conftest.er1
  6026. cat conftest.err >&5
  6027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6028. (exit $ac_status); } &&
  6029. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6030. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6031. (eval $ac_try) 2>&5
  6032. ac_status=$?
  6033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6034. (exit $ac_status); }; } &&
  6035. { ac_try='test -s conftest.$ac_objext'
  6036. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6037. (eval $ac_try) 2>&5
  6038. ac_status=$?
  6039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6040. (exit $ac_status); }; }; then
  6041. ac_header_compiler=yes
  6042. else
  6043. echo "$as_me: failed program was:" >&5
  6044. sed 's/^/| /' conftest.$ac_ext >&5
  6045. ac_header_compiler=no
  6046. fi
  6047. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6048. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6049. echo "${ECHO_T}$ac_header_compiler" >&6
  6050. # Is the header present?
  6051. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6052. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6053. cat >conftest.$ac_ext <<_ACEOF
  6054. /* confdefs.h. */
  6055. _ACEOF
  6056. cat confdefs.h >>conftest.$ac_ext
  6057. cat >>conftest.$ac_ext <<_ACEOF
  6058. /* end confdefs.h. */
  6059. #include <$ac_header>
  6060. _ACEOF
  6061. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6062. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6063. ac_status=$?
  6064. grep -v '^ *+' conftest.er1 >conftest.err
  6065. rm -f conftest.er1
  6066. cat conftest.err >&5
  6067. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6068. (exit $ac_status); } >/dev/null; then
  6069. if test -s conftest.err; then
  6070. ac_cpp_err=$ac_c_preproc_warn_flag
  6071. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6072. else
  6073. ac_cpp_err=
  6074. fi
  6075. else
  6076. ac_cpp_err=yes
  6077. fi
  6078. if test -z "$ac_cpp_err"; then
  6079. ac_header_preproc=yes
  6080. else
  6081. echo "$as_me: failed program was:" >&5
  6082. sed 's/^/| /' conftest.$ac_ext >&5
  6083. ac_header_preproc=no
  6084. fi
  6085. rm -f conftest.err conftest.$ac_ext
  6086. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6087. echo "${ECHO_T}$ac_header_preproc" >&6
  6088. # So? What about this header?
  6089. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6090. yes:no: )
  6091. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6092. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6093. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6094. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6095. ac_header_preproc=yes
  6096. ;;
  6097. no:yes:* )
  6098. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6099. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6100. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6101. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6102. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6103. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6104. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6105. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6106. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6107. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6108. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6109. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6110. (
  6111. cat <<\_ASBOX
  6112. ## ------------------------------------------ ##
  6113. ## Report this to the AC_PACKAGE_NAME lists. ##
  6114. ## ------------------------------------------ ##
  6115. _ASBOX
  6116. ) |
  6117. sed "s/^/$as_me: WARNING: /" >&2
  6118. ;;
  6119. esac
  6120. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6121. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6122. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6123. echo $ECHO_N "(cached) $ECHO_C" >&6
  6124. else
  6125. eval "$as_ac_Header=\$ac_header_preproc"
  6126. fi
  6127. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6128. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6129. fi
  6130. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6131. cat >>confdefs.h <<_ACEOF
  6132. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6133. _ACEOF
  6134. fi
  6135. done
  6136. #checkpoint
  6137. cat >confcache <<\_ACEOF
  6138. # This file is a shell script that caches the results of configure
  6139. # tests run on this system so they can be shared between configure
  6140. # scripts and configure runs, see configure's option --config-cache.
  6141. # It is not useful on other systems. If it contains results you don't
  6142. # want to keep, you may remove or edit it.
  6143. #
  6144. # config.status only pays attention to the cache file if you give it
  6145. # the --recheck option to rerun configure.
  6146. #
  6147. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6148. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6149. # following values.
  6150. _ACEOF
  6151. # The following way of writing the cache mishandles newlines in values,
  6152. # but we know of no workaround that is simple, portable, and efficient.
  6153. # So, don't put newlines in cache variables' values.
  6154. # Ultrix sh set writes to stderr and can't be redirected directly,
  6155. # and sets the high bit in the cache file unless we assign to the vars.
  6156. {
  6157. (set) 2>&1 |
  6158. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6159. *ac_space=\ *)
  6160. # `set' does not quote correctly, so add quotes (double-quote
  6161. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6162. sed -n \
  6163. "s/'/'\\\\''/g;
  6164. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6165. ;;
  6166. *)
  6167. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6168. sed -n \
  6169. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  6170. ;;
  6171. esac;
  6172. } |
  6173. sed '
  6174. t clear
  6175. : clear
  6176. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6177. t end
  6178. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6179. : end' >>confcache
  6180. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  6181. if test -w $cache_file; then
  6182. test "x$cache_file" != "x/dev/null"
  6183. cat confcache >$cache_file
  6184. else
  6185. echo "not updating unwritable cache $cache_file"
  6186. fi
  6187. fi
  6188. rm -f confcache
  6189. for ac_header in openssl/ssl.h openssl/crypto.h
  6190. do
  6191. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6192. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6193. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6194. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6195. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6196. echo $ECHO_N "(cached) $ECHO_C" >&6
  6197. fi
  6198. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6199. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6200. else
  6201. # Is the header compilable?
  6202. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6203. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6204. cat >conftest.$ac_ext <<_ACEOF
  6205. /* confdefs.h. */
  6206. _ACEOF
  6207. cat confdefs.h >>conftest.$ac_ext
  6208. cat >>conftest.$ac_ext <<_ACEOF
  6209. /* end confdefs.h. */
  6210. $ac_includes_default
  6211. #include <$ac_header>
  6212. _ACEOF
  6213. rm -f conftest.$ac_objext
  6214. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6215. (eval $ac_compile) 2>conftest.er1
  6216. ac_status=$?
  6217. grep -v '^ *+' conftest.er1 >conftest.err
  6218. rm -f conftest.er1
  6219. cat conftest.err >&5
  6220. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6221. (exit $ac_status); } &&
  6222. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6223. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6224. (eval $ac_try) 2>&5
  6225. ac_status=$?
  6226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6227. (exit $ac_status); }; } &&
  6228. { ac_try='test -s conftest.$ac_objext'
  6229. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6230. (eval $ac_try) 2>&5
  6231. ac_status=$?
  6232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6233. (exit $ac_status); }; }; then
  6234. ac_header_compiler=yes
  6235. else
  6236. echo "$as_me: failed program was:" >&5
  6237. sed 's/^/| /' conftest.$ac_ext >&5
  6238. ac_header_compiler=no
  6239. fi
  6240. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6241. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6242. echo "${ECHO_T}$ac_header_compiler" >&6
  6243. # Is the header present?
  6244. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6245. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6246. cat >conftest.$ac_ext <<_ACEOF
  6247. /* confdefs.h. */
  6248. _ACEOF
  6249. cat confdefs.h >>conftest.$ac_ext
  6250. cat >>conftest.$ac_ext <<_ACEOF
  6251. /* end confdefs.h. */
  6252. #include <$ac_header>
  6253. _ACEOF
  6254. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6255. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6256. ac_status=$?
  6257. grep -v '^ *+' conftest.er1 >conftest.err
  6258. rm -f conftest.er1
  6259. cat conftest.err >&5
  6260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6261. (exit $ac_status); } >/dev/null; then
  6262. if test -s conftest.err; then
  6263. ac_cpp_err=$ac_c_preproc_warn_flag
  6264. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6265. else
  6266. ac_cpp_err=
  6267. fi
  6268. else
  6269. ac_cpp_err=yes
  6270. fi
  6271. if test -z "$ac_cpp_err"; then
  6272. ac_header_preproc=yes
  6273. else
  6274. echo "$as_me: failed program was:" >&5
  6275. sed 's/^/| /' conftest.$ac_ext >&5
  6276. ac_header_preproc=no
  6277. fi
  6278. rm -f conftest.err conftest.$ac_ext
  6279. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6280. echo "${ECHO_T}$ac_header_preproc" >&6
  6281. # So? What about this header?
  6282. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6283. yes:no: )
  6284. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6285. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6286. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6287. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6288. ac_header_preproc=yes
  6289. ;;
  6290. no:yes:* )
  6291. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6292. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6293. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6294. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6295. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6296. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6297. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6298. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6299. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6300. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6301. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6302. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6303. (
  6304. cat <<\_ASBOX
  6305. ## ------------------------------------------ ##
  6306. ## Report this to the AC_PACKAGE_NAME lists. ##
  6307. ## ------------------------------------------ ##
  6308. _ASBOX
  6309. ) |
  6310. sed "s/^/$as_me: WARNING: /" >&2
  6311. ;;
  6312. esac
  6313. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6314. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6315. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6316. echo $ECHO_N "(cached) $ECHO_C" >&6
  6317. else
  6318. eval "$as_ac_Header=\$ac_header_preproc"
  6319. fi
  6320. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6321. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6322. fi
  6323. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6324. cat >>confdefs.h <<_ACEOF
  6325. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6326. _ACEOF
  6327. fi
  6328. done
  6329. for ac_header in zlib.h
  6330. do
  6331. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6332. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6333. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6334. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6335. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6336. echo $ECHO_N "(cached) $ECHO_C" >&6
  6337. fi
  6338. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6339. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6340. else
  6341. # Is the header compilable?
  6342. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6343. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6344. cat >conftest.$ac_ext <<_ACEOF
  6345. /* confdefs.h. */
  6346. _ACEOF
  6347. cat confdefs.h >>conftest.$ac_ext
  6348. cat >>conftest.$ac_ext <<_ACEOF
  6349. /* end confdefs.h. */
  6350. $ac_includes_default
  6351. #include <$ac_header>
  6352. _ACEOF
  6353. rm -f conftest.$ac_objext
  6354. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6355. (eval $ac_compile) 2>conftest.er1
  6356. ac_status=$?
  6357. grep -v '^ *+' conftest.er1 >conftest.err
  6358. rm -f conftest.er1
  6359. cat conftest.err >&5
  6360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6361. (exit $ac_status); } &&
  6362. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6363. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6364. (eval $ac_try) 2>&5
  6365. ac_status=$?
  6366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6367. (exit $ac_status); }; } &&
  6368. { ac_try='test -s conftest.$ac_objext'
  6369. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6370. (eval $ac_try) 2>&5
  6371. ac_status=$?
  6372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6373. (exit $ac_status); }; }; then
  6374. ac_header_compiler=yes
  6375. else
  6376. echo "$as_me: failed program was:" >&5
  6377. sed 's/^/| /' conftest.$ac_ext >&5
  6378. ac_header_compiler=no
  6379. fi
  6380. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6381. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6382. echo "${ECHO_T}$ac_header_compiler" >&6
  6383. # Is the header present?
  6384. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6385. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6386. cat >conftest.$ac_ext <<_ACEOF
  6387. /* confdefs.h. */
  6388. _ACEOF
  6389. cat confdefs.h >>conftest.$ac_ext
  6390. cat >>conftest.$ac_ext <<_ACEOF
  6391. /* end confdefs.h. */
  6392. #include <$ac_header>
  6393. _ACEOF
  6394. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6395. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6396. ac_status=$?
  6397. grep -v '^ *+' conftest.er1 >conftest.err
  6398. rm -f conftest.er1
  6399. cat conftest.err >&5
  6400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6401. (exit $ac_status); } >/dev/null; then
  6402. if test -s conftest.err; then
  6403. ac_cpp_err=$ac_c_preproc_warn_flag
  6404. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6405. else
  6406. ac_cpp_err=
  6407. fi
  6408. else
  6409. ac_cpp_err=yes
  6410. fi
  6411. if test -z "$ac_cpp_err"; then
  6412. ac_header_preproc=yes
  6413. else
  6414. echo "$as_me: failed program was:" >&5
  6415. sed 's/^/| /' conftest.$ac_ext >&5
  6416. ac_header_preproc=no
  6417. fi
  6418. rm -f conftest.err conftest.$ac_ext
  6419. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6420. echo "${ECHO_T}$ac_header_preproc" >&6
  6421. # So? What about this header?
  6422. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6423. yes:no: )
  6424. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6425. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6426. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6427. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6428. ac_header_preproc=yes
  6429. ;;
  6430. no:yes:* )
  6431. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6432. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6433. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6434. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6435. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6436. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6437. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6438. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6439. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6440. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6441. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6442. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6443. (
  6444. cat <<\_ASBOX
  6445. ## ------------------------------------------ ##
  6446. ## Report this to the AC_PACKAGE_NAME lists. ##
  6447. ## ------------------------------------------ ##
  6448. _ASBOX
  6449. ) |
  6450. sed "s/^/$as_me: WARNING: /" >&2
  6451. ;;
  6452. esac
  6453. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6454. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6455. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6456. echo $ECHO_N "(cached) $ECHO_C" >&6
  6457. else
  6458. eval "$as_ac_Header=\$ac_header_preproc"
  6459. fi
  6460. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6461. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6462. fi
  6463. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6464. cat >>confdefs.h <<_ACEOF
  6465. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6466. _ACEOF
  6467. fi
  6468. done
  6469. if test "x${ZLIB}" = x; then
  6470. cat >&2 <<EOF
  6471. configure: error:
  6472. Your system does not provide a working zlib compression library.
  6473. It is required.
  6474. EOF
  6475. exit 1
  6476. else
  6477. if test "${ac_cv_header_zlib_h}" != yes; then
  6478. cat >&2 <<EOF
  6479. configure: error:
  6480. Your system does not provide the necessary zlib header file.
  6481. It is required.
  6482. EOF
  6483. exit 1
  6484. fi
  6485. fi
  6486. if test "x${SSL}" = x; then
  6487. cat >&2 <<EOF
  6488. configure: error:
  6489. Your system does not provide a working ssl library.
  6490. It is required. Download openssl at www.openssl.org
  6491. EOF
  6492. exit 1
  6493. else
  6494. if test "${ac_cv_header_openssl_ssl_h}" != yes; then
  6495. cat >&2 <<EOF
  6496. configure: error:
  6497. Your system does not provide the necessary ssl header file.
  6498. It is required. Download openssl at www.openssl.org
  6499. EOF
  6500. exit 1
  6501. fi
  6502. fi
  6503. # Checks for typedefs, structures, and compiler characteristics
  6504. echo "$as_me:$LINENO: checking for pid_t" >&5
  6505. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  6506. if test "${ac_cv_type_pid_t+set}" = set; then
  6507. echo $ECHO_N "(cached) $ECHO_C" >&6
  6508. else
  6509. cat >conftest.$ac_ext <<_ACEOF
  6510. /* confdefs.h. */
  6511. _ACEOF
  6512. cat confdefs.h >>conftest.$ac_ext
  6513. cat >>conftest.$ac_ext <<_ACEOF
  6514. /* end confdefs.h. */
  6515. $ac_includes_default
  6516. int
  6517. main ()
  6518. {
  6519. if ((pid_t *) 0)
  6520. return 0;
  6521. if (sizeof (pid_t))
  6522. return 0;
  6523. ;
  6524. return 0;
  6525. }
  6526. _ACEOF
  6527. rm -f conftest.$ac_objext
  6528. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6529. (eval $ac_compile) 2>conftest.er1
  6530. ac_status=$?
  6531. grep -v '^ *+' conftest.er1 >conftest.err
  6532. rm -f conftest.er1
  6533. cat conftest.err >&5
  6534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6535. (exit $ac_status); } &&
  6536. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6537. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6538. (eval $ac_try) 2>&5
  6539. ac_status=$?
  6540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6541. (exit $ac_status); }; } &&
  6542. { ac_try='test -s conftest.$ac_objext'
  6543. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6544. (eval $ac_try) 2>&5
  6545. ac_status=$?
  6546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6547. (exit $ac_status); }; }; then
  6548. ac_cv_type_pid_t=yes
  6549. else
  6550. echo "$as_me: failed program was:" >&5
  6551. sed 's/^/| /' conftest.$ac_ext >&5
  6552. ac_cv_type_pid_t=no
  6553. fi
  6554. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6555. fi
  6556. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  6557. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  6558. if test $ac_cv_type_pid_t = yes; then
  6559. :
  6560. else
  6561. cat >>confdefs.h <<_ACEOF
  6562. #define pid_t int
  6563. _ACEOF
  6564. fi
  6565. echo "$as_me:$LINENO: checking for size_t" >&5
  6566. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  6567. if test "${ac_cv_type_size_t+set}" = set; then
  6568. echo $ECHO_N "(cached) $ECHO_C" >&6
  6569. else
  6570. cat >conftest.$ac_ext <<_ACEOF
  6571. /* confdefs.h. */
  6572. _ACEOF
  6573. cat confdefs.h >>conftest.$ac_ext
  6574. cat >>conftest.$ac_ext <<_ACEOF
  6575. /* end confdefs.h. */
  6576. $ac_includes_default
  6577. int
  6578. main ()
  6579. {
  6580. if ((size_t *) 0)
  6581. return 0;
  6582. if (sizeof (size_t))
  6583. return 0;
  6584. ;
  6585. return 0;
  6586. }
  6587. _ACEOF
  6588. rm -f conftest.$ac_objext
  6589. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6590. (eval $ac_compile) 2>conftest.er1
  6591. ac_status=$?
  6592. grep -v '^ *+' conftest.er1 >conftest.err
  6593. rm -f conftest.er1
  6594. cat conftest.err >&5
  6595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6596. (exit $ac_status); } &&
  6597. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6598. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6599. (eval $ac_try) 2>&5
  6600. ac_status=$?
  6601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6602. (exit $ac_status); }; } &&
  6603. { ac_try='test -s conftest.$ac_objext'
  6604. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6605. (eval $ac_try) 2>&5
  6606. ac_status=$?
  6607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6608. (exit $ac_status); }; }; then
  6609. ac_cv_type_size_t=yes
  6610. else
  6611. echo "$as_me: failed program was:" >&5
  6612. sed 's/^/| /' conftest.$ac_ext >&5
  6613. ac_cv_type_size_t=no
  6614. fi
  6615. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6616. fi
  6617. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  6618. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  6619. if test $ac_cv_type_size_t = yes; then
  6620. :
  6621. else
  6622. cat >>confdefs.h <<_ACEOF
  6623. #define size_t unsigned
  6624. _ACEOF
  6625. fi
  6626. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  6627. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  6628. if test "${ac_cv_type_uid_t+set}" = set; then
  6629. echo $ECHO_N "(cached) $ECHO_C" >&6
  6630. else
  6631. cat >conftest.$ac_ext <<_ACEOF
  6632. /* confdefs.h. */
  6633. _ACEOF
  6634. cat confdefs.h >>conftest.$ac_ext
  6635. cat >>conftest.$ac_ext <<_ACEOF
  6636. /* end confdefs.h. */
  6637. #include <sys/types.h>
  6638. _ACEOF
  6639. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6640. $EGREP "uid_t" >/dev/null 2>&1; then
  6641. ac_cv_type_uid_t=yes
  6642. else
  6643. ac_cv_type_uid_t=no
  6644. fi
  6645. rm -f conftest*
  6646. fi
  6647. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  6648. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  6649. if test $ac_cv_type_uid_t = no; then
  6650. cat >>confdefs.h <<\_ACEOF
  6651. #define uid_t int
  6652. _ACEOF
  6653. cat >>confdefs.h <<\_ACEOF
  6654. #define gid_t int
  6655. _ACEOF
  6656. fi
  6657. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  6658. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  6659. if test "${ac_cv_c_const+set}" = set; then
  6660. echo $ECHO_N "(cached) $ECHO_C" >&6
  6661. else
  6662. cat >conftest.$ac_ext <<_ACEOF
  6663. /* confdefs.h. */
  6664. _ACEOF
  6665. cat confdefs.h >>conftest.$ac_ext
  6666. cat >>conftest.$ac_ext <<_ACEOF
  6667. /* end confdefs.h. */
  6668. int
  6669. main ()
  6670. {
  6671. /* FIXME: Include the comments suggested by Paul. */
  6672. #ifndef __cplusplus
  6673. /* Ultrix mips cc rejects this. */
  6674. typedef int charset[2];
  6675. const charset x;
  6676. /* SunOS 4.1.1 cc rejects this. */
  6677. char const *const *ccp;
  6678. char **p;
  6679. /* NEC SVR4.0.2 mips cc rejects this. */
  6680. struct point {int x, y;};
  6681. static struct point const zero = {0,0};
  6682. /* AIX XL C 1.02.0.0 rejects this.
  6683. It does not let you subtract one const X* pointer from another in
  6684. an arm of an if-expression whose if-part is not a constant
  6685. expression */
  6686. const char *g = "string";
  6687. ccp = &g + (g ? g-g : 0);
  6688. /* HPUX 7.0 cc rejects these. */
  6689. ++ccp;
  6690. p = (char**) ccp;
  6691. ccp = (char const *const *) p;
  6692. { /* SCO 3.2v4 cc rejects this. */
  6693. char *t;
  6694. char const *s = 0 ? (char *) 0 : (char const *) 0;
  6695. *t++ = 0;
  6696. }
  6697. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  6698. int x[] = {25, 17};
  6699. const int *foo = &x[0];
  6700. ++foo;
  6701. }
  6702. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6703. typedef const int *iptr;
  6704. iptr p = 0;
  6705. ++p;
  6706. }
  6707. { /* AIX XL C 1.02.0.0 rejects this saying
  6708. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  6709. struct s { int j; const int *ap[3]; };
  6710. struct s *b; b->j = 5;
  6711. }
  6712. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  6713. const int foo = 10;
  6714. }
  6715. #endif
  6716. ;
  6717. return 0;
  6718. }
  6719. _ACEOF
  6720. rm -f conftest.$ac_objext
  6721. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6722. (eval $ac_compile) 2>conftest.er1
  6723. ac_status=$?
  6724. grep -v '^ *+' conftest.er1 >conftest.err
  6725. rm -f conftest.er1
  6726. cat conftest.err >&5
  6727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6728. (exit $ac_status); } &&
  6729. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6730. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6731. (eval $ac_try) 2>&5
  6732. ac_status=$?
  6733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6734. (exit $ac_status); }; } &&
  6735. { ac_try='test -s conftest.$ac_objext'
  6736. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6737. (eval $ac_try) 2>&5
  6738. ac_status=$?
  6739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6740. (exit $ac_status); }; }; then
  6741. ac_cv_c_const=yes
  6742. else
  6743. echo "$as_me: failed program was:" >&5
  6744. sed 's/^/| /' conftest.$ac_ext >&5
  6745. ac_cv_c_const=no
  6746. fi
  6747. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6748. fi
  6749. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  6750. echo "${ECHO_T}$ac_cv_c_const" >&6
  6751. if test $ac_cv_c_const = no; then
  6752. cat >>confdefs.h <<\_ACEOF
  6753. #define const
  6754. _ACEOF
  6755. fi
  6756. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  6757. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  6758. if test "${ac_cv_c_bigendian+set}" = set; then
  6759. echo $ECHO_N "(cached) $ECHO_C" >&6
  6760. else
  6761. # See if sys/param.h defines the BYTE_ORDER macro.
  6762. cat >conftest.$ac_ext <<_ACEOF
  6763. /* confdefs.h. */
  6764. _ACEOF
  6765. cat confdefs.h >>conftest.$ac_ext
  6766. cat >>conftest.$ac_ext <<_ACEOF
  6767. /* end confdefs.h. */
  6768. #include <sys/types.h>
  6769. #include <sys/param.h>
  6770. int
  6771. main ()
  6772. {
  6773. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  6774. bogus endian macros
  6775. #endif
  6776. ;
  6777. return 0;
  6778. }
  6779. _ACEOF
  6780. rm -f conftest.$ac_objext
  6781. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6782. (eval $ac_compile) 2>conftest.er1
  6783. ac_status=$?
  6784. grep -v '^ *+' conftest.er1 >conftest.err
  6785. rm -f conftest.er1
  6786. cat conftest.err >&5
  6787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6788. (exit $ac_status); } &&
  6789. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6790. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6791. (eval $ac_try) 2>&5
  6792. ac_status=$?
  6793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6794. (exit $ac_status); }; } &&
  6795. { ac_try='test -s conftest.$ac_objext'
  6796. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6797. (eval $ac_try) 2>&5
  6798. ac_status=$?
  6799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6800. (exit $ac_status); }; }; then
  6801. # It does; now see whether it defined to BIG_ENDIAN or not.
  6802. cat >conftest.$ac_ext <<_ACEOF
  6803. /* confdefs.h. */
  6804. _ACEOF
  6805. cat confdefs.h >>conftest.$ac_ext
  6806. cat >>conftest.$ac_ext <<_ACEOF
  6807. /* end confdefs.h. */
  6808. #include <sys/types.h>
  6809. #include <sys/param.h>
  6810. int
  6811. main ()
  6812. {
  6813. #if BYTE_ORDER != BIG_ENDIAN
  6814. not big endian
  6815. #endif
  6816. ;
  6817. return 0;
  6818. }
  6819. _ACEOF
  6820. rm -f conftest.$ac_objext
  6821. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6822. (eval $ac_compile) 2>conftest.er1
  6823. ac_status=$?
  6824. grep -v '^ *+' conftest.er1 >conftest.err
  6825. rm -f conftest.er1
  6826. cat conftest.err >&5
  6827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6828. (exit $ac_status); } &&
  6829. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6830. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6831. (eval $ac_try) 2>&5
  6832. ac_status=$?
  6833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6834. (exit $ac_status); }; } &&
  6835. { ac_try='test -s conftest.$ac_objext'
  6836. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6837. (eval $ac_try) 2>&5
  6838. ac_status=$?
  6839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6840. (exit $ac_status); }; }; then
  6841. ac_cv_c_bigendian=yes
  6842. else
  6843. echo "$as_me: failed program was:" >&5
  6844. sed 's/^/| /' conftest.$ac_ext >&5
  6845. ac_cv_c_bigendian=no
  6846. fi
  6847. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6848. else
  6849. echo "$as_me: failed program was:" >&5
  6850. sed 's/^/| /' conftest.$ac_ext >&5
  6851. # It does not; compile a test program.
  6852. if test "$cross_compiling" = yes; then
  6853. # try to guess the endianness by grepping values into an object file
  6854. ac_cv_c_bigendian=unknown
  6855. cat >conftest.$ac_ext <<_ACEOF
  6856. /* confdefs.h. */
  6857. _ACEOF
  6858. cat confdefs.h >>conftest.$ac_ext
  6859. cat >>conftest.$ac_ext <<_ACEOF
  6860. /* end confdefs.h. */
  6861. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6862. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6863. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  6864. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6865. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6866. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  6867. int
  6868. main ()
  6869. {
  6870. _ascii (); _ebcdic ();
  6871. ;
  6872. return 0;
  6873. }
  6874. _ACEOF
  6875. rm -f conftest.$ac_objext
  6876. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6877. (eval $ac_compile) 2>conftest.er1
  6878. ac_status=$?
  6879. grep -v '^ *+' conftest.er1 >conftest.err
  6880. rm -f conftest.er1
  6881. cat conftest.err >&5
  6882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6883. (exit $ac_status); } &&
  6884. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6885. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6886. (eval $ac_try) 2>&5
  6887. ac_status=$?
  6888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6889. (exit $ac_status); }; } &&
  6890. { ac_try='test -s conftest.$ac_objext'
  6891. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6892. (eval $ac_try) 2>&5
  6893. ac_status=$?
  6894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6895. (exit $ac_status); }; }; then
  6896. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  6897. ac_cv_c_bigendian=yes
  6898. fi
  6899. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6900. if test "$ac_cv_c_bigendian" = unknown; then
  6901. ac_cv_c_bigendian=no
  6902. else
  6903. # finding both strings is unlikely to happen, but who knows?
  6904. ac_cv_c_bigendian=unknown
  6905. fi
  6906. fi
  6907. else
  6908. echo "$as_me: failed program was:" >&5
  6909. sed 's/^/| /' conftest.$ac_ext >&5
  6910. fi
  6911. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6912. else
  6913. cat >conftest.$ac_ext <<_ACEOF
  6914. /* confdefs.h. */
  6915. _ACEOF
  6916. cat confdefs.h >>conftest.$ac_ext
  6917. cat >>conftest.$ac_ext <<_ACEOF
  6918. /* end confdefs.h. */
  6919. int
  6920. main ()
  6921. {
  6922. /* Are we little or big endian? From Harbison&Steele. */
  6923. union
  6924. {
  6925. long l;
  6926. char c[sizeof (long)];
  6927. } u;
  6928. u.l = 1;
  6929. exit (u.c[sizeof (long) - 1] == 1);
  6930. }
  6931. _ACEOF
  6932. rm -f conftest$ac_exeext
  6933. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6934. (eval $ac_link) 2>&5
  6935. ac_status=$?
  6936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6937. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6938. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6939. (eval $ac_try) 2>&5
  6940. ac_status=$?
  6941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6942. (exit $ac_status); }; }; then
  6943. ac_cv_c_bigendian=no
  6944. else
  6945. echo "$as_me: program exited with status $ac_status" >&5
  6946. echo "$as_me: failed program was:" >&5
  6947. sed 's/^/| /' conftest.$ac_ext >&5
  6948. ( exit $ac_status )
  6949. ac_cv_c_bigendian=yes
  6950. fi
  6951. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6952. fi
  6953. fi
  6954. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6955. fi
  6956. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6957. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  6958. case $ac_cv_c_bigendian in
  6959. yes)
  6960. cat >>confdefs.h <<\_ACEOF
  6961. #define WORDS_BIGENDIAN 1
  6962. _ACEOF
  6963. ;;
  6964. no)
  6965. ;;
  6966. *)
  6967. { { echo "$as_me:$LINENO: error: unknown endianness
  6968. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6969. echo "$as_me: error: unknown endianness
  6970. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6971. { (exit 1); exit 1; }; } ;;
  6972. esac
  6973. echo "$as_me:$LINENO: checking for inline" >&5
  6974. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  6975. if test "${ac_cv_c_inline+set}" = set; then
  6976. echo $ECHO_N "(cached) $ECHO_C" >&6
  6977. else
  6978. ac_cv_c_inline=no
  6979. for ac_kw in inline __inline__ __inline; do
  6980. cat >conftest.$ac_ext <<_ACEOF
  6981. /* confdefs.h. */
  6982. _ACEOF
  6983. cat confdefs.h >>conftest.$ac_ext
  6984. cat >>conftest.$ac_ext <<_ACEOF
  6985. /* end confdefs.h. */
  6986. #ifndef __cplusplus
  6987. typedef int foo_t;
  6988. static $ac_kw foo_t static_foo () {return 0; }
  6989. $ac_kw foo_t foo () {return 0; }
  6990. #endif
  6991. _ACEOF
  6992. rm -f conftest.$ac_objext
  6993. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6994. (eval $ac_compile) 2>conftest.er1
  6995. ac_status=$?
  6996. grep -v '^ *+' conftest.er1 >conftest.err
  6997. rm -f conftest.er1
  6998. cat conftest.err >&5
  6999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7000. (exit $ac_status); } &&
  7001. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7002. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7003. (eval $ac_try) 2>&5
  7004. ac_status=$?
  7005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7006. (exit $ac_status); }; } &&
  7007. { ac_try='test -s conftest.$ac_objext'
  7008. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7009. (eval $ac_try) 2>&5
  7010. ac_status=$?
  7011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7012. (exit $ac_status); }; }; then
  7013. ac_cv_c_inline=$ac_kw; break
  7014. else
  7015. echo "$as_me: failed program was:" >&5
  7016. sed 's/^/| /' conftest.$ac_ext >&5
  7017. fi
  7018. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7019. done
  7020. fi
  7021. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  7022. echo "${ECHO_T}$ac_cv_c_inline" >&6
  7023. case $ac_cv_c_inline in
  7024. inline | yes) ;;
  7025. *)
  7026. case $ac_cv_c_inline in
  7027. no) ac_val=;;
  7028. *) ac_val=$ac_cv_c_inline;;
  7029. esac
  7030. cat >>confdefs.h <<_ACEOF
  7031. #ifndef __cplusplus
  7032. #define inline $ac_val
  7033. #endif
  7034. _ACEOF
  7035. ;;
  7036. esac
  7037. echo "$as_me:$LINENO: checking for long" >&5
  7038. echo $ECHO_N "checking for long... $ECHO_C" >&6
  7039. if test "${ac_cv_type_long+set}" = set; then
  7040. echo $ECHO_N "(cached) $ECHO_C" >&6
  7041. else
  7042. cat >conftest.$ac_ext <<_ACEOF
  7043. /* confdefs.h. */
  7044. _ACEOF
  7045. cat confdefs.h >>conftest.$ac_ext
  7046. cat >>conftest.$ac_ext <<_ACEOF
  7047. /* end confdefs.h. */
  7048. $ac_includes_default
  7049. int
  7050. main ()
  7051. {
  7052. if ((long *) 0)
  7053. return 0;
  7054. if (sizeof (long))
  7055. return 0;
  7056. ;
  7057. return 0;
  7058. }
  7059. _ACEOF
  7060. rm -f conftest.$ac_objext
  7061. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7062. (eval $ac_compile) 2>conftest.er1
  7063. ac_status=$?
  7064. grep -v '^ *+' conftest.er1 >conftest.err
  7065. rm -f conftest.er1
  7066. cat conftest.err >&5
  7067. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7068. (exit $ac_status); } &&
  7069. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7070. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7071. (eval $ac_try) 2>&5
  7072. ac_status=$?
  7073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7074. (exit $ac_status); }; } &&
  7075. { ac_try='test -s conftest.$ac_objext'
  7076. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7077. (eval $ac_try) 2>&5
  7078. ac_status=$?
  7079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7080. (exit $ac_status); }; }; then
  7081. ac_cv_type_long=yes
  7082. else
  7083. echo "$as_me: failed program was:" >&5
  7084. sed 's/^/| /' conftest.$ac_ext >&5
  7085. ac_cv_type_long=no
  7086. fi
  7087. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7088. fi
  7089. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  7090. echo "${ECHO_T}$ac_cv_type_long" >&6
  7091. echo "$as_me:$LINENO: checking size of long" >&5
  7092. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  7093. if test "${ac_cv_sizeof_long+set}" = set; then
  7094. echo $ECHO_N "(cached) $ECHO_C" >&6
  7095. else
  7096. if test "$ac_cv_type_long" = yes; then
  7097. # The cast to unsigned long works around a bug in the HP C Compiler
  7098. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7099. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7100. # This bug is HP SR number 8606223364.
  7101. if test "$cross_compiling" = yes; then
  7102. # Depending upon the size, compute the lo and hi bounds.
  7103. cat >conftest.$ac_ext <<_ACEOF
  7104. /* confdefs.h. */
  7105. _ACEOF
  7106. cat confdefs.h >>conftest.$ac_ext
  7107. cat >>conftest.$ac_ext <<_ACEOF
  7108. /* end confdefs.h. */
  7109. $ac_includes_default
  7110. int
  7111. main ()
  7112. {
  7113. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  7114. test_array [0] = 0
  7115. ;
  7116. return 0;
  7117. }
  7118. _ACEOF
  7119. rm -f conftest.$ac_objext
  7120. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7121. (eval $ac_compile) 2>conftest.er1
  7122. ac_status=$?
  7123. grep -v '^ *+' conftest.er1 >conftest.err
  7124. rm -f conftest.er1
  7125. cat conftest.err >&5
  7126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7127. (exit $ac_status); } &&
  7128. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7129. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7130. (eval $ac_try) 2>&5
  7131. ac_status=$?
  7132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7133. (exit $ac_status); }; } &&
  7134. { ac_try='test -s conftest.$ac_objext'
  7135. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7136. (eval $ac_try) 2>&5
  7137. ac_status=$?
  7138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7139. (exit $ac_status); }; }; then
  7140. ac_lo=0 ac_mid=0
  7141. while :; do
  7142. cat >conftest.$ac_ext <<_ACEOF
  7143. /* confdefs.h. */
  7144. _ACEOF
  7145. cat confdefs.h >>conftest.$ac_ext
  7146. cat >>conftest.$ac_ext <<_ACEOF
  7147. /* end confdefs.h. */
  7148. $ac_includes_default
  7149. int
  7150. main ()
  7151. {
  7152. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  7153. test_array [0] = 0
  7154. ;
  7155. return 0;
  7156. }
  7157. _ACEOF
  7158. rm -f conftest.$ac_objext
  7159. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7160. (eval $ac_compile) 2>conftest.er1
  7161. ac_status=$?
  7162. grep -v '^ *+' conftest.er1 >conftest.err
  7163. rm -f conftest.er1
  7164. cat conftest.err >&5
  7165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7166. (exit $ac_status); } &&
  7167. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7168. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7169. (eval $ac_try) 2>&5
  7170. ac_status=$?
  7171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7172. (exit $ac_status); }; } &&
  7173. { ac_try='test -s conftest.$ac_objext'
  7174. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7175. (eval $ac_try) 2>&5
  7176. ac_status=$?
  7177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7178. (exit $ac_status); }; }; then
  7179. ac_hi=$ac_mid; break
  7180. else
  7181. echo "$as_me: failed program was:" >&5
  7182. sed 's/^/| /' conftest.$ac_ext >&5
  7183. ac_lo=`expr $ac_mid + 1`
  7184. if test $ac_lo -le $ac_mid; then
  7185. ac_lo= ac_hi=
  7186. break
  7187. fi
  7188. ac_mid=`expr 2 '*' $ac_mid + 1`
  7189. fi
  7190. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7191. done
  7192. else
  7193. echo "$as_me: failed program was:" >&5
  7194. sed 's/^/| /' conftest.$ac_ext >&5
  7195. cat >conftest.$ac_ext <<_ACEOF
  7196. /* confdefs.h. */
  7197. _ACEOF
  7198. cat confdefs.h >>conftest.$ac_ext
  7199. cat >>conftest.$ac_ext <<_ACEOF
  7200. /* end confdefs.h. */
  7201. $ac_includes_default
  7202. int
  7203. main ()
  7204. {
  7205. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  7206. test_array [0] = 0
  7207. ;
  7208. return 0;
  7209. }
  7210. _ACEOF
  7211. rm -f conftest.$ac_objext
  7212. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7213. (eval $ac_compile) 2>conftest.er1
  7214. ac_status=$?
  7215. grep -v '^ *+' conftest.er1 >conftest.err
  7216. rm -f conftest.er1
  7217. cat conftest.err >&5
  7218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7219. (exit $ac_status); } &&
  7220. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7221. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7222. (eval $ac_try) 2>&5
  7223. ac_status=$?
  7224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7225. (exit $ac_status); }; } &&
  7226. { ac_try='test -s conftest.$ac_objext'
  7227. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7228. (eval $ac_try) 2>&5
  7229. ac_status=$?
  7230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7231. (exit $ac_status); }; }; then
  7232. ac_hi=-1 ac_mid=-1
  7233. while :; do
  7234. cat >conftest.$ac_ext <<_ACEOF
  7235. /* confdefs.h. */
  7236. _ACEOF
  7237. cat confdefs.h >>conftest.$ac_ext
  7238. cat >>conftest.$ac_ext <<_ACEOF
  7239. /* end confdefs.h. */
  7240. $ac_includes_default
  7241. int
  7242. main ()
  7243. {
  7244. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  7245. test_array [0] = 0
  7246. ;
  7247. return 0;
  7248. }
  7249. _ACEOF
  7250. rm -f conftest.$ac_objext
  7251. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7252. (eval $ac_compile) 2>conftest.er1
  7253. ac_status=$?
  7254. grep -v '^ *+' conftest.er1 >conftest.err
  7255. rm -f conftest.er1
  7256. cat conftest.err >&5
  7257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7258. (exit $ac_status); } &&
  7259. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7260. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7261. (eval $ac_try) 2>&5
  7262. ac_status=$?
  7263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7264. (exit $ac_status); }; } &&
  7265. { ac_try='test -s conftest.$ac_objext'
  7266. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7267. (eval $ac_try) 2>&5
  7268. ac_status=$?
  7269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7270. (exit $ac_status); }; }; then
  7271. ac_lo=$ac_mid; break
  7272. else
  7273. echo "$as_me: failed program was:" >&5
  7274. sed 's/^/| /' conftest.$ac_ext >&5
  7275. ac_hi=`expr '(' $ac_mid ')' - 1`
  7276. if test $ac_mid -le $ac_hi; then
  7277. ac_lo= ac_hi=
  7278. break
  7279. fi
  7280. ac_mid=`expr 2 '*' $ac_mid`
  7281. fi
  7282. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7283. done
  7284. else
  7285. echo "$as_me: failed program was:" >&5
  7286. sed 's/^/| /' conftest.$ac_ext >&5
  7287. ac_lo= ac_hi=
  7288. fi
  7289. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7290. fi
  7291. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7292. # Binary search between lo and hi bounds.
  7293. while test "x$ac_lo" != "x$ac_hi"; do
  7294. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7295. cat >conftest.$ac_ext <<_ACEOF
  7296. /* confdefs.h. */
  7297. _ACEOF
  7298. cat confdefs.h >>conftest.$ac_ext
  7299. cat >>conftest.$ac_ext <<_ACEOF
  7300. /* end confdefs.h. */
  7301. $ac_includes_default
  7302. int
  7303. main ()
  7304. {
  7305. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  7306. test_array [0] = 0
  7307. ;
  7308. return 0;
  7309. }
  7310. _ACEOF
  7311. rm -f conftest.$ac_objext
  7312. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7313. (eval $ac_compile) 2>conftest.er1
  7314. ac_status=$?
  7315. grep -v '^ *+' conftest.er1 >conftest.err
  7316. rm -f conftest.er1
  7317. cat conftest.err >&5
  7318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7319. (exit $ac_status); } &&
  7320. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7321. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7322. (eval $ac_try) 2>&5
  7323. ac_status=$?
  7324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7325. (exit $ac_status); }; } &&
  7326. { ac_try='test -s conftest.$ac_objext'
  7327. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7328. (eval $ac_try) 2>&5
  7329. ac_status=$?
  7330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7331. (exit $ac_status); }; }; then
  7332. ac_hi=$ac_mid
  7333. else
  7334. echo "$as_me: failed program was:" >&5
  7335. sed 's/^/| /' conftest.$ac_ext >&5
  7336. ac_lo=`expr '(' $ac_mid ')' + 1`
  7337. fi
  7338. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7339. done
  7340. case $ac_lo in
  7341. ?*) ac_cv_sizeof_long=$ac_lo;;
  7342. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  7343. See \`config.log' for more details." >&5
  7344. echo "$as_me: error: cannot compute sizeof (long), 77
  7345. See \`config.log' for more details." >&2;}
  7346. { (exit 1); exit 1; }; } ;;
  7347. esac
  7348. else
  7349. if test "$cross_compiling" = yes; then
  7350. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7351. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7352. { (exit 1); exit 1; }; }
  7353. else
  7354. cat >conftest.$ac_ext <<_ACEOF
  7355. /* confdefs.h. */
  7356. _ACEOF
  7357. cat confdefs.h >>conftest.$ac_ext
  7358. cat >>conftest.$ac_ext <<_ACEOF
  7359. /* end confdefs.h. */
  7360. $ac_includes_default
  7361. long longval () { return (long) (sizeof (long)); }
  7362. unsigned long ulongval () { return (long) (sizeof (long)); }
  7363. #include <stdio.h>
  7364. #include <stdlib.h>
  7365. int
  7366. main ()
  7367. {
  7368. FILE *f = fopen ("conftest.val", "w");
  7369. if (! f)
  7370. exit (1);
  7371. if (((long) (sizeof (long))) < 0)
  7372. {
  7373. long i = longval ();
  7374. if (i != ((long) (sizeof (long))))
  7375. exit (1);
  7376. fprintf (f, "%ld\n", i);
  7377. }
  7378. else
  7379. {
  7380. unsigned long i = ulongval ();
  7381. if (i != ((long) (sizeof (long))))
  7382. exit (1);
  7383. fprintf (f, "%lu\n", i);
  7384. }
  7385. exit (ferror (f) || fclose (f) != 0);
  7386. ;
  7387. return 0;
  7388. }
  7389. _ACEOF
  7390. rm -f conftest$ac_exeext
  7391. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7392. (eval $ac_link) 2>&5
  7393. ac_status=$?
  7394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7395. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7396. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7397. (eval $ac_try) 2>&5
  7398. ac_status=$?
  7399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7400. (exit $ac_status); }; }; then
  7401. ac_cv_sizeof_long=`cat conftest.val`
  7402. else
  7403. echo "$as_me: program exited with status $ac_status" >&5
  7404. echo "$as_me: failed program was:" >&5
  7405. sed 's/^/| /' conftest.$ac_ext >&5
  7406. ( exit $ac_status )
  7407. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  7408. See \`config.log' for more details." >&5
  7409. echo "$as_me: error: cannot compute sizeof (long), 77
  7410. See \`config.log' for more details." >&2;}
  7411. { (exit 1); exit 1; }; }
  7412. fi
  7413. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7414. fi
  7415. fi
  7416. rm -f conftest.val
  7417. else
  7418. ac_cv_sizeof_long=0
  7419. fi
  7420. fi
  7421. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  7422. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  7423. cat >>confdefs.h <<_ACEOF
  7424. #define SIZEOF_LONG $ac_cv_sizeof_long
  7425. _ACEOF
  7426. echo "$as_me:$LINENO: checking for int" >&5
  7427. echo $ECHO_N "checking for int... $ECHO_C" >&6
  7428. if test "${ac_cv_type_int+set}" = set; then
  7429. echo $ECHO_N "(cached) $ECHO_C" >&6
  7430. else
  7431. cat >conftest.$ac_ext <<_ACEOF
  7432. /* confdefs.h. */
  7433. _ACEOF
  7434. cat confdefs.h >>conftest.$ac_ext
  7435. cat >>conftest.$ac_ext <<_ACEOF
  7436. /* end confdefs.h. */
  7437. $ac_includes_default
  7438. int
  7439. main ()
  7440. {
  7441. if ((int *) 0)
  7442. return 0;
  7443. if (sizeof (int))
  7444. return 0;
  7445. ;
  7446. return 0;
  7447. }
  7448. _ACEOF
  7449. rm -f conftest.$ac_objext
  7450. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7451. (eval $ac_compile) 2>conftest.er1
  7452. ac_status=$?
  7453. grep -v '^ *+' conftest.er1 >conftest.err
  7454. rm -f conftest.er1
  7455. cat conftest.err >&5
  7456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7457. (exit $ac_status); } &&
  7458. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7459. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7460. (eval $ac_try) 2>&5
  7461. ac_status=$?
  7462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7463. (exit $ac_status); }; } &&
  7464. { ac_try='test -s conftest.$ac_objext'
  7465. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7466. (eval $ac_try) 2>&5
  7467. ac_status=$?
  7468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7469. (exit $ac_status); }; }; then
  7470. ac_cv_type_int=yes
  7471. else
  7472. echo "$as_me: failed program was:" >&5
  7473. sed 's/^/| /' conftest.$ac_ext >&5
  7474. ac_cv_type_int=no
  7475. fi
  7476. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7477. fi
  7478. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  7479. echo "${ECHO_T}$ac_cv_type_int" >&6
  7480. echo "$as_me:$LINENO: checking size of int" >&5
  7481. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  7482. if test "${ac_cv_sizeof_int+set}" = set; then
  7483. echo $ECHO_N "(cached) $ECHO_C" >&6
  7484. else
  7485. if test "$ac_cv_type_int" = yes; then
  7486. # The cast to unsigned long works around a bug in the HP C Compiler
  7487. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7488. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7489. # This bug is HP SR number 8606223364.
  7490. if test "$cross_compiling" = yes; then
  7491. # Depending upon the size, compute the lo and hi bounds.
  7492. cat >conftest.$ac_ext <<_ACEOF
  7493. /* confdefs.h. */
  7494. _ACEOF
  7495. cat confdefs.h >>conftest.$ac_ext
  7496. cat >>conftest.$ac_ext <<_ACEOF
  7497. /* end confdefs.h. */
  7498. $ac_includes_default
  7499. int
  7500. main ()
  7501. {
  7502. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  7503. test_array [0] = 0
  7504. ;
  7505. return 0;
  7506. }
  7507. _ACEOF
  7508. rm -f conftest.$ac_objext
  7509. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7510. (eval $ac_compile) 2>conftest.er1
  7511. ac_status=$?
  7512. grep -v '^ *+' conftest.er1 >conftest.err
  7513. rm -f conftest.er1
  7514. cat conftest.err >&5
  7515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7516. (exit $ac_status); } &&
  7517. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7518. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7519. (eval $ac_try) 2>&5
  7520. ac_status=$?
  7521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7522. (exit $ac_status); }; } &&
  7523. { ac_try='test -s conftest.$ac_objext'
  7524. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7525. (eval $ac_try) 2>&5
  7526. ac_status=$?
  7527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7528. (exit $ac_status); }; }; then
  7529. ac_lo=0 ac_mid=0
  7530. while :; do
  7531. cat >conftest.$ac_ext <<_ACEOF
  7532. /* confdefs.h. */
  7533. _ACEOF
  7534. cat confdefs.h >>conftest.$ac_ext
  7535. cat >>conftest.$ac_ext <<_ACEOF
  7536. /* end confdefs.h. */
  7537. $ac_includes_default
  7538. int
  7539. main ()
  7540. {
  7541. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  7542. test_array [0] = 0
  7543. ;
  7544. return 0;
  7545. }
  7546. _ACEOF
  7547. rm -f conftest.$ac_objext
  7548. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7549. (eval $ac_compile) 2>conftest.er1
  7550. ac_status=$?
  7551. grep -v '^ *+' conftest.er1 >conftest.err
  7552. rm -f conftest.er1
  7553. cat conftest.err >&5
  7554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7555. (exit $ac_status); } &&
  7556. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7557. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7558. (eval $ac_try) 2>&5
  7559. ac_status=$?
  7560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7561. (exit $ac_status); }; } &&
  7562. { ac_try='test -s conftest.$ac_objext'
  7563. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7564. (eval $ac_try) 2>&5
  7565. ac_status=$?
  7566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7567. (exit $ac_status); }; }; then
  7568. ac_hi=$ac_mid; break
  7569. else
  7570. echo "$as_me: failed program was:" >&5
  7571. sed 's/^/| /' conftest.$ac_ext >&5
  7572. ac_lo=`expr $ac_mid + 1`
  7573. if test $ac_lo -le $ac_mid; then
  7574. ac_lo= ac_hi=
  7575. break
  7576. fi
  7577. ac_mid=`expr 2 '*' $ac_mid + 1`
  7578. fi
  7579. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7580. done
  7581. else
  7582. echo "$as_me: failed program was:" >&5
  7583. sed 's/^/| /' conftest.$ac_ext >&5
  7584. cat >conftest.$ac_ext <<_ACEOF
  7585. /* confdefs.h. */
  7586. _ACEOF
  7587. cat confdefs.h >>conftest.$ac_ext
  7588. cat >>conftest.$ac_ext <<_ACEOF
  7589. /* end confdefs.h. */
  7590. $ac_includes_default
  7591. int
  7592. main ()
  7593. {
  7594. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  7595. test_array [0] = 0
  7596. ;
  7597. return 0;
  7598. }
  7599. _ACEOF
  7600. rm -f conftest.$ac_objext
  7601. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7602. (eval $ac_compile) 2>conftest.er1
  7603. ac_status=$?
  7604. grep -v '^ *+' conftest.er1 >conftest.err
  7605. rm -f conftest.er1
  7606. cat conftest.err >&5
  7607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7608. (exit $ac_status); } &&
  7609. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7610. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7611. (eval $ac_try) 2>&5
  7612. ac_status=$?
  7613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7614. (exit $ac_status); }; } &&
  7615. { ac_try='test -s conftest.$ac_objext'
  7616. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7617. (eval $ac_try) 2>&5
  7618. ac_status=$?
  7619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7620. (exit $ac_status); }; }; then
  7621. ac_hi=-1 ac_mid=-1
  7622. while :; do
  7623. cat >conftest.$ac_ext <<_ACEOF
  7624. /* confdefs.h. */
  7625. _ACEOF
  7626. cat confdefs.h >>conftest.$ac_ext
  7627. cat >>conftest.$ac_ext <<_ACEOF
  7628. /* end confdefs.h. */
  7629. $ac_includes_default
  7630. int
  7631. main ()
  7632. {
  7633. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  7634. test_array [0] = 0
  7635. ;
  7636. return 0;
  7637. }
  7638. _ACEOF
  7639. rm -f conftest.$ac_objext
  7640. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7641. (eval $ac_compile) 2>conftest.er1
  7642. ac_status=$?
  7643. grep -v '^ *+' conftest.er1 >conftest.err
  7644. rm -f conftest.er1
  7645. cat conftest.err >&5
  7646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7647. (exit $ac_status); } &&
  7648. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7649. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7650. (eval $ac_try) 2>&5
  7651. ac_status=$?
  7652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7653. (exit $ac_status); }; } &&
  7654. { ac_try='test -s conftest.$ac_objext'
  7655. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7656. (eval $ac_try) 2>&5
  7657. ac_status=$?
  7658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7659. (exit $ac_status); }; }; then
  7660. ac_lo=$ac_mid; break
  7661. else
  7662. echo "$as_me: failed program was:" >&5
  7663. sed 's/^/| /' conftest.$ac_ext >&5
  7664. ac_hi=`expr '(' $ac_mid ')' - 1`
  7665. if test $ac_mid -le $ac_hi; then
  7666. ac_lo= ac_hi=
  7667. break
  7668. fi
  7669. ac_mid=`expr 2 '*' $ac_mid`
  7670. fi
  7671. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7672. done
  7673. else
  7674. echo "$as_me: failed program was:" >&5
  7675. sed 's/^/| /' conftest.$ac_ext >&5
  7676. ac_lo= ac_hi=
  7677. fi
  7678. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7679. fi
  7680. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7681. # Binary search between lo and hi bounds.
  7682. while test "x$ac_lo" != "x$ac_hi"; do
  7683. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7684. cat >conftest.$ac_ext <<_ACEOF
  7685. /* confdefs.h. */
  7686. _ACEOF
  7687. cat confdefs.h >>conftest.$ac_ext
  7688. cat >>conftest.$ac_ext <<_ACEOF
  7689. /* end confdefs.h. */
  7690. $ac_includes_default
  7691. int
  7692. main ()
  7693. {
  7694. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  7695. test_array [0] = 0
  7696. ;
  7697. return 0;
  7698. }
  7699. _ACEOF
  7700. rm -f conftest.$ac_objext
  7701. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7702. (eval $ac_compile) 2>conftest.er1
  7703. ac_status=$?
  7704. grep -v '^ *+' conftest.er1 >conftest.err
  7705. rm -f conftest.er1
  7706. cat conftest.err >&5
  7707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7708. (exit $ac_status); } &&
  7709. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7710. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7711. (eval $ac_try) 2>&5
  7712. ac_status=$?
  7713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7714. (exit $ac_status); }; } &&
  7715. { ac_try='test -s conftest.$ac_objext'
  7716. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7717. (eval $ac_try) 2>&5
  7718. ac_status=$?
  7719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7720. (exit $ac_status); }; }; then
  7721. ac_hi=$ac_mid
  7722. else
  7723. echo "$as_me: failed program was:" >&5
  7724. sed 's/^/| /' conftest.$ac_ext >&5
  7725. ac_lo=`expr '(' $ac_mid ')' + 1`
  7726. fi
  7727. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7728. done
  7729. case $ac_lo in
  7730. ?*) ac_cv_sizeof_int=$ac_lo;;
  7731. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  7732. See \`config.log' for more details." >&5
  7733. echo "$as_me: error: cannot compute sizeof (int), 77
  7734. See \`config.log' for more details." >&2;}
  7735. { (exit 1); exit 1; }; } ;;
  7736. esac
  7737. else
  7738. if test "$cross_compiling" = yes; then
  7739. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7740. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7741. { (exit 1); exit 1; }; }
  7742. else
  7743. cat >conftest.$ac_ext <<_ACEOF
  7744. /* confdefs.h. */
  7745. _ACEOF
  7746. cat confdefs.h >>conftest.$ac_ext
  7747. cat >>conftest.$ac_ext <<_ACEOF
  7748. /* end confdefs.h. */
  7749. $ac_includes_default
  7750. long longval () { return (long) (sizeof (int)); }
  7751. unsigned long ulongval () { return (long) (sizeof (int)); }
  7752. #include <stdio.h>
  7753. #include <stdlib.h>
  7754. int
  7755. main ()
  7756. {
  7757. FILE *f = fopen ("conftest.val", "w");
  7758. if (! f)
  7759. exit (1);
  7760. if (((long) (sizeof (int))) < 0)
  7761. {
  7762. long i = longval ();
  7763. if (i != ((long) (sizeof (int))))
  7764. exit (1);
  7765. fprintf (f, "%ld\n", i);
  7766. }
  7767. else
  7768. {
  7769. unsigned long i = ulongval ();
  7770. if (i != ((long) (sizeof (int))))
  7771. exit (1);
  7772. fprintf (f, "%lu\n", i);
  7773. }
  7774. exit (ferror (f) || fclose (f) != 0);
  7775. ;
  7776. return 0;
  7777. }
  7778. _ACEOF
  7779. rm -f conftest$ac_exeext
  7780. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7781. (eval $ac_link) 2>&5
  7782. ac_status=$?
  7783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7784. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7785. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7786. (eval $ac_try) 2>&5
  7787. ac_status=$?
  7788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7789. (exit $ac_status); }; }; then
  7790. ac_cv_sizeof_int=`cat conftest.val`
  7791. else
  7792. echo "$as_me: program exited with status $ac_status" >&5
  7793. echo "$as_me: failed program was:" >&5
  7794. sed 's/^/| /' conftest.$ac_ext >&5
  7795. ( exit $ac_status )
  7796. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  7797. See \`config.log' for more details." >&5
  7798. echo "$as_me: error: cannot compute sizeof (int), 77
  7799. See \`config.log' for more details." >&2;}
  7800. { (exit 1); exit 1; }; }
  7801. fi
  7802. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7803. fi
  7804. fi
  7805. rm -f conftest.val
  7806. else
  7807. ac_cv_sizeof_int=0
  7808. fi
  7809. fi
  7810. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  7811. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  7812. cat >>confdefs.h <<_ACEOF
  7813. #define SIZEOF_INT $ac_cv_sizeof_int
  7814. _ACEOF
  7815. #checkpoint
  7816. cat >confcache <<\_ACEOF
  7817. # This file is a shell script that caches the results of configure
  7818. # tests run on this system so they can be shared between configure
  7819. # scripts and configure runs, see configure's option --config-cache.
  7820. # It is not useful on other systems. If it contains results you don't
  7821. # want to keep, you may remove or edit it.
  7822. #
  7823. # config.status only pays attention to the cache file if you give it
  7824. # the --recheck option to rerun configure.
  7825. #
  7826. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7827. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7828. # following values.
  7829. _ACEOF
  7830. # The following way of writing the cache mishandles newlines in values,
  7831. # but we know of no workaround that is simple, portable, and efficient.
  7832. # So, don't put newlines in cache variables' values.
  7833. # Ultrix sh set writes to stderr and can't be redirected directly,
  7834. # and sets the high bit in the cache file unless we assign to the vars.
  7835. {
  7836. (set) 2>&1 |
  7837. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7838. *ac_space=\ *)
  7839. # `set' does not quote correctly, so add quotes (double-quote
  7840. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7841. sed -n \
  7842. "s/'/'\\\\''/g;
  7843. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7844. ;;
  7845. *)
  7846. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7847. sed -n \
  7848. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7849. ;;
  7850. esac;
  7851. } |
  7852. sed '
  7853. t clear
  7854. : clear
  7855. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7856. t end
  7857. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7858. : end' >>confcache
  7859. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7860. if test -w $cache_file; then
  7861. test "x$cache_file" != "x/dev/null"
  7862. cat confcache >$cache_file
  7863. else
  7864. echo "not updating unwritable cache $cache_file"
  7865. fi
  7866. fi
  7867. rm -f confcache
  7868. echo "$as_me:$LINENO: checking for working volatile" >&5
  7869. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  7870. if test "${ac_cv_c_volatile+set}" = set; then
  7871. echo $ECHO_N "(cached) $ECHO_C" >&6
  7872. else
  7873. cat >conftest.$ac_ext <<_ACEOF
  7874. /* confdefs.h. */
  7875. _ACEOF
  7876. cat confdefs.h >>conftest.$ac_ext
  7877. cat >>conftest.$ac_ext <<_ACEOF
  7878. /* end confdefs.h. */
  7879. int
  7880. main ()
  7881. {
  7882. volatile int x;
  7883. int * volatile y;
  7884. ;
  7885. return 0;
  7886. }
  7887. _ACEOF
  7888. rm -f conftest.$ac_objext
  7889. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7890. (eval $ac_compile) 2>conftest.er1
  7891. ac_status=$?
  7892. grep -v '^ *+' conftest.er1 >conftest.err
  7893. rm -f conftest.er1
  7894. cat conftest.err >&5
  7895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7896. (exit $ac_status); } &&
  7897. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7898. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7899. (eval $ac_try) 2>&5
  7900. ac_status=$?
  7901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7902. (exit $ac_status); }; } &&
  7903. { ac_try='test -s conftest.$ac_objext'
  7904. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7905. (eval $ac_try) 2>&5
  7906. ac_status=$?
  7907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7908. (exit $ac_status); }; }; then
  7909. ac_cv_c_volatile=yes
  7910. else
  7911. echo "$as_me: failed program was:" >&5
  7912. sed 's/^/| /' conftest.$ac_ext >&5
  7913. ac_cv_c_volatile=no
  7914. fi
  7915. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7916. fi
  7917. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  7918. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  7919. if test $ac_cv_c_volatile = no; then
  7920. cat >>confdefs.h <<\_ACEOF
  7921. #define volatile
  7922. _ACEOF
  7923. fi
  7924. if test $ac_cv_c_compiler_gnu = yes; then
  7925. echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  7926. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  7927. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  7928. echo $ECHO_N "(cached) $ECHO_C" >&6
  7929. else
  7930. ac_pattern="Autoconf.*'x'"
  7931. cat >conftest.$ac_ext <<_ACEOF
  7932. /* confdefs.h. */
  7933. _ACEOF
  7934. cat confdefs.h >>conftest.$ac_ext
  7935. cat >>conftest.$ac_ext <<_ACEOF
  7936. /* end confdefs.h. */
  7937. #include <sgtty.h>
  7938. Autoconf TIOCGETP
  7939. _ACEOF
  7940. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7941. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7942. ac_cv_prog_gcc_traditional=yes
  7943. else
  7944. ac_cv_prog_gcc_traditional=no
  7945. fi
  7946. rm -f conftest*
  7947. if test $ac_cv_prog_gcc_traditional = no; then
  7948. cat >conftest.$ac_ext <<_ACEOF
  7949. /* confdefs.h. */
  7950. _ACEOF
  7951. cat confdefs.h >>conftest.$ac_ext
  7952. cat >>conftest.$ac_ext <<_ACEOF
  7953. /* end confdefs.h. */
  7954. #include <termio.h>
  7955. Autoconf TCGETA
  7956. _ACEOF
  7957. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7958. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7959. ac_cv_prog_gcc_traditional=yes
  7960. fi
  7961. rm -f conftest*
  7962. fi
  7963. fi
  7964. echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  7965. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  7966. if test $ac_cv_prog_gcc_traditional = yes; then
  7967. CC="$CC -traditional"
  7968. fi
  7969. fi
  7970. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7971. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7972. if test "${ac_cv_struct_tm+set}" = set; then
  7973. echo $ECHO_N "(cached) $ECHO_C" >&6
  7974. else
  7975. cat >conftest.$ac_ext <<_ACEOF
  7976. /* confdefs.h. */
  7977. _ACEOF
  7978. cat confdefs.h >>conftest.$ac_ext
  7979. cat >>conftest.$ac_ext <<_ACEOF
  7980. /* end confdefs.h. */
  7981. #include <sys/types.h>
  7982. #include <time.h>
  7983. int
  7984. main ()
  7985. {
  7986. struct tm *tp; tp->tm_sec;
  7987. ;
  7988. return 0;
  7989. }
  7990. _ACEOF
  7991. rm -f conftest.$ac_objext
  7992. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7993. (eval $ac_compile) 2>conftest.er1
  7994. ac_status=$?
  7995. grep -v '^ *+' conftest.er1 >conftest.err
  7996. rm -f conftest.er1
  7997. cat conftest.err >&5
  7998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7999. (exit $ac_status); } &&
  8000. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8001. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8002. (eval $ac_try) 2>&5
  8003. ac_status=$?
  8004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8005. (exit $ac_status); }; } &&
  8006. { ac_try='test -s conftest.$ac_objext'
  8007. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8008. (eval $ac_try) 2>&5
  8009. ac_status=$?
  8010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8011. (exit $ac_status); }; }; then
  8012. ac_cv_struct_tm=time.h
  8013. else
  8014. echo "$as_me: failed program was:" >&5
  8015. sed 's/^/| /' conftest.$ac_ext >&5
  8016. ac_cv_struct_tm=sys/time.h
  8017. fi
  8018. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8019. fi
  8020. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8021. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  8022. if test $ac_cv_struct_tm = sys/time.h; then
  8023. cat >>confdefs.h <<\_ACEOF
  8024. #define TM_IN_SYS_TIME 1
  8025. _ACEOF
  8026. fi
  8027. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  8028. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  8029. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  8030. echo $ECHO_N "(cached) $ECHO_C" >&6
  8031. else
  8032. cat >conftest.$ac_ext <<_ACEOF
  8033. /* confdefs.h. */
  8034. _ACEOF
  8035. cat confdefs.h >>conftest.$ac_ext
  8036. cat >>conftest.$ac_ext <<_ACEOF
  8037. /* end confdefs.h. */
  8038. #include <sys/types.h>
  8039. #include <$ac_cv_struct_tm>
  8040. int
  8041. main ()
  8042. {
  8043. static struct tm ac_aggr;
  8044. if (ac_aggr.tm_zone)
  8045. return 0;
  8046. ;
  8047. return 0;
  8048. }
  8049. _ACEOF
  8050. rm -f conftest.$ac_objext
  8051. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8052. (eval $ac_compile) 2>conftest.er1
  8053. ac_status=$?
  8054. grep -v '^ *+' conftest.er1 >conftest.err
  8055. rm -f conftest.er1
  8056. cat conftest.err >&5
  8057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8058. (exit $ac_status); } &&
  8059. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8060. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8061. (eval $ac_try) 2>&5
  8062. ac_status=$?
  8063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8064. (exit $ac_status); }; } &&
  8065. { ac_try='test -s conftest.$ac_objext'
  8066. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8067. (eval $ac_try) 2>&5
  8068. ac_status=$?
  8069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8070. (exit $ac_status); }; }; then
  8071. ac_cv_member_struct_tm_tm_zone=yes
  8072. else
  8073. echo "$as_me: failed program was:" >&5
  8074. sed 's/^/| /' conftest.$ac_ext >&5
  8075. cat >conftest.$ac_ext <<_ACEOF
  8076. /* confdefs.h. */
  8077. _ACEOF
  8078. cat confdefs.h >>conftest.$ac_ext
  8079. cat >>conftest.$ac_ext <<_ACEOF
  8080. /* end confdefs.h. */
  8081. #include <sys/types.h>
  8082. #include <$ac_cv_struct_tm>
  8083. int
  8084. main ()
  8085. {
  8086. static struct tm ac_aggr;
  8087. if (sizeof ac_aggr.tm_zone)
  8088. return 0;
  8089. ;
  8090. return 0;
  8091. }
  8092. _ACEOF
  8093. rm -f conftest.$ac_objext
  8094. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8095. (eval $ac_compile) 2>conftest.er1
  8096. ac_status=$?
  8097. grep -v '^ *+' conftest.er1 >conftest.err
  8098. rm -f conftest.er1
  8099. cat conftest.err >&5
  8100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8101. (exit $ac_status); } &&
  8102. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8103. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8104. (eval $ac_try) 2>&5
  8105. ac_status=$?
  8106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8107. (exit $ac_status); }; } &&
  8108. { ac_try='test -s conftest.$ac_objext'
  8109. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8110. (eval $ac_try) 2>&5
  8111. ac_status=$?
  8112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8113. (exit $ac_status); }; }; then
  8114. ac_cv_member_struct_tm_tm_zone=yes
  8115. else
  8116. echo "$as_me: failed program was:" >&5
  8117. sed 's/^/| /' conftest.$ac_ext >&5
  8118. ac_cv_member_struct_tm_tm_zone=no
  8119. fi
  8120. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8121. fi
  8122. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8123. fi
  8124. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  8125. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  8126. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  8127. cat >>confdefs.h <<_ACEOF
  8128. #define HAVE_STRUCT_TM_TM_ZONE 1
  8129. _ACEOF
  8130. fi
  8131. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  8132. cat >>confdefs.h <<\_ACEOF
  8133. #define HAVE_TM_ZONE 1
  8134. _ACEOF
  8135. else
  8136. echo "$as_me:$LINENO: checking for tzname" >&5
  8137. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  8138. if test "${ac_cv_var_tzname+set}" = set; then
  8139. echo $ECHO_N "(cached) $ECHO_C" >&6
  8140. else
  8141. cat >conftest.$ac_ext <<_ACEOF
  8142. /* confdefs.h. */
  8143. _ACEOF
  8144. cat confdefs.h >>conftest.$ac_ext
  8145. cat >>conftest.$ac_ext <<_ACEOF
  8146. /* end confdefs.h. */
  8147. #include <time.h>
  8148. #ifndef tzname /* For SGI. */
  8149. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  8150. #endif
  8151. int
  8152. main ()
  8153. {
  8154. atoi(*tzname);
  8155. ;
  8156. return 0;
  8157. }
  8158. _ACEOF
  8159. rm -f conftest.$ac_objext conftest$ac_exeext
  8160. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8161. (eval $ac_link) 2>conftest.er1
  8162. ac_status=$?
  8163. grep -v '^ *+' conftest.er1 >conftest.err
  8164. rm -f conftest.er1
  8165. cat conftest.err >&5
  8166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8167. (exit $ac_status); } &&
  8168. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8169. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8170. (eval $ac_try) 2>&5
  8171. ac_status=$?
  8172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8173. (exit $ac_status); }; } &&
  8174. { ac_try='test -s conftest$ac_exeext'
  8175. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8176. (eval $ac_try) 2>&5
  8177. ac_status=$?
  8178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8179. (exit $ac_status); }; }; then
  8180. ac_cv_var_tzname=yes
  8181. else
  8182. echo "$as_me: failed program was:" >&5
  8183. sed 's/^/| /' conftest.$ac_ext >&5
  8184. ac_cv_var_tzname=no
  8185. fi
  8186. rm -f conftest.err conftest.$ac_objext \
  8187. conftest$ac_exeext conftest.$ac_ext
  8188. fi
  8189. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  8190. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  8191. if test $ac_cv_var_tzname = yes; then
  8192. cat >>confdefs.h <<\_ACEOF
  8193. #define HAVE_TZNAME 1
  8194. _ACEOF
  8195. fi
  8196. fi
  8197. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8198. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  8199. if test "${ac_cv_struct_tm+set}" = set; then
  8200. echo $ECHO_N "(cached) $ECHO_C" >&6
  8201. else
  8202. cat >conftest.$ac_ext <<_ACEOF
  8203. /* confdefs.h. */
  8204. _ACEOF
  8205. cat confdefs.h >>conftest.$ac_ext
  8206. cat >>conftest.$ac_ext <<_ACEOF
  8207. /* end confdefs.h. */
  8208. #include <sys/types.h>
  8209. #include <time.h>
  8210. int
  8211. main ()
  8212. {
  8213. struct tm *tp; tp->tm_sec;
  8214. ;
  8215. return 0;
  8216. }
  8217. _ACEOF
  8218. rm -f conftest.$ac_objext
  8219. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8220. (eval $ac_compile) 2>conftest.er1
  8221. ac_status=$?
  8222. grep -v '^ *+' conftest.er1 >conftest.err
  8223. rm -f conftest.er1
  8224. cat conftest.err >&5
  8225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8226. (exit $ac_status); } &&
  8227. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8228. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8229. (eval $ac_try) 2>&5
  8230. ac_status=$?
  8231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8232. (exit $ac_status); }; } &&
  8233. { ac_try='test -s conftest.$ac_objext'
  8234. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8235. (eval $ac_try) 2>&5
  8236. ac_status=$?
  8237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8238. (exit $ac_status); }; }; then
  8239. ac_cv_struct_tm=time.h
  8240. else
  8241. echo "$as_me: failed program was:" >&5
  8242. sed 's/^/| /' conftest.$ac_ext >&5
  8243. ac_cv_struct_tm=sys/time.h
  8244. fi
  8245. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8246. fi
  8247. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8248. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  8249. if test $ac_cv_struct_tm = sys/time.h; then
  8250. cat >>confdefs.h <<\_ACEOF
  8251. #define TM_IN_SYS_TIME 1
  8252. _ACEOF
  8253. fi
  8254. #checkpoint
  8255. cat >confcache <<\_ACEOF
  8256. # This file is a shell script that caches the results of configure
  8257. # tests run on this system so they can be shared between configure
  8258. # scripts and configure runs, see configure's option --config-cache.
  8259. # It is not useful on other systems. If it contains results you don't
  8260. # want to keep, you may remove or edit it.
  8261. #
  8262. # config.status only pays attention to the cache file if you give it
  8263. # the --recheck option to rerun configure.
  8264. #
  8265. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8266. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8267. # following values.
  8268. _ACEOF
  8269. # The following way of writing the cache mishandles newlines in values,
  8270. # but we know of no workaround that is simple, portable, and efficient.
  8271. # So, don't put newlines in cache variables' values.
  8272. # Ultrix sh set writes to stderr and can't be redirected directly,
  8273. # and sets the high bit in the cache file unless we assign to the vars.
  8274. {
  8275. (set) 2>&1 |
  8276. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8277. *ac_space=\ *)
  8278. # `set' does not quote correctly, so add quotes (double-quote
  8279. # substitution turns \\\\ into \\, and sed turns \\ into \).
  8280. sed -n \
  8281. "s/'/'\\\\''/g;
  8282. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8283. ;;
  8284. *)
  8285. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8286. sed -n \
  8287. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8288. ;;
  8289. esac;
  8290. } |
  8291. sed '
  8292. t clear
  8293. : clear
  8294. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8295. t end
  8296. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8297. : end' >>confcache
  8298. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  8299. if test -w $cache_file; then
  8300. test "x$cache_file" != "x/dev/null"
  8301. cat confcache >$cache_file
  8302. else
  8303. echo "not updating unwritable cache $cache_file"
  8304. fi
  8305. fi
  8306. rm -f confcache
  8307. # Check for IPv6 support
  8308. #EGG_IPV6_SUPPORTED
  8309. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  8310. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  8311. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  8312. if test "${enable_ipv6+set}" = set; then
  8313. enableval="$enable_ipv6"
  8314. ac_cv_dipv6="yes"
  8315. echo "$as_me:$LINENO: result: yes" >&5
  8316. echo "${ECHO_T}yes" >&6
  8317. else
  8318. ac_cv_dipv6="no"
  8319. if test "$egg_cv_ipv6_supported" = "no"; then
  8320. ac_cv_dipv6="no"
  8321. fi
  8322. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  8323. echo "${ECHO_T}$ac_cv_dipv6" >&6
  8324. fi;
  8325. if test "$ac_cv_dipv6" = "no"; then
  8326. cat >>confdefs.h <<\_ACEOF
  8327. #define USE_IPV6 1
  8328. _ACEOF
  8329. fi
  8330. echo "$as_me:$LINENO: checking for socklen_t" >&5
  8331. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  8332. if test "${egg_cv_socklen_t+set}" = set; then
  8333. echo $ECHO_N "(cached) $ECHO_C" >&6
  8334. else
  8335. if test "$cross_compiling" = yes; then
  8336. egg_cv_socklen_t=no
  8337. else
  8338. cat >conftest.$ac_ext <<_ACEOF
  8339. /* confdefs.h. */
  8340. _ACEOF
  8341. cat confdefs.h >>conftest.$ac_ext
  8342. cat >>conftest.$ac_ext <<_ACEOF
  8343. /* end confdefs.h. */
  8344. #include <unistd.h>
  8345. #include <sys/types.h>
  8346. #include <sys/socket.h>
  8347. #include <netinet/in.h>
  8348. #include <arpa/inet.h>
  8349. int main()
  8350. {
  8351. socklen_t test = sizeof(int);
  8352. return 0;
  8353. }
  8354. _ACEOF
  8355. rm -f conftest$ac_exeext
  8356. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8357. (eval $ac_link) 2>&5
  8358. ac_status=$?
  8359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8360. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8361. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8362. (eval $ac_try) 2>&5
  8363. ac_status=$?
  8364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8365. (exit $ac_status); }; }; then
  8366. egg_cv_socklen_t=yes
  8367. else
  8368. echo "$as_me: program exited with status $ac_status" >&5
  8369. echo "$as_me: failed program was:" >&5
  8370. sed 's/^/| /' conftest.$ac_ext >&5
  8371. ( exit $ac_status )
  8372. egg_cv_socklen_t=no
  8373. fi
  8374. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8375. fi
  8376. fi
  8377. if test "$egg_cv_socklen_t" = "yes"; then
  8378. cat >>confdefs.h <<\_ACEOF
  8379. #define HAVE_SOCKLEN_T 1
  8380. _ACEOF
  8381. echo "$as_me:$LINENO: result: yes" >&5
  8382. echo "${ECHO_T}yes" >&6
  8383. else
  8384. echo "$as_me:$LINENO: result: no" >&5
  8385. echo "${ECHO_T}no" >&6
  8386. fi
  8387. # Checks for library functions
  8388. #checkpoint
  8389. cat >confcache <<\_ACEOF
  8390. # This file is a shell script that caches the results of configure
  8391. # tests run on this system so they can be shared between configure
  8392. # scripts and configure runs, see configure's option --config-cache.
  8393. # It is not useful on other systems. If it contains results you don't
  8394. # want to keep, you may remove or edit it.
  8395. #
  8396. # config.status only pays attention to the cache file if you give it
  8397. # the --recheck option to rerun configure.
  8398. #
  8399. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8400. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8401. # following values.
  8402. _ACEOF
  8403. # The following way of writing the cache mishandles newlines in values,
  8404. # but we know of no workaround that is simple, portable, and efficient.
  8405. # So, don't put newlines in cache variables' values.
  8406. # Ultrix sh set writes to stderr and can't be redirected directly,
  8407. # and sets the high bit in the cache file unless we assign to the vars.
  8408. {
  8409. (set) 2>&1 |
  8410. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8411. *ac_space=\ *)
  8412. # `set' does not quote correctly, so add quotes (double-quote
  8413. # substitution turns \\\\ into \\, and sed turns \\ into \).
  8414. sed -n \
  8415. "s/'/'\\\\''/g;
  8416. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8417. ;;
  8418. *)
  8419. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8420. sed -n \
  8421. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8422. ;;
  8423. esac;
  8424. } |
  8425. sed '
  8426. t clear
  8427. : clear
  8428. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8429. t end
  8430. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8431. : end' >>confcache
  8432. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  8433. if test -w $cache_file; then
  8434. test "x$cache_file" != "x/dev/null"
  8435. cat confcache >$cache_file
  8436. else
  8437. echo "not updating unwritable cache $cache_file"
  8438. fi
  8439. fi
  8440. rm -f confcache
  8441. # Checks for library functions.
  8442. for ac_header in unistd.h vfork.h
  8443. do
  8444. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8445. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8446. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8447. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8448. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8449. echo $ECHO_N "(cached) $ECHO_C" >&6
  8450. fi
  8451. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8452. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8453. else
  8454. # Is the header compilable?
  8455. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8456. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8457. cat >conftest.$ac_ext <<_ACEOF
  8458. /* confdefs.h. */
  8459. _ACEOF
  8460. cat confdefs.h >>conftest.$ac_ext
  8461. cat >>conftest.$ac_ext <<_ACEOF
  8462. /* end confdefs.h. */
  8463. $ac_includes_default
  8464. #include <$ac_header>
  8465. _ACEOF
  8466. rm -f conftest.$ac_objext
  8467. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8468. (eval $ac_compile) 2>conftest.er1
  8469. ac_status=$?
  8470. grep -v '^ *+' conftest.er1 >conftest.err
  8471. rm -f conftest.er1
  8472. cat conftest.err >&5
  8473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8474. (exit $ac_status); } &&
  8475. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8476. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8477. (eval $ac_try) 2>&5
  8478. ac_status=$?
  8479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8480. (exit $ac_status); }; } &&
  8481. { ac_try='test -s conftest.$ac_objext'
  8482. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8483. (eval $ac_try) 2>&5
  8484. ac_status=$?
  8485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8486. (exit $ac_status); }; }; then
  8487. ac_header_compiler=yes
  8488. else
  8489. echo "$as_me: failed program was:" >&5
  8490. sed 's/^/| /' conftest.$ac_ext >&5
  8491. ac_header_compiler=no
  8492. fi
  8493. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8494. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8495. echo "${ECHO_T}$ac_header_compiler" >&6
  8496. # Is the header present?
  8497. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8498. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8499. cat >conftest.$ac_ext <<_ACEOF
  8500. /* confdefs.h. */
  8501. _ACEOF
  8502. cat confdefs.h >>conftest.$ac_ext
  8503. cat >>conftest.$ac_ext <<_ACEOF
  8504. /* end confdefs.h. */
  8505. #include <$ac_header>
  8506. _ACEOF
  8507. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8508. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8509. ac_status=$?
  8510. grep -v '^ *+' conftest.er1 >conftest.err
  8511. rm -f conftest.er1
  8512. cat conftest.err >&5
  8513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8514. (exit $ac_status); } >/dev/null; then
  8515. if test -s conftest.err; then
  8516. ac_cpp_err=$ac_c_preproc_warn_flag
  8517. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8518. else
  8519. ac_cpp_err=
  8520. fi
  8521. else
  8522. ac_cpp_err=yes
  8523. fi
  8524. if test -z "$ac_cpp_err"; then
  8525. ac_header_preproc=yes
  8526. else
  8527. echo "$as_me: failed program was:" >&5
  8528. sed 's/^/| /' conftest.$ac_ext >&5
  8529. ac_header_preproc=no
  8530. fi
  8531. rm -f conftest.err conftest.$ac_ext
  8532. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8533. echo "${ECHO_T}$ac_header_preproc" >&6
  8534. # So? What about this header?
  8535. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8536. yes:no: )
  8537. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8538. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8539. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8540. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8541. ac_header_preproc=yes
  8542. ;;
  8543. no:yes:* )
  8544. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8545. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8546. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8547. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8548. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8549. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8550. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8551. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8552. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8553. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8554. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8555. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8556. (
  8557. cat <<\_ASBOX
  8558. ## ------------------------------------------ ##
  8559. ## Report this to the AC_PACKAGE_NAME lists. ##
  8560. ## ------------------------------------------ ##
  8561. _ASBOX
  8562. ) |
  8563. sed "s/^/$as_me: WARNING: /" >&2
  8564. ;;
  8565. esac
  8566. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8567. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8568. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8569. echo $ECHO_N "(cached) $ECHO_C" >&6
  8570. else
  8571. eval "$as_ac_Header=\$ac_header_preproc"
  8572. fi
  8573. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8574. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8575. fi
  8576. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8577. cat >>confdefs.h <<_ACEOF
  8578. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8579. _ACEOF
  8580. fi
  8581. done
  8582. for ac_func in fork vfork
  8583. do
  8584. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8585. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8586. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8587. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8588. echo $ECHO_N "(cached) $ECHO_C" >&6
  8589. else
  8590. cat >conftest.$ac_ext <<_ACEOF
  8591. /* confdefs.h. */
  8592. _ACEOF
  8593. cat confdefs.h >>conftest.$ac_ext
  8594. cat >>conftest.$ac_ext <<_ACEOF
  8595. /* end confdefs.h. */
  8596. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8597. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8598. #define $ac_func innocuous_$ac_func
  8599. /* System header to define __stub macros and hopefully few prototypes,
  8600. which can conflict with char $ac_func (); below.
  8601. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8602. <limits.h> exists even on freestanding compilers. */
  8603. #ifdef __STDC__
  8604. # include <limits.h>
  8605. #else
  8606. # include <assert.h>
  8607. #endif
  8608. #undef $ac_func
  8609. /* Override any gcc2 internal prototype to avoid an error. */
  8610. #ifdef __cplusplus
  8611. extern "C"
  8612. {
  8613. #endif
  8614. /* We use char because int might match the return type of a gcc2
  8615. builtin and then its argument prototype would still apply. */
  8616. char $ac_func ();
  8617. /* The GNU C library defines this for functions which it implements
  8618. to always fail with ENOSYS. Some functions are actually named
  8619. something starting with __ and the normal name is an alias. */
  8620. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8621. choke me
  8622. #else
  8623. char (*f) () = $ac_func;
  8624. #endif
  8625. #ifdef __cplusplus
  8626. }
  8627. #endif
  8628. int
  8629. main ()
  8630. {
  8631. return f != $ac_func;
  8632. ;
  8633. return 0;
  8634. }
  8635. _ACEOF
  8636. rm -f conftest.$ac_objext conftest$ac_exeext
  8637. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8638. (eval $ac_link) 2>conftest.er1
  8639. ac_status=$?
  8640. grep -v '^ *+' conftest.er1 >conftest.err
  8641. rm -f conftest.er1
  8642. cat conftest.err >&5
  8643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8644. (exit $ac_status); } &&
  8645. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8646. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8647. (eval $ac_try) 2>&5
  8648. ac_status=$?
  8649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8650. (exit $ac_status); }; } &&
  8651. { ac_try='test -s conftest$ac_exeext'
  8652. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8653. (eval $ac_try) 2>&5
  8654. ac_status=$?
  8655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8656. (exit $ac_status); }; }; then
  8657. eval "$as_ac_var=yes"
  8658. else
  8659. echo "$as_me: failed program was:" >&5
  8660. sed 's/^/| /' conftest.$ac_ext >&5
  8661. eval "$as_ac_var=no"
  8662. fi
  8663. rm -f conftest.err conftest.$ac_objext \
  8664. conftest$ac_exeext conftest.$ac_ext
  8665. fi
  8666. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8667. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8668. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8669. cat >>confdefs.h <<_ACEOF
  8670. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8671. _ACEOF
  8672. fi
  8673. done
  8674. if test "x$ac_cv_func_fork" = xyes; then
  8675. echo "$as_me:$LINENO: checking for working fork" >&5
  8676. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  8677. if test "${ac_cv_func_fork_works+set}" = set; then
  8678. echo $ECHO_N "(cached) $ECHO_C" >&6
  8679. else
  8680. if test "$cross_compiling" = yes; then
  8681. ac_cv_func_fork_works=cross
  8682. else
  8683. cat >conftest.$ac_ext <<_ACEOF
  8684. /* By Ruediger Kuhlmann. */
  8685. #include <sys/types.h>
  8686. #if HAVE_UNISTD_H
  8687. # include <unistd.h>
  8688. #endif
  8689. /* Some systems only have a dummy stub for fork() */
  8690. int main ()
  8691. {
  8692. if (fork() < 0)
  8693. exit (1);
  8694. exit (0);
  8695. }
  8696. _ACEOF
  8697. rm -f conftest$ac_exeext
  8698. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8699. (eval $ac_link) 2>&5
  8700. ac_status=$?
  8701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8702. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8703. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8704. (eval $ac_try) 2>&5
  8705. ac_status=$?
  8706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8707. (exit $ac_status); }; }; then
  8708. ac_cv_func_fork_works=yes
  8709. else
  8710. echo "$as_me: program exited with status $ac_status" >&5
  8711. echo "$as_me: failed program was:" >&5
  8712. sed 's/^/| /' conftest.$ac_ext >&5
  8713. ( exit $ac_status )
  8714. ac_cv_func_fork_works=no
  8715. fi
  8716. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8717. fi
  8718. fi
  8719. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  8720. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  8721. else
  8722. ac_cv_func_fork_works=$ac_cv_func_fork
  8723. fi
  8724. if test "x$ac_cv_func_fork_works" = xcross; then
  8725. case $host in
  8726. *-*-amigaos* | *-*-msdosdjgpp*)
  8727. # Override, as these systems have only a dummy fork() stub
  8728. ac_cv_func_fork_works=no
  8729. ;;
  8730. *)
  8731. ac_cv_func_fork_works=yes
  8732. ;;
  8733. esac
  8734. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  8735. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  8736. fi
  8737. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8738. if test "x$ac_cv_func_vfork" = xyes; then
  8739. echo "$as_me:$LINENO: checking for working vfork" >&5
  8740. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  8741. if test "${ac_cv_func_vfork_works+set}" = set; then
  8742. echo $ECHO_N "(cached) $ECHO_C" >&6
  8743. else
  8744. if test "$cross_compiling" = yes; then
  8745. ac_cv_func_vfork_works=cross
  8746. else
  8747. cat >conftest.$ac_ext <<_ACEOF
  8748. /* confdefs.h. */
  8749. _ACEOF
  8750. cat confdefs.h >>conftest.$ac_ext
  8751. cat >>conftest.$ac_ext <<_ACEOF
  8752. /* end confdefs.h. */
  8753. /* Thanks to Paul Eggert for this test. */
  8754. #include <stdio.h>
  8755. #include <stdlib.h>
  8756. #include <sys/types.h>
  8757. #include <sys/stat.h>
  8758. #include <sys/wait.h>
  8759. #if HAVE_UNISTD_H
  8760. # include <unistd.h>
  8761. #endif
  8762. #if HAVE_VFORK_H
  8763. # include <vfork.h>
  8764. #endif
  8765. /* On some sparc systems, changes by the child to local and incoming
  8766. argument registers are propagated back to the parent. The compiler
  8767. is told about this with #include <vfork.h>, but some compilers
  8768. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  8769. static variable whose address is put into a register that is
  8770. clobbered by the vfork. */
  8771. static void
  8772. #ifdef __cplusplus
  8773. sparc_address_test (int arg)
  8774. # else
  8775. sparc_address_test (arg) int arg;
  8776. #endif
  8777. {
  8778. static pid_t child;
  8779. if (!child) {
  8780. child = vfork ();
  8781. if (child < 0) {
  8782. perror ("vfork");
  8783. _exit(2);
  8784. }
  8785. if (!child) {
  8786. arg = getpid();
  8787. write(-1, "", 0);
  8788. _exit (arg);
  8789. }
  8790. }
  8791. }
  8792. int
  8793. main ()
  8794. {
  8795. pid_t parent = getpid ();
  8796. pid_t child;
  8797. sparc_address_test (0);
  8798. child = vfork ();
  8799. if (child == 0) {
  8800. /* Here is another test for sparc vfork register problems. This
  8801. test uses lots of local variables, at least as many local
  8802. variables as main has allocated so far including compiler
  8803. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  8804. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  8805. reuse the register of parent for one of the local variables,
  8806. since it will think that parent can't possibly be used any more
  8807. in this routine. Assigning to the local variable will thus
  8808. munge parent in the parent process. */
  8809. pid_t
  8810. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  8811. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  8812. /* Convince the compiler that p..p7 are live; otherwise, it might
  8813. use the same hardware register for all 8 local variables. */
  8814. if (p != p1 || p != p2 || p != p3 || p != p4
  8815. || p != p5 || p != p6 || p != p7)
  8816. _exit(1);
  8817. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  8818. from child file descriptors. If the child closes a descriptor
  8819. before it execs or exits, this munges the parent's descriptor
  8820. as well. Test for this by closing stdout in the child. */
  8821. _exit(close(fileno(stdout)) != 0);
  8822. } else {
  8823. int status;
  8824. struct stat st;
  8825. while (wait(&status) != child)
  8826. ;
  8827. exit(
  8828. /* Was there some problem with vforking? */
  8829. child < 0
  8830. /* Did the child fail? (This shouldn't happen.) */
  8831. || status
  8832. /* Did the vfork/compiler bug occur? */
  8833. || parent != getpid()
  8834. /* Did the file descriptor bug occur? */
  8835. || fstat(fileno(stdout), &st) != 0
  8836. );
  8837. }
  8838. }
  8839. _ACEOF
  8840. rm -f conftest$ac_exeext
  8841. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8842. (eval $ac_link) 2>&5
  8843. ac_status=$?
  8844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8845. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8846. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8847. (eval $ac_try) 2>&5
  8848. ac_status=$?
  8849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8850. (exit $ac_status); }; }; then
  8851. ac_cv_func_vfork_works=yes
  8852. else
  8853. echo "$as_me: program exited with status $ac_status" >&5
  8854. echo "$as_me: failed program was:" >&5
  8855. sed 's/^/| /' conftest.$ac_ext >&5
  8856. ( exit $ac_status )
  8857. ac_cv_func_vfork_works=no
  8858. fi
  8859. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8860. fi
  8861. fi
  8862. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  8863. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  8864. fi;
  8865. if test "x$ac_cv_func_fork_works" = xcross; then
  8866. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8867. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  8868. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  8869. fi
  8870. if test "x$ac_cv_func_vfork_works" = xyes; then
  8871. cat >>confdefs.h <<\_ACEOF
  8872. #define HAVE_WORKING_VFORK 1
  8873. _ACEOF
  8874. else
  8875. cat >>confdefs.h <<\_ACEOF
  8876. #define vfork fork
  8877. _ACEOF
  8878. fi
  8879. if test "x$ac_cv_func_fork_works" = xyes; then
  8880. cat >>confdefs.h <<\_ACEOF
  8881. #define HAVE_WORKING_FORK 1
  8882. _ACEOF
  8883. fi
  8884. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8885. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8886. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8887. echo $ECHO_N "(cached) $ECHO_C" >&6
  8888. else
  8889. rm -f conftest.sym conftest.file
  8890. echo >conftest.file
  8891. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8892. if test "$cross_compiling" = yes; then
  8893. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8894. else
  8895. cat >conftest.$ac_ext <<_ACEOF
  8896. /* confdefs.h. */
  8897. _ACEOF
  8898. cat confdefs.h >>conftest.$ac_ext
  8899. cat >>conftest.$ac_ext <<_ACEOF
  8900. /* end confdefs.h. */
  8901. $ac_includes_default
  8902. int
  8903. main ()
  8904. {
  8905. struct stat sbuf;
  8906. /* Linux will dereference the symlink and fail.
  8907. That is better in the sense that it means we will not
  8908. have to compile and use the lstat wrapper. */
  8909. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8910. ;
  8911. return 0;
  8912. }
  8913. _ACEOF
  8914. rm -f conftest$ac_exeext
  8915. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8916. (eval $ac_link) 2>&5
  8917. ac_status=$?
  8918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8919. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8920. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8921. (eval $ac_try) 2>&5
  8922. ac_status=$?
  8923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8924. (exit $ac_status); }; }; then
  8925. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8926. else
  8927. echo "$as_me: program exited with status $ac_status" >&5
  8928. echo "$as_me: failed program was:" >&5
  8929. sed 's/^/| /' conftest.$ac_ext >&5
  8930. ( exit $ac_status )
  8931. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8932. fi
  8933. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8934. fi
  8935. else
  8936. # If the `ln -s' command failed, then we probably don't even
  8937. # have an lstat function.
  8938. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8939. fi
  8940. rm -f conftest.sym conftest.file
  8941. fi
  8942. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8943. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8944. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8945. cat >>confdefs.h <<_ACEOF
  8946. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8947. _ACEOF
  8948. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8949. case $LIBOBJS in
  8950. "lstat.$ac_objext" | \
  8951. *" lstat.$ac_objext" | \
  8952. "lstat.$ac_objext "* | \
  8953. *" lstat.$ac_objext "* ) ;;
  8954. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8955. esac
  8956. fi
  8957. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8958. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  8959. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8960. echo $ECHO_N "(cached) $ECHO_C" >&6
  8961. else
  8962. if test "$cross_compiling" = yes; then
  8963. ac_cv_func_lstat_empty_string_bug=yes
  8964. else
  8965. cat >conftest.$ac_ext <<_ACEOF
  8966. /* confdefs.h. */
  8967. _ACEOF
  8968. cat confdefs.h >>conftest.$ac_ext
  8969. cat >>conftest.$ac_ext <<_ACEOF
  8970. /* end confdefs.h. */
  8971. $ac_includes_default
  8972. int
  8973. main ()
  8974. {
  8975. struct stat sbuf;
  8976. exit (lstat ("", &sbuf) ? 1 : 0);
  8977. ;
  8978. return 0;
  8979. }
  8980. _ACEOF
  8981. rm -f conftest$ac_exeext
  8982. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8983. (eval $ac_link) 2>&5
  8984. ac_status=$?
  8985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8986. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8987. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8988. (eval $ac_try) 2>&5
  8989. ac_status=$?
  8990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8991. (exit $ac_status); }; }; then
  8992. ac_cv_func_lstat_empty_string_bug=yes
  8993. else
  8994. echo "$as_me: program exited with status $ac_status" >&5
  8995. echo "$as_me: failed program was:" >&5
  8996. sed 's/^/| /' conftest.$ac_ext >&5
  8997. ( exit $ac_status )
  8998. ac_cv_func_lstat_empty_string_bug=no
  8999. fi
  9000. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9001. fi
  9002. fi
  9003. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  9004. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  9005. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  9006. case $LIBOBJS in
  9007. "lstat.$ac_objext" | \
  9008. *" lstat.$ac_objext" | \
  9009. "lstat.$ac_objext "* | \
  9010. *" lstat.$ac_objext "* ) ;;
  9011. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  9012. esac
  9013. cat >>confdefs.h <<_ACEOF
  9014. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  9015. _ACEOF
  9016. fi
  9017. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  9018. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  9019. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  9020. echo $ECHO_N "(cached) $ECHO_C" >&6
  9021. else
  9022. rm -f conftest.sym conftest.file
  9023. echo >conftest.file
  9024. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  9025. if test "$cross_compiling" = yes; then
  9026. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9027. else
  9028. cat >conftest.$ac_ext <<_ACEOF
  9029. /* confdefs.h. */
  9030. _ACEOF
  9031. cat confdefs.h >>conftest.$ac_ext
  9032. cat >>conftest.$ac_ext <<_ACEOF
  9033. /* end confdefs.h. */
  9034. $ac_includes_default
  9035. int
  9036. main ()
  9037. {
  9038. struct stat sbuf;
  9039. /* Linux will dereference the symlink and fail.
  9040. That is better in the sense that it means we will not
  9041. have to compile and use the lstat wrapper. */
  9042. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  9043. ;
  9044. return 0;
  9045. }
  9046. _ACEOF
  9047. rm -f conftest$ac_exeext
  9048. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9049. (eval $ac_link) 2>&5
  9050. ac_status=$?
  9051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9052. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9053. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9054. (eval $ac_try) 2>&5
  9055. ac_status=$?
  9056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9057. (exit $ac_status); }; }; then
  9058. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9059. else
  9060. echo "$as_me: program exited with status $ac_status" >&5
  9061. echo "$as_me: failed program was:" >&5
  9062. sed 's/^/| /' conftest.$ac_ext >&5
  9063. ( exit $ac_status )
  9064. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9065. fi
  9066. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9067. fi
  9068. else
  9069. # If the `ln -s' command failed, then we probably don't even
  9070. # have an lstat function.
  9071. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9072. fi
  9073. rm -f conftest.sym conftest.file
  9074. fi
  9075. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9076. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  9077. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9078. cat >>confdefs.h <<_ACEOF
  9079. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9080. _ACEOF
  9081. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9082. case $LIBOBJS in
  9083. "lstat.$ac_objext" | \
  9084. *" lstat.$ac_objext" | \
  9085. "lstat.$ac_objext "* | \
  9086. *" lstat.$ac_objext "* ) ;;
  9087. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  9088. esac
  9089. fi
  9090. for ac_header in stdlib.h
  9091. do
  9092. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9093. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9094. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9095. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9096. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9097. echo $ECHO_N "(cached) $ECHO_C" >&6
  9098. fi
  9099. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9100. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9101. else
  9102. # Is the header compilable?
  9103. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9104. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9105. cat >conftest.$ac_ext <<_ACEOF
  9106. /* confdefs.h. */
  9107. _ACEOF
  9108. cat confdefs.h >>conftest.$ac_ext
  9109. cat >>conftest.$ac_ext <<_ACEOF
  9110. /* end confdefs.h. */
  9111. $ac_includes_default
  9112. #include <$ac_header>
  9113. _ACEOF
  9114. rm -f conftest.$ac_objext
  9115. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9116. (eval $ac_compile) 2>conftest.er1
  9117. ac_status=$?
  9118. grep -v '^ *+' conftest.er1 >conftest.err
  9119. rm -f conftest.er1
  9120. cat conftest.err >&5
  9121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9122. (exit $ac_status); } &&
  9123. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9124. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9125. (eval $ac_try) 2>&5
  9126. ac_status=$?
  9127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9128. (exit $ac_status); }; } &&
  9129. { ac_try='test -s conftest.$ac_objext'
  9130. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9131. (eval $ac_try) 2>&5
  9132. ac_status=$?
  9133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9134. (exit $ac_status); }; }; then
  9135. ac_header_compiler=yes
  9136. else
  9137. echo "$as_me: failed program was:" >&5
  9138. sed 's/^/| /' conftest.$ac_ext >&5
  9139. ac_header_compiler=no
  9140. fi
  9141. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9142. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9143. echo "${ECHO_T}$ac_header_compiler" >&6
  9144. # Is the header present?
  9145. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9146. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9147. cat >conftest.$ac_ext <<_ACEOF
  9148. /* confdefs.h. */
  9149. _ACEOF
  9150. cat confdefs.h >>conftest.$ac_ext
  9151. cat >>conftest.$ac_ext <<_ACEOF
  9152. /* end confdefs.h. */
  9153. #include <$ac_header>
  9154. _ACEOF
  9155. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9156. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9157. ac_status=$?
  9158. grep -v '^ *+' conftest.er1 >conftest.err
  9159. rm -f conftest.er1
  9160. cat conftest.err >&5
  9161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9162. (exit $ac_status); } >/dev/null; then
  9163. if test -s conftest.err; then
  9164. ac_cpp_err=$ac_c_preproc_warn_flag
  9165. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9166. else
  9167. ac_cpp_err=
  9168. fi
  9169. else
  9170. ac_cpp_err=yes
  9171. fi
  9172. if test -z "$ac_cpp_err"; then
  9173. ac_header_preproc=yes
  9174. else
  9175. echo "$as_me: failed program was:" >&5
  9176. sed 's/^/| /' conftest.$ac_ext >&5
  9177. ac_header_preproc=no
  9178. fi
  9179. rm -f conftest.err conftest.$ac_ext
  9180. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9181. echo "${ECHO_T}$ac_header_preproc" >&6
  9182. # So? What about this header?
  9183. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9184. yes:no: )
  9185. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9186. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9187. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9188. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9189. ac_header_preproc=yes
  9190. ;;
  9191. no:yes:* )
  9192. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9193. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9194. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9195. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9196. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9197. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9198. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9199. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9200. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9201. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9202. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9203. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9204. (
  9205. cat <<\_ASBOX
  9206. ## ------------------------------------------ ##
  9207. ## Report this to the AC_PACKAGE_NAME lists. ##
  9208. ## ------------------------------------------ ##
  9209. _ASBOX
  9210. ) |
  9211. sed "s/^/$as_me: WARNING: /" >&2
  9212. ;;
  9213. esac
  9214. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9215. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9216. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9217. echo $ECHO_N "(cached) $ECHO_C" >&6
  9218. else
  9219. eval "$as_ac_Header=\$ac_header_preproc"
  9220. fi
  9221. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9222. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9223. fi
  9224. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9225. cat >>confdefs.h <<_ACEOF
  9226. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9227. _ACEOF
  9228. fi
  9229. done
  9230. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  9231. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  9232. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  9233. echo $ECHO_N "(cached) $ECHO_C" >&6
  9234. else
  9235. if test "$cross_compiling" = yes; then
  9236. ac_cv_func_malloc_0_nonnull=no
  9237. else
  9238. cat >conftest.$ac_ext <<_ACEOF
  9239. /* confdefs.h. */
  9240. _ACEOF
  9241. cat confdefs.h >>conftest.$ac_ext
  9242. cat >>conftest.$ac_ext <<_ACEOF
  9243. /* end confdefs.h. */
  9244. #if STDC_HEADERS || HAVE_STDLIB_H
  9245. # include <stdlib.h>
  9246. #else
  9247. char *malloc ();
  9248. #endif
  9249. int
  9250. main ()
  9251. {
  9252. exit (malloc (0) ? 0 : 1);
  9253. ;
  9254. return 0;
  9255. }
  9256. _ACEOF
  9257. rm -f conftest$ac_exeext
  9258. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9259. (eval $ac_link) 2>&5
  9260. ac_status=$?
  9261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9262. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9263. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9264. (eval $ac_try) 2>&5
  9265. ac_status=$?
  9266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9267. (exit $ac_status); }; }; then
  9268. ac_cv_func_malloc_0_nonnull=yes
  9269. else
  9270. echo "$as_me: program exited with status $ac_status" >&5
  9271. echo "$as_me: failed program was:" >&5
  9272. sed 's/^/| /' conftest.$ac_ext >&5
  9273. ( exit $ac_status )
  9274. ac_cv_func_malloc_0_nonnull=no
  9275. fi
  9276. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9277. fi
  9278. fi
  9279. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9280. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  9281. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9282. cat >>confdefs.h <<\_ACEOF
  9283. #define HAVE_MALLOC 1
  9284. _ACEOF
  9285. else
  9286. cat >>confdefs.h <<\_ACEOF
  9287. #define HAVE_MALLOC 0
  9288. _ACEOF
  9289. case $LIBOBJS in
  9290. "malloc.$ac_objext" | \
  9291. *" malloc.$ac_objext" | \
  9292. "malloc.$ac_objext "* | \
  9293. *" malloc.$ac_objext "* ) ;;
  9294. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  9295. esac
  9296. cat >>confdefs.h <<\_ACEOF
  9297. #define malloc rpl_malloc
  9298. _ACEOF
  9299. fi
  9300. for ac_header in stdlib.h sys/time.h unistd.h
  9301. do
  9302. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9303. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9304. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9305. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9306. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9307. echo $ECHO_N "(cached) $ECHO_C" >&6
  9308. fi
  9309. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9310. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9311. else
  9312. # Is the header compilable?
  9313. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9314. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9315. cat >conftest.$ac_ext <<_ACEOF
  9316. /* confdefs.h. */
  9317. _ACEOF
  9318. cat confdefs.h >>conftest.$ac_ext
  9319. cat >>conftest.$ac_ext <<_ACEOF
  9320. /* end confdefs.h. */
  9321. $ac_includes_default
  9322. #include <$ac_header>
  9323. _ACEOF
  9324. rm -f conftest.$ac_objext
  9325. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9326. (eval $ac_compile) 2>conftest.er1
  9327. ac_status=$?
  9328. grep -v '^ *+' conftest.er1 >conftest.err
  9329. rm -f conftest.er1
  9330. cat conftest.err >&5
  9331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9332. (exit $ac_status); } &&
  9333. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9334. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9335. (eval $ac_try) 2>&5
  9336. ac_status=$?
  9337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9338. (exit $ac_status); }; } &&
  9339. { ac_try='test -s conftest.$ac_objext'
  9340. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9341. (eval $ac_try) 2>&5
  9342. ac_status=$?
  9343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9344. (exit $ac_status); }; }; then
  9345. ac_header_compiler=yes
  9346. else
  9347. echo "$as_me: failed program was:" >&5
  9348. sed 's/^/| /' conftest.$ac_ext >&5
  9349. ac_header_compiler=no
  9350. fi
  9351. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9352. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9353. echo "${ECHO_T}$ac_header_compiler" >&6
  9354. # Is the header present?
  9355. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9356. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9357. cat >conftest.$ac_ext <<_ACEOF
  9358. /* confdefs.h. */
  9359. _ACEOF
  9360. cat confdefs.h >>conftest.$ac_ext
  9361. cat >>conftest.$ac_ext <<_ACEOF
  9362. /* end confdefs.h. */
  9363. #include <$ac_header>
  9364. _ACEOF
  9365. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9366. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9367. ac_status=$?
  9368. grep -v '^ *+' conftest.er1 >conftest.err
  9369. rm -f conftest.er1
  9370. cat conftest.err >&5
  9371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9372. (exit $ac_status); } >/dev/null; then
  9373. if test -s conftest.err; then
  9374. ac_cpp_err=$ac_c_preproc_warn_flag
  9375. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9376. else
  9377. ac_cpp_err=
  9378. fi
  9379. else
  9380. ac_cpp_err=yes
  9381. fi
  9382. if test -z "$ac_cpp_err"; then
  9383. ac_header_preproc=yes
  9384. else
  9385. echo "$as_me: failed program was:" >&5
  9386. sed 's/^/| /' conftest.$ac_ext >&5
  9387. ac_header_preproc=no
  9388. fi
  9389. rm -f conftest.err conftest.$ac_ext
  9390. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9391. echo "${ECHO_T}$ac_header_preproc" >&6
  9392. # So? What about this header?
  9393. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9394. yes:no: )
  9395. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9396. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9397. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9398. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9399. ac_header_preproc=yes
  9400. ;;
  9401. no:yes:* )
  9402. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9403. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9404. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9405. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9406. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9407. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9408. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9409. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9410. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9411. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9412. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9413. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9414. (
  9415. cat <<\_ASBOX
  9416. ## ------------------------------------------ ##
  9417. ## Report this to the AC_PACKAGE_NAME lists. ##
  9418. ## ------------------------------------------ ##
  9419. _ASBOX
  9420. ) |
  9421. sed "s/^/$as_me: WARNING: /" >&2
  9422. ;;
  9423. esac
  9424. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9425. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9426. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9427. echo $ECHO_N "(cached) $ECHO_C" >&6
  9428. else
  9429. eval "$as_ac_Header=\$ac_header_preproc"
  9430. fi
  9431. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9432. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9433. fi
  9434. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9435. cat >>confdefs.h <<_ACEOF
  9436. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9437. _ACEOF
  9438. fi
  9439. done
  9440. for ac_func in alarm
  9441. do
  9442. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9443. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9444. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9445. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9446. echo $ECHO_N "(cached) $ECHO_C" >&6
  9447. else
  9448. cat >conftest.$ac_ext <<_ACEOF
  9449. /* confdefs.h. */
  9450. _ACEOF
  9451. cat confdefs.h >>conftest.$ac_ext
  9452. cat >>conftest.$ac_ext <<_ACEOF
  9453. /* end confdefs.h. */
  9454. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9455. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9456. #define $ac_func innocuous_$ac_func
  9457. /* System header to define __stub macros and hopefully few prototypes,
  9458. which can conflict with char $ac_func (); below.
  9459. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9460. <limits.h> exists even on freestanding compilers. */
  9461. #ifdef __STDC__
  9462. # include <limits.h>
  9463. #else
  9464. # include <assert.h>
  9465. #endif
  9466. #undef $ac_func
  9467. /* Override any gcc2 internal prototype to avoid an error. */
  9468. #ifdef __cplusplus
  9469. extern "C"
  9470. {
  9471. #endif
  9472. /* We use char because int might match the return type of a gcc2
  9473. builtin and then its argument prototype would still apply. */
  9474. char $ac_func ();
  9475. /* The GNU C library defines this for functions which it implements
  9476. to always fail with ENOSYS. Some functions are actually named
  9477. something starting with __ and the normal name is an alias. */
  9478. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9479. choke me
  9480. #else
  9481. char (*f) () = $ac_func;
  9482. #endif
  9483. #ifdef __cplusplus
  9484. }
  9485. #endif
  9486. int
  9487. main ()
  9488. {
  9489. return f != $ac_func;
  9490. ;
  9491. return 0;
  9492. }
  9493. _ACEOF
  9494. rm -f conftest.$ac_objext conftest$ac_exeext
  9495. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9496. (eval $ac_link) 2>conftest.er1
  9497. ac_status=$?
  9498. grep -v '^ *+' conftest.er1 >conftest.err
  9499. rm -f conftest.er1
  9500. cat conftest.err >&5
  9501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9502. (exit $ac_status); } &&
  9503. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9504. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9505. (eval $ac_try) 2>&5
  9506. ac_status=$?
  9507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9508. (exit $ac_status); }; } &&
  9509. { ac_try='test -s conftest$ac_exeext'
  9510. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9511. (eval $ac_try) 2>&5
  9512. ac_status=$?
  9513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9514. (exit $ac_status); }; }; then
  9515. eval "$as_ac_var=yes"
  9516. else
  9517. echo "$as_me: failed program was:" >&5
  9518. sed 's/^/| /' conftest.$ac_ext >&5
  9519. eval "$as_ac_var=no"
  9520. fi
  9521. rm -f conftest.err conftest.$ac_objext \
  9522. conftest$ac_exeext conftest.$ac_ext
  9523. fi
  9524. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9525. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9526. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9527. cat >>confdefs.h <<_ACEOF
  9528. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9529. _ACEOF
  9530. fi
  9531. done
  9532. echo "$as_me:$LINENO: checking for working mktime" >&5
  9533. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  9534. if test "${ac_cv_func_working_mktime+set}" = set; then
  9535. echo $ECHO_N "(cached) $ECHO_C" >&6
  9536. else
  9537. if test "$cross_compiling" = yes; then
  9538. ac_cv_func_working_mktime=no
  9539. else
  9540. cat >conftest.$ac_ext <<_ACEOF
  9541. /* confdefs.h. */
  9542. _ACEOF
  9543. cat confdefs.h >>conftest.$ac_ext
  9544. cat >>conftest.$ac_ext <<_ACEOF
  9545. /* end confdefs.h. */
  9546. /* Test program from Paul Eggert and Tony Leneis. */
  9547. #if TIME_WITH_SYS_TIME
  9548. # include <sys/time.h>
  9549. # include <time.h>
  9550. #else
  9551. # if HAVE_SYS_TIME_H
  9552. # include <sys/time.h>
  9553. # else
  9554. # include <time.h>
  9555. # endif
  9556. #endif
  9557. #if HAVE_STDLIB_H
  9558. # include <stdlib.h>
  9559. #endif
  9560. #if HAVE_UNISTD_H
  9561. # include <unistd.h>
  9562. #endif
  9563. #if !HAVE_ALARM
  9564. # define alarm(X) /* empty */
  9565. #endif
  9566. /* Work around redefinition to rpl_putenv by other config tests. */
  9567. #undef putenv
  9568. static time_t time_t_max;
  9569. static time_t time_t_min;
  9570. /* Values we'll use to set the TZ environment variable. */
  9571. static char *tz_strings[] = {
  9572. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  9573. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  9574. };
  9575. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  9576. /* Fail if mktime fails to convert a date in the spring-forward gap.
  9577. Based on a problem report from Andreas Jaeger. */
  9578. static void
  9579. spring_forward_gap ()
  9580. {
  9581. /* glibc (up to about 1998-10-07) failed this test. */
  9582. struct tm tm;
  9583. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  9584. instead of "TZ=America/Vancouver" in order to detect the bug even
  9585. on systems that don't support the Olson extension, or don't have the
  9586. full zoneinfo tables installed. */
  9587. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  9588. tm.tm_year = 98;
  9589. tm.tm_mon = 3;
  9590. tm.tm_mday = 5;
  9591. tm.tm_hour = 2;
  9592. tm.tm_min = 0;
  9593. tm.tm_sec = 0;
  9594. tm.tm_isdst = -1;
  9595. if (mktime (&tm) == (time_t)-1)
  9596. exit (1);
  9597. }
  9598. static void
  9599. mktime_test1 (now)
  9600. time_t now;
  9601. {
  9602. struct tm *lt;
  9603. if ((lt = localtime (&now)) && mktime (lt) != now)
  9604. exit (1);
  9605. }
  9606. static void
  9607. mktime_test (now)
  9608. time_t now;
  9609. {
  9610. mktime_test1 (now);
  9611. mktime_test1 ((time_t) (time_t_max - now));
  9612. mktime_test1 ((time_t) (time_t_min + now));
  9613. }
  9614. static void
  9615. irix_6_4_bug ()
  9616. {
  9617. /* Based on code from Ariel Faigon. */
  9618. struct tm tm;
  9619. tm.tm_year = 96;
  9620. tm.tm_mon = 3;
  9621. tm.tm_mday = 0;
  9622. tm.tm_hour = 0;
  9623. tm.tm_min = 0;
  9624. tm.tm_sec = 0;
  9625. tm.tm_isdst = -1;
  9626. mktime (&tm);
  9627. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  9628. exit (1);
  9629. }
  9630. static void
  9631. bigtime_test (j)
  9632. int j;
  9633. {
  9634. struct tm tm;
  9635. time_t now;
  9636. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  9637. now = mktime (&tm);
  9638. if (now != (time_t) -1)
  9639. {
  9640. struct tm *lt = localtime (&now);
  9641. if (! (lt
  9642. && lt->tm_year == tm.tm_year
  9643. && lt->tm_mon == tm.tm_mon
  9644. && lt->tm_mday == tm.tm_mday
  9645. && lt->tm_hour == tm.tm_hour
  9646. && lt->tm_min == tm.tm_min
  9647. && lt->tm_sec == tm.tm_sec
  9648. && lt->tm_yday == tm.tm_yday
  9649. && lt->tm_wday == tm.tm_wday
  9650. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  9651. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  9652. exit (1);
  9653. }
  9654. }
  9655. int
  9656. main ()
  9657. {
  9658. time_t t, delta;
  9659. int i, j;
  9660. /* This test makes some buggy mktime implementations loop.
  9661. Give up after 60 seconds; a mktime slower than that
  9662. isn't worth using anyway. */
  9663. alarm (60);
  9664. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  9665. continue;
  9666. time_t_max--;
  9667. if ((time_t) -1 < 0)
  9668. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  9669. continue;
  9670. delta = time_t_max / 997; /* a suitable prime number */
  9671. for (i = 0; i < N_STRINGS; i++)
  9672. {
  9673. if (tz_strings[i])
  9674. putenv (tz_strings[i]);
  9675. for (t = 0; t <= time_t_max - delta; t += delta)
  9676. mktime_test (t);
  9677. mktime_test ((time_t) 1);
  9678. mktime_test ((time_t) (60 * 60));
  9679. mktime_test ((time_t) (60 * 60 * 24));
  9680. for (j = 1; 0 < j; j *= 2)
  9681. bigtime_test (j);
  9682. bigtime_test (j - 1);
  9683. }
  9684. irix_6_4_bug ();
  9685. spring_forward_gap ();
  9686. exit (0);
  9687. }
  9688. _ACEOF
  9689. rm -f conftest$ac_exeext
  9690. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9691. (eval $ac_link) 2>&5
  9692. ac_status=$?
  9693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9694. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9695. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9696. (eval $ac_try) 2>&5
  9697. ac_status=$?
  9698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9699. (exit $ac_status); }; }; then
  9700. ac_cv_func_working_mktime=yes
  9701. else
  9702. echo "$as_me: program exited with status $ac_status" >&5
  9703. echo "$as_me: failed program was:" >&5
  9704. sed 's/^/| /' conftest.$ac_ext >&5
  9705. ( exit $ac_status )
  9706. ac_cv_func_working_mktime=no
  9707. fi
  9708. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9709. fi
  9710. fi
  9711. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  9712. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  9713. if test $ac_cv_func_working_mktime = no; then
  9714. case $LIBOBJS in
  9715. "mktime.$ac_objext" | \
  9716. *" mktime.$ac_objext" | \
  9717. "mktime.$ac_objext "* | \
  9718. *" mktime.$ac_objext "* ) ;;
  9719. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  9720. esac
  9721. fi
  9722. for ac_header in stdlib.h unistd.h
  9723. do
  9724. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9725. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9726. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9727. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9728. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9729. echo $ECHO_N "(cached) $ECHO_C" >&6
  9730. fi
  9731. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9732. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9733. else
  9734. # Is the header compilable?
  9735. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9736. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9737. cat >conftest.$ac_ext <<_ACEOF
  9738. /* confdefs.h. */
  9739. _ACEOF
  9740. cat confdefs.h >>conftest.$ac_ext
  9741. cat >>conftest.$ac_ext <<_ACEOF
  9742. /* end confdefs.h. */
  9743. $ac_includes_default
  9744. #include <$ac_header>
  9745. _ACEOF
  9746. rm -f conftest.$ac_objext
  9747. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9748. (eval $ac_compile) 2>conftest.er1
  9749. ac_status=$?
  9750. grep -v '^ *+' conftest.er1 >conftest.err
  9751. rm -f conftest.er1
  9752. cat conftest.err >&5
  9753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9754. (exit $ac_status); } &&
  9755. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9756. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9757. (eval $ac_try) 2>&5
  9758. ac_status=$?
  9759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9760. (exit $ac_status); }; } &&
  9761. { ac_try='test -s conftest.$ac_objext'
  9762. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9763. (eval $ac_try) 2>&5
  9764. ac_status=$?
  9765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9766. (exit $ac_status); }; }; then
  9767. ac_header_compiler=yes
  9768. else
  9769. echo "$as_me: failed program was:" >&5
  9770. sed 's/^/| /' conftest.$ac_ext >&5
  9771. ac_header_compiler=no
  9772. fi
  9773. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9774. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9775. echo "${ECHO_T}$ac_header_compiler" >&6
  9776. # Is the header present?
  9777. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9778. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9779. cat >conftest.$ac_ext <<_ACEOF
  9780. /* confdefs.h. */
  9781. _ACEOF
  9782. cat confdefs.h >>conftest.$ac_ext
  9783. cat >>conftest.$ac_ext <<_ACEOF
  9784. /* end confdefs.h. */
  9785. #include <$ac_header>
  9786. _ACEOF
  9787. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9788. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9789. ac_status=$?
  9790. grep -v '^ *+' conftest.er1 >conftest.err
  9791. rm -f conftest.er1
  9792. cat conftest.err >&5
  9793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9794. (exit $ac_status); } >/dev/null; then
  9795. if test -s conftest.err; then
  9796. ac_cpp_err=$ac_c_preproc_warn_flag
  9797. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9798. else
  9799. ac_cpp_err=
  9800. fi
  9801. else
  9802. ac_cpp_err=yes
  9803. fi
  9804. if test -z "$ac_cpp_err"; then
  9805. ac_header_preproc=yes
  9806. else
  9807. echo "$as_me: failed program was:" >&5
  9808. sed 's/^/| /' conftest.$ac_ext >&5
  9809. ac_header_preproc=no
  9810. fi
  9811. rm -f conftest.err conftest.$ac_ext
  9812. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9813. echo "${ECHO_T}$ac_header_preproc" >&6
  9814. # So? What about this header?
  9815. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9816. yes:no: )
  9817. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9818. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9819. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9820. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9821. ac_header_preproc=yes
  9822. ;;
  9823. no:yes:* )
  9824. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9825. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9826. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9827. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9828. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9829. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9830. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9831. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9832. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9833. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9834. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9835. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9836. (
  9837. cat <<\_ASBOX
  9838. ## ------------------------------------------ ##
  9839. ## Report this to the AC_PACKAGE_NAME lists. ##
  9840. ## ------------------------------------------ ##
  9841. _ASBOX
  9842. ) |
  9843. sed "s/^/$as_me: WARNING: /" >&2
  9844. ;;
  9845. esac
  9846. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9847. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9848. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9849. echo $ECHO_N "(cached) $ECHO_C" >&6
  9850. else
  9851. eval "$as_ac_Header=\$ac_header_preproc"
  9852. fi
  9853. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9854. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9855. fi
  9856. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9857. cat >>confdefs.h <<_ACEOF
  9858. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9859. _ACEOF
  9860. fi
  9861. done
  9862. for ac_func in getpagesize
  9863. do
  9864. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9865. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9866. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9867. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9868. echo $ECHO_N "(cached) $ECHO_C" >&6
  9869. else
  9870. cat >conftest.$ac_ext <<_ACEOF
  9871. /* confdefs.h. */
  9872. _ACEOF
  9873. cat confdefs.h >>conftest.$ac_ext
  9874. cat >>conftest.$ac_ext <<_ACEOF
  9875. /* end confdefs.h. */
  9876. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9877. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9878. #define $ac_func innocuous_$ac_func
  9879. /* System header to define __stub macros and hopefully few prototypes,
  9880. which can conflict with char $ac_func (); below.
  9881. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9882. <limits.h> exists even on freestanding compilers. */
  9883. #ifdef __STDC__
  9884. # include <limits.h>
  9885. #else
  9886. # include <assert.h>
  9887. #endif
  9888. #undef $ac_func
  9889. /* Override any gcc2 internal prototype to avoid an error. */
  9890. #ifdef __cplusplus
  9891. extern "C"
  9892. {
  9893. #endif
  9894. /* We use char because int might match the return type of a gcc2
  9895. builtin and then its argument prototype would still apply. */
  9896. char $ac_func ();
  9897. /* The GNU C library defines this for functions which it implements
  9898. to always fail with ENOSYS. Some functions are actually named
  9899. something starting with __ and the normal name is an alias. */
  9900. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9901. choke me
  9902. #else
  9903. char (*f) () = $ac_func;
  9904. #endif
  9905. #ifdef __cplusplus
  9906. }
  9907. #endif
  9908. int
  9909. main ()
  9910. {
  9911. return f != $ac_func;
  9912. ;
  9913. return 0;
  9914. }
  9915. _ACEOF
  9916. rm -f conftest.$ac_objext conftest$ac_exeext
  9917. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9918. (eval $ac_link) 2>conftest.er1
  9919. ac_status=$?
  9920. grep -v '^ *+' conftest.er1 >conftest.err
  9921. rm -f conftest.er1
  9922. cat conftest.err >&5
  9923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9924. (exit $ac_status); } &&
  9925. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9926. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9927. (eval $ac_try) 2>&5
  9928. ac_status=$?
  9929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9930. (exit $ac_status); }; } &&
  9931. { ac_try='test -s conftest$ac_exeext'
  9932. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9933. (eval $ac_try) 2>&5
  9934. ac_status=$?
  9935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9936. (exit $ac_status); }; }; then
  9937. eval "$as_ac_var=yes"
  9938. else
  9939. echo "$as_me: failed program was:" >&5
  9940. sed 's/^/| /' conftest.$ac_ext >&5
  9941. eval "$as_ac_var=no"
  9942. fi
  9943. rm -f conftest.err conftest.$ac_objext \
  9944. conftest$ac_exeext conftest.$ac_ext
  9945. fi
  9946. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9947. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9948. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9949. cat >>confdefs.h <<_ACEOF
  9950. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9951. _ACEOF
  9952. fi
  9953. done
  9954. echo "$as_me:$LINENO: checking for working mmap" >&5
  9955. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9956. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9957. echo $ECHO_N "(cached) $ECHO_C" >&6
  9958. else
  9959. if test "$cross_compiling" = yes; then
  9960. ac_cv_func_mmap_fixed_mapped=no
  9961. else
  9962. cat >conftest.$ac_ext <<_ACEOF
  9963. /* confdefs.h. */
  9964. _ACEOF
  9965. cat confdefs.h >>conftest.$ac_ext
  9966. cat >>conftest.$ac_ext <<_ACEOF
  9967. /* end confdefs.h. */
  9968. $ac_includes_default
  9969. /* malloc might have been renamed as rpl_malloc. */
  9970. #undef malloc
  9971. /* Thanks to Mike Haertel and Jim Avera for this test.
  9972. Here is a matrix of mmap possibilities:
  9973. mmap private not fixed
  9974. mmap private fixed at somewhere currently unmapped
  9975. mmap private fixed at somewhere already mapped
  9976. mmap shared not fixed
  9977. mmap shared fixed at somewhere currently unmapped
  9978. mmap shared fixed at somewhere already mapped
  9979. For private mappings, we should verify that changes cannot be read()
  9980. back from the file, nor mmap's back from the file at a different
  9981. address. (There have been systems where private was not correctly
  9982. implemented like the infamous i386 svr4.0, and systems where the
  9983. VM page cache was not coherent with the file system buffer cache
  9984. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9985. For shared mappings, we should conversely verify that changes get
  9986. propagated back to all the places they're supposed to be.
  9987. Grep wants private fixed already mapped.
  9988. The main things grep needs to know about mmap are:
  9989. * does it exist and is it safe to write into the mmap'd area
  9990. * how to use it (BSD variants) */
  9991. #include <fcntl.h>
  9992. #include <sys/mman.h>
  9993. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9994. char *malloc ();
  9995. #endif
  9996. /* This mess was copied from the GNU getpagesize.h. */
  9997. #if !HAVE_GETPAGESIZE
  9998. /* Assume that all systems that can run configure have sys/param.h. */
  9999. # if !HAVE_SYS_PARAM_H
  10000. # define HAVE_SYS_PARAM_H 1
  10001. # endif
  10002. # ifdef _SC_PAGESIZE
  10003. # define getpagesize() sysconf(_SC_PAGESIZE)
  10004. # else /* no _SC_PAGESIZE */
  10005. # if HAVE_SYS_PARAM_H
  10006. # include <sys/param.h>
  10007. # ifdef EXEC_PAGESIZE
  10008. # define getpagesize() EXEC_PAGESIZE
  10009. # else /* no EXEC_PAGESIZE */
  10010. # ifdef NBPG
  10011. # define getpagesize() NBPG * CLSIZE
  10012. # ifndef CLSIZE
  10013. # define CLSIZE 1
  10014. # endif /* no CLSIZE */
  10015. # else /* no NBPG */
  10016. # ifdef NBPC
  10017. # define getpagesize() NBPC
  10018. # else /* no NBPC */
  10019. # ifdef PAGESIZE
  10020. # define getpagesize() PAGESIZE
  10021. # endif /* PAGESIZE */
  10022. # endif /* no NBPC */
  10023. # endif /* no NBPG */
  10024. # endif /* no EXEC_PAGESIZE */
  10025. # else /* no HAVE_SYS_PARAM_H */
  10026. # define getpagesize() 8192 /* punt totally */
  10027. # endif /* no HAVE_SYS_PARAM_H */
  10028. # endif /* no _SC_PAGESIZE */
  10029. #endif /* no HAVE_GETPAGESIZE */
  10030. int
  10031. main ()
  10032. {
  10033. char *data, *data2, *data3;
  10034. int i, pagesize;
  10035. int fd;
  10036. pagesize = getpagesize ();
  10037. /* First, make a file with some known garbage in it. */
  10038. data = (char *) malloc (pagesize);
  10039. if (!data)
  10040. exit (1);
  10041. for (i = 0; i < pagesize; ++i)
  10042. *(data + i) = rand ();
  10043. umask (0);
  10044. fd = creat ("conftest.mmap", 0600);
  10045. if (fd < 0)
  10046. exit (1);
  10047. if (write (fd, data, pagesize) != pagesize)
  10048. exit (1);
  10049. close (fd);
  10050. /* Next, try to mmap the file at a fixed address which already has
  10051. something else allocated at it. If we can, also make sure that
  10052. we see the same garbage. */
  10053. fd = open ("conftest.mmap", O_RDWR);
  10054. if (fd < 0)
  10055. exit (1);
  10056. data2 = (char *) malloc (2 * pagesize);
  10057. if (!data2)
  10058. exit (1);
  10059. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  10060. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10061. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10062. exit (1);
  10063. for (i = 0; i < pagesize; ++i)
  10064. if (*(data + i) != *(data2 + i))
  10065. exit (1);
  10066. /* Finally, make sure that changes to the mapped area do not
  10067. percolate back to the file as seen by read(). (This is a bug on
  10068. some variants of i386 svr4.0.) */
  10069. for (i = 0; i < pagesize; ++i)
  10070. *(data2 + i) = *(data2 + i) + 1;
  10071. data3 = (char *) malloc (pagesize);
  10072. if (!data3)
  10073. exit (1);
  10074. if (read (fd, data3, pagesize) != pagesize)
  10075. exit (1);
  10076. for (i = 0; i < pagesize; ++i)
  10077. if (*(data + i) != *(data3 + i))
  10078. exit (1);
  10079. close (fd);
  10080. exit (0);
  10081. }
  10082. _ACEOF
  10083. rm -f conftest$ac_exeext
  10084. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10085. (eval $ac_link) 2>&5
  10086. ac_status=$?
  10087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10088. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10089. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10090. (eval $ac_try) 2>&5
  10091. ac_status=$?
  10092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10093. (exit $ac_status); }; }; then
  10094. ac_cv_func_mmap_fixed_mapped=yes
  10095. else
  10096. echo "$as_me: program exited with status $ac_status" >&5
  10097. echo "$as_me: failed program was:" >&5
  10098. sed 's/^/| /' conftest.$ac_ext >&5
  10099. ( exit $ac_status )
  10100. ac_cv_func_mmap_fixed_mapped=no
  10101. fi
  10102. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10103. fi
  10104. fi
  10105. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10106. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  10107. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10108. cat >>confdefs.h <<\_ACEOF
  10109. #define HAVE_MMAP 1
  10110. _ACEOF
  10111. fi
  10112. rm -f conftest.mmap
  10113. for ac_header in stdlib.h
  10114. do
  10115. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10116. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10117. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10118. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10119. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10120. echo $ECHO_N "(cached) $ECHO_C" >&6
  10121. fi
  10122. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10123. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10124. else
  10125. # Is the header compilable?
  10126. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10127. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  10128. cat >conftest.$ac_ext <<_ACEOF
  10129. /* confdefs.h. */
  10130. _ACEOF
  10131. cat confdefs.h >>conftest.$ac_ext
  10132. cat >>conftest.$ac_ext <<_ACEOF
  10133. /* end confdefs.h. */
  10134. $ac_includes_default
  10135. #include <$ac_header>
  10136. _ACEOF
  10137. rm -f conftest.$ac_objext
  10138. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10139. (eval $ac_compile) 2>conftest.er1
  10140. ac_status=$?
  10141. grep -v '^ *+' conftest.er1 >conftest.err
  10142. rm -f conftest.er1
  10143. cat conftest.err >&5
  10144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10145. (exit $ac_status); } &&
  10146. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10147. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10148. (eval $ac_try) 2>&5
  10149. ac_status=$?
  10150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10151. (exit $ac_status); }; } &&
  10152. { ac_try='test -s conftest.$ac_objext'
  10153. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10154. (eval $ac_try) 2>&5
  10155. ac_status=$?
  10156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10157. (exit $ac_status); }; }; then
  10158. ac_header_compiler=yes
  10159. else
  10160. echo "$as_me: failed program was:" >&5
  10161. sed 's/^/| /' conftest.$ac_ext >&5
  10162. ac_header_compiler=no
  10163. fi
  10164. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10165. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10166. echo "${ECHO_T}$ac_header_compiler" >&6
  10167. # Is the header present?
  10168. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10169. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  10170. cat >conftest.$ac_ext <<_ACEOF
  10171. /* confdefs.h. */
  10172. _ACEOF
  10173. cat confdefs.h >>conftest.$ac_ext
  10174. cat >>conftest.$ac_ext <<_ACEOF
  10175. /* end confdefs.h. */
  10176. #include <$ac_header>
  10177. _ACEOF
  10178. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  10179. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10180. ac_status=$?
  10181. grep -v '^ *+' conftest.er1 >conftest.err
  10182. rm -f conftest.er1
  10183. cat conftest.err >&5
  10184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10185. (exit $ac_status); } >/dev/null; then
  10186. if test -s conftest.err; then
  10187. ac_cpp_err=$ac_c_preproc_warn_flag
  10188. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10189. else
  10190. ac_cpp_err=
  10191. fi
  10192. else
  10193. ac_cpp_err=yes
  10194. fi
  10195. if test -z "$ac_cpp_err"; then
  10196. ac_header_preproc=yes
  10197. else
  10198. echo "$as_me: failed program was:" >&5
  10199. sed 's/^/| /' conftest.$ac_ext >&5
  10200. ac_header_preproc=no
  10201. fi
  10202. rm -f conftest.err conftest.$ac_ext
  10203. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10204. echo "${ECHO_T}$ac_header_preproc" >&6
  10205. # So? What about this header?
  10206. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10207. yes:no: )
  10208. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10209. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10210. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10211. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10212. ac_header_preproc=yes
  10213. ;;
  10214. no:yes:* )
  10215. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10216. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10217. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10218. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10219. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10220. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10221. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10222. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10223. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10224. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10225. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10226. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10227. (
  10228. cat <<\_ASBOX
  10229. ## ------------------------------------------ ##
  10230. ## Report this to the AC_PACKAGE_NAME lists. ##
  10231. ## ------------------------------------------ ##
  10232. _ASBOX
  10233. ) |
  10234. sed "s/^/$as_me: WARNING: /" >&2
  10235. ;;
  10236. esac
  10237. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10238. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10239. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10240. echo $ECHO_N "(cached) $ECHO_C" >&6
  10241. else
  10242. eval "$as_ac_Header=\$ac_header_preproc"
  10243. fi
  10244. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10245. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10246. fi
  10247. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10248. cat >>confdefs.h <<_ACEOF
  10249. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10250. _ACEOF
  10251. fi
  10252. done
  10253. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  10254. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  10255. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  10256. echo $ECHO_N "(cached) $ECHO_C" >&6
  10257. else
  10258. if test "$cross_compiling" = yes; then
  10259. ac_cv_func_realloc_0_nonnull=no
  10260. else
  10261. cat >conftest.$ac_ext <<_ACEOF
  10262. /* confdefs.h. */
  10263. _ACEOF
  10264. cat confdefs.h >>conftest.$ac_ext
  10265. cat >>conftest.$ac_ext <<_ACEOF
  10266. /* end confdefs.h. */
  10267. #if STDC_HEADERS || HAVE_STDLIB_H
  10268. # include <stdlib.h>
  10269. #else
  10270. char *realloc ();
  10271. #endif
  10272. int
  10273. main ()
  10274. {
  10275. exit (realloc (0, 0) ? 0 : 1);
  10276. ;
  10277. return 0;
  10278. }
  10279. _ACEOF
  10280. rm -f conftest$ac_exeext
  10281. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10282. (eval $ac_link) 2>&5
  10283. ac_status=$?
  10284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10285. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10286. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10287. (eval $ac_try) 2>&5
  10288. ac_status=$?
  10289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10290. (exit $ac_status); }; }; then
  10291. ac_cv_func_realloc_0_nonnull=yes
  10292. else
  10293. echo "$as_me: program exited with status $ac_status" >&5
  10294. echo "$as_me: failed program was:" >&5
  10295. sed 's/^/| /' conftest.$ac_ext >&5
  10296. ( exit $ac_status )
  10297. ac_cv_func_realloc_0_nonnull=no
  10298. fi
  10299. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10300. fi
  10301. fi
  10302. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  10303. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  10304. if test $ac_cv_func_realloc_0_nonnull = yes; then
  10305. cat >>confdefs.h <<\_ACEOF
  10306. #define HAVE_REALLOC 1
  10307. _ACEOF
  10308. else
  10309. cat >>confdefs.h <<\_ACEOF
  10310. #define HAVE_REALLOC 0
  10311. _ACEOF
  10312. case $LIBOBJS in
  10313. "realloc.$ac_objext" | \
  10314. *" realloc.$ac_objext" | \
  10315. "realloc.$ac_objext "* | \
  10316. *" realloc.$ac_objext "* ) ;;
  10317. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  10318. esac
  10319. cat >>confdefs.h <<\_ACEOF
  10320. #define realloc rpl_realloc
  10321. _ACEOF
  10322. fi
  10323. for ac_header in sys/select.h sys/socket.h
  10324. do
  10325. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10326. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10327. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10328. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10329. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10330. echo $ECHO_N "(cached) $ECHO_C" >&6
  10331. fi
  10332. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10333. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10334. else
  10335. # Is the header compilable?
  10336. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10337. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  10338. cat >conftest.$ac_ext <<_ACEOF
  10339. /* confdefs.h. */
  10340. _ACEOF
  10341. cat confdefs.h >>conftest.$ac_ext
  10342. cat >>conftest.$ac_ext <<_ACEOF
  10343. /* end confdefs.h. */
  10344. $ac_includes_default
  10345. #include <$ac_header>
  10346. _ACEOF
  10347. rm -f conftest.$ac_objext
  10348. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10349. (eval $ac_compile) 2>conftest.er1
  10350. ac_status=$?
  10351. grep -v '^ *+' conftest.er1 >conftest.err
  10352. rm -f conftest.er1
  10353. cat conftest.err >&5
  10354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10355. (exit $ac_status); } &&
  10356. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10357. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10358. (eval $ac_try) 2>&5
  10359. ac_status=$?
  10360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10361. (exit $ac_status); }; } &&
  10362. { ac_try='test -s conftest.$ac_objext'
  10363. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10364. (eval $ac_try) 2>&5
  10365. ac_status=$?
  10366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10367. (exit $ac_status); }; }; then
  10368. ac_header_compiler=yes
  10369. else
  10370. echo "$as_me: failed program was:" >&5
  10371. sed 's/^/| /' conftest.$ac_ext >&5
  10372. ac_header_compiler=no
  10373. fi
  10374. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10375. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10376. echo "${ECHO_T}$ac_header_compiler" >&6
  10377. # Is the header present?
  10378. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10379. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  10380. cat >conftest.$ac_ext <<_ACEOF
  10381. /* confdefs.h. */
  10382. _ACEOF
  10383. cat confdefs.h >>conftest.$ac_ext
  10384. cat >>conftest.$ac_ext <<_ACEOF
  10385. /* end confdefs.h. */
  10386. #include <$ac_header>
  10387. _ACEOF
  10388. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  10389. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10390. ac_status=$?
  10391. grep -v '^ *+' conftest.er1 >conftest.err
  10392. rm -f conftest.er1
  10393. cat conftest.err >&5
  10394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10395. (exit $ac_status); } >/dev/null; then
  10396. if test -s conftest.err; then
  10397. ac_cpp_err=$ac_c_preproc_warn_flag
  10398. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10399. else
  10400. ac_cpp_err=
  10401. fi
  10402. else
  10403. ac_cpp_err=yes
  10404. fi
  10405. if test -z "$ac_cpp_err"; then
  10406. ac_header_preproc=yes
  10407. else
  10408. echo "$as_me: failed program was:" >&5
  10409. sed 's/^/| /' conftest.$ac_ext >&5
  10410. ac_header_preproc=no
  10411. fi
  10412. rm -f conftest.err conftest.$ac_ext
  10413. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10414. echo "${ECHO_T}$ac_header_preproc" >&6
  10415. # So? What about this header?
  10416. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10417. yes:no: )
  10418. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10419. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10420. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10421. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10422. ac_header_preproc=yes
  10423. ;;
  10424. no:yes:* )
  10425. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10426. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10427. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10428. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10429. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10430. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10431. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10432. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10433. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10434. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10435. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10436. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10437. (
  10438. cat <<\_ASBOX
  10439. ## ------------------------------------------ ##
  10440. ## Report this to the AC_PACKAGE_NAME lists. ##
  10441. ## ------------------------------------------ ##
  10442. _ASBOX
  10443. ) |
  10444. sed "s/^/$as_me: WARNING: /" >&2
  10445. ;;
  10446. esac
  10447. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10448. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10449. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10450. echo $ECHO_N "(cached) $ECHO_C" >&6
  10451. else
  10452. eval "$as_ac_Header=\$ac_header_preproc"
  10453. fi
  10454. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10455. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10456. fi
  10457. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10458. cat >>confdefs.h <<_ACEOF
  10459. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10460. _ACEOF
  10461. fi
  10462. done
  10463. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  10464. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  10465. if test "${ac_cv_func_select_args+set}" = set; then
  10466. echo $ECHO_N "(cached) $ECHO_C" >&6
  10467. else
  10468. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  10469. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  10470. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  10471. cat >conftest.$ac_ext <<_ACEOF
  10472. /* confdefs.h. */
  10473. _ACEOF
  10474. cat confdefs.h >>conftest.$ac_ext
  10475. cat >>conftest.$ac_ext <<_ACEOF
  10476. /* end confdefs.h. */
  10477. $ac_includes_default
  10478. #if HAVE_SYS_SELECT_H
  10479. # include <sys/select.h>
  10480. #endif
  10481. #if HAVE_SYS_SOCKET_H
  10482. # include <sys/socket.h>
  10483. #endif
  10484. int
  10485. main ()
  10486. {
  10487. extern int select ($ac_arg1,
  10488. $ac_arg234, $ac_arg234, $ac_arg234,
  10489. $ac_arg5);
  10490. ;
  10491. return 0;
  10492. }
  10493. _ACEOF
  10494. rm -f conftest.$ac_objext
  10495. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10496. (eval $ac_compile) 2>conftest.er1
  10497. ac_status=$?
  10498. grep -v '^ *+' conftest.er1 >conftest.err
  10499. rm -f conftest.er1
  10500. cat conftest.err >&5
  10501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10502. (exit $ac_status); } &&
  10503. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10504. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10505. (eval $ac_try) 2>&5
  10506. ac_status=$?
  10507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10508. (exit $ac_status); }; } &&
  10509. { ac_try='test -s conftest.$ac_objext'
  10510. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10511. (eval $ac_try) 2>&5
  10512. ac_status=$?
  10513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10514. (exit $ac_status); }; }; then
  10515. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  10516. else
  10517. echo "$as_me: failed program was:" >&5
  10518. sed 's/^/| /' conftest.$ac_ext >&5
  10519. fi
  10520. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10521. done
  10522. done
  10523. done
  10524. # Provide a safe default value.
  10525. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  10526. fi
  10527. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  10528. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  10529. ac_save_IFS=$IFS; IFS=','
  10530. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  10531. IFS=$ac_save_IFS
  10532. shift
  10533. cat >>confdefs.h <<_ACEOF
  10534. #define SELECT_TYPE_ARG1 $1
  10535. _ACEOF
  10536. cat >>confdefs.h <<_ACEOF
  10537. #define SELECT_TYPE_ARG234 ($2)
  10538. _ACEOF
  10539. cat >>confdefs.h <<_ACEOF
  10540. #define SELECT_TYPE_ARG5 ($3)
  10541. _ACEOF
  10542. rm -f conftest*
  10543. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  10544. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  10545. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  10546. echo $ECHO_N "(cached) $ECHO_C" >&6
  10547. else
  10548. if test "$cross_compiling" = yes; then
  10549. ac_cv_func_stat_empty_string_bug=yes
  10550. else
  10551. cat >conftest.$ac_ext <<_ACEOF
  10552. /* confdefs.h. */
  10553. _ACEOF
  10554. cat confdefs.h >>conftest.$ac_ext
  10555. cat >>conftest.$ac_ext <<_ACEOF
  10556. /* end confdefs.h. */
  10557. $ac_includes_default
  10558. int
  10559. main ()
  10560. {
  10561. struct stat sbuf;
  10562. exit (stat ("", &sbuf) ? 1 : 0);
  10563. ;
  10564. return 0;
  10565. }
  10566. _ACEOF
  10567. rm -f conftest$ac_exeext
  10568. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10569. (eval $ac_link) 2>&5
  10570. ac_status=$?
  10571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10572. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10573. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10574. (eval $ac_try) 2>&5
  10575. ac_status=$?
  10576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10577. (exit $ac_status); }; }; then
  10578. ac_cv_func_stat_empty_string_bug=yes
  10579. else
  10580. echo "$as_me: program exited with status $ac_status" >&5
  10581. echo "$as_me: failed program was:" >&5
  10582. sed 's/^/| /' conftest.$ac_ext >&5
  10583. ( exit $ac_status )
  10584. ac_cv_func_stat_empty_string_bug=no
  10585. fi
  10586. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10587. fi
  10588. fi
  10589. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  10590. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  10591. if test $ac_cv_func_stat_empty_string_bug = yes; then
  10592. case $LIBOBJS in
  10593. "stat.$ac_objext" | \
  10594. *" stat.$ac_objext" | \
  10595. "stat.$ac_objext "* | \
  10596. *" stat.$ac_objext "* ) ;;
  10597. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  10598. esac
  10599. cat >>confdefs.h <<_ACEOF
  10600. #define HAVE_STAT_EMPTY_STRING_BUG 1
  10601. _ACEOF
  10602. fi
  10603. for ac_func in strftime
  10604. do
  10605. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10606. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10607. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10608. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10609. echo $ECHO_N "(cached) $ECHO_C" >&6
  10610. else
  10611. cat >conftest.$ac_ext <<_ACEOF
  10612. /* confdefs.h. */
  10613. _ACEOF
  10614. cat confdefs.h >>conftest.$ac_ext
  10615. cat >>conftest.$ac_ext <<_ACEOF
  10616. /* end confdefs.h. */
  10617. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10618. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10619. #define $ac_func innocuous_$ac_func
  10620. /* System header to define __stub macros and hopefully few prototypes,
  10621. which can conflict with char $ac_func (); below.
  10622. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10623. <limits.h> exists even on freestanding compilers. */
  10624. #ifdef __STDC__
  10625. # include <limits.h>
  10626. #else
  10627. # include <assert.h>
  10628. #endif
  10629. #undef $ac_func
  10630. /* Override any gcc2 internal prototype to avoid an error. */
  10631. #ifdef __cplusplus
  10632. extern "C"
  10633. {
  10634. #endif
  10635. /* We use char because int might match the return type of a gcc2
  10636. builtin and then its argument prototype would still apply. */
  10637. char $ac_func ();
  10638. /* The GNU C library defines this for functions which it implements
  10639. to always fail with ENOSYS. Some functions are actually named
  10640. something starting with __ and the normal name is an alias. */
  10641. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10642. choke me
  10643. #else
  10644. char (*f) () = $ac_func;
  10645. #endif
  10646. #ifdef __cplusplus
  10647. }
  10648. #endif
  10649. int
  10650. main ()
  10651. {
  10652. return f != $ac_func;
  10653. ;
  10654. return 0;
  10655. }
  10656. _ACEOF
  10657. rm -f conftest.$ac_objext conftest$ac_exeext
  10658. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10659. (eval $ac_link) 2>conftest.er1
  10660. ac_status=$?
  10661. grep -v '^ *+' conftest.er1 >conftest.err
  10662. rm -f conftest.er1
  10663. cat conftest.err >&5
  10664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10665. (exit $ac_status); } &&
  10666. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10667. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10668. (eval $ac_try) 2>&5
  10669. ac_status=$?
  10670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10671. (exit $ac_status); }; } &&
  10672. { ac_try='test -s conftest$ac_exeext'
  10673. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10674. (eval $ac_try) 2>&5
  10675. ac_status=$?
  10676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10677. (exit $ac_status); }; }; then
  10678. eval "$as_ac_var=yes"
  10679. else
  10680. echo "$as_me: failed program was:" >&5
  10681. sed 's/^/| /' conftest.$ac_ext >&5
  10682. eval "$as_ac_var=no"
  10683. fi
  10684. rm -f conftest.err conftest.$ac_objext \
  10685. conftest$ac_exeext conftest.$ac_ext
  10686. fi
  10687. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10688. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10689. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10690. cat >>confdefs.h <<_ACEOF
  10691. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10692. _ACEOF
  10693. else
  10694. # strftime is in -lintl on SCO UNIX.
  10695. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  10696. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  10697. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  10698. echo $ECHO_N "(cached) $ECHO_C" >&6
  10699. else
  10700. ac_check_lib_save_LIBS=$LIBS
  10701. LIBS="-lintl $LIBS"
  10702. cat >conftest.$ac_ext <<_ACEOF
  10703. /* confdefs.h. */
  10704. _ACEOF
  10705. cat confdefs.h >>conftest.$ac_ext
  10706. cat >>conftest.$ac_ext <<_ACEOF
  10707. /* end confdefs.h. */
  10708. /* Override any gcc2 internal prototype to avoid an error. */
  10709. #ifdef __cplusplus
  10710. extern "C"
  10711. #endif
  10712. /* We use char because int might match the return type of a gcc2
  10713. builtin and then its argument prototype would still apply. */
  10714. char strftime ();
  10715. int
  10716. main ()
  10717. {
  10718. strftime ();
  10719. ;
  10720. return 0;
  10721. }
  10722. _ACEOF
  10723. rm -f conftest.$ac_objext conftest$ac_exeext
  10724. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10725. (eval $ac_link) 2>conftest.er1
  10726. ac_status=$?
  10727. grep -v '^ *+' conftest.er1 >conftest.err
  10728. rm -f conftest.er1
  10729. cat conftest.err >&5
  10730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10731. (exit $ac_status); } &&
  10732. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10733. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10734. (eval $ac_try) 2>&5
  10735. ac_status=$?
  10736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10737. (exit $ac_status); }; } &&
  10738. { ac_try='test -s conftest$ac_exeext'
  10739. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10740. (eval $ac_try) 2>&5
  10741. ac_status=$?
  10742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10743. (exit $ac_status); }; }; then
  10744. ac_cv_lib_intl_strftime=yes
  10745. else
  10746. echo "$as_me: failed program was:" >&5
  10747. sed 's/^/| /' conftest.$ac_ext >&5
  10748. ac_cv_lib_intl_strftime=no
  10749. fi
  10750. rm -f conftest.err conftest.$ac_objext \
  10751. conftest$ac_exeext conftest.$ac_ext
  10752. LIBS=$ac_check_lib_save_LIBS
  10753. fi
  10754. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  10755. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  10756. if test $ac_cv_lib_intl_strftime = yes; then
  10757. cat >>confdefs.h <<\_ACEOF
  10758. #define HAVE_STRFTIME 1
  10759. _ACEOF
  10760. LIBS="-lintl $LIBS"
  10761. fi
  10762. fi
  10763. done
  10764. #checkpoint
  10765. cat >confcache <<\_ACEOF
  10766. # This file is a shell script that caches the results of configure
  10767. # tests run on this system so they can be shared between configure
  10768. # scripts and configure runs, see configure's option --config-cache.
  10769. # It is not useful on other systems. If it contains results you don't
  10770. # want to keep, you may remove or edit it.
  10771. #
  10772. # config.status only pays attention to the cache file if you give it
  10773. # the --recheck option to rerun configure.
  10774. #
  10775. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10776. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10777. # following values.
  10778. _ACEOF
  10779. # The following way of writing the cache mishandles newlines in values,
  10780. # but we know of no workaround that is simple, portable, and efficient.
  10781. # So, don't put newlines in cache variables' values.
  10782. # Ultrix sh set writes to stderr and can't be redirected directly,
  10783. # and sets the high bit in the cache file unless we assign to the vars.
  10784. {
  10785. (set) 2>&1 |
  10786. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10787. *ac_space=\ *)
  10788. # `set' does not quote correctly, so add quotes (double-quote
  10789. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10790. sed -n \
  10791. "s/'/'\\\\''/g;
  10792. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10793. ;;
  10794. *)
  10795. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10796. sed -n \
  10797. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10798. ;;
  10799. esac;
  10800. } |
  10801. sed '
  10802. t clear
  10803. : clear
  10804. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10805. t end
  10806. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10807. : end' >>confcache
  10808. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10809. if test -w $cache_file; then
  10810. test "x$cache_file" != "x/dev/null"
  10811. cat confcache >$cache_file
  10812. else
  10813. echo "not updating unwritable cache $cache_file"
  10814. fi
  10815. fi
  10816. rm -f confcache
  10817. for ac_func in clock dprintf fsync getdtablesize getrusage inet_aton isascii gethostbyname2
  10818. do
  10819. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10820. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10821. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10822. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10823. echo $ECHO_N "(cached) $ECHO_C" >&6
  10824. else
  10825. cat >conftest.$ac_ext <<_ACEOF
  10826. /* confdefs.h. */
  10827. _ACEOF
  10828. cat confdefs.h >>conftest.$ac_ext
  10829. cat >>conftest.$ac_ext <<_ACEOF
  10830. /* end confdefs.h. */
  10831. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10832. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10833. #define $ac_func innocuous_$ac_func
  10834. /* System header to define __stub macros and hopefully few prototypes,
  10835. which can conflict with char $ac_func (); below.
  10836. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10837. <limits.h> exists even on freestanding compilers. */
  10838. #ifdef __STDC__
  10839. # include <limits.h>
  10840. #else
  10841. # include <assert.h>
  10842. #endif
  10843. #undef $ac_func
  10844. /* Override any gcc2 internal prototype to avoid an error. */
  10845. #ifdef __cplusplus
  10846. extern "C"
  10847. {
  10848. #endif
  10849. /* We use char because int might match the return type of a gcc2
  10850. builtin and then its argument prototype would still apply. */
  10851. char $ac_func ();
  10852. /* The GNU C library defines this for functions which it implements
  10853. to always fail with ENOSYS. Some functions are actually named
  10854. something starting with __ and the normal name is an alias. */
  10855. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10856. choke me
  10857. #else
  10858. char (*f) () = $ac_func;
  10859. #endif
  10860. #ifdef __cplusplus
  10861. }
  10862. #endif
  10863. int
  10864. main ()
  10865. {
  10866. return f != $ac_func;
  10867. ;
  10868. return 0;
  10869. }
  10870. _ACEOF
  10871. rm -f conftest.$ac_objext conftest$ac_exeext
  10872. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10873. (eval $ac_link) 2>conftest.er1
  10874. ac_status=$?
  10875. grep -v '^ *+' conftest.er1 >conftest.err
  10876. rm -f conftest.er1
  10877. cat conftest.err >&5
  10878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10879. (exit $ac_status); } &&
  10880. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10881. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10882. (eval $ac_try) 2>&5
  10883. ac_status=$?
  10884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10885. (exit $ac_status); }; } &&
  10886. { ac_try='test -s conftest$ac_exeext'
  10887. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10888. (eval $ac_try) 2>&5
  10889. ac_status=$?
  10890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10891. (exit $ac_status); }; }; then
  10892. eval "$as_ac_var=yes"
  10893. else
  10894. echo "$as_me: failed program was:" >&5
  10895. sed 's/^/| /' conftest.$ac_ext >&5
  10896. eval "$as_ac_var=no"
  10897. fi
  10898. rm -f conftest.err conftest.$ac_objext \
  10899. conftest$ac_exeext conftest.$ac_ext
  10900. fi
  10901. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10902. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10903. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10904. cat >>confdefs.h <<_ACEOF
  10905. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10906. _ACEOF
  10907. fi
  10908. done
  10909. for ac_func in getipnodebyname memcpy memset random rename setpgid sigaction sigemptyset snprintf srandom
  10910. do
  10911. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10912. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10913. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10914. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10915. echo $ECHO_N "(cached) $ECHO_C" >&6
  10916. else
  10917. cat >conftest.$ac_ext <<_ACEOF
  10918. /* confdefs.h. */
  10919. _ACEOF
  10920. cat confdefs.h >>conftest.$ac_ext
  10921. cat >>conftest.$ac_ext <<_ACEOF
  10922. /* end confdefs.h. */
  10923. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10924. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10925. #define $ac_func innocuous_$ac_func
  10926. /* System header to define __stub macros and hopefully few prototypes,
  10927. which can conflict with char $ac_func (); below.
  10928. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10929. <limits.h> exists even on freestanding compilers. */
  10930. #ifdef __STDC__
  10931. # include <limits.h>
  10932. #else
  10933. # include <assert.h>
  10934. #endif
  10935. #undef $ac_func
  10936. /* Override any gcc2 internal prototype to avoid an error. */
  10937. #ifdef __cplusplus
  10938. extern "C"
  10939. {
  10940. #endif
  10941. /* We use char because int might match the return type of a gcc2
  10942. builtin and then its argument prototype would still apply. */
  10943. char $ac_func ();
  10944. /* The GNU C library defines this for functions which it implements
  10945. to always fail with ENOSYS. Some functions are actually named
  10946. something starting with __ and the normal name is an alias. */
  10947. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10948. choke me
  10949. #else
  10950. char (*f) () = $ac_func;
  10951. #endif
  10952. #ifdef __cplusplus
  10953. }
  10954. #endif
  10955. int
  10956. main ()
  10957. {
  10958. return f != $ac_func;
  10959. ;
  10960. return 0;
  10961. }
  10962. _ACEOF
  10963. rm -f conftest.$ac_objext conftest$ac_exeext
  10964. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10965. (eval $ac_link) 2>conftest.er1
  10966. ac_status=$?
  10967. grep -v '^ *+' conftest.er1 >conftest.err
  10968. rm -f conftest.er1
  10969. cat conftest.err >&5
  10970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10971. (exit $ac_status); } &&
  10972. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10973. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10974. (eval $ac_try) 2>&5
  10975. ac_status=$?
  10976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10977. (exit $ac_status); }; } &&
  10978. { ac_try='test -s conftest$ac_exeext'
  10979. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10980. (eval $ac_try) 2>&5
  10981. ac_status=$?
  10982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10983. (exit $ac_status); }; }; then
  10984. eval "$as_ac_var=yes"
  10985. else
  10986. echo "$as_me: failed program was:" >&5
  10987. sed 's/^/| /' conftest.$ac_ext >&5
  10988. eval "$as_ac_var=no"
  10989. fi
  10990. rm -f conftest.err conftest.$ac_objext \
  10991. conftest$ac_exeext conftest.$ac_ext
  10992. fi
  10993. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10994. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10995. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10996. cat >>confdefs.h <<_ACEOF
  10997. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10998. _ACEOF
  10999. fi
  11000. done
  11001. #checkpoint
  11002. cat >confcache <<\_ACEOF
  11003. # This file is a shell script that caches the results of configure
  11004. # tests run on this system so they can be shared between configure
  11005. # scripts and configure runs, see configure's option --config-cache.
  11006. # It is not useful on other systems. If it contains results you don't
  11007. # want to keep, you may remove or edit it.
  11008. #
  11009. # config.status only pays attention to the cache file if you give it
  11010. # the --recheck option to rerun configure.
  11011. #
  11012. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11013. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11014. # following values.
  11015. _ACEOF
  11016. # The following way of writing the cache mishandles newlines in values,
  11017. # but we know of no workaround that is simple, portable, and efficient.
  11018. # So, don't put newlines in cache variables' values.
  11019. # Ultrix sh set writes to stderr and can't be redirected directly,
  11020. # and sets the high bit in the cache file unless we assign to the vars.
  11021. {
  11022. (set) 2>&1 |
  11023. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11024. *ac_space=\ *)
  11025. # `set' does not quote correctly, so add quotes (double-quote
  11026. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11027. sed -n \
  11028. "s/'/'\\\\''/g;
  11029. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11030. ;;
  11031. *)
  11032. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11033. sed -n \
  11034. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11035. ;;
  11036. esac;
  11037. } |
  11038. sed '
  11039. t clear
  11040. : clear
  11041. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11042. t end
  11043. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11044. : end' >>confcache
  11045. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11046. if test -w $cache_file; then
  11047. test "x$cache_file" != "x/dev/null"
  11048. cat confcache >$cache_file
  11049. else
  11050. echo "not updating unwritable cache $cache_file"
  11051. fi
  11052. fi
  11053. rm -f confcache
  11054. for ac_func in strcasecmp strncasecmp vsnprintf
  11055. do
  11056. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11057. echo "$as_me:$LINENO: checking for $ac_func" >&5
  11058. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  11059. if eval "test \"\${$as_ac_var+set}\" = set"; then
  11060. echo $ECHO_N "(cached) $ECHO_C" >&6
  11061. else
  11062. cat >conftest.$ac_ext <<_ACEOF
  11063. /* confdefs.h. */
  11064. _ACEOF
  11065. cat confdefs.h >>conftest.$ac_ext
  11066. cat >>conftest.$ac_ext <<_ACEOF
  11067. /* end confdefs.h. */
  11068. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11069. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11070. #define $ac_func innocuous_$ac_func
  11071. /* System header to define __stub macros and hopefully few prototypes,
  11072. which can conflict with char $ac_func (); below.
  11073. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11074. <limits.h> exists even on freestanding compilers. */
  11075. #ifdef __STDC__
  11076. # include <limits.h>
  11077. #else
  11078. # include <assert.h>
  11079. #endif
  11080. #undef $ac_func
  11081. /* Override any gcc2 internal prototype to avoid an error. */
  11082. #ifdef __cplusplus
  11083. extern "C"
  11084. {
  11085. #endif
  11086. /* We use char because int might match the return type of a gcc2
  11087. builtin and then its argument prototype would still apply. */
  11088. char $ac_func ();
  11089. /* The GNU C library defines this for functions which it implements
  11090. to always fail with ENOSYS. Some functions are actually named
  11091. something starting with __ and the normal name is an alias. */
  11092. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  11093. choke me
  11094. #else
  11095. char (*f) () = $ac_func;
  11096. #endif
  11097. #ifdef __cplusplus
  11098. }
  11099. #endif
  11100. int
  11101. main ()
  11102. {
  11103. return f != $ac_func;
  11104. ;
  11105. return 0;
  11106. }
  11107. _ACEOF
  11108. rm -f conftest.$ac_objext conftest$ac_exeext
  11109. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11110. (eval $ac_link) 2>conftest.er1
  11111. ac_status=$?
  11112. grep -v '^ *+' conftest.er1 >conftest.err
  11113. rm -f conftest.er1
  11114. cat conftest.err >&5
  11115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11116. (exit $ac_status); } &&
  11117. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11118. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11119. (eval $ac_try) 2>&5
  11120. ac_status=$?
  11121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11122. (exit $ac_status); }; } &&
  11123. { ac_try='test -s conftest$ac_exeext'
  11124. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11125. (eval $ac_try) 2>&5
  11126. ac_status=$?
  11127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11128. (exit $ac_status); }; }; then
  11129. eval "$as_ac_var=yes"
  11130. else
  11131. echo "$as_me: failed program was:" >&5
  11132. sed 's/^/| /' conftest.$ac_ext >&5
  11133. eval "$as_ac_var=no"
  11134. fi
  11135. rm -f conftest.err conftest.$ac_objext \
  11136. conftest$ac_exeext conftest.$ac_ext
  11137. fi
  11138. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  11139. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  11140. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11141. cat >>confdefs.h <<_ACEOF
  11142. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11143. _ACEOF
  11144. fi
  11145. done
  11146. #autoscan suggested this....
  11147. #These are recommended by autoscan, but no code supports it currently
  11148. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa mbrlen mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  11149. for ac_func in vsprintf
  11150. do
  11151. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11152. echo "$as_me:$LINENO: checking for $ac_func" >&5
  11153. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  11154. if eval "test \"\${$as_ac_var+set}\" = set"; then
  11155. echo $ECHO_N "(cached) $ECHO_C" >&6
  11156. else
  11157. cat >conftest.$ac_ext <<_ACEOF
  11158. /* confdefs.h. */
  11159. _ACEOF
  11160. cat confdefs.h >>conftest.$ac_ext
  11161. cat >>conftest.$ac_ext <<_ACEOF
  11162. /* end confdefs.h. */
  11163. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11164. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11165. #define $ac_func innocuous_$ac_func
  11166. /* System header to define __stub macros and hopefully few prototypes,
  11167. which can conflict with char $ac_func (); below.
  11168. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11169. <limits.h> exists even on freestanding compilers. */
  11170. #ifdef __STDC__
  11171. # include <limits.h>
  11172. #else
  11173. # include <assert.h>
  11174. #endif
  11175. #undef $ac_func
  11176. /* Override any gcc2 internal prototype to avoid an error. */
  11177. #ifdef __cplusplus
  11178. extern "C"
  11179. {
  11180. #endif
  11181. /* We use char because int might match the return type of a gcc2
  11182. builtin and then its argument prototype would still apply. */
  11183. char $ac_func ();
  11184. /* The GNU C library defines this for functions which it implements
  11185. to always fail with ENOSYS. Some functions are actually named
  11186. something starting with __ and the normal name is an alias. */
  11187. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  11188. choke me
  11189. #else
  11190. char (*f) () = $ac_func;
  11191. #endif
  11192. #ifdef __cplusplus
  11193. }
  11194. #endif
  11195. int
  11196. main ()
  11197. {
  11198. return f != $ac_func;
  11199. ;
  11200. return 0;
  11201. }
  11202. _ACEOF
  11203. rm -f conftest.$ac_objext conftest$ac_exeext
  11204. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11205. (eval $ac_link) 2>conftest.er1
  11206. ac_status=$?
  11207. grep -v '^ *+' conftest.er1 >conftest.err
  11208. rm -f conftest.er1
  11209. cat conftest.err >&5
  11210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11211. (exit $ac_status); } &&
  11212. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11213. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11214. (eval $ac_try) 2>&5
  11215. ac_status=$?
  11216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11217. (exit $ac_status); }; } &&
  11218. { ac_try='test -s conftest$ac_exeext'
  11219. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11220. (eval $ac_try) 2>&5
  11221. ac_status=$?
  11222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11223. (exit $ac_status); }; }; then
  11224. eval "$as_ac_var=yes"
  11225. else
  11226. echo "$as_me: failed program was:" >&5
  11227. sed 's/^/| /' conftest.$ac_ext >&5
  11228. eval "$as_ac_var=no"
  11229. fi
  11230. rm -f conftest.err conftest.$ac_objext \
  11231. conftest$ac_exeext conftest.$ac_ext
  11232. fi
  11233. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  11234. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  11235. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11236. cat >>confdefs.h <<_ACEOF
  11237. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11238. _ACEOF
  11239. fi
  11240. done
  11241. if test "$ac_cv_func_vsprintf" = "no"
  11242. then
  11243. cat << 'EOF' >&2
  11244. configure: error:
  11245. Your system does not have the sprintf/vsprintf libraries.
  11246. These are required to compile almost anything. Sorry.
  11247. EOF
  11248. exit 1
  11249. fi
  11250. for ac_func in uname
  11251. do
  11252. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11253. echo "$as_me:$LINENO: checking for $ac_func" >&5
  11254. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  11255. if eval "test \"\${$as_ac_var+set}\" = set"; then
  11256. echo $ECHO_N "(cached) $ECHO_C" >&6
  11257. else
  11258. cat >conftest.$ac_ext <<_ACEOF
  11259. /* confdefs.h. */
  11260. _ACEOF
  11261. cat confdefs.h >>conftest.$ac_ext
  11262. cat >>conftest.$ac_ext <<_ACEOF
  11263. /* end confdefs.h. */
  11264. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11265. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11266. #define $ac_func innocuous_$ac_func
  11267. /* System header to define __stub macros and hopefully few prototypes,
  11268. which can conflict with char $ac_func (); below.
  11269. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11270. <limits.h> exists even on freestanding compilers. */
  11271. #ifdef __STDC__
  11272. # include <limits.h>
  11273. #else
  11274. # include <assert.h>
  11275. #endif
  11276. #undef $ac_func
  11277. /* Override any gcc2 internal prototype to avoid an error. */
  11278. #ifdef __cplusplus
  11279. extern "C"
  11280. {
  11281. #endif
  11282. /* We use char because int might match the return type of a gcc2
  11283. builtin and then its argument prototype would still apply. */
  11284. char $ac_func ();
  11285. /* The GNU C library defines this for functions which it implements
  11286. to always fail with ENOSYS. Some functions are actually named
  11287. something starting with __ and the normal name is an alias. */
  11288. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  11289. choke me
  11290. #else
  11291. char (*f) () = $ac_func;
  11292. #endif
  11293. #ifdef __cplusplus
  11294. }
  11295. #endif
  11296. int
  11297. main ()
  11298. {
  11299. return f != $ac_func;
  11300. ;
  11301. return 0;
  11302. }
  11303. _ACEOF
  11304. rm -f conftest.$ac_objext conftest$ac_exeext
  11305. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11306. (eval $ac_link) 2>conftest.er1
  11307. ac_status=$?
  11308. grep -v '^ *+' conftest.er1 >conftest.err
  11309. rm -f conftest.er1
  11310. cat conftest.err >&5
  11311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11312. (exit $ac_status); } &&
  11313. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11314. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11315. (eval $ac_try) 2>&5
  11316. ac_status=$?
  11317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11318. (exit $ac_status); }; } &&
  11319. { ac_try='test -s conftest$ac_exeext'
  11320. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11321. (eval $ac_try) 2>&5
  11322. ac_status=$?
  11323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11324. (exit $ac_status); }; }; then
  11325. eval "$as_ac_var=yes"
  11326. else
  11327. echo "$as_me: failed program was:" >&5
  11328. sed 's/^/| /' conftest.$ac_ext >&5
  11329. eval "$as_ac_var=no"
  11330. fi
  11331. rm -f conftest.err conftest.$ac_objext \
  11332. conftest$ac_exeext conftest.$ac_ext
  11333. fi
  11334. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  11335. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  11336. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11337. cat >>confdefs.h <<_ACEOF
  11338. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11339. _ACEOF
  11340. fi
  11341. done
  11342. if test "$ac_cv_func_uname" = "no"
  11343. then
  11344. cat << 'EOF' >&2
  11345. configure: error:
  11346. Your system does not have the uname() function.
  11347. This is required for the botpack.
  11348. EOF
  11349. exit 1
  11350. fi
  11351. # Make sure we have stdc headers, since we can't compile without them
  11352. if test "$ac_cv_header_stdc" = "no"
  11353. then
  11354. cat << 'EOF' >&2
  11355. configure: error:
  11356. Your system must support ANSI C Header files.
  11357. These are required for the language support. Sorry.
  11358. EOF
  11359. exit 1
  11360. fi
  11361. #checkpoint
  11362. cat >confcache <<\_ACEOF
  11363. # This file is a shell script that caches the results of configure
  11364. # tests run on this system so they can be shared between configure
  11365. # scripts and configure runs, see configure's option --config-cache.
  11366. # It is not useful on other systems. If it contains results you don't
  11367. # want to keep, you may remove or edit it.
  11368. #
  11369. # config.status only pays attention to the cache file if you give it
  11370. # the --recheck option to rerun configure.
  11371. #
  11372. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11373. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11374. # following values.
  11375. _ACEOF
  11376. # The following way of writing the cache mishandles newlines in values,
  11377. # but we know of no workaround that is simple, portable, and efficient.
  11378. # So, don't put newlines in cache variables' values.
  11379. # Ultrix sh set writes to stderr and can't be redirected directly,
  11380. # and sets the high bit in the cache file unless we assign to the vars.
  11381. {
  11382. (set) 2>&1 |
  11383. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11384. *ac_space=\ *)
  11385. # `set' does not quote correctly, so add quotes (double-quote
  11386. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11387. sed -n \
  11388. "s/'/'\\\\''/g;
  11389. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11390. ;;
  11391. *)
  11392. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11393. sed -n \
  11394. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11395. ;;
  11396. esac;
  11397. } |
  11398. sed '
  11399. t clear
  11400. : clear
  11401. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11402. t end
  11403. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11404. : end' >>confcache
  11405. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11406. if test -w $cache_file; then
  11407. test "x$cache_file" != "x/dev/null"
  11408. cat confcache >$cache_file
  11409. else
  11410. echo "not updating unwritable cache $cache_file"
  11411. fi
  11412. fi
  11413. rm -f confcache
  11414. # Where is Tcl? Is it here?
  11415. # ---------- begin robey's Tcl thingies
  11416. # (well, what used to be robey's Tcl thingies...)
  11417. # Latest tested Tcl version to recommend if Tcl isn't found
  11418. tclrecommendver="8.4"
  11419. # Site recommended to download Tcl from
  11420. tclrecommendsite="http://www.tcl.tk/software/tcltk/download84.html"
  11421. # Tcl library filename prefixes (also used for Tcl header dir on FreeBSD)
  11422. tcllibnames="tcl tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 tcl8.1 tcl81 \
  11423. tcl8.0 tcl80"
  11424. # Tcl library filename suffixes
  11425. tcllibextensions=".a .so .so.1 .so.1.0 .so.1.2 .sl .dll .dylib"
  11426. # Tcl library search paths
  11427. tcllibpaths="${HOME}/lib ${HOME}/tcl/lib ${HOME} \
  11428. /usr/local/lib /usr/local/pkgs/tcl/lib \
  11429. /usr/lib /lib /usr/i486-linuxaout/lib \
  11430. /beos/system/lib /sys/lib"
  11431. # Tcl header filenames
  11432. tclheadernames="tcl.h"
  11433. # Tcl header search paths
  11434. tclheaderpaths="${HOME}/include ${HOME}/tcl/include ${HOME} \
  11435. /usr/local/include /usr/local/pkgs/tcl/include \
  11436. /usr/include /beos/system/include /beos/devel/include \
  11437. /sys/include"
  11438. # oohh new configure --variables for those with multiple Tcl libs
  11439. # Check whether --with-tcllib or --without-tcllib was given.
  11440. if test "${with_tcllib+set}" = set; then
  11441. withval="$with_tcllib"
  11442. tcllibname="$withval"
  11443. fi;
  11444. # Check whether --with-tclinc or --without-tclinc was given.
  11445. if test "${with_tclinc+set}" = set; then
  11446. withval="$with_tclinc"
  11447. tclincname="$withval"
  11448. fi;
  11449. WARN=0
  11450. # Make sure either both or neither $tcllibname and $tclincname are set
  11451. if test ! "${tcllibname-x}" = "x"
  11452. then
  11453. if test "${tclincname-x}" = "x"
  11454. then
  11455. WARN=1
  11456. tcllibname=""
  11457. TCLLIB=""
  11458. TCLINC=""
  11459. fi
  11460. else
  11461. if test ! "${tclincname-x}" = "x"
  11462. then
  11463. WARN=1
  11464. tclincname=""
  11465. TCLLIB=""
  11466. TCLINC=""
  11467. fi
  11468. fi
  11469. if test "$WARN" = 1
  11470. then
  11471. cat << 'EOF' >&2
  11472. configure: warning:
  11473. You must specify both --with-tcllib and --with-tclinc for them to work.
  11474. configure will now attempt to autodetect both the Tcl library and header...
  11475. EOF
  11476. fi
  11477. WARN=0
  11478. # Make sure either both or neither $TCLLIB and $TCLINC are set
  11479. if test ! "${TCLLIB-x}" = "x"
  11480. then
  11481. if test "${TCLINC-x}" = "x"
  11482. then
  11483. WARN=1
  11484. WVAR1=TCLLIB
  11485. WVAR2=TCLINC
  11486. TCLLIB=""
  11487. fi
  11488. else
  11489. if test ! "${TCLINC-x}" = "x"
  11490. then
  11491. WARN=1
  11492. WVAR1=TCLINC
  11493. WVAR2=TCLLIB
  11494. TCLINC=""
  11495. fi
  11496. fi
  11497. if test "$WARN" = 1
  11498. then
  11499. cat << EOF >&2
  11500. configure: warning:
  11501. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  11502. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  11503. configure will now attempt to autodetect both the Tcl library and header...
  11504. EOF
  11505. fi
  11506. # Look for Tcl library: if $tcllibname is set, check there first
  11507. if test ! "${tcllibname-x}" = "x"
  11508. then
  11509. if test -f "$tcllibname" && test -r "$tcllibname"
  11510. then
  11511. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  11512. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  11513. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  11514. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  11515. else
  11516. cat << EOF >&2
  11517. configure: warning:
  11518. The file '$tcllibname' given to option --with-tcllib is not valid.
  11519. configure will now attempt to autodetect both the Tcl library and header...
  11520. EOF
  11521. tcllibname=""
  11522. tclincname=""
  11523. TCLLIB=""
  11524. TCLLIBFN=""
  11525. TCLINC=""
  11526. TCLINCFN=""
  11527. fi
  11528. fi
  11529. # Look for Tcl header: if $tclincname is set, check there first
  11530. if test ! "${tclincname-x}" = "x"
  11531. then
  11532. if test -f "$tclincname" && test -r "$tclincname"
  11533. then
  11534. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  11535. TCLINCFN=`$BASENAME $tclincname`
  11536. else
  11537. cat << EOF >&2
  11538. configure: warning:
  11539. The file '$tclincname' given to option --with-tclinc is not valid.
  11540. configure will now attempt to autodetect both the Tcl library and header...
  11541. EOF
  11542. tcllibname=""
  11543. tclincname=""
  11544. TCLLIB=""
  11545. TCLLIBFN=""
  11546. TCLINC=""
  11547. TCLINCFN=""
  11548. fi
  11549. fi
  11550. # Look for Tcl library: if $TCLLIB is set, check there first
  11551. if test "${TCLLIBFN-x}" = "x"
  11552. then
  11553. if test ! "${TCLLIB-x}" = "x"
  11554. then
  11555. if test -d "$TCLLIB"
  11556. then
  11557. for tcllibfns in $tcllibnames
  11558. do
  11559. for tcllibext in $tcllibextensions
  11560. do
  11561. if test -r "$TCLLIB/lib$tcllibfns$tcllibext"
  11562. then
  11563. TCLLIBFN="$tcllibfns$tcllibext"
  11564. TCLLIBEXT="$tcllibext"
  11565. TCLLIBFNS="$tcllibfns"
  11566. break 2
  11567. fi
  11568. done
  11569. done
  11570. fi
  11571. if test "${TCLLIBFN-x}" = "x"
  11572. then
  11573. cat << 'EOF' >&2
  11574. configure: warning:
  11575. Environment variable TCLLIB was set, but incorrect.
  11576. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  11577. configure will now attempt to autodetect both the Tcl library and header...
  11578. EOF
  11579. TCLLIB=""
  11580. TCLLIBFN=""
  11581. TCLINC=""
  11582. TCLINCFN=""
  11583. fi
  11584. fi
  11585. fi
  11586. # Look for Tcl header: if $TCLINC is set, check there first
  11587. if test "${TCLINCFN-x}" = "x"
  11588. then
  11589. if test ! "${TCLINC-x}" = "x"
  11590. then
  11591. if test -d "$TCLINC"
  11592. then
  11593. for tclheaderfn in $tclheadernames
  11594. do
  11595. if test -r "$TCLINC/$tclheaderfn"
  11596. then
  11597. TCLINCFN="$tclheaderfn"
  11598. break
  11599. fi
  11600. done
  11601. fi
  11602. if test "${TCLINCFN-x}" = "x"
  11603. then
  11604. cat << 'EOF' >&2
  11605. configure: warning:
  11606. Environment variable TCLINC was set, but incorrect.
  11607. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  11608. configure will now attempt to autodetect both the Tcl library and header...
  11609. EOF
  11610. TCLLIB=""
  11611. TCLLIBFN=""
  11612. TCLINC=""
  11613. TCLINCFN=""
  11614. fi
  11615. fi
  11616. fi
  11617. echo "$as_me:$LINENO: checking for Tcl library" >&5
  11618. echo $ECHO_N "checking for Tcl library... $ECHO_C" >&6
  11619. # Attempt autodetect for $TCLLIBFN if it's not set
  11620. if test ! "${TCLLIBFN-x}" = "x"
  11621. then
  11622. echo "$as_me:$LINENO: result: using $TCLLIB/lib$TCLLIBFN" >&5
  11623. echo "${ECHO_T}using $TCLLIB/lib$TCLLIBFN" >&6
  11624. else
  11625. for tcllibfns in $tcllibnames
  11626. do
  11627. for tcllibext in $tcllibextensions
  11628. do
  11629. for tcllibpath in $tcllibpaths
  11630. do
  11631. if test -r "$tcllibpath/lib$tcllibfns$tcllibext"
  11632. then
  11633. echo "$as_me:$LINENO: result: found $tcllibpath/lib$tcllibfns$tcllibext" >&5
  11634. echo "${ECHO_T}found $tcllibpath/lib$tcllibfns$tcllibext" >&6
  11635. TCLLIB="$tcllibpath"
  11636. TCLLIBFN="$tcllibfns$tcllibext"
  11637. TCLLIBEXT="$tcllibext"
  11638. TCLLIBFNS="$tcllibfns"
  11639. break 3
  11640. fi
  11641. done
  11642. done
  11643. done
  11644. fi
  11645. # Show if $TCLLIBFN wasn't found
  11646. if test "${TCLLIBFN-x}" = "x"
  11647. then
  11648. echo "$as_me:$LINENO: result: not found" >&5
  11649. echo "${ECHO_T}not found" >&6
  11650. fi
  11651. echo "$as_me:$LINENO: checking for Tcl header" >&5
  11652. echo $ECHO_N "checking for Tcl header... $ECHO_C" >&6
  11653. # Attempt autodetect for $TCLINCFN if it's not set
  11654. if test ! "${TCLINCFN-x}" = "x"
  11655. then
  11656. echo "$as_me:$LINENO: result: using $TCLINC/$TCLINCFN" >&5
  11657. echo "${ECHO_T}using $TCLINC/$TCLINCFN" >&6
  11658. else
  11659. for tclheaderpath in $tclheaderpaths
  11660. do
  11661. for tclheaderfn in $tclheadernames
  11662. do
  11663. if test -r "$tclheaderpath/$tclheaderfn"
  11664. then
  11665. echo "$as_me:$LINENO: result: found $tclheaderpath/$tclheaderfn" >&5
  11666. echo "${ECHO_T}found $tclheaderpath/$tclheaderfn" >&6
  11667. TCLINC="$tclheaderpath"
  11668. TCLINCFN="$tclheaderfn"
  11669. break 2
  11670. fi
  11671. done
  11672. done
  11673. # FreeBSD hack ...
  11674. if test "${TCLINCFN-x}" = "x"
  11675. then
  11676. for tcllibfns in $tcllibnames
  11677. do
  11678. for tclheaderpath in $tclheaderpaths
  11679. do
  11680. for tclheaderfn in $tclheadernames
  11681. do
  11682. if test -r "$tclheaderpath/$tcllibfns/$tclheaderfn"
  11683. then
  11684. echo "$as_me:$LINENO: result: found $tclheaderpath/$tcllibfns/$tclheaderfn" >&5
  11685. echo "${ECHO_T}found $tclheaderpath/$tcllibfns/$tclheaderfn" >&6
  11686. TCLINC="$tclheaderpath/$tcllibfns"
  11687. TCLINCFN="$tclheaderfn"
  11688. break 3
  11689. fi
  11690. done
  11691. done
  11692. done
  11693. fi
  11694. fi
  11695. # Show if $TCLINCFN wasn't found
  11696. if test "${TCLINCFN-x}" = "x"
  11697. then
  11698. echo "$as_me:$LINENO: result: not found" >&5
  11699. echo "${ECHO_T}not found" >&6
  11700. fi
  11701. echo "$as_me:$LINENO: checking whether the Tcl system has changed" >&5
  11702. echo $ECHO_N "checking whether the Tcl system has changed... $ECHO_C" >&6
  11703. egg_tcl_changed=yes
  11704. egg_tcl_id="$TCLLIB:$TCLLIBFN:$TCLINC:$TCLINCFN"
  11705. if test ! "$egg_tcl_id" = ":::"
  11706. then
  11707. egg_tcl_cached=yes
  11708. if test "${egg_cv_var_tcl_id+set}" = set; then
  11709. echo $ECHO_N "(cached) $ECHO_C" >&6
  11710. else
  11711. egg_cv_var_tcl_id="$egg_tcl_id"
  11712. egg_tcl_cached=no
  11713. fi
  11714. if test "$egg_tcl_cached" = "yes"
  11715. then
  11716. if test "${egg_cv_var_tcl_id-x}" = "${egg_tcl_id-x}"
  11717. then
  11718. egg_tcl_changed=no
  11719. else
  11720. egg_cv_var_tcl_id="$egg_tcl_id"
  11721. fi
  11722. fi
  11723. fi
  11724. if test "$egg_tcl_changed" = "yes"
  11725. then
  11726. echo "$as_me:$LINENO: result: yes" >&5
  11727. echo "${ECHO_T}yes" >&6
  11728. else
  11729. echo "$as_me:$LINENO: result: no" >&5
  11730. echo "${ECHO_T}no" >&6
  11731. fi
  11732. #checkpoint
  11733. cat >confcache <<\_ACEOF
  11734. # This file is a shell script that caches the results of configure
  11735. # tests run on this system so they can be shared between configure
  11736. # scripts and configure runs, see configure's option --config-cache.
  11737. # It is not useful on other systems. If it contains results you don't
  11738. # want to keep, you may remove or edit it.
  11739. #
  11740. # config.status only pays attention to the cache file if you give it
  11741. # the --recheck option to rerun configure.
  11742. #
  11743. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11744. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11745. # following values.
  11746. _ACEOF
  11747. # The following way of writing the cache mishandles newlines in values,
  11748. # but we know of no workaround that is simple, portable, and efficient.
  11749. # So, don't put newlines in cache variables' values.
  11750. # Ultrix sh set writes to stderr and can't be redirected directly,
  11751. # and sets the high bit in the cache file unless we assign to the vars.
  11752. {
  11753. (set) 2>&1 |
  11754. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11755. *ac_space=\ *)
  11756. # `set' does not quote correctly, so add quotes (double-quote
  11757. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11758. sed -n \
  11759. "s/'/'\\\\''/g;
  11760. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11761. ;;
  11762. *)
  11763. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11764. sed -n \
  11765. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11766. ;;
  11767. esac;
  11768. } |
  11769. sed '
  11770. t clear
  11771. : clear
  11772. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11773. t end
  11774. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11775. : end' >>confcache
  11776. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11777. if test -w $cache_file; then
  11778. test "x$cache_file" != "x/dev/null"
  11779. cat confcache >$cache_file
  11780. else
  11781. echo "not updating unwritable cache $cache_file"
  11782. fi
  11783. fi
  11784. rm -f confcache
  11785. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  11786. TCL_FOUND=0
  11787. if test ! "${TCLLIBFN-x}" = "x" && test ! "${TCLINCFN-x}" = "x"
  11788. then
  11789. TCL_FOUND=1
  11790. # Check Tcl's version
  11791. if test "$egg_tcl_changed" = "yes"
  11792. then
  11793. unset egg_cv_var_tcl_version
  11794. fi
  11795. echo "$as_me:$LINENO: checking for Tcl version" >&5
  11796. echo $ECHO_N "checking for Tcl version... $ECHO_C" >&6
  11797. if test "${egg_cv_var_tcl_version+set}" = set; then
  11798. echo $ECHO_N "(cached) $ECHO_C" >&6
  11799. else
  11800. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`
  11801. fi
  11802. if test ! "${egg_cv_var_tcl_version-x}" = "x"
  11803. then
  11804. echo "$as_me:$LINENO: result: $egg_cv_var_tcl_version" >&5
  11805. echo "${ECHO_T}$egg_cv_var_tcl_version" >&6
  11806. else
  11807. echo "$as_me:$LINENO: result: not found" >&5
  11808. echo "${ECHO_T}not found" >&6
  11809. TCL_FOUND=0
  11810. fi
  11811. # Check Tcl's patch level (if available)
  11812. if test "$egg_tcl_changed" = "yes"
  11813. then
  11814. unset egg_cv_var_tcl_patch_level
  11815. fi
  11816. echo "$as_me:$LINENO: checking for Tcl patch level" >&5
  11817. echo $ECHO_N "checking for Tcl patch level... $ECHO_C" >&6
  11818. if test "${egg_cv_var_tcl_patch_level+set}" = set; then
  11819. echo $ECHO_N "(cached) $ECHO_C" >&6
  11820. else
  11821. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`"
  11822. fi
  11823. if test ! "${egg_cv_var_tcl_patch_level-x}" = "x"
  11824. then
  11825. echo "$as_me:$LINENO: result: $egg_cv_var_tcl_patch_level" >&5
  11826. echo "${ECHO_T}$egg_cv_var_tcl_patch_level" >&6
  11827. else
  11828. egg_cv_var_tcl_patch_level="unknown"
  11829. echo "$as_me:$LINENO: result: unknown" >&5
  11830. echo "${ECHO_T}unknown" >&6
  11831. fi
  11832. fi
  11833. # Check if we found Tcl's version
  11834. if test "$TCL_FOUND" = 0
  11835. then
  11836. cat << 'EOF' >&2
  11837. configure: error:
  11838. I can't find Tcl on this system.
  11839. The download website is at:
  11840. http://www.tcl.tk/software/tcltk/download84.html
  11841. A nice direct link for the tarball is:
  11842. http://aleron.dl.sourceforge.net/sourceforge/tcl/tcl8.4.4-src.tar.gz
  11843. OR
  11844. Just type: ./build -T
  11845. EOF
  11846. exit 1
  11847. fi
  11848. # Is this version of Tcl too old for us to use ?
  11849. TCL_VER_PRE80=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 8) print "yes"; else print "no"}'`
  11850. if test "$TCL_VER_PRE80" = "yes"
  11851. then
  11852. cat << EOF >&2
  11853. configure: error:
  11854. Your Tcl version is much too old for Eggdrop to use.
  11855. I suggest you download and compile a more recent version.
  11856. The most reliable current version is $tclrecommendver and
  11857. can be downloaded from $tclrecommendsite
  11858. EOF
  11859. exit 1
  11860. fi
  11861. # Set variables for Tcl library tests
  11862. TCL_TEST_LIB="$TCLLIBFNS"
  11863. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  11864. if test ! "${ac_cv_lib_pthread-x}" = "x"
  11865. then
  11866. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  11867. fi
  11868. if test "$egg_tcl_changed" = "yes"
  11869. then
  11870. unset egg_cv_var_tcl_free
  11871. fi
  11872. # Check for Tcl_Free()
  11873. as_ac_Lib=`echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_Free" | $as_tr_sh`
  11874. echo "$as_me:$LINENO: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  11875. echo $ECHO_N "checking for Tcl_Free in -l$TCL_TEST_LIB... $ECHO_C" >&6
  11876. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  11877. echo $ECHO_N "(cached) $ECHO_C" >&6
  11878. else
  11879. ac_check_lib_save_LIBS=$LIBS
  11880. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  11881. cat >conftest.$ac_ext <<_ACEOF
  11882. /* confdefs.h. */
  11883. _ACEOF
  11884. cat confdefs.h >>conftest.$ac_ext
  11885. cat >>conftest.$ac_ext <<_ACEOF
  11886. /* end confdefs.h. */
  11887. /* Override any gcc2 internal prototype to avoid an error. */
  11888. #ifdef __cplusplus
  11889. extern "C"
  11890. #endif
  11891. /* We use char because int might match the return type of a gcc2
  11892. builtin and then its argument prototype would still apply. */
  11893. char Tcl_Free ();
  11894. int
  11895. main ()
  11896. {
  11897. Tcl_Free ();
  11898. ;
  11899. return 0;
  11900. }
  11901. _ACEOF
  11902. rm -f conftest.$ac_objext conftest$ac_exeext
  11903. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11904. (eval $ac_link) 2>conftest.er1
  11905. ac_status=$?
  11906. grep -v '^ *+' conftest.er1 >conftest.err
  11907. rm -f conftest.er1
  11908. cat conftest.err >&5
  11909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11910. (exit $ac_status); } &&
  11911. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11912. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11913. (eval $ac_try) 2>&5
  11914. ac_status=$?
  11915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11916. (exit $ac_status); }; } &&
  11917. { ac_try='test -s conftest$ac_exeext'
  11918. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11919. (eval $ac_try) 2>&5
  11920. ac_status=$?
  11921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11922. (exit $ac_status); }; }; then
  11923. eval "$as_ac_Lib=yes"
  11924. else
  11925. echo "$as_me: failed program was:" >&5
  11926. sed 's/^/| /' conftest.$ac_ext >&5
  11927. eval "$as_ac_Lib=no"
  11928. fi
  11929. rm -f conftest.err conftest.$ac_objext \
  11930. conftest$ac_exeext conftest.$ac_ext
  11931. LIBS=$ac_check_lib_save_LIBS
  11932. fi
  11933. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  11934. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  11935. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  11936. egg_cv_var_tcl_free="yes"
  11937. else
  11938. egg_cv_var_tcl_free="no"
  11939. fi
  11940. if test "$egg_cv_var_tcl_free" = "yes"
  11941. then
  11942. cat >>confdefs.h <<\_ACEOF
  11943. #define HAVE_TCL_FREE 1
  11944. _ACEOF
  11945. fi
  11946. if test "$egg_tcl_changed" = "yes"
  11947. then
  11948. unset egg_cv_var_tcl_threaded
  11949. fi
  11950. # Check for TclpFinalizeThreadData()
  11951. as_ac_Lib=`echo "ac_cv_lib_$TCL_TEST_LIB''_TclpFinalizeThreadData" | $as_tr_sh`
  11952. echo "$as_me:$LINENO: checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB" >&5
  11953. echo $ECHO_N "checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB... $ECHO_C" >&6
  11954. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  11955. echo $ECHO_N "(cached) $ECHO_C" >&6
  11956. else
  11957. ac_check_lib_save_LIBS=$LIBS
  11958. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  11959. cat >conftest.$ac_ext <<_ACEOF
  11960. /* confdefs.h. */
  11961. _ACEOF
  11962. cat confdefs.h >>conftest.$ac_ext
  11963. cat >>conftest.$ac_ext <<_ACEOF
  11964. /* end confdefs.h. */
  11965. /* Override any gcc2 internal prototype to avoid an error. */
  11966. #ifdef __cplusplus
  11967. extern "C"
  11968. #endif
  11969. /* We use char because int might match the return type of a gcc2
  11970. builtin and then its argument prototype would still apply. */
  11971. char TclpFinalizeThreadData ();
  11972. int
  11973. main ()
  11974. {
  11975. TclpFinalizeThreadData ();
  11976. ;
  11977. return 0;
  11978. }
  11979. _ACEOF
  11980. rm -f conftest.$ac_objext conftest$ac_exeext
  11981. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11982. (eval $ac_link) 2>conftest.er1
  11983. ac_status=$?
  11984. grep -v '^ *+' conftest.er1 >conftest.err
  11985. rm -f conftest.er1
  11986. cat conftest.err >&5
  11987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11988. (exit $ac_status); } &&
  11989. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11990. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11991. (eval $ac_try) 2>&5
  11992. ac_status=$?
  11993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11994. (exit $ac_status); }; } &&
  11995. { ac_try='test -s conftest$ac_exeext'
  11996. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11997. (eval $ac_try) 2>&5
  11998. ac_status=$?
  11999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12000. (exit $ac_status); }; }; then
  12001. eval "$as_ac_Lib=yes"
  12002. else
  12003. echo "$as_me: failed program was:" >&5
  12004. sed 's/^/| /' conftest.$ac_ext >&5
  12005. eval "$as_ac_Lib=no"
  12006. fi
  12007. rm -f conftest.err conftest.$ac_objext \
  12008. conftest$ac_exeext conftest.$ac_ext
  12009. LIBS=$ac_check_lib_save_LIBS
  12010. fi
  12011. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  12012. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  12013. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  12014. egg_cv_var_tcl_threaded="yes"
  12015. else
  12016. egg_cv_var_tcl_threaded="no"
  12017. fi
  12018. enable_tcl_threads=no
  12019. if test "$egg_cv_var_tcl_threaded" = "yes"
  12020. then
  12021. if test "$enable_tcl_threads" = "no"
  12022. then
  12023. cat << 'EOF' >&2
  12024. configure: warning:
  12025. You have disabled threads support on a system with a threaded Tcl library.
  12026. Tcl features that rely on scheduled events may not function properly.
  12027. EOF
  12028. fi
  12029. # Add pthread library to $LIBS if we need it
  12030. if test ! "${ac_cv_lib_pthread-x}" = "x"
  12031. then
  12032. LIBS="$ac_cv_lib_pthread $LIBS"
  12033. fi
  12034. fi
  12035. if test "$EGG_CYGWIN" = "yes"
  12036. then
  12037. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  12038. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  12039. else
  12040. if test ! "$TCLLIBEXT" = ".a"
  12041. then
  12042. cat << 'EOF' >&2
  12043. configure: warning:
  12044. Your Tcl library is not compiled statically.
  12045. You will need to compile Tcl statically to successfully compile wraith.
  12046. EOF
  12047. exit 1
  12048. else
  12049. # Was the --with-tcllib option given ?
  12050. if test ! "${tcllibname-x}" = "x"
  12051. then
  12052. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  12053. TCL_LIBS="$TCLLIB/lib$TCLLIBFN $EGG_MATH_LIB"
  12054. else
  12055. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  12056. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  12057. fi
  12058. fi
  12059. fi
  12060. ac_config_commands="$ac_config_commands replace-if-changed"
  12061. #checkpoint
  12062. cat >confcache <<\_ACEOF
  12063. # This file is a shell script that caches the results of configure
  12064. # tests run on this system so they can be shared between configure
  12065. # scripts and configure runs, see configure's option --config-cache.
  12066. # It is not useful on other systems. If it contains results you don't
  12067. # want to keep, you may remove or edit it.
  12068. #
  12069. # config.status only pays attention to the cache file if you give it
  12070. # the --recheck option to rerun configure.
  12071. #
  12072. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12073. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12074. # following values.
  12075. _ACEOF
  12076. # The following way of writing the cache mishandles newlines in values,
  12077. # but we know of no workaround that is simple, portable, and efficient.
  12078. # So, don't put newlines in cache variables' values.
  12079. # Ultrix sh set writes to stderr and can't be redirected directly,
  12080. # and sets the high bit in the cache file unless we assign to the vars.
  12081. {
  12082. (set) 2>&1 |
  12083. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  12084. *ac_space=\ *)
  12085. # `set' does not quote correctly, so add quotes (double-quote
  12086. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12087. sed -n \
  12088. "s/'/'\\\\''/g;
  12089. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12090. ;;
  12091. *)
  12092. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12093. sed -n \
  12094. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  12095. ;;
  12096. esac;
  12097. } |
  12098. sed '
  12099. t clear
  12100. : clear
  12101. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12102. t end
  12103. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12104. : end' >>confcache
  12105. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  12106. if test -w $cache_file; then
  12107. test "x$cache_file" != "x/dev/null"
  12108. cat confcache >$cache_file
  12109. else
  12110. echo "not updating unwritable cache $cache_file"
  12111. fi
  12112. fi
  12113. rm -f confcache
  12114. # ---------- end of (what used to be) robey's Tcl thingies
  12115. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  12116. if ! test -f $srcdir/pack/pack.cfg; then
  12117. cat << EOF >&2
  12118. configure: error:
  12119. Your pack cfg is missing, please copy it to $srcdir/pack/pack.cfg
  12120. EOF
  12121. exit 1
  12122. fi
  12123. PACKNAME=`grep "PACKNAME " $srcdir/pack/pack.cfg | $AWK '/PACKNAME/ {print $2}'`
  12124. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  12125. cat >>confdefs.h <<_ACEOF
  12126. #define EGG_VERSION $version_num
  12127. _ACEOF
  12128. for define in `sed -n -e 's/^+ \([^ ]*\) .*/\1/ p' pack/pack.cfg`; do
  12129. u_define="S_$define"
  12130. cat >>confdefs.h <<_ACEOF
  12131. #define $u_define 1
  12132. _ACEOF
  12133. done
  12134. case "$srcdir" in
  12135. [\\/]* | ?:[\\/]*)
  12136. MOD_UPDIR=""
  12137. ;;
  12138. *)
  12139. MOD_UPDIR="../"
  12140. ;;
  12141. esac
  12142. files="src/Makefile.in src/compat/Makefile.in src/mod/channels.mod/Makefile src/mod/compress.mod/Makefile src/mod/console.mod/Makefile src/mod/ctcp.mod/Makefile src/mod/dns.mod/Makefile.in src/mod/irc.mod/Makefile src/mod/notes.mod/Makefile src/mod/server.mod/Makefile src/mod/share.mod/Makefile src/mod/transfer.mod/Makefile src/mod/update.mod/Makefile"
  12143. for mf in $files; do
  12144. # Strip MF so we end up with the name of the file.
  12145. # echo "MF: $mf"
  12146. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12147. dirpart=`(dirname "$mf") 2>/dev/null ||
  12148. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12149. X"$mf" : 'X\(//\)[^/]' \| \
  12150. X"$mf" : 'X\(//\)$' \| \
  12151. X"$mf" : 'X\(/\)' \| \
  12152. . : '\(.\)' 2>/dev/null ||
  12153. echo X"$mf" |
  12154. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12155. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12156. /^X\(\/\/\)$/{ s//\1/; q; }
  12157. /^X\(\/\).*/{ s//\1/; q; }
  12158. s/.*/./; q'`
  12159. # echo "dirpart: $dirpart mf: $mf"
  12160. # rm -rf "$dirpart/.deps/"
  12161. rm -f "$dirpart/.deps/includes"
  12162. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  12163. for file in `sed -n -e '
  12164. /^OBJS = .*\\\\$/ {
  12165. s/^OBJS = //
  12166. :loop
  12167. s/\\\\$//
  12168. p
  12169. n
  12170. /\\\\$/ b loop
  12171. p
  12172. }
  12173. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  12174. do
  12175. base=`basename $file .o`
  12176. test -f "$dirpart/$base.c" || continue
  12177. if ! test -f "$dirpart/.deps/$base.Po"; then
  12178. echo '# dummy' > "$dirpart/.deps/$base.Po"
  12179. #Remove the .o file, because it needs to be recompiled for its dependancies.
  12180. if test -f "$dirpart/$base.o"; then
  12181. rm -f "$dirpart/$base.o"
  12182. fi
  12183. fi
  12184. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  12185. echo "_$base.c:" >> "$dirpart/.deps/includes"
  12186. done
  12187. done
  12188. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/mod/Makefile src/mod/dns.mod/Makefile"
  12189. cat >confcache <<\_ACEOF
  12190. # This file is a shell script that caches the results of configure
  12191. # tests run on this system so they can be shared between configure
  12192. # scripts and configure runs, see configure's option --config-cache.
  12193. # It is not useful on other systems. If it contains results you don't
  12194. # want to keep, you may remove or edit it.
  12195. #
  12196. # config.status only pays attention to the cache file if you give it
  12197. # the --recheck option to rerun configure.
  12198. #
  12199. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12200. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12201. # following values.
  12202. _ACEOF
  12203. # The following way of writing the cache mishandles newlines in values,
  12204. # but we know of no workaround that is simple, portable, and efficient.
  12205. # So, don't put newlines in cache variables' values.
  12206. # Ultrix sh set writes to stderr and can't be redirected directly,
  12207. # and sets the high bit in the cache file unless we assign to the vars.
  12208. {
  12209. (set) 2>&1 |
  12210. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  12211. *ac_space=\ *)
  12212. # `set' does not quote correctly, so add quotes (double-quote
  12213. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12214. sed -n \
  12215. "s/'/'\\\\''/g;
  12216. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12217. ;;
  12218. *)
  12219. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12220. sed -n \
  12221. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  12222. ;;
  12223. esac;
  12224. } |
  12225. sed '
  12226. t clear
  12227. : clear
  12228. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12229. t end
  12230. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12231. : end' >>confcache
  12232. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  12233. if test -w $cache_file; then
  12234. test "x$cache_file" != "x/dev/null"
  12235. cat confcache >$cache_file
  12236. else
  12237. echo "not updating unwritable cache $cache_file"
  12238. fi
  12239. fi
  12240. rm -f confcache
  12241. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12242. # Let make expand exec_prefix.
  12243. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12244. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  12245. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  12246. # trailing colons and then remove the whole line if VPATH becomes empty
  12247. # (actually we leave an empty line to preserve line numbers).
  12248. if test "x$srcdir" = x.; then
  12249. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  12250. s/:*\$(srcdir):*/:/;
  12251. s/:*\${srcdir}:*/:/;
  12252. s/:*@srcdir@:*/:/;
  12253. s/^\([^=]*=[ ]*\):*/\1/;
  12254. s/:*$//;
  12255. s/^[^=]*=[ ]*$//;
  12256. }'
  12257. fi
  12258. DEFS=-DHAVE_CONFIG_H
  12259. ac_libobjs=
  12260. ac_ltlibobjs=
  12261. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12262. # 1. Remove the extension, and $U if already installed.
  12263. ac_i=`echo "$ac_i" |
  12264. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  12265. # 2. Add them.
  12266. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  12267. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  12268. done
  12269. LIBOBJS=$ac_libobjs
  12270. LTLIBOBJS=$ac_ltlibobjs
  12271. : ${CONFIG_STATUS=./config.status}
  12272. ac_clean_files_save=$ac_clean_files
  12273. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12274. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  12275. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12276. cat >$CONFIG_STATUS <<_ACEOF
  12277. #! $SHELL
  12278. # Generated by $as_me.
  12279. # Run this file to recreate the current configuration.
  12280. # Compiler output produced by configure, useful for debugging
  12281. # configure, is in config.log if it exists.
  12282. debug=false
  12283. ac_cs_recheck=false
  12284. ac_cs_silent=false
  12285. SHELL=\${CONFIG_SHELL-$SHELL}
  12286. _ACEOF
  12287. cat >>$CONFIG_STATUS <<\_ACEOF
  12288. ## --------------------- ##
  12289. ## M4sh Initialization. ##
  12290. ## --------------------- ##
  12291. # Be Bourne compatible
  12292. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12293. emulate sh
  12294. NULLCMD=:
  12295. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  12296. # is contrary to our usage. Disable this feature.
  12297. alias -g '${1+"$@"}'='"$@"'
  12298. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  12299. set -o posix
  12300. fi
  12301. DUALCASE=1; export DUALCASE # for MKS sh
  12302. # Support unset when possible.
  12303. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  12304. as_unset=unset
  12305. else
  12306. as_unset=false
  12307. fi
  12308. # Work around bugs in pre-3.0 UWIN ksh.
  12309. $as_unset ENV MAIL MAILPATH
  12310. PS1='$ '
  12311. PS2='> '
  12312. PS4='+ '
  12313. # NLS nuisances.
  12314. for as_var in \
  12315. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  12316. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  12317. LC_TELEPHONE LC_TIME
  12318. do
  12319. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  12320. eval $as_var=C; export $as_var
  12321. else
  12322. $as_unset $as_var
  12323. fi
  12324. done
  12325. # Required to use basename.
  12326. if expr a : '\(a\)' >/dev/null 2>&1; then
  12327. as_expr=expr
  12328. else
  12329. as_expr=false
  12330. fi
  12331. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  12332. as_basename=basename
  12333. else
  12334. as_basename=false
  12335. fi
  12336. # Name of the executable.
  12337. as_me=`$as_basename "$0" ||
  12338. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12339. X"$0" : 'X\(//\)$' \| \
  12340. X"$0" : 'X\(/\)$' \| \
  12341. . : '\(.\)' 2>/dev/null ||
  12342. echo X/"$0" |
  12343. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  12344. /^X\/\(\/\/\)$/{ s//\1/; q; }
  12345. /^X\/\(\/\).*/{ s//\1/; q; }
  12346. s/.*/./; q'`
  12347. # PATH needs CR, and LINENO needs CR and PATH.
  12348. # Avoid depending upon Character Ranges.
  12349. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12350. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12351. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12352. as_cr_digits='0123456789'
  12353. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12354. # The user is always right.
  12355. if test "${PATH_SEPARATOR+set}" != set; then
  12356. echo "#! /bin/sh" >conf$$.sh
  12357. echo "exit 0" >>conf$$.sh
  12358. chmod +x conf$$.sh
  12359. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  12360. PATH_SEPARATOR=';'
  12361. else
  12362. PATH_SEPARATOR=:
  12363. fi
  12364. rm -f conf$$.sh
  12365. fi
  12366. as_lineno_1=$LINENO
  12367. as_lineno_2=$LINENO
  12368. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  12369. test "x$as_lineno_1" != "x$as_lineno_2" &&
  12370. test "x$as_lineno_3" = "x$as_lineno_2" || {
  12371. # Find who we are. Look in the path if we contain no path at all
  12372. # relative or not.
  12373. case $0 in
  12374. *[\\/]* ) as_myself=$0 ;;
  12375. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12376. for as_dir in $PATH
  12377. do
  12378. IFS=$as_save_IFS
  12379. test -z "$as_dir" && as_dir=.
  12380. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12381. done
  12382. ;;
  12383. esac
  12384. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12385. # in which case we are not to be found in the path.
  12386. if test "x$as_myself" = x; then
  12387. as_myself=$0
  12388. fi
  12389. if test ! -f "$as_myself"; then
  12390. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  12391. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  12392. { (exit 1); exit 1; }; }
  12393. fi
  12394. case $CONFIG_SHELL in
  12395. '')
  12396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12397. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  12398. do
  12399. IFS=$as_save_IFS
  12400. test -z "$as_dir" && as_dir=.
  12401. for as_base in sh bash ksh sh5; do
  12402. case $as_dir in
  12403. /*)
  12404. if ("$as_dir/$as_base" -c '
  12405. as_lineno_1=$LINENO
  12406. as_lineno_2=$LINENO
  12407. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  12408. test "x$as_lineno_1" != "x$as_lineno_2" &&
  12409. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  12410. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  12411. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  12412. CONFIG_SHELL=$as_dir/$as_base
  12413. export CONFIG_SHELL
  12414. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  12415. fi;;
  12416. esac
  12417. done
  12418. done
  12419. ;;
  12420. esac
  12421. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  12422. # uniformly replaced by the line number. The first 'sed' inserts a
  12423. # line-number line before each line; the second 'sed' does the real
  12424. # work. The second script uses 'N' to pair each line-number line
  12425. # with the numbered line, and appends trailing '-' during
  12426. # substitution so that $LINENO is not a special case at line end.
  12427. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  12428. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  12429. sed '=' <$as_myself |
  12430. sed '
  12431. N
  12432. s,$,-,
  12433. : loop
  12434. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  12435. t loop
  12436. s,-$,,
  12437. s,^['$as_cr_digits']*\n,,
  12438. ' >$as_me.lineno &&
  12439. chmod +x $as_me.lineno ||
  12440. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  12441. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  12442. { (exit 1); exit 1; }; }
  12443. # Don't try to exec as it changes $[0], causing all sort of problems
  12444. # (the dirname of $[0] is not the place where we might find the
  12445. # original and so on. Autoconf is especially sensible to this).
  12446. . ./$as_me.lineno
  12447. # Exit status is that of the last command.
  12448. exit
  12449. }
  12450. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  12451. *c*,-n*) ECHO_N= ECHO_C='
  12452. ' ECHO_T=' ' ;;
  12453. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  12454. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  12455. esac
  12456. if expr a : '\(a\)' >/dev/null 2>&1; then
  12457. as_expr=expr
  12458. else
  12459. as_expr=false
  12460. fi
  12461. rm -f conf$$ conf$$.exe conf$$.file
  12462. echo >conf$$.file
  12463. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12464. # We could just check for DJGPP; but this test a) works b) is more generic
  12465. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  12466. if test -f conf$$.exe; then
  12467. # Don't use ln at all; we don't have any links
  12468. as_ln_s='cp -p'
  12469. else
  12470. as_ln_s='ln -s'
  12471. fi
  12472. elif ln conf$$.file conf$$ 2>/dev/null; then
  12473. as_ln_s=ln
  12474. else
  12475. as_ln_s='cp -p'
  12476. fi
  12477. rm -f conf$$ conf$$.exe conf$$.file
  12478. if mkdir -p . 2>/dev/null; then
  12479. as_mkdir_p=:
  12480. else
  12481. test -d ./-p && rmdir ./-p
  12482. as_mkdir_p=false
  12483. fi
  12484. as_executable_p="test -f"
  12485. # Sed expression to map a string onto a valid CPP name.
  12486. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12487. # Sed expression to map a string onto a valid variable name.
  12488. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12489. # IFS
  12490. # We need space, tab and new line, in precisely that order.
  12491. as_nl='
  12492. '
  12493. IFS=" $as_nl"
  12494. # CDPATH.
  12495. $as_unset CDPATH
  12496. exec 6>&1
  12497. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  12498. # report actual input values of CONFIG_FILES etc. instead of their
  12499. # values after options handling. Logging --version etc. is OK.
  12500. exec 5>>config.log
  12501. {
  12502. echo
  12503. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12504. ## Running $as_me. ##
  12505. _ASBOX
  12506. } >&5
  12507. cat >&5 <<_CSEOF
  12508. This file was extended by $as_me, which was
  12509. generated by GNU Autoconf 2.59. Invocation command line was
  12510. CONFIG_FILES = $CONFIG_FILES
  12511. CONFIG_HEADERS = $CONFIG_HEADERS
  12512. CONFIG_LINKS = $CONFIG_LINKS
  12513. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12514. $ $0 $@
  12515. _CSEOF
  12516. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  12517. echo >&5
  12518. _ACEOF
  12519. # Files that config.status was made for.
  12520. if test -n "$ac_config_files"; then
  12521. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  12522. fi
  12523. if test -n "$ac_config_headers"; then
  12524. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  12525. fi
  12526. if test -n "$ac_config_links"; then
  12527. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  12528. fi
  12529. if test -n "$ac_config_commands"; then
  12530. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  12531. fi
  12532. cat >>$CONFIG_STATUS <<\_ACEOF
  12533. ac_cs_usage="\
  12534. \`$as_me' instantiates files from templates according to the
  12535. current configuration.
  12536. Usage: $0 [OPTIONS] [FILE]...
  12537. -h, --help print this help, then exit
  12538. -V, --version print version number, then exit
  12539. -q, --quiet do not print progress messages
  12540. -d, --debug don't remove temporary files
  12541. --recheck update $as_me by reconfiguring in the same conditions
  12542. --file=FILE[:TEMPLATE]
  12543. instantiate the configuration file FILE
  12544. --header=FILE[:TEMPLATE]
  12545. instantiate the configuration header FILE
  12546. Configuration files:
  12547. $config_files
  12548. Configuration headers:
  12549. $config_headers
  12550. Configuration commands:
  12551. $config_commands
  12552. Report bugs to <bug-autoconf@gnu.org>."
  12553. _ACEOF
  12554. cat >>$CONFIG_STATUS <<_ACEOF
  12555. ac_cs_version="\\
  12556. config.status
  12557. configured by $0, generated by GNU Autoconf 2.59,
  12558. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  12559. Copyright (C) 2003 Free Software Foundation, Inc.
  12560. This config.status script is free software; the Free Software Foundation
  12561. gives unlimited permission to copy, distribute and modify it."
  12562. srcdir=$srcdir
  12563. _ACEOF
  12564. cat >>$CONFIG_STATUS <<\_ACEOF
  12565. # If no file are specified by the user, then we need to provide default
  12566. # value. By we need to know if files were specified by the user.
  12567. ac_need_defaults=:
  12568. while test $# != 0
  12569. do
  12570. case $1 in
  12571. --*=*)
  12572. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  12573. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  12574. ac_shift=:
  12575. ;;
  12576. -*)
  12577. ac_option=$1
  12578. ac_optarg=$2
  12579. ac_shift=shift
  12580. ;;
  12581. *) # This is not an option, so the user has probably given explicit
  12582. # arguments.
  12583. ac_option=$1
  12584. ac_need_defaults=false;;
  12585. esac
  12586. case $ac_option in
  12587. # Handling of the options.
  12588. _ACEOF
  12589. cat >>$CONFIG_STATUS <<\_ACEOF
  12590. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12591. ac_cs_recheck=: ;;
  12592. --version | --vers* | -V )
  12593. echo "$ac_cs_version"; exit 0 ;;
  12594. --he | --h)
  12595. # Conflict between --help and --header
  12596. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  12597. Try \`$0 --help' for more information." >&5
  12598. echo "$as_me: error: ambiguous option: $1
  12599. Try \`$0 --help' for more information." >&2;}
  12600. { (exit 1); exit 1; }; };;
  12601. --help | --hel | -h )
  12602. echo "$ac_cs_usage"; exit 0 ;;
  12603. --debug | --d* | -d )
  12604. debug=: ;;
  12605. --file | --fil | --fi | --f )
  12606. $ac_shift
  12607. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  12608. ac_need_defaults=false;;
  12609. --header | --heade | --head | --hea )
  12610. $ac_shift
  12611. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  12612. ac_need_defaults=false;;
  12613. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12614. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12615. ac_cs_silent=: ;;
  12616. # This is an error.
  12617. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  12618. Try \`$0 --help' for more information." >&5
  12619. echo "$as_me: error: unrecognized option: $1
  12620. Try \`$0 --help' for more information." >&2;}
  12621. { (exit 1); exit 1; }; } ;;
  12622. *) ac_config_targets="$ac_config_targets $1" ;;
  12623. esac
  12624. shift
  12625. done
  12626. ac_configure_extra_args=
  12627. if $ac_cs_silent; then
  12628. exec 6>/dev/null
  12629. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12630. fi
  12631. _ACEOF
  12632. cat >>$CONFIG_STATUS <<_ACEOF
  12633. if \$ac_cs_recheck; then
  12634. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  12635. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12636. fi
  12637. _ACEOF
  12638. cat >>$CONFIG_STATUS <<_ACEOF
  12639. #
  12640. # INIT-COMMANDS section.
  12641. #
  12642. egg_tclinc="$TCLINC"
  12643. egg_tclincfn="$TCLINCFN"
  12644. _ACEOF
  12645. cat >>$CONFIG_STATUS <<\_ACEOF
  12646. for ac_config_target in $ac_config_targets
  12647. do
  12648. case "$ac_config_target" in
  12649. # Handling of arguments.
  12650. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12651. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12652. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  12653. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  12654. "src/mod/dns.mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/dns.mod/Makefile" ;;
  12655. "replace-if-changed" ) CONFIG_COMMANDS="$CONFIG_COMMANDS replace-if-changed" ;;
  12656. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12657. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  12658. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  12659. { (exit 1); exit 1; }; };;
  12660. esac
  12661. done
  12662. # If the user did not use the arguments to specify the items to instantiate,
  12663. # then the envvar interface is used. Set only those that are not.
  12664. # We use the long form for the default assignment because of an extremely
  12665. # bizarre bug on SunOS 4.1.3.
  12666. if $ac_need_defaults; then
  12667. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12668. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12669. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12670. fi
  12671. # Have a temporary directory for convenience. Make it in the build tree
  12672. # simply because there is no reason to put it here, and in addition,
  12673. # creating and moving files from /tmp can sometimes cause problems.
  12674. # Create a temporary directory, and hook for its removal unless debugging.
  12675. $debug ||
  12676. {
  12677. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  12678. trap '{ (exit 1); exit 1; }' 1 2 13 15
  12679. }
  12680. # Create a (secure) tmp directory for tmp files.
  12681. {
  12682. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  12683. test -n "$tmp" && test -d "$tmp"
  12684. } ||
  12685. {
  12686. tmp=./confstat$$-$RANDOM
  12687. (umask 077 && mkdir $tmp)
  12688. } ||
  12689. {
  12690. echo "$me: cannot create a temporary directory in ." >&2
  12691. { (exit 1); exit 1; }
  12692. }
  12693. _ACEOF
  12694. cat >>$CONFIG_STATUS <<_ACEOF
  12695. #
  12696. # CONFIG_FILES section.
  12697. #
  12698. # No need to generate the scripts if there are no CONFIG_FILES.
  12699. # This happens for instance when ./config.status config.h
  12700. if test -n "\$CONFIG_FILES"; then
  12701. # Protect against being on the right side of a sed subst in config.status.
  12702. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  12703. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  12704. s,@SHELL@,$SHELL,;t t
  12705. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  12706. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  12707. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  12708. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  12709. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  12710. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  12711. s,@exec_prefix@,$exec_prefix,;t t
  12712. s,@prefix@,$prefix,;t t
  12713. s,@program_transform_name@,$program_transform_name,;t t
  12714. s,@bindir@,$bindir,;t t
  12715. s,@sbindir@,$sbindir,;t t
  12716. s,@libexecdir@,$libexecdir,;t t
  12717. s,@datadir@,$datadir,;t t
  12718. s,@sysconfdir@,$sysconfdir,;t t
  12719. s,@sharedstatedir@,$sharedstatedir,;t t
  12720. s,@localstatedir@,$localstatedir,;t t
  12721. s,@libdir@,$libdir,;t t
  12722. s,@includedir@,$includedir,;t t
  12723. s,@oldincludedir@,$oldincludedir,;t t
  12724. s,@infodir@,$infodir,;t t
  12725. s,@mandir@,$mandir,;t t
  12726. s,@build_alias@,$build_alias,;t t
  12727. s,@host_alias@,$host_alias,;t t
  12728. s,@target_alias@,$target_alias,;t t
  12729. s,@DEFS@,$DEFS,;t t
  12730. s,@ECHO_C@,$ECHO_C,;t t
  12731. s,@ECHO_N@,$ECHO_N,;t t
  12732. s,@ECHO_T@,$ECHO_T,;t t
  12733. s,@LIBS@,$LIBS,;t t
  12734. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  12735. s,@CC@,$CC,;t t
  12736. s,@CFLAGS@,$CFLAGS,;t t
  12737. s,@LDFLAGS@,$LDFLAGS,;t t
  12738. s,@CPPFLAGS@,$CPPFLAGS,;t t
  12739. s,@ac_ct_CC@,$ac_ct_CC,;t t
  12740. s,@EXEEXT@,$EXEEXT,;t t
  12741. s,@OBJEXT@,$OBJEXT,;t t
  12742. s,@CPP@,$CPP,;t t
  12743. s,@EGREP@,$EGREP,;t t
  12744. s,@CCDEPMODE@,$CCDEPMODE,;t t
  12745. s,@CCDEBUG@,$CCDEBUG,;t t
  12746. s,@SET_MAKE@,$SET_MAKE,;t t
  12747. s,@HEAD_1@,$HEAD_1,;t t
  12748. s,@AWK@,$AWK,;t t
  12749. s,@BASENAME@,$BASENAME,;t t
  12750. s,@OBJCOPY@,$OBJCOPY,;t t
  12751. s,@STRIP@,$STRIP,;t t
  12752. s,@UNAME@,$UNAME,;t t
  12753. s,@DISTCC@,$DISTCC,;t t
  12754. s,@RESLIB@,$RESLIB,;t t
  12755. s,@RESINCLUDE@,$RESINCLUDE,;t t
  12756. s,@ZLIB@,$ZLIB,;t t
  12757. s,@SSL@,$SSL,;t t
  12758. s,@LIBOBJS@,$LIBOBJS,;t t
  12759. s,@TCLLIB@,$TCLLIB,;t t
  12760. s,@TCLLIBFN@,$TCLLIBFN,;t t
  12761. s,@TCLINC@,$TCLINC,;t t
  12762. s,@TCLINCFN@,$TCLINCFN,;t t
  12763. s,@TCL_REQS@,$TCL_REQS,;t t
  12764. s,@TCL_LIBS@,$TCL_LIBS,;t t
  12765. s,@VERSION@,$VERSION,;t t
  12766. s,@NUMVER@,$NUMVER,;t t
  12767. s,@PACKNAME@,$PACKNAME,;t t
  12768. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  12769. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  12770. CEOF
  12771. _ACEOF
  12772. cat >>$CONFIG_STATUS <<\_ACEOF
  12773. # Split the substitutions into bite-sized pieces for seds with
  12774. # small command number limits, like on Digital OSF/1 and HP-UX.
  12775. ac_max_sed_lines=48
  12776. ac_sed_frag=1 # Number of current file.
  12777. ac_beg=1 # First line for current file.
  12778. ac_end=$ac_max_sed_lines # Line after last line for current file.
  12779. ac_more_lines=:
  12780. ac_sed_cmds=
  12781. while $ac_more_lines; do
  12782. if test $ac_beg -gt 1; then
  12783. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  12784. else
  12785. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  12786. fi
  12787. if test ! -s $tmp/subs.frag; then
  12788. ac_more_lines=false
  12789. else
  12790. # The purpose of the label and of the branching condition is to
  12791. # speed up the sed processing (if there are no `@' at all, there
  12792. # is no need to browse any of the substitutions).
  12793. # These are the two extra sed commands mentioned above.
  12794. (echo ':t
  12795. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  12796. if test -z "$ac_sed_cmds"; then
  12797. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  12798. else
  12799. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  12800. fi
  12801. ac_sed_frag=`expr $ac_sed_frag + 1`
  12802. ac_beg=$ac_end
  12803. ac_end=`expr $ac_end + $ac_max_sed_lines`
  12804. fi
  12805. done
  12806. if test -z "$ac_sed_cmds"; then
  12807. ac_sed_cmds=cat
  12808. fi
  12809. fi # test -n "$CONFIG_FILES"
  12810. _ACEOF
  12811. cat >>$CONFIG_STATUS <<\_ACEOF
  12812. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  12813. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  12814. case $ac_file in
  12815. - | *:- | *:-:* ) # input from stdin
  12816. cat >$tmp/stdin
  12817. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12818. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12819. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12820. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12821. * ) ac_file_in=$ac_file.in ;;
  12822. esac
  12823. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  12824. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  12825. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12826. X"$ac_file" : 'X\(//\)[^/]' \| \
  12827. X"$ac_file" : 'X\(//\)$' \| \
  12828. X"$ac_file" : 'X\(/\)' \| \
  12829. . : '\(.\)' 2>/dev/null ||
  12830. echo X"$ac_file" |
  12831. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12832. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12833. /^X\(\/\/\)$/{ s//\1/; q; }
  12834. /^X\(\/\).*/{ s//\1/; q; }
  12835. s/.*/./; q'`
  12836. { if $as_mkdir_p; then
  12837. mkdir -p "$ac_dir"
  12838. else
  12839. as_dir="$ac_dir"
  12840. as_dirs=
  12841. while test ! -d "$as_dir"; do
  12842. as_dirs="$as_dir $as_dirs"
  12843. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12844. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12845. X"$as_dir" : 'X\(//\)[^/]' \| \
  12846. X"$as_dir" : 'X\(//\)$' \| \
  12847. X"$as_dir" : 'X\(/\)' \| \
  12848. . : '\(.\)' 2>/dev/null ||
  12849. echo X"$as_dir" |
  12850. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12851. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12852. /^X\(\/\/\)$/{ s//\1/; q; }
  12853. /^X\(\/\).*/{ s//\1/; q; }
  12854. s/.*/./; q'`
  12855. done
  12856. test ! -n "$as_dirs" || mkdir $as_dirs
  12857. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12858. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12859. { (exit 1); exit 1; }; }; }
  12860. ac_builddir=.
  12861. if test "$ac_dir" != .; then
  12862. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  12863. # A "../" for each directory in $ac_dir_suffix.
  12864. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  12865. else
  12866. ac_dir_suffix= ac_top_builddir=
  12867. fi
  12868. case $srcdir in
  12869. .) # No --srcdir option. We are building in place.
  12870. ac_srcdir=.
  12871. if test -z "$ac_top_builddir"; then
  12872. ac_top_srcdir=.
  12873. else
  12874. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  12875. fi ;;
  12876. [\\/]* | ?:[\\/]* ) # Absolute path.
  12877. ac_srcdir=$srcdir$ac_dir_suffix;
  12878. ac_top_srcdir=$srcdir ;;
  12879. *) # Relative path.
  12880. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  12881. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  12882. esac
  12883. # Do not use `cd foo && pwd` to compute absolute paths, because
  12884. # the directories may not exist.
  12885. case `pwd` in
  12886. .) ac_abs_builddir="$ac_dir";;
  12887. *)
  12888. case "$ac_dir" in
  12889. .) ac_abs_builddir=`pwd`;;
  12890. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  12891. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  12892. esac;;
  12893. esac
  12894. case $ac_abs_builddir in
  12895. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  12896. *)
  12897. case ${ac_top_builddir}. in
  12898. .) ac_abs_top_builddir=$ac_abs_builddir;;
  12899. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  12900. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  12901. esac;;
  12902. esac
  12903. case $ac_abs_builddir in
  12904. .) ac_abs_srcdir=$ac_srcdir;;
  12905. *)
  12906. case $ac_srcdir in
  12907. .) ac_abs_srcdir=$ac_abs_builddir;;
  12908. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  12909. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  12910. esac;;
  12911. esac
  12912. case $ac_abs_builddir in
  12913. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  12914. *)
  12915. case $ac_top_srcdir in
  12916. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  12917. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  12918. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  12919. esac;;
  12920. esac
  12921. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12922. # use $as_me), people would be surprised to read:
  12923. # /* config.h. Generated by config.status. */
  12924. if test x"$ac_file" = x-; then
  12925. configure_input=
  12926. else
  12927. configure_input="$ac_file. "
  12928. fi
  12929. configure_input=$configure_input"Generated from `echo $ac_file_in |
  12930. sed 's,.*/,,'` by configure."
  12931. # First look for the input files in the build tree, otherwise in the
  12932. # src tree.
  12933. ac_file_inputs=`IFS=:
  12934. for f in $ac_file_in; do
  12935. case $f in
  12936. -) echo $tmp/stdin ;;
  12937. [\\/$]*)
  12938. # Absolute (can't be DOS-style, as IFS=:)
  12939. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12940. echo "$as_me: error: cannot find input file: $f" >&2;}
  12941. { (exit 1); exit 1; }; }
  12942. echo "$f";;
  12943. *) # Relative
  12944. if test -f "$f"; then
  12945. # Build tree
  12946. echo "$f"
  12947. elif test -f "$srcdir/$f"; then
  12948. # Source tree
  12949. echo "$srcdir/$f"
  12950. else
  12951. # /dev/null tree
  12952. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12953. echo "$as_me: error: cannot find input file: $f" >&2;}
  12954. { (exit 1); exit 1; }; }
  12955. fi;;
  12956. esac
  12957. done` || { (exit 1); exit 1; }
  12958. if test x"$ac_file" != x-; then
  12959. { echo "$as_me:$LINENO: creating $ac_file" >&5
  12960. echo "$as_me: creating $ac_file" >&6;}
  12961. rm -f "$ac_file"
  12962. fi
  12963. _ACEOF
  12964. cat >>$CONFIG_STATUS <<_ACEOF
  12965. sed "$ac_vpsub
  12966. $extrasub
  12967. _ACEOF
  12968. cat >>$CONFIG_STATUS <<\_ACEOF
  12969. :t
  12970. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12971. s,@configure_input@,$configure_input,;t t
  12972. s,@srcdir@,$ac_srcdir,;t t
  12973. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  12974. s,@top_srcdir@,$ac_top_srcdir,;t t
  12975. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  12976. s,@builddir@,$ac_builddir,;t t
  12977. s,@abs_builddir@,$ac_abs_builddir,;t t
  12978. s,@top_builddir@,$ac_top_builddir,;t t
  12979. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  12980. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  12981. rm -f $tmp/stdin
  12982. if test x"$ac_file" != x-; then
  12983. mv $tmp/out $ac_file
  12984. else
  12985. cat $tmp/out
  12986. rm -f $tmp/out
  12987. fi
  12988. done
  12989. _ACEOF
  12990. cat >>$CONFIG_STATUS <<\_ACEOF
  12991. #
  12992. # CONFIG_HEADER section.
  12993. #
  12994. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  12995. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  12996. #
  12997. # ac_d sets the value in "#define NAME VALUE" lines.
  12998. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  12999. ac_dB='[ ].*$,\1#\2'
  13000. ac_dC=' '
  13001. ac_dD=',;t'
  13002. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  13003. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  13004. ac_uB='$,\1#\2define\3'
  13005. ac_uC=' '
  13006. ac_uD=',;t'
  13007. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  13008. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  13009. case $ac_file in
  13010. - | *:- | *:-:* ) # input from stdin
  13011. cat >$tmp/stdin
  13012. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  13013. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  13014. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  13015. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  13016. * ) ac_file_in=$ac_file.in ;;
  13017. esac
  13018. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  13019. echo "$as_me: creating $ac_file" >&6;}
  13020. # First look for the input files in the build tree, otherwise in the
  13021. # src tree.
  13022. ac_file_inputs=`IFS=:
  13023. for f in $ac_file_in; do
  13024. case $f in
  13025. -) echo $tmp/stdin ;;
  13026. [\\/$]*)
  13027. # Absolute (can't be DOS-style, as IFS=:)
  13028. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  13029. echo "$as_me: error: cannot find input file: $f" >&2;}
  13030. { (exit 1); exit 1; }; }
  13031. # Do quote $f, to prevent DOS paths from being IFS'd.
  13032. echo "$f";;
  13033. *) # Relative
  13034. if test -f "$f"; then
  13035. # Build tree
  13036. echo "$f"
  13037. elif test -f "$srcdir/$f"; then
  13038. # Source tree
  13039. echo "$srcdir/$f"
  13040. else
  13041. # /dev/null tree
  13042. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  13043. echo "$as_me: error: cannot find input file: $f" >&2;}
  13044. { (exit 1); exit 1; }; }
  13045. fi;;
  13046. esac
  13047. done` || { (exit 1); exit 1; }
  13048. # Remove the trailing spaces.
  13049. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  13050. _ACEOF
  13051. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  13052. # `conftest.undefs', that substitutes the proper values into
  13053. # config.h.in to produce config.h. The first handles `#define'
  13054. # templates, and the second `#undef' templates.
  13055. # And first: Protect against being on the right side of a sed subst in
  13056. # config.status. Protect against being in an unquoted here document
  13057. # in config.status.
  13058. rm -f conftest.defines conftest.undefs
  13059. # Using a here document instead of a string reduces the quoting nightmare.
  13060. # Putting comments in sed scripts is not portable.
  13061. #
  13062. # `end' is used to avoid that the second main sed command (meant for
  13063. # 0-ary CPP macros) applies to n-ary macro definitions.
  13064. # See the Autoconf documentation for `clear'.
  13065. cat >confdef2sed.sed <<\_ACEOF
  13066. s/[\\&,]/\\&/g
  13067. s,[\\$`],\\&,g
  13068. t clear
  13069. : clear
  13070. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  13071. t end
  13072. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  13073. : end
  13074. _ACEOF
  13075. # If some macros were called several times there might be several times
  13076. # the same #defines, which is useless. Nevertheless, we may not want to
  13077. # sort them, since we want the *last* AC-DEFINE to be honored.
  13078. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  13079. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  13080. rm -f confdef2sed.sed
  13081. # This sed command replaces #undef with comments. This is necessary, for
  13082. # example, in the case of _POSIX_SOURCE, which is predefined and required
  13083. # on some systems where configure will not decide to define it.
  13084. cat >>conftest.undefs <<\_ACEOF
  13085. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  13086. _ACEOF
  13087. # Break up conftest.defines because some shells have a limit on the size
  13088. # of here documents, and old seds have small limits too (100 cmds).
  13089. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  13090. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  13091. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  13092. echo ' :' >>$CONFIG_STATUS
  13093. rm -f conftest.tail
  13094. while grep . conftest.defines >/dev/null
  13095. do
  13096. # Write a limited-size here document to $tmp/defines.sed.
  13097. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  13098. # Speed up: don't consider the non `#define' lines.
  13099. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  13100. # Work around the forget-to-reset-the-flag bug.
  13101. echo 't clr' >>$CONFIG_STATUS
  13102. echo ': clr' >>$CONFIG_STATUS
  13103. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  13104. echo 'CEOF
  13105. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  13106. rm -f $tmp/in
  13107. mv $tmp/out $tmp/in
  13108. ' >>$CONFIG_STATUS
  13109. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  13110. rm -f conftest.defines
  13111. mv conftest.tail conftest.defines
  13112. done
  13113. rm -f conftest.defines
  13114. echo ' fi # grep' >>$CONFIG_STATUS
  13115. echo >>$CONFIG_STATUS
  13116. # Break up conftest.undefs because some shells have a limit on the size
  13117. # of here documents, and old seds have small limits too (100 cmds).
  13118. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  13119. rm -f conftest.tail
  13120. while grep . conftest.undefs >/dev/null
  13121. do
  13122. # Write a limited-size here document to $tmp/undefs.sed.
  13123. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  13124. # Speed up: don't consider the non `#undef'
  13125. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  13126. # Work around the forget-to-reset-the-flag bug.
  13127. echo 't clr' >>$CONFIG_STATUS
  13128. echo ': clr' >>$CONFIG_STATUS
  13129. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  13130. echo 'CEOF
  13131. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  13132. rm -f $tmp/in
  13133. mv $tmp/out $tmp/in
  13134. ' >>$CONFIG_STATUS
  13135. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  13136. rm -f conftest.undefs
  13137. mv conftest.tail conftest.undefs
  13138. done
  13139. rm -f conftest.undefs
  13140. cat >>$CONFIG_STATUS <<\_ACEOF
  13141. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13142. # use $as_me), people would be surprised to read:
  13143. # /* config.h. Generated by config.status. */
  13144. if test x"$ac_file" = x-; then
  13145. echo "/* Generated by configure. */" >$tmp/config.h
  13146. else
  13147. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  13148. fi
  13149. cat $tmp/in >>$tmp/config.h
  13150. rm -f $tmp/in
  13151. if test x"$ac_file" != x-; then
  13152. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  13153. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  13154. echo "$as_me: $ac_file is unchanged" >&6;}
  13155. else
  13156. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  13157. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13158. X"$ac_file" : 'X\(//\)[^/]' \| \
  13159. X"$ac_file" : 'X\(//\)$' \| \
  13160. X"$ac_file" : 'X\(/\)' \| \
  13161. . : '\(.\)' 2>/dev/null ||
  13162. echo X"$ac_file" |
  13163. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  13164. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  13165. /^X\(\/\/\)$/{ s//\1/; q; }
  13166. /^X\(\/\).*/{ s//\1/; q; }
  13167. s/.*/./; q'`
  13168. { if $as_mkdir_p; then
  13169. mkdir -p "$ac_dir"
  13170. else
  13171. as_dir="$ac_dir"
  13172. as_dirs=
  13173. while test ! -d "$as_dir"; do
  13174. as_dirs="$as_dir $as_dirs"
  13175. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  13176. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13177. X"$as_dir" : 'X\(//\)[^/]' \| \
  13178. X"$as_dir" : 'X\(//\)$' \| \
  13179. X"$as_dir" : 'X\(/\)' \| \
  13180. . : '\(.\)' 2>/dev/null ||
  13181. echo X"$as_dir" |
  13182. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  13183. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  13184. /^X\(\/\/\)$/{ s//\1/; q; }
  13185. /^X\(\/\).*/{ s//\1/; q; }
  13186. s/.*/./; q'`
  13187. done
  13188. test ! -n "$as_dirs" || mkdir $as_dirs
  13189. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  13190. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  13191. { (exit 1); exit 1; }; }; }
  13192. rm -f $ac_file
  13193. mv $tmp/config.h $ac_file
  13194. fi
  13195. else
  13196. cat $tmp/config.h
  13197. rm -f $tmp/config.h
  13198. fi
  13199. done
  13200. _ACEOF
  13201. cat >>$CONFIG_STATUS <<\_ACEOF
  13202. #
  13203. # CONFIG_COMMANDS section.
  13204. #
  13205. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  13206. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  13207. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  13208. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  13209. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13210. X"$ac_dest" : 'X\(//\)[^/]' \| \
  13211. X"$ac_dest" : 'X\(//\)$' \| \
  13212. X"$ac_dest" : 'X\(/\)' \| \
  13213. . : '\(.\)' 2>/dev/null ||
  13214. echo X"$ac_dest" |
  13215. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  13216. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  13217. /^X\(\/\/\)$/{ s//\1/; q; }
  13218. /^X\(\/\).*/{ s//\1/; q; }
  13219. s/.*/./; q'`
  13220. { if $as_mkdir_p; then
  13221. mkdir -p "$ac_dir"
  13222. else
  13223. as_dir="$ac_dir"
  13224. as_dirs=
  13225. while test ! -d "$as_dir"; do
  13226. as_dirs="$as_dir $as_dirs"
  13227. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  13228. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13229. X"$as_dir" : 'X\(//\)[^/]' \| \
  13230. X"$as_dir" : 'X\(//\)$' \| \
  13231. X"$as_dir" : 'X\(/\)' \| \
  13232. . : '\(.\)' 2>/dev/null ||
  13233. echo X"$as_dir" |
  13234. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  13235. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  13236. /^X\(\/\/\)$/{ s//\1/; q; }
  13237. /^X\(\/\).*/{ s//\1/; q; }
  13238. s/.*/./; q'`
  13239. done
  13240. test ! -n "$as_dirs" || mkdir $as_dirs
  13241. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  13242. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  13243. { (exit 1); exit 1; }; }; }
  13244. ac_builddir=.
  13245. if test "$ac_dir" != .; then
  13246. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  13247. # A "../" for each directory in $ac_dir_suffix.
  13248. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  13249. else
  13250. ac_dir_suffix= ac_top_builddir=
  13251. fi
  13252. case $srcdir in
  13253. .) # No --srcdir option. We are building in place.
  13254. ac_srcdir=.
  13255. if test -z "$ac_top_builddir"; then
  13256. ac_top_srcdir=.
  13257. else
  13258. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  13259. fi ;;
  13260. [\\/]* | ?:[\\/]* ) # Absolute path.
  13261. ac_srcdir=$srcdir$ac_dir_suffix;
  13262. ac_top_srcdir=$srcdir ;;
  13263. *) # Relative path.
  13264. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  13265. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  13266. esac
  13267. # Do not use `cd foo && pwd` to compute absolute paths, because
  13268. # the directories may not exist.
  13269. case `pwd` in
  13270. .) ac_abs_builddir="$ac_dir";;
  13271. *)
  13272. case "$ac_dir" in
  13273. .) ac_abs_builddir=`pwd`;;
  13274. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  13275. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  13276. esac;;
  13277. esac
  13278. case $ac_abs_builddir in
  13279. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  13280. *)
  13281. case ${ac_top_builddir}. in
  13282. .) ac_abs_top_builddir=$ac_abs_builddir;;
  13283. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  13284. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  13285. esac;;
  13286. esac
  13287. case $ac_abs_builddir in
  13288. .) ac_abs_srcdir=$ac_srcdir;;
  13289. *)
  13290. case $ac_srcdir in
  13291. .) ac_abs_srcdir=$ac_abs_builddir;;
  13292. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  13293. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  13294. esac;;
  13295. esac
  13296. case $ac_abs_builddir in
  13297. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  13298. *)
  13299. case $ac_top_srcdir in
  13300. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  13301. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  13302. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  13303. esac;;
  13304. esac
  13305. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  13306. echo "$as_me: executing $ac_dest commands" >&6;}
  13307. case $ac_dest in
  13308. replace-if-changed )
  13309. egg_replace_file="lush.h"
  13310. cat > conftest.out << EOF
  13311. /* Ignore me but do not erase me. I am a kludge. */
  13312. #include "${egg_tclinc}/${egg_tclincfn}"
  13313. EOF
  13314. if test -f "$egg_replace_file" && cmp -s conftest.out $egg_replace_file; then
  13315. echo "lush.h is unchanged"
  13316. else
  13317. echo "creating lush.h"
  13318. mv conftest.out $egg_replace_file
  13319. fi
  13320. rm -f conftest.out
  13321. ;;
  13322. esac
  13323. done
  13324. _ACEOF
  13325. cat >>$CONFIG_STATUS <<\_ACEOF
  13326. { (exit 0); exit 0; }
  13327. _ACEOF
  13328. chmod +x $CONFIG_STATUS
  13329. ac_clean_files=$ac_clean_files_save
  13330. # configure is writing to config.log, and then calls config.status.
  13331. # config.status does its own redirection, appending to config.log.
  13332. # Unfortunately, on DOS this fails, as config.log is still kept open
  13333. # by configure, so config.status won't be able to write to it; its
  13334. # output is simply discarded. So we exec the FD to /dev/null,
  13335. # effectively closing config.log, so it can be properly (re)opened and
  13336. # appended to by config.status. When coming back to configure, we
  13337. # need to make the FD available again.
  13338. if test "$no_create" != yes; then
  13339. ac_cs_success=:
  13340. ac_config_status_args=
  13341. test "$silent" = yes &&
  13342. ac_config_status_args="$ac_config_status_args --quiet"
  13343. exec 5>/dev/null
  13344. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13345. exec 5>>config.log
  13346. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13347. # would make configure fail if this is the last instruction.
  13348. $ac_cs_success || { (exit 1); exit 1; }
  13349. fi