configure 410 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.10 .
  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 STRIP AWK BASENAME DISTCC UNAME 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=`gcc -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. # Extract the first word of "strip", so it can be a program name with args.
  2974. set dummy strip; ac_word=$2
  2975. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2976. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2977. if test "${ac_cv_prog_STRIP+set}" = set; then
  2978. echo $ECHO_N "(cached) $ECHO_C" >&6
  2979. else
  2980. if test -n "$STRIP"; then
  2981. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2982. else
  2983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2984. for as_dir in $PATH
  2985. do
  2986. IFS=$as_save_IFS
  2987. test -z "$as_dir" && as_dir=.
  2988. for ac_exec_ext in '' $ac_executable_extensions; do
  2989. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2990. ac_cv_prog_STRIP="strip"
  2991. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2992. break 2
  2993. fi
  2994. done
  2995. done
  2996. fi
  2997. fi
  2998. STRIP=$ac_cv_prog_STRIP
  2999. if test -n "$STRIP"; then
  3000. echo "$as_me:$LINENO: result: $STRIP" >&5
  3001. echo "${ECHO_T}$STRIP" >&6
  3002. else
  3003. echo "$as_me:$LINENO: result: no" >&5
  3004. echo "${ECHO_T}no" >&6
  3005. fi
  3006. if test "${STRIP-x}" = "x"
  3007. then
  3008. STRIP=touch
  3009. fi
  3010. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3011. for ac_prog in gawk mawk nawk awk
  3012. do
  3013. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3014. set dummy $ac_prog; ac_word=$2
  3015. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3016. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3017. if test "${ac_cv_prog_AWK+set}" = set; then
  3018. echo $ECHO_N "(cached) $ECHO_C" >&6
  3019. else
  3020. if test -n "$AWK"; then
  3021. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3022. else
  3023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3024. for as_dir in $PATH
  3025. do
  3026. IFS=$as_save_IFS
  3027. test -z "$as_dir" && as_dir=.
  3028. for ac_exec_ext in '' $ac_executable_extensions; do
  3029. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3030. ac_cv_prog_AWK="$ac_prog"
  3031. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3032. break 2
  3033. fi
  3034. done
  3035. done
  3036. fi
  3037. fi
  3038. AWK=$ac_cv_prog_AWK
  3039. if test -n "$AWK"; then
  3040. echo "$as_me:$LINENO: result: $AWK" >&5
  3041. echo "${ECHO_T}$AWK" >&6
  3042. else
  3043. echo "$as_me:$LINENO: result: no" >&5
  3044. echo "${ECHO_T}no" >&6
  3045. fi
  3046. test -n "$AWK" && break
  3047. done
  3048. if test "${AWK-x}" = "x"
  3049. then
  3050. cat << 'EOF' >&2
  3051. configure: error:
  3052. This system seems to lack a working 'awk' command.
  3053. A working 'awk' command is required to compile Eggdrop.
  3054. EOF
  3055. exit 1
  3056. fi
  3057. # basename is needed for Tcl library and header checks
  3058. # Extract the first word of "basename", so it can be a program name with args.
  3059. set dummy basename; ac_word=$2
  3060. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3061. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3062. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3063. echo $ECHO_N "(cached) $ECHO_C" >&6
  3064. else
  3065. if test -n "$BASENAME"; then
  3066. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3067. else
  3068. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3069. for as_dir in $PATH
  3070. do
  3071. IFS=$as_save_IFS
  3072. test -z "$as_dir" && as_dir=.
  3073. for ac_exec_ext in '' $ac_executable_extensions; do
  3074. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3075. ac_cv_prog_BASENAME="basename"
  3076. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3077. break 2
  3078. fi
  3079. done
  3080. done
  3081. fi
  3082. fi
  3083. BASENAME=$ac_cv_prog_BASENAME
  3084. if test -n "$BASENAME"; then
  3085. echo "$as_me:$LINENO: result: $BASENAME" >&5
  3086. echo "${ECHO_T}$BASENAME" >&6
  3087. else
  3088. echo "$as_me:$LINENO: result: no" >&5
  3089. echo "${ECHO_T}no" >&6
  3090. fi
  3091. if test "${BASENAME-x}" = "x"
  3092. then
  3093. cat << 'EOF' >&2
  3094. configure: error:
  3095. This system seems to lack a working 'basename' command.
  3096. A working 'basename' command is required to compile Eggdrop.
  3097. EOF
  3098. exit 1
  3099. fi
  3100. #EGG_PROG_CCACHE
  3101. # Extract the first word of "distcc", so it can be a program name with args.
  3102. set dummy distcc; ac_word=$2
  3103. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3104. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3105. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3106. echo $ECHO_N "(cached) $ECHO_C" >&6
  3107. else
  3108. if test -n "$DISTCC"; then
  3109. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3110. else
  3111. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3112. for as_dir in $PATH
  3113. do
  3114. IFS=$as_save_IFS
  3115. test -z "$as_dir" && as_dir=.
  3116. for ac_exec_ext in '' $ac_executable_extensions; do
  3117. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3118. ac_cv_prog_DISTCC="distcc"
  3119. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3120. break 2
  3121. fi
  3122. done
  3123. done
  3124. fi
  3125. fi
  3126. DISTCC=$ac_cv_prog_DISTCC
  3127. if test -n "$DISTCC"; then
  3128. echo "$as_me:$LINENO: result: $DISTCC" >&5
  3129. echo "${ECHO_T}$DISTCC" >&6
  3130. else
  3131. echo "$as_me:$LINENO: result: no" >&5
  3132. echo "${ECHO_T}no" >&6
  3133. fi
  3134. if test "${DISTCC-x}" = "x"
  3135. then
  3136. DISTCC=distcc
  3137. fi
  3138. # Extract the first word of "uname", so it can be a program name with args.
  3139. set dummy uname; ac_word=$2
  3140. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3141. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3142. if test "${ac_cv_prog_UNAME+set}" = set; then
  3143. echo $ECHO_N "(cached) $ECHO_C" >&6
  3144. else
  3145. if test -n "$UNAME"; then
  3146. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3147. else
  3148. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3149. for as_dir in $PATH
  3150. do
  3151. IFS=$as_save_IFS
  3152. test -z "$as_dir" && as_dir=.
  3153. for ac_exec_ext in '' $ac_executable_extensions; do
  3154. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3155. ac_cv_prog_UNAME="uname"
  3156. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3157. break 2
  3158. fi
  3159. done
  3160. done
  3161. fi
  3162. fi
  3163. UNAME=$ac_cv_prog_UNAME
  3164. if test -n "$UNAME"; then
  3165. echo "$as_me:$LINENO: result: $UNAME" >&5
  3166. echo "${ECHO_T}$UNAME" >&6
  3167. else
  3168. echo "$as_me:$LINENO: result: no" >&5
  3169. echo "${ECHO_T}no" >&6
  3170. fi
  3171. # Test the os and set the module linking settings
  3172. LINUX=no
  3173. IRIX=no
  3174. SUNOS=no
  3175. HPUX=no
  3176. EGG_CYGWIN=no
  3177. echo "$as_me:$LINENO: checking system type" >&5
  3178. echo $ECHO_N "checking system type... $ECHO_C" >&6
  3179. if test "${egg_cv_var_system_type+set}" = set; then
  3180. echo $ECHO_N "(cached) $ECHO_C" >&6
  3181. else
  3182. egg_cv_var_system_type=`$UNAME -s`
  3183. fi
  3184. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3185. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3186. echo "$as_me:$LINENO: checking system release" >&5
  3187. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3188. if test "${egg_cv_var_system_release+set}" = set; then
  3189. echo $ECHO_N "(cached) $ECHO_C" >&6
  3190. else
  3191. egg_cv_var_system_release=`$UNAME -r`
  3192. fi
  3193. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3194. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3195. case "$egg_cv_var_system_type" in
  3196. BSD/OS)
  3197. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3198. 2)
  3199. ;;
  3200. *)
  3201. CFLAGS="$CFLAGS -Wall"
  3202. ;;
  3203. esac
  3204. ;;
  3205. CYGWI*)
  3206. case "`echo $egg_cv_var_system_release | cut -c 1-3`" in
  3207. 1.*)
  3208. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3209. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3210. WIN32FLAGS=
  3211. cat >conftest.$ac_ext <<_ACEOF
  3212. /* confdefs.h. */
  3213. _ACEOF
  3214. cat confdefs.h >>conftest.$ac_ext
  3215. cat >>conftest.$ac_ext <<_ACEOF
  3216. /* end confdefs.h. */
  3217. int
  3218. main ()
  3219. {
  3220. #ifndef WIN32
  3221. # ifndef _WIN32
  3222. # error WIN32 or _WIN32 not defined
  3223. # endif
  3224. #endif
  3225. ;
  3226. return 0;
  3227. }
  3228. _ACEOF
  3229. rm -f conftest.$ac_objext
  3230. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3231. (eval $ac_compile) 2>conftest.er1
  3232. ac_status=$?
  3233. grep -v '^ *+' conftest.er1 >conftest.err
  3234. rm -f conftest.er1
  3235. cat conftest.err >&5
  3236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3237. (exit $ac_status); } &&
  3238. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3239. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3240. (eval $ac_try) 2>&5
  3241. ac_status=$?
  3242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3243. (exit $ac_status); }; } &&
  3244. { ac_try='test -s conftest.$ac_objext'
  3245. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3246. (eval $ac_try) 2>&5
  3247. ac_status=$?
  3248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3249. (exit $ac_status); }; }; then
  3250. echo "$as_me:$LINENO: result: present by default" >&5
  3251. echo "${ECHO_T}present by default" >&6
  3252. else
  3253. echo "$as_me: failed program was:" >&5
  3254. sed 's/^/| /' conftest.$ac_ext >&5
  3255. ac_compile_save="$ac_compile"
  3256. save_CC="$CC"
  3257. ac_compile="$ac_compile -mwin32"
  3258. CC="$CC -mwin32"
  3259. cat >conftest.$ac_ext <<_ACEOF
  3260. /* confdefs.h. */
  3261. _ACEOF
  3262. cat confdefs.h >>conftest.$ac_ext
  3263. cat >>conftest.$ac_ext <<_ACEOF
  3264. /* end confdefs.h. */
  3265. int
  3266. main ()
  3267. {
  3268. #ifndef WIN32
  3269. # ifndef _WIN32
  3270. # error WIN32 or _WIN32 not defined
  3271. # endif
  3272. #endif
  3273. ;
  3274. return 0;
  3275. }
  3276. _ACEOF
  3277. rm -f conftest.$ac_objext
  3278. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3279. (eval $ac_compile) 2>conftest.er1
  3280. ac_status=$?
  3281. grep -v '^ *+' conftest.er1 >conftest.err
  3282. rm -f conftest.er1
  3283. cat conftest.err >&5
  3284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3285. (exit $ac_status); } &&
  3286. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3287. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3288. (eval $ac_try) 2>&5
  3289. ac_status=$?
  3290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3291. (exit $ac_status); }; } &&
  3292. { ac_try='test -s conftest.$ac_objext'
  3293. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3294. (eval $ac_try) 2>&5
  3295. ac_status=$?
  3296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3297. (exit $ac_status); }; }; then
  3298. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3299. echo "${ECHO_T}found via -mwin32" >&6
  3300. ac_compile="$ac_compile_save"
  3301. CC="$save_CC"
  3302. WIN32FLAGS="-mwin32"
  3303. else
  3304. echo "$as_me: failed program was:" >&5
  3305. sed 's/^/| /' conftest.$ac_ext >&5
  3306. ac_compile="$ac_compile_save"
  3307. CC="$save_CC"
  3308. echo "$as_me:$LINENO: result: not found" >&5
  3309. echo "${ECHO_T}not found" >&6
  3310. fi
  3311. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3312. fi
  3313. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3314. CC="$CC $WIN32FLAGS"
  3315. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3316. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3317. if test -r /usr/lib/binmode.o
  3318. then
  3319. echo "$as_me:$LINENO: result: yes" >&5
  3320. echo "${ECHO_T}yes" >&6
  3321. LIBS="$LIBS /usr/lib/binmode.o"
  3322. else
  3323. echo "$as_me:$LINENO: result: no" >&5
  3324. echo "${ECHO_T}no" >&6
  3325. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3326. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3327. fi
  3328. ;;
  3329. *)
  3330. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3331. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3332. ;;
  3333. esac
  3334. EGG_CYGWIN=yes
  3335. cat >>confdefs.h <<\_ACEOF
  3336. #define CYGWIN_HACKS 1
  3337. _ACEOF
  3338. ;;
  3339. HP-UX)
  3340. HPUX=yes
  3341. cat >>confdefs.h <<\_ACEOF
  3342. #define HPUX_HACKS 1
  3343. _ACEOF
  3344. if test "`echo $egg_cv_var_system_release | cut -d . -f 2`" = "10"
  3345. then
  3346. cat >>confdefs.h <<\_ACEOF
  3347. #define HPUX10_HACKS 1
  3348. _ACEOF
  3349. fi
  3350. ;;
  3351. dell)
  3352. echo "$as_me:$LINENO: result: Dell SVR4" >&5
  3353. echo "${ECHO_T}Dell SVR4" >&6
  3354. ;;
  3355. IRIX)
  3356. IRIX=yes
  3357. ;;
  3358. Ultrix)
  3359. SHELL=/bin/sh5
  3360. ;;
  3361. SINIX*)
  3362. ;;
  3363. BeOS)
  3364. ;;
  3365. Linux)
  3366. LINUX=yes
  3367. CFLAGS="$CFLAGS -Wall"
  3368. ;;
  3369. Lynx)
  3370. ;;
  3371. QNX)
  3372. ;;
  3373. OSF1)
  3374. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3375. V*)
  3376. # FIXME: we should check this in a separate test
  3377. # Digital OSF uses an ancient version of gawk
  3378. if test "$AWK" = "gawk"
  3379. then
  3380. AWK=awk
  3381. fi
  3382. ;;
  3383. 1.0|1.1|1.2)
  3384. cat >>confdefs.h <<\_ACEOF
  3385. #define OSF1_HACKS 1
  3386. _ACEOF
  3387. ;;
  3388. 1.*)
  3389. cat >>confdefs.h <<\_ACEOF
  3390. #define OSF1_HACKS 1
  3391. _ACEOF
  3392. ;;
  3393. *)
  3394. ;;
  3395. esac
  3396. cat >>confdefs.h <<\_ACEOF
  3397. #define STOP_UAC 1
  3398. _ACEOF
  3399. cat >>confdefs.h <<\_ACEOF
  3400. #define BROKEN_SNPRINTF 1
  3401. _ACEOF
  3402. ;;
  3403. SunOS)
  3404. if ! test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"
  3405. then
  3406. # SunOS 4
  3407. SUNOS=yes
  3408. fi
  3409. ;;
  3410. *BSD)
  3411. # FreeBSD/OpenBSD/NetBSD
  3412. ;;
  3413. *)
  3414. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3415. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3416. if test -r /mach
  3417. then
  3418. echo "$as_me:$LINENO: result: yes" >&5
  3419. echo "${ECHO_T}yes" >&6
  3420. cat >>confdefs.h <<\_ACEOF
  3421. #define BORGCUBES 1
  3422. _ACEOF
  3423. else
  3424. echo "$as_me:$LINENO: result: no" >&5
  3425. echo "${ECHO_T}no" >&6
  3426. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3427. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3428. if test -r /cmds
  3429. then
  3430. echo "$as_me:$LINENO: result: yes" >&5
  3431. echo "${ECHO_T}yes" >&6
  3432. else
  3433. echo "$as_me:$LINENO: result: no" >&5
  3434. echo "${ECHO_T}no" >&6
  3435. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3436. echo "${ECHO_T}Something unknown!" >&6
  3437. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3438. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3439. fi
  3440. fi
  3441. ;;
  3442. esac
  3443. dns_reslib_avail="true"
  3444. echo "$as_me:$LINENO: checking for res_init" >&5
  3445. echo $ECHO_N "checking for res_init... $ECHO_C" >&6
  3446. if test "${ac_cv_func_res_init+set}" = set; then
  3447. echo $ECHO_N "(cached) $ECHO_C" >&6
  3448. else
  3449. cat >conftest.$ac_ext <<_ACEOF
  3450. /* confdefs.h. */
  3451. _ACEOF
  3452. cat confdefs.h >>conftest.$ac_ext
  3453. cat >>conftest.$ac_ext <<_ACEOF
  3454. /* end confdefs.h. */
  3455. /* Define res_init to an innocuous variant, in case <limits.h> declares res_init.
  3456. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3457. #define res_init innocuous_res_init
  3458. /* System header to define __stub macros and hopefully few prototypes,
  3459. which can conflict with char res_init (); below.
  3460. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3461. <limits.h> exists even on freestanding compilers. */
  3462. #ifdef __STDC__
  3463. # include <limits.h>
  3464. #else
  3465. # include <assert.h>
  3466. #endif
  3467. #undef res_init
  3468. /* Override any gcc2 internal prototype to avoid an error. */
  3469. #ifdef __cplusplus
  3470. extern "C"
  3471. {
  3472. #endif
  3473. /* We use char because int might match the return type of a gcc2
  3474. builtin and then its argument prototype would still apply. */
  3475. char res_init ();
  3476. /* The GNU C library defines this for functions which it implements
  3477. to always fail with ENOSYS. Some functions are actually named
  3478. something starting with __ and the normal name is an alias. */
  3479. #if defined (__stub_res_init) || defined (__stub___res_init)
  3480. choke me
  3481. #else
  3482. char (*f) () = res_init;
  3483. #endif
  3484. #ifdef __cplusplus
  3485. }
  3486. #endif
  3487. int
  3488. main ()
  3489. {
  3490. return f != res_init;
  3491. ;
  3492. return 0;
  3493. }
  3494. _ACEOF
  3495. rm -f conftest.$ac_objext conftest$ac_exeext
  3496. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3497. (eval $ac_link) 2>conftest.er1
  3498. ac_status=$?
  3499. grep -v '^ *+' conftest.er1 >conftest.err
  3500. rm -f conftest.er1
  3501. cat conftest.err >&5
  3502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3503. (exit $ac_status); } &&
  3504. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3505. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3506. (eval $ac_try) 2>&5
  3507. ac_status=$?
  3508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3509. (exit $ac_status); }; } &&
  3510. { ac_try='test -s conftest$ac_exeext'
  3511. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3512. (eval $ac_try) 2>&5
  3513. ac_status=$?
  3514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3515. (exit $ac_status); }; }; then
  3516. ac_cv_func_res_init=yes
  3517. else
  3518. echo "$as_me: failed program was:" >&5
  3519. sed 's/^/| /' conftest.$ac_ext >&5
  3520. ac_cv_func_res_init=no
  3521. fi
  3522. rm -f conftest.err conftest.$ac_objext \
  3523. conftest$ac_exeext conftest.$ac_ext
  3524. fi
  3525. echo "$as_me:$LINENO: result: $ac_cv_func_res_init" >&5
  3526. echo "${ECHO_T}$ac_cv_func_res_init" >&6
  3527. if test $ac_cv_func_res_init = yes; then
  3528. :
  3529. else
  3530. echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
  3531. echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
  3532. if test "${ac_cv_lib_resolv_res_init+set}" = set; then
  3533. echo $ECHO_N "(cached) $ECHO_C" >&6
  3534. else
  3535. ac_check_lib_save_LIBS=$LIBS
  3536. LIBS="-lresolv $LIBS"
  3537. cat >conftest.$ac_ext <<_ACEOF
  3538. /* confdefs.h. */
  3539. _ACEOF
  3540. cat confdefs.h >>conftest.$ac_ext
  3541. cat >>conftest.$ac_ext <<_ACEOF
  3542. /* end confdefs.h. */
  3543. /* Override any gcc2 internal prototype to avoid an error. */
  3544. #ifdef __cplusplus
  3545. extern "C"
  3546. #endif
  3547. /* We use char because int might match the return type of a gcc2
  3548. builtin and then its argument prototype would still apply. */
  3549. char res_init ();
  3550. int
  3551. main ()
  3552. {
  3553. res_init ();
  3554. ;
  3555. return 0;
  3556. }
  3557. _ACEOF
  3558. rm -f conftest.$ac_objext conftest$ac_exeext
  3559. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3560. (eval $ac_link) 2>conftest.er1
  3561. ac_status=$?
  3562. grep -v '^ *+' conftest.er1 >conftest.err
  3563. rm -f conftest.er1
  3564. cat conftest.err >&5
  3565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3566. (exit $ac_status); } &&
  3567. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3568. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3569. (eval $ac_try) 2>&5
  3570. ac_status=$?
  3571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3572. (exit $ac_status); }; } &&
  3573. { ac_try='test -s conftest$ac_exeext'
  3574. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3575. (eval $ac_try) 2>&5
  3576. ac_status=$?
  3577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3578. (exit $ac_status); }; }; then
  3579. ac_cv_lib_resolv_res_init=yes
  3580. else
  3581. echo "$as_me: failed program was:" >&5
  3582. sed 's/^/| /' conftest.$ac_ext >&5
  3583. ac_cv_lib_resolv_res_init=no
  3584. fi
  3585. rm -f conftest.err conftest.$ac_objext \
  3586. conftest$ac_exeext conftest.$ac_ext
  3587. LIBS=$ac_check_lib_save_LIBS
  3588. fi
  3589. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
  3590. echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
  3591. if test $ac_cv_lib_resolv_res_init = yes; then
  3592. RESLIB="-lresolv"
  3593. else
  3594. echo "$as_me:$LINENO: checking for res_init in -lbind" >&5
  3595. echo $ECHO_N "checking for res_init in -lbind... $ECHO_C" >&6
  3596. if test "${ac_cv_lib_bind_res_init+set}" = set; then
  3597. echo $ECHO_N "(cached) $ECHO_C" >&6
  3598. else
  3599. ac_check_lib_save_LIBS=$LIBS
  3600. LIBS="-lbind $LIBS"
  3601. cat >conftest.$ac_ext <<_ACEOF
  3602. /* confdefs.h. */
  3603. _ACEOF
  3604. cat confdefs.h >>conftest.$ac_ext
  3605. cat >>conftest.$ac_ext <<_ACEOF
  3606. /* end confdefs.h. */
  3607. /* Override any gcc2 internal prototype to avoid an error. */
  3608. #ifdef __cplusplus
  3609. extern "C"
  3610. #endif
  3611. /* We use char because int might match the return type of a gcc2
  3612. builtin and then its argument prototype would still apply. */
  3613. char res_init ();
  3614. int
  3615. main ()
  3616. {
  3617. res_init ();
  3618. ;
  3619. return 0;
  3620. }
  3621. _ACEOF
  3622. rm -f conftest.$ac_objext conftest$ac_exeext
  3623. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3624. (eval $ac_link) 2>conftest.er1
  3625. ac_status=$?
  3626. grep -v '^ *+' conftest.er1 >conftest.err
  3627. rm -f conftest.er1
  3628. cat conftest.err >&5
  3629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3630. (exit $ac_status); } &&
  3631. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3632. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3633. (eval $ac_try) 2>&5
  3634. ac_status=$?
  3635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3636. (exit $ac_status); }; } &&
  3637. { ac_try='test -s conftest$ac_exeext'
  3638. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3639. (eval $ac_try) 2>&5
  3640. ac_status=$?
  3641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3642. (exit $ac_status); }; }; then
  3643. ac_cv_lib_bind_res_init=yes
  3644. else
  3645. echo "$as_me: failed program was:" >&5
  3646. sed 's/^/| /' conftest.$ac_ext >&5
  3647. ac_cv_lib_bind_res_init=no
  3648. fi
  3649. rm -f conftest.err conftest.$ac_objext \
  3650. conftest$ac_exeext conftest.$ac_ext
  3651. LIBS=$ac_check_lib_save_LIBS
  3652. fi
  3653. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_init" >&5
  3654. echo "${ECHO_T}$ac_cv_lib_bind_res_init" >&6
  3655. if test $ac_cv_lib_bind_res_init = yes; then
  3656. RESLIB="-lbind"
  3657. else
  3658. dns_reslib_avail="false";
  3659. fi
  3660. fi
  3661. fi
  3662. if test "${dns_reslib_avail}" = false; then
  3663. dns_reslib_avail="true"
  3664. echo "$as_me:$LINENO: checking for __res_init" >&5
  3665. echo $ECHO_N "checking for __res_init... $ECHO_C" >&6
  3666. if test "${ac_cv_func___res_init+set}" = set; then
  3667. echo $ECHO_N "(cached) $ECHO_C" >&6
  3668. else
  3669. cat >conftest.$ac_ext <<_ACEOF
  3670. /* confdefs.h. */
  3671. _ACEOF
  3672. cat confdefs.h >>conftest.$ac_ext
  3673. cat >>conftest.$ac_ext <<_ACEOF
  3674. /* end confdefs.h. */
  3675. /* Define __res_init to an innocuous variant, in case <limits.h> declares __res_init.
  3676. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3677. #define __res_init innocuous___res_init
  3678. /* System header to define __stub macros and hopefully few prototypes,
  3679. which can conflict with char __res_init (); below.
  3680. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3681. <limits.h> exists even on freestanding compilers. */
  3682. #ifdef __STDC__
  3683. # include <limits.h>
  3684. #else
  3685. # include <assert.h>
  3686. #endif
  3687. #undef __res_init
  3688. /* Override any gcc2 internal prototype to avoid an error. */
  3689. #ifdef __cplusplus
  3690. extern "C"
  3691. {
  3692. #endif
  3693. /* We use char because int might match the return type of a gcc2
  3694. builtin and then its argument prototype would still apply. */
  3695. char __res_init ();
  3696. /* The GNU C library defines this for functions which it implements
  3697. to always fail with ENOSYS. Some functions are actually named
  3698. something starting with __ and the normal name is an alias. */
  3699. #if defined (__stub___res_init) || defined (__stub_____res_init)
  3700. choke me
  3701. #else
  3702. char (*f) () = __res_init;
  3703. #endif
  3704. #ifdef __cplusplus
  3705. }
  3706. #endif
  3707. int
  3708. main ()
  3709. {
  3710. return f != __res_init;
  3711. ;
  3712. return 0;
  3713. }
  3714. _ACEOF
  3715. rm -f conftest.$ac_objext conftest$ac_exeext
  3716. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3717. (eval $ac_link) 2>conftest.er1
  3718. ac_status=$?
  3719. grep -v '^ *+' conftest.er1 >conftest.err
  3720. rm -f conftest.er1
  3721. cat conftest.err >&5
  3722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3723. (exit $ac_status); } &&
  3724. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3725. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3726. (eval $ac_try) 2>&5
  3727. ac_status=$?
  3728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3729. (exit $ac_status); }; } &&
  3730. { ac_try='test -s conftest$ac_exeext'
  3731. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3732. (eval $ac_try) 2>&5
  3733. ac_status=$?
  3734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3735. (exit $ac_status); }; }; then
  3736. ac_cv_func___res_init=yes
  3737. else
  3738. echo "$as_me: failed program was:" >&5
  3739. sed 's/^/| /' conftest.$ac_ext >&5
  3740. ac_cv_func___res_init=no
  3741. fi
  3742. rm -f conftest.err conftest.$ac_objext \
  3743. conftest$ac_exeext conftest.$ac_ext
  3744. fi
  3745. echo "$as_me:$LINENO: result: $ac_cv_func___res_init" >&5
  3746. echo "${ECHO_T}$ac_cv_func___res_init" >&6
  3747. if test $ac_cv_func___res_init = yes; then
  3748. :
  3749. else
  3750. echo "$as_me:$LINENO: checking for __res_init in -lresolv" >&5
  3751. echo $ECHO_N "checking for __res_init in -lresolv... $ECHO_C" >&6
  3752. if test "${ac_cv_lib_resolv___res_init+set}" = set; then
  3753. echo $ECHO_N "(cached) $ECHO_C" >&6
  3754. else
  3755. ac_check_lib_save_LIBS=$LIBS
  3756. LIBS="-lresolv $LIBS"
  3757. cat >conftest.$ac_ext <<_ACEOF
  3758. /* confdefs.h. */
  3759. _ACEOF
  3760. cat confdefs.h >>conftest.$ac_ext
  3761. cat >>conftest.$ac_ext <<_ACEOF
  3762. /* end confdefs.h. */
  3763. /* Override any gcc2 internal prototype to avoid an error. */
  3764. #ifdef __cplusplus
  3765. extern "C"
  3766. #endif
  3767. /* We use char because int might match the return type of a gcc2
  3768. builtin and then its argument prototype would still apply. */
  3769. char __res_init ();
  3770. int
  3771. main ()
  3772. {
  3773. __res_init ();
  3774. ;
  3775. return 0;
  3776. }
  3777. _ACEOF
  3778. rm -f conftest.$ac_objext conftest$ac_exeext
  3779. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3780. (eval $ac_link) 2>conftest.er1
  3781. ac_status=$?
  3782. grep -v '^ *+' conftest.er1 >conftest.err
  3783. rm -f conftest.er1
  3784. cat conftest.err >&5
  3785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3786. (exit $ac_status); } &&
  3787. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3788. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3789. (eval $ac_try) 2>&5
  3790. ac_status=$?
  3791. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3792. (exit $ac_status); }; } &&
  3793. { ac_try='test -s conftest$ac_exeext'
  3794. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3795. (eval $ac_try) 2>&5
  3796. ac_status=$?
  3797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3798. (exit $ac_status); }; }; then
  3799. ac_cv_lib_resolv___res_init=yes
  3800. else
  3801. echo "$as_me: failed program was:" >&5
  3802. sed 's/^/| /' conftest.$ac_ext >&5
  3803. ac_cv_lib_resolv___res_init=no
  3804. fi
  3805. rm -f conftest.err conftest.$ac_objext \
  3806. conftest$ac_exeext conftest.$ac_ext
  3807. LIBS=$ac_check_lib_save_LIBS
  3808. fi
  3809. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_init" >&5
  3810. echo "${ECHO_T}$ac_cv_lib_resolv___res_init" >&6
  3811. if test $ac_cv_lib_resolv___res_init = yes; then
  3812. RESLIB="-lresolv"
  3813. else
  3814. echo "$as_me:$LINENO: checking for __res_init in -lbind" >&5
  3815. echo $ECHO_N "checking for __res_init in -lbind... $ECHO_C" >&6
  3816. if test "${ac_cv_lib_bind___res_init+set}" = set; then
  3817. echo $ECHO_N "(cached) $ECHO_C" >&6
  3818. else
  3819. ac_check_lib_save_LIBS=$LIBS
  3820. LIBS="-lbind $LIBS"
  3821. cat >conftest.$ac_ext <<_ACEOF
  3822. /* confdefs.h. */
  3823. _ACEOF
  3824. cat confdefs.h >>conftest.$ac_ext
  3825. cat >>conftest.$ac_ext <<_ACEOF
  3826. /* end confdefs.h. */
  3827. /* Override any gcc2 internal prototype to avoid an error. */
  3828. #ifdef __cplusplus
  3829. extern "C"
  3830. #endif
  3831. /* We use char because int might match the return type of a gcc2
  3832. builtin and then its argument prototype would still apply. */
  3833. char __res_init ();
  3834. int
  3835. main ()
  3836. {
  3837. __res_init ();
  3838. ;
  3839. return 0;
  3840. }
  3841. _ACEOF
  3842. rm -f conftest.$ac_objext conftest$ac_exeext
  3843. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3844. (eval $ac_link) 2>conftest.er1
  3845. ac_status=$?
  3846. grep -v '^ *+' conftest.er1 >conftest.err
  3847. rm -f conftest.er1
  3848. cat conftest.err >&5
  3849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3850. (exit $ac_status); } &&
  3851. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3852. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3853. (eval $ac_try) 2>&5
  3854. ac_status=$?
  3855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3856. (exit $ac_status); }; } &&
  3857. { ac_try='test -s conftest$ac_exeext'
  3858. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3859. (eval $ac_try) 2>&5
  3860. ac_status=$?
  3861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3862. (exit $ac_status); }; }; then
  3863. ac_cv_lib_bind___res_init=yes
  3864. else
  3865. echo "$as_me: failed program was:" >&5
  3866. sed 's/^/| /' conftest.$ac_ext >&5
  3867. ac_cv_lib_bind___res_init=no
  3868. fi
  3869. rm -f conftest.err conftest.$ac_objext \
  3870. conftest$ac_exeext conftest.$ac_ext
  3871. LIBS=$ac_check_lib_save_LIBS
  3872. fi
  3873. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_init" >&5
  3874. echo "${ECHO_T}$ac_cv_lib_bind___res_init" >&6
  3875. if test $ac_cv_lib_bind___res_init = yes; then
  3876. RESLIB="-lbind"
  3877. else
  3878. dns_reslib_avail="false";
  3879. fi
  3880. fi
  3881. fi
  3882. fi
  3883. echo "$as_me:$LINENO: checking for res_mkquery" >&5
  3884. echo $ECHO_N "checking for res_mkquery... $ECHO_C" >&6
  3885. if test "${ac_cv_func_res_mkquery+set}" = set; then
  3886. echo $ECHO_N "(cached) $ECHO_C" >&6
  3887. else
  3888. cat >conftest.$ac_ext <<_ACEOF
  3889. /* confdefs.h. */
  3890. _ACEOF
  3891. cat confdefs.h >>conftest.$ac_ext
  3892. cat >>conftest.$ac_ext <<_ACEOF
  3893. /* end confdefs.h. */
  3894. /* Define res_mkquery to an innocuous variant, in case <limits.h> declares res_mkquery.
  3895. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3896. #define res_mkquery innocuous_res_mkquery
  3897. /* System header to define __stub macros and hopefully few prototypes,
  3898. which can conflict with char res_mkquery (); below.
  3899. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3900. <limits.h> exists even on freestanding compilers. */
  3901. #ifdef __STDC__
  3902. # include <limits.h>
  3903. #else
  3904. # include <assert.h>
  3905. #endif
  3906. #undef res_mkquery
  3907. /* Override any gcc2 internal prototype to avoid an error. */
  3908. #ifdef __cplusplus
  3909. extern "C"
  3910. {
  3911. #endif
  3912. /* We use char because int might match the return type of a gcc2
  3913. builtin and then its argument prototype would still apply. */
  3914. char res_mkquery ();
  3915. /* The GNU C library defines this for functions which it implements
  3916. to always fail with ENOSYS. Some functions are actually named
  3917. something starting with __ and the normal name is an alias. */
  3918. #if defined (__stub_res_mkquery) || defined (__stub___res_mkquery)
  3919. choke me
  3920. #else
  3921. char (*f) () = res_mkquery;
  3922. #endif
  3923. #ifdef __cplusplus
  3924. }
  3925. #endif
  3926. int
  3927. main ()
  3928. {
  3929. return f != res_mkquery;
  3930. ;
  3931. return 0;
  3932. }
  3933. _ACEOF
  3934. rm -f conftest.$ac_objext conftest$ac_exeext
  3935. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3936. (eval $ac_link) 2>conftest.er1
  3937. ac_status=$?
  3938. grep -v '^ *+' conftest.er1 >conftest.err
  3939. rm -f conftest.er1
  3940. cat conftest.err >&5
  3941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3942. (exit $ac_status); } &&
  3943. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3944. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3945. (eval $ac_try) 2>&5
  3946. ac_status=$?
  3947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3948. (exit $ac_status); }; } &&
  3949. { ac_try='test -s conftest$ac_exeext'
  3950. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3951. (eval $ac_try) 2>&5
  3952. ac_status=$?
  3953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3954. (exit $ac_status); }; }; then
  3955. ac_cv_func_res_mkquery=yes
  3956. else
  3957. echo "$as_me: failed program was:" >&5
  3958. sed 's/^/| /' conftest.$ac_ext >&5
  3959. ac_cv_func_res_mkquery=no
  3960. fi
  3961. rm -f conftest.err conftest.$ac_objext \
  3962. conftest$ac_exeext conftest.$ac_ext
  3963. fi
  3964. echo "$as_me:$LINENO: result: $ac_cv_func_res_mkquery" >&5
  3965. echo "${ECHO_T}$ac_cv_func_res_mkquery" >&6
  3966. if test $ac_cv_func_res_mkquery = yes; then
  3967. :
  3968. else
  3969. echo "$as_me:$LINENO: checking for res_mkquery in -lresolv" >&5
  3970. echo $ECHO_N "checking for res_mkquery in -lresolv... $ECHO_C" >&6
  3971. if test "${ac_cv_lib_resolv_res_mkquery+set}" = set; then
  3972. echo $ECHO_N "(cached) $ECHO_C" >&6
  3973. else
  3974. ac_check_lib_save_LIBS=$LIBS
  3975. LIBS="-lresolv $LIBS"
  3976. cat >conftest.$ac_ext <<_ACEOF
  3977. /* confdefs.h. */
  3978. _ACEOF
  3979. cat confdefs.h >>conftest.$ac_ext
  3980. cat >>conftest.$ac_ext <<_ACEOF
  3981. /* end confdefs.h. */
  3982. /* Override any gcc2 internal prototype to avoid an error. */
  3983. #ifdef __cplusplus
  3984. extern "C"
  3985. #endif
  3986. /* We use char because int might match the return type of a gcc2
  3987. builtin and then its argument prototype would still apply. */
  3988. char res_mkquery ();
  3989. int
  3990. main ()
  3991. {
  3992. res_mkquery ();
  3993. ;
  3994. return 0;
  3995. }
  3996. _ACEOF
  3997. rm -f conftest.$ac_objext conftest$ac_exeext
  3998. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3999. (eval $ac_link) 2>conftest.er1
  4000. ac_status=$?
  4001. grep -v '^ *+' conftest.er1 >conftest.err
  4002. rm -f conftest.er1
  4003. cat conftest.err >&5
  4004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4005. (exit $ac_status); } &&
  4006. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4007. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4008. (eval $ac_try) 2>&5
  4009. ac_status=$?
  4010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4011. (exit $ac_status); }; } &&
  4012. { ac_try='test -s conftest$ac_exeext'
  4013. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4014. (eval $ac_try) 2>&5
  4015. ac_status=$?
  4016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4017. (exit $ac_status); }; }; then
  4018. ac_cv_lib_resolv_res_mkquery=yes
  4019. else
  4020. echo "$as_me: failed program was:" >&5
  4021. sed 's/^/| /' conftest.$ac_ext >&5
  4022. ac_cv_lib_resolv_res_mkquery=no
  4023. fi
  4024. rm -f conftest.err conftest.$ac_objext \
  4025. conftest$ac_exeext conftest.$ac_ext
  4026. LIBS=$ac_check_lib_save_LIBS
  4027. fi
  4028. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_mkquery" >&5
  4029. echo "${ECHO_T}$ac_cv_lib_resolv_res_mkquery" >&6
  4030. if test $ac_cv_lib_resolv_res_mkquery = yes; then
  4031. if test "x${RESLIB}" != "x-lresolv"; then
  4032. RESLIB="${RESLIB} -lresolv"
  4033. fi
  4034. else
  4035. echo "$as_me:$LINENO: checking for res_mkquery in -lbind" >&5
  4036. echo $ECHO_N "checking for res_mkquery in -lbind... $ECHO_C" >&6
  4037. if test "${ac_cv_lib_bind_res_mkquery+set}" = set; then
  4038. echo $ECHO_N "(cached) $ECHO_C" >&6
  4039. else
  4040. ac_check_lib_save_LIBS=$LIBS
  4041. LIBS="-lbind $LIBS"
  4042. cat >conftest.$ac_ext <<_ACEOF
  4043. /* confdefs.h. */
  4044. _ACEOF
  4045. cat confdefs.h >>conftest.$ac_ext
  4046. cat >>conftest.$ac_ext <<_ACEOF
  4047. /* end confdefs.h. */
  4048. /* Override any gcc2 internal prototype to avoid an error. */
  4049. #ifdef __cplusplus
  4050. extern "C"
  4051. #endif
  4052. /* We use char because int might match the return type of a gcc2
  4053. builtin and then its argument prototype would still apply. */
  4054. char res_mkquery ();
  4055. int
  4056. main ()
  4057. {
  4058. res_mkquery ();
  4059. ;
  4060. return 0;
  4061. }
  4062. _ACEOF
  4063. rm -f conftest.$ac_objext conftest$ac_exeext
  4064. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4065. (eval $ac_link) 2>conftest.er1
  4066. ac_status=$?
  4067. grep -v '^ *+' conftest.er1 >conftest.err
  4068. rm -f conftest.er1
  4069. cat conftest.err >&5
  4070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4071. (exit $ac_status); } &&
  4072. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4073. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4074. (eval $ac_try) 2>&5
  4075. ac_status=$?
  4076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4077. (exit $ac_status); }; } &&
  4078. { ac_try='test -s conftest$ac_exeext'
  4079. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4080. (eval $ac_try) 2>&5
  4081. ac_status=$?
  4082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4083. (exit $ac_status); }; }; then
  4084. ac_cv_lib_bind_res_mkquery=yes
  4085. else
  4086. echo "$as_me: failed program was:" >&5
  4087. sed 's/^/| /' conftest.$ac_ext >&5
  4088. ac_cv_lib_bind_res_mkquery=no
  4089. fi
  4090. rm -f conftest.err conftest.$ac_objext \
  4091. conftest$ac_exeext conftest.$ac_ext
  4092. LIBS=$ac_check_lib_save_LIBS
  4093. fi
  4094. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_mkquery" >&5
  4095. echo "${ECHO_T}$ac_cv_lib_bind_res_mkquery" >&6
  4096. if test $ac_cv_lib_bind_res_mkquery = yes; then
  4097. if test "x${RESLIB}" != "x-lbind"; then
  4098. RESLIB="${RESLIB} -lbind"
  4099. fi
  4100. else
  4101. dns_reslib_avail="false";
  4102. fi
  4103. fi
  4104. fi
  4105. if test "${dns_reslib_avail}" = false; then
  4106. dns_reslib_avail="true"
  4107. echo "$as_me:$LINENO: checking for __res_mkquery" >&5
  4108. echo $ECHO_N "checking for __res_mkquery... $ECHO_C" >&6
  4109. if test "${ac_cv_func___res_mkquery+set}" = set; then
  4110. echo $ECHO_N "(cached) $ECHO_C" >&6
  4111. else
  4112. cat >conftest.$ac_ext <<_ACEOF
  4113. /* confdefs.h. */
  4114. _ACEOF
  4115. cat confdefs.h >>conftest.$ac_ext
  4116. cat >>conftest.$ac_ext <<_ACEOF
  4117. /* end confdefs.h. */
  4118. /* Define __res_mkquery to an innocuous variant, in case <limits.h> declares __res_mkquery.
  4119. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4120. #define __res_mkquery innocuous___res_mkquery
  4121. /* System header to define __stub macros and hopefully few prototypes,
  4122. which can conflict with char __res_mkquery (); below.
  4123. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4124. <limits.h> exists even on freestanding compilers. */
  4125. #ifdef __STDC__
  4126. # include <limits.h>
  4127. #else
  4128. # include <assert.h>
  4129. #endif
  4130. #undef __res_mkquery
  4131. /* Override any gcc2 internal prototype to avoid an error. */
  4132. #ifdef __cplusplus
  4133. extern "C"
  4134. {
  4135. #endif
  4136. /* We use char because int might match the return type of a gcc2
  4137. builtin and then its argument prototype would still apply. */
  4138. char __res_mkquery ();
  4139. /* The GNU C library defines this for functions which it implements
  4140. to always fail with ENOSYS. Some functions are actually named
  4141. something starting with __ and the normal name is an alias. */
  4142. #if defined (__stub___res_mkquery) || defined (__stub_____res_mkquery)
  4143. choke me
  4144. #else
  4145. char (*f) () = __res_mkquery;
  4146. #endif
  4147. #ifdef __cplusplus
  4148. }
  4149. #endif
  4150. int
  4151. main ()
  4152. {
  4153. return f != __res_mkquery;
  4154. ;
  4155. return 0;
  4156. }
  4157. _ACEOF
  4158. rm -f conftest.$ac_objext conftest$ac_exeext
  4159. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4160. (eval $ac_link) 2>conftest.er1
  4161. ac_status=$?
  4162. grep -v '^ *+' conftest.er1 >conftest.err
  4163. rm -f conftest.er1
  4164. cat conftest.err >&5
  4165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4166. (exit $ac_status); } &&
  4167. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4168. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4169. (eval $ac_try) 2>&5
  4170. ac_status=$?
  4171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4172. (exit $ac_status); }; } &&
  4173. { ac_try='test -s conftest$ac_exeext'
  4174. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4175. (eval $ac_try) 2>&5
  4176. ac_status=$?
  4177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4178. (exit $ac_status); }; }; then
  4179. ac_cv_func___res_mkquery=yes
  4180. else
  4181. echo "$as_me: failed program was:" >&5
  4182. sed 's/^/| /' conftest.$ac_ext >&5
  4183. ac_cv_func___res_mkquery=no
  4184. fi
  4185. rm -f conftest.err conftest.$ac_objext \
  4186. conftest$ac_exeext conftest.$ac_ext
  4187. fi
  4188. echo "$as_me:$LINENO: result: $ac_cv_func___res_mkquery" >&5
  4189. echo "${ECHO_T}$ac_cv_func___res_mkquery" >&6
  4190. if test $ac_cv_func___res_mkquery = yes; then
  4191. :
  4192. else
  4193. echo "$as_me:$LINENO: checking for __res_mkquery in -lresolv" >&5
  4194. echo $ECHO_N "checking for __res_mkquery in -lresolv... $ECHO_C" >&6
  4195. if test "${ac_cv_lib_resolv___res_mkquery+set}" = set; then
  4196. echo $ECHO_N "(cached) $ECHO_C" >&6
  4197. else
  4198. ac_check_lib_save_LIBS=$LIBS
  4199. LIBS="-lresolv $LIBS"
  4200. cat >conftest.$ac_ext <<_ACEOF
  4201. /* confdefs.h. */
  4202. _ACEOF
  4203. cat confdefs.h >>conftest.$ac_ext
  4204. cat >>conftest.$ac_ext <<_ACEOF
  4205. /* end confdefs.h. */
  4206. /* Override any gcc2 internal prototype to avoid an error. */
  4207. #ifdef __cplusplus
  4208. extern "C"
  4209. #endif
  4210. /* We use char because int might match the return type of a gcc2
  4211. builtin and then its argument prototype would still apply. */
  4212. char __res_mkquery ();
  4213. int
  4214. main ()
  4215. {
  4216. __res_mkquery ();
  4217. ;
  4218. return 0;
  4219. }
  4220. _ACEOF
  4221. rm -f conftest.$ac_objext conftest$ac_exeext
  4222. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4223. (eval $ac_link) 2>conftest.er1
  4224. ac_status=$?
  4225. grep -v '^ *+' conftest.er1 >conftest.err
  4226. rm -f conftest.er1
  4227. cat conftest.err >&5
  4228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4229. (exit $ac_status); } &&
  4230. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4231. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4232. (eval $ac_try) 2>&5
  4233. ac_status=$?
  4234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4235. (exit $ac_status); }; } &&
  4236. { ac_try='test -s conftest$ac_exeext'
  4237. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4238. (eval $ac_try) 2>&5
  4239. ac_status=$?
  4240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4241. (exit $ac_status); }; }; then
  4242. ac_cv_lib_resolv___res_mkquery=yes
  4243. else
  4244. echo "$as_me: failed program was:" >&5
  4245. sed 's/^/| /' conftest.$ac_ext >&5
  4246. ac_cv_lib_resolv___res_mkquery=no
  4247. fi
  4248. rm -f conftest.err conftest.$ac_objext \
  4249. conftest$ac_exeext conftest.$ac_ext
  4250. LIBS=$ac_check_lib_save_LIBS
  4251. fi
  4252. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_mkquery" >&5
  4253. echo "${ECHO_T}$ac_cv_lib_resolv___res_mkquery" >&6
  4254. if test $ac_cv_lib_resolv___res_mkquery = yes; then
  4255. if test "x${RESLIB}" != "x-lresolv"; then
  4256. RESLIB="${RESLIB} -lresolv"
  4257. fi
  4258. else
  4259. echo "$as_me:$LINENO: checking for __res_mkquery in -lbind" >&5
  4260. echo $ECHO_N "checking for __res_mkquery in -lbind... $ECHO_C" >&6
  4261. if test "${ac_cv_lib_bind___res_mkquery+set}" = set; then
  4262. echo $ECHO_N "(cached) $ECHO_C" >&6
  4263. else
  4264. ac_check_lib_save_LIBS=$LIBS
  4265. LIBS="-lbind $LIBS"
  4266. cat >conftest.$ac_ext <<_ACEOF
  4267. /* confdefs.h. */
  4268. _ACEOF
  4269. cat confdefs.h >>conftest.$ac_ext
  4270. cat >>conftest.$ac_ext <<_ACEOF
  4271. /* end confdefs.h. */
  4272. /* Override any gcc2 internal prototype to avoid an error. */
  4273. #ifdef __cplusplus
  4274. extern "C"
  4275. #endif
  4276. /* We use char because int might match the return type of a gcc2
  4277. builtin and then its argument prototype would still apply. */
  4278. char __res_mkquery ();
  4279. int
  4280. main ()
  4281. {
  4282. __res_mkquery ();
  4283. ;
  4284. return 0;
  4285. }
  4286. _ACEOF
  4287. rm -f conftest.$ac_objext conftest$ac_exeext
  4288. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4289. (eval $ac_link) 2>conftest.er1
  4290. ac_status=$?
  4291. grep -v '^ *+' conftest.er1 >conftest.err
  4292. rm -f conftest.er1
  4293. cat conftest.err >&5
  4294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4295. (exit $ac_status); } &&
  4296. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4297. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4298. (eval $ac_try) 2>&5
  4299. ac_status=$?
  4300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4301. (exit $ac_status); }; } &&
  4302. { ac_try='test -s conftest$ac_exeext'
  4303. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4304. (eval $ac_try) 2>&5
  4305. ac_status=$?
  4306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4307. (exit $ac_status); }; }; then
  4308. ac_cv_lib_bind___res_mkquery=yes
  4309. else
  4310. echo "$as_me: failed program was:" >&5
  4311. sed 's/^/| /' conftest.$ac_ext >&5
  4312. ac_cv_lib_bind___res_mkquery=no
  4313. fi
  4314. rm -f conftest.err conftest.$ac_objext \
  4315. conftest$ac_exeext conftest.$ac_ext
  4316. LIBS=$ac_check_lib_save_LIBS
  4317. fi
  4318. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_mkquery" >&5
  4319. echo "${ECHO_T}$ac_cv_lib_bind___res_mkquery" >&6
  4320. if test $ac_cv_lib_bind___res_mkquery = yes; then
  4321. if test "x${RESLIB}" != "x-lbind"; then
  4322. RESLIB="${RESLIB} -lbind"
  4323. fi
  4324. else
  4325. dns_reslib_avail="false";
  4326. fi
  4327. fi
  4328. fi
  4329. fi
  4330. if test "${dns_reslib_avail}" = false; then
  4331. if test "$ac_cv_cygwin" = "yes"; then
  4332. echo "$as_me:$LINENO: checking for /usr/local/bind/lib/libbind.a" >&5
  4333. echo $ECHO_N "checking for /usr/local/bind/lib/libbind.a... $ECHO_C" >&6
  4334. if test -r /usr/local/bind/lib/libbind.a; then
  4335. echo "$as_me:$LINENO: result: yes" >&5
  4336. echo "${ECHO_T}yes" >&6
  4337. RESLIB="${RESLIB} -L/usr/local/bind/lib -lbind"
  4338. RESINCLUDE="-I/usr/local/bind/include"
  4339. dns_reslib_avail="true"
  4340. else
  4341. echo "$as_me:$LINENO: result: no" >&5
  4342. echo "${ECHO_T}no" >&6
  4343. fi
  4344. fi
  4345. fi
  4346. if test "${dns_reslib_avail}" = false; then
  4347. cat >&2 <<EOF
  4348. configure: warning:
  4349. Your system provides no functional resolver library.
  4350. One is required for buld.
  4351. EOF
  4352. exit 1
  4353. fi
  4354. #checkpoint
  4355. cat >confcache <<\_ACEOF
  4356. # This file is a shell script that caches the results of configure
  4357. # tests run on this system so they can be shared between configure
  4358. # scripts and configure runs, see configure's option --config-cache.
  4359. # It is not useful on other systems. If it contains results you don't
  4360. # want to keep, you may remove or edit it.
  4361. #
  4362. # config.status only pays attention to the cache file if you give it
  4363. # the --recheck option to rerun configure.
  4364. #
  4365. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4366. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4367. # following values.
  4368. _ACEOF
  4369. # The following way of writing the cache mishandles newlines in values,
  4370. # but we know of no workaround that is simple, portable, and efficient.
  4371. # So, don't put newlines in cache variables' values.
  4372. # Ultrix sh set writes to stderr and can't be redirected directly,
  4373. # and sets the high bit in the cache file unless we assign to the vars.
  4374. {
  4375. (set) 2>&1 |
  4376. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4377. *ac_space=\ *)
  4378. # `set' does not quote correctly, so add quotes (double-quote
  4379. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4380. sed -n \
  4381. "s/'/'\\\\''/g;
  4382. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4383. ;;
  4384. *)
  4385. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4386. sed -n \
  4387. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4388. ;;
  4389. esac;
  4390. } |
  4391. sed '
  4392. t clear
  4393. : clear
  4394. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4395. t end
  4396. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4397. : end' >>confcache
  4398. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4399. if test -w $cache_file; then
  4400. test "x$cache_file" != "x/dev/null"
  4401. cat confcache >$cache_file
  4402. else
  4403. echo "not updating unwritable cache $cache_file"
  4404. fi
  4405. fi
  4406. rm -f confcache
  4407. # Checks for system libraries
  4408. # FIXME: this needs to be fixed so that it works on IRIX
  4409. if test "$IRIX" = "yes"
  4410. then
  4411. { echo "$as_me:$LINENO: WARNING: Skipping library tests because they CONFUSE Irix." >&5
  4412. echo "$as_me: WARNING: Skipping library tests because they CONFUSE Irix." >&2;}
  4413. else
  4414. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4415. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  4416. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4417. echo $ECHO_N "(cached) $ECHO_C" >&6
  4418. else
  4419. ac_check_lib_save_LIBS=$LIBS
  4420. LIBS="-lsocket $LIBS"
  4421. cat >conftest.$ac_ext <<_ACEOF
  4422. /* confdefs.h. */
  4423. _ACEOF
  4424. cat confdefs.h >>conftest.$ac_ext
  4425. cat >>conftest.$ac_ext <<_ACEOF
  4426. /* end confdefs.h. */
  4427. /* Override any gcc2 internal prototype to avoid an error. */
  4428. #ifdef __cplusplus
  4429. extern "C"
  4430. #endif
  4431. /* We use char because int might match the return type of a gcc2
  4432. builtin and then its argument prototype would still apply. */
  4433. char socket ();
  4434. int
  4435. main ()
  4436. {
  4437. socket ();
  4438. ;
  4439. return 0;
  4440. }
  4441. _ACEOF
  4442. rm -f conftest.$ac_objext conftest$ac_exeext
  4443. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4444. (eval $ac_link) 2>conftest.er1
  4445. ac_status=$?
  4446. grep -v '^ *+' conftest.er1 >conftest.err
  4447. rm -f conftest.er1
  4448. cat conftest.err >&5
  4449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4450. (exit $ac_status); } &&
  4451. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4452. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4453. (eval $ac_try) 2>&5
  4454. ac_status=$?
  4455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4456. (exit $ac_status); }; } &&
  4457. { ac_try='test -s conftest$ac_exeext'
  4458. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4459. (eval $ac_try) 2>&5
  4460. ac_status=$?
  4461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4462. (exit $ac_status); }; }; then
  4463. ac_cv_lib_socket_socket=yes
  4464. else
  4465. echo "$as_me: failed program was:" >&5
  4466. sed 's/^/| /' conftest.$ac_ext >&5
  4467. ac_cv_lib_socket_socket=no
  4468. fi
  4469. rm -f conftest.err conftest.$ac_objext \
  4470. conftest$ac_exeext conftest.$ac_ext
  4471. LIBS=$ac_check_lib_save_LIBS
  4472. fi
  4473. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4474. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  4475. if test $ac_cv_lib_socket_socket = yes; then
  4476. cat >>confdefs.h <<_ACEOF
  4477. #define HAVE_LIBSOCKET 1
  4478. _ACEOF
  4479. LIBS="-lsocket $LIBS"
  4480. fi
  4481. echo "$as_me:$LINENO: checking for connect in -lnsl" >&5
  4482. echo $ECHO_N "checking for connect in -lnsl... $ECHO_C" >&6
  4483. if test "${ac_cv_lib_nsl_connect+set}" = set; then
  4484. echo $ECHO_N "(cached) $ECHO_C" >&6
  4485. else
  4486. ac_check_lib_save_LIBS=$LIBS
  4487. LIBS="-lnsl $LIBS"
  4488. cat >conftest.$ac_ext <<_ACEOF
  4489. /* confdefs.h. */
  4490. _ACEOF
  4491. cat confdefs.h >>conftest.$ac_ext
  4492. cat >>conftest.$ac_ext <<_ACEOF
  4493. /* end confdefs.h. */
  4494. /* Override any gcc2 internal prototype to avoid an error. */
  4495. #ifdef __cplusplus
  4496. extern "C"
  4497. #endif
  4498. /* We use char because int might match the return type of a gcc2
  4499. builtin and then its argument prototype would still apply. */
  4500. char connect ();
  4501. int
  4502. main ()
  4503. {
  4504. connect ();
  4505. ;
  4506. return 0;
  4507. }
  4508. _ACEOF
  4509. rm -f conftest.$ac_objext conftest$ac_exeext
  4510. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4511. (eval $ac_link) 2>conftest.er1
  4512. ac_status=$?
  4513. grep -v '^ *+' conftest.er1 >conftest.err
  4514. rm -f conftest.er1
  4515. cat conftest.err >&5
  4516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4517. (exit $ac_status); } &&
  4518. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4519. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4520. (eval $ac_try) 2>&5
  4521. ac_status=$?
  4522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4523. (exit $ac_status); }; } &&
  4524. { ac_try='test -s conftest$ac_exeext'
  4525. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4526. (eval $ac_try) 2>&5
  4527. ac_status=$?
  4528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4529. (exit $ac_status); }; }; then
  4530. ac_cv_lib_nsl_connect=yes
  4531. else
  4532. echo "$as_me: failed program was:" >&5
  4533. sed 's/^/| /' conftest.$ac_ext >&5
  4534. ac_cv_lib_nsl_connect=no
  4535. fi
  4536. rm -f conftest.err conftest.$ac_objext \
  4537. conftest$ac_exeext conftest.$ac_ext
  4538. LIBS=$ac_check_lib_save_LIBS
  4539. fi
  4540. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_connect" >&5
  4541. echo "${ECHO_T}$ac_cv_lib_nsl_connect" >&6
  4542. if test $ac_cv_lib_nsl_connect = yes; then
  4543. cat >>confdefs.h <<_ACEOF
  4544. #define HAVE_LIBNSL 1
  4545. _ACEOF
  4546. LIBS="-lnsl $LIBS"
  4547. fi
  4548. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  4549. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  4550. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  4551. echo $ECHO_N "(cached) $ECHO_C" >&6
  4552. else
  4553. ac_check_lib_save_LIBS=$LIBS
  4554. LIBS="-ldns $LIBS"
  4555. cat >conftest.$ac_ext <<_ACEOF
  4556. /* confdefs.h. */
  4557. _ACEOF
  4558. cat confdefs.h >>conftest.$ac_ext
  4559. cat >>conftest.$ac_ext <<_ACEOF
  4560. /* end confdefs.h. */
  4561. /* Override any gcc2 internal prototype to avoid an error. */
  4562. #ifdef __cplusplus
  4563. extern "C"
  4564. #endif
  4565. /* We use char because int might match the return type of a gcc2
  4566. builtin and then its argument prototype would still apply. */
  4567. char gethostbyname ();
  4568. int
  4569. main ()
  4570. {
  4571. gethostbyname ();
  4572. ;
  4573. return 0;
  4574. }
  4575. _ACEOF
  4576. rm -f conftest.$ac_objext conftest$ac_exeext
  4577. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4578. (eval $ac_link) 2>conftest.er1
  4579. ac_status=$?
  4580. grep -v '^ *+' conftest.er1 >conftest.err
  4581. rm -f conftest.er1
  4582. cat conftest.err >&5
  4583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4584. (exit $ac_status); } &&
  4585. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4586. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4587. (eval $ac_try) 2>&5
  4588. ac_status=$?
  4589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4590. (exit $ac_status); }; } &&
  4591. { ac_try='test -s conftest$ac_exeext'
  4592. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4593. (eval $ac_try) 2>&5
  4594. ac_status=$?
  4595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4596. (exit $ac_status); }; }; then
  4597. ac_cv_lib_dns_gethostbyname=yes
  4598. else
  4599. echo "$as_me: failed program was:" >&5
  4600. sed 's/^/| /' conftest.$ac_ext >&5
  4601. ac_cv_lib_dns_gethostbyname=no
  4602. fi
  4603. rm -f conftest.err conftest.$ac_objext \
  4604. conftest$ac_exeext conftest.$ac_ext
  4605. LIBS=$ac_check_lib_save_LIBS
  4606. fi
  4607. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  4608. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  4609. if test $ac_cv_lib_dns_gethostbyname = yes; then
  4610. cat >>confdefs.h <<_ACEOF
  4611. #define HAVE_LIBDNS 1
  4612. _ACEOF
  4613. LIBS="-ldns $LIBS"
  4614. fi
  4615. echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
  4616. echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
  4617. if test "${ac_cv_lib_z_gzopen+set}" = set; then
  4618. echo $ECHO_N "(cached) $ECHO_C" >&6
  4619. else
  4620. ac_check_lib_save_LIBS=$LIBS
  4621. LIBS="-lz $LIBS"
  4622. cat >conftest.$ac_ext <<_ACEOF
  4623. /* confdefs.h. */
  4624. _ACEOF
  4625. cat confdefs.h >>conftest.$ac_ext
  4626. cat >>conftest.$ac_ext <<_ACEOF
  4627. /* end confdefs.h. */
  4628. /* Override any gcc2 internal prototype to avoid an error. */
  4629. #ifdef __cplusplus
  4630. extern "C"
  4631. #endif
  4632. /* We use char because int might match the return type of a gcc2
  4633. builtin and then its argument prototype would still apply. */
  4634. char gzopen ();
  4635. int
  4636. main ()
  4637. {
  4638. gzopen ();
  4639. ;
  4640. return 0;
  4641. }
  4642. _ACEOF
  4643. rm -f conftest.$ac_objext conftest$ac_exeext
  4644. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4645. (eval $ac_link) 2>conftest.er1
  4646. ac_status=$?
  4647. grep -v '^ *+' conftest.er1 >conftest.err
  4648. rm -f conftest.er1
  4649. cat conftest.err >&5
  4650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4651. (exit $ac_status); } &&
  4652. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4653. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4654. (eval $ac_try) 2>&5
  4655. ac_status=$?
  4656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4657. (exit $ac_status); }; } &&
  4658. { ac_try='test -s conftest$ac_exeext'
  4659. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4660. (eval $ac_try) 2>&5
  4661. ac_status=$?
  4662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4663. (exit $ac_status); }; }; then
  4664. ac_cv_lib_z_gzopen=yes
  4665. else
  4666. echo "$as_me: failed program was:" >&5
  4667. sed 's/^/| /' conftest.$ac_ext >&5
  4668. ac_cv_lib_z_gzopen=no
  4669. fi
  4670. rm -f conftest.err conftest.$ac_objext \
  4671. conftest$ac_exeext conftest.$ac_ext
  4672. LIBS=$ac_check_lib_save_LIBS
  4673. fi
  4674. echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
  4675. echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
  4676. if test $ac_cv_lib_z_gzopen = yes; then
  4677. ZLIB="-lz"
  4678. fi
  4679. echo "$as_me:$LINENO: checking for SSL_accept in -lssl" >&5
  4680. echo $ECHO_N "checking for SSL_accept in -lssl... $ECHO_C" >&6
  4681. if test "${ac_cv_lib_ssl_SSL_accept+set}" = set; then
  4682. echo $ECHO_N "(cached) $ECHO_C" >&6
  4683. else
  4684. ac_check_lib_save_LIBS=$LIBS
  4685. LIBS="-lssl -lcrypto $LIBS"
  4686. cat >conftest.$ac_ext <<_ACEOF
  4687. /* confdefs.h. */
  4688. _ACEOF
  4689. cat confdefs.h >>conftest.$ac_ext
  4690. cat >>conftest.$ac_ext <<_ACEOF
  4691. /* end confdefs.h. */
  4692. /* Override any gcc2 internal prototype to avoid an error. */
  4693. #ifdef __cplusplus
  4694. extern "C"
  4695. #endif
  4696. /* We use char because int might match the return type of a gcc2
  4697. builtin and then its argument prototype would still apply. */
  4698. char SSL_accept ();
  4699. int
  4700. main ()
  4701. {
  4702. SSL_accept ();
  4703. ;
  4704. return 0;
  4705. }
  4706. _ACEOF
  4707. rm -f conftest.$ac_objext conftest$ac_exeext
  4708. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4709. (eval $ac_link) 2>conftest.er1
  4710. ac_status=$?
  4711. grep -v '^ *+' conftest.er1 >conftest.err
  4712. rm -f conftest.er1
  4713. cat conftest.err >&5
  4714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4715. (exit $ac_status); } &&
  4716. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4717. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4718. (eval $ac_try) 2>&5
  4719. ac_status=$?
  4720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4721. (exit $ac_status); }; } &&
  4722. { ac_try='test -s conftest$ac_exeext'
  4723. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4724. (eval $ac_try) 2>&5
  4725. ac_status=$?
  4726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4727. (exit $ac_status); }; }; then
  4728. ac_cv_lib_ssl_SSL_accept=yes
  4729. else
  4730. echo "$as_me: failed program was:" >&5
  4731. sed 's/^/| /' conftest.$ac_ext >&5
  4732. ac_cv_lib_ssl_SSL_accept=no
  4733. fi
  4734. rm -f conftest.err conftest.$ac_objext \
  4735. conftest$ac_exeext conftest.$ac_ext
  4736. LIBS=$ac_check_lib_save_LIBS
  4737. fi
  4738. echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_accept" >&5
  4739. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_accept" >&6
  4740. if test $ac_cv_lib_ssl_SSL_accept = yes; then
  4741. SSL="-lssl -lcrypto"
  4742. else
  4743. SSL=""
  4744. fi
  4745. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  4746. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  4747. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  4748. echo $ECHO_N "(cached) $ECHO_C" >&6
  4749. else
  4750. ac_check_lib_save_LIBS=$LIBS
  4751. LIBS="-ldl $LIBS"
  4752. cat >conftest.$ac_ext <<_ACEOF
  4753. /* confdefs.h. */
  4754. _ACEOF
  4755. cat confdefs.h >>conftest.$ac_ext
  4756. cat >>conftest.$ac_ext <<_ACEOF
  4757. /* end confdefs.h. */
  4758. /* Override any gcc2 internal prototype to avoid an error. */
  4759. #ifdef __cplusplus
  4760. extern "C"
  4761. #endif
  4762. /* We use char because int might match the return type of a gcc2
  4763. builtin and then its argument prototype would still apply. */
  4764. char dlopen ();
  4765. int
  4766. main ()
  4767. {
  4768. dlopen ();
  4769. ;
  4770. return 0;
  4771. }
  4772. _ACEOF
  4773. rm -f conftest.$ac_objext conftest$ac_exeext
  4774. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4775. (eval $ac_link) 2>conftest.er1
  4776. ac_status=$?
  4777. grep -v '^ *+' conftest.er1 >conftest.err
  4778. rm -f conftest.er1
  4779. cat conftest.err >&5
  4780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4781. (exit $ac_status); } &&
  4782. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4783. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4784. (eval $ac_try) 2>&5
  4785. ac_status=$?
  4786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4787. (exit $ac_status); }; } &&
  4788. { ac_try='test -s conftest$ac_exeext'
  4789. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4790. (eval $ac_try) 2>&5
  4791. ac_status=$?
  4792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4793. (exit $ac_status); }; }; then
  4794. ac_cv_lib_dl_dlopen=yes
  4795. else
  4796. echo "$as_me: failed program was:" >&5
  4797. sed 's/^/| /' conftest.$ac_ext >&5
  4798. ac_cv_lib_dl_dlopen=no
  4799. fi
  4800. rm -f conftest.err conftest.$ac_objext \
  4801. conftest$ac_exeext conftest.$ac_ext
  4802. LIBS=$ac_check_lib_save_LIBS
  4803. fi
  4804. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  4805. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  4806. if test $ac_cv_lib_dl_dlopen = yes; then
  4807. cat >>confdefs.h <<_ACEOF
  4808. #define HAVE_LIBDL 1
  4809. _ACEOF
  4810. LIBS="-ldl $LIBS"
  4811. fi
  4812. echo "$as_me:$LINENO: checking for tan in -lm" >&5
  4813. echo $ECHO_N "checking for tan in -lm... $ECHO_C" >&6
  4814. if test "${ac_cv_lib_m_tan+set}" = set; then
  4815. echo $ECHO_N "(cached) $ECHO_C" >&6
  4816. else
  4817. ac_check_lib_save_LIBS=$LIBS
  4818. LIBS="-lm $LIBS"
  4819. cat >conftest.$ac_ext <<_ACEOF
  4820. /* confdefs.h. */
  4821. _ACEOF
  4822. cat confdefs.h >>conftest.$ac_ext
  4823. cat >>conftest.$ac_ext <<_ACEOF
  4824. /* end confdefs.h. */
  4825. /* Override any gcc2 internal prototype to avoid an error. */
  4826. #ifdef __cplusplus
  4827. extern "C"
  4828. #endif
  4829. /* We use char because int might match the return type of a gcc2
  4830. builtin and then its argument prototype would still apply. */
  4831. char tan ();
  4832. int
  4833. main ()
  4834. {
  4835. tan ();
  4836. ;
  4837. return 0;
  4838. }
  4839. _ACEOF
  4840. rm -f conftest.$ac_objext conftest$ac_exeext
  4841. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4842. (eval $ac_link) 2>conftest.er1
  4843. ac_status=$?
  4844. grep -v '^ *+' conftest.er1 >conftest.err
  4845. rm -f conftest.er1
  4846. cat conftest.err >&5
  4847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4848. (exit $ac_status); } &&
  4849. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4850. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4851. (eval $ac_try) 2>&5
  4852. ac_status=$?
  4853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4854. (exit $ac_status); }; } &&
  4855. { ac_try='test -s conftest$ac_exeext'
  4856. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4857. (eval $ac_try) 2>&5
  4858. ac_status=$?
  4859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4860. (exit $ac_status); }; }; then
  4861. ac_cv_lib_m_tan=yes
  4862. else
  4863. echo "$as_me: failed program was:" >&5
  4864. sed 's/^/| /' conftest.$ac_ext >&5
  4865. ac_cv_lib_m_tan=no
  4866. fi
  4867. rm -f conftest.err conftest.$ac_objext \
  4868. conftest$ac_exeext conftest.$ac_ext
  4869. LIBS=$ac_check_lib_save_LIBS
  4870. fi
  4871. echo "$as_me:$LINENO: result: $ac_cv_lib_m_tan" >&5
  4872. echo "${ECHO_T}$ac_cv_lib_m_tan" >&6
  4873. if test $ac_cv_lib_m_tan = yes; then
  4874. EGG_MATH_LIB="-lm"
  4875. fi
  4876. # This is needed for Tcl libraries compiled with thread support
  4877. echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
  4878. echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
  4879. if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
  4880. echo $ECHO_N "(cached) $ECHO_C" >&6
  4881. else
  4882. ac_check_lib_save_LIBS=$LIBS
  4883. LIBS="-lpthread $LIBS"
  4884. cat >conftest.$ac_ext <<_ACEOF
  4885. /* confdefs.h. */
  4886. _ACEOF
  4887. cat confdefs.h >>conftest.$ac_ext
  4888. cat >>conftest.$ac_ext <<_ACEOF
  4889. /* end confdefs.h. */
  4890. /* Override any gcc2 internal prototype to avoid an error. */
  4891. #ifdef __cplusplus
  4892. extern "C"
  4893. #endif
  4894. /* We use char because int might match the return type of a gcc2
  4895. builtin and then its argument prototype would still apply. */
  4896. char pthread_mutex_init ();
  4897. int
  4898. main ()
  4899. {
  4900. pthread_mutex_init ();
  4901. ;
  4902. return 0;
  4903. }
  4904. _ACEOF
  4905. rm -f conftest.$ac_objext conftest$ac_exeext
  4906. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4907. (eval $ac_link) 2>conftest.er1
  4908. ac_status=$?
  4909. grep -v '^ *+' conftest.er1 >conftest.err
  4910. rm -f conftest.er1
  4911. cat conftest.err >&5
  4912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4913. (exit $ac_status); } &&
  4914. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4915. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4916. (eval $ac_try) 2>&5
  4917. ac_status=$?
  4918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4919. (exit $ac_status); }; } &&
  4920. { ac_try='test -s conftest$ac_exeext'
  4921. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4922. (eval $ac_try) 2>&5
  4923. ac_status=$?
  4924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4925. (exit $ac_status); }; }; then
  4926. ac_cv_lib_pthread_pthread_mutex_init=yes
  4927. else
  4928. echo "$as_me: failed program was:" >&5
  4929. sed 's/^/| /' conftest.$ac_ext >&5
  4930. ac_cv_lib_pthread_pthread_mutex_init=no
  4931. fi
  4932. rm -f conftest.err conftest.$ac_objext \
  4933. conftest$ac_exeext conftest.$ac_ext
  4934. LIBS=$ac_check_lib_save_LIBS
  4935. fi
  4936. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
  4937. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
  4938. if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
  4939. ac_cv_lib_pthread_pthread_mutex_init=yes
  4940. ac_cv_lib_pthread="-lpthread"
  4941. else
  4942. echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5
  4943. echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6
  4944. if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then
  4945. echo $ECHO_N "(cached) $ECHO_C" >&6
  4946. else
  4947. ac_check_lib_save_LIBS=$LIBS
  4948. LIBS="-lpthread $LIBS"
  4949. cat >conftest.$ac_ext <<_ACEOF
  4950. /* confdefs.h. */
  4951. _ACEOF
  4952. cat confdefs.h >>conftest.$ac_ext
  4953. cat >>conftest.$ac_ext <<_ACEOF
  4954. /* end confdefs.h. */
  4955. /* Override any gcc2 internal prototype to avoid an error. */
  4956. #ifdef __cplusplus
  4957. extern "C"
  4958. #endif
  4959. /* We use char because int might match the return type of a gcc2
  4960. builtin and then its argument prototype would still apply. */
  4961. char __pthread_mutex_init ();
  4962. int
  4963. main ()
  4964. {
  4965. __pthread_mutex_init ();
  4966. ;
  4967. return 0;
  4968. }
  4969. _ACEOF
  4970. rm -f conftest.$ac_objext conftest$ac_exeext
  4971. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4972. (eval $ac_link) 2>conftest.er1
  4973. ac_status=$?
  4974. grep -v '^ *+' conftest.er1 >conftest.err
  4975. rm -f conftest.er1
  4976. cat conftest.err >&5
  4977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4978. (exit $ac_status); } &&
  4979. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4980. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4981. (eval $ac_try) 2>&5
  4982. ac_status=$?
  4983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4984. (exit $ac_status); }; } &&
  4985. { ac_try='test -s conftest$ac_exeext'
  4986. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4987. (eval $ac_try) 2>&5
  4988. ac_status=$?
  4989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4990. (exit $ac_status); }; }; then
  4991. ac_cv_lib_pthread___pthread_mutex_init=yes
  4992. else
  4993. echo "$as_me: failed program was:" >&5
  4994. sed 's/^/| /' conftest.$ac_ext >&5
  4995. ac_cv_lib_pthread___pthread_mutex_init=no
  4996. fi
  4997. rm -f conftest.err conftest.$ac_objext \
  4998. conftest$ac_exeext conftest.$ac_ext
  4999. LIBS=$ac_check_lib_save_LIBS
  5000. fi
  5001. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
  5002. echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6
  5003. if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then
  5004. ac_cv_lib_pthread_pthread_mutex_init=yes
  5005. ac_cv_lib_pthread="-lpthread"
  5006. else
  5007. echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5
  5008. echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6
  5009. if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then
  5010. echo $ECHO_N "(cached) $ECHO_C" >&6
  5011. else
  5012. ac_check_lib_save_LIBS=$LIBS
  5013. LIBS="-lpthreads $LIBS"
  5014. cat >conftest.$ac_ext <<_ACEOF
  5015. /* confdefs.h. */
  5016. _ACEOF
  5017. cat confdefs.h >>conftest.$ac_ext
  5018. cat >>conftest.$ac_ext <<_ACEOF
  5019. /* end confdefs.h. */
  5020. /* Override any gcc2 internal prototype to avoid an error. */
  5021. #ifdef __cplusplus
  5022. extern "C"
  5023. #endif
  5024. /* We use char because int might match the return type of a gcc2
  5025. builtin and then its argument prototype would still apply. */
  5026. char pthread_mutex_init ();
  5027. int
  5028. main ()
  5029. {
  5030. pthread_mutex_init ();
  5031. ;
  5032. return 0;
  5033. }
  5034. _ACEOF
  5035. rm -f conftest.$ac_objext conftest$ac_exeext
  5036. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5037. (eval $ac_link) 2>conftest.er1
  5038. ac_status=$?
  5039. grep -v '^ *+' conftest.er1 >conftest.err
  5040. rm -f conftest.er1
  5041. cat conftest.err >&5
  5042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5043. (exit $ac_status); } &&
  5044. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5045. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5046. (eval $ac_try) 2>&5
  5047. ac_status=$?
  5048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5049. (exit $ac_status); }; } &&
  5050. { ac_try='test -s conftest$ac_exeext'
  5051. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5052. (eval $ac_try) 2>&5
  5053. ac_status=$?
  5054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5055. (exit $ac_status); }; }; then
  5056. ac_cv_lib_pthreads_pthread_mutex_init=yes
  5057. else
  5058. echo "$as_me: failed program was:" >&5
  5059. sed 's/^/| /' conftest.$ac_ext >&5
  5060. ac_cv_lib_pthreads_pthread_mutex_init=no
  5061. fi
  5062. rm -f conftest.err conftest.$ac_objext \
  5063. conftest$ac_exeext conftest.$ac_ext
  5064. LIBS=$ac_check_lib_save_LIBS
  5065. fi
  5066. echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
  5067. echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6
  5068. if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then
  5069. ac_cv_lib_pthread_pthread_mutex_init=yes
  5070. ac_cv_lib_pthread="-lpthreads"
  5071. else
  5072. echo "$as_me:$LINENO: checking for pthread_mutex_init" >&5
  5073. echo $ECHO_N "checking for pthread_mutex_init... $ECHO_C" >&6
  5074. if test "${ac_cv_func_pthread_mutex_init+set}" = set; then
  5075. echo $ECHO_N "(cached) $ECHO_C" >&6
  5076. else
  5077. cat >conftest.$ac_ext <<_ACEOF
  5078. /* confdefs.h. */
  5079. _ACEOF
  5080. cat confdefs.h >>conftest.$ac_ext
  5081. cat >>conftest.$ac_ext <<_ACEOF
  5082. /* end confdefs.h. */
  5083. /* Define pthread_mutex_init to an innocuous variant, in case <limits.h> declares pthread_mutex_init.
  5084. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5085. #define pthread_mutex_init innocuous_pthread_mutex_init
  5086. /* System header to define __stub macros and hopefully few prototypes,
  5087. which can conflict with char pthread_mutex_init (); below.
  5088. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5089. <limits.h> exists even on freestanding compilers. */
  5090. #ifdef __STDC__
  5091. # include <limits.h>
  5092. #else
  5093. # include <assert.h>
  5094. #endif
  5095. #undef pthread_mutex_init
  5096. /* Override any gcc2 internal prototype to avoid an error. */
  5097. #ifdef __cplusplus
  5098. extern "C"
  5099. {
  5100. #endif
  5101. /* We use char because int might match the return type of a gcc2
  5102. builtin and then its argument prototype would still apply. */
  5103. char pthread_mutex_init ();
  5104. /* The GNU C library defines this for functions which it implements
  5105. to always fail with ENOSYS. Some functions are actually named
  5106. something starting with __ and the normal name is an alias. */
  5107. #if defined (__stub_pthread_mutex_init) || defined (__stub___pthread_mutex_init)
  5108. choke me
  5109. #else
  5110. char (*f) () = pthread_mutex_init;
  5111. #endif
  5112. #ifdef __cplusplus
  5113. }
  5114. #endif
  5115. int
  5116. main ()
  5117. {
  5118. return f != pthread_mutex_init;
  5119. ;
  5120. return 0;
  5121. }
  5122. _ACEOF
  5123. rm -f conftest.$ac_objext conftest$ac_exeext
  5124. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5125. (eval $ac_link) 2>conftest.er1
  5126. ac_status=$?
  5127. grep -v '^ *+' conftest.er1 >conftest.err
  5128. rm -f conftest.er1
  5129. cat conftest.err >&5
  5130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5131. (exit $ac_status); } &&
  5132. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5133. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5134. (eval $ac_try) 2>&5
  5135. ac_status=$?
  5136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5137. (exit $ac_status); }; } &&
  5138. { ac_try='test -s conftest$ac_exeext'
  5139. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5140. (eval $ac_try) 2>&5
  5141. ac_status=$?
  5142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5143. (exit $ac_status); }; }; then
  5144. ac_cv_func_pthread_mutex_init=yes
  5145. else
  5146. echo "$as_me: failed program was:" >&5
  5147. sed 's/^/| /' conftest.$ac_ext >&5
  5148. ac_cv_func_pthread_mutex_init=no
  5149. fi
  5150. rm -f conftest.err conftest.$ac_objext \
  5151. conftest$ac_exeext conftest.$ac_ext
  5152. fi
  5153. echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_init" >&5
  5154. echo "${ECHO_T}$ac_cv_func_pthread_mutex_init" >&6
  5155. if test $ac_cv_func_pthread_mutex_init = yes; then
  5156. ac_cv_lib_pthread_pthread_mutex_init=yes
  5157. ac_cv_lib_pthread=""
  5158. else
  5159. ac_cv_lib_pthread_pthread_mutex_init=no
  5160. fi
  5161. fi
  5162. fi
  5163. fi
  5164. if test "$SUNOS" = "yes"
  5165. then
  5166. # For suns without yp or something like that
  5167. echo "$as_me:$LINENO: checking for main in -ldl" >&5
  5168. echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
  5169. if test "${ac_cv_lib_dl_main+set}" = set; then
  5170. echo $ECHO_N "(cached) $ECHO_C" >&6
  5171. else
  5172. ac_check_lib_save_LIBS=$LIBS
  5173. LIBS="-ldl $LIBS"
  5174. cat >conftest.$ac_ext <<_ACEOF
  5175. /* confdefs.h. */
  5176. _ACEOF
  5177. cat confdefs.h >>conftest.$ac_ext
  5178. cat >>conftest.$ac_ext <<_ACEOF
  5179. /* end confdefs.h. */
  5180. int
  5181. main ()
  5182. {
  5183. main ();
  5184. ;
  5185. return 0;
  5186. }
  5187. _ACEOF
  5188. rm -f conftest.$ac_objext conftest$ac_exeext
  5189. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5190. (eval $ac_link) 2>conftest.er1
  5191. ac_status=$?
  5192. grep -v '^ *+' conftest.er1 >conftest.err
  5193. rm -f conftest.er1
  5194. cat conftest.err >&5
  5195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5196. (exit $ac_status); } &&
  5197. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5198. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5199. (eval $ac_try) 2>&5
  5200. ac_status=$?
  5201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5202. (exit $ac_status); }; } &&
  5203. { ac_try='test -s conftest$ac_exeext'
  5204. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5205. (eval $ac_try) 2>&5
  5206. ac_status=$?
  5207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5208. (exit $ac_status); }; }; then
  5209. ac_cv_lib_dl_main=yes
  5210. else
  5211. echo "$as_me: failed program was:" >&5
  5212. sed 's/^/| /' conftest.$ac_ext >&5
  5213. ac_cv_lib_dl_main=no
  5214. fi
  5215. rm -f conftest.err conftest.$ac_objext \
  5216. conftest$ac_exeext conftest.$ac_ext
  5217. LIBS=$ac_check_lib_save_LIBS
  5218. fi
  5219. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
  5220. echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
  5221. if test $ac_cv_lib_dl_main = yes; then
  5222. cat >>confdefs.h <<_ACEOF
  5223. #define HAVE_LIBDL 1
  5224. _ACEOF
  5225. LIBS="-ldl $LIBS"
  5226. fi
  5227. else
  5228. if test "$HPUX" = "yes"
  5229. then
  5230. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  5231. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  5232. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  5233. echo $ECHO_N "(cached) $ECHO_C" >&6
  5234. else
  5235. ac_check_lib_save_LIBS=$LIBS
  5236. LIBS="-ldld $LIBS"
  5237. cat >conftest.$ac_ext <<_ACEOF
  5238. /* confdefs.h. */
  5239. _ACEOF
  5240. cat confdefs.h >>conftest.$ac_ext
  5241. cat >>conftest.$ac_ext <<_ACEOF
  5242. /* end confdefs.h. */
  5243. /* Override any gcc2 internal prototype to avoid an error. */
  5244. #ifdef __cplusplus
  5245. extern "C"
  5246. #endif
  5247. /* We use char because int might match the return type of a gcc2
  5248. builtin and then its argument prototype would still apply. */
  5249. char shl_load ();
  5250. int
  5251. main ()
  5252. {
  5253. shl_load ();
  5254. ;
  5255. return 0;
  5256. }
  5257. _ACEOF
  5258. rm -f conftest.$ac_objext conftest$ac_exeext
  5259. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5260. (eval $ac_link) 2>conftest.er1
  5261. ac_status=$?
  5262. grep -v '^ *+' conftest.er1 >conftest.err
  5263. rm -f conftest.er1
  5264. cat conftest.err >&5
  5265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5266. (exit $ac_status); } &&
  5267. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5268. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5269. (eval $ac_try) 2>&5
  5270. ac_status=$?
  5271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5272. (exit $ac_status); }; } &&
  5273. { ac_try='test -s conftest$ac_exeext'
  5274. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5275. (eval $ac_try) 2>&5
  5276. ac_status=$?
  5277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5278. (exit $ac_status); }; }; then
  5279. ac_cv_lib_dld_shl_load=yes
  5280. else
  5281. echo "$as_me: failed program was:" >&5
  5282. sed 's/^/| /' conftest.$ac_ext >&5
  5283. ac_cv_lib_dld_shl_load=no
  5284. fi
  5285. rm -f conftest.err conftest.$ac_objext \
  5286. conftest$ac_exeext conftest.$ac_ext
  5287. LIBS=$ac_check_lib_save_LIBS
  5288. fi
  5289. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  5290. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  5291. if test $ac_cv_lib_dld_shl_load = yes; then
  5292. cat >>confdefs.h <<_ACEOF
  5293. #define HAVE_LIBDLD 1
  5294. _ACEOF
  5295. LIBS="-ldld $LIBS"
  5296. fi
  5297. fi
  5298. fi
  5299. fi
  5300. # Checks for header files
  5301. ac_header_dirent=no
  5302. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  5303. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  5304. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  5305. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  5306. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5307. echo $ECHO_N "(cached) $ECHO_C" >&6
  5308. else
  5309. cat >conftest.$ac_ext <<_ACEOF
  5310. /* confdefs.h. */
  5311. _ACEOF
  5312. cat confdefs.h >>conftest.$ac_ext
  5313. cat >>conftest.$ac_ext <<_ACEOF
  5314. /* end confdefs.h. */
  5315. #include <sys/types.h>
  5316. #include <$ac_hdr>
  5317. int
  5318. main ()
  5319. {
  5320. if ((DIR *) 0)
  5321. return 0;
  5322. ;
  5323. return 0;
  5324. }
  5325. _ACEOF
  5326. rm -f conftest.$ac_objext
  5327. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5328. (eval $ac_compile) 2>conftest.er1
  5329. ac_status=$?
  5330. grep -v '^ *+' conftest.er1 >conftest.err
  5331. rm -f conftest.er1
  5332. cat conftest.err >&5
  5333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5334. (exit $ac_status); } &&
  5335. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5336. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5337. (eval $ac_try) 2>&5
  5338. ac_status=$?
  5339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5340. (exit $ac_status); }; } &&
  5341. { ac_try='test -s conftest.$ac_objext'
  5342. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5343. (eval $ac_try) 2>&5
  5344. ac_status=$?
  5345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5346. (exit $ac_status); }; }; then
  5347. eval "$as_ac_Header=yes"
  5348. else
  5349. echo "$as_me: failed program was:" >&5
  5350. sed 's/^/| /' conftest.$ac_ext >&5
  5351. eval "$as_ac_Header=no"
  5352. fi
  5353. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5354. fi
  5355. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5356. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5357. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5358. cat >>confdefs.h <<_ACEOF
  5359. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  5360. _ACEOF
  5361. ac_header_dirent=$ac_hdr; break
  5362. fi
  5363. done
  5364. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  5365. if test $ac_header_dirent = dirent.h; then
  5366. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  5367. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  5368. if test "${ac_cv_search_opendir+set}" = set; then
  5369. echo $ECHO_N "(cached) $ECHO_C" >&6
  5370. else
  5371. ac_func_search_save_LIBS=$LIBS
  5372. ac_cv_search_opendir=no
  5373. cat >conftest.$ac_ext <<_ACEOF
  5374. /* confdefs.h. */
  5375. _ACEOF
  5376. cat confdefs.h >>conftest.$ac_ext
  5377. cat >>conftest.$ac_ext <<_ACEOF
  5378. /* end confdefs.h. */
  5379. /* Override any gcc2 internal prototype to avoid an error. */
  5380. #ifdef __cplusplus
  5381. extern "C"
  5382. #endif
  5383. /* We use char because int might match the return type of a gcc2
  5384. builtin and then its argument prototype would still apply. */
  5385. char opendir ();
  5386. int
  5387. main ()
  5388. {
  5389. opendir ();
  5390. ;
  5391. return 0;
  5392. }
  5393. _ACEOF
  5394. rm -f conftest.$ac_objext conftest$ac_exeext
  5395. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5396. (eval $ac_link) 2>conftest.er1
  5397. ac_status=$?
  5398. grep -v '^ *+' conftest.er1 >conftest.err
  5399. rm -f conftest.er1
  5400. cat conftest.err >&5
  5401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5402. (exit $ac_status); } &&
  5403. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5404. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5405. (eval $ac_try) 2>&5
  5406. ac_status=$?
  5407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5408. (exit $ac_status); }; } &&
  5409. { ac_try='test -s conftest$ac_exeext'
  5410. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5411. (eval $ac_try) 2>&5
  5412. ac_status=$?
  5413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5414. (exit $ac_status); }; }; then
  5415. ac_cv_search_opendir="none required"
  5416. else
  5417. echo "$as_me: failed program was:" >&5
  5418. sed 's/^/| /' conftest.$ac_ext >&5
  5419. fi
  5420. rm -f conftest.err conftest.$ac_objext \
  5421. conftest$ac_exeext conftest.$ac_ext
  5422. if test "$ac_cv_search_opendir" = no; then
  5423. for ac_lib in dir; do
  5424. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5425. cat >conftest.$ac_ext <<_ACEOF
  5426. /* confdefs.h. */
  5427. _ACEOF
  5428. cat confdefs.h >>conftest.$ac_ext
  5429. cat >>conftest.$ac_ext <<_ACEOF
  5430. /* end confdefs.h. */
  5431. /* Override any gcc2 internal prototype to avoid an error. */
  5432. #ifdef __cplusplus
  5433. extern "C"
  5434. #endif
  5435. /* We use char because int might match the return type of a gcc2
  5436. builtin and then its argument prototype would still apply. */
  5437. char opendir ();
  5438. int
  5439. main ()
  5440. {
  5441. opendir ();
  5442. ;
  5443. return 0;
  5444. }
  5445. _ACEOF
  5446. rm -f conftest.$ac_objext conftest$ac_exeext
  5447. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5448. (eval $ac_link) 2>conftest.er1
  5449. ac_status=$?
  5450. grep -v '^ *+' conftest.er1 >conftest.err
  5451. rm -f conftest.er1
  5452. cat conftest.err >&5
  5453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5454. (exit $ac_status); } &&
  5455. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5456. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5457. (eval $ac_try) 2>&5
  5458. ac_status=$?
  5459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5460. (exit $ac_status); }; } &&
  5461. { ac_try='test -s conftest$ac_exeext'
  5462. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5463. (eval $ac_try) 2>&5
  5464. ac_status=$?
  5465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5466. (exit $ac_status); }; }; then
  5467. ac_cv_search_opendir="-l$ac_lib"
  5468. break
  5469. else
  5470. echo "$as_me: failed program was:" >&5
  5471. sed 's/^/| /' conftest.$ac_ext >&5
  5472. fi
  5473. rm -f conftest.err conftest.$ac_objext \
  5474. conftest$ac_exeext conftest.$ac_ext
  5475. done
  5476. fi
  5477. LIBS=$ac_func_search_save_LIBS
  5478. fi
  5479. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  5480. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  5481. if test "$ac_cv_search_opendir" != no; then
  5482. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  5483. fi
  5484. else
  5485. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  5486. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  5487. if test "${ac_cv_search_opendir+set}" = set; then
  5488. echo $ECHO_N "(cached) $ECHO_C" >&6
  5489. else
  5490. ac_func_search_save_LIBS=$LIBS
  5491. ac_cv_search_opendir=no
  5492. cat >conftest.$ac_ext <<_ACEOF
  5493. /* confdefs.h. */
  5494. _ACEOF
  5495. cat confdefs.h >>conftest.$ac_ext
  5496. cat >>conftest.$ac_ext <<_ACEOF
  5497. /* end confdefs.h. */
  5498. /* Override any gcc2 internal prototype to avoid an error. */
  5499. #ifdef __cplusplus
  5500. extern "C"
  5501. #endif
  5502. /* We use char because int might match the return type of a gcc2
  5503. builtin and then its argument prototype would still apply. */
  5504. char opendir ();
  5505. int
  5506. main ()
  5507. {
  5508. opendir ();
  5509. ;
  5510. return 0;
  5511. }
  5512. _ACEOF
  5513. rm -f conftest.$ac_objext conftest$ac_exeext
  5514. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5515. (eval $ac_link) 2>conftest.er1
  5516. ac_status=$?
  5517. grep -v '^ *+' conftest.er1 >conftest.err
  5518. rm -f conftest.er1
  5519. cat conftest.err >&5
  5520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5521. (exit $ac_status); } &&
  5522. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5523. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5524. (eval $ac_try) 2>&5
  5525. ac_status=$?
  5526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5527. (exit $ac_status); }; } &&
  5528. { ac_try='test -s conftest$ac_exeext'
  5529. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5530. (eval $ac_try) 2>&5
  5531. ac_status=$?
  5532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5533. (exit $ac_status); }; }; then
  5534. ac_cv_search_opendir="none required"
  5535. else
  5536. echo "$as_me: failed program was:" >&5
  5537. sed 's/^/| /' conftest.$ac_ext >&5
  5538. fi
  5539. rm -f conftest.err conftest.$ac_objext \
  5540. conftest$ac_exeext conftest.$ac_ext
  5541. if test "$ac_cv_search_opendir" = no; then
  5542. for ac_lib in x; do
  5543. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5544. cat >conftest.$ac_ext <<_ACEOF
  5545. /* confdefs.h. */
  5546. _ACEOF
  5547. cat confdefs.h >>conftest.$ac_ext
  5548. cat >>conftest.$ac_ext <<_ACEOF
  5549. /* end confdefs.h. */
  5550. /* Override any gcc2 internal prototype to avoid an error. */
  5551. #ifdef __cplusplus
  5552. extern "C"
  5553. #endif
  5554. /* We use char because int might match the return type of a gcc2
  5555. builtin and then its argument prototype would still apply. */
  5556. char opendir ();
  5557. int
  5558. main ()
  5559. {
  5560. opendir ();
  5561. ;
  5562. return 0;
  5563. }
  5564. _ACEOF
  5565. rm -f conftest.$ac_objext conftest$ac_exeext
  5566. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5567. (eval $ac_link) 2>conftest.er1
  5568. ac_status=$?
  5569. grep -v '^ *+' conftest.er1 >conftest.err
  5570. rm -f conftest.er1
  5571. cat conftest.err >&5
  5572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5573. (exit $ac_status); } &&
  5574. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5575. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5576. (eval $ac_try) 2>&5
  5577. ac_status=$?
  5578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5579. (exit $ac_status); }; } &&
  5580. { ac_try='test -s conftest$ac_exeext'
  5581. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5582. (eval $ac_try) 2>&5
  5583. ac_status=$?
  5584. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5585. (exit $ac_status); }; }; then
  5586. ac_cv_search_opendir="-l$ac_lib"
  5587. break
  5588. else
  5589. echo "$as_me: failed program was:" >&5
  5590. sed 's/^/| /' conftest.$ac_ext >&5
  5591. fi
  5592. rm -f conftest.err conftest.$ac_objext \
  5593. conftest$ac_exeext conftest.$ac_ext
  5594. done
  5595. fi
  5596. LIBS=$ac_func_search_save_LIBS
  5597. fi
  5598. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  5599. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  5600. if test "$ac_cv_search_opendir" != no; then
  5601. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  5602. fi
  5603. fi
  5604. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  5605. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  5606. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  5607. echo $ECHO_N "(cached) $ECHO_C" >&6
  5608. else
  5609. cat >conftest.$ac_ext <<_ACEOF
  5610. /* confdefs.h. */
  5611. _ACEOF
  5612. cat confdefs.h >>conftest.$ac_ext
  5613. cat >>conftest.$ac_ext <<_ACEOF
  5614. /* end confdefs.h. */
  5615. #include <sys/types.h>
  5616. #include <sys/wait.h>
  5617. #ifndef WEXITSTATUS
  5618. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  5619. #endif
  5620. #ifndef WIFEXITED
  5621. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  5622. #endif
  5623. int
  5624. main ()
  5625. {
  5626. int s;
  5627. wait (&s);
  5628. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  5629. ;
  5630. return 0;
  5631. }
  5632. _ACEOF
  5633. rm -f conftest.$ac_objext
  5634. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5635. (eval $ac_compile) 2>conftest.er1
  5636. ac_status=$?
  5637. grep -v '^ *+' conftest.er1 >conftest.err
  5638. rm -f conftest.er1
  5639. cat conftest.err >&5
  5640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5641. (exit $ac_status); } &&
  5642. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5643. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5644. (eval $ac_try) 2>&5
  5645. ac_status=$?
  5646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5647. (exit $ac_status); }; } &&
  5648. { ac_try='test -s conftest.$ac_objext'
  5649. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5650. (eval $ac_try) 2>&5
  5651. ac_status=$?
  5652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5653. (exit $ac_status); }; }; then
  5654. ac_cv_header_sys_wait_h=yes
  5655. else
  5656. echo "$as_me: failed program was:" >&5
  5657. sed 's/^/| /' conftest.$ac_ext >&5
  5658. ac_cv_header_sys_wait_h=no
  5659. fi
  5660. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5661. fi
  5662. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  5663. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  5664. if test $ac_cv_header_sys_wait_h = yes; then
  5665. cat >>confdefs.h <<\_ACEOF
  5666. #define HAVE_SYS_WAIT_H 1
  5667. _ACEOF
  5668. fi
  5669. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  5670. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  5671. if test "${ac_cv_header_time+set}" = set; then
  5672. echo $ECHO_N "(cached) $ECHO_C" >&6
  5673. else
  5674. cat >conftest.$ac_ext <<_ACEOF
  5675. /* confdefs.h. */
  5676. _ACEOF
  5677. cat confdefs.h >>conftest.$ac_ext
  5678. cat >>conftest.$ac_ext <<_ACEOF
  5679. /* end confdefs.h. */
  5680. #include <sys/types.h>
  5681. #include <sys/time.h>
  5682. #include <time.h>
  5683. int
  5684. main ()
  5685. {
  5686. if ((struct tm *) 0)
  5687. return 0;
  5688. ;
  5689. return 0;
  5690. }
  5691. _ACEOF
  5692. rm -f conftest.$ac_objext
  5693. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5694. (eval $ac_compile) 2>conftest.er1
  5695. ac_status=$?
  5696. grep -v '^ *+' conftest.er1 >conftest.err
  5697. rm -f conftest.er1
  5698. cat conftest.err >&5
  5699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5700. (exit $ac_status); } &&
  5701. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5702. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5703. (eval $ac_try) 2>&5
  5704. ac_status=$?
  5705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5706. (exit $ac_status); }; } &&
  5707. { ac_try='test -s conftest.$ac_objext'
  5708. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5709. (eval $ac_try) 2>&5
  5710. ac_status=$?
  5711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5712. (exit $ac_status); }; }; then
  5713. ac_cv_header_time=yes
  5714. else
  5715. echo "$as_me: failed program was:" >&5
  5716. sed 's/^/| /' conftest.$ac_ext >&5
  5717. ac_cv_header_time=no
  5718. fi
  5719. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5720. fi
  5721. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  5722. echo "${ECHO_T}$ac_cv_header_time" >&6
  5723. if test $ac_cv_header_time = yes; then
  5724. cat >>confdefs.h <<\_ACEOF
  5725. #define TIME_WITH_SYS_TIME 1
  5726. _ACEOF
  5727. fi
  5728. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  5729. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  5730. if test "${ac_cv_header_stat_broken+set}" = set; then
  5731. echo $ECHO_N "(cached) $ECHO_C" >&6
  5732. else
  5733. cat >conftest.$ac_ext <<_ACEOF
  5734. /* confdefs.h. */
  5735. _ACEOF
  5736. cat confdefs.h >>conftest.$ac_ext
  5737. cat >>conftest.$ac_ext <<_ACEOF
  5738. /* end confdefs.h. */
  5739. #include <sys/types.h>
  5740. #include <sys/stat.h>
  5741. #if defined(S_ISBLK) && defined(S_IFDIR)
  5742. # if S_ISBLK (S_IFDIR)
  5743. You lose.
  5744. # endif
  5745. #endif
  5746. #if defined(S_ISBLK) && defined(S_IFCHR)
  5747. # if S_ISBLK (S_IFCHR)
  5748. You lose.
  5749. # endif
  5750. #endif
  5751. #if defined(S_ISLNK) && defined(S_IFREG)
  5752. # if S_ISLNK (S_IFREG)
  5753. You lose.
  5754. # endif
  5755. #endif
  5756. #if defined(S_ISSOCK) && defined(S_IFREG)
  5757. # if S_ISSOCK (S_IFREG)
  5758. You lose.
  5759. # endif
  5760. #endif
  5761. _ACEOF
  5762. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5763. $EGREP "You lose" >/dev/null 2>&1; then
  5764. ac_cv_header_stat_broken=yes
  5765. else
  5766. ac_cv_header_stat_broken=no
  5767. fi
  5768. rm -f conftest*
  5769. fi
  5770. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  5771. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  5772. if test $ac_cv_header_stat_broken = yes; then
  5773. cat >>confdefs.h <<\_ACEOF
  5774. #define STAT_MACROS_BROKEN 1
  5775. _ACEOF
  5776. fi
  5777. #checkpoint
  5778. cat >confcache <<\_ACEOF
  5779. # This file is a shell script that caches the results of configure
  5780. # tests run on this system so they can be shared between configure
  5781. # scripts and configure runs, see configure's option --config-cache.
  5782. # It is not useful on other systems. If it contains results you don't
  5783. # want to keep, you may remove or edit it.
  5784. #
  5785. # config.status only pays attention to the cache file if you give it
  5786. # the --recheck option to rerun configure.
  5787. #
  5788. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5789. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5790. # following values.
  5791. _ACEOF
  5792. # The following way of writing the cache mishandles newlines in values,
  5793. # but we know of no workaround that is simple, portable, and efficient.
  5794. # So, don't put newlines in cache variables' values.
  5795. # Ultrix sh set writes to stderr and can't be redirected directly,
  5796. # and sets the high bit in the cache file unless we assign to the vars.
  5797. {
  5798. (set) 2>&1 |
  5799. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5800. *ac_space=\ *)
  5801. # `set' does not quote correctly, so add quotes (double-quote
  5802. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5803. sed -n \
  5804. "s/'/'\\\\''/g;
  5805. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5806. ;;
  5807. *)
  5808. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5809. sed -n \
  5810. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5811. ;;
  5812. esac;
  5813. } |
  5814. sed '
  5815. t clear
  5816. : clear
  5817. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5818. t end
  5819. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5820. : end' >>confcache
  5821. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5822. if test -w $cache_file; then
  5823. test "x$cache_file" != "x/dev/null"
  5824. cat confcache >$cache_file
  5825. else
  5826. echo "not updating unwritable cache $cache_file"
  5827. fi
  5828. fi
  5829. rm -f confcache
  5830. for ac_header in arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5831. do
  5832. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5833. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5834. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5835. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5836. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5837. echo $ECHO_N "(cached) $ECHO_C" >&6
  5838. fi
  5839. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5840. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5841. else
  5842. # Is the header compilable?
  5843. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5844. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5845. cat >conftest.$ac_ext <<_ACEOF
  5846. /* confdefs.h. */
  5847. _ACEOF
  5848. cat confdefs.h >>conftest.$ac_ext
  5849. cat >>conftest.$ac_ext <<_ACEOF
  5850. /* end confdefs.h. */
  5851. $ac_includes_default
  5852. #include <$ac_header>
  5853. _ACEOF
  5854. rm -f conftest.$ac_objext
  5855. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5856. (eval $ac_compile) 2>conftest.er1
  5857. ac_status=$?
  5858. grep -v '^ *+' conftest.er1 >conftest.err
  5859. rm -f conftest.er1
  5860. cat conftest.err >&5
  5861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5862. (exit $ac_status); } &&
  5863. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5864. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5865. (eval $ac_try) 2>&5
  5866. ac_status=$?
  5867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5868. (exit $ac_status); }; } &&
  5869. { ac_try='test -s conftest.$ac_objext'
  5870. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5871. (eval $ac_try) 2>&5
  5872. ac_status=$?
  5873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5874. (exit $ac_status); }; }; then
  5875. ac_header_compiler=yes
  5876. else
  5877. echo "$as_me: failed program was:" >&5
  5878. sed 's/^/| /' conftest.$ac_ext >&5
  5879. ac_header_compiler=no
  5880. fi
  5881. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5882. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5883. echo "${ECHO_T}$ac_header_compiler" >&6
  5884. # Is the header present?
  5885. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5886. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5887. cat >conftest.$ac_ext <<_ACEOF
  5888. /* confdefs.h. */
  5889. _ACEOF
  5890. cat confdefs.h >>conftest.$ac_ext
  5891. cat >>conftest.$ac_ext <<_ACEOF
  5892. /* end confdefs.h. */
  5893. #include <$ac_header>
  5894. _ACEOF
  5895. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5896. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5897. ac_status=$?
  5898. grep -v '^ *+' conftest.er1 >conftest.err
  5899. rm -f conftest.er1
  5900. cat conftest.err >&5
  5901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5902. (exit $ac_status); } >/dev/null; then
  5903. if test -s conftest.err; then
  5904. ac_cpp_err=$ac_c_preproc_warn_flag
  5905. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5906. else
  5907. ac_cpp_err=
  5908. fi
  5909. else
  5910. ac_cpp_err=yes
  5911. fi
  5912. if test -z "$ac_cpp_err"; then
  5913. ac_header_preproc=yes
  5914. else
  5915. echo "$as_me: failed program was:" >&5
  5916. sed 's/^/| /' conftest.$ac_ext >&5
  5917. ac_header_preproc=no
  5918. fi
  5919. rm -f conftest.err conftest.$ac_ext
  5920. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5921. echo "${ECHO_T}$ac_header_preproc" >&6
  5922. # So? What about this header?
  5923. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5924. yes:no: )
  5925. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5926. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5927. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5928. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5929. ac_header_preproc=yes
  5930. ;;
  5931. no:yes:* )
  5932. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5933. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5934. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5935. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5936. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5937. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5938. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5939. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5940. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5941. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5942. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5943. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5944. (
  5945. cat <<\_ASBOX
  5946. ## ------------------------------------------ ##
  5947. ## Report this to the AC_PACKAGE_NAME lists. ##
  5948. ## ------------------------------------------ ##
  5949. _ASBOX
  5950. ) |
  5951. sed "s/^/$as_me: WARNING: /" >&2
  5952. ;;
  5953. esac
  5954. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5955. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5956. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5957. echo $ECHO_N "(cached) $ECHO_C" >&6
  5958. else
  5959. eval "$as_ac_Header=\$ac_header_preproc"
  5960. fi
  5961. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5962. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5963. fi
  5964. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5965. cat >>confdefs.h <<_ACEOF
  5966. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5967. _ACEOF
  5968. fi
  5969. done
  5970. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5971. do
  5972. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5973. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5974. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5975. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5976. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5977. echo $ECHO_N "(cached) $ECHO_C" >&6
  5978. fi
  5979. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5980. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5981. else
  5982. # Is the header compilable?
  5983. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5984. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5985. cat >conftest.$ac_ext <<_ACEOF
  5986. /* confdefs.h. */
  5987. _ACEOF
  5988. cat confdefs.h >>conftest.$ac_ext
  5989. cat >>conftest.$ac_ext <<_ACEOF
  5990. /* end confdefs.h. */
  5991. $ac_includes_default
  5992. #include <$ac_header>
  5993. _ACEOF
  5994. rm -f conftest.$ac_objext
  5995. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5996. (eval $ac_compile) 2>conftest.er1
  5997. ac_status=$?
  5998. grep -v '^ *+' conftest.er1 >conftest.err
  5999. rm -f conftest.er1
  6000. cat conftest.err >&5
  6001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6002. (exit $ac_status); } &&
  6003. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6004. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6005. (eval $ac_try) 2>&5
  6006. ac_status=$?
  6007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6008. (exit $ac_status); }; } &&
  6009. { ac_try='test -s conftest.$ac_objext'
  6010. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6011. (eval $ac_try) 2>&5
  6012. ac_status=$?
  6013. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6014. (exit $ac_status); }; }; then
  6015. ac_header_compiler=yes
  6016. else
  6017. echo "$as_me: failed program was:" >&5
  6018. sed 's/^/| /' conftest.$ac_ext >&5
  6019. ac_header_compiler=no
  6020. fi
  6021. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6022. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6023. echo "${ECHO_T}$ac_header_compiler" >&6
  6024. # Is the header present?
  6025. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6026. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6027. cat >conftest.$ac_ext <<_ACEOF
  6028. /* confdefs.h. */
  6029. _ACEOF
  6030. cat confdefs.h >>conftest.$ac_ext
  6031. cat >>conftest.$ac_ext <<_ACEOF
  6032. /* end confdefs.h. */
  6033. #include <$ac_header>
  6034. _ACEOF
  6035. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6036. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6037. ac_status=$?
  6038. grep -v '^ *+' conftest.er1 >conftest.err
  6039. rm -f conftest.er1
  6040. cat conftest.err >&5
  6041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6042. (exit $ac_status); } >/dev/null; then
  6043. if test -s conftest.err; then
  6044. ac_cpp_err=$ac_c_preproc_warn_flag
  6045. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6046. else
  6047. ac_cpp_err=
  6048. fi
  6049. else
  6050. ac_cpp_err=yes
  6051. fi
  6052. if test -z "$ac_cpp_err"; then
  6053. ac_header_preproc=yes
  6054. else
  6055. echo "$as_me: failed program was:" >&5
  6056. sed 's/^/| /' conftest.$ac_ext >&5
  6057. ac_header_preproc=no
  6058. fi
  6059. rm -f conftest.err conftest.$ac_ext
  6060. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6061. echo "${ECHO_T}$ac_header_preproc" >&6
  6062. # So? What about this header?
  6063. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6064. yes:no: )
  6065. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6066. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6067. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6068. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6069. ac_header_preproc=yes
  6070. ;;
  6071. no:yes:* )
  6072. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6073. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6074. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6075. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6076. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6077. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6078. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6079. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6080. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6081. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6082. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6083. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6084. (
  6085. cat <<\_ASBOX
  6086. ## ------------------------------------------ ##
  6087. ## Report this to the AC_PACKAGE_NAME lists. ##
  6088. ## ------------------------------------------ ##
  6089. _ASBOX
  6090. ) |
  6091. sed "s/^/$as_me: WARNING: /" >&2
  6092. ;;
  6093. esac
  6094. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6095. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6096. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6097. echo $ECHO_N "(cached) $ECHO_C" >&6
  6098. else
  6099. eval "$as_ac_Header=\$ac_header_preproc"
  6100. fi
  6101. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6102. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6103. fi
  6104. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6105. cat >>confdefs.h <<_ACEOF
  6106. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6107. _ACEOF
  6108. fi
  6109. done
  6110. #checkpoint
  6111. cat >confcache <<\_ACEOF
  6112. # This file is a shell script that caches the results of configure
  6113. # tests run on this system so they can be shared between configure
  6114. # scripts and configure runs, see configure's option --config-cache.
  6115. # It is not useful on other systems. If it contains results you don't
  6116. # want to keep, you may remove or edit it.
  6117. #
  6118. # config.status only pays attention to the cache file if you give it
  6119. # the --recheck option to rerun configure.
  6120. #
  6121. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6122. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6123. # following values.
  6124. _ACEOF
  6125. # The following way of writing the cache mishandles newlines in values,
  6126. # but we know of no workaround that is simple, portable, and efficient.
  6127. # So, don't put newlines in cache variables' values.
  6128. # Ultrix sh set writes to stderr and can't be redirected directly,
  6129. # and sets the high bit in the cache file unless we assign to the vars.
  6130. {
  6131. (set) 2>&1 |
  6132. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6133. *ac_space=\ *)
  6134. # `set' does not quote correctly, so add quotes (double-quote
  6135. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6136. sed -n \
  6137. "s/'/'\\\\''/g;
  6138. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6139. ;;
  6140. *)
  6141. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6142. sed -n \
  6143. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  6144. ;;
  6145. esac;
  6146. } |
  6147. sed '
  6148. t clear
  6149. : clear
  6150. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6151. t end
  6152. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6153. : end' >>confcache
  6154. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  6155. if test -w $cache_file; then
  6156. test "x$cache_file" != "x/dev/null"
  6157. cat confcache >$cache_file
  6158. else
  6159. echo "not updating unwritable cache $cache_file"
  6160. fi
  6161. fi
  6162. rm -f confcache
  6163. for ac_header in openssl/ssl.h openssl/crypto.h
  6164. do
  6165. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6166. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6167. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6168. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6169. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6170. echo $ECHO_N "(cached) $ECHO_C" >&6
  6171. fi
  6172. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6173. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6174. else
  6175. # Is the header compilable?
  6176. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6177. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6178. cat >conftest.$ac_ext <<_ACEOF
  6179. /* confdefs.h. */
  6180. _ACEOF
  6181. cat confdefs.h >>conftest.$ac_ext
  6182. cat >>conftest.$ac_ext <<_ACEOF
  6183. /* end confdefs.h. */
  6184. $ac_includes_default
  6185. #include <$ac_header>
  6186. _ACEOF
  6187. rm -f conftest.$ac_objext
  6188. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6189. (eval $ac_compile) 2>conftest.er1
  6190. ac_status=$?
  6191. grep -v '^ *+' conftest.er1 >conftest.err
  6192. rm -f conftest.er1
  6193. cat conftest.err >&5
  6194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6195. (exit $ac_status); } &&
  6196. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6197. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6198. (eval $ac_try) 2>&5
  6199. ac_status=$?
  6200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6201. (exit $ac_status); }; } &&
  6202. { ac_try='test -s conftest.$ac_objext'
  6203. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6204. (eval $ac_try) 2>&5
  6205. ac_status=$?
  6206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6207. (exit $ac_status); }; }; then
  6208. ac_header_compiler=yes
  6209. else
  6210. echo "$as_me: failed program was:" >&5
  6211. sed 's/^/| /' conftest.$ac_ext >&5
  6212. ac_header_compiler=no
  6213. fi
  6214. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6215. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6216. echo "${ECHO_T}$ac_header_compiler" >&6
  6217. # Is the header present?
  6218. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6219. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6220. cat >conftest.$ac_ext <<_ACEOF
  6221. /* confdefs.h. */
  6222. _ACEOF
  6223. cat confdefs.h >>conftest.$ac_ext
  6224. cat >>conftest.$ac_ext <<_ACEOF
  6225. /* end confdefs.h. */
  6226. #include <$ac_header>
  6227. _ACEOF
  6228. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6229. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6230. ac_status=$?
  6231. grep -v '^ *+' conftest.er1 >conftest.err
  6232. rm -f conftest.er1
  6233. cat conftest.err >&5
  6234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6235. (exit $ac_status); } >/dev/null; then
  6236. if test -s conftest.err; then
  6237. ac_cpp_err=$ac_c_preproc_warn_flag
  6238. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6239. else
  6240. ac_cpp_err=
  6241. fi
  6242. else
  6243. ac_cpp_err=yes
  6244. fi
  6245. if test -z "$ac_cpp_err"; then
  6246. ac_header_preproc=yes
  6247. else
  6248. echo "$as_me: failed program was:" >&5
  6249. sed 's/^/| /' conftest.$ac_ext >&5
  6250. ac_header_preproc=no
  6251. fi
  6252. rm -f conftest.err conftest.$ac_ext
  6253. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6254. echo "${ECHO_T}$ac_header_preproc" >&6
  6255. # So? What about this header?
  6256. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6257. yes:no: )
  6258. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6259. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6260. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6261. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6262. ac_header_preproc=yes
  6263. ;;
  6264. no:yes:* )
  6265. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6266. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6267. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6268. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6269. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6270. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6271. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6272. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6273. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6274. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6275. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6276. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6277. (
  6278. cat <<\_ASBOX
  6279. ## ------------------------------------------ ##
  6280. ## Report this to the AC_PACKAGE_NAME lists. ##
  6281. ## ------------------------------------------ ##
  6282. _ASBOX
  6283. ) |
  6284. sed "s/^/$as_me: WARNING: /" >&2
  6285. ;;
  6286. esac
  6287. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6288. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6289. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6290. echo $ECHO_N "(cached) $ECHO_C" >&6
  6291. else
  6292. eval "$as_ac_Header=\$ac_header_preproc"
  6293. fi
  6294. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6295. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6296. fi
  6297. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6298. cat >>confdefs.h <<_ACEOF
  6299. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6300. _ACEOF
  6301. fi
  6302. done
  6303. for ac_header in zlib.h
  6304. do
  6305. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6306. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6307. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6308. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6309. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6310. echo $ECHO_N "(cached) $ECHO_C" >&6
  6311. fi
  6312. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6313. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6314. else
  6315. # Is the header compilable?
  6316. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6317. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6318. cat >conftest.$ac_ext <<_ACEOF
  6319. /* confdefs.h. */
  6320. _ACEOF
  6321. cat confdefs.h >>conftest.$ac_ext
  6322. cat >>conftest.$ac_ext <<_ACEOF
  6323. /* end confdefs.h. */
  6324. $ac_includes_default
  6325. #include <$ac_header>
  6326. _ACEOF
  6327. rm -f conftest.$ac_objext
  6328. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6329. (eval $ac_compile) 2>conftest.er1
  6330. ac_status=$?
  6331. grep -v '^ *+' conftest.er1 >conftest.err
  6332. rm -f conftest.er1
  6333. cat conftest.err >&5
  6334. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6335. (exit $ac_status); } &&
  6336. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6337. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6338. (eval $ac_try) 2>&5
  6339. ac_status=$?
  6340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6341. (exit $ac_status); }; } &&
  6342. { ac_try='test -s conftest.$ac_objext'
  6343. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6344. (eval $ac_try) 2>&5
  6345. ac_status=$?
  6346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6347. (exit $ac_status); }; }; then
  6348. ac_header_compiler=yes
  6349. else
  6350. echo "$as_me: failed program was:" >&5
  6351. sed 's/^/| /' conftest.$ac_ext >&5
  6352. ac_header_compiler=no
  6353. fi
  6354. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6355. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6356. echo "${ECHO_T}$ac_header_compiler" >&6
  6357. # Is the header present?
  6358. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6359. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6360. cat >conftest.$ac_ext <<_ACEOF
  6361. /* confdefs.h. */
  6362. _ACEOF
  6363. cat confdefs.h >>conftest.$ac_ext
  6364. cat >>conftest.$ac_ext <<_ACEOF
  6365. /* end confdefs.h. */
  6366. #include <$ac_header>
  6367. _ACEOF
  6368. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6369. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6370. ac_status=$?
  6371. grep -v '^ *+' conftest.er1 >conftest.err
  6372. rm -f conftest.er1
  6373. cat conftest.err >&5
  6374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6375. (exit $ac_status); } >/dev/null; then
  6376. if test -s conftest.err; then
  6377. ac_cpp_err=$ac_c_preproc_warn_flag
  6378. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6379. else
  6380. ac_cpp_err=
  6381. fi
  6382. else
  6383. ac_cpp_err=yes
  6384. fi
  6385. if test -z "$ac_cpp_err"; then
  6386. ac_header_preproc=yes
  6387. else
  6388. echo "$as_me: failed program was:" >&5
  6389. sed 's/^/| /' conftest.$ac_ext >&5
  6390. ac_header_preproc=no
  6391. fi
  6392. rm -f conftest.err conftest.$ac_ext
  6393. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6394. echo "${ECHO_T}$ac_header_preproc" >&6
  6395. # So? What about this header?
  6396. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6397. yes:no: )
  6398. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6399. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6400. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6401. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6402. ac_header_preproc=yes
  6403. ;;
  6404. no:yes:* )
  6405. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6406. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6407. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6408. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6409. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6410. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6411. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6412. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6413. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6414. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6415. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6416. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6417. (
  6418. cat <<\_ASBOX
  6419. ## ------------------------------------------ ##
  6420. ## Report this to the AC_PACKAGE_NAME lists. ##
  6421. ## ------------------------------------------ ##
  6422. _ASBOX
  6423. ) |
  6424. sed "s/^/$as_me: WARNING: /" >&2
  6425. ;;
  6426. esac
  6427. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6428. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6429. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6430. echo $ECHO_N "(cached) $ECHO_C" >&6
  6431. else
  6432. eval "$as_ac_Header=\$ac_header_preproc"
  6433. fi
  6434. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6435. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6436. fi
  6437. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6438. cat >>confdefs.h <<_ACEOF
  6439. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6440. _ACEOF
  6441. fi
  6442. done
  6443. if test "x${ZLIB}" = x; then
  6444. cat >&2 <<EOF
  6445. configure: error:
  6446. Your system does not provide a working zlib compression library.
  6447. It is required.
  6448. EOF
  6449. exit 1
  6450. else
  6451. if test "${ac_cv_header_zlib_h}" != yes; then
  6452. cat >&2 <<EOF
  6453. configure: error:
  6454. Your system does not provide the necessary zlib header file.
  6455. It is required.
  6456. EOF
  6457. exit 1
  6458. fi
  6459. fi
  6460. if test "x${SSL}" = x; then
  6461. cat >&2 <<EOF
  6462. configure: error:
  6463. Your system does not provide a working ssl library.
  6464. It is required. Download openssl at www.openssl.org
  6465. EOF
  6466. exit 1
  6467. else
  6468. if test "${ac_cv_header_openssl_ssl_h}" != yes; then
  6469. cat >&2 <<EOF
  6470. configure: error:
  6471. Your system does not provide the necessary ssl header file.
  6472. It is required. Download openssl at www.openssl.org
  6473. EOF
  6474. exit 1
  6475. fi
  6476. fi
  6477. # Checks for typedefs, structures, and compiler characteristics
  6478. echo "$as_me:$LINENO: checking for pid_t" >&5
  6479. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  6480. if test "${ac_cv_type_pid_t+set}" = set; then
  6481. echo $ECHO_N "(cached) $ECHO_C" >&6
  6482. else
  6483. cat >conftest.$ac_ext <<_ACEOF
  6484. /* confdefs.h. */
  6485. _ACEOF
  6486. cat confdefs.h >>conftest.$ac_ext
  6487. cat >>conftest.$ac_ext <<_ACEOF
  6488. /* end confdefs.h. */
  6489. $ac_includes_default
  6490. int
  6491. main ()
  6492. {
  6493. if ((pid_t *) 0)
  6494. return 0;
  6495. if (sizeof (pid_t))
  6496. return 0;
  6497. ;
  6498. return 0;
  6499. }
  6500. _ACEOF
  6501. rm -f conftest.$ac_objext
  6502. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6503. (eval $ac_compile) 2>conftest.er1
  6504. ac_status=$?
  6505. grep -v '^ *+' conftest.er1 >conftest.err
  6506. rm -f conftest.er1
  6507. cat conftest.err >&5
  6508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6509. (exit $ac_status); } &&
  6510. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6511. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6512. (eval $ac_try) 2>&5
  6513. ac_status=$?
  6514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6515. (exit $ac_status); }; } &&
  6516. { ac_try='test -s conftest.$ac_objext'
  6517. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6518. (eval $ac_try) 2>&5
  6519. ac_status=$?
  6520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6521. (exit $ac_status); }; }; then
  6522. ac_cv_type_pid_t=yes
  6523. else
  6524. echo "$as_me: failed program was:" >&5
  6525. sed 's/^/| /' conftest.$ac_ext >&5
  6526. ac_cv_type_pid_t=no
  6527. fi
  6528. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6529. fi
  6530. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  6531. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  6532. if test $ac_cv_type_pid_t = yes; then
  6533. :
  6534. else
  6535. cat >>confdefs.h <<_ACEOF
  6536. #define pid_t int
  6537. _ACEOF
  6538. fi
  6539. echo "$as_me:$LINENO: checking for size_t" >&5
  6540. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  6541. if test "${ac_cv_type_size_t+set}" = set; then
  6542. echo $ECHO_N "(cached) $ECHO_C" >&6
  6543. else
  6544. cat >conftest.$ac_ext <<_ACEOF
  6545. /* confdefs.h. */
  6546. _ACEOF
  6547. cat confdefs.h >>conftest.$ac_ext
  6548. cat >>conftest.$ac_ext <<_ACEOF
  6549. /* end confdefs.h. */
  6550. $ac_includes_default
  6551. int
  6552. main ()
  6553. {
  6554. if ((size_t *) 0)
  6555. return 0;
  6556. if (sizeof (size_t))
  6557. return 0;
  6558. ;
  6559. return 0;
  6560. }
  6561. _ACEOF
  6562. rm -f conftest.$ac_objext
  6563. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6564. (eval $ac_compile) 2>conftest.er1
  6565. ac_status=$?
  6566. grep -v '^ *+' conftest.er1 >conftest.err
  6567. rm -f conftest.er1
  6568. cat conftest.err >&5
  6569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6570. (exit $ac_status); } &&
  6571. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6572. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6573. (eval $ac_try) 2>&5
  6574. ac_status=$?
  6575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6576. (exit $ac_status); }; } &&
  6577. { ac_try='test -s conftest.$ac_objext'
  6578. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6579. (eval $ac_try) 2>&5
  6580. ac_status=$?
  6581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6582. (exit $ac_status); }; }; then
  6583. ac_cv_type_size_t=yes
  6584. else
  6585. echo "$as_me: failed program was:" >&5
  6586. sed 's/^/| /' conftest.$ac_ext >&5
  6587. ac_cv_type_size_t=no
  6588. fi
  6589. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6590. fi
  6591. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  6592. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  6593. if test $ac_cv_type_size_t = yes; then
  6594. :
  6595. else
  6596. cat >>confdefs.h <<_ACEOF
  6597. #define size_t unsigned
  6598. _ACEOF
  6599. fi
  6600. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  6601. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  6602. if test "${ac_cv_type_uid_t+set}" = set; then
  6603. echo $ECHO_N "(cached) $ECHO_C" >&6
  6604. else
  6605. cat >conftest.$ac_ext <<_ACEOF
  6606. /* confdefs.h. */
  6607. _ACEOF
  6608. cat confdefs.h >>conftest.$ac_ext
  6609. cat >>conftest.$ac_ext <<_ACEOF
  6610. /* end confdefs.h. */
  6611. #include <sys/types.h>
  6612. _ACEOF
  6613. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6614. $EGREP "uid_t" >/dev/null 2>&1; then
  6615. ac_cv_type_uid_t=yes
  6616. else
  6617. ac_cv_type_uid_t=no
  6618. fi
  6619. rm -f conftest*
  6620. fi
  6621. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  6622. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  6623. if test $ac_cv_type_uid_t = no; then
  6624. cat >>confdefs.h <<\_ACEOF
  6625. #define uid_t int
  6626. _ACEOF
  6627. cat >>confdefs.h <<\_ACEOF
  6628. #define gid_t int
  6629. _ACEOF
  6630. fi
  6631. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  6632. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  6633. if test "${ac_cv_c_const+set}" = set; then
  6634. echo $ECHO_N "(cached) $ECHO_C" >&6
  6635. else
  6636. cat >conftest.$ac_ext <<_ACEOF
  6637. /* confdefs.h. */
  6638. _ACEOF
  6639. cat confdefs.h >>conftest.$ac_ext
  6640. cat >>conftest.$ac_ext <<_ACEOF
  6641. /* end confdefs.h. */
  6642. int
  6643. main ()
  6644. {
  6645. /* FIXME: Include the comments suggested by Paul. */
  6646. #ifndef __cplusplus
  6647. /* Ultrix mips cc rejects this. */
  6648. typedef int charset[2];
  6649. const charset x;
  6650. /* SunOS 4.1.1 cc rejects this. */
  6651. char const *const *ccp;
  6652. char **p;
  6653. /* NEC SVR4.0.2 mips cc rejects this. */
  6654. struct point {int x, y;};
  6655. static struct point const zero = {0,0};
  6656. /* AIX XL C 1.02.0.0 rejects this.
  6657. It does not let you subtract one const X* pointer from another in
  6658. an arm of an if-expression whose if-part is not a constant
  6659. expression */
  6660. const char *g = "string";
  6661. ccp = &g + (g ? g-g : 0);
  6662. /* HPUX 7.0 cc rejects these. */
  6663. ++ccp;
  6664. p = (char**) ccp;
  6665. ccp = (char const *const *) p;
  6666. { /* SCO 3.2v4 cc rejects this. */
  6667. char *t;
  6668. char const *s = 0 ? (char *) 0 : (char const *) 0;
  6669. *t++ = 0;
  6670. }
  6671. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  6672. int x[] = {25, 17};
  6673. const int *foo = &x[0];
  6674. ++foo;
  6675. }
  6676. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6677. typedef const int *iptr;
  6678. iptr p = 0;
  6679. ++p;
  6680. }
  6681. { /* AIX XL C 1.02.0.0 rejects this saying
  6682. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  6683. struct s { int j; const int *ap[3]; };
  6684. struct s *b; b->j = 5;
  6685. }
  6686. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  6687. const int foo = 10;
  6688. }
  6689. #endif
  6690. ;
  6691. return 0;
  6692. }
  6693. _ACEOF
  6694. rm -f conftest.$ac_objext
  6695. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6696. (eval $ac_compile) 2>conftest.er1
  6697. ac_status=$?
  6698. grep -v '^ *+' conftest.er1 >conftest.err
  6699. rm -f conftest.er1
  6700. cat conftest.err >&5
  6701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6702. (exit $ac_status); } &&
  6703. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6704. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6705. (eval $ac_try) 2>&5
  6706. ac_status=$?
  6707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6708. (exit $ac_status); }; } &&
  6709. { ac_try='test -s conftest.$ac_objext'
  6710. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6711. (eval $ac_try) 2>&5
  6712. ac_status=$?
  6713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6714. (exit $ac_status); }; }; then
  6715. ac_cv_c_const=yes
  6716. else
  6717. echo "$as_me: failed program was:" >&5
  6718. sed 's/^/| /' conftest.$ac_ext >&5
  6719. ac_cv_c_const=no
  6720. fi
  6721. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6722. fi
  6723. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  6724. echo "${ECHO_T}$ac_cv_c_const" >&6
  6725. if test $ac_cv_c_const = no; then
  6726. cat >>confdefs.h <<\_ACEOF
  6727. #define const
  6728. _ACEOF
  6729. fi
  6730. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  6731. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  6732. if test "${ac_cv_c_bigendian+set}" = set; then
  6733. echo $ECHO_N "(cached) $ECHO_C" >&6
  6734. else
  6735. # See if sys/param.h defines the BYTE_ORDER macro.
  6736. cat >conftest.$ac_ext <<_ACEOF
  6737. /* confdefs.h. */
  6738. _ACEOF
  6739. cat confdefs.h >>conftest.$ac_ext
  6740. cat >>conftest.$ac_ext <<_ACEOF
  6741. /* end confdefs.h. */
  6742. #include <sys/types.h>
  6743. #include <sys/param.h>
  6744. int
  6745. main ()
  6746. {
  6747. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  6748. bogus endian macros
  6749. #endif
  6750. ;
  6751. return 0;
  6752. }
  6753. _ACEOF
  6754. rm -f conftest.$ac_objext
  6755. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6756. (eval $ac_compile) 2>conftest.er1
  6757. ac_status=$?
  6758. grep -v '^ *+' conftest.er1 >conftest.err
  6759. rm -f conftest.er1
  6760. cat conftest.err >&5
  6761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6762. (exit $ac_status); } &&
  6763. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6764. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6765. (eval $ac_try) 2>&5
  6766. ac_status=$?
  6767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6768. (exit $ac_status); }; } &&
  6769. { ac_try='test -s conftest.$ac_objext'
  6770. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6771. (eval $ac_try) 2>&5
  6772. ac_status=$?
  6773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6774. (exit $ac_status); }; }; then
  6775. # It does; now see whether it defined to BIG_ENDIAN or not.
  6776. cat >conftest.$ac_ext <<_ACEOF
  6777. /* confdefs.h. */
  6778. _ACEOF
  6779. cat confdefs.h >>conftest.$ac_ext
  6780. cat >>conftest.$ac_ext <<_ACEOF
  6781. /* end confdefs.h. */
  6782. #include <sys/types.h>
  6783. #include <sys/param.h>
  6784. int
  6785. main ()
  6786. {
  6787. #if BYTE_ORDER != BIG_ENDIAN
  6788. not big endian
  6789. #endif
  6790. ;
  6791. return 0;
  6792. }
  6793. _ACEOF
  6794. rm -f conftest.$ac_objext
  6795. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6796. (eval $ac_compile) 2>conftest.er1
  6797. ac_status=$?
  6798. grep -v '^ *+' conftest.er1 >conftest.err
  6799. rm -f conftest.er1
  6800. cat conftest.err >&5
  6801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6802. (exit $ac_status); } &&
  6803. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6804. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6805. (eval $ac_try) 2>&5
  6806. ac_status=$?
  6807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6808. (exit $ac_status); }; } &&
  6809. { ac_try='test -s conftest.$ac_objext'
  6810. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6811. (eval $ac_try) 2>&5
  6812. ac_status=$?
  6813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6814. (exit $ac_status); }; }; then
  6815. ac_cv_c_bigendian=yes
  6816. else
  6817. echo "$as_me: failed program was:" >&5
  6818. sed 's/^/| /' conftest.$ac_ext >&5
  6819. ac_cv_c_bigendian=no
  6820. fi
  6821. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6822. else
  6823. echo "$as_me: failed program was:" >&5
  6824. sed 's/^/| /' conftest.$ac_ext >&5
  6825. # It does not; compile a test program.
  6826. if test "$cross_compiling" = yes; then
  6827. # try to guess the endianness by grepping values into an object file
  6828. ac_cv_c_bigendian=unknown
  6829. cat >conftest.$ac_ext <<_ACEOF
  6830. /* confdefs.h. */
  6831. _ACEOF
  6832. cat confdefs.h >>conftest.$ac_ext
  6833. cat >>conftest.$ac_ext <<_ACEOF
  6834. /* end confdefs.h. */
  6835. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6836. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6837. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  6838. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6839. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6840. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  6841. int
  6842. main ()
  6843. {
  6844. _ascii (); _ebcdic ();
  6845. ;
  6846. return 0;
  6847. }
  6848. _ACEOF
  6849. rm -f conftest.$ac_objext
  6850. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6851. (eval $ac_compile) 2>conftest.er1
  6852. ac_status=$?
  6853. grep -v '^ *+' conftest.er1 >conftest.err
  6854. rm -f conftest.er1
  6855. cat conftest.err >&5
  6856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6857. (exit $ac_status); } &&
  6858. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6859. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6860. (eval $ac_try) 2>&5
  6861. ac_status=$?
  6862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6863. (exit $ac_status); }; } &&
  6864. { ac_try='test -s conftest.$ac_objext'
  6865. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6866. (eval $ac_try) 2>&5
  6867. ac_status=$?
  6868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6869. (exit $ac_status); }; }; then
  6870. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  6871. ac_cv_c_bigendian=yes
  6872. fi
  6873. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6874. if test "$ac_cv_c_bigendian" = unknown; then
  6875. ac_cv_c_bigendian=no
  6876. else
  6877. # finding both strings is unlikely to happen, but who knows?
  6878. ac_cv_c_bigendian=unknown
  6879. fi
  6880. fi
  6881. else
  6882. echo "$as_me: failed program was:" >&5
  6883. sed 's/^/| /' conftest.$ac_ext >&5
  6884. fi
  6885. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6886. else
  6887. cat >conftest.$ac_ext <<_ACEOF
  6888. /* confdefs.h. */
  6889. _ACEOF
  6890. cat confdefs.h >>conftest.$ac_ext
  6891. cat >>conftest.$ac_ext <<_ACEOF
  6892. /* end confdefs.h. */
  6893. int
  6894. main ()
  6895. {
  6896. /* Are we little or big endian? From Harbison&Steele. */
  6897. union
  6898. {
  6899. long l;
  6900. char c[sizeof (long)];
  6901. } u;
  6902. u.l = 1;
  6903. exit (u.c[sizeof (long) - 1] == 1);
  6904. }
  6905. _ACEOF
  6906. rm -f conftest$ac_exeext
  6907. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6908. (eval $ac_link) 2>&5
  6909. ac_status=$?
  6910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6911. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6912. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6913. (eval $ac_try) 2>&5
  6914. ac_status=$?
  6915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6916. (exit $ac_status); }; }; then
  6917. ac_cv_c_bigendian=no
  6918. else
  6919. echo "$as_me: program exited with status $ac_status" >&5
  6920. echo "$as_me: failed program was:" >&5
  6921. sed 's/^/| /' conftest.$ac_ext >&5
  6922. ( exit $ac_status )
  6923. ac_cv_c_bigendian=yes
  6924. fi
  6925. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6926. fi
  6927. fi
  6928. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6929. fi
  6930. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6931. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  6932. case $ac_cv_c_bigendian in
  6933. yes)
  6934. cat >>confdefs.h <<\_ACEOF
  6935. #define WORDS_BIGENDIAN 1
  6936. _ACEOF
  6937. ;;
  6938. no)
  6939. ;;
  6940. *)
  6941. { { echo "$as_me:$LINENO: error: unknown endianness
  6942. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6943. echo "$as_me: error: unknown endianness
  6944. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6945. { (exit 1); exit 1; }; } ;;
  6946. esac
  6947. echo "$as_me:$LINENO: checking for inline" >&5
  6948. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  6949. if test "${ac_cv_c_inline+set}" = set; then
  6950. echo $ECHO_N "(cached) $ECHO_C" >&6
  6951. else
  6952. ac_cv_c_inline=no
  6953. for ac_kw in inline __inline__ __inline; do
  6954. cat >conftest.$ac_ext <<_ACEOF
  6955. /* confdefs.h. */
  6956. _ACEOF
  6957. cat confdefs.h >>conftest.$ac_ext
  6958. cat >>conftest.$ac_ext <<_ACEOF
  6959. /* end confdefs.h. */
  6960. #ifndef __cplusplus
  6961. typedef int foo_t;
  6962. static $ac_kw foo_t static_foo () {return 0; }
  6963. $ac_kw foo_t foo () {return 0; }
  6964. #endif
  6965. _ACEOF
  6966. rm -f conftest.$ac_objext
  6967. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6968. (eval $ac_compile) 2>conftest.er1
  6969. ac_status=$?
  6970. grep -v '^ *+' conftest.er1 >conftest.err
  6971. rm -f conftest.er1
  6972. cat conftest.err >&5
  6973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6974. (exit $ac_status); } &&
  6975. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6976. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6977. (eval $ac_try) 2>&5
  6978. ac_status=$?
  6979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6980. (exit $ac_status); }; } &&
  6981. { ac_try='test -s conftest.$ac_objext'
  6982. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6983. (eval $ac_try) 2>&5
  6984. ac_status=$?
  6985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6986. (exit $ac_status); }; }; then
  6987. ac_cv_c_inline=$ac_kw; break
  6988. else
  6989. echo "$as_me: failed program was:" >&5
  6990. sed 's/^/| /' conftest.$ac_ext >&5
  6991. fi
  6992. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6993. done
  6994. fi
  6995. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6996. echo "${ECHO_T}$ac_cv_c_inline" >&6
  6997. case $ac_cv_c_inline in
  6998. inline | yes) ;;
  6999. *)
  7000. case $ac_cv_c_inline in
  7001. no) ac_val=;;
  7002. *) ac_val=$ac_cv_c_inline;;
  7003. esac
  7004. cat >>confdefs.h <<_ACEOF
  7005. #ifndef __cplusplus
  7006. #define inline $ac_val
  7007. #endif
  7008. _ACEOF
  7009. ;;
  7010. esac
  7011. echo "$as_me:$LINENO: checking for long" >&5
  7012. echo $ECHO_N "checking for long... $ECHO_C" >&6
  7013. if test "${ac_cv_type_long+set}" = set; then
  7014. echo $ECHO_N "(cached) $ECHO_C" >&6
  7015. else
  7016. cat >conftest.$ac_ext <<_ACEOF
  7017. /* confdefs.h. */
  7018. _ACEOF
  7019. cat confdefs.h >>conftest.$ac_ext
  7020. cat >>conftest.$ac_ext <<_ACEOF
  7021. /* end confdefs.h. */
  7022. $ac_includes_default
  7023. int
  7024. main ()
  7025. {
  7026. if ((long *) 0)
  7027. return 0;
  7028. if (sizeof (long))
  7029. return 0;
  7030. ;
  7031. return 0;
  7032. }
  7033. _ACEOF
  7034. rm -f conftest.$ac_objext
  7035. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7036. (eval $ac_compile) 2>conftest.er1
  7037. ac_status=$?
  7038. grep -v '^ *+' conftest.er1 >conftest.err
  7039. rm -f conftest.er1
  7040. cat conftest.err >&5
  7041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7042. (exit $ac_status); } &&
  7043. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7044. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7045. (eval $ac_try) 2>&5
  7046. ac_status=$?
  7047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7048. (exit $ac_status); }; } &&
  7049. { ac_try='test -s conftest.$ac_objext'
  7050. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7051. (eval $ac_try) 2>&5
  7052. ac_status=$?
  7053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7054. (exit $ac_status); }; }; then
  7055. ac_cv_type_long=yes
  7056. else
  7057. echo "$as_me: failed program was:" >&5
  7058. sed 's/^/| /' conftest.$ac_ext >&5
  7059. ac_cv_type_long=no
  7060. fi
  7061. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7062. fi
  7063. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  7064. echo "${ECHO_T}$ac_cv_type_long" >&6
  7065. echo "$as_me:$LINENO: checking size of long" >&5
  7066. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  7067. if test "${ac_cv_sizeof_long+set}" = set; then
  7068. echo $ECHO_N "(cached) $ECHO_C" >&6
  7069. else
  7070. if test "$ac_cv_type_long" = yes; then
  7071. # The cast to unsigned long works around a bug in the HP C Compiler
  7072. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7073. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7074. # This bug is HP SR number 8606223364.
  7075. if test "$cross_compiling" = yes; then
  7076. # Depending upon the size, compute the lo and hi bounds.
  7077. cat >conftest.$ac_ext <<_ACEOF
  7078. /* confdefs.h. */
  7079. _ACEOF
  7080. cat confdefs.h >>conftest.$ac_ext
  7081. cat >>conftest.$ac_ext <<_ACEOF
  7082. /* end confdefs.h. */
  7083. $ac_includes_default
  7084. int
  7085. main ()
  7086. {
  7087. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  7088. test_array [0] = 0
  7089. ;
  7090. return 0;
  7091. }
  7092. _ACEOF
  7093. rm -f conftest.$ac_objext
  7094. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7095. (eval $ac_compile) 2>conftest.er1
  7096. ac_status=$?
  7097. grep -v '^ *+' conftest.er1 >conftest.err
  7098. rm -f conftest.er1
  7099. cat conftest.err >&5
  7100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7101. (exit $ac_status); } &&
  7102. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7103. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7104. (eval $ac_try) 2>&5
  7105. ac_status=$?
  7106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7107. (exit $ac_status); }; } &&
  7108. { ac_try='test -s conftest.$ac_objext'
  7109. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7110. (eval $ac_try) 2>&5
  7111. ac_status=$?
  7112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7113. (exit $ac_status); }; }; then
  7114. ac_lo=0 ac_mid=0
  7115. while :; do
  7116. cat >conftest.$ac_ext <<_ACEOF
  7117. /* confdefs.h. */
  7118. _ACEOF
  7119. cat confdefs.h >>conftest.$ac_ext
  7120. cat >>conftest.$ac_ext <<_ACEOF
  7121. /* end confdefs.h. */
  7122. $ac_includes_default
  7123. int
  7124. main ()
  7125. {
  7126. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  7127. test_array [0] = 0
  7128. ;
  7129. return 0;
  7130. }
  7131. _ACEOF
  7132. rm -f conftest.$ac_objext
  7133. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7134. (eval $ac_compile) 2>conftest.er1
  7135. ac_status=$?
  7136. grep -v '^ *+' conftest.er1 >conftest.err
  7137. rm -f conftest.er1
  7138. cat conftest.err >&5
  7139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7140. (exit $ac_status); } &&
  7141. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7142. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7143. (eval $ac_try) 2>&5
  7144. ac_status=$?
  7145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7146. (exit $ac_status); }; } &&
  7147. { ac_try='test -s conftest.$ac_objext'
  7148. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7149. (eval $ac_try) 2>&5
  7150. ac_status=$?
  7151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7152. (exit $ac_status); }; }; then
  7153. ac_hi=$ac_mid; break
  7154. else
  7155. echo "$as_me: failed program was:" >&5
  7156. sed 's/^/| /' conftest.$ac_ext >&5
  7157. ac_lo=`expr $ac_mid + 1`
  7158. if test $ac_lo -le $ac_mid; then
  7159. ac_lo= ac_hi=
  7160. break
  7161. fi
  7162. ac_mid=`expr 2 '*' $ac_mid + 1`
  7163. fi
  7164. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7165. done
  7166. else
  7167. echo "$as_me: failed program was:" >&5
  7168. sed 's/^/| /' conftest.$ac_ext >&5
  7169. cat >conftest.$ac_ext <<_ACEOF
  7170. /* confdefs.h. */
  7171. _ACEOF
  7172. cat confdefs.h >>conftest.$ac_ext
  7173. cat >>conftest.$ac_ext <<_ACEOF
  7174. /* end confdefs.h. */
  7175. $ac_includes_default
  7176. int
  7177. main ()
  7178. {
  7179. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  7180. test_array [0] = 0
  7181. ;
  7182. return 0;
  7183. }
  7184. _ACEOF
  7185. rm -f conftest.$ac_objext
  7186. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7187. (eval $ac_compile) 2>conftest.er1
  7188. ac_status=$?
  7189. grep -v '^ *+' conftest.er1 >conftest.err
  7190. rm -f conftest.er1
  7191. cat conftest.err >&5
  7192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7193. (exit $ac_status); } &&
  7194. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7195. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7196. (eval $ac_try) 2>&5
  7197. ac_status=$?
  7198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7199. (exit $ac_status); }; } &&
  7200. { ac_try='test -s conftest.$ac_objext'
  7201. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7202. (eval $ac_try) 2>&5
  7203. ac_status=$?
  7204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7205. (exit $ac_status); }; }; then
  7206. ac_hi=-1 ac_mid=-1
  7207. while :; do
  7208. cat >conftest.$ac_ext <<_ACEOF
  7209. /* confdefs.h. */
  7210. _ACEOF
  7211. cat confdefs.h >>conftest.$ac_ext
  7212. cat >>conftest.$ac_ext <<_ACEOF
  7213. /* end confdefs.h. */
  7214. $ac_includes_default
  7215. int
  7216. main ()
  7217. {
  7218. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  7219. test_array [0] = 0
  7220. ;
  7221. return 0;
  7222. }
  7223. _ACEOF
  7224. rm -f conftest.$ac_objext
  7225. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7226. (eval $ac_compile) 2>conftest.er1
  7227. ac_status=$?
  7228. grep -v '^ *+' conftest.er1 >conftest.err
  7229. rm -f conftest.er1
  7230. cat conftest.err >&5
  7231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7232. (exit $ac_status); } &&
  7233. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7234. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7235. (eval $ac_try) 2>&5
  7236. ac_status=$?
  7237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7238. (exit $ac_status); }; } &&
  7239. { ac_try='test -s conftest.$ac_objext'
  7240. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7241. (eval $ac_try) 2>&5
  7242. ac_status=$?
  7243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7244. (exit $ac_status); }; }; then
  7245. ac_lo=$ac_mid; break
  7246. else
  7247. echo "$as_me: failed program was:" >&5
  7248. sed 's/^/| /' conftest.$ac_ext >&5
  7249. ac_hi=`expr '(' $ac_mid ')' - 1`
  7250. if test $ac_mid -le $ac_hi; then
  7251. ac_lo= ac_hi=
  7252. break
  7253. fi
  7254. ac_mid=`expr 2 '*' $ac_mid`
  7255. fi
  7256. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7257. done
  7258. else
  7259. echo "$as_me: failed program was:" >&5
  7260. sed 's/^/| /' conftest.$ac_ext >&5
  7261. ac_lo= ac_hi=
  7262. fi
  7263. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7264. fi
  7265. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7266. # Binary search between lo and hi bounds.
  7267. while test "x$ac_lo" != "x$ac_hi"; do
  7268. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7269. cat >conftest.$ac_ext <<_ACEOF
  7270. /* confdefs.h. */
  7271. _ACEOF
  7272. cat confdefs.h >>conftest.$ac_ext
  7273. cat >>conftest.$ac_ext <<_ACEOF
  7274. /* end confdefs.h. */
  7275. $ac_includes_default
  7276. int
  7277. main ()
  7278. {
  7279. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  7280. test_array [0] = 0
  7281. ;
  7282. return 0;
  7283. }
  7284. _ACEOF
  7285. rm -f conftest.$ac_objext
  7286. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7287. (eval $ac_compile) 2>conftest.er1
  7288. ac_status=$?
  7289. grep -v '^ *+' conftest.er1 >conftest.err
  7290. rm -f conftest.er1
  7291. cat conftest.err >&5
  7292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7293. (exit $ac_status); } &&
  7294. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7295. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7296. (eval $ac_try) 2>&5
  7297. ac_status=$?
  7298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7299. (exit $ac_status); }; } &&
  7300. { ac_try='test -s conftest.$ac_objext'
  7301. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7302. (eval $ac_try) 2>&5
  7303. ac_status=$?
  7304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7305. (exit $ac_status); }; }; then
  7306. ac_hi=$ac_mid
  7307. else
  7308. echo "$as_me: failed program was:" >&5
  7309. sed 's/^/| /' conftest.$ac_ext >&5
  7310. ac_lo=`expr '(' $ac_mid ')' + 1`
  7311. fi
  7312. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7313. done
  7314. case $ac_lo in
  7315. ?*) ac_cv_sizeof_long=$ac_lo;;
  7316. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  7317. See \`config.log' for more details." >&5
  7318. echo "$as_me: error: cannot compute sizeof (long), 77
  7319. See \`config.log' for more details." >&2;}
  7320. { (exit 1); exit 1; }; } ;;
  7321. esac
  7322. else
  7323. if test "$cross_compiling" = yes; then
  7324. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7325. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7326. { (exit 1); exit 1; }; }
  7327. else
  7328. cat >conftest.$ac_ext <<_ACEOF
  7329. /* confdefs.h. */
  7330. _ACEOF
  7331. cat confdefs.h >>conftest.$ac_ext
  7332. cat >>conftest.$ac_ext <<_ACEOF
  7333. /* end confdefs.h. */
  7334. $ac_includes_default
  7335. long longval () { return (long) (sizeof (long)); }
  7336. unsigned long ulongval () { return (long) (sizeof (long)); }
  7337. #include <stdio.h>
  7338. #include <stdlib.h>
  7339. int
  7340. main ()
  7341. {
  7342. FILE *f = fopen ("conftest.val", "w");
  7343. if (! f)
  7344. exit (1);
  7345. if (((long) (sizeof (long))) < 0)
  7346. {
  7347. long i = longval ();
  7348. if (i != ((long) (sizeof (long))))
  7349. exit (1);
  7350. fprintf (f, "%ld\n", i);
  7351. }
  7352. else
  7353. {
  7354. unsigned long i = ulongval ();
  7355. if (i != ((long) (sizeof (long))))
  7356. exit (1);
  7357. fprintf (f, "%lu\n", i);
  7358. }
  7359. exit (ferror (f) || fclose (f) != 0);
  7360. ;
  7361. return 0;
  7362. }
  7363. _ACEOF
  7364. rm -f conftest$ac_exeext
  7365. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7366. (eval $ac_link) 2>&5
  7367. ac_status=$?
  7368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7369. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7370. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7371. (eval $ac_try) 2>&5
  7372. ac_status=$?
  7373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7374. (exit $ac_status); }; }; then
  7375. ac_cv_sizeof_long=`cat conftest.val`
  7376. else
  7377. echo "$as_me: program exited with status $ac_status" >&5
  7378. echo "$as_me: failed program was:" >&5
  7379. sed 's/^/| /' conftest.$ac_ext >&5
  7380. ( exit $ac_status )
  7381. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  7382. See \`config.log' for more details." >&5
  7383. echo "$as_me: error: cannot compute sizeof (long), 77
  7384. See \`config.log' for more details." >&2;}
  7385. { (exit 1); exit 1; }; }
  7386. fi
  7387. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7388. fi
  7389. fi
  7390. rm -f conftest.val
  7391. else
  7392. ac_cv_sizeof_long=0
  7393. fi
  7394. fi
  7395. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  7396. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  7397. cat >>confdefs.h <<_ACEOF
  7398. #define SIZEOF_LONG $ac_cv_sizeof_long
  7399. _ACEOF
  7400. echo "$as_me:$LINENO: checking for int" >&5
  7401. echo $ECHO_N "checking for int... $ECHO_C" >&6
  7402. if test "${ac_cv_type_int+set}" = set; then
  7403. echo $ECHO_N "(cached) $ECHO_C" >&6
  7404. else
  7405. cat >conftest.$ac_ext <<_ACEOF
  7406. /* confdefs.h. */
  7407. _ACEOF
  7408. cat confdefs.h >>conftest.$ac_ext
  7409. cat >>conftest.$ac_ext <<_ACEOF
  7410. /* end confdefs.h. */
  7411. $ac_includes_default
  7412. int
  7413. main ()
  7414. {
  7415. if ((int *) 0)
  7416. return 0;
  7417. if (sizeof (int))
  7418. return 0;
  7419. ;
  7420. return 0;
  7421. }
  7422. _ACEOF
  7423. rm -f conftest.$ac_objext
  7424. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7425. (eval $ac_compile) 2>conftest.er1
  7426. ac_status=$?
  7427. grep -v '^ *+' conftest.er1 >conftest.err
  7428. rm -f conftest.er1
  7429. cat conftest.err >&5
  7430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7431. (exit $ac_status); } &&
  7432. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7433. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7434. (eval $ac_try) 2>&5
  7435. ac_status=$?
  7436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7437. (exit $ac_status); }; } &&
  7438. { ac_try='test -s conftest.$ac_objext'
  7439. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7440. (eval $ac_try) 2>&5
  7441. ac_status=$?
  7442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7443. (exit $ac_status); }; }; then
  7444. ac_cv_type_int=yes
  7445. else
  7446. echo "$as_me: failed program was:" >&5
  7447. sed 's/^/| /' conftest.$ac_ext >&5
  7448. ac_cv_type_int=no
  7449. fi
  7450. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7451. fi
  7452. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  7453. echo "${ECHO_T}$ac_cv_type_int" >&6
  7454. echo "$as_me:$LINENO: checking size of int" >&5
  7455. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  7456. if test "${ac_cv_sizeof_int+set}" = set; then
  7457. echo $ECHO_N "(cached) $ECHO_C" >&6
  7458. else
  7459. if test "$ac_cv_type_int" = yes; then
  7460. # The cast to unsigned long works around a bug in the HP C Compiler
  7461. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7462. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7463. # This bug is HP SR number 8606223364.
  7464. if test "$cross_compiling" = yes; then
  7465. # Depending upon the size, compute the lo and hi bounds.
  7466. cat >conftest.$ac_ext <<_ACEOF
  7467. /* confdefs.h. */
  7468. _ACEOF
  7469. cat confdefs.h >>conftest.$ac_ext
  7470. cat >>conftest.$ac_ext <<_ACEOF
  7471. /* end confdefs.h. */
  7472. $ac_includes_default
  7473. int
  7474. main ()
  7475. {
  7476. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  7477. test_array [0] = 0
  7478. ;
  7479. return 0;
  7480. }
  7481. _ACEOF
  7482. rm -f conftest.$ac_objext
  7483. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7484. (eval $ac_compile) 2>conftest.er1
  7485. ac_status=$?
  7486. grep -v '^ *+' conftest.er1 >conftest.err
  7487. rm -f conftest.er1
  7488. cat conftest.err >&5
  7489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7490. (exit $ac_status); } &&
  7491. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7492. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7493. (eval $ac_try) 2>&5
  7494. ac_status=$?
  7495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7496. (exit $ac_status); }; } &&
  7497. { ac_try='test -s conftest.$ac_objext'
  7498. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7499. (eval $ac_try) 2>&5
  7500. ac_status=$?
  7501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7502. (exit $ac_status); }; }; then
  7503. ac_lo=0 ac_mid=0
  7504. while :; do
  7505. cat >conftest.$ac_ext <<_ACEOF
  7506. /* confdefs.h. */
  7507. _ACEOF
  7508. cat confdefs.h >>conftest.$ac_ext
  7509. cat >>conftest.$ac_ext <<_ACEOF
  7510. /* end confdefs.h. */
  7511. $ac_includes_default
  7512. int
  7513. main ()
  7514. {
  7515. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  7516. test_array [0] = 0
  7517. ;
  7518. return 0;
  7519. }
  7520. _ACEOF
  7521. rm -f conftest.$ac_objext
  7522. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7523. (eval $ac_compile) 2>conftest.er1
  7524. ac_status=$?
  7525. grep -v '^ *+' conftest.er1 >conftest.err
  7526. rm -f conftest.er1
  7527. cat conftest.err >&5
  7528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7529. (exit $ac_status); } &&
  7530. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7531. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7532. (eval $ac_try) 2>&5
  7533. ac_status=$?
  7534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7535. (exit $ac_status); }; } &&
  7536. { ac_try='test -s conftest.$ac_objext'
  7537. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7538. (eval $ac_try) 2>&5
  7539. ac_status=$?
  7540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7541. (exit $ac_status); }; }; then
  7542. ac_hi=$ac_mid; break
  7543. else
  7544. echo "$as_me: failed program was:" >&5
  7545. sed 's/^/| /' conftest.$ac_ext >&5
  7546. ac_lo=`expr $ac_mid + 1`
  7547. if test $ac_lo -le $ac_mid; then
  7548. ac_lo= ac_hi=
  7549. break
  7550. fi
  7551. ac_mid=`expr 2 '*' $ac_mid + 1`
  7552. fi
  7553. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7554. done
  7555. else
  7556. echo "$as_me: failed program was:" >&5
  7557. sed 's/^/| /' conftest.$ac_ext >&5
  7558. cat >conftest.$ac_ext <<_ACEOF
  7559. /* confdefs.h. */
  7560. _ACEOF
  7561. cat confdefs.h >>conftest.$ac_ext
  7562. cat >>conftest.$ac_ext <<_ACEOF
  7563. /* end confdefs.h. */
  7564. $ac_includes_default
  7565. int
  7566. main ()
  7567. {
  7568. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  7569. test_array [0] = 0
  7570. ;
  7571. return 0;
  7572. }
  7573. _ACEOF
  7574. rm -f conftest.$ac_objext
  7575. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7576. (eval $ac_compile) 2>conftest.er1
  7577. ac_status=$?
  7578. grep -v '^ *+' conftest.er1 >conftest.err
  7579. rm -f conftest.er1
  7580. cat conftest.err >&5
  7581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7582. (exit $ac_status); } &&
  7583. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7584. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7585. (eval $ac_try) 2>&5
  7586. ac_status=$?
  7587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7588. (exit $ac_status); }; } &&
  7589. { ac_try='test -s conftest.$ac_objext'
  7590. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7591. (eval $ac_try) 2>&5
  7592. ac_status=$?
  7593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7594. (exit $ac_status); }; }; then
  7595. ac_hi=-1 ac_mid=-1
  7596. while :; do
  7597. cat >conftest.$ac_ext <<_ACEOF
  7598. /* confdefs.h. */
  7599. _ACEOF
  7600. cat confdefs.h >>conftest.$ac_ext
  7601. cat >>conftest.$ac_ext <<_ACEOF
  7602. /* end confdefs.h. */
  7603. $ac_includes_default
  7604. int
  7605. main ()
  7606. {
  7607. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  7608. test_array [0] = 0
  7609. ;
  7610. return 0;
  7611. }
  7612. _ACEOF
  7613. rm -f conftest.$ac_objext
  7614. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7615. (eval $ac_compile) 2>conftest.er1
  7616. ac_status=$?
  7617. grep -v '^ *+' conftest.er1 >conftest.err
  7618. rm -f conftest.er1
  7619. cat conftest.err >&5
  7620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7621. (exit $ac_status); } &&
  7622. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7623. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7624. (eval $ac_try) 2>&5
  7625. ac_status=$?
  7626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7627. (exit $ac_status); }; } &&
  7628. { ac_try='test -s conftest.$ac_objext'
  7629. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7630. (eval $ac_try) 2>&5
  7631. ac_status=$?
  7632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7633. (exit $ac_status); }; }; then
  7634. ac_lo=$ac_mid; break
  7635. else
  7636. echo "$as_me: failed program was:" >&5
  7637. sed 's/^/| /' conftest.$ac_ext >&5
  7638. ac_hi=`expr '(' $ac_mid ')' - 1`
  7639. if test $ac_mid -le $ac_hi; then
  7640. ac_lo= ac_hi=
  7641. break
  7642. fi
  7643. ac_mid=`expr 2 '*' $ac_mid`
  7644. fi
  7645. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7646. done
  7647. else
  7648. echo "$as_me: failed program was:" >&5
  7649. sed 's/^/| /' conftest.$ac_ext >&5
  7650. ac_lo= ac_hi=
  7651. fi
  7652. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7653. fi
  7654. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7655. # Binary search between lo and hi bounds.
  7656. while test "x$ac_lo" != "x$ac_hi"; do
  7657. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7658. cat >conftest.$ac_ext <<_ACEOF
  7659. /* confdefs.h. */
  7660. _ACEOF
  7661. cat confdefs.h >>conftest.$ac_ext
  7662. cat >>conftest.$ac_ext <<_ACEOF
  7663. /* end confdefs.h. */
  7664. $ac_includes_default
  7665. int
  7666. main ()
  7667. {
  7668. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  7669. test_array [0] = 0
  7670. ;
  7671. return 0;
  7672. }
  7673. _ACEOF
  7674. rm -f conftest.$ac_objext
  7675. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7676. (eval $ac_compile) 2>conftest.er1
  7677. ac_status=$?
  7678. grep -v '^ *+' conftest.er1 >conftest.err
  7679. rm -f conftest.er1
  7680. cat conftest.err >&5
  7681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7682. (exit $ac_status); } &&
  7683. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7684. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7685. (eval $ac_try) 2>&5
  7686. ac_status=$?
  7687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7688. (exit $ac_status); }; } &&
  7689. { ac_try='test -s conftest.$ac_objext'
  7690. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7691. (eval $ac_try) 2>&5
  7692. ac_status=$?
  7693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7694. (exit $ac_status); }; }; then
  7695. ac_hi=$ac_mid
  7696. else
  7697. echo "$as_me: failed program was:" >&5
  7698. sed 's/^/| /' conftest.$ac_ext >&5
  7699. ac_lo=`expr '(' $ac_mid ')' + 1`
  7700. fi
  7701. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7702. done
  7703. case $ac_lo in
  7704. ?*) ac_cv_sizeof_int=$ac_lo;;
  7705. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  7706. See \`config.log' for more details." >&5
  7707. echo "$as_me: error: cannot compute sizeof (int), 77
  7708. See \`config.log' for more details." >&2;}
  7709. { (exit 1); exit 1; }; } ;;
  7710. esac
  7711. else
  7712. if test "$cross_compiling" = yes; then
  7713. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7714. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7715. { (exit 1); exit 1; }; }
  7716. else
  7717. cat >conftest.$ac_ext <<_ACEOF
  7718. /* confdefs.h. */
  7719. _ACEOF
  7720. cat confdefs.h >>conftest.$ac_ext
  7721. cat >>conftest.$ac_ext <<_ACEOF
  7722. /* end confdefs.h. */
  7723. $ac_includes_default
  7724. long longval () { return (long) (sizeof (int)); }
  7725. unsigned long ulongval () { return (long) (sizeof (int)); }
  7726. #include <stdio.h>
  7727. #include <stdlib.h>
  7728. int
  7729. main ()
  7730. {
  7731. FILE *f = fopen ("conftest.val", "w");
  7732. if (! f)
  7733. exit (1);
  7734. if (((long) (sizeof (int))) < 0)
  7735. {
  7736. long i = longval ();
  7737. if (i != ((long) (sizeof (int))))
  7738. exit (1);
  7739. fprintf (f, "%ld\n", i);
  7740. }
  7741. else
  7742. {
  7743. unsigned long i = ulongval ();
  7744. if (i != ((long) (sizeof (int))))
  7745. exit (1);
  7746. fprintf (f, "%lu\n", i);
  7747. }
  7748. exit (ferror (f) || fclose (f) != 0);
  7749. ;
  7750. return 0;
  7751. }
  7752. _ACEOF
  7753. rm -f conftest$ac_exeext
  7754. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7755. (eval $ac_link) 2>&5
  7756. ac_status=$?
  7757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7758. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7759. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7760. (eval $ac_try) 2>&5
  7761. ac_status=$?
  7762. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7763. (exit $ac_status); }; }; then
  7764. ac_cv_sizeof_int=`cat conftest.val`
  7765. else
  7766. echo "$as_me: program exited with status $ac_status" >&5
  7767. echo "$as_me: failed program was:" >&5
  7768. sed 's/^/| /' conftest.$ac_ext >&5
  7769. ( exit $ac_status )
  7770. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  7771. See \`config.log' for more details." >&5
  7772. echo "$as_me: error: cannot compute sizeof (int), 77
  7773. See \`config.log' for more details." >&2;}
  7774. { (exit 1); exit 1; }; }
  7775. fi
  7776. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7777. fi
  7778. fi
  7779. rm -f conftest.val
  7780. else
  7781. ac_cv_sizeof_int=0
  7782. fi
  7783. fi
  7784. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  7785. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  7786. cat >>confdefs.h <<_ACEOF
  7787. #define SIZEOF_INT $ac_cv_sizeof_int
  7788. _ACEOF
  7789. #checkpoint
  7790. cat >confcache <<\_ACEOF
  7791. # This file is a shell script that caches the results of configure
  7792. # tests run on this system so they can be shared between configure
  7793. # scripts and configure runs, see configure's option --config-cache.
  7794. # It is not useful on other systems. If it contains results you don't
  7795. # want to keep, you may remove or edit it.
  7796. #
  7797. # config.status only pays attention to the cache file if you give it
  7798. # the --recheck option to rerun configure.
  7799. #
  7800. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7801. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7802. # following values.
  7803. _ACEOF
  7804. # The following way of writing the cache mishandles newlines in values,
  7805. # but we know of no workaround that is simple, portable, and efficient.
  7806. # So, don't put newlines in cache variables' values.
  7807. # Ultrix sh set writes to stderr and can't be redirected directly,
  7808. # and sets the high bit in the cache file unless we assign to the vars.
  7809. {
  7810. (set) 2>&1 |
  7811. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7812. *ac_space=\ *)
  7813. # `set' does not quote correctly, so add quotes (double-quote
  7814. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7815. sed -n \
  7816. "s/'/'\\\\''/g;
  7817. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7818. ;;
  7819. *)
  7820. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7821. sed -n \
  7822. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7823. ;;
  7824. esac;
  7825. } |
  7826. sed '
  7827. t clear
  7828. : clear
  7829. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7830. t end
  7831. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7832. : end' >>confcache
  7833. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7834. if test -w $cache_file; then
  7835. test "x$cache_file" != "x/dev/null"
  7836. cat confcache >$cache_file
  7837. else
  7838. echo "not updating unwritable cache $cache_file"
  7839. fi
  7840. fi
  7841. rm -f confcache
  7842. echo "$as_me:$LINENO: checking for working volatile" >&5
  7843. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  7844. if test "${ac_cv_c_volatile+set}" = set; then
  7845. echo $ECHO_N "(cached) $ECHO_C" >&6
  7846. else
  7847. cat >conftest.$ac_ext <<_ACEOF
  7848. /* confdefs.h. */
  7849. _ACEOF
  7850. cat confdefs.h >>conftest.$ac_ext
  7851. cat >>conftest.$ac_ext <<_ACEOF
  7852. /* end confdefs.h. */
  7853. int
  7854. main ()
  7855. {
  7856. volatile int x;
  7857. int * volatile y;
  7858. ;
  7859. return 0;
  7860. }
  7861. _ACEOF
  7862. rm -f conftest.$ac_objext
  7863. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7864. (eval $ac_compile) 2>conftest.er1
  7865. ac_status=$?
  7866. grep -v '^ *+' conftest.er1 >conftest.err
  7867. rm -f conftest.er1
  7868. cat conftest.err >&5
  7869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7870. (exit $ac_status); } &&
  7871. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7872. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7873. (eval $ac_try) 2>&5
  7874. ac_status=$?
  7875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7876. (exit $ac_status); }; } &&
  7877. { ac_try='test -s conftest.$ac_objext'
  7878. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7879. (eval $ac_try) 2>&5
  7880. ac_status=$?
  7881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7882. (exit $ac_status); }; }; then
  7883. ac_cv_c_volatile=yes
  7884. else
  7885. echo "$as_me: failed program was:" >&5
  7886. sed 's/^/| /' conftest.$ac_ext >&5
  7887. ac_cv_c_volatile=no
  7888. fi
  7889. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7890. fi
  7891. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  7892. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  7893. if test $ac_cv_c_volatile = no; then
  7894. cat >>confdefs.h <<\_ACEOF
  7895. #define volatile
  7896. _ACEOF
  7897. fi
  7898. if test $ac_cv_c_compiler_gnu = yes; then
  7899. echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  7900. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  7901. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  7902. echo $ECHO_N "(cached) $ECHO_C" >&6
  7903. else
  7904. ac_pattern="Autoconf.*'x'"
  7905. cat >conftest.$ac_ext <<_ACEOF
  7906. /* confdefs.h. */
  7907. _ACEOF
  7908. cat confdefs.h >>conftest.$ac_ext
  7909. cat >>conftest.$ac_ext <<_ACEOF
  7910. /* end confdefs.h. */
  7911. #include <sgtty.h>
  7912. Autoconf TIOCGETP
  7913. _ACEOF
  7914. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7915. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7916. ac_cv_prog_gcc_traditional=yes
  7917. else
  7918. ac_cv_prog_gcc_traditional=no
  7919. fi
  7920. rm -f conftest*
  7921. if test $ac_cv_prog_gcc_traditional = no; then
  7922. cat >conftest.$ac_ext <<_ACEOF
  7923. /* confdefs.h. */
  7924. _ACEOF
  7925. cat confdefs.h >>conftest.$ac_ext
  7926. cat >>conftest.$ac_ext <<_ACEOF
  7927. /* end confdefs.h. */
  7928. #include <termio.h>
  7929. Autoconf TCGETA
  7930. _ACEOF
  7931. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7932. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7933. ac_cv_prog_gcc_traditional=yes
  7934. fi
  7935. rm -f conftest*
  7936. fi
  7937. fi
  7938. echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  7939. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  7940. if test $ac_cv_prog_gcc_traditional = yes; then
  7941. CC="$CC -traditional"
  7942. fi
  7943. fi
  7944. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7945. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7946. if test "${ac_cv_struct_tm+set}" = set; then
  7947. echo $ECHO_N "(cached) $ECHO_C" >&6
  7948. else
  7949. cat >conftest.$ac_ext <<_ACEOF
  7950. /* confdefs.h. */
  7951. _ACEOF
  7952. cat confdefs.h >>conftest.$ac_ext
  7953. cat >>conftest.$ac_ext <<_ACEOF
  7954. /* end confdefs.h. */
  7955. #include <sys/types.h>
  7956. #include <time.h>
  7957. int
  7958. main ()
  7959. {
  7960. struct tm *tp; tp->tm_sec;
  7961. ;
  7962. return 0;
  7963. }
  7964. _ACEOF
  7965. rm -f conftest.$ac_objext
  7966. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7967. (eval $ac_compile) 2>conftest.er1
  7968. ac_status=$?
  7969. grep -v '^ *+' conftest.er1 >conftest.err
  7970. rm -f conftest.er1
  7971. cat conftest.err >&5
  7972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7973. (exit $ac_status); } &&
  7974. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7975. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7976. (eval $ac_try) 2>&5
  7977. ac_status=$?
  7978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7979. (exit $ac_status); }; } &&
  7980. { ac_try='test -s conftest.$ac_objext'
  7981. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7982. (eval $ac_try) 2>&5
  7983. ac_status=$?
  7984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7985. (exit $ac_status); }; }; then
  7986. ac_cv_struct_tm=time.h
  7987. else
  7988. echo "$as_me: failed program was:" >&5
  7989. sed 's/^/| /' conftest.$ac_ext >&5
  7990. ac_cv_struct_tm=sys/time.h
  7991. fi
  7992. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7993. fi
  7994. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7995. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7996. if test $ac_cv_struct_tm = sys/time.h; then
  7997. cat >>confdefs.h <<\_ACEOF
  7998. #define TM_IN_SYS_TIME 1
  7999. _ACEOF
  8000. fi
  8001. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  8002. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  8003. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  8004. echo $ECHO_N "(cached) $ECHO_C" >&6
  8005. else
  8006. cat >conftest.$ac_ext <<_ACEOF
  8007. /* confdefs.h. */
  8008. _ACEOF
  8009. cat confdefs.h >>conftest.$ac_ext
  8010. cat >>conftest.$ac_ext <<_ACEOF
  8011. /* end confdefs.h. */
  8012. #include <sys/types.h>
  8013. #include <$ac_cv_struct_tm>
  8014. int
  8015. main ()
  8016. {
  8017. static struct tm ac_aggr;
  8018. if (ac_aggr.tm_zone)
  8019. return 0;
  8020. ;
  8021. return 0;
  8022. }
  8023. _ACEOF
  8024. rm -f conftest.$ac_objext
  8025. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8026. (eval $ac_compile) 2>conftest.er1
  8027. ac_status=$?
  8028. grep -v '^ *+' conftest.er1 >conftest.err
  8029. rm -f conftest.er1
  8030. cat conftest.err >&5
  8031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8032. (exit $ac_status); } &&
  8033. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8034. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8035. (eval $ac_try) 2>&5
  8036. ac_status=$?
  8037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8038. (exit $ac_status); }; } &&
  8039. { ac_try='test -s conftest.$ac_objext'
  8040. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8041. (eval $ac_try) 2>&5
  8042. ac_status=$?
  8043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8044. (exit $ac_status); }; }; then
  8045. ac_cv_member_struct_tm_tm_zone=yes
  8046. else
  8047. echo "$as_me: failed program was:" >&5
  8048. sed 's/^/| /' conftest.$ac_ext >&5
  8049. cat >conftest.$ac_ext <<_ACEOF
  8050. /* confdefs.h. */
  8051. _ACEOF
  8052. cat confdefs.h >>conftest.$ac_ext
  8053. cat >>conftest.$ac_ext <<_ACEOF
  8054. /* end confdefs.h. */
  8055. #include <sys/types.h>
  8056. #include <$ac_cv_struct_tm>
  8057. int
  8058. main ()
  8059. {
  8060. static struct tm ac_aggr;
  8061. if (sizeof ac_aggr.tm_zone)
  8062. return 0;
  8063. ;
  8064. return 0;
  8065. }
  8066. _ACEOF
  8067. rm -f conftest.$ac_objext
  8068. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8069. (eval $ac_compile) 2>conftest.er1
  8070. ac_status=$?
  8071. grep -v '^ *+' conftest.er1 >conftest.err
  8072. rm -f conftest.er1
  8073. cat conftest.err >&5
  8074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8075. (exit $ac_status); } &&
  8076. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8077. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8078. (eval $ac_try) 2>&5
  8079. ac_status=$?
  8080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8081. (exit $ac_status); }; } &&
  8082. { ac_try='test -s conftest.$ac_objext'
  8083. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8084. (eval $ac_try) 2>&5
  8085. ac_status=$?
  8086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8087. (exit $ac_status); }; }; then
  8088. ac_cv_member_struct_tm_tm_zone=yes
  8089. else
  8090. echo "$as_me: failed program was:" >&5
  8091. sed 's/^/| /' conftest.$ac_ext >&5
  8092. ac_cv_member_struct_tm_tm_zone=no
  8093. fi
  8094. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8095. fi
  8096. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8097. fi
  8098. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  8099. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  8100. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  8101. cat >>confdefs.h <<_ACEOF
  8102. #define HAVE_STRUCT_TM_TM_ZONE 1
  8103. _ACEOF
  8104. fi
  8105. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  8106. cat >>confdefs.h <<\_ACEOF
  8107. #define HAVE_TM_ZONE 1
  8108. _ACEOF
  8109. else
  8110. echo "$as_me:$LINENO: checking for tzname" >&5
  8111. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  8112. if test "${ac_cv_var_tzname+set}" = set; then
  8113. echo $ECHO_N "(cached) $ECHO_C" >&6
  8114. else
  8115. cat >conftest.$ac_ext <<_ACEOF
  8116. /* confdefs.h. */
  8117. _ACEOF
  8118. cat confdefs.h >>conftest.$ac_ext
  8119. cat >>conftest.$ac_ext <<_ACEOF
  8120. /* end confdefs.h. */
  8121. #include <time.h>
  8122. #ifndef tzname /* For SGI. */
  8123. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  8124. #endif
  8125. int
  8126. main ()
  8127. {
  8128. atoi(*tzname);
  8129. ;
  8130. return 0;
  8131. }
  8132. _ACEOF
  8133. rm -f conftest.$ac_objext conftest$ac_exeext
  8134. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8135. (eval $ac_link) 2>conftest.er1
  8136. ac_status=$?
  8137. grep -v '^ *+' conftest.er1 >conftest.err
  8138. rm -f conftest.er1
  8139. cat conftest.err >&5
  8140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8141. (exit $ac_status); } &&
  8142. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8143. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8144. (eval $ac_try) 2>&5
  8145. ac_status=$?
  8146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8147. (exit $ac_status); }; } &&
  8148. { ac_try='test -s conftest$ac_exeext'
  8149. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8150. (eval $ac_try) 2>&5
  8151. ac_status=$?
  8152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8153. (exit $ac_status); }; }; then
  8154. ac_cv_var_tzname=yes
  8155. else
  8156. echo "$as_me: failed program was:" >&5
  8157. sed 's/^/| /' conftest.$ac_ext >&5
  8158. ac_cv_var_tzname=no
  8159. fi
  8160. rm -f conftest.err conftest.$ac_objext \
  8161. conftest$ac_exeext conftest.$ac_ext
  8162. fi
  8163. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  8164. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  8165. if test $ac_cv_var_tzname = yes; then
  8166. cat >>confdefs.h <<\_ACEOF
  8167. #define HAVE_TZNAME 1
  8168. _ACEOF
  8169. fi
  8170. fi
  8171. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8172. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  8173. if test "${ac_cv_struct_tm+set}" = set; then
  8174. echo $ECHO_N "(cached) $ECHO_C" >&6
  8175. else
  8176. cat >conftest.$ac_ext <<_ACEOF
  8177. /* confdefs.h. */
  8178. _ACEOF
  8179. cat confdefs.h >>conftest.$ac_ext
  8180. cat >>conftest.$ac_ext <<_ACEOF
  8181. /* end confdefs.h. */
  8182. #include <sys/types.h>
  8183. #include <time.h>
  8184. int
  8185. main ()
  8186. {
  8187. struct tm *tp; tp->tm_sec;
  8188. ;
  8189. return 0;
  8190. }
  8191. _ACEOF
  8192. rm -f conftest.$ac_objext
  8193. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8194. (eval $ac_compile) 2>conftest.er1
  8195. ac_status=$?
  8196. grep -v '^ *+' conftest.er1 >conftest.err
  8197. rm -f conftest.er1
  8198. cat conftest.err >&5
  8199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8200. (exit $ac_status); } &&
  8201. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8202. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8203. (eval $ac_try) 2>&5
  8204. ac_status=$?
  8205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8206. (exit $ac_status); }; } &&
  8207. { ac_try='test -s conftest.$ac_objext'
  8208. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8209. (eval $ac_try) 2>&5
  8210. ac_status=$?
  8211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8212. (exit $ac_status); }; }; then
  8213. ac_cv_struct_tm=time.h
  8214. else
  8215. echo "$as_me: failed program was:" >&5
  8216. sed 's/^/| /' conftest.$ac_ext >&5
  8217. ac_cv_struct_tm=sys/time.h
  8218. fi
  8219. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8220. fi
  8221. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8222. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  8223. if test $ac_cv_struct_tm = sys/time.h; then
  8224. cat >>confdefs.h <<\_ACEOF
  8225. #define TM_IN_SYS_TIME 1
  8226. _ACEOF
  8227. fi
  8228. #checkpoint
  8229. cat >confcache <<\_ACEOF
  8230. # This file is a shell script that caches the results of configure
  8231. # tests run on this system so they can be shared between configure
  8232. # scripts and configure runs, see configure's option --config-cache.
  8233. # It is not useful on other systems. If it contains results you don't
  8234. # want to keep, you may remove or edit it.
  8235. #
  8236. # config.status only pays attention to the cache file if you give it
  8237. # the --recheck option to rerun configure.
  8238. #
  8239. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8240. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8241. # following values.
  8242. _ACEOF
  8243. # The following way of writing the cache mishandles newlines in values,
  8244. # but we know of no workaround that is simple, portable, and efficient.
  8245. # So, don't put newlines in cache variables' values.
  8246. # Ultrix sh set writes to stderr and can't be redirected directly,
  8247. # and sets the high bit in the cache file unless we assign to the vars.
  8248. {
  8249. (set) 2>&1 |
  8250. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8251. *ac_space=\ *)
  8252. # `set' does not quote correctly, so add quotes (double-quote
  8253. # substitution turns \\\\ into \\, and sed turns \\ into \).
  8254. sed -n \
  8255. "s/'/'\\\\''/g;
  8256. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8257. ;;
  8258. *)
  8259. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8260. sed -n \
  8261. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8262. ;;
  8263. esac;
  8264. } |
  8265. sed '
  8266. t clear
  8267. : clear
  8268. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8269. t end
  8270. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8271. : end' >>confcache
  8272. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  8273. if test -w $cache_file; then
  8274. test "x$cache_file" != "x/dev/null"
  8275. cat confcache >$cache_file
  8276. else
  8277. echo "not updating unwritable cache $cache_file"
  8278. fi
  8279. fi
  8280. rm -f confcache
  8281. # Check for IPv6 support
  8282. #EGG_IPV6_SUPPORTED
  8283. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  8284. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  8285. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  8286. if test "${enable_ipv6+set}" = set; then
  8287. enableval="$enable_ipv6"
  8288. ac_cv_dipv6="yes"
  8289. echo "$as_me:$LINENO: result: yes" >&5
  8290. echo "${ECHO_T}yes" >&6
  8291. else
  8292. ac_cv_dipv6="no"
  8293. if test "$egg_cv_ipv6_supported" = "no"; then
  8294. ac_cv_dipv6="no"
  8295. fi
  8296. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  8297. echo "${ECHO_T}$ac_cv_dipv6" >&6
  8298. fi;
  8299. if test "$ac_cv_dipv6" = "no"; then
  8300. cat >>confdefs.h <<\_ACEOF
  8301. #define USE_IPV6 1
  8302. _ACEOF
  8303. fi
  8304. echo "$as_me:$LINENO: checking for socklen_t" >&5
  8305. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  8306. if test "${egg_cv_socklen_t+set}" = set; then
  8307. echo $ECHO_N "(cached) $ECHO_C" >&6
  8308. else
  8309. if test "$cross_compiling" = yes; then
  8310. egg_cv_socklen_t=no
  8311. else
  8312. cat >conftest.$ac_ext <<_ACEOF
  8313. /* confdefs.h. */
  8314. _ACEOF
  8315. cat confdefs.h >>conftest.$ac_ext
  8316. cat >>conftest.$ac_ext <<_ACEOF
  8317. /* end confdefs.h. */
  8318. #include <unistd.h>
  8319. #include <sys/types.h>
  8320. #include <sys/socket.h>
  8321. #include <netinet/in.h>
  8322. #include <arpa/inet.h>
  8323. int main()
  8324. {
  8325. socklen_t test = sizeof(int);
  8326. return 0;
  8327. }
  8328. _ACEOF
  8329. rm -f conftest$ac_exeext
  8330. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8331. (eval $ac_link) 2>&5
  8332. ac_status=$?
  8333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8334. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8335. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8336. (eval $ac_try) 2>&5
  8337. ac_status=$?
  8338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8339. (exit $ac_status); }; }; then
  8340. egg_cv_socklen_t=yes
  8341. else
  8342. echo "$as_me: program exited with status $ac_status" >&5
  8343. echo "$as_me: failed program was:" >&5
  8344. sed 's/^/| /' conftest.$ac_ext >&5
  8345. ( exit $ac_status )
  8346. egg_cv_socklen_t=no
  8347. fi
  8348. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8349. fi
  8350. fi
  8351. if test "$egg_cv_socklen_t" = "yes"; then
  8352. cat >>confdefs.h <<\_ACEOF
  8353. #define HAVE_SOCKLEN_T 1
  8354. _ACEOF
  8355. echo "$as_me:$LINENO: result: yes" >&5
  8356. echo "${ECHO_T}yes" >&6
  8357. else
  8358. echo "$as_me:$LINENO: result: no" >&5
  8359. echo "${ECHO_T}no" >&6
  8360. fi
  8361. # Checks for library functions
  8362. #checkpoint
  8363. cat >confcache <<\_ACEOF
  8364. # This file is a shell script that caches the results of configure
  8365. # tests run on this system so they can be shared between configure
  8366. # scripts and configure runs, see configure's option --config-cache.
  8367. # It is not useful on other systems. If it contains results you don't
  8368. # want to keep, you may remove or edit it.
  8369. #
  8370. # config.status only pays attention to the cache file if you give it
  8371. # the --recheck option to rerun configure.
  8372. #
  8373. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8374. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8375. # following values.
  8376. _ACEOF
  8377. # The following way of writing the cache mishandles newlines in values,
  8378. # but we know of no workaround that is simple, portable, and efficient.
  8379. # So, don't put newlines in cache variables' values.
  8380. # Ultrix sh set writes to stderr and can't be redirected directly,
  8381. # and sets the high bit in the cache file unless we assign to the vars.
  8382. {
  8383. (set) 2>&1 |
  8384. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8385. *ac_space=\ *)
  8386. # `set' does not quote correctly, so add quotes (double-quote
  8387. # substitution turns \\\\ into \\, and sed turns \\ into \).
  8388. sed -n \
  8389. "s/'/'\\\\''/g;
  8390. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8391. ;;
  8392. *)
  8393. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8394. sed -n \
  8395. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8396. ;;
  8397. esac;
  8398. } |
  8399. sed '
  8400. t clear
  8401. : clear
  8402. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8403. t end
  8404. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8405. : end' >>confcache
  8406. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  8407. if test -w $cache_file; then
  8408. test "x$cache_file" != "x/dev/null"
  8409. cat confcache >$cache_file
  8410. else
  8411. echo "not updating unwritable cache $cache_file"
  8412. fi
  8413. fi
  8414. rm -f confcache
  8415. # Checks for library functions.
  8416. for ac_header in unistd.h vfork.h
  8417. do
  8418. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8419. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8420. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8421. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8422. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8423. echo $ECHO_N "(cached) $ECHO_C" >&6
  8424. fi
  8425. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8426. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8427. else
  8428. # Is the header compilable?
  8429. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8430. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8431. cat >conftest.$ac_ext <<_ACEOF
  8432. /* confdefs.h. */
  8433. _ACEOF
  8434. cat confdefs.h >>conftest.$ac_ext
  8435. cat >>conftest.$ac_ext <<_ACEOF
  8436. /* end confdefs.h. */
  8437. $ac_includes_default
  8438. #include <$ac_header>
  8439. _ACEOF
  8440. rm -f conftest.$ac_objext
  8441. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8442. (eval $ac_compile) 2>conftest.er1
  8443. ac_status=$?
  8444. grep -v '^ *+' conftest.er1 >conftest.err
  8445. rm -f conftest.er1
  8446. cat conftest.err >&5
  8447. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8448. (exit $ac_status); } &&
  8449. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8450. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8451. (eval $ac_try) 2>&5
  8452. ac_status=$?
  8453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8454. (exit $ac_status); }; } &&
  8455. { ac_try='test -s conftest.$ac_objext'
  8456. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8457. (eval $ac_try) 2>&5
  8458. ac_status=$?
  8459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8460. (exit $ac_status); }; }; then
  8461. ac_header_compiler=yes
  8462. else
  8463. echo "$as_me: failed program was:" >&5
  8464. sed 's/^/| /' conftest.$ac_ext >&5
  8465. ac_header_compiler=no
  8466. fi
  8467. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8468. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8469. echo "${ECHO_T}$ac_header_compiler" >&6
  8470. # Is the header present?
  8471. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8472. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8473. cat >conftest.$ac_ext <<_ACEOF
  8474. /* confdefs.h. */
  8475. _ACEOF
  8476. cat confdefs.h >>conftest.$ac_ext
  8477. cat >>conftest.$ac_ext <<_ACEOF
  8478. /* end confdefs.h. */
  8479. #include <$ac_header>
  8480. _ACEOF
  8481. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8482. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8483. ac_status=$?
  8484. grep -v '^ *+' conftest.er1 >conftest.err
  8485. rm -f conftest.er1
  8486. cat conftest.err >&5
  8487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8488. (exit $ac_status); } >/dev/null; then
  8489. if test -s conftest.err; then
  8490. ac_cpp_err=$ac_c_preproc_warn_flag
  8491. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8492. else
  8493. ac_cpp_err=
  8494. fi
  8495. else
  8496. ac_cpp_err=yes
  8497. fi
  8498. if test -z "$ac_cpp_err"; then
  8499. ac_header_preproc=yes
  8500. else
  8501. echo "$as_me: failed program was:" >&5
  8502. sed 's/^/| /' conftest.$ac_ext >&5
  8503. ac_header_preproc=no
  8504. fi
  8505. rm -f conftest.err conftest.$ac_ext
  8506. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8507. echo "${ECHO_T}$ac_header_preproc" >&6
  8508. # So? What about this header?
  8509. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8510. yes:no: )
  8511. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8512. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8513. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8514. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8515. ac_header_preproc=yes
  8516. ;;
  8517. no:yes:* )
  8518. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8519. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8520. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8521. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8522. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8523. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8524. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8525. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8526. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8527. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8528. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8529. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8530. (
  8531. cat <<\_ASBOX
  8532. ## ------------------------------------------ ##
  8533. ## Report this to the AC_PACKAGE_NAME lists. ##
  8534. ## ------------------------------------------ ##
  8535. _ASBOX
  8536. ) |
  8537. sed "s/^/$as_me: WARNING: /" >&2
  8538. ;;
  8539. esac
  8540. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8541. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8542. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8543. echo $ECHO_N "(cached) $ECHO_C" >&6
  8544. else
  8545. eval "$as_ac_Header=\$ac_header_preproc"
  8546. fi
  8547. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8548. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8549. fi
  8550. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8551. cat >>confdefs.h <<_ACEOF
  8552. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8553. _ACEOF
  8554. fi
  8555. done
  8556. for ac_func in fork vfork
  8557. do
  8558. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8559. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8560. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8561. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8562. echo $ECHO_N "(cached) $ECHO_C" >&6
  8563. else
  8564. cat >conftest.$ac_ext <<_ACEOF
  8565. /* confdefs.h. */
  8566. _ACEOF
  8567. cat confdefs.h >>conftest.$ac_ext
  8568. cat >>conftest.$ac_ext <<_ACEOF
  8569. /* end confdefs.h. */
  8570. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8571. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8572. #define $ac_func innocuous_$ac_func
  8573. /* System header to define __stub macros and hopefully few prototypes,
  8574. which can conflict with char $ac_func (); below.
  8575. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8576. <limits.h> exists even on freestanding compilers. */
  8577. #ifdef __STDC__
  8578. # include <limits.h>
  8579. #else
  8580. # include <assert.h>
  8581. #endif
  8582. #undef $ac_func
  8583. /* Override any gcc2 internal prototype to avoid an error. */
  8584. #ifdef __cplusplus
  8585. extern "C"
  8586. {
  8587. #endif
  8588. /* We use char because int might match the return type of a gcc2
  8589. builtin and then its argument prototype would still apply. */
  8590. char $ac_func ();
  8591. /* The GNU C library defines this for functions which it implements
  8592. to always fail with ENOSYS. Some functions are actually named
  8593. something starting with __ and the normal name is an alias. */
  8594. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8595. choke me
  8596. #else
  8597. char (*f) () = $ac_func;
  8598. #endif
  8599. #ifdef __cplusplus
  8600. }
  8601. #endif
  8602. int
  8603. main ()
  8604. {
  8605. return f != $ac_func;
  8606. ;
  8607. return 0;
  8608. }
  8609. _ACEOF
  8610. rm -f conftest.$ac_objext conftest$ac_exeext
  8611. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8612. (eval $ac_link) 2>conftest.er1
  8613. ac_status=$?
  8614. grep -v '^ *+' conftest.er1 >conftest.err
  8615. rm -f conftest.er1
  8616. cat conftest.err >&5
  8617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8618. (exit $ac_status); } &&
  8619. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8620. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8621. (eval $ac_try) 2>&5
  8622. ac_status=$?
  8623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8624. (exit $ac_status); }; } &&
  8625. { ac_try='test -s conftest$ac_exeext'
  8626. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8627. (eval $ac_try) 2>&5
  8628. ac_status=$?
  8629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8630. (exit $ac_status); }; }; then
  8631. eval "$as_ac_var=yes"
  8632. else
  8633. echo "$as_me: failed program was:" >&5
  8634. sed 's/^/| /' conftest.$ac_ext >&5
  8635. eval "$as_ac_var=no"
  8636. fi
  8637. rm -f conftest.err conftest.$ac_objext \
  8638. conftest$ac_exeext conftest.$ac_ext
  8639. fi
  8640. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8641. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8642. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8643. cat >>confdefs.h <<_ACEOF
  8644. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8645. _ACEOF
  8646. fi
  8647. done
  8648. if test "x$ac_cv_func_fork" = xyes; then
  8649. echo "$as_me:$LINENO: checking for working fork" >&5
  8650. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  8651. if test "${ac_cv_func_fork_works+set}" = set; then
  8652. echo $ECHO_N "(cached) $ECHO_C" >&6
  8653. else
  8654. if test "$cross_compiling" = yes; then
  8655. ac_cv_func_fork_works=cross
  8656. else
  8657. cat >conftest.$ac_ext <<_ACEOF
  8658. /* By Ruediger Kuhlmann. */
  8659. #include <sys/types.h>
  8660. #if HAVE_UNISTD_H
  8661. # include <unistd.h>
  8662. #endif
  8663. /* Some systems only have a dummy stub for fork() */
  8664. int main ()
  8665. {
  8666. if (fork() < 0)
  8667. exit (1);
  8668. exit (0);
  8669. }
  8670. _ACEOF
  8671. rm -f conftest$ac_exeext
  8672. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8673. (eval $ac_link) 2>&5
  8674. ac_status=$?
  8675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8676. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8677. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8678. (eval $ac_try) 2>&5
  8679. ac_status=$?
  8680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8681. (exit $ac_status); }; }; then
  8682. ac_cv_func_fork_works=yes
  8683. else
  8684. echo "$as_me: program exited with status $ac_status" >&5
  8685. echo "$as_me: failed program was:" >&5
  8686. sed 's/^/| /' conftest.$ac_ext >&5
  8687. ( exit $ac_status )
  8688. ac_cv_func_fork_works=no
  8689. fi
  8690. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8691. fi
  8692. fi
  8693. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  8694. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  8695. else
  8696. ac_cv_func_fork_works=$ac_cv_func_fork
  8697. fi
  8698. if test "x$ac_cv_func_fork_works" = xcross; then
  8699. case $host in
  8700. *-*-amigaos* | *-*-msdosdjgpp*)
  8701. # Override, as these systems have only a dummy fork() stub
  8702. ac_cv_func_fork_works=no
  8703. ;;
  8704. *)
  8705. ac_cv_func_fork_works=yes
  8706. ;;
  8707. esac
  8708. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  8709. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  8710. fi
  8711. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8712. if test "x$ac_cv_func_vfork" = xyes; then
  8713. echo "$as_me:$LINENO: checking for working vfork" >&5
  8714. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  8715. if test "${ac_cv_func_vfork_works+set}" = set; then
  8716. echo $ECHO_N "(cached) $ECHO_C" >&6
  8717. else
  8718. if test "$cross_compiling" = yes; then
  8719. ac_cv_func_vfork_works=cross
  8720. else
  8721. cat >conftest.$ac_ext <<_ACEOF
  8722. /* confdefs.h. */
  8723. _ACEOF
  8724. cat confdefs.h >>conftest.$ac_ext
  8725. cat >>conftest.$ac_ext <<_ACEOF
  8726. /* end confdefs.h. */
  8727. /* Thanks to Paul Eggert for this test. */
  8728. #include <stdio.h>
  8729. #include <stdlib.h>
  8730. #include <sys/types.h>
  8731. #include <sys/stat.h>
  8732. #include <sys/wait.h>
  8733. #if HAVE_UNISTD_H
  8734. # include <unistd.h>
  8735. #endif
  8736. #if HAVE_VFORK_H
  8737. # include <vfork.h>
  8738. #endif
  8739. /* On some sparc systems, changes by the child to local and incoming
  8740. argument registers are propagated back to the parent. The compiler
  8741. is told about this with #include <vfork.h>, but some compilers
  8742. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  8743. static variable whose address is put into a register that is
  8744. clobbered by the vfork. */
  8745. static void
  8746. #ifdef __cplusplus
  8747. sparc_address_test (int arg)
  8748. # else
  8749. sparc_address_test (arg) int arg;
  8750. #endif
  8751. {
  8752. static pid_t child;
  8753. if (!child) {
  8754. child = vfork ();
  8755. if (child < 0) {
  8756. perror ("vfork");
  8757. _exit(2);
  8758. }
  8759. if (!child) {
  8760. arg = getpid();
  8761. write(-1, "", 0);
  8762. _exit (arg);
  8763. }
  8764. }
  8765. }
  8766. int
  8767. main ()
  8768. {
  8769. pid_t parent = getpid ();
  8770. pid_t child;
  8771. sparc_address_test (0);
  8772. child = vfork ();
  8773. if (child == 0) {
  8774. /* Here is another test for sparc vfork register problems. This
  8775. test uses lots of local variables, at least as many local
  8776. variables as main has allocated so far including compiler
  8777. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  8778. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  8779. reuse the register of parent for one of the local variables,
  8780. since it will think that parent can't possibly be used any more
  8781. in this routine. Assigning to the local variable will thus
  8782. munge parent in the parent process. */
  8783. pid_t
  8784. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  8785. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  8786. /* Convince the compiler that p..p7 are live; otherwise, it might
  8787. use the same hardware register for all 8 local variables. */
  8788. if (p != p1 || p != p2 || p != p3 || p != p4
  8789. || p != p5 || p != p6 || p != p7)
  8790. _exit(1);
  8791. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  8792. from child file descriptors. If the child closes a descriptor
  8793. before it execs or exits, this munges the parent's descriptor
  8794. as well. Test for this by closing stdout in the child. */
  8795. _exit(close(fileno(stdout)) != 0);
  8796. } else {
  8797. int status;
  8798. struct stat st;
  8799. while (wait(&status) != child)
  8800. ;
  8801. exit(
  8802. /* Was there some problem with vforking? */
  8803. child < 0
  8804. /* Did the child fail? (This shouldn't happen.) */
  8805. || status
  8806. /* Did the vfork/compiler bug occur? */
  8807. || parent != getpid()
  8808. /* Did the file descriptor bug occur? */
  8809. || fstat(fileno(stdout), &st) != 0
  8810. );
  8811. }
  8812. }
  8813. _ACEOF
  8814. rm -f conftest$ac_exeext
  8815. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8816. (eval $ac_link) 2>&5
  8817. ac_status=$?
  8818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8819. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8820. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8821. (eval $ac_try) 2>&5
  8822. ac_status=$?
  8823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8824. (exit $ac_status); }; }; then
  8825. ac_cv_func_vfork_works=yes
  8826. else
  8827. echo "$as_me: program exited with status $ac_status" >&5
  8828. echo "$as_me: failed program was:" >&5
  8829. sed 's/^/| /' conftest.$ac_ext >&5
  8830. ( exit $ac_status )
  8831. ac_cv_func_vfork_works=no
  8832. fi
  8833. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8834. fi
  8835. fi
  8836. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  8837. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  8838. fi;
  8839. if test "x$ac_cv_func_fork_works" = xcross; then
  8840. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8841. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  8842. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  8843. fi
  8844. if test "x$ac_cv_func_vfork_works" = xyes; then
  8845. cat >>confdefs.h <<\_ACEOF
  8846. #define HAVE_WORKING_VFORK 1
  8847. _ACEOF
  8848. else
  8849. cat >>confdefs.h <<\_ACEOF
  8850. #define vfork fork
  8851. _ACEOF
  8852. fi
  8853. if test "x$ac_cv_func_fork_works" = xyes; then
  8854. cat >>confdefs.h <<\_ACEOF
  8855. #define HAVE_WORKING_FORK 1
  8856. _ACEOF
  8857. fi
  8858. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8859. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8860. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8861. echo $ECHO_N "(cached) $ECHO_C" >&6
  8862. else
  8863. rm -f conftest.sym conftest.file
  8864. echo >conftest.file
  8865. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8866. if test "$cross_compiling" = yes; then
  8867. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8868. else
  8869. cat >conftest.$ac_ext <<_ACEOF
  8870. /* confdefs.h. */
  8871. _ACEOF
  8872. cat confdefs.h >>conftest.$ac_ext
  8873. cat >>conftest.$ac_ext <<_ACEOF
  8874. /* end confdefs.h. */
  8875. $ac_includes_default
  8876. int
  8877. main ()
  8878. {
  8879. struct stat sbuf;
  8880. /* Linux will dereference the symlink and fail.
  8881. That is better in the sense that it means we will not
  8882. have to compile and use the lstat wrapper. */
  8883. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8884. ;
  8885. return 0;
  8886. }
  8887. _ACEOF
  8888. rm -f conftest$ac_exeext
  8889. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8890. (eval $ac_link) 2>&5
  8891. ac_status=$?
  8892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8893. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8894. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8895. (eval $ac_try) 2>&5
  8896. ac_status=$?
  8897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8898. (exit $ac_status); }; }; then
  8899. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8900. else
  8901. echo "$as_me: program exited with status $ac_status" >&5
  8902. echo "$as_me: failed program was:" >&5
  8903. sed 's/^/| /' conftest.$ac_ext >&5
  8904. ( exit $ac_status )
  8905. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8906. fi
  8907. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8908. fi
  8909. else
  8910. # If the `ln -s' command failed, then we probably don't even
  8911. # have an lstat function.
  8912. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8913. fi
  8914. rm -f conftest.sym conftest.file
  8915. fi
  8916. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8917. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8918. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8919. cat >>confdefs.h <<_ACEOF
  8920. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8921. _ACEOF
  8922. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8923. case $LIBOBJS in
  8924. "lstat.$ac_objext" | \
  8925. *" lstat.$ac_objext" | \
  8926. "lstat.$ac_objext "* | \
  8927. *" lstat.$ac_objext "* ) ;;
  8928. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8929. esac
  8930. fi
  8931. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8932. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  8933. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8934. echo $ECHO_N "(cached) $ECHO_C" >&6
  8935. else
  8936. if test "$cross_compiling" = yes; then
  8937. ac_cv_func_lstat_empty_string_bug=yes
  8938. else
  8939. cat >conftest.$ac_ext <<_ACEOF
  8940. /* confdefs.h. */
  8941. _ACEOF
  8942. cat confdefs.h >>conftest.$ac_ext
  8943. cat >>conftest.$ac_ext <<_ACEOF
  8944. /* end confdefs.h. */
  8945. $ac_includes_default
  8946. int
  8947. main ()
  8948. {
  8949. struct stat sbuf;
  8950. exit (lstat ("", &sbuf) ? 1 : 0);
  8951. ;
  8952. return 0;
  8953. }
  8954. _ACEOF
  8955. rm -f conftest$ac_exeext
  8956. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8957. (eval $ac_link) 2>&5
  8958. ac_status=$?
  8959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8960. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8961. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8962. (eval $ac_try) 2>&5
  8963. ac_status=$?
  8964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8965. (exit $ac_status); }; }; then
  8966. ac_cv_func_lstat_empty_string_bug=yes
  8967. else
  8968. echo "$as_me: program exited with status $ac_status" >&5
  8969. echo "$as_me: failed program was:" >&5
  8970. sed 's/^/| /' conftest.$ac_ext >&5
  8971. ( exit $ac_status )
  8972. ac_cv_func_lstat_empty_string_bug=no
  8973. fi
  8974. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8975. fi
  8976. fi
  8977. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  8978. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  8979. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  8980. case $LIBOBJS in
  8981. "lstat.$ac_objext" | \
  8982. *" lstat.$ac_objext" | \
  8983. "lstat.$ac_objext "* | \
  8984. *" lstat.$ac_objext "* ) ;;
  8985. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8986. esac
  8987. cat >>confdefs.h <<_ACEOF
  8988. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  8989. _ACEOF
  8990. fi
  8991. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8992. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8993. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8994. echo $ECHO_N "(cached) $ECHO_C" >&6
  8995. else
  8996. rm -f conftest.sym conftest.file
  8997. echo >conftest.file
  8998. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8999. if test "$cross_compiling" = yes; then
  9000. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9001. else
  9002. cat >conftest.$ac_ext <<_ACEOF
  9003. /* confdefs.h. */
  9004. _ACEOF
  9005. cat confdefs.h >>conftest.$ac_ext
  9006. cat >>conftest.$ac_ext <<_ACEOF
  9007. /* end confdefs.h. */
  9008. $ac_includes_default
  9009. int
  9010. main ()
  9011. {
  9012. struct stat sbuf;
  9013. /* Linux will dereference the symlink and fail.
  9014. That is better in the sense that it means we will not
  9015. have to compile and use the lstat wrapper. */
  9016. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  9017. ;
  9018. return 0;
  9019. }
  9020. _ACEOF
  9021. rm -f conftest$ac_exeext
  9022. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9023. (eval $ac_link) 2>&5
  9024. ac_status=$?
  9025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9026. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9027. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9028. (eval $ac_try) 2>&5
  9029. ac_status=$?
  9030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9031. (exit $ac_status); }; }; then
  9032. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9033. else
  9034. echo "$as_me: program exited with status $ac_status" >&5
  9035. echo "$as_me: failed program was:" >&5
  9036. sed 's/^/| /' conftest.$ac_ext >&5
  9037. ( exit $ac_status )
  9038. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9039. fi
  9040. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9041. fi
  9042. else
  9043. # If the `ln -s' command failed, then we probably don't even
  9044. # have an lstat function.
  9045. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9046. fi
  9047. rm -f conftest.sym conftest.file
  9048. fi
  9049. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9050. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  9051. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9052. cat >>confdefs.h <<_ACEOF
  9053. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9054. _ACEOF
  9055. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9056. case $LIBOBJS in
  9057. "lstat.$ac_objext" | \
  9058. *" lstat.$ac_objext" | \
  9059. "lstat.$ac_objext "* | \
  9060. *" lstat.$ac_objext "* ) ;;
  9061. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  9062. esac
  9063. fi
  9064. for ac_header in stdlib.h
  9065. do
  9066. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9067. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9068. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9069. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9070. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9071. echo $ECHO_N "(cached) $ECHO_C" >&6
  9072. fi
  9073. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9074. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9075. else
  9076. # Is the header compilable?
  9077. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9078. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9079. cat >conftest.$ac_ext <<_ACEOF
  9080. /* confdefs.h. */
  9081. _ACEOF
  9082. cat confdefs.h >>conftest.$ac_ext
  9083. cat >>conftest.$ac_ext <<_ACEOF
  9084. /* end confdefs.h. */
  9085. $ac_includes_default
  9086. #include <$ac_header>
  9087. _ACEOF
  9088. rm -f conftest.$ac_objext
  9089. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9090. (eval $ac_compile) 2>conftest.er1
  9091. ac_status=$?
  9092. grep -v '^ *+' conftest.er1 >conftest.err
  9093. rm -f conftest.er1
  9094. cat conftest.err >&5
  9095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9096. (exit $ac_status); } &&
  9097. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9098. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9099. (eval $ac_try) 2>&5
  9100. ac_status=$?
  9101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9102. (exit $ac_status); }; } &&
  9103. { ac_try='test -s conftest.$ac_objext'
  9104. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9105. (eval $ac_try) 2>&5
  9106. ac_status=$?
  9107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9108. (exit $ac_status); }; }; then
  9109. ac_header_compiler=yes
  9110. else
  9111. echo "$as_me: failed program was:" >&5
  9112. sed 's/^/| /' conftest.$ac_ext >&5
  9113. ac_header_compiler=no
  9114. fi
  9115. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9116. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9117. echo "${ECHO_T}$ac_header_compiler" >&6
  9118. # Is the header present?
  9119. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9120. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9121. cat >conftest.$ac_ext <<_ACEOF
  9122. /* confdefs.h. */
  9123. _ACEOF
  9124. cat confdefs.h >>conftest.$ac_ext
  9125. cat >>conftest.$ac_ext <<_ACEOF
  9126. /* end confdefs.h. */
  9127. #include <$ac_header>
  9128. _ACEOF
  9129. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9130. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9131. ac_status=$?
  9132. grep -v '^ *+' conftest.er1 >conftest.err
  9133. rm -f conftest.er1
  9134. cat conftest.err >&5
  9135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9136. (exit $ac_status); } >/dev/null; then
  9137. if test -s conftest.err; then
  9138. ac_cpp_err=$ac_c_preproc_warn_flag
  9139. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9140. else
  9141. ac_cpp_err=
  9142. fi
  9143. else
  9144. ac_cpp_err=yes
  9145. fi
  9146. if test -z "$ac_cpp_err"; then
  9147. ac_header_preproc=yes
  9148. else
  9149. echo "$as_me: failed program was:" >&5
  9150. sed 's/^/| /' conftest.$ac_ext >&5
  9151. ac_header_preproc=no
  9152. fi
  9153. rm -f conftest.err conftest.$ac_ext
  9154. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9155. echo "${ECHO_T}$ac_header_preproc" >&6
  9156. # So? What about this header?
  9157. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9158. yes:no: )
  9159. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9160. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9161. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9162. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9163. ac_header_preproc=yes
  9164. ;;
  9165. no:yes:* )
  9166. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9167. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9168. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9169. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9170. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9171. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9172. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9173. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9174. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9175. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9176. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9177. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9178. (
  9179. cat <<\_ASBOX
  9180. ## ------------------------------------------ ##
  9181. ## Report this to the AC_PACKAGE_NAME lists. ##
  9182. ## ------------------------------------------ ##
  9183. _ASBOX
  9184. ) |
  9185. sed "s/^/$as_me: WARNING: /" >&2
  9186. ;;
  9187. esac
  9188. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9189. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9190. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9191. echo $ECHO_N "(cached) $ECHO_C" >&6
  9192. else
  9193. eval "$as_ac_Header=\$ac_header_preproc"
  9194. fi
  9195. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9196. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9197. fi
  9198. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9199. cat >>confdefs.h <<_ACEOF
  9200. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9201. _ACEOF
  9202. fi
  9203. done
  9204. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  9205. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  9206. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  9207. echo $ECHO_N "(cached) $ECHO_C" >&6
  9208. else
  9209. if test "$cross_compiling" = yes; then
  9210. ac_cv_func_malloc_0_nonnull=no
  9211. else
  9212. cat >conftest.$ac_ext <<_ACEOF
  9213. /* confdefs.h. */
  9214. _ACEOF
  9215. cat confdefs.h >>conftest.$ac_ext
  9216. cat >>conftest.$ac_ext <<_ACEOF
  9217. /* end confdefs.h. */
  9218. #if STDC_HEADERS || HAVE_STDLIB_H
  9219. # include <stdlib.h>
  9220. #else
  9221. char *malloc ();
  9222. #endif
  9223. int
  9224. main ()
  9225. {
  9226. exit (malloc (0) ? 0 : 1);
  9227. ;
  9228. return 0;
  9229. }
  9230. _ACEOF
  9231. rm -f conftest$ac_exeext
  9232. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9233. (eval $ac_link) 2>&5
  9234. ac_status=$?
  9235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9236. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9237. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9238. (eval $ac_try) 2>&5
  9239. ac_status=$?
  9240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9241. (exit $ac_status); }; }; then
  9242. ac_cv_func_malloc_0_nonnull=yes
  9243. else
  9244. echo "$as_me: program exited with status $ac_status" >&5
  9245. echo "$as_me: failed program was:" >&5
  9246. sed 's/^/| /' conftest.$ac_ext >&5
  9247. ( exit $ac_status )
  9248. ac_cv_func_malloc_0_nonnull=no
  9249. fi
  9250. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9251. fi
  9252. fi
  9253. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9254. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  9255. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9256. cat >>confdefs.h <<\_ACEOF
  9257. #define HAVE_MALLOC 1
  9258. _ACEOF
  9259. else
  9260. cat >>confdefs.h <<\_ACEOF
  9261. #define HAVE_MALLOC 0
  9262. _ACEOF
  9263. case $LIBOBJS in
  9264. "malloc.$ac_objext" | \
  9265. *" malloc.$ac_objext" | \
  9266. "malloc.$ac_objext "* | \
  9267. *" malloc.$ac_objext "* ) ;;
  9268. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  9269. esac
  9270. cat >>confdefs.h <<\_ACEOF
  9271. #define malloc rpl_malloc
  9272. _ACEOF
  9273. fi
  9274. for ac_header in stdlib.h sys/time.h unistd.h
  9275. do
  9276. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9277. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9278. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9279. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9280. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9281. echo $ECHO_N "(cached) $ECHO_C" >&6
  9282. fi
  9283. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9284. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9285. else
  9286. # Is the header compilable?
  9287. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9288. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9289. cat >conftest.$ac_ext <<_ACEOF
  9290. /* confdefs.h. */
  9291. _ACEOF
  9292. cat confdefs.h >>conftest.$ac_ext
  9293. cat >>conftest.$ac_ext <<_ACEOF
  9294. /* end confdefs.h. */
  9295. $ac_includes_default
  9296. #include <$ac_header>
  9297. _ACEOF
  9298. rm -f conftest.$ac_objext
  9299. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9300. (eval $ac_compile) 2>conftest.er1
  9301. ac_status=$?
  9302. grep -v '^ *+' conftest.er1 >conftest.err
  9303. rm -f conftest.er1
  9304. cat conftest.err >&5
  9305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9306. (exit $ac_status); } &&
  9307. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9308. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9309. (eval $ac_try) 2>&5
  9310. ac_status=$?
  9311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9312. (exit $ac_status); }; } &&
  9313. { ac_try='test -s conftest.$ac_objext'
  9314. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9315. (eval $ac_try) 2>&5
  9316. ac_status=$?
  9317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9318. (exit $ac_status); }; }; then
  9319. ac_header_compiler=yes
  9320. else
  9321. echo "$as_me: failed program was:" >&5
  9322. sed 's/^/| /' conftest.$ac_ext >&5
  9323. ac_header_compiler=no
  9324. fi
  9325. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9326. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9327. echo "${ECHO_T}$ac_header_compiler" >&6
  9328. # Is the header present?
  9329. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9330. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9331. cat >conftest.$ac_ext <<_ACEOF
  9332. /* confdefs.h. */
  9333. _ACEOF
  9334. cat confdefs.h >>conftest.$ac_ext
  9335. cat >>conftest.$ac_ext <<_ACEOF
  9336. /* end confdefs.h. */
  9337. #include <$ac_header>
  9338. _ACEOF
  9339. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9340. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9341. ac_status=$?
  9342. grep -v '^ *+' conftest.er1 >conftest.err
  9343. rm -f conftest.er1
  9344. cat conftest.err >&5
  9345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9346. (exit $ac_status); } >/dev/null; then
  9347. if test -s conftest.err; then
  9348. ac_cpp_err=$ac_c_preproc_warn_flag
  9349. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9350. else
  9351. ac_cpp_err=
  9352. fi
  9353. else
  9354. ac_cpp_err=yes
  9355. fi
  9356. if test -z "$ac_cpp_err"; then
  9357. ac_header_preproc=yes
  9358. else
  9359. echo "$as_me: failed program was:" >&5
  9360. sed 's/^/| /' conftest.$ac_ext >&5
  9361. ac_header_preproc=no
  9362. fi
  9363. rm -f conftest.err conftest.$ac_ext
  9364. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9365. echo "${ECHO_T}$ac_header_preproc" >&6
  9366. # So? What about this header?
  9367. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9368. yes:no: )
  9369. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9370. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9371. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9372. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9373. ac_header_preproc=yes
  9374. ;;
  9375. no:yes:* )
  9376. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9377. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9378. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9379. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9380. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9381. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9382. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9383. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9384. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9385. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9386. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9387. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9388. (
  9389. cat <<\_ASBOX
  9390. ## ------------------------------------------ ##
  9391. ## Report this to the AC_PACKAGE_NAME lists. ##
  9392. ## ------------------------------------------ ##
  9393. _ASBOX
  9394. ) |
  9395. sed "s/^/$as_me: WARNING: /" >&2
  9396. ;;
  9397. esac
  9398. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9399. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9400. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9401. echo $ECHO_N "(cached) $ECHO_C" >&6
  9402. else
  9403. eval "$as_ac_Header=\$ac_header_preproc"
  9404. fi
  9405. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9406. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9407. fi
  9408. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9409. cat >>confdefs.h <<_ACEOF
  9410. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9411. _ACEOF
  9412. fi
  9413. done
  9414. for ac_func in alarm
  9415. do
  9416. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9417. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9418. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9419. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9420. echo $ECHO_N "(cached) $ECHO_C" >&6
  9421. else
  9422. cat >conftest.$ac_ext <<_ACEOF
  9423. /* confdefs.h. */
  9424. _ACEOF
  9425. cat confdefs.h >>conftest.$ac_ext
  9426. cat >>conftest.$ac_ext <<_ACEOF
  9427. /* end confdefs.h. */
  9428. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9429. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9430. #define $ac_func innocuous_$ac_func
  9431. /* System header to define __stub macros and hopefully few prototypes,
  9432. which can conflict with char $ac_func (); below.
  9433. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9434. <limits.h> exists even on freestanding compilers. */
  9435. #ifdef __STDC__
  9436. # include <limits.h>
  9437. #else
  9438. # include <assert.h>
  9439. #endif
  9440. #undef $ac_func
  9441. /* Override any gcc2 internal prototype to avoid an error. */
  9442. #ifdef __cplusplus
  9443. extern "C"
  9444. {
  9445. #endif
  9446. /* We use char because int might match the return type of a gcc2
  9447. builtin and then its argument prototype would still apply. */
  9448. char $ac_func ();
  9449. /* The GNU C library defines this for functions which it implements
  9450. to always fail with ENOSYS. Some functions are actually named
  9451. something starting with __ and the normal name is an alias. */
  9452. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9453. choke me
  9454. #else
  9455. char (*f) () = $ac_func;
  9456. #endif
  9457. #ifdef __cplusplus
  9458. }
  9459. #endif
  9460. int
  9461. main ()
  9462. {
  9463. return f != $ac_func;
  9464. ;
  9465. return 0;
  9466. }
  9467. _ACEOF
  9468. rm -f conftest.$ac_objext conftest$ac_exeext
  9469. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9470. (eval $ac_link) 2>conftest.er1
  9471. ac_status=$?
  9472. grep -v '^ *+' conftest.er1 >conftest.err
  9473. rm -f conftest.er1
  9474. cat conftest.err >&5
  9475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9476. (exit $ac_status); } &&
  9477. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9478. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9479. (eval $ac_try) 2>&5
  9480. ac_status=$?
  9481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9482. (exit $ac_status); }; } &&
  9483. { ac_try='test -s conftest$ac_exeext'
  9484. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9485. (eval $ac_try) 2>&5
  9486. ac_status=$?
  9487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9488. (exit $ac_status); }; }; then
  9489. eval "$as_ac_var=yes"
  9490. else
  9491. echo "$as_me: failed program was:" >&5
  9492. sed 's/^/| /' conftest.$ac_ext >&5
  9493. eval "$as_ac_var=no"
  9494. fi
  9495. rm -f conftest.err conftest.$ac_objext \
  9496. conftest$ac_exeext conftest.$ac_ext
  9497. fi
  9498. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9499. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9500. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9501. cat >>confdefs.h <<_ACEOF
  9502. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9503. _ACEOF
  9504. fi
  9505. done
  9506. echo "$as_me:$LINENO: checking for working mktime" >&5
  9507. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  9508. if test "${ac_cv_func_working_mktime+set}" = set; then
  9509. echo $ECHO_N "(cached) $ECHO_C" >&6
  9510. else
  9511. if test "$cross_compiling" = yes; then
  9512. ac_cv_func_working_mktime=no
  9513. else
  9514. cat >conftest.$ac_ext <<_ACEOF
  9515. /* confdefs.h. */
  9516. _ACEOF
  9517. cat confdefs.h >>conftest.$ac_ext
  9518. cat >>conftest.$ac_ext <<_ACEOF
  9519. /* end confdefs.h. */
  9520. /* Test program from Paul Eggert and Tony Leneis. */
  9521. #if TIME_WITH_SYS_TIME
  9522. # include <sys/time.h>
  9523. # include <time.h>
  9524. #else
  9525. # if HAVE_SYS_TIME_H
  9526. # include <sys/time.h>
  9527. # else
  9528. # include <time.h>
  9529. # endif
  9530. #endif
  9531. #if HAVE_STDLIB_H
  9532. # include <stdlib.h>
  9533. #endif
  9534. #if HAVE_UNISTD_H
  9535. # include <unistd.h>
  9536. #endif
  9537. #if !HAVE_ALARM
  9538. # define alarm(X) /* empty */
  9539. #endif
  9540. /* Work around redefinition to rpl_putenv by other config tests. */
  9541. #undef putenv
  9542. static time_t time_t_max;
  9543. static time_t time_t_min;
  9544. /* Values we'll use to set the TZ environment variable. */
  9545. static char *tz_strings[] = {
  9546. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  9547. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  9548. };
  9549. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  9550. /* Fail if mktime fails to convert a date in the spring-forward gap.
  9551. Based on a problem report from Andreas Jaeger. */
  9552. static void
  9553. spring_forward_gap ()
  9554. {
  9555. /* glibc (up to about 1998-10-07) failed this test. */
  9556. struct tm tm;
  9557. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  9558. instead of "TZ=America/Vancouver" in order to detect the bug even
  9559. on systems that don't support the Olson extension, or don't have the
  9560. full zoneinfo tables installed. */
  9561. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  9562. tm.tm_year = 98;
  9563. tm.tm_mon = 3;
  9564. tm.tm_mday = 5;
  9565. tm.tm_hour = 2;
  9566. tm.tm_min = 0;
  9567. tm.tm_sec = 0;
  9568. tm.tm_isdst = -1;
  9569. if (mktime (&tm) == (time_t)-1)
  9570. exit (1);
  9571. }
  9572. static void
  9573. mktime_test1 (now)
  9574. time_t now;
  9575. {
  9576. struct tm *lt;
  9577. if ((lt = localtime (&now)) && mktime (lt) != now)
  9578. exit (1);
  9579. }
  9580. static void
  9581. mktime_test (now)
  9582. time_t now;
  9583. {
  9584. mktime_test1 (now);
  9585. mktime_test1 ((time_t) (time_t_max - now));
  9586. mktime_test1 ((time_t) (time_t_min + now));
  9587. }
  9588. static void
  9589. irix_6_4_bug ()
  9590. {
  9591. /* Based on code from Ariel Faigon. */
  9592. struct tm tm;
  9593. tm.tm_year = 96;
  9594. tm.tm_mon = 3;
  9595. tm.tm_mday = 0;
  9596. tm.tm_hour = 0;
  9597. tm.tm_min = 0;
  9598. tm.tm_sec = 0;
  9599. tm.tm_isdst = -1;
  9600. mktime (&tm);
  9601. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  9602. exit (1);
  9603. }
  9604. static void
  9605. bigtime_test (j)
  9606. int j;
  9607. {
  9608. struct tm tm;
  9609. time_t now;
  9610. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  9611. now = mktime (&tm);
  9612. if (now != (time_t) -1)
  9613. {
  9614. struct tm *lt = localtime (&now);
  9615. if (! (lt
  9616. && lt->tm_year == tm.tm_year
  9617. && lt->tm_mon == tm.tm_mon
  9618. && lt->tm_mday == tm.tm_mday
  9619. && lt->tm_hour == tm.tm_hour
  9620. && lt->tm_min == tm.tm_min
  9621. && lt->tm_sec == tm.tm_sec
  9622. && lt->tm_yday == tm.tm_yday
  9623. && lt->tm_wday == tm.tm_wday
  9624. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  9625. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  9626. exit (1);
  9627. }
  9628. }
  9629. int
  9630. main ()
  9631. {
  9632. time_t t, delta;
  9633. int i, j;
  9634. /* This test makes some buggy mktime implementations loop.
  9635. Give up after 60 seconds; a mktime slower than that
  9636. isn't worth using anyway. */
  9637. alarm (60);
  9638. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  9639. continue;
  9640. time_t_max--;
  9641. if ((time_t) -1 < 0)
  9642. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  9643. continue;
  9644. delta = time_t_max / 997; /* a suitable prime number */
  9645. for (i = 0; i < N_STRINGS; i++)
  9646. {
  9647. if (tz_strings[i])
  9648. putenv (tz_strings[i]);
  9649. for (t = 0; t <= time_t_max - delta; t += delta)
  9650. mktime_test (t);
  9651. mktime_test ((time_t) 1);
  9652. mktime_test ((time_t) (60 * 60));
  9653. mktime_test ((time_t) (60 * 60 * 24));
  9654. for (j = 1; 0 < j; j *= 2)
  9655. bigtime_test (j);
  9656. bigtime_test (j - 1);
  9657. }
  9658. irix_6_4_bug ();
  9659. spring_forward_gap ();
  9660. exit (0);
  9661. }
  9662. _ACEOF
  9663. rm -f conftest$ac_exeext
  9664. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9665. (eval $ac_link) 2>&5
  9666. ac_status=$?
  9667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9668. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9669. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9670. (eval $ac_try) 2>&5
  9671. ac_status=$?
  9672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9673. (exit $ac_status); }; }; then
  9674. ac_cv_func_working_mktime=yes
  9675. else
  9676. echo "$as_me: program exited with status $ac_status" >&5
  9677. echo "$as_me: failed program was:" >&5
  9678. sed 's/^/| /' conftest.$ac_ext >&5
  9679. ( exit $ac_status )
  9680. ac_cv_func_working_mktime=no
  9681. fi
  9682. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9683. fi
  9684. fi
  9685. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  9686. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  9687. if test $ac_cv_func_working_mktime = no; then
  9688. case $LIBOBJS in
  9689. "mktime.$ac_objext" | \
  9690. *" mktime.$ac_objext" | \
  9691. "mktime.$ac_objext "* | \
  9692. *" mktime.$ac_objext "* ) ;;
  9693. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  9694. esac
  9695. fi
  9696. for ac_header in stdlib.h unistd.h
  9697. do
  9698. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9699. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9700. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9701. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9702. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9703. echo $ECHO_N "(cached) $ECHO_C" >&6
  9704. fi
  9705. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9706. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9707. else
  9708. # Is the header compilable?
  9709. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9710. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9711. cat >conftest.$ac_ext <<_ACEOF
  9712. /* confdefs.h. */
  9713. _ACEOF
  9714. cat confdefs.h >>conftest.$ac_ext
  9715. cat >>conftest.$ac_ext <<_ACEOF
  9716. /* end confdefs.h. */
  9717. $ac_includes_default
  9718. #include <$ac_header>
  9719. _ACEOF
  9720. rm -f conftest.$ac_objext
  9721. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9722. (eval $ac_compile) 2>conftest.er1
  9723. ac_status=$?
  9724. grep -v '^ *+' conftest.er1 >conftest.err
  9725. rm -f conftest.er1
  9726. cat conftest.err >&5
  9727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9728. (exit $ac_status); } &&
  9729. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9730. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9731. (eval $ac_try) 2>&5
  9732. ac_status=$?
  9733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9734. (exit $ac_status); }; } &&
  9735. { ac_try='test -s conftest.$ac_objext'
  9736. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9737. (eval $ac_try) 2>&5
  9738. ac_status=$?
  9739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9740. (exit $ac_status); }; }; then
  9741. ac_header_compiler=yes
  9742. else
  9743. echo "$as_me: failed program was:" >&5
  9744. sed 's/^/| /' conftest.$ac_ext >&5
  9745. ac_header_compiler=no
  9746. fi
  9747. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9748. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9749. echo "${ECHO_T}$ac_header_compiler" >&6
  9750. # Is the header present?
  9751. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9752. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9753. cat >conftest.$ac_ext <<_ACEOF
  9754. /* confdefs.h. */
  9755. _ACEOF
  9756. cat confdefs.h >>conftest.$ac_ext
  9757. cat >>conftest.$ac_ext <<_ACEOF
  9758. /* end confdefs.h. */
  9759. #include <$ac_header>
  9760. _ACEOF
  9761. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9762. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9763. ac_status=$?
  9764. grep -v '^ *+' conftest.er1 >conftest.err
  9765. rm -f conftest.er1
  9766. cat conftest.err >&5
  9767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9768. (exit $ac_status); } >/dev/null; then
  9769. if test -s conftest.err; then
  9770. ac_cpp_err=$ac_c_preproc_warn_flag
  9771. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9772. else
  9773. ac_cpp_err=
  9774. fi
  9775. else
  9776. ac_cpp_err=yes
  9777. fi
  9778. if test -z "$ac_cpp_err"; then
  9779. ac_header_preproc=yes
  9780. else
  9781. echo "$as_me: failed program was:" >&5
  9782. sed 's/^/| /' conftest.$ac_ext >&5
  9783. ac_header_preproc=no
  9784. fi
  9785. rm -f conftest.err conftest.$ac_ext
  9786. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9787. echo "${ECHO_T}$ac_header_preproc" >&6
  9788. # So? What about this header?
  9789. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9790. yes:no: )
  9791. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9792. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9793. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9794. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9795. ac_header_preproc=yes
  9796. ;;
  9797. no:yes:* )
  9798. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9799. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9800. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9801. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9802. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9803. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9804. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9805. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9806. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9807. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9808. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9809. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9810. (
  9811. cat <<\_ASBOX
  9812. ## ------------------------------------------ ##
  9813. ## Report this to the AC_PACKAGE_NAME lists. ##
  9814. ## ------------------------------------------ ##
  9815. _ASBOX
  9816. ) |
  9817. sed "s/^/$as_me: WARNING: /" >&2
  9818. ;;
  9819. esac
  9820. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9821. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9822. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9823. echo $ECHO_N "(cached) $ECHO_C" >&6
  9824. else
  9825. eval "$as_ac_Header=\$ac_header_preproc"
  9826. fi
  9827. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9828. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9829. fi
  9830. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9831. cat >>confdefs.h <<_ACEOF
  9832. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9833. _ACEOF
  9834. fi
  9835. done
  9836. for ac_func in getpagesize
  9837. do
  9838. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9839. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9840. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9841. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9842. echo $ECHO_N "(cached) $ECHO_C" >&6
  9843. else
  9844. cat >conftest.$ac_ext <<_ACEOF
  9845. /* confdefs.h. */
  9846. _ACEOF
  9847. cat confdefs.h >>conftest.$ac_ext
  9848. cat >>conftest.$ac_ext <<_ACEOF
  9849. /* end confdefs.h. */
  9850. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9851. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9852. #define $ac_func innocuous_$ac_func
  9853. /* System header to define __stub macros and hopefully few prototypes,
  9854. which can conflict with char $ac_func (); below.
  9855. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9856. <limits.h> exists even on freestanding compilers. */
  9857. #ifdef __STDC__
  9858. # include <limits.h>
  9859. #else
  9860. # include <assert.h>
  9861. #endif
  9862. #undef $ac_func
  9863. /* Override any gcc2 internal prototype to avoid an error. */
  9864. #ifdef __cplusplus
  9865. extern "C"
  9866. {
  9867. #endif
  9868. /* We use char because int might match the return type of a gcc2
  9869. builtin and then its argument prototype would still apply. */
  9870. char $ac_func ();
  9871. /* The GNU C library defines this for functions which it implements
  9872. to always fail with ENOSYS. Some functions are actually named
  9873. something starting with __ and the normal name is an alias. */
  9874. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9875. choke me
  9876. #else
  9877. char (*f) () = $ac_func;
  9878. #endif
  9879. #ifdef __cplusplus
  9880. }
  9881. #endif
  9882. int
  9883. main ()
  9884. {
  9885. return f != $ac_func;
  9886. ;
  9887. return 0;
  9888. }
  9889. _ACEOF
  9890. rm -f conftest.$ac_objext conftest$ac_exeext
  9891. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9892. (eval $ac_link) 2>conftest.er1
  9893. ac_status=$?
  9894. grep -v '^ *+' conftest.er1 >conftest.err
  9895. rm -f conftest.er1
  9896. cat conftest.err >&5
  9897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9898. (exit $ac_status); } &&
  9899. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9900. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9901. (eval $ac_try) 2>&5
  9902. ac_status=$?
  9903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9904. (exit $ac_status); }; } &&
  9905. { ac_try='test -s conftest$ac_exeext'
  9906. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9907. (eval $ac_try) 2>&5
  9908. ac_status=$?
  9909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9910. (exit $ac_status); }; }; then
  9911. eval "$as_ac_var=yes"
  9912. else
  9913. echo "$as_me: failed program was:" >&5
  9914. sed 's/^/| /' conftest.$ac_ext >&5
  9915. eval "$as_ac_var=no"
  9916. fi
  9917. rm -f conftest.err conftest.$ac_objext \
  9918. conftest$ac_exeext conftest.$ac_ext
  9919. fi
  9920. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9921. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9922. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9923. cat >>confdefs.h <<_ACEOF
  9924. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9925. _ACEOF
  9926. fi
  9927. done
  9928. echo "$as_me:$LINENO: checking for working mmap" >&5
  9929. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9930. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9931. echo $ECHO_N "(cached) $ECHO_C" >&6
  9932. else
  9933. if test "$cross_compiling" = yes; then
  9934. ac_cv_func_mmap_fixed_mapped=no
  9935. else
  9936. cat >conftest.$ac_ext <<_ACEOF
  9937. /* confdefs.h. */
  9938. _ACEOF
  9939. cat confdefs.h >>conftest.$ac_ext
  9940. cat >>conftest.$ac_ext <<_ACEOF
  9941. /* end confdefs.h. */
  9942. $ac_includes_default
  9943. /* malloc might have been renamed as rpl_malloc. */
  9944. #undef malloc
  9945. /* Thanks to Mike Haertel and Jim Avera for this test.
  9946. Here is a matrix of mmap possibilities:
  9947. mmap private not fixed
  9948. mmap private fixed at somewhere currently unmapped
  9949. mmap private fixed at somewhere already mapped
  9950. mmap shared not fixed
  9951. mmap shared fixed at somewhere currently unmapped
  9952. mmap shared fixed at somewhere already mapped
  9953. For private mappings, we should verify that changes cannot be read()
  9954. back from the file, nor mmap's back from the file at a different
  9955. address. (There have been systems where private was not correctly
  9956. implemented like the infamous i386 svr4.0, and systems where the
  9957. VM page cache was not coherent with the file system buffer cache
  9958. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9959. For shared mappings, we should conversely verify that changes get
  9960. propagated back to all the places they're supposed to be.
  9961. Grep wants private fixed already mapped.
  9962. The main things grep needs to know about mmap are:
  9963. * does it exist and is it safe to write into the mmap'd area
  9964. * how to use it (BSD variants) */
  9965. #include <fcntl.h>
  9966. #include <sys/mman.h>
  9967. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9968. char *malloc ();
  9969. #endif
  9970. /* This mess was copied from the GNU getpagesize.h. */
  9971. #if !HAVE_GETPAGESIZE
  9972. /* Assume that all systems that can run configure have sys/param.h. */
  9973. # if !HAVE_SYS_PARAM_H
  9974. # define HAVE_SYS_PARAM_H 1
  9975. # endif
  9976. # ifdef _SC_PAGESIZE
  9977. # define getpagesize() sysconf(_SC_PAGESIZE)
  9978. # else /* no _SC_PAGESIZE */
  9979. # if HAVE_SYS_PARAM_H
  9980. # include <sys/param.h>
  9981. # ifdef EXEC_PAGESIZE
  9982. # define getpagesize() EXEC_PAGESIZE
  9983. # else /* no EXEC_PAGESIZE */
  9984. # ifdef NBPG
  9985. # define getpagesize() NBPG * CLSIZE
  9986. # ifndef CLSIZE
  9987. # define CLSIZE 1
  9988. # endif /* no CLSIZE */
  9989. # else /* no NBPG */
  9990. # ifdef NBPC
  9991. # define getpagesize() NBPC
  9992. # else /* no NBPC */
  9993. # ifdef PAGESIZE
  9994. # define getpagesize() PAGESIZE
  9995. # endif /* PAGESIZE */
  9996. # endif /* no NBPC */
  9997. # endif /* no NBPG */
  9998. # endif /* no EXEC_PAGESIZE */
  9999. # else /* no HAVE_SYS_PARAM_H */
  10000. # define getpagesize() 8192 /* punt totally */
  10001. # endif /* no HAVE_SYS_PARAM_H */
  10002. # endif /* no _SC_PAGESIZE */
  10003. #endif /* no HAVE_GETPAGESIZE */
  10004. int
  10005. main ()
  10006. {
  10007. char *data, *data2, *data3;
  10008. int i, pagesize;
  10009. int fd;
  10010. pagesize = getpagesize ();
  10011. /* First, make a file with some known garbage in it. */
  10012. data = (char *) malloc (pagesize);
  10013. if (!data)
  10014. exit (1);
  10015. for (i = 0; i < pagesize; ++i)
  10016. *(data + i) = rand ();
  10017. umask (0);
  10018. fd = creat ("conftest.mmap", 0600);
  10019. if (fd < 0)
  10020. exit (1);
  10021. if (write (fd, data, pagesize) != pagesize)
  10022. exit (1);
  10023. close (fd);
  10024. /* Next, try to mmap the file at a fixed address which already has
  10025. something else allocated at it. If we can, also make sure that
  10026. we see the same garbage. */
  10027. fd = open ("conftest.mmap", O_RDWR);
  10028. if (fd < 0)
  10029. exit (1);
  10030. data2 = (char *) malloc (2 * pagesize);
  10031. if (!data2)
  10032. exit (1);
  10033. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  10034. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10035. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10036. exit (1);
  10037. for (i = 0; i < pagesize; ++i)
  10038. if (*(data + i) != *(data2 + i))
  10039. exit (1);
  10040. /* Finally, make sure that changes to the mapped area do not
  10041. percolate back to the file as seen by read(). (This is a bug on
  10042. some variants of i386 svr4.0.) */
  10043. for (i = 0; i < pagesize; ++i)
  10044. *(data2 + i) = *(data2 + i) + 1;
  10045. data3 = (char *) malloc (pagesize);
  10046. if (!data3)
  10047. exit (1);
  10048. if (read (fd, data3, pagesize) != pagesize)
  10049. exit (1);
  10050. for (i = 0; i < pagesize; ++i)
  10051. if (*(data + i) != *(data3 + i))
  10052. exit (1);
  10053. close (fd);
  10054. exit (0);
  10055. }
  10056. _ACEOF
  10057. rm -f conftest$ac_exeext
  10058. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10059. (eval $ac_link) 2>&5
  10060. ac_status=$?
  10061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10062. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10063. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10064. (eval $ac_try) 2>&5
  10065. ac_status=$?
  10066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10067. (exit $ac_status); }; }; then
  10068. ac_cv_func_mmap_fixed_mapped=yes
  10069. else
  10070. echo "$as_me: program exited with status $ac_status" >&5
  10071. echo "$as_me: failed program was:" >&5
  10072. sed 's/^/| /' conftest.$ac_ext >&5
  10073. ( exit $ac_status )
  10074. ac_cv_func_mmap_fixed_mapped=no
  10075. fi
  10076. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10077. fi
  10078. fi
  10079. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10080. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  10081. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10082. cat >>confdefs.h <<\_ACEOF
  10083. #define HAVE_MMAP 1
  10084. _ACEOF
  10085. fi
  10086. rm -f conftest.mmap
  10087. for ac_header in stdlib.h
  10088. do
  10089. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10090. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10091. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10092. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10093. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10094. echo $ECHO_N "(cached) $ECHO_C" >&6
  10095. fi
  10096. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10097. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10098. else
  10099. # Is the header compilable?
  10100. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10101. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  10102. cat >conftest.$ac_ext <<_ACEOF
  10103. /* confdefs.h. */
  10104. _ACEOF
  10105. cat confdefs.h >>conftest.$ac_ext
  10106. cat >>conftest.$ac_ext <<_ACEOF
  10107. /* end confdefs.h. */
  10108. $ac_includes_default
  10109. #include <$ac_header>
  10110. _ACEOF
  10111. rm -f conftest.$ac_objext
  10112. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10113. (eval $ac_compile) 2>conftest.er1
  10114. ac_status=$?
  10115. grep -v '^ *+' conftest.er1 >conftest.err
  10116. rm -f conftest.er1
  10117. cat conftest.err >&5
  10118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10119. (exit $ac_status); } &&
  10120. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10121. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10122. (eval $ac_try) 2>&5
  10123. ac_status=$?
  10124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10125. (exit $ac_status); }; } &&
  10126. { ac_try='test -s conftest.$ac_objext'
  10127. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10128. (eval $ac_try) 2>&5
  10129. ac_status=$?
  10130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10131. (exit $ac_status); }; }; then
  10132. ac_header_compiler=yes
  10133. else
  10134. echo "$as_me: failed program was:" >&5
  10135. sed 's/^/| /' conftest.$ac_ext >&5
  10136. ac_header_compiler=no
  10137. fi
  10138. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10139. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10140. echo "${ECHO_T}$ac_header_compiler" >&6
  10141. # Is the header present?
  10142. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10143. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  10144. cat >conftest.$ac_ext <<_ACEOF
  10145. /* confdefs.h. */
  10146. _ACEOF
  10147. cat confdefs.h >>conftest.$ac_ext
  10148. cat >>conftest.$ac_ext <<_ACEOF
  10149. /* end confdefs.h. */
  10150. #include <$ac_header>
  10151. _ACEOF
  10152. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  10153. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10154. ac_status=$?
  10155. grep -v '^ *+' conftest.er1 >conftest.err
  10156. rm -f conftest.er1
  10157. cat conftest.err >&5
  10158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10159. (exit $ac_status); } >/dev/null; then
  10160. if test -s conftest.err; then
  10161. ac_cpp_err=$ac_c_preproc_warn_flag
  10162. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10163. else
  10164. ac_cpp_err=
  10165. fi
  10166. else
  10167. ac_cpp_err=yes
  10168. fi
  10169. if test -z "$ac_cpp_err"; then
  10170. ac_header_preproc=yes
  10171. else
  10172. echo "$as_me: failed program was:" >&5
  10173. sed 's/^/| /' conftest.$ac_ext >&5
  10174. ac_header_preproc=no
  10175. fi
  10176. rm -f conftest.err conftest.$ac_ext
  10177. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10178. echo "${ECHO_T}$ac_header_preproc" >&6
  10179. # So? What about this header?
  10180. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10181. yes:no: )
  10182. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10183. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10184. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10185. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10186. ac_header_preproc=yes
  10187. ;;
  10188. no:yes:* )
  10189. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10190. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10191. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10192. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10193. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10194. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10195. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10196. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10197. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10198. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10199. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10200. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10201. (
  10202. cat <<\_ASBOX
  10203. ## ------------------------------------------ ##
  10204. ## Report this to the AC_PACKAGE_NAME lists. ##
  10205. ## ------------------------------------------ ##
  10206. _ASBOX
  10207. ) |
  10208. sed "s/^/$as_me: WARNING: /" >&2
  10209. ;;
  10210. esac
  10211. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10212. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10213. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10214. echo $ECHO_N "(cached) $ECHO_C" >&6
  10215. else
  10216. eval "$as_ac_Header=\$ac_header_preproc"
  10217. fi
  10218. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10219. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10220. fi
  10221. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10222. cat >>confdefs.h <<_ACEOF
  10223. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10224. _ACEOF
  10225. fi
  10226. done
  10227. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  10228. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  10229. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  10230. echo $ECHO_N "(cached) $ECHO_C" >&6
  10231. else
  10232. if test "$cross_compiling" = yes; then
  10233. ac_cv_func_realloc_0_nonnull=no
  10234. else
  10235. cat >conftest.$ac_ext <<_ACEOF
  10236. /* confdefs.h. */
  10237. _ACEOF
  10238. cat confdefs.h >>conftest.$ac_ext
  10239. cat >>conftest.$ac_ext <<_ACEOF
  10240. /* end confdefs.h. */
  10241. #if STDC_HEADERS || HAVE_STDLIB_H
  10242. # include <stdlib.h>
  10243. #else
  10244. char *realloc ();
  10245. #endif
  10246. int
  10247. main ()
  10248. {
  10249. exit (realloc (0, 0) ? 0 : 1);
  10250. ;
  10251. return 0;
  10252. }
  10253. _ACEOF
  10254. rm -f conftest$ac_exeext
  10255. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10256. (eval $ac_link) 2>&5
  10257. ac_status=$?
  10258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10259. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10260. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10261. (eval $ac_try) 2>&5
  10262. ac_status=$?
  10263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10264. (exit $ac_status); }; }; then
  10265. ac_cv_func_realloc_0_nonnull=yes
  10266. else
  10267. echo "$as_me: program exited with status $ac_status" >&5
  10268. echo "$as_me: failed program was:" >&5
  10269. sed 's/^/| /' conftest.$ac_ext >&5
  10270. ( exit $ac_status )
  10271. ac_cv_func_realloc_0_nonnull=no
  10272. fi
  10273. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10274. fi
  10275. fi
  10276. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  10277. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  10278. if test $ac_cv_func_realloc_0_nonnull = yes; then
  10279. cat >>confdefs.h <<\_ACEOF
  10280. #define HAVE_REALLOC 1
  10281. _ACEOF
  10282. else
  10283. cat >>confdefs.h <<\_ACEOF
  10284. #define HAVE_REALLOC 0
  10285. _ACEOF
  10286. case $LIBOBJS in
  10287. "realloc.$ac_objext" | \
  10288. *" realloc.$ac_objext" | \
  10289. "realloc.$ac_objext "* | \
  10290. *" realloc.$ac_objext "* ) ;;
  10291. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  10292. esac
  10293. cat >>confdefs.h <<\_ACEOF
  10294. #define realloc rpl_realloc
  10295. _ACEOF
  10296. fi
  10297. for ac_header in sys/select.h sys/socket.h
  10298. do
  10299. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10300. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10301. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10302. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10303. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10304. echo $ECHO_N "(cached) $ECHO_C" >&6
  10305. fi
  10306. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10307. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10308. else
  10309. # Is the header compilable?
  10310. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10311. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  10312. cat >conftest.$ac_ext <<_ACEOF
  10313. /* confdefs.h. */
  10314. _ACEOF
  10315. cat confdefs.h >>conftest.$ac_ext
  10316. cat >>conftest.$ac_ext <<_ACEOF
  10317. /* end confdefs.h. */
  10318. $ac_includes_default
  10319. #include <$ac_header>
  10320. _ACEOF
  10321. rm -f conftest.$ac_objext
  10322. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10323. (eval $ac_compile) 2>conftest.er1
  10324. ac_status=$?
  10325. grep -v '^ *+' conftest.er1 >conftest.err
  10326. rm -f conftest.er1
  10327. cat conftest.err >&5
  10328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10329. (exit $ac_status); } &&
  10330. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10331. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10332. (eval $ac_try) 2>&5
  10333. ac_status=$?
  10334. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10335. (exit $ac_status); }; } &&
  10336. { ac_try='test -s conftest.$ac_objext'
  10337. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10338. (eval $ac_try) 2>&5
  10339. ac_status=$?
  10340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10341. (exit $ac_status); }; }; then
  10342. ac_header_compiler=yes
  10343. else
  10344. echo "$as_me: failed program was:" >&5
  10345. sed 's/^/| /' conftest.$ac_ext >&5
  10346. ac_header_compiler=no
  10347. fi
  10348. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10349. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10350. echo "${ECHO_T}$ac_header_compiler" >&6
  10351. # Is the header present?
  10352. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10353. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  10354. cat >conftest.$ac_ext <<_ACEOF
  10355. /* confdefs.h. */
  10356. _ACEOF
  10357. cat confdefs.h >>conftest.$ac_ext
  10358. cat >>conftest.$ac_ext <<_ACEOF
  10359. /* end confdefs.h. */
  10360. #include <$ac_header>
  10361. _ACEOF
  10362. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  10363. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10364. ac_status=$?
  10365. grep -v '^ *+' conftest.er1 >conftest.err
  10366. rm -f conftest.er1
  10367. cat conftest.err >&5
  10368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10369. (exit $ac_status); } >/dev/null; then
  10370. if test -s conftest.err; then
  10371. ac_cpp_err=$ac_c_preproc_warn_flag
  10372. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10373. else
  10374. ac_cpp_err=
  10375. fi
  10376. else
  10377. ac_cpp_err=yes
  10378. fi
  10379. if test -z "$ac_cpp_err"; then
  10380. ac_header_preproc=yes
  10381. else
  10382. echo "$as_me: failed program was:" >&5
  10383. sed 's/^/| /' conftest.$ac_ext >&5
  10384. ac_header_preproc=no
  10385. fi
  10386. rm -f conftest.err conftest.$ac_ext
  10387. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10388. echo "${ECHO_T}$ac_header_preproc" >&6
  10389. # So? What about this header?
  10390. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10391. yes:no: )
  10392. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10393. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10394. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10395. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10396. ac_header_preproc=yes
  10397. ;;
  10398. no:yes:* )
  10399. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10400. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10401. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10402. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10403. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10404. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10405. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10406. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10407. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10408. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10409. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10410. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10411. (
  10412. cat <<\_ASBOX
  10413. ## ------------------------------------------ ##
  10414. ## Report this to the AC_PACKAGE_NAME lists. ##
  10415. ## ------------------------------------------ ##
  10416. _ASBOX
  10417. ) |
  10418. sed "s/^/$as_me: WARNING: /" >&2
  10419. ;;
  10420. esac
  10421. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10422. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10423. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10424. echo $ECHO_N "(cached) $ECHO_C" >&6
  10425. else
  10426. eval "$as_ac_Header=\$ac_header_preproc"
  10427. fi
  10428. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10429. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10430. fi
  10431. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10432. cat >>confdefs.h <<_ACEOF
  10433. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10434. _ACEOF
  10435. fi
  10436. done
  10437. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  10438. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  10439. if test "${ac_cv_func_select_args+set}" = set; then
  10440. echo $ECHO_N "(cached) $ECHO_C" >&6
  10441. else
  10442. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  10443. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  10444. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  10445. cat >conftest.$ac_ext <<_ACEOF
  10446. /* confdefs.h. */
  10447. _ACEOF
  10448. cat confdefs.h >>conftest.$ac_ext
  10449. cat >>conftest.$ac_ext <<_ACEOF
  10450. /* end confdefs.h. */
  10451. $ac_includes_default
  10452. #if HAVE_SYS_SELECT_H
  10453. # include <sys/select.h>
  10454. #endif
  10455. #if HAVE_SYS_SOCKET_H
  10456. # include <sys/socket.h>
  10457. #endif
  10458. int
  10459. main ()
  10460. {
  10461. extern int select ($ac_arg1,
  10462. $ac_arg234, $ac_arg234, $ac_arg234,
  10463. $ac_arg5);
  10464. ;
  10465. return 0;
  10466. }
  10467. _ACEOF
  10468. rm -f conftest.$ac_objext
  10469. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10470. (eval $ac_compile) 2>conftest.er1
  10471. ac_status=$?
  10472. grep -v '^ *+' conftest.er1 >conftest.err
  10473. rm -f conftest.er1
  10474. cat conftest.err >&5
  10475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10476. (exit $ac_status); } &&
  10477. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10478. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10479. (eval $ac_try) 2>&5
  10480. ac_status=$?
  10481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10482. (exit $ac_status); }; } &&
  10483. { ac_try='test -s conftest.$ac_objext'
  10484. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10485. (eval $ac_try) 2>&5
  10486. ac_status=$?
  10487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10488. (exit $ac_status); }; }; then
  10489. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  10490. else
  10491. echo "$as_me: failed program was:" >&5
  10492. sed 's/^/| /' conftest.$ac_ext >&5
  10493. fi
  10494. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10495. done
  10496. done
  10497. done
  10498. # Provide a safe default value.
  10499. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  10500. fi
  10501. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  10502. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  10503. ac_save_IFS=$IFS; IFS=','
  10504. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  10505. IFS=$ac_save_IFS
  10506. shift
  10507. cat >>confdefs.h <<_ACEOF
  10508. #define SELECT_TYPE_ARG1 $1
  10509. _ACEOF
  10510. cat >>confdefs.h <<_ACEOF
  10511. #define SELECT_TYPE_ARG234 ($2)
  10512. _ACEOF
  10513. cat >>confdefs.h <<_ACEOF
  10514. #define SELECT_TYPE_ARG5 ($3)
  10515. _ACEOF
  10516. rm -f conftest*
  10517. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  10518. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  10519. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  10520. echo $ECHO_N "(cached) $ECHO_C" >&6
  10521. else
  10522. if test "$cross_compiling" = yes; then
  10523. ac_cv_func_stat_empty_string_bug=yes
  10524. else
  10525. cat >conftest.$ac_ext <<_ACEOF
  10526. /* confdefs.h. */
  10527. _ACEOF
  10528. cat confdefs.h >>conftest.$ac_ext
  10529. cat >>conftest.$ac_ext <<_ACEOF
  10530. /* end confdefs.h. */
  10531. $ac_includes_default
  10532. int
  10533. main ()
  10534. {
  10535. struct stat sbuf;
  10536. exit (stat ("", &sbuf) ? 1 : 0);
  10537. ;
  10538. return 0;
  10539. }
  10540. _ACEOF
  10541. rm -f conftest$ac_exeext
  10542. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10543. (eval $ac_link) 2>&5
  10544. ac_status=$?
  10545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10546. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10547. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10548. (eval $ac_try) 2>&5
  10549. ac_status=$?
  10550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10551. (exit $ac_status); }; }; then
  10552. ac_cv_func_stat_empty_string_bug=yes
  10553. else
  10554. echo "$as_me: program exited with status $ac_status" >&5
  10555. echo "$as_me: failed program was:" >&5
  10556. sed 's/^/| /' conftest.$ac_ext >&5
  10557. ( exit $ac_status )
  10558. ac_cv_func_stat_empty_string_bug=no
  10559. fi
  10560. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10561. fi
  10562. fi
  10563. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  10564. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  10565. if test $ac_cv_func_stat_empty_string_bug = yes; then
  10566. case $LIBOBJS in
  10567. "stat.$ac_objext" | \
  10568. *" stat.$ac_objext" | \
  10569. "stat.$ac_objext "* | \
  10570. *" stat.$ac_objext "* ) ;;
  10571. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  10572. esac
  10573. cat >>confdefs.h <<_ACEOF
  10574. #define HAVE_STAT_EMPTY_STRING_BUG 1
  10575. _ACEOF
  10576. fi
  10577. for ac_func in strftime
  10578. do
  10579. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10580. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10581. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10582. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10583. echo $ECHO_N "(cached) $ECHO_C" >&6
  10584. else
  10585. cat >conftest.$ac_ext <<_ACEOF
  10586. /* confdefs.h. */
  10587. _ACEOF
  10588. cat confdefs.h >>conftest.$ac_ext
  10589. cat >>conftest.$ac_ext <<_ACEOF
  10590. /* end confdefs.h. */
  10591. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10592. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10593. #define $ac_func innocuous_$ac_func
  10594. /* System header to define __stub macros and hopefully few prototypes,
  10595. which can conflict with char $ac_func (); below.
  10596. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10597. <limits.h> exists even on freestanding compilers. */
  10598. #ifdef __STDC__
  10599. # include <limits.h>
  10600. #else
  10601. # include <assert.h>
  10602. #endif
  10603. #undef $ac_func
  10604. /* Override any gcc2 internal prototype to avoid an error. */
  10605. #ifdef __cplusplus
  10606. extern "C"
  10607. {
  10608. #endif
  10609. /* We use char because int might match the return type of a gcc2
  10610. builtin and then its argument prototype would still apply. */
  10611. char $ac_func ();
  10612. /* The GNU C library defines this for functions which it implements
  10613. to always fail with ENOSYS. Some functions are actually named
  10614. something starting with __ and the normal name is an alias. */
  10615. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10616. choke me
  10617. #else
  10618. char (*f) () = $ac_func;
  10619. #endif
  10620. #ifdef __cplusplus
  10621. }
  10622. #endif
  10623. int
  10624. main ()
  10625. {
  10626. return f != $ac_func;
  10627. ;
  10628. return 0;
  10629. }
  10630. _ACEOF
  10631. rm -f conftest.$ac_objext conftest$ac_exeext
  10632. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10633. (eval $ac_link) 2>conftest.er1
  10634. ac_status=$?
  10635. grep -v '^ *+' conftest.er1 >conftest.err
  10636. rm -f conftest.er1
  10637. cat conftest.err >&5
  10638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10639. (exit $ac_status); } &&
  10640. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10641. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10642. (eval $ac_try) 2>&5
  10643. ac_status=$?
  10644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10645. (exit $ac_status); }; } &&
  10646. { ac_try='test -s conftest$ac_exeext'
  10647. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10648. (eval $ac_try) 2>&5
  10649. ac_status=$?
  10650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10651. (exit $ac_status); }; }; then
  10652. eval "$as_ac_var=yes"
  10653. else
  10654. echo "$as_me: failed program was:" >&5
  10655. sed 's/^/| /' conftest.$ac_ext >&5
  10656. eval "$as_ac_var=no"
  10657. fi
  10658. rm -f conftest.err conftest.$ac_objext \
  10659. conftest$ac_exeext conftest.$ac_ext
  10660. fi
  10661. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10662. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10663. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10664. cat >>confdefs.h <<_ACEOF
  10665. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10666. _ACEOF
  10667. else
  10668. # strftime is in -lintl on SCO UNIX.
  10669. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  10670. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  10671. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  10672. echo $ECHO_N "(cached) $ECHO_C" >&6
  10673. else
  10674. ac_check_lib_save_LIBS=$LIBS
  10675. LIBS="-lintl $LIBS"
  10676. cat >conftest.$ac_ext <<_ACEOF
  10677. /* confdefs.h. */
  10678. _ACEOF
  10679. cat confdefs.h >>conftest.$ac_ext
  10680. cat >>conftest.$ac_ext <<_ACEOF
  10681. /* end confdefs.h. */
  10682. /* Override any gcc2 internal prototype to avoid an error. */
  10683. #ifdef __cplusplus
  10684. extern "C"
  10685. #endif
  10686. /* We use char because int might match the return type of a gcc2
  10687. builtin and then its argument prototype would still apply. */
  10688. char strftime ();
  10689. int
  10690. main ()
  10691. {
  10692. strftime ();
  10693. ;
  10694. return 0;
  10695. }
  10696. _ACEOF
  10697. rm -f conftest.$ac_objext conftest$ac_exeext
  10698. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10699. (eval $ac_link) 2>conftest.er1
  10700. ac_status=$?
  10701. grep -v '^ *+' conftest.er1 >conftest.err
  10702. rm -f conftest.er1
  10703. cat conftest.err >&5
  10704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10705. (exit $ac_status); } &&
  10706. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10707. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10708. (eval $ac_try) 2>&5
  10709. ac_status=$?
  10710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10711. (exit $ac_status); }; } &&
  10712. { ac_try='test -s conftest$ac_exeext'
  10713. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10714. (eval $ac_try) 2>&5
  10715. ac_status=$?
  10716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10717. (exit $ac_status); }; }; then
  10718. ac_cv_lib_intl_strftime=yes
  10719. else
  10720. echo "$as_me: failed program was:" >&5
  10721. sed 's/^/| /' conftest.$ac_ext >&5
  10722. ac_cv_lib_intl_strftime=no
  10723. fi
  10724. rm -f conftest.err conftest.$ac_objext \
  10725. conftest$ac_exeext conftest.$ac_ext
  10726. LIBS=$ac_check_lib_save_LIBS
  10727. fi
  10728. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  10729. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  10730. if test $ac_cv_lib_intl_strftime = yes; then
  10731. cat >>confdefs.h <<\_ACEOF
  10732. #define HAVE_STRFTIME 1
  10733. _ACEOF
  10734. LIBS="-lintl $LIBS"
  10735. fi
  10736. fi
  10737. done
  10738. #checkpoint
  10739. cat >confcache <<\_ACEOF
  10740. # This file is a shell script that caches the results of configure
  10741. # tests run on this system so they can be shared between configure
  10742. # scripts and configure runs, see configure's option --config-cache.
  10743. # It is not useful on other systems. If it contains results you don't
  10744. # want to keep, you may remove or edit it.
  10745. #
  10746. # config.status only pays attention to the cache file if you give it
  10747. # the --recheck option to rerun configure.
  10748. #
  10749. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10750. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10751. # following values.
  10752. _ACEOF
  10753. # The following way of writing the cache mishandles newlines in values,
  10754. # but we know of no workaround that is simple, portable, and efficient.
  10755. # So, don't put newlines in cache variables' values.
  10756. # Ultrix sh set writes to stderr and can't be redirected directly,
  10757. # and sets the high bit in the cache file unless we assign to the vars.
  10758. {
  10759. (set) 2>&1 |
  10760. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10761. *ac_space=\ *)
  10762. # `set' does not quote correctly, so add quotes (double-quote
  10763. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10764. sed -n \
  10765. "s/'/'\\\\''/g;
  10766. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10767. ;;
  10768. *)
  10769. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10770. sed -n \
  10771. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10772. ;;
  10773. esac;
  10774. } |
  10775. sed '
  10776. t clear
  10777. : clear
  10778. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10779. t end
  10780. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10781. : end' >>confcache
  10782. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10783. if test -w $cache_file; then
  10784. test "x$cache_file" != "x/dev/null"
  10785. cat confcache >$cache_file
  10786. else
  10787. echo "not updating unwritable cache $cache_file"
  10788. fi
  10789. fi
  10790. rm -f confcache
  10791. for ac_func in clock dprintf fsync getdtablesize getrusage inet_aton isascii gethostbyname2
  10792. do
  10793. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10794. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10795. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10796. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10797. echo $ECHO_N "(cached) $ECHO_C" >&6
  10798. else
  10799. cat >conftest.$ac_ext <<_ACEOF
  10800. /* confdefs.h. */
  10801. _ACEOF
  10802. cat confdefs.h >>conftest.$ac_ext
  10803. cat >>conftest.$ac_ext <<_ACEOF
  10804. /* end confdefs.h. */
  10805. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10806. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10807. #define $ac_func innocuous_$ac_func
  10808. /* System header to define __stub macros and hopefully few prototypes,
  10809. which can conflict with char $ac_func (); below.
  10810. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10811. <limits.h> exists even on freestanding compilers. */
  10812. #ifdef __STDC__
  10813. # include <limits.h>
  10814. #else
  10815. # include <assert.h>
  10816. #endif
  10817. #undef $ac_func
  10818. /* Override any gcc2 internal prototype to avoid an error. */
  10819. #ifdef __cplusplus
  10820. extern "C"
  10821. {
  10822. #endif
  10823. /* We use char because int might match the return type of a gcc2
  10824. builtin and then its argument prototype would still apply. */
  10825. char $ac_func ();
  10826. /* The GNU C library defines this for functions which it implements
  10827. to always fail with ENOSYS. Some functions are actually named
  10828. something starting with __ and the normal name is an alias. */
  10829. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10830. choke me
  10831. #else
  10832. char (*f) () = $ac_func;
  10833. #endif
  10834. #ifdef __cplusplus
  10835. }
  10836. #endif
  10837. int
  10838. main ()
  10839. {
  10840. return f != $ac_func;
  10841. ;
  10842. return 0;
  10843. }
  10844. _ACEOF
  10845. rm -f conftest.$ac_objext conftest$ac_exeext
  10846. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10847. (eval $ac_link) 2>conftest.er1
  10848. ac_status=$?
  10849. grep -v '^ *+' conftest.er1 >conftest.err
  10850. rm -f conftest.er1
  10851. cat conftest.err >&5
  10852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10853. (exit $ac_status); } &&
  10854. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10855. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10856. (eval $ac_try) 2>&5
  10857. ac_status=$?
  10858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10859. (exit $ac_status); }; } &&
  10860. { ac_try='test -s conftest$ac_exeext'
  10861. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10862. (eval $ac_try) 2>&5
  10863. ac_status=$?
  10864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10865. (exit $ac_status); }; }; then
  10866. eval "$as_ac_var=yes"
  10867. else
  10868. echo "$as_me: failed program was:" >&5
  10869. sed 's/^/| /' conftest.$ac_ext >&5
  10870. eval "$as_ac_var=no"
  10871. fi
  10872. rm -f conftest.err conftest.$ac_objext \
  10873. conftest$ac_exeext conftest.$ac_ext
  10874. fi
  10875. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10876. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10877. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10878. cat >>confdefs.h <<_ACEOF
  10879. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10880. _ACEOF
  10881. fi
  10882. done
  10883. for ac_func in getipnodebyname memcpy memset random rename setpgid sigaction sigemptyset snprintf srandom
  10884. do
  10885. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10886. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10887. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10888. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10889. echo $ECHO_N "(cached) $ECHO_C" >&6
  10890. else
  10891. cat >conftest.$ac_ext <<_ACEOF
  10892. /* confdefs.h. */
  10893. _ACEOF
  10894. cat confdefs.h >>conftest.$ac_ext
  10895. cat >>conftest.$ac_ext <<_ACEOF
  10896. /* end confdefs.h. */
  10897. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10898. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10899. #define $ac_func innocuous_$ac_func
  10900. /* System header to define __stub macros and hopefully few prototypes,
  10901. which can conflict with char $ac_func (); below.
  10902. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10903. <limits.h> exists even on freestanding compilers. */
  10904. #ifdef __STDC__
  10905. # include <limits.h>
  10906. #else
  10907. # include <assert.h>
  10908. #endif
  10909. #undef $ac_func
  10910. /* Override any gcc2 internal prototype to avoid an error. */
  10911. #ifdef __cplusplus
  10912. extern "C"
  10913. {
  10914. #endif
  10915. /* We use char because int might match the return type of a gcc2
  10916. builtin and then its argument prototype would still apply. */
  10917. char $ac_func ();
  10918. /* The GNU C library defines this for functions which it implements
  10919. to always fail with ENOSYS. Some functions are actually named
  10920. something starting with __ and the normal name is an alias. */
  10921. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10922. choke me
  10923. #else
  10924. char (*f) () = $ac_func;
  10925. #endif
  10926. #ifdef __cplusplus
  10927. }
  10928. #endif
  10929. int
  10930. main ()
  10931. {
  10932. return f != $ac_func;
  10933. ;
  10934. return 0;
  10935. }
  10936. _ACEOF
  10937. rm -f conftest.$ac_objext conftest$ac_exeext
  10938. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10939. (eval $ac_link) 2>conftest.er1
  10940. ac_status=$?
  10941. grep -v '^ *+' conftest.er1 >conftest.err
  10942. rm -f conftest.er1
  10943. cat conftest.err >&5
  10944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10945. (exit $ac_status); } &&
  10946. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10947. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10948. (eval $ac_try) 2>&5
  10949. ac_status=$?
  10950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10951. (exit $ac_status); }; } &&
  10952. { ac_try='test -s conftest$ac_exeext'
  10953. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10954. (eval $ac_try) 2>&5
  10955. ac_status=$?
  10956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10957. (exit $ac_status); }; }; then
  10958. eval "$as_ac_var=yes"
  10959. else
  10960. echo "$as_me: failed program was:" >&5
  10961. sed 's/^/| /' conftest.$ac_ext >&5
  10962. eval "$as_ac_var=no"
  10963. fi
  10964. rm -f conftest.err conftest.$ac_objext \
  10965. conftest$ac_exeext conftest.$ac_ext
  10966. fi
  10967. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10968. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10969. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10970. cat >>confdefs.h <<_ACEOF
  10971. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10972. _ACEOF
  10973. fi
  10974. done
  10975. #checkpoint
  10976. cat >confcache <<\_ACEOF
  10977. # This file is a shell script that caches the results of configure
  10978. # tests run on this system so they can be shared between configure
  10979. # scripts and configure runs, see configure's option --config-cache.
  10980. # It is not useful on other systems. If it contains results you don't
  10981. # want to keep, you may remove or edit it.
  10982. #
  10983. # config.status only pays attention to the cache file if you give it
  10984. # the --recheck option to rerun configure.
  10985. #
  10986. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10987. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10988. # following values.
  10989. _ACEOF
  10990. # The following way of writing the cache mishandles newlines in values,
  10991. # but we know of no workaround that is simple, portable, and efficient.
  10992. # So, don't put newlines in cache variables' values.
  10993. # Ultrix sh set writes to stderr and can't be redirected directly,
  10994. # and sets the high bit in the cache file unless we assign to the vars.
  10995. {
  10996. (set) 2>&1 |
  10997. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10998. *ac_space=\ *)
  10999. # `set' does not quote correctly, so add quotes (double-quote
  11000. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11001. sed -n \
  11002. "s/'/'\\\\''/g;
  11003. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11004. ;;
  11005. *)
  11006. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11007. sed -n \
  11008. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11009. ;;
  11010. esac;
  11011. } |
  11012. sed '
  11013. t clear
  11014. : clear
  11015. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11016. t end
  11017. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11018. : end' >>confcache
  11019. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11020. if test -w $cache_file; then
  11021. test "x$cache_file" != "x/dev/null"
  11022. cat confcache >$cache_file
  11023. else
  11024. echo "not updating unwritable cache $cache_file"
  11025. fi
  11026. fi
  11027. rm -f confcache
  11028. for ac_func in strcasecmp strncasecmp vsnprintf
  11029. do
  11030. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11031. echo "$as_me:$LINENO: checking for $ac_func" >&5
  11032. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  11033. if eval "test \"\${$as_ac_var+set}\" = set"; then
  11034. echo $ECHO_N "(cached) $ECHO_C" >&6
  11035. else
  11036. cat >conftest.$ac_ext <<_ACEOF
  11037. /* confdefs.h. */
  11038. _ACEOF
  11039. cat confdefs.h >>conftest.$ac_ext
  11040. cat >>conftest.$ac_ext <<_ACEOF
  11041. /* end confdefs.h. */
  11042. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11043. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11044. #define $ac_func innocuous_$ac_func
  11045. /* System header to define __stub macros and hopefully few prototypes,
  11046. which can conflict with char $ac_func (); below.
  11047. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11048. <limits.h> exists even on freestanding compilers. */
  11049. #ifdef __STDC__
  11050. # include <limits.h>
  11051. #else
  11052. # include <assert.h>
  11053. #endif
  11054. #undef $ac_func
  11055. /* Override any gcc2 internal prototype to avoid an error. */
  11056. #ifdef __cplusplus
  11057. extern "C"
  11058. {
  11059. #endif
  11060. /* We use char because int might match the return type of a gcc2
  11061. builtin and then its argument prototype would still apply. */
  11062. char $ac_func ();
  11063. /* The GNU C library defines this for functions which it implements
  11064. to always fail with ENOSYS. Some functions are actually named
  11065. something starting with __ and the normal name is an alias. */
  11066. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  11067. choke me
  11068. #else
  11069. char (*f) () = $ac_func;
  11070. #endif
  11071. #ifdef __cplusplus
  11072. }
  11073. #endif
  11074. int
  11075. main ()
  11076. {
  11077. return f != $ac_func;
  11078. ;
  11079. return 0;
  11080. }
  11081. _ACEOF
  11082. rm -f conftest.$ac_objext conftest$ac_exeext
  11083. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11084. (eval $ac_link) 2>conftest.er1
  11085. ac_status=$?
  11086. grep -v '^ *+' conftest.er1 >conftest.err
  11087. rm -f conftest.er1
  11088. cat conftest.err >&5
  11089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11090. (exit $ac_status); } &&
  11091. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11092. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11093. (eval $ac_try) 2>&5
  11094. ac_status=$?
  11095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11096. (exit $ac_status); }; } &&
  11097. { ac_try='test -s conftest$ac_exeext'
  11098. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11099. (eval $ac_try) 2>&5
  11100. ac_status=$?
  11101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11102. (exit $ac_status); }; }; then
  11103. eval "$as_ac_var=yes"
  11104. else
  11105. echo "$as_me: failed program was:" >&5
  11106. sed 's/^/| /' conftest.$ac_ext >&5
  11107. eval "$as_ac_var=no"
  11108. fi
  11109. rm -f conftest.err conftest.$ac_objext \
  11110. conftest$ac_exeext conftest.$ac_ext
  11111. fi
  11112. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  11113. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  11114. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11115. cat >>confdefs.h <<_ACEOF
  11116. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11117. _ACEOF
  11118. fi
  11119. done
  11120. #autoscan suggested this....
  11121. #These are recommended by autoscan, but no code supports it currently
  11122. #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])
  11123. for ac_func in vsprintf
  11124. do
  11125. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11126. echo "$as_me:$LINENO: checking for $ac_func" >&5
  11127. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  11128. if eval "test \"\${$as_ac_var+set}\" = set"; then
  11129. echo $ECHO_N "(cached) $ECHO_C" >&6
  11130. else
  11131. cat >conftest.$ac_ext <<_ACEOF
  11132. /* confdefs.h. */
  11133. _ACEOF
  11134. cat confdefs.h >>conftest.$ac_ext
  11135. cat >>conftest.$ac_ext <<_ACEOF
  11136. /* end confdefs.h. */
  11137. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11138. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11139. #define $ac_func innocuous_$ac_func
  11140. /* System header to define __stub macros and hopefully few prototypes,
  11141. which can conflict with char $ac_func (); below.
  11142. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11143. <limits.h> exists even on freestanding compilers. */
  11144. #ifdef __STDC__
  11145. # include <limits.h>
  11146. #else
  11147. # include <assert.h>
  11148. #endif
  11149. #undef $ac_func
  11150. /* Override any gcc2 internal prototype to avoid an error. */
  11151. #ifdef __cplusplus
  11152. extern "C"
  11153. {
  11154. #endif
  11155. /* We use char because int might match the return type of a gcc2
  11156. builtin and then its argument prototype would still apply. */
  11157. char $ac_func ();
  11158. /* The GNU C library defines this for functions which it implements
  11159. to always fail with ENOSYS. Some functions are actually named
  11160. something starting with __ and the normal name is an alias. */
  11161. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  11162. choke me
  11163. #else
  11164. char (*f) () = $ac_func;
  11165. #endif
  11166. #ifdef __cplusplus
  11167. }
  11168. #endif
  11169. int
  11170. main ()
  11171. {
  11172. return f != $ac_func;
  11173. ;
  11174. return 0;
  11175. }
  11176. _ACEOF
  11177. rm -f conftest.$ac_objext conftest$ac_exeext
  11178. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11179. (eval $ac_link) 2>conftest.er1
  11180. ac_status=$?
  11181. grep -v '^ *+' conftest.er1 >conftest.err
  11182. rm -f conftest.er1
  11183. cat conftest.err >&5
  11184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11185. (exit $ac_status); } &&
  11186. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11187. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11188. (eval $ac_try) 2>&5
  11189. ac_status=$?
  11190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11191. (exit $ac_status); }; } &&
  11192. { ac_try='test -s conftest$ac_exeext'
  11193. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11194. (eval $ac_try) 2>&5
  11195. ac_status=$?
  11196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11197. (exit $ac_status); }; }; then
  11198. eval "$as_ac_var=yes"
  11199. else
  11200. echo "$as_me: failed program was:" >&5
  11201. sed 's/^/| /' conftest.$ac_ext >&5
  11202. eval "$as_ac_var=no"
  11203. fi
  11204. rm -f conftest.err conftest.$ac_objext \
  11205. conftest$ac_exeext conftest.$ac_ext
  11206. fi
  11207. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  11208. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  11209. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11210. cat >>confdefs.h <<_ACEOF
  11211. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11212. _ACEOF
  11213. fi
  11214. done
  11215. if test "$ac_cv_func_vsprintf" = "no"
  11216. then
  11217. cat << 'EOF' >&2
  11218. configure: error:
  11219. Your system does not have the sprintf/vsprintf libraries.
  11220. These are required to compile almost anything. Sorry.
  11221. EOF
  11222. exit 1
  11223. fi
  11224. for ac_func in uname
  11225. do
  11226. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11227. echo "$as_me:$LINENO: checking for $ac_func" >&5
  11228. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  11229. if eval "test \"\${$as_ac_var+set}\" = set"; then
  11230. echo $ECHO_N "(cached) $ECHO_C" >&6
  11231. else
  11232. cat >conftest.$ac_ext <<_ACEOF
  11233. /* confdefs.h. */
  11234. _ACEOF
  11235. cat confdefs.h >>conftest.$ac_ext
  11236. cat >>conftest.$ac_ext <<_ACEOF
  11237. /* end confdefs.h. */
  11238. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11239. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11240. #define $ac_func innocuous_$ac_func
  11241. /* System header to define __stub macros and hopefully few prototypes,
  11242. which can conflict with char $ac_func (); below.
  11243. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11244. <limits.h> exists even on freestanding compilers. */
  11245. #ifdef __STDC__
  11246. # include <limits.h>
  11247. #else
  11248. # include <assert.h>
  11249. #endif
  11250. #undef $ac_func
  11251. /* Override any gcc2 internal prototype to avoid an error. */
  11252. #ifdef __cplusplus
  11253. extern "C"
  11254. {
  11255. #endif
  11256. /* We use char because int might match the return type of a gcc2
  11257. builtin and then its argument prototype would still apply. */
  11258. char $ac_func ();
  11259. /* The GNU C library defines this for functions which it implements
  11260. to always fail with ENOSYS. Some functions are actually named
  11261. something starting with __ and the normal name is an alias. */
  11262. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  11263. choke me
  11264. #else
  11265. char (*f) () = $ac_func;
  11266. #endif
  11267. #ifdef __cplusplus
  11268. }
  11269. #endif
  11270. int
  11271. main ()
  11272. {
  11273. return f != $ac_func;
  11274. ;
  11275. return 0;
  11276. }
  11277. _ACEOF
  11278. rm -f conftest.$ac_objext conftest$ac_exeext
  11279. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11280. (eval $ac_link) 2>conftest.er1
  11281. ac_status=$?
  11282. grep -v '^ *+' conftest.er1 >conftest.err
  11283. rm -f conftest.er1
  11284. cat conftest.err >&5
  11285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11286. (exit $ac_status); } &&
  11287. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11288. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11289. (eval $ac_try) 2>&5
  11290. ac_status=$?
  11291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11292. (exit $ac_status); }; } &&
  11293. { ac_try='test -s conftest$ac_exeext'
  11294. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11295. (eval $ac_try) 2>&5
  11296. ac_status=$?
  11297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11298. (exit $ac_status); }; }; then
  11299. eval "$as_ac_var=yes"
  11300. else
  11301. echo "$as_me: failed program was:" >&5
  11302. sed 's/^/| /' conftest.$ac_ext >&5
  11303. eval "$as_ac_var=no"
  11304. fi
  11305. rm -f conftest.err conftest.$ac_objext \
  11306. conftest$ac_exeext conftest.$ac_ext
  11307. fi
  11308. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  11309. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  11310. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11311. cat >>confdefs.h <<_ACEOF
  11312. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11313. _ACEOF
  11314. fi
  11315. done
  11316. if test "$ac_cv_func_uname" = "no"
  11317. then
  11318. cat << 'EOF' >&2
  11319. configure: error:
  11320. Your system does not have the uname() function.
  11321. This is required for the botpack.
  11322. EOF
  11323. exit 1
  11324. fi
  11325. # Make sure we have stdc headers, since we can't compile without them
  11326. if test "$ac_cv_header_stdc" = "no"
  11327. then
  11328. cat << 'EOF' >&2
  11329. configure: error:
  11330. Your system must support ANSI C Header files.
  11331. These are required for the language support. Sorry.
  11332. EOF
  11333. exit 1
  11334. fi
  11335. #checkpoint
  11336. cat >confcache <<\_ACEOF
  11337. # This file is a shell script that caches the results of configure
  11338. # tests run on this system so they can be shared between configure
  11339. # scripts and configure runs, see configure's option --config-cache.
  11340. # It is not useful on other systems. If it contains results you don't
  11341. # want to keep, you may remove or edit it.
  11342. #
  11343. # config.status only pays attention to the cache file if you give it
  11344. # the --recheck option to rerun configure.
  11345. #
  11346. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11347. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11348. # following values.
  11349. _ACEOF
  11350. # The following way of writing the cache mishandles newlines in values,
  11351. # but we know of no workaround that is simple, portable, and efficient.
  11352. # So, don't put newlines in cache variables' values.
  11353. # Ultrix sh set writes to stderr and can't be redirected directly,
  11354. # and sets the high bit in the cache file unless we assign to the vars.
  11355. {
  11356. (set) 2>&1 |
  11357. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11358. *ac_space=\ *)
  11359. # `set' does not quote correctly, so add quotes (double-quote
  11360. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11361. sed -n \
  11362. "s/'/'\\\\''/g;
  11363. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11364. ;;
  11365. *)
  11366. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11367. sed -n \
  11368. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11369. ;;
  11370. esac;
  11371. } |
  11372. sed '
  11373. t clear
  11374. : clear
  11375. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11376. t end
  11377. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11378. : end' >>confcache
  11379. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11380. if test -w $cache_file; then
  11381. test "x$cache_file" != "x/dev/null"
  11382. cat confcache >$cache_file
  11383. else
  11384. echo "not updating unwritable cache $cache_file"
  11385. fi
  11386. fi
  11387. rm -f confcache
  11388. # Where is Tcl? Is it here?
  11389. # ---------- begin robey's Tcl thingies
  11390. # (well, what used to be robey's Tcl thingies...)
  11391. # Latest tested Tcl version to recommend if Tcl isn't found
  11392. tclrecommendver="8.4"
  11393. # Site recommended to download Tcl from
  11394. tclrecommendsite="http://www.tcl.tk/software/tcltk/download84.html"
  11395. # Tcl library filename prefixes (also used for Tcl header dir on FreeBSD)
  11396. tcllibnames="tcl tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 tcl8.1 tcl81 \
  11397. tcl8.0 tcl80"
  11398. # Tcl library filename suffixes
  11399. tcllibextensions=".a .so .so.1 .so.1.0 .so.1.2 .sl .dll .dylib"
  11400. # Tcl library search paths
  11401. tcllibpaths="${HOME}/lib ${HOME}/tcl/lib ${HOME} \
  11402. /usr/local/lib /usr/local/pkgs/tcl/lib \
  11403. /usr/lib /lib /usr/i486-linuxaout/lib \
  11404. /beos/system/lib /sys/lib"
  11405. # Tcl header filenames
  11406. tclheadernames="tcl.h"
  11407. # Tcl header search paths
  11408. tclheaderpaths="${HOME}/include ${HOME}/tcl/include ${HOME} \
  11409. /usr/local/include /usr/local/pkgs/tcl/include \
  11410. /usr/include /beos/system/include /beos/devel/include \
  11411. /sys/include"
  11412. # oohh new configure --variables for those with multiple Tcl libs
  11413. # Check whether --with-tcllib or --without-tcllib was given.
  11414. if test "${with_tcllib+set}" = set; then
  11415. withval="$with_tcllib"
  11416. tcllibname="$withval"
  11417. fi;
  11418. # Check whether --with-tclinc or --without-tclinc was given.
  11419. if test "${with_tclinc+set}" = set; then
  11420. withval="$with_tclinc"
  11421. tclincname="$withval"
  11422. fi;
  11423. WARN=0
  11424. # Make sure either both or neither $tcllibname and $tclincname are set
  11425. if test ! "${tcllibname-x}" = "x"
  11426. then
  11427. if test "${tclincname-x}" = "x"
  11428. then
  11429. WARN=1
  11430. tcllibname=""
  11431. TCLLIB=""
  11432. TCLINC=""
  11433. fi
  11434. else
  11435. if test ! "${tclincname-x}" = "x"
  11436. then
  11437. WARN=1
  11438. tclincname=""
  11439. TCLLIB=""
  11440. TCLINC=""
  11441. fi
  11442. fi
  11443. if test "$WARN" = 1
  11444. then
  11445. cat << 'EOF' >&2
  11446. configure: warning:
  11447. You must specify both --with-tcllib and --with-tclinc for them to work.
  11448. configure will now attempt to autodetect both the Tcl library and header...
  11449. EOF
  11450. fi
  11451. WARN=0
  11452. # Make sure either both or neither $TCLLIB and $TCLINC are set
  11453. if test ! "${TCLLIB-x}" = "x"
  11454. then
  11455. if test "${TCLINC-x}" = "x"
  11456. then
  11457. WARN=1
  11458. WVAR1=TCLLIB
  11459. WVAR2=TCLINC
  11460. TCLLIB=""
  11461. fi
  11462. else
  11463. if test ! "${TCLINC-x}" = "x"
  11464. then
  11465. WARN=1
  11466. WVAR1=TCLINC
  11467. WVAR2=TCLLIB
  11468. TCLINC=""
  11469. fi
  11470. fi
  11471. if test "$WARN" = 1
  11472. then
  11473. cat << EOF >&2
  11474. configure: warning:
  11475. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  11476. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  11477. configure will now attempt to autodetect both the Tcl library and header...
  11478. EOF
  11479. fi
  11480. # Look for Tcl library: if $tcllibname is set, check there first
  11481. if test ! "${tcllibname-x}" = "x"
  11482. then
  11483. if test -f "$tcllibname" && test -r "$tcllibname"
  11484. then
  11485. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  11486. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  11487. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  11488. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  11489. else
  11490. cat << EOF >&2
  11491. configure: warning:
  11492. The file '$tcllibname' given to option --with-tcllib is not valid.
  11493. configure will now attempt to autodetect both the Tcl library and header...
  11494. EOF
  11495. tcllibname=""
  11496. tclincname=""
  11497. TCLLIB=""
  11498. TCLLIBFN=""
  11499. TCLINC=""
  11500. TCLINCFN=""
  11501. fi
  11502. fi
  11503. # Look for Tcl header: if $tclincname is set, check there first
  11504. if test ! "${tclincname-x}" = "x"
  11505. then
  11506. if test -f "$tclincname" && test -r "$tclincname"
  11507. then
  11508. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  11509. TCLINCFN=`$BASENAME $tclincname`
  11510. else
  11511. cat << EOF >&2
  11512. configure: warning:
  11513. The file '$tclincname' given to option --with-tclinc is not valid.
  11514. configure will now attempt to autodetect both the Tcl library and header...
  11515. EOF
  11516. tcllibname=""
  11517. tclincname=""
  11518. TCLLIB=""
  11519. TCLLIBFN=""
  11520. TCLINC=""
  11521. TCLINCFN=""
  11522. fi
  11523. fi
  11524. # Look for Tcl library: if $TCLLIB is set, check there first
  11525. if test "${TCLLIBFN-x}" = "x"
  11526. then
  11527. if test ! "${TCLLIB-x}" = "x"
  11528. then
  11529. if test -d "$TCLLIB"
  11530. then
  11531. for tcllibfns in $tcllibnames
  11532. do
  11533. for tcllibext in $tcllibextensions
  11534. do
  11535. if test -r "$TCLLIB/lib$tcllibfns$tcllibext"
  11536. then
  11537. TCLLIBFN="$tcllibfns$tcllibext"
  11538. TCLLIBEXT="$tcllibext"
  11539. TCLLIBFNS="$tcllibfns"
  11540. break 2
  11541. fi
  11542. done
  11543. done
  11544. fi
  11545. if test "${TCLLIBFN-x}" = "x"
  11546. then
  11547. cat << 'EOF' >&2
  11548. configure: warning:
  11549. Environment variable TCLLIB was set, but incorrect.
  11550. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  11551. configure will now attempt to autodetect both the Tcl library and header...
  11552. EOF
  11553. TCLLIB=""
  11554. TCLLIBFN=""
  11555. TCLINC=""
  11556. TCLINCFN=""
  11557. fi
  11558. fi
  11559. fi
  11560. # Look for Tcl header: if $TCLINC is set, check there first
  11561. if test "${TCLINCFN-x}" = "x"
  11562. then
  11563. if test ! "${TCLINC-x}" = "x"
  11564. then
  11565. if test -d "$TCLINC"
  11566. then
  11567. for tclheaderfn in $tclheadernames
  11568. do
  11569. if test -r "$TCLINC/$tclheaderfn"
  11570. then
  11571. TCLINCFN="$tclheaderfn"
  11572. break
  11573. fi
  11574. done
  11575. fi
  11576. if test "${TCLINCFN-x}" = "x"
  11577. then
  11578. cat << 'EOF' >&2
  11579. configure: warning:
  11580. Environment variable TCLINC was set, but incorrect.
  11581. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  11582. configure will now attempt to autodetect both the Tcl library and header...
  11583. EOF
  11584. TCLLIB=""
  11585. TCLLIBFN=""
  11586. TCLINC=""
  11587. TCLINCFN=""
  11588. fi
  11589. fi
  11590. fi
  11591. echo "$as_me:$LINENO: checking for Tcl library" >&5
  11592. echo $ECHO_N "checking for Tcl library... $ECHO_C" >&6
  11593. # Attempt autodetect for $TCLLIBFN if it's not set
  11594. if test ! "${TCLLIBFN-x}" = "x"
  11595. then
  11596. echo "$as_me:$LINENO: result: using $TCLLIB/lib$TCLLIBFN" >&5
  11597. echo "${ECHO_T}using $TCLLIB/lib$TCLLIBFN" >&6
  11598. else
  11599. for tcllibfns in $tcllibnames
  11600. do
  11601. for tcllibext in $tcllibextensions
  11602. do
  11603. for tcllibpath in $tcllibpaths
  11604. do
  11605. if test -r "$tcllibpath/lib$tcllibfns$tcllibext"
  11606. then
  11607. echo "$as_me:$LINENO: result: found $tcllibpath/lib$tcllibfns$tcllibext" >&5
  11608. echo "${ECHO_T}found $tcllibpath/lib$tcllibfns$tcllibext" >&6
  11609. TCLLIB="$tcllibpath"
  11610. TCLLIBFN="$tcllibfns$tcllibext"
  11611. TCLLIBEXT="$tcllibext"
  11612. TCLLIBFNS="$tcllibfns"
  11613. break 3
  11614. fi
  11615. done
  11616. done
  11617. done
  11618. fi
  11619. # Show if $TCLLIBFN wasn't found
  11620. if test "${TCLLIBFN-x}" = "x"
  11621. then
  11622. echo "$as_me:$LINENO: result: not found" >&5
  11623. echo "${ECHO_T}not found" >&6
  11624. fi
  11625. echo "$as_me:$LINENO: checking for Tcl header" >&5
  11626. echo $ECHO_N "checking for Tcl header... $ECHO_C" >&6
  11627. # Attempt autodetect for $TCLINCFN if it's not set
  11628. if test ! "${TCLINCFN-x}" = "x"
  11629. then
  11630. echo "$as_me:$LINENO: result: using $TCLINC/$TCLINCFN" >&5
  11631. echo "${ECHO_T}using $TCLINC/$TCLINCFN" >&6
  11632. else
  11633. for tclheaderpath in $tclheaderpaths
  11634. do
  11635. for tclheaderfn in $tclheadernames
  11636. do
  11637. if test -r "$tclheaderpath/$tclheaderfn"
  11638. then
  11639. echo "$as_me:$LINENO: result: found $tclheaderpath/$tclheaderfn" >&5
  11640. echo "${ECHO_T}found $tclheaderpath/$tclheaderfn" >&6
  11641. TCLINC="$tclheaderpath"
  11642. TCLINCFN="$tclheaderfn"
  11643. break 2
  11644. fi
  11645. done
  11646. done
  11647. # FreeBSD hack ...
  11648. if test "${TCLINCFN-x}" = "x"
  11649. then
  11650. for tcllibfns in $tcllibnames
  11651. do
  11652. for tclheaderpath in $tclheaderpaths
  11653. do
  11654. for tclheaderfn in $tclheadernames
  11655. do
  11656. if test -r "$tclheaderpath/$tcllibfns/$tclheaderfn"
  11657. then
  11658. echo "$as_me:$LINENO: result: found $tclheaderpath/$tcllibfns/$tclheaderfn" >&5
  11659. echo "${ECHO_T}found $tclheaderpath/$tcllibfns/$tclheaderfn" >&6
  11660. TCLINC="$tclheaderpath/$tcllibfns"
  11661. TCLINCFN="$tclheaderfn"
  11662. break 3
  11663. fi
  11664. done
  11665. done
  11666. done
  11667. fi
  11668. fi
  11669. # Show if $TCLINCFN wasn't found
  11670. if test "${TCLINCFN-x}" = "x"
  11671. then
  11672. echo "$as_me:$LINENO: result: not found" >&5
  11673. echo "${ECHO_T}not found" >&6
  11674. fi
  11675. echo "$as_me:$LINENO: checking whether the Tcl system has changed" >&5
  11676. echo $ECHO_N "checking whether the Tcl system has changed... $ECHO_C" >&6
  11677. egg_tcl_changed=yes
  11678. egg_tcl_id="$TCLLIB:$TCLLIBFN:$TCLINC:$TCLINCFN"
  11679. if test ! "$egg_tcl_id" = ":::"
  11680. then
  11681. egg_tcl_cached=yes
  11682. if test "${egg_cv_var_tcl_id+set}" = set; then
  11683. echo $ECHO_N "(cached) $ECHO_C" >&6
  11684. else
  11685. egg_cv_var_tcl_id="$egg_tcl_id"
  11686. egg_tcl_cached=no
  11687. fi
  11688. if test "$egg_tcl_cached" = "yes"
  11689. then
  11690. if test "${egg_cv_var_tcl_id-x}" = "${egg_tcl_id-x}"
  11691. then
  11692. egg_tcl_changed=no
  11693. else
  11694. egg_cv_var_tcl_id="$egg_tcl_id"
  11695. fi
  11696. fi
  11697. fi
  11698. if test "$egg_tcl_changed" = "yes"
  11699. then
  11700. echo "$as_me:$LINENO: result: yes" >&5
  11701. echo "${ECHO_T}yes" >&6
  11702. else
  11703. echo "$as_me:$LINENO: result: no" >&5
  11704. echo "${ECHO_T}no" >&6
  11705. fi
  11706. #checkpoint
  11707. cat >confcache <<\_ACEOF
  11708. # This file is a shell script that caches the results of configure
  11709. # tests run on this system so they can be shared between configure
  11710. # scripts and configure runs, see configure's option --config-cache.
  11711. # It is not useful on other systems. If it contains results you don't
  11712. # want to keep, you may remove or edit it.
  11713. #
  11714. # config.status only pays attention to the cache file if you give it
  11715. # the --recheck option to rerun configure.
  11716. #
  11717. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11718. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11719. # following values.
  11720. _ACEOF
  11721. # The following way of writing the cache mishandles newlines in values,
  11722. # but we know of no workaround that is simple, portable, and efficient.
  11723. # So, don't put newlines in cache variables' values.
  11724. # Ultrix sh set writes to stderr and can't be redirected directly,
  11725. # and sets the high bit in the cache file unless we assign to the vars.
  11726. {
  11727. (set) 2>&1 |
  11728. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11729. *ac_space=\ *)
  11730. # `set' does not quote correctly, so add quotes (double-quote
  11731. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11732. sed -n \
  11733. "s/'/'\\\\''/g;
  11734. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11735. ;;
  11736. *)
  11737. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11738. sed -n \
  11739. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11740. ;;
  11741. esac;
  11742. } |
  11743. sed '
  11744. t clear
  11745. : clear
  11746. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11747. t end
  11748. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11749. : end' >>confcache
  11750. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11751. if test -w $cache_file; then
  11752. test "x$cache_file" != "x/dev/null"
  11753. cat confcache >$cache_file
  11754. else
  11755. echo "not updating unwritable cache $cache_file"
  11756. fi
  11757. fi
  11758. rm -f confcache
  11759. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  11760. TCL_FOUND=0
  11761. if test ! "${TCLLIBFN-x}" = "x" && test ! "${TCLINCFN-x}" = "x"
  11762. then
  11763. TCL_FOUND=1
  11764. # Check Tcl's version
  11765. if test "$egg_tcl_changed" = "yes"
  11766. then
  11767. unset egg_cv_var_tcl_version
  11768. fi
  11769. echo "$as_me:$LINENO: checking for Tcl version" >&5
  11770. echo $ECHO_N "checking for Tcl version... $ECHO_C" >&6
  11771. if test "${egg_cv_var_tcl_version+set}" = set; then
  11772. echo $ECHO_N "(cached) $ECHO_C" >&6
  11773. else
  11774. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`
  11775. fi
  11776. if test ! "${egg_cv_var_tcl_version-x}" = "x"
  11777. then
  11778. echo "$as_me:$LINENO: result: $egg_cv_var_tcl_version" >&5
  11779. echo "${ECHO_T}$egg_cv_var_tcl_version" >&6
  11780. else
  11781. echo "$as_me:$LINENO: result: not found" >&5
  11782. echo "${ECHO_T}not found" >&6
  11783. TCL_FOUND=0
  11784. fi
  11785. # Check Tcl's patch level (if available)
  11786. if test "$egg_tcl_changed" = "yes"
  11787. then
  11788. unset egg_cv_var_tcl_patch_level
  11789. fi
  11790. echo "$as_me:$LINENO: checking for Tcl patch level" >&5
  11791. echo $ECHO_N "checking for Tcl patch level... $ECHO_C" >&6
  11792. if test "${egg_cv_var_tcl_patch_level+set}" = set; then
  11793. echo $ECHO_N "(cached) $ECHO_C" >&6
  11794. else
  11795. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`"
  11796. fi
  11797. if test ! "${egg_cv_var_tcl_patch_level-x}" = "x"
  11798. then
  11799. echo "$as_me:$LINENO: result: $egg_cv_var_tcl_patch_level" >&5
  11800. echo "${ECHO_T}$egg_cv_var_tcl_patch_level" >&6
  11801. else
  11802. egg_cv_var_tcl_patch_level="unknown"
  11803. echo "$as_me:$LINENO: result: unknown" >&5
  11804. echo "${ECHO_T}unknown" >&6
  11805. fi
  11806. fi
  11807. # Check if we found Tcl's version
  11808. if test "$TCL_FOUND" = 0
  11809. then
  11810. cat << 'EOF' >&2
  11811. configure: error:
  11812. I can't find Tcl on this system.
  11813. The download website is at:
  11814. http://www.tcl.tk/software/tcltk/download84.html
  11815. A nice direct link for the tarball is:
  11816. http://aleron.dl.sourceforge.net/sourceforge/tcl/tcl8.4.4-src.tar.gz
  11817. OR
  11818. Just type: ./build -T
  11819. EOF
  11820. exit 1
  11821. fi
  11822. # Is this version of Tcl too old for us to use ?
  11823. TCL_VER_PRE80=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 8) print "yes"; else print "no"}'`
  11824. if test "$TCL_VER_PRE80" = "yes"
  11825. then
  11826. cat << EOF >&2
  11827. configure: error:
  11828. Your Tcl version is much too old for Eggdrop to use.
  11829. I suggest you download and compile a more recent version.
  11830. The most reliable current version is $tclrecommendver and
  11831. can be downloaded from $tclrecommendsite
  11832. EOF
  11833. exit 1
  11834. fi
  11835. # Set variables for Tcl library tests
  11836. TCL_TEST_LIB="$TCLLIBFNS"
  11837. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  11838. if test ! "${ac_cv_lib_pthread-x}" = "x"
  11839. then
  11840. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  11841. fi
  11842. if test "$egg_tcl_changed" = "yes"
  11843. then
  11844. unset egg_cv_var_tcl_free
  11845. fi
  11846. # Check for Tcl_Free()
  11847. as_ac_Lib=`echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_Free" | $as_tr_sh`
  11848. echo "$as_me:$LINENO: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  11849. echo $ECHO_N "checking for Tcl_Free in -l$TCL_TEST_LIB... $ECHO_C" >&6
  11850. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  11851. echo $ECHO_N "(cached) $ECHO_C" >&6
  11852. else
  11853. ac_check_lib_save_LIBS=$LIBS
  11854. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  11855. cat >conftest.$ac_ext <<_ACEOF
  11856. /* confdefs.h. */
  11857. _ACEOF
  11858. cat confdefs.h >>conftest.$ac_ext
  11859. cat >>conftest.$ac_ext <<_ACEOF
  11860. /* end confdefs.h. */
  11861. /* Override any gcc2 internal prototype to avoid an error. */
  11862. #ifdef __cplusplus
  11863. extern "C"
  11864. #endif
  11865. /* We use char because int might match the return type of a gcc2
  11866. builtin and then its argument prototype would still apply. */
  11867. char Tcl_Free ();
  11868. int
  11869. main ()
  11870. {
  11871. Tcl_Free ();
  11872. ;
  11873. return 0;
  11874. }
  11875. _ACEOF
  11876. rm -f conftest.$ac_objext conftest$ac_exeext
  11877. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11878. (eval $ac_link) 2>conftest.er1
  11879. ac_status=$?
  11880. grep -v '^ *+' conftest.er1 >conftest.err
  11881. rm -f conftest.er1
  11882. cat conftest.err >&5
  11883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11884. (exit $ac_status); } &&
  11885. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11886. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11887. (eval $ac_try) 2>&5
  11888. ac_status=$?
  11889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11890. (exit $ac_status); }; } &&
  11891. { ac_try='test -s conftest$ac_exeext'
  11892. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11893. (eval $ac_try) 2>&5
  11894. ac_status=$?
  11895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11896. (exit $ac_status); }; }; then
  11897. eval "$as_ac_Lib=yes"
  11898. else
  11899. echo "$as_me: failed program was:" >&5
  11900. sed 's/^/| /' conftest.$ac_ext >&5
  11901. eval "$as_ac_Lib=no"
  11902. fi
  11903. rm -f conftest.err conftest.$ac_objext \
  11904. conftest$ac_exeext conftest.$ac_ext
  11905. LIBS=$ac_check_lib_save_LIBS
  11906. fi
  11907. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  11908. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  11909. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  11910. egg_cv_var_tcl_free="yes"
  11911. else
  11912. egg_cv_var_tcl_free="no"
  11913. fi
  11914. if test "$egg_cv_var_tcl_free" = "yes"
  11915. then
  11916. cat >>confdefs.h <<\_ACEOF
  11917. #define HAVE_TCL_FREE 1
  11918. _ACEOF
  11919. fi
  11920. if test "$egg_tcl_changed" = "yes"
  11921. then
  11922. unset egg_cv_var_tcl_threaded
  11923. fi
  11924. # Check for TclpFinalizeThreadData()
  11925. as_ac_Lib=`echo "ac_cv_lib_$TCL_TEST_LIB''_TclpFinalizeThreadData" | $as_tr_sh`
  11926. echo "$as_me:$LINENO: checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB" >&5
  11927. echo $ECHO_N "checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB... $ECHO_C" >&6
  11928. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  11929. echo $ECHO_N "(cached) $ECHO_C" >&6
  11930. else
  11931. ac_check_lib_save_LIBS=$LIBS
  11932. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  11933. cat >conftest.$ac_ext <<_ACEOF
  11934. /* confdefs.h. */
  11935. _ACEOF
  11936. cat confdefs.h >>conftest.$ac_ext
  11937. cat >>conftest.$ac_ext <<_ACEOF
  11938. /* end confdefs.h. */
  11939. /* Override any gcc2 internal prototype to avoid an error. */
  11940. #ifdef __cplusplus
  11941. extern "C"
  11942. #endif
  11943. /* We use char because int might match the return type of a gcc2
  11944. builtin and then its argument prototype would still apply. */
  11945. char TclpFinalizeThreadData ();
  11946. int
  11947. main ()
  11948. {
  11949. TclpFinalizeThreadData ();
  11950. ;
  11951. return 0;
  11952. }
  11953. _ACEOF
  11954. rm -f conftest.$ac_objext conftest$ac_exeext
  11955. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11956. (eval $ac_link) 2>conftest.er1
  11957. ac_status=$?
  11958. grep -v '^ *+' conftest.er1 >conftest.err
  11959. rm -f conftest.er1
  11960. cat conftest.err >&5
  11961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11962. (exit $ac_status); } &&
  11963. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11964. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11965. (eval $ac_try) 2>&5
  11966. ac_status=$?
  11967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11968. (exit $ac_status); }; } &&
  11969. { ac_try='test -s conftest$ac_exeext'
  11970. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11971. (eval $ac_try) 2>&5
  11972. ac_status=$?
  11973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11974. (exit $ac_status); }; }; then
  11975. eval "$as_ac_Lib=yes"
  11976. else
  11977. echo "$as_me: failed program was:" >&5
  11978. sed 's/^/| /' conftest.$ac_ext >&5
  11979. eval "$as_ac_Lib=no"
  11980. fi
  11981. rm -f conftest.err conftest.$ac_objext \
  11982. conftest$ac_exeext conftest.$ac_ext
  11983. LIBS=$ac_check_lib_save_LIBS
  11984. fi
  11985. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  11986. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  11987. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  11988. egg_cv_var_tcl_threaded="yes"
  11989. else
  11990. egg_cv_var_tcl_threaded="no"
  11991. fi
  11992. enable_tcl_threads=no
  11993. if test "$egg_cv_var_tcl_threaded" = "yes"
  11994. then
  11995. if test "$enable_tcl_threads" = "no"
  11996. then
  11997. cat << 'EOF' >&2
  11998. configure: warning:
  11999. You have disabled threads support on a system with a threaded Tcl library.
  12000. Tcl features that rely on scheduled events may not function properly.
  12001. EOF
  12002. fi
  12003. # Add pthread library to $LIBS if we need it
  12004. if test ! "${ac_cv_lib_pthread-x}" = "x"
  12005. then
  12006. LIBS="$ac_cv_lib_pthread $LIBS"
  12007. fi
  12008. fi
  12009. if test "$EGG_CYGWIN" = "yes"
  12010. then
  12011. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  12012. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  12013. else
  12014. if test ! "$TCLLIBEXT" = ".a"
  12015. then
  12016. cat << 'EOF' >&2
  12017. configure: warning:
  12018. Your Tcl library is not compiled statically.
  12019. You will need to compile Tcl statically to successfully compile wraith.
  12020. EOF
  12021. exit 1
  12022. else
  12023. # Was the --with-tcllib option given ?
  12024. if test ! "${tcllibname-x}" = "x"
  12025. then
  12026. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  12027. TCL_LIBS="$TCLLIB/lib$TCLLIBFN $EGG_MATH_LIB"
  12028. else
  12029. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  12030. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  12031. fi
  12032. fi
  12033. fi
  12034. ac_config_commands="$ac_config_commands replace-if-changed"
  12035. #checkpoint
  12036. cat >confcache <<\_ACEOF
  12037. # This file is a shell script that caches the results of configure
  12038. # tests run on this system so they can be shared between configure
  12039. # scripts and configure runs, see configure's option --config-cache.
  12040. # It is not useful on other systems. If it contains results you don't
  12041. # want to keep, you may remove or edit it.
  12042. #
  12043. # config.status only pays attention to the cache file if you give it
  12044. # the --recheck option to rerun configure.
  12045. #
  12046. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12047. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12048. # following values.
  12049. _ACEOF
  12050. # The following way of writing the cache mishandles newlines in values,
  12051. # but we know of no workaround that is simple, portable, and efficient.
  12052. # So, don't put newlines in cache variables' values.
  12053. # Ultrix sh set writes to stderr and can't be redirected directly,
  12054. # and sets the high bit in the cache file unless we assign to the vars.
  12055. {
  12056. (set) 2>&1 |
  12057. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  12058. *ac_space=\ *)
  12059. # `set' does not quote correctly, so add quotes (double-quote
  12060. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12061. sed -n \
  12062. "s/'/'\\\\''/g;
  12063. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12064. ;;
  12065. *)
  12066. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12067. sed -n \
  12068. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  12069. ;;
  12070. esac;
  12071. } |
  12072. sed '
  12073. t clear
  12074. : clear
  12075. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12076. t end
  12077. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12078. : end' >>confcache
  12079. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  12080. if test -w $cache_file; then
  12081. test "x$cache_file" != "x/dev/null"
  12082. cat confcache >$cache_file
  12083. else
  12084. echo "not updating unwritable cache $cache_file"
  12085. fi
  12086. fi
  12087. rm -f confcache
  12088. # ---------- end of (what used to be) robey's Tcl thingies
  12089. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  12090. NUMVER=`grep "int" $srcdir/src/main.c | $AWK '/egg_numver =/ {print $5}' | sed -e 's/\;//g'`
  12091. if ! test -f $srcdir/pack/pack.cfg; then
  12092. cat << EOF >&2
  12093. configure: error:
  12094. Your pack cfg is missing, please copy it to $srcdir/pack/pack.cfg
  12095. EOF
  12096. exit 1
  12097. fi
  12098. PACKNAME=`grep "PACKNAME " $srcdir/pack/pack.cfg | $AWK '/PACKNAME/ {print $2}'`
  12099. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  12100. cat >>confdefs.h <<_ACEOF
  12101. #define EGG_VERSION $version_num
  12102. _ACEOF
  12103. for define in `sed -n -e 's/^+ \([^ ]*\) .*/\1/ p' pack/pack.cfg`; do
  12104. u_define="S_$define"
  12105. cat >>confdefs.h <<_ACEOF
  12106. #define $u_define 1
  12107. _ACEOF
  12108. done
  12109. case "$srcdir" in
  12110. [\\/]* | ?:[\\/]*)
  12111. MOD_UPDIR=""
  12112. ;;
  12113. *)
  12114. MOD_UPDIR="../"
  12115. ;;
  12116. esac
  12117. 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"
  12118. for mf in $files; do
  12119. # Strip MF so we end up with the name of the file.
  12120. # echo "MF: $mf"
  12121. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12122. dirpart=`(dirname "$mf") 2>/dev/null ||
  12123. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12124. X"$mf" : 'X\(//\)[^/]' \| \
  12125. X"$mf" : 'X\(//\)$' \| \
  12126. X"$mf" : 'X\(/\)' \| \
  12127. . : '\(.\)' 2>/dev/null ||
  12128. echo X"$mf" |
  12129. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12130. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12131. /^X\(\/\/\)$/{ s//\1/; q; }
  12132. /^X\(\/\).*/{ s//\1/; q; }
  12133. s/.*/./; q'`
  12134. # echo "dirpart: $dirpart mf: $mf"
  12135. rm -rf "$dirpart/.deps/"
  12136. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  12137. for file in `sed -n -e '
  12138. /^OBJS = .*\\\\$/ {
  12139. s/^OBJS = //
  12140. :loop
  12141. s/\\\\$//
  12142. p
  12143. n
  12144. /\\\\$/ b loop
  12145. p
  12146. }
  12147. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  12148. do
  12149. base=`basename $file .o`
  12150. test -f "$dirpart/$base.c" || continue
  12151. # fdir=`AS_DIRNAME(["$file"])`
  12152. # AS_MKDIR_P([$dirpart/$fdir])
  12153. # echo "creating $dirpart/.deps/$base.Po"
  12154. echo '# dummy' > "$dirpart/.deps/$base.Po"
  12155. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  12156. echo "_$base.c:" >> "$dirpart/.deps/includes"
  12157. done
  12158. done
  12159. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/mod/Makefile src/mod/dns.mod/Makefile"
  12160. cat >confcache <<\_ACEOF
  12161. # This file is a shell script that caches the results of configure
  12162. # tests run on this system so they can be shared between configure
  12163. # scripts and configure runs, see configure's option --config-cache.
  12164. # It is not useful on other systems. If it contains results you don't
  12165. # want to keep, you may remove or edit it.
  12166. #
  12167. # config.status only pays attention to the cache file if you give it
  12168. # the --recheck option to rerun configure.
  12169. #
  12170. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12171. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12172. # following values.
  12173. _ACEOF
  12174. # The following way of writing the cache mishandles newlines in values,
  12175. # but we know of no workaround that is simple, portable, and efficient.
  12176. # So, don't put newlines in cache variables' values.
  12177. # Ultrix sh set writes to stderr and can't be redirected directly,
  12178. # and sets the high bit in the cache file unless we assign to the vars.
  12179. {
  12180. (set) 2>&1 |
  12181. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  12182. *ac_space=\ *)
  12183. # `set' does not quote correctly, so add quotes (double-quote
  12184. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12185. sed -n \
  12186. "s/'/'\\\\''/g;
  12187. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12188. ;;
  12189. *)
  12190. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12191. sed -n \
  12192. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  12193. ;;
  12194. esac;
  12195. } |
  12196. sed '
  12197. t clear
  12198. : clear
  12199. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12200. t end
  12201. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12202. : end' >>confcache
  12203. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  12204. if test -w $cache_file; then
  12205. test "x$cache_file" != "x/dev/null"
  12206. cat confcache >$cache_file
  12207. else
  12208. echo "not updating unwritable cache $cache_file"
  12209. fi
  12210. fi
  12211. rm -f confcache
  12212. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12213. # Let make expand exec_prefix.
  12214. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12215. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  12216. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  12217. # trailing colons and then remove the whole line if VPATH becomes empty
  12218. # (actually we leave an empty line to preserve line numbers).
  12219. if test "x$srcdir" = x.; then
  12220. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  12221. s/:*\$(srcdir):*/:/;
  12222. s/:*\${srcdir}:*/:/;
  12223. s/:*@srcdir@:*/:/;
  12224. s/^\([^=]*=[ ]*\):*/\1/;
  12225. s/:*$//;
  12226. s/^[^=]*=[ ]*$//;
  12227. }'
  12228. fi
  12229. DEFS=-DHAVE_CONFIG_H
  12230. ac_libobjs=
  12231. ac_ltlibobjs=
  12232. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12233. # 1. Remove the extension, and $U if already installed.
  12234. ac_i=`echo "$ac_i" |
  12235. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  12236. # 2. Add them.
  12237. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  12238. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  12239. done
  12240. LIBOBJS=$ac_libobjs
  12241. LTLIBOBJS=$ac_ltlibobjs
  12242. : ${CONFIG_STATUS=./config.status}
  12243. ac_clean_files_save=$ac_clean_files
  12244. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12245. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  12246. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12247. cat >$CONFIG_STATUS <<_ACEOF
  12248. #! $SHELL
  12249. # Generated by $as_me.
  12250. # Run this file to recreate the current configuration.
  12251. # Compiler output produced by configure, useful for debugging
  12252. # configure, is in config.log if it exists.
  12253. debug=false
  12254. ac_cs_recheck=false
  12255. ac_cs_silent=false
  12256. SHELL=\${CONFIG_SHELL-$SHELL}
  12257. _ACEOF
  12258. cat >>$CONFIG_STATUS <<\_ACEOF
  12259. ## --------------------- ##
  12260. ## M4sh Initialization. ##
  12261. ## --------------------- ##
  12262. # Be Bourne compatible
  12263. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12264. emulate sh
  12265. NULLCMD=:
  12266. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  12267. # is contrary to our usage. Disable this feature.
  12268. alias -g '${1+"$@"}'='"$@"'
  12269. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  12270. set -o posix
  12271. fi
  12272. DUALCASE=1; export DUALCASE # for MKS sh
  12273. # Support unset when possible.
  12274. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  12275. as_unset=unset
  12276. else
  12277. as_unset=false
  12278. fi
  12279. # Work around bugs in pre-3.0 UWIN ksh.
  12280. $as_unset ENV MAIL MAILPATH
  12281. PS1='$ '
  12282. PS2='> '
  12283. PS4='+ '
  12284. # NLS nuisances.
  12285. for as_var in \
  12286. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  12287. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  12288. LC_TELEPHONE LC_TIME
  12289. do
  12290. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  12291. eval $as_var=C; export $as_var
  12292. else
  12293. $as_unset $as_var
  12294. fi
  12295. done
  12296. # Required to use basename.
  12297. if expr a : '\(a\)' >/dev/null 2>&1; then
  12298. as_expr=expr
  12299. else
  12300. as_expr=false
  12301. fi
  12302. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  12303. as_basename=basename
  12304. else
  12305. as_basename=false
  12306. fi
  12307. # Name of the executable.
  12308. as_me=`$as_basename "$0" ||
  12309. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12310. X"$0" : 'X\(//\)$' \| \
  12311. X"$0" : 'X\(/\)$' \| \
  12312. . : '\(.\)' 2>/dev/null ||
  12313. echo X/"$0" |
  12314. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  12315. /^X\/\(\/\/\)$/{ s//\1/; q; }
  12316. /^X\/\(\/\).*/{ s//\1/; q; }
  12317. s/.*/./; q'`
  12318. # PATH needs CR, and LINENO needs CR and PATH.
  12319. # Avoid depending upon Character Ranges.
  12320. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12321. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12322. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12323. as_cr_digits='0123456789'
  12324. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12325. # The user is always right.
  12326. if test "${PATH_SEPARATOR+set}" != set; then
  12327. echo "#! /bin/sh" >conf$$.sh
  12328. echo "exit 0" >>conf$$.sh
  12329. chmod +x conf$$.sh
  12330. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  12331. PATH_SEPARATOR=';'
  12332. else
  12333. PATH_SEPARATOR=:
  12334. fi
  12335. rm -f conf$$.sh
  12336. fi
  12337. as_lineno_1=$LINENO
  12338. as_lineno_2=$LINENO
  12339. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  12340. test "x$as_lineno_1" != "x$as_lineno_2" &&
  12341. test "x$as_lineno_3" = "x$as_lineno_2" || {
  12342. # Find who we are. Look in the path if we contain no path at all
  12343. # relative or not.
  12344. case $0 in
  12345. *[\\/]* ) as_myself=$0 ;;
  12346. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12347. for as_dir in $PATH
  12348. do
  12349. IFS=$as_save_IFS
  12350. test -z "$as_dir" && as_dir=.
  12351. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12352. done
  12353. ;;
  12354. esac
  12355. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12356. # in which case we are not to be found in the path.
  12357. if test "x$as_myself" = x; then
  12358. as_myself=$0
  12359. fi
  12360. if test ! -f "$as_myself"; then
  12361. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  12362. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  12363. { (exit 1); exit 1; }; }
  12364. fi
  12365. case $CONFIG_SHELL in
  12366. '')
  12367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12368. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  12369. do
  12370. IFS=$as_save_IFS
  12371. test -z "$as_dir" && as_dir=.
  12372. for as_base in sh bash ksh sh5; do
  12373. case $as_dir in
  12374. /*)
  12375. if ("$as_dir/$as_base" -c '
  12376. as_lineno_1=$LINENO
  12377. as_lineno_2=$LINENO
  12378. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  12379. test "x$as_lineno_1" != "x$as_lineno_2" &&
  12380. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  12381. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  12382. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  12383. CONFIG_SHELL=$as_dir/$as_base
  12384. export CONFIG_SHELL
  12385. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  12386. fi;;
  12387. esac
  12388. done
  12389. done
  12390. ;;
  12391. esac
  12392. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  12393. # uniformly replaced by the line number. The first 'sed' inserts a
  12394. # line-number line before each line; the second 'sed' does the real
  12395. # work. The second script uses 'N' to pair each line-number line
  12396. # with the numbered line, and appends trailing '-' during
  12397. # substitution so that $LINENO is not a special case at line end.
  12398. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  12399. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  12400. sed '=' <$as_myself |
  12401. sed '
  12402. N
  12403. s,$,-,
  12404. : loop
  12405. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  12406. t loop
  12407. s,-$,,
  12408. s,^['$as_cr_digits']*\n,,
  12409. ' >$as_me.lineno &&
  12410. chmod +x $as_me.lineno ||
  12411. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  12412. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  12413. { (exit 1); exit 1; }; }
  12414. # Don't try to exec as it changes $[0], causing all sort of problems
  12415. # (the dirname of $[0] is not the place where we might find the
  12416. # original and so on. Autoconf is especially sensible to this).
  12417. . ./$as_me.lineno
  12418. # Exit status is that of the last command.
  12419. exit
  12420. }
  12421. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  12422. *c*,-n*) ECHO_N= ECHO_C='
  12423. ' ECHO_T=' ' ;;
  12424. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  12425. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  12426. esac
  12427. if expr a : '\(a\)' >/dev/null 2>&1; then
  12428. as_expr=expr
  12429. else
  12430. as_expr=false
  12431. fi
  12432. rm -f conf$$ conf$$.exe conf$$.file
  12433. echo >conf$$.file
  12434. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12435. # We could just check for DJGPP; but this test a) works b) is more generic
  12436. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  12437. if test -f conf$$.exe; then
  12438. # Don't use ln at all; we don't have any links
  12439. as_ln_s='cp -p'
  12440. else
  12441. as_ln_s='ln -s'
  12442. fi
  12443. elif ln conf$$.file conf$$ 2>/dev/null; then
  12444. as_ln_s=ln
  12445. else
  12446. as_ln_s='cp -p'
  12447. fi
  12448. rm -f conf$$ conf$$.exe conf$$.file
  12449. if mkdir -p . 2>/dev/null; then
  12450. as_mkdir_p=:
  12451. else
  12452. test -d ./-p && rmdir ./-p
  12453. as_mkdir_p=false
  12454. fi
  12455. as_executable_p="test -f"
  12456. # Sed expression to map a string onto a valid CPP name.
  12457. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12458. # Sed expression to map a string onto a valid variable name.
  12459. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12460. # IFS
  12461. # We need space, tab and new line, in precisely that order.
  12462. as_nl='
  12463. '
  12464. IFS=" $as_nl"
  12465. # CDPATH.
  12466. $as_unset CDPATH
  12467. exec 6>&1
  12468. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  12469. # report actual input values of CONFIG_FILES etc. instead of their
  12470. # values after options handling. Logging --version etc. is OK.
  12471. exec 5>>config.log
  12472. {
  12473. echo
  12474. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12475. ## Running $as_me. ##
  12476. _ASBOX
  12477. } >&5
  12478. cat >&5 <<_CSEOF
  12479. This file was extended by $as_me, which was
  12480. generated by GNU Autoconf 2.59. Invocation command line was
  12481. CONFIG_FILES = $CONFIG_FILES
  12482. CONFIG_HEADERS = $CONFIG_HEADERS
  12483. CONFIG_LINKS = $CONFIG_LINKS
  12484. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12485. $ $0 $@
  12486. _CSEOF
  12487. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  12488. echo >&5
  12489. _ACEOF
  12490. # Files that config.status was made for.
  12491. if test -n "$ac_config_files"; then
  12492. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  12493. fi
  12494. if test -n "$ac_config_headers"; then
  12495. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  12496. fi
  12497. if test -n "$ac_config_links"; then
  12498. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  12499. fi
  12500. if test -n "$ac_config_commands"; then
  12501. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  12502. fi
  12503. cat >>$CONFIG_STATUS <<\_ACEOF
  12504. ac_cs_usage="\
  12505. \`$as_me' instantiates files from templates according to the
  12506. current configuration.
  12507. Usage: $0 [OPTIONS] [FILE]...
  12508. -h, --help print this help, then exit
  12509. -V, --version print version number, then exit
  12510. -q, --quiet do not print progress messages
  12511. -d, --debug don't remove temporary files
  12512. --recheck update $as_me by reconfiguring in the same conditions
  12513. --file=FILE[:TEMPLATE]
  12514. instantiate the configuration file FILE
  12515. --header=FILE[:TEMPLATE]
  12516. instantiate the configuration header FILE
  12517. Configuration files:
  12518. $config_files
  12519. Configuration headers:
  12520. $config_headers
  12521. Configuration commands:
  12522. $config_commands
  12523. Report bugs to <bug-autoconf@gnu.org>."
  12524. _ACEOF
  12525. cat >>$CONFIG_STATUS <<_ACEOF
  12526. ac_cs_version="\\
  12527. config.status
  12528. configured by $0, generated by GNU Autoconf 2.59,
  12529. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  12530. Copyright (C) 2003 Free Software Foundation, Inc.
  12531. This config.status script is free software; the Free Software Foundation
  12532. gives unlimited permission to copy, distribute and modify it."
  12533. srcdir=$srcdir
  12534. _ACEOF
  12535. cat >>$CONFIG_STATUS <<\_ACEOF
  12536. # If no file are specified by the user, then we need to provide default
  12537. # value. By we need to know if files were specified by the user.
  12538. ac_need_defaults=:
  12539. while test $# != 0
  12540. do
  12541. case $1 in
  12542. --*=*)
  12543. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  12544. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  12545. ac_shift=:
  12546. ;;
  12547. -*)
  12548. ac_option=$1
  12549. ac_optarg=$2
  12550. ac_shift=shift
  12551. ;;
  12552. *) # This is not an option, so the user has probably given explicit
  12553. # arguments.
  12554. ac_option=$1
  12555. ac_need_defaults=false;;
  12556. esac
  12557. case $ac_option in
  12558. # Handling of the options.
  12559. _ACEOF
  12560. cat >>$CONFIG_STATUS <<\_ACEOF
  12561. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12562. ac_cs_recheck=: ;;
  12563. --version | --vers* | -V )
  12564. echo "$ac_cs_version"; exit 0 ;;
  12565. --he | --h)
  12566. # Conflict between --help and --header
  12567. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  12568. Try \`$0 --help' for more information." >&5
  12569. echo "$as_me: error: ambiguous option: $1
  12570. Try \`$0 --help' for more information." >&2;}
  12571. { (exit 1); exit 1; }; };;
  12572. --help | --hel | -h )
  12573. echo "$ac_cs_usage"; exit 0 ;;
  12574. --debug | --d* | -d )
  12575. debug=: ;;
  12576. --file | --fil | --fi | --f )
  12577. $ac_shift
  12578. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  12579. ac_need_defaults=false;;
  12580. --header | --heade | --head | --hea )
  12581. $ac_shift
  12582. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  12583. ac_need_defaults=false;;
  12584. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12585. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12586. ac_cs_silent=: ;;
  12587. # This is an error.
  12588. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  12589. Try \`$0 --help' for more information." >&5
  12590. echo "$as_me: error: unrecognized option: $1
  12591. Try \`$0 --help' for more information." >&2;}
  12592. { (exit 1); exit 1; }; } ;;
  12593. *) ac_config_targets="$ac_config_targets $1" ;;
  12594. esac
  12595. shift
  12596. done
  12597. ac_configure_extra_args=
  12598. if $ac_cs_silent; then
  12599. exec 6>/dev/null
  12600. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12601. fi
  12602. _ACEOF
  12603. cat >>$CONFIG_STATUS <<_ACEOF
  12604. if \$ac_cs_recheck; then
  12605. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  12606. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12607. fi
  12608. _ACEOF
  12609. cat >>$CONFIG_STATUS <<_ACEOF
  12610. #
  12611. # INIT-COMMANDS section.
  12612. #
  12613. egg_tclinc="$TCLINC"
  12614. egg_tclincfn="$TCLINCFN"
  12615. _ACEOF
  12616. cat >>$CONFIG_STATUS <<\_ACEOF
  12617. for ac_config_target in $ac_config_targets
  12618. do
  12619. case "$ac_config_target" in
  12620. # Handling of arguments.
  12621. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12622. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12623. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  12624. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  12625. "src/mod/dns.mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/dns.mod/Makefile" ;;
  12626. "replace-if-changed" ) CONFIG_COMMANDS="$CONFIG_COMMANDS replace-if-changed" ;;
  12627. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12628. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  12629. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  12630. { (exit 1); exit 1; }; };;
  12631. esac
  12632. done
  12633. # If the user did not use the arguments to specify the items to instantiate,
  12634. # then the envvar interface is used. Set only those that are not.
  12635. # We use the long form for the default assignment because of an extremely
  12636. # bizarre bug on SunOS 4.1.3.
  12637. if $ac_need_defaults; then
  12638. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12639. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12640. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12641. fi
  12642. # Have a temporary directory for convenience. Make it in the build tree
  12643. # simply because there is no reason to put it here, and in addition,
  12644. # creating and moving files from /tmp can sometimes cause problems.
  12645. # Create a temporary directory, and hook for its removal unless debugging.
  12646. $debug ||
  12647. {
  12648. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  12649. trap '{ (exit 1); exit 1; }' 1 2 13 15
  12650. }
  12651. # Create a (secure) tmp directory for tmp files.
  12652. {
  12653. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  12654. test -n "$tmp" && test -d "$tmp"
  12655. } ||
  12656. {
  12657. tmp=./confstat$$-$RANDOM
  12658. (umask 077 && mkdir $tmp)
  12659. } ||
  12660. {
  12661. echo "$me: cannot create a temporary directory in ." >&2
  12662. { (exit 1); exit 1; }
  12663. }
  12664. _ACEOF
  12665. cat >>$CONFIG_STATUS <<_ACEOF
  12666. #
  12667. # CONFIG_FILES section.
  12668. #
  12669. # No need to generate the scripts if there are no CONFIG_FILES.
  12670. # This happens for instance when ./config.status config.h
  12671. if test -n "\$CONFIG_FILES"; then
  12672. # Protect against being on the right side of a sed subst in config.status.
  12673. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  12674. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  12675. s,@SHELL@,$SHELL,;t t
  12676. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  12677. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  12678. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  12679. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  12680. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  12681. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  12682. s,@exec_prefix@,$exec_prefix,;t t
  12683. s,@prefix@,$prefix,;t t
  12684. s,@program_transform_name@,$program_transform_name,;t t
  12685. s,@bindir@,$bindir,;t t
  12686. s,@sbindir@,$sbindir,;t t
  12687. s,@libexecdir@,$libexecdir,;t t
  12688. s,@datadir@,$datadir,;t t
  12689. s,@sysconfdir@,$sysconfdir,;t t
  12690. s,@sharedstatedir@,$sharedstatedir,;t t
  12691. s,@localstatedir@,$localstatedir,;t t
  12692. s,@libdir@,$libdir,;t t
  12693. s,@includedir@,$includedir,;t t
  12694. s,@oldincludedir@,$oldincludedir,;t t
  12695. s,@infodir@,$infodir,;t t
  12696. s,@mandir@,$mandir,;t t
  12697. s,@build_alias@,$build_alias,;t t
  12698. s,@host_alias@,$host_alias,;t t
  12699. s,@target_alias@,$target_alias,;t t
  12700. s,@DEFS@,$DEFS,;t t
  12701. s,@ECHO_C@,$ECHO_C,;t t
  12702. s,@ECHO_N@,$ECHO_N,;t t
  12703. s,@ECHO_T@,$ECHO_T,;t t
  12704. s,@LIBS@,$LIBS,;t t
  12705. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  12706. s,@CC@,$CC,;t t
  12707. s,@CFLAGS@,$CFLAGS,;t t
  12708. s,@LDFLAGS@,$LDFLAGS,;t t
  12709. s,@CPPFLAGS@,$CPPFLAGS,;t t
  12710. s,@ac_ct_CC@,$ac_ct_CC,;t t
  12711. s,@EXEEXT@,$EXEEXT,;t t
  12712. s,@OBJEXT@,$OBJEXT,;t t
  12713. s,@CPP@,$CPP,;t t
  12714. s,@EGREP@,$EGREP,;t t
  12715. s,@CCDEPMODE@,$CCDEPMODE,;t t
  12716. s,@CCDEBUG@,$CCDEBUG,;t t
  12717. s,@SET_MAKE@,$SET_MAKE,;t t
  12718. s,@HEAD_1@,$HEAD_1,;t t
  12719. s,@STRIP@,$STRIP,;t t
  12720. s,@AWK@,$AWK,;t t
  12721. s,@BASENAME@,$BASENAME,;t t
  12722. s,@DISTCC@,$DISTCC,;t t
  12723. s,@UNAME@,$UNAME,;t t
  12724. s,@RESLIB@,$RESLIB,;t t
  12725. s,@RESINCLUDE@,$RESINCLUDE,;t t
  12726. s,@ZLIB@,$ZLIB,;t t
  12727. s,@SSL@,$SSL,;t t
  12728. s,@LIBOBJS@,$LIBOBJS,;t t
  12729. s,@TCLLIB@,$TCLLIB,;t t
  12730. s,@TCLLIBFN@,$TCLLIBFN,;t t
  12731. s,@TCLINC@,$TCLINC,;t t
  12732. s,@TCLINCFN@,$TCLINCFN,;t t
  12733. s,@TCL_REQS@,$TCL_REQS,;t t
  12734. s,@TCL_LIBS@,$TCL_LIBS,;t t
  12735. s,@VERSION@,$VERSION,;t t
  12736. s,@NUMVER@,$NUMVER,;t t
  12737. s,@PACKNAME@,$PACKNAME,;t t
  12738. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  12739. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  12740. CEOF
  12741. _ACEOF
  12742. cat >>$CONFIG_STATUS <<\_ACEOF
  12743. # Split the substitutions into bite-sized pieces for seds with
  12744. # small command number limits, like on Digital OSF/1 and HP-UX.
  12745. ac_max_sed_lines=48
  12746. ac_sed_frag=1 # Number of current file.
  12747. ac_beg=1 # First line for current file.
  12748. ac_end=$ac_max_sed_lines # Line after last line for current file.
  12749. ac_more_lines=:
  12750. ac_sed_cmds=
  12751. while $ac_more_lines; do
  12752. if test $ac_beg -gt 1; then
  12753. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  12754. else
  12755. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  12756. fi
  12757. if test ! -s $tmp/subs.frag; then
  12758. ac_more_lines=false
  12759. else
  12760. # The purpose of the label and of the branching condition is to
  12761. # speed up the sed processing (if there are no `@' at all, there
  12762. # is no need to browse any of the substitutions).
  12763. # These are the two extra sed commands mentioned above.
  12764. (echo ':t
  12765. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  12766. if test -z "$ac_sed_cmds"; then
  12767. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  12768. else
  12769. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  12770. fi
  12771. ac_sed_frag=`expr $ac_sed_frag + 1`
  12772. ac_beg=$ac_end
  12773. ac_end=`expr $ac_end + $ac_max_sed_lines`
  12774. fi
  12775. done
  12776. if test -z "$ac_sed_cmds"; then
  12777. ac_sed_cmds=cat
  12778. fi
  12779. fi # test -n "$CONFIG_FILES"
  12780. _ACEOF
  12781. cat >>$CONFIG_STATUS <<\_ACEOF
  12782. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  12783. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  12784. case $ac_file in
  12785. - | *:- | *:-:* ) # input from stdin
  12786. cat >$tmp/stdin
  12787. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12788. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12789. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12790. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12791. * ) ac_file_in=$ac_file.in ;;
  12792. esac
  12793. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  12794. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  12795. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12796. X"$ac_file" : 'X\(//\)[^/]' \| \
  12797. X"$ac_file" : 'X\(//\)$' \| \
  12798. X"$ac_file" : 'X\(/\)' \| \
  12799. . : '\(.\)' 2>/dev/null ||
  12800. echo X"$ac_file" |
  12801. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12802. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12803. /^X\(\/\/\)$/{ s//\1/; q; }
  12804. /^X\(\/\).*/{ s//\1/; q; }
  12805. s/.*/./; q'`
  12806. { if $as_mkdir_p; then
  12807. mkdir -p "$ac_dir"
  12808. else
  12809. as_dir="$ac_dir"
  12810. as_dirs=
  12811. while test ! -d "$as_dir"; do
  12812. as_dirs="$as_dir $as_dirs"
  12813. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12814. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12815. X"$as_dir" : 'X\(//\)[^/]' \| \
  12816. X"$as_dir" : 'X\(//\)$' \| \
  12817. X"$as_dir" : 'X\(/\)' \| \
  12818. . : '\(.\)' 2>/dev/null ||
  12819. echo X"$as_dir" |
  12820. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12821. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12822. /^X\(\/\/\)$/{ s//\1/; q; }
  12823. /^X\(\/\).*/{ s//\1/; q; }
  12824. s/.*/./; q'`
  12825. done
  12826. test ! -n "$as_dirs" || mkdir $as_dirs
  12827. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12828. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12829. { (exit 1); exit 1; }; }; }
  12830. ac_builddir=.
  12831. if test "$ac_dir" != .; then
  12832. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  12833. # A "../" for each directory in $ac_dir_suffix.
  12834. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  12835. else
  12836. ac_dir_suffix= ac_top_builddir=
  12837. fi
  12838. case $srcdir in
  12839. .) # No --srcdir option. We are building in place.
  12840. ac_srcdir=.
  12841. if test -z "$ac_top_builddir"; then
  12842. ac_top_srcdir=.
  12843. else
  12844. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  12845. fi ;;
  12846. [\\/]* | ?:[\\/]* ) # Absolute path.
  12847. ac_srcdir=$srcdir$ac_dir_suffix;
  12848. ac_top_srcdir=$srcdir ;;
  12849. *) # Relative path.
  12850. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  12851. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  12852. esac
  12853. # Do not use `cd foo && pwd` to compute absolute paths, because
  12854. # the directories may not exist.
  12855. case `pwd` in
  12856. .) ac_abs_builddir="$ac_dir";;
  12857. *)
  12858. case "$ac_dir" in
  12859. .) ac_abs_builddir=`pwd`;;
  12860. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  12861. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  12862. esac;;
  12863. esac
  12864. case $ac_abs_builddir in
  12865. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  12866. *)
  12867. case ${ac_top_builddir}. in
  12868. .) ac_abs_top_builddir=$ac_abs_builddir;;
  12869. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  12870. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  12871. esac;;
  12872. esac
  12873. case $ac_abs_builddir in
  12874. .) ac_abs_srcdir=$ac_srcdir;;
  12875. *)
  12876. case $ac_srcdir in
  12877. .) ac_abs_srcdir=$ac_abs_builddir;;
  12878. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  12879. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  12880. esac;;
  12881. esac
  12882. case $ac_abs_builddir in
  12883. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  12884. *)
  12885. case $ac_top_srcdir in
  12886. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  12887. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  12888. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  12889. esac;;
  12890. esac
  12891. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12892. # use $as_me), people would be surprised to read:
  12893. # /* config.h. Generated by config.status. */
  12894. if test x"$ac_file" = x-; then
  12895. configure_input=
  12896. else
  12897. configure_input="$ac_file. "
  12898. fi
  12899. configure_input=$configure_input"Generated from `echo $ac_file_in |
  12900. sed 's,.*/,,'` by configure."
  12901. # First look for the input files in the build tree, otherwise in the
  12902. # src tree.
  12903. ac_file_inputs=`IFS=:
  12904. for f in $ac_file_in; do
  12905. case $f in
  12906. -) echo $tmp/stdin ;;
  12907. [\\/$]*)
  12908. # Absolute (can't be DOS-style, as IFS=:)
  12909. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12910. echo "$as_me: error: cannot find input file: $f" >&2;}
  12911. { (exit 1); exit 1; }; }
  12912. echo "$f";;
  12913. *) # Relative
  12914. if test -f "$f"; then
  12915. # Build tree
  12916. echo "$f"
  12917. elif test -f "$srcdir/$f"; then
  12918. # Source tree
  12919. echo "$srcdir/$f"
  12920. else
  12921. # /dev/null tree
  12922. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12923. echo "$as_me: error: cannot find input file: $f" >&2;}
  12924. { (exit 1); exit 1; }; }
  12925. fi;;
  12926. esac
  12927. done` || { (exit 1); exit 1; }
  12928. if test x"$ac_file" != x-; then
  12929. { echo "$as_me:$LINENO: creating $ac_file" >&5
  12930. echo "$as_me: creating $ac_file" >&6;}
  12931. rm -f "$ac_file"
  12932. fi
  12933. _ACEOF
  12934. cat >>$CONFIG_STATUS <<_ACEOF
  12935. sed "$ac_vpsub
  12936. $extrasub
  12937. _ACEOF
  12938. cat >>$CONFIG_STATUS <<\_ACEOF
  12939. :t
  12940. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12941. s,@configure_input@,$configure_input,;t t
  12942. s,@srcdir@,$ac_srcdir,;t t
  12943. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  12944. s,@top_srcdir@,$ac_top_srcdir,;t t
  12945. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  12946. s,@builddir@,$ac_builddir,;t t
  12947. s,@abs_builddir@,$ac_abs_builddir,;t t
  12948. s,@top_builddir@,$ac_top_builddir,;t t
  12949. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  12950. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  12951. rm -f $tmp/stdin
  12952. if test x"$ac_file" != x-; then
  12953. mv $tmp/out $ac_file
  12954. else
  12955. cat $tmp/out
  12956. rm -f $tmp/out
  12957. fi
  12958. done
  12959. _ACEOF
  12960. cat >>$CONFIG_STATUS <<\_ACEOF
  12961. #
  12962. # CONFIG_HEADER section.
  12963. #
  12964. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  12965. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  12966. #
  12967. # ac_d sets the value in "#define NAME VALUE" lines.
  12968. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  12969. ac_dB='[ ].*$,\1#\2'
  12970. ac_dC=' '
  12971. ac_dD=',;t'
  12972. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  12973. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  12974. ac_uB='$,\1#\2define\3'
  12975. ac_uC=' '
  12976. ac_uD=',;t'
  12977. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  12978. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  12979. case $ac_file in
  12980. - | *:- | *:-:* ) # input from stdin
  12981. cat >$tmp/stdin
  12982. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12983. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12984. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12985. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12986. * ) ac_file_in=$ac_file.in ;;
  12987. esac
  12988. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  12989. echo "$as_me: creating $ac_file" >&6;}
  12990. # First look for the input files in the build tree, otherwise in the
  12991. # src tree.
  12992. ac_file_inputs=`IFS=:
  12993. for f in $ac_file_in; do
  12994. case $f in
  12995. -) echo $tmp/stdin ;;
  12996. [\\/$]*)
  12997. # Absolute (can't be DOS-style, as IFS=:)
  12998. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12999. echo "$as_me: error: cannot find input file: $f" >&2;}
  13000. { (exit 1); exit 1; }; }
  13001. # Do quote $f, to prevent DOS paths from being IFS'd.
  13002. echo "$f";;
  13003. *) # Relative
  13004. if test -f "$f"; then
  13005. # Build tree
  13006. echo "$f"
  13007. elif test -f "$srcdir/$f"; then
  13008. # Source tree
  13009. echo "$srcdir/$f"
  13010. else
  13011. # /dev/null tree
  13012. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  13013. echo "$as_me: error: cannot find input file: $f" >&2;}
  13014. { (exit 1); exit 1; }; }
  13015. fi;;
  13016. esac
  13017. done` || { (exit 1); exit 1; }
  13018. # Remove the trailing spaces.
  13019. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  13020. _ACEOF
  13021. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  13022. # `conftest.undefs', that substitutes the proper values into
  13023. # config.h.in to produce config.h. The first handles `#define'
  13024. # templates, and the second `#undef' templates.
  13025. # And first: Protect against being on the right side of a sed subst in
  13026. # config.status. Protect against being in an unquoted here document
  13027. # in config.status.
  13028. rm -f conftest.defines conftest.undefs
  13029. # Using a here document instead of a string reduces the quoting nightmare.
  13030. # Putting comments in sed scripts is not portable.
  13031. #
  13032. # `end' is used to avoid that the second main sed command (meant for
  13033. # 0-ary CPP macros) applies to n-ary macro definitions.
  13034. # See the Autoconf documentation for `clear'.
  13035. cat >confdef2sed.sed <<\_ACEOF
  13036. s/[\\&,]/\\&/g
  13037. s,[\\$`],\\&,g
  13038. t clear
  13039. : clear
  13040. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  13041. t end
  13042. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  13043. : end
  13044. _ACEOF
  13045. # If some macros were called several times there might be several times
  13046. # the same #defines, which is useless. Nevertheless, we may not want to
  13047. # sort them, since we want the *last* AC-DEFINE to be honored.
  13048. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  13049. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  13050. rm -f confdef2sed.sed
  13051. # This sed command replaces #undef with comments. This is necessary, for
  13052. # example, in the case of _POSIX_SOURCE, which is predefined and required
  13053. # on some systems where configure will not decide to define it.
  13054. cat >>conftest.undefs <<\_ACEOF
  13055. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  13056. _ACEOF
  13057. # Break up conftest.defines because some shells have a limit on the size
  13058. # of here documents, and old seds have small limits too (100 cmds).
  13059. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  13060. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  13061. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  13062. echo ' :' >>$CONFIG_STATUS
  13063. rm -f conftest.tail
  13064. while grep . conftest.defines >/dev/null
  13065. do
  13066. # Write a limited-size here document to $tmp/defines.sed.
  13067. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  13068. # Speed up: don't consider the non `#define' lines.
  13069. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  13070. # Work around the forget-to-reset-the-flag bug.
  13071. echo 't clr' >>$CONFIG_STATUS
  13072. echo ': clr' >>$CONFIG_STATUS
  13073. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  13074. echo 'CEOF
  13075. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  13076. rm -f $tmp/in
  13077. mv $tmp/out $tmp/in
  13078. ' >>$CONFIG_STATUS
  13079. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  13080. rm -f conftest.defines
  13081. mv conftest.tail conftest.defines
  13082. done
  13083. rm -f conftest.defines
  13084. echo ' fi # grep' >>$CONFIG_STATUS
  13085. echo >>$CONFIG_STATUS
  13086. # Break up conftest.undefs because some shells have a limit on the size
  13087. # of here documents, and old seds have small limits too (100 cmds).
  13088. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  13089. rm -f conftest.tail
  13090. while grep . conftest.undefs >/dev/null
  13091. do
  13092. # Write a limited-size here document to $tmp/undefs.sed.
  13093. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  13094. # Speed up: don't consider the non `#undef'
  13095. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  13096. # Work around the forget-to-reset-the-flag bug.
  13097. echo 't clr' >>$CONFIG_STATUS
  13098. echo ': clr' >>$CONFIG_STATUS
  13099. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  13100. echo 'CEOF
  13101. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  13102. rm -f $tmp/in
  13103. mv $tmp/out $tmp/in
  13104. ' >>$CONFIG_STATUS
  13105. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  13106. rm -f conftest.undefs
  13107. mv conftest.tail conftest.undefs
  13108. done
  13109. rm -f conftest.undefs
  13110. cat >>$CONFIG_STATUS <<\_ACEOF
  13111. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13112. # use $as_me), people would be surprised to read:
  13113. # /* config.h. Generated by config.status. */
  13114. if test x"$ac_file" = x-; then
  13115. echo "/* Generated by configure. */" >$tmp/config.h
  13116. else
  13117. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  13118. fi
  13119. cat $tmp/in >>$tmp/config.h
  13120. rm -f $tmp/in
  13121. if test x"$ac_file" != x-; then
  13122. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  13123. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  13124. echo "$as_me: $ac_file is unchanged" >&6;}
  13125. else
  13126. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  13127. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13128. X"$ac_file" : 'X\(//\)[^/]' \| \
  13129. X"$ac_file" : 'X\(//\)$' \| \
  13130. X"$ac_file" : 'X\(/\)' \| \
  13131. . : '\(.\)' 2>/dev/null ||
  13132. echo X"$ac_file" |
  13133. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  13134. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  13135. /^X\(\/\/\)$/{ s//\1/; q; }
  13136. /^X\(\/\).*/{ s//\1/; q; }
  13137. s/.*/./; q'`
  13138. { if $as_mkdir_p; then
  13139. mkdir -p "$ac_dir"
  13140. else
  13141. as_dir="$ac_dir"
  13142. as_dirs=
  13143. while test ! -d "$as_dir"; do
  13144. as_dirs="$as_dir $as_dirs"
  13145. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  13146. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13147. X"$as_dir" : 'X\(//\)[^/]' \| \
  13148. X"$as_dir" : 'X\(//\)$' \| \
  13149. X"$as_dir" : 'X\(/\)' \| \
  13150. . : '\(.\)' 2>/dev/null ||
  13151. echo X"$as_dir" |
  13152. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  13153. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  13154. /^X\(\/\/\)$/{ s//\1/; q; }
  13155. /^X\(\/\).*/{ s//\1/; q; }
  13156. s/.*/./; q'`
  13157. done
  13158. test ! -n "$as_dirs" || mkdir $as_dirs
  13159. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  13160. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  13161. { (exit 1); exit 1; }; }; }
  13162. rm -f $ac_file
  13163. mv $tmp/config.h $ac_file
  13164. fi
  13165. else
  13166. cat $tmp/config.h
  13167. rm -f $tmp/config.h
  13168. fi
  13169. done
  13170. _ACEOF
  13171. cat >>$CONFIG_STATUS <<\_ACEOF
  13172. #
  13173. # CONFIG_COMMANDS section.
  13174. #
  13175. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  13176. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  13177. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  13178. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  13179. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13180. X"$ac_dest" : 'X\(//\)[^/]' \| \
  13181. X"$ac_dest" : 'X\(//\)$' \| \
  13182. X"$ac_dest" : 'X\(/\)' \| \
  13183. . : '\(.\)' 2>/dev/null ||
  13184. echo X"$ac_dest" |
  13185. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  13186. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  13187. /^X\(\/\/\)$/{ s//\1/; q; }
  13188. /^X\(\/\).*/{ s//\1/; q; }
  13189. s/.*/./; q'`
  13190. { if $as_mkdir_p; then
  13191. mkdir -p "$ac_dir"
  13192. else
  13193. as_dir="$ac_dir"
  13194. as_dirs=
  13195. while test ! -d "$as_dir"; do
  13196. as_dirs="$as_dir $as_dirs"
  13197. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  13198. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13199. X"$as_dir" : 'X\(//\)[^/]' \| \
  13200. X"$as_dir" : 'X\(//\)$' \| \
  13201. X"$as_dir" : 'X\(/\)' \| \
  13202. . : '\(.\)' 2>/dev/null ||
  13203. echo X"$as_dir" |
  13204. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  13205. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  13206. /^X\(\/\/\)$/{ s//\1/; q; }
  13207. /^X\(\/\).*/{ s//\1/; q; }
  13208. s/.*/./; q'`
  13209. done
  13210. test ! -n "$as_dirs" || mkdir $as_dirs
  13211. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  13212. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  13213. { (exit 1); exit 1; }; }; }
  13214. ac_builddir=.
  13215. if test "$ac_dir" != .; then
  13216. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  13217. # A "../" for each directory in $ac_dir_suffix.
  13218. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  13219. else
  13220. ac_dir_suffix= ac_top_builddir=
  13221. fi
  13222. case $srcdir in
  13223. .) # No --srcdir option. We are building in place.
  13224. ac_srcdir=.
  13225. if test -z "$ac_top_builddir"; then
  13226. ac_top_srcdir=.
  13227. else
  13228. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  13229. fi ;;
  13230. [\\/]* | ?:[\\/]* ) # Absolute path.
  13231. ac_srcdir=$srcdir$ac_dir_suffix;
  13232. ac_top_srcdir=$srcdir ;;
  13233. *) # Relative path.
  13234. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  13235. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  13236. esac
  13237. # Do not use `cd foo && pwd` to compute absolute paths, because
  13238. # the directories may not exist.
  13239. case `pwd` in
  13240. .) ac_abs_builddir="$ac_dir";;
  13241. *)
  13242. case "$ac_dir" in
  13243. .) ac_abs_builddir=`pwd`;;
  13244. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  13245. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  13246. esac;;
  13247. esac
  13248. case $ac_abs_builddir in
  13249. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  13250. *)
  13251. case ${ac_top_builddir}. in
  13252. .) ac_abs_top_builddir=$ac_abs_builddir;;
  13253. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  13254. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  13255. esac;;
  13256. esac
  13257. case $ac_abs_builddir in
  13258. .) ac_abs_srcdir=$ac_srcdir;;
  13259. *)
  13260. case $ac_srcdir in
  13261. .) ac_abs_srcdir=$ac_abs_builddir;;
  13262. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  13263. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  13264. esac;;
  13265. esac
  13266. case $ac_abs_builddir in
  13267. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  13268. *)
  13269. case $ac_top_srcdir in
  13270. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  13271. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  13272. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  13273. esac;;
  13274. esac
  13275. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  13276. echo "$as_me: executing $ac_dest commands" >&6;}
  13277. case $ac_dest in
  13278. replace-if-changed )
  13279. egg_replace_file="lush.h"
  13280. cat > conftest.out << EOF
  13281. /* Ignore me but do not erase me. I am a kludge. */
  13282. #include "${egg_tclinc}/${egg_tclincfn}"
  13283. EOF
  13284. if test -f "$egg_replace_file" && cmp -s conftest.out $egg_replace_file; then
  13285. echo "lush.h is unchanged"
  13286. else
  13287. echo "creating lush.h"
  13288. mv conftest.out $egg_replace_file
  13289. fi
  13290. rm -f conftest.out
  13291. ;;
  13292. esac
  13293. done
  13294. _ACEOF
  13295. cat >>$CONFIG_STATUS <<\_ACEOF
  13296. { (exit 0); exit 0; }
  13297. _ACEOF
  13298. chmod +x $CONFIG_STATUS
  13299. ac_clean_files=$ac_clean_files_save
  13300. # configure is writing to config.log, and then calls config.status.
  13301. # config.status does its own redirection, appending to config.log.
  13302. # Unfortunately, on DOS this fails, as config.log is still kept open
  13303. # by configure, so config.status won't be able to write to it; its
  13304. # output is simply discarded. So we exec the FD to /dev/null,
  13305. # effectively closing config.log, so it can be properly (re)opened and
  13306. # appended to by config.status. When coming back to configure, we
  13307. # need to make the FD available again.
  13308. if test "$no_create" != yes; then
  13309. ac_cs_success=:
  13310. ac_config_status_args=
  13311. test "$silent" = yes &&
  13312. ac_config_status_args="$ac_config_status_args --quiet"
  13313. exec 5>/dev/null
  13314. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13315. exec 5>>config.log
  13316. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13317. # would make configure fail if this is the last instruction.
  13318. $ac_cs_success || { (exit 1); exit 1; }
  13319. fi