configure 371 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.16 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.59.
  5. #
  6. # Copyright (C) 2003 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. #
  10. # Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be Bourne compatible
  15. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16. emulate sh
  17. NULLCMD=:
  18. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19. # is contrary to our usage. Disable this feature.
  20. alias -g '${1+"$@"}'='"$@"'
  21. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  22. set -o posix
  23. fi
  24. DUALCASE=1; export DUALCASE # for MKS sh
  25. # Support unset when possible.
  26. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  27. as_unset=unset
  28. else
  29. as_unset=false
  30. fi
  31. # Work around bugs in pre-3.0 UWIN ksh.
  32. $as_unset ENV MAIL MAILPATH
  33. PS1='$ '
  34. PS2='> '
  35. PS4='+ '
  36. # NLS nuisances.
  37. for as_var in \
  38. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  39. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  40. LC_TELEPHONE LC_TIME
  41. do
  42. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  43. eval $as_var=C; export $as_var
  44. else
  45. $as_unset $as_var
  46. fi
  47. done
  48. # Required to use basename.
  49. if expr a : '\(a\)' >/dev/null 2>&1; then
  50. as_expr=expr
  51. else
  52. as_expr=false
  53. fi
  54. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  55. as_basename=basename
  56. else
  57. as_basename=false
  58. fi
  59. # Name of the executable.
  60. as_me=`$as_basename "$0" ||
  61. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  62. X"$0" : 'X\(//\)$' \| \
  63. X"$0" : 'X\(/\)$' \| \
  64. . : '\(.\)' 2>/dev/null ||
  65. echo X/"$0" |
  66. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  67. /^X\/\(\/\/\)$/{ s//\1/; q; }
  68. /^X\/\(\/\).*/{ s//\1/; q; }
  69. s/.*/./; q'`
  70. # PATH needs CR, and LINENO needs CR and PATH.
  71. # Avoid depending upon Character Ranges.
  72. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  73. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  74. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  75. as_cr_digits='0123456789'
  76. as_cr_alnum=$as_cr_Letters$as_cr_digits
  77. # The user is always right.
  78. if test "${PATH_SEPARATOR+set}" != set; then
  79. echo "#! /bin/sh" >conf$$.sh
  80. echo "exit 0" >>conf$$.sh
  81. chmod +x conf$$.sh
  82. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  83. PATH_SEPARATOR=';'
  84. else
  85. PATH_SEPARATOR=:
  86. fi
  87. rm -f conf$$.sh
  88. fi
  89. as_lineno_1=$LINENO
  90. as_lineno_2=$LINENO
  91. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  92. test "x$as_lineno_1" != "x$as_lineno_2" &&
  93. test "x$as_lineno_3" = "x$as_lineno_2" || {
  94. # Find who we are. Look in the path if we contain no path at all
  95. # relative or not.
  96. case $0 in
  97. *[\\/]* ) as_myself=$0 ;;
  98. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  99. for as_dir in $PATH
  100. do
  101. IFS=$as_save_IFS
  102. test -z "$as_dir" && as_dir=.
  103. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  104. done
  105. ;;
  106. esac
  107. # We did not find ourselves, most probably we were run as `sh COMMAND'
  108. # in which case we are not to be found in the path.
  109. if test "x$as_myself" = x; then
  110. as_myself=$0
  111. fi
  112. if test ! -f "$as_myself"; then
  113. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  114. { (exit 1); exit 1; }; }
  115. fi
  116. case $CONFIG_SHELL in
  117. '')
  118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  119. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  120. do
  121. IFS=$as_save_IFS
  122. test -z "$as_dir" && as_dir=.
  123. for as_base in sh bash ksh sh5; do
  124. case $as_dir in
  125. /*)
  126. if ("$as_dir/$as_base" -c '
  127. as_lineno_1=$LINENO
  128. as_lineno_2=$LINENO
  129. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  130. test "x$as_lineno_1" != "x$as_lineno_2" &&
  131. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  132. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  133. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  134. CONFIG_SHELL=$as_dir/$as_base
  135. export CONFIG_SHELL
  136. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  137. fi;;
  138. esac
  139. done
  140. done
  141. ;;
  142. esac
  143. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  144. # uniformly replaced by the line number. The first 'sed' inserts a
  145. # line-number line before each line; the second 'sed' does the real
  146. # work. The second script uses 'N' to pair each line-number line
  147. # with the numbered line, and appends trailing '-' during
  148. # substitution so that $LINENO is not a special case at line end.
  149. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  150. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  151. sed '=' <$as_myself |
  152. sed '
  153. N
  154. s,$,-,
  155. : loop
  156. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  157. t loop
  158. s,-$,,
  159. s,^['$as_cr_digits']*\n,,
  160. ' >$as_me.lineno &&
  161. chmod +x $as_me.lineno ||
  162. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  163. { (exit 1); exit 1; }; }
  164. # Don't try to exec as it changes $[0], causing all sort of problems
  165. # (the dirname of $[0] is not the place where we might find the
  166. # original and so on. Autoconf is especially sensible to this).
  167. . ./$as_me.lineno
  168. # Exit status is that of the last command.
  169. exit
  170. }
  171. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  172. *c*,-n*) ECHO_N= ECHO_C='
  173. ' ECHO_T=' ' ;;
  174. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  175. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  176. esac
  177. if expr a : '\(a\)' >/dev/null 2>&1; then
  178. as_expr=expr
  179. else
  180. as_expr=false
  181. fi
  182. rm -f conf$$ conf$$.exe conf$$.file
  183. echo >conf$$.file
  184. if ln -s conf$$.file conf$$ 2>/dev/null; then
  185. # We could just check for DJGPP; but this test a) works b) is more generic
  186. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  187. if test -f conf$$.exe; then
  188. # Don't use ln at all; we don't have any links
  189. as_ln_s='cp -p'
  190. else
  191. as_ln_s='ln -s'
  192. fi
  193. elif ln conf$$.file conf$$ 2>/dev/null; then
  194. as_ln_s=ln
  195. else
  196. as_ln_s='cp -p'
  197. fi
  198. rm -f conf$$ conf$$.exe conf$$.file
  199. if mkdir -p . 2>/dev/null; then
  200. as_mkdir_p=:
  201. else
  202. test -d ./-p && rmdir ./-p
  203. as_mkdir_p=false
  204. fi
  205. as_executable_p="test -f"
  206. # Sed expression to map a string onto a valid CPP name.
  207. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  208. # Sed expression to map a string onto a valid variable name.
  209. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  210. # IFS
  211. # We need space, tab and new line, in precisely that order.
  212. as_nl='
  213. '
  214. IFS=" $as_nl"
  215. # CDPATH.
  216. $as_unset CDPATH
  217. # Name of the host.
  218. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  219. # so uname gets run too.
  220. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  221. exec 6>&1
  222. #
  223. # Initializations.
  224. #
  225. ac_default_prefix=/usr/local
  226. ac_config_libobj_dir=.
  227. cross_compiling=no
  228. subdirs=
  229. MFLAGS=
  230. MAKEFLAGS=
  231. SHELL=${CONFIG_SHELL-/bin/sh}
  232. # Maximum number of lines to put in a shell here document.
  233. # This variable seems obsolete. It should probably be removed, and
  234. # only ac_max_sed_lines should be used.
  235. : ${ac_max_here_lines=38}
  236. # Identity of this package.
  237. PACKAGE_NAME=
  238. PACKAGE_TARNAME=
  239. PACKAGE_VERSION=
  240. PACKAGE_STRING=
  241. PACKAGE_BUGREPORT=
  242. ac_unique_file="wraith"
  243. ac_unique_file="src/eggdrop.h"
  244. # Factoring default headers for most tests.
  245. ac_includes_default="\
  246. #include <stdio.h>
  247. #if HAVE_SYS_TYPES_H
  248. # include <sys/types.h>
  249. #endif
  250. #if HAVE_SYS_STAT_H
  251. # include <sys/stat.h>
  252. #endif
  253. #if STDC_HEADERS
  254. # include <stdlib.h>
  255. # include <stddef.h>
  256. #else
  257. # if HAVE_STDLIB_H
  258. # include <stdlib.h>
  259. # endif
  260. #endif
  261. #if HAVE_STRING_H
  262. # if !STDC_HEADERS && HAVE_MEMORY_H
  263. # include <memory.h>
  264. # endif
  265. # include <string.h>
  266. #endif
  267. #if HAVE_STRINGS_H
  268. # include <strings.h>
  269. #endif
  270. #if HAVE_INTTYPES_H
  271. # include <inttypes.h>
  272. #else
  273. # if HAVE_STDINT_H
  274. # include <stdint.h>
  275. # endif
  276. #endif
  277. #if HAVE_UNISTD_H
  278. # include <unistd.h>
  279. #endif"
  280. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS egg_ac_parameters CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CCDEPMODE CCDEBUG SET_MAKE HEAD_1 AWK BASENAME OBJCOPY STRIP UNAME DISTCC RESLIB RESINCLUDE ZLIB SSL LIBOBJS 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. Some influential environment variables:
  741. CC C compiler command
  742. CFLAGS C compiler flags
  743. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  744. nonstandard directory <lib dir>
  745. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  746. headers in a nonstandard directory <include dir>
  747. CPP C preprocessor
  748. Use these variables to override the choices made by `configure' or to help
  749. it to find libraries and programs with nonstandard names/locations.
  750. _ACEOF
  751. fi
  752. if test "$ac_init_help" = "recursive"; then
  753. # If there are subdirs, report their specific --help.
  754. ac_popdir=`pwd`
  755. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  756. test -d $ac_dir || continue
  757. ac_builddir=.
  758. if test "$ac_dir" != .; then
  759. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  760. # A "../" for each directory in $ac_dir_suffix.
  761. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  762. else
  763. ac_dir_suffix= ac_top_builddir=
  764. fi
  765. case $srcdir in
  766. .) # No --srcdir option. We are building in place.
  767. ac_srcdir=.
  768. if test -z "$ac_top_builddir"; then
  769. ac_top_srcdir=.
  770. else
  771. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  772. fi ;;
  773. [\\/]* | ?:[\\/]* ) # Absolute path.
  774. ac_srcdir=$srcdir$ac_dir_suffix;
  775. ac_top_srcdir=$srcdir ;;
  776. *) # Relative path.
  777. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  778. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  779. esac
  780. # Do not use `cd foo && pwd` to compute absolute paths, because
  781. # the directories may not exist.
  782. case `pwd` in
  783. .) ac_abs_builddir="$ac_dir";;
  784. *)
  785. case "$ac_dir" in
  786. .) ac_abs_builddir=`pwd`;;
  787. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  788. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  789. esac;;
  790. esac
  791. case $ac_abs_builddir in
  792. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  793. *)
  794. case ${ac_top_builddir}. in
  795. .) ac_abs_top_builddir=$ac_abs_builddir;;
  796. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  797. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  798. esac;;
  799. esac
  800. case $ac_abs_builddir in
  801. .) ac_abs_srcdir=$ac_srcdir;;
  802. *)
  803. case $ac_srcdir in
  804. .) ac_abs_srcdir=$ac_abs_builddir;;
  805. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  806. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  807. esac;;
  808. esac
  809. case $ac_abs_builddir in
  810. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  811. *)
  812. case $ac_top_srcdir in
  813. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  814. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  815. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  816. esac;;
  817. esac
  818. cd $ac_dir
  819. # Check for guested configure; otherwise get Cygnus style configure.
  820. if test -f $ac_srcdir/configure.gnu; then
  821. echo
  822. $SHELL $ac_srcdir/configure.gnu --help=recursive
  823. elif test -f $ac_srcdir/configure; then
  824. echo
  825. $SHELL $ac_srcdir/configure --help=recursive
  826. elif test -f $ac_srcdir/configure.ac ||
  827. test -f $ac_srcdir/configure.in; then
  828. echo
  829. $ac_configure --help
  830. else
  831. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  832. fi
  833. cd "$ac_popdir"
  834. done
  835. fi
  836. test -n "$ac_init_help" && exit 0
  837. if $ac_init_version; then
  838. cat <<\_ACEOF
  839. Copyright (C) 2003 Free Software Foundation, Inc.
  840. This configure script is free software; the Free Software Foundation
  841. gives unlimited permission to copy, distribute and modify it.
  842. Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  843. _ACEOF
  844. exit 0
  845. fi
  846. exec 5>config.log
  847. cat >&5 <<_ACEOF
  848. This file contains any messages produced by compilers while
  849. running configure, to aid debugging if configure makes a mistake.
  850. It was created by $as_me, which was
  851. generated by GNU Autoconf 2.59. Invocation command line was
  852. $ $0 $@
  853. _ACEOF
  854. {
  855. cat <<_ASUNAME
  856. ## --------- ##
  857. ## Platform. ##
  858. ## --------- ##
  859. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  860. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  861. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  862. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  863. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  864. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  865. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  866. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  867. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  868. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  869. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  870. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  871. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  872. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  873. _ASUNAME
  874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  875. for as_dir in $PATH
  876. do
  877. IFS=$as_save_IFS
  878. test -z "$as_dir" && as_dir=.
  879. echo "PATH: $as_dir"
  880. done
  881. } >&5
  882. cat >&5 <<_ACEOF
  883. ## ----------- ##
  884. ## Core tests. ##
  885. ## ----------- ##
  886. _ACEOF
  887. # Keep a trace of the command line.
  888. # Strip out --no-create and --no-recursion so they do not pile up.
  889. # Strip out --silent because we don't want to record it for future runs.
  890. # Also quote any args containing shell meta-characters.
  891. # Make two passes to allow for proper duplicate-argument suppression.
  892. ac_configure_args=
  893. ac_configure_args0=
  894. ac_configure_args1=
  895. ac_sep=
  896. ac_must_keep_next=false
  897. for ac_pass in 1 2
  898. do
  899. for ac_arg
  900. do
  901. case $ac_arg in
  902. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  903. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  904. | -silent | --silent | --silen | --sile | --sil)
  905. continue ;;
  906. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  907. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  908. esac
  909. case $ac_pass in
  910. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  911. 2)
  912. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  913. if test $ac_must_keep_next = true; then
  914. ac_must_keep_next=false # Got value, back to normal.
  915. else
  916. case $ac_arg in
  917. *=* | --config-cache | -C | -disable-* | --disable-* \
  918. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  919. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  920. | -with-* | --with-* | -without-* | --without-* | --x)
  921. case "$ac_configure_args0 " in
  922. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  923. esac
  924. ;;
  925. -* ) ac_must_keep_next=true ;;
  926. esac
  927. fi
  928. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  929. # Get rid of the leading space.
  930. ac_sep=" "
  931. ;;
  932. esac
  933. done
  934. done
  935. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  936. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  937. # When interrupted or exit'd, cleanup temporary files, and complete
  938. # config.log. We remove comments because anyway the quotes in there
  939. # would cause problems or look ugly.
  940. # WARNING: Be sure not to use single quotes in there, as some shells,
  941. # such as our DU 5.0 friend, will then `close' the trap.
  942. trap 'exit_status=$?
  943. # Save into config.log some information that might help in debugging.
  944. {
  945. echo
  946. cat <<\_ASBOX
  947. ## ---------------- ##
  948. ## Cache variables. ##
  949. ## ---------------- ##
  950. _ASBOX
  951. echo
  952. # The following way of writing the cache mishandles newlines in values,
  953. {
  954. (set) 2>&1 |
  955. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  956. *ac_space=\ *)
  957. sed -n \
  958. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  959. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  960. ;;
  961. *)
  962. sed -n \
  963. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  964. ;;
  965. esac;
  966. }
  967. echo
  968. cat <<\_ASBOX
  969. ## ----------------- ##
  970. ## Output variables. ##
  971. ## ----------------- ##
  972. _ASBOX
  973. echo
  974. for ac_var in $ac_subst_vars
  975. do
  976. eval ac_val=$`echo $ac_var`
  977. echo "$ac_var='"'"'$ac_val'"'"'"
  978. done | sort
  979. echo
  980. if test -n "$ac_subst_files"; then
  981. cat <<\_ASBOX
  982. ## ------------- ##
  983. ## Output files. ##
  984. ## ------------- ##
  985. _ASBOX
  986. echo
  987. for ac_var in $ac_subst_files
  988. do
  989. eval ac_val=$`echo $ac_var`
  990. echo "$ac_var='"'"'$ac_val'"'"'"
  991. done | sort
  992. echo
  993. fi
  994. if test -s confdefs.h; then
  995. cat <<\_ASBOX
  996. ## ----------- ##
  997. ## confdefs.h. ##
  998. ## ----------- ##
  999. _ASBOX
  1000. echo
  1001. sed "/^$/d" confdefs.h | sort
  1002. echo
  1003. fi
  1004. test "$ac_signal" != 0 &&
  1005. echo "$as_me: caught signal $ac_signal"
  1006. echo "$as_me: exit $exit_status"
  1007. } >&5
  1008. rm -f core *.core &&
  1009. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1010. exit $exit_status
  1011. ' 0
  1012. for ac_signal in 1 2 13 15; do
  1013. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1014. done
  1015. ac_signal=0
  1016. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1017. rm -rf conftest* confdefs.h
  1018. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1019. echo >confdefs.h
  1020. # Predefined preprocessor variables.
  1021. cat >>confdefs.h <<_ACEOF
  1022. #define PACKAGE_NAME "$PACKAGE_NAME"
  1023. _ACEOF
  1024. cat >>confdefs.h <<_ACEOF
  1025. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1026. _ACEOF
  1027. cat >>confdefs.h <<_ACEOF
  1028. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1029. _ACEOF
  1030. cat >>confdefs.h <<_ACEOF
  1031. #define PACKAGE_STRING "$PACKAGE_STRING"
  1032. _ACEOF
  1033. cat >>confdefs.h <<_ACEOF
  1034. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1035. _ACEOF
  1036. # Let the site file select an alternate cache file if it wants to.
  1037. # Prefer explicitly selected file to automatically selected ones.
  1038. if test -z "$CONFIG_SITE"; then
  1039. if test "x$prefix" != xNONE; then
  1040. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1041. else
  1042. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1043. fi
  1044. fi
  1045. for ac_site_file in $CONFIG_SITE; do
  1046. if test -r "$ac_site_file"; then
  1047. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1048. echo "$as_me: loading site script $ac_site_file" >&6;}
  1049. sed 's/^/| /' "$ac_site_file" >&5
  1050. . "$ac_site_file"
  1051. fi
  1052. done
  1053. if test -r "$cache_file"; then
  1054. # Some versions of bash will fail to source /dev/null (special
  1055. # files actually), so we avoid doing that.
  1056. if test -f "$cache_file"; then
  1057. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1058. echo "$as_me: loading cache $cache_file" >&6;}
  1059. case $cache_file in
  1060. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1061. *) . ./$cache_file;;
  1062. esac
  1063. fi
  1064. else
  1065. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1066. echo "$as_me: creating cache $cache_file" >&6;}
  1067. >$cache_file
  1068. fi
  1069. # Check that the precious variables saved in the cache have kept the same
  1070. # value.
  1071. ac_cache_corrupted=false
  1072. for ac_var in `(set) 2>&1 |
  1073. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1074. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1075. eval ac_new_set=\$ac_env_${ac_var}_set
  1076. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1077. eval ac_new_val="\$ac_env_${ac_var}_value"
  1078. case $ac_old_set,$ac_new_set in
  1079. set,)
  1080. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1081. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1082. ac_cache_corrupted=: ;;
  1083. ,set)
  1084. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1085. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1086. ac_cache_corrupted=: ;;
  1087. ,);;
  1088. *)
  1089. if test "x$ac_old_val" != "x$ac_new_val"; then
  1090. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1091. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1092. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1093. echo "$as_me: former value: $ac_old_val" >&2;}
  1094. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1095. echo "$as_me: current value: $ac_new_val" >&2;}
  1096. ac_cache_corrupted=:
  1097. fi;;
  1098. esac
  1099. # Pass precious variables to config.status.
  1100. if test "$ac_new_set" = set; then
  1101. case $ac_new_val in
  1102. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1103. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1104. *) ac_arg=$ac_var=$ac_new_val ;;
  1105. esac
  1106. case " $ac_configure_args " in
  1107. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1108. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1109. esac
  1110. fi
  1111. done
  1112. if $ac_cache_corrupted; then
  1113. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1114. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1115. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1116. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1117. { (exit 1); exit 1; }; }
  1118. fi
  1119. ac_ext=c
  1120. ac_cpp='$CPP $CPPFLAGS'
  1121. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1122. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1123. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1124. ac_config_headers="$ac_config_headers config.h"
  1125. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1126. egg_ac_parameters=
  1127. ac_prev=
  1128. for ac_arg in $ac_configure_args; do
  1129. if test -n "$ac_prev"; then
  1130. ac_prev=
  1131. continue
  1132. fi
  1133. case $ac_arg in
  1134. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1135. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1136. ac_prev=cache_file ;;
  1137. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1138. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1139. | --c=*)
  1140. ;;
  1141. --config-cache | -C)
  1142. ;;
  1143. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1144. ac_prev=srcdir ;;
  1145. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1146. ;;
  1147. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1148. esac
  1149. done
  1150. # Setup build environment
  1151. ac_ext=c
  1152. ac_cpp='$CPP $CPPFLAGS'
  1153. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1154. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1155. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1156. if test -n "$ac_tool_prefix"; then
  1157. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1158. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1159. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1160. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1161. if test "${ac_cv_prog_CC+set}" = set; then
  1162. echo $ECHO_N "(cached) $ECHO_C" >&6
  1163. else
  1164. if test -n "$CC"; then
  1165. ac_cv_prog_CC="$CC" # Let the user override the test.
  1166. else
  1167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1168. for as_dir in $PATH
  1169. do
  1170. IFS=$as_save_IFS
  1171. test -z "$as_dir" && as_dir=.
  1172. for ac_exec_ext in '' $ac_executable_extensions; do
  1173. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1174. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1175. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1176. break 2
  1177. fi
  1178. done
  1179. done
  1180. fi
  1181. fi
  1182. CC=$ac_cv_prog_CC
  1183. if test -n "$CC"; then
  1184. echo "$as_me:$LINENO: result: $CC" >&5
  1185. echo "${ECHO_T}$CC" >&6
  1186. else
  1187. echo "$as_me:$LINENO: result: no" >&5
  1188. echo "${ECHO_T}no" >&6
  1189. fi
  1190. fi
  1191. if test -z "$ac_cv_prog_CC"; then
  1192. ac_ct_CC=$CC
  1193. # Extract the first word of "gcc", so it can be a program name with args.
  1194. set dummy gcc; ac_word=$2
  1195. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1196. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1197. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1198. echo $ECHO_N "(cached) $ECHO_C" >&6
  1199. else
  1200. if test -n "$ac_ct_CC"; then
  1201. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1202. else
  1203. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1204. for as_dir in $PATH
  1205. do
  1206. IFS=$as_save_IFS
  1207. test -z "$as_dir" && as_dir=.
  1208. for ac_exec_ext in '' $ac_executable_extensions; do
  1209. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1210. ac_cv_prog_ac_ct_CC="gcc"
  1211. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1212. break 2
  1213. fi
  1214. done
  1215. done
  1216. fi
  1217. fi
  1218. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1219. if test -n "$ac_ct_CC"; then
  1220. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1221. echo "${ECHO_T}$ac_ct_CC" >&6
  1222. else
  1223. echo "$as_me:$LINENO: result: no" >&5
  1224. echo "${ECHO_T}no" >&6
  1225. fi
  1226. CC=$ac_ct_CC
  1227. else
  1228. CC="$ac_cv_prog_CC"
  1229. fi
  1230. if test -z "$CC"; then
  1231. if test -n "$ac_tool_prefix"; then
  1232. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1233. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1234. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1235. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1236. if test "${ac_cv_prog_CC+set}" = set; then
  1237. echo $ECHO_N "(cached) $ECHO_C" >&6
  1238. else
  1239. if test -n "$CC"; then
  1240. ac_cv_prog_CC="$CC" # Let the user override the test.
  1241. else
  1242. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1243. for as_dir in $PATH
  1244. do
  1245. IFS=$as_save_IFS
  1246. test -z "$as_dir" && as_dir=.
  1247. for ac_exec_ext in '' $ac_executable_extensions; do
  1248. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1249. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1250. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1251. break 2
  1252. fi
  1253. done
  1254. done
  1255. fi
  1256. fi
  1257. CC=$ac_cv_prog_CC
  1258. if test -n "$CC"; then
  1259. echo "$as_me:$LINENO: result: $CC" >&5
  1260. echo "${ECHO_T}$CC" >&6
  1261. else
  1262. echo "$as_me:$LINENO: result: no" >&5
  1263. echo "${ECHO_T}no" >&6
  1264. fi
  1265. fi
  1266. if test -z "$ac_cv_prog_CC"; then
  1267. ac_ct_CC=$CC
  1268. # Extract the first word of "cc", so it can be a program name with args.
  1269. set dummy cc; ac_word=$2
  1270. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1271. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1272. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1273. echo $ECHO_N "(cached) $ECHO_C" >&6
  1274. else
  1275. if test -n "$ac_ct_CC"; then
  1276. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1277. else
  1278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1279. for as_dir in $PATH
  1280. do
  1281. IFS=$as_save_IFS
  1282. test -z "$as_dir" && as_dir=.
  1283. for ac_exec_ext in '' $ac_executable_extensions; do
  1284. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1285. ac_cv_prog_ac_ct_CC="cc"
  1286. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1287. break 2
  1288. fi
  1289. done
  1290. done
  1291. fi
  1292. fi
  1293. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1294. if test -n "$ac_ct_CC"; then
  1295. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1296. echo "${ECHO_T}$ac_ct_CC" >&6
  1297. else
  1298. echo "$as_me:$LINENO: result: no" >&5
  1299. echo "${ECHO_T}no" >&6
  1300. fi
  1301. CC=$ac_ct_CC
  1302. else
  1303. CC="$ac_cv_prog_CC"
  1304. fi
  1305. fi
  1306. if test -z "$CC"; then
  1307. # Extract the first word of "cc", so it can be a program name with args.
  1308. set dummy cc; ac_word=$2
  1309. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1310. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1311. if test "${ac_cv_prog_CC+set}" = set; then
  1312. echo $ECHO_N "(cached) $ECHO_C" >&6
  1313. else
  1314. if test -n "$CC"; then
  1315. ac_cv_prog_CC="$CC" # Let the user override the test.
  1316. else
  1317. ac_prog_rejected=no
  1318. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1319. for as_dir in $PATH
  1320. do
  1321. IFS=$as_save_IFS
  1322. test -z "$as_dir" && as_dir=.
  1323. for ac_exec_ext in '' $ac_executable_extensions; do
  1324. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1325. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1326. ac_prog_rejected=yes
  1327. continue
  1328. fi
  1329. ac_cv_prog_CC="cc"
  1330. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1331. break 2
  1332. fi
  1333. done
  1334. done
  1335. if test $ac_prog_rejected = yes; then
  1336. # We found a bogon in the path, so make sure we never use it.
  1337. set dummy $ac_cv_prog_CC
  1338. shift
  1339. if test $# != 0; then
  1340. # We chose a different compiler from the bogus one.
  1341. # However, it has the same basename, so the bogon will be chosen
  1342. # first if we set CC to just the basename; use the full file name.
  1343. shift
  1344. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1345. fi
  1346. fi
  1347. fi
  1348. fi
  1349. CC=$ac_cv_prog_CC
  1350. if test -n "$CC"; then
  1351. echo "$as_me:$LINENO: result: $CC" >&5
  1352. echo "${ECHO_T}$CC" >&6
  1353. else
  1354. echo "$as_me:$LINENO: result: no" >&5
  1355. echo "${ECHO_T}no" >&6
  1356. fi
  1357. fi
  1358. if test -z "$CC"; then
  1359. if test -n "$ac_tool_prefix"; then
  1360. for ac_prog in cl
  1361. do
  1362. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1363. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1364. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1365. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1366. if test "${ac_cv_prog_CC+set}" = set; then
  1367. echo $ECHO_N "(cached) $ECHO_C" >&6
  1368. else
  1369. if test -n "$CC"; then
  1370. ac_cv_prog_CC="$CC" # Let the user override the test.
  1371. else
  1372. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1373. for as_dir in $PATH
  1374. do
  1375. IFS=$as_save_IFS
  1376. test -z "$as_dir" && as_dir=.
  1377. for ac_exec_ext in '' $ac_executable_extensions; do
  1378. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1379. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1380. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1381. break 2
  1382. fi
  1383. done
  1384. done
  1385. fi
  1386. fi
  1387. CC=$ac_cv_prog_CC
  1388. if test -n "$CC"; then
  1389. echo "$as_me:$LINENO: result: $CC" >&5
  1390. echo "${ECHO_T}$CC" >&6
  1391. else
  1392. echo "$as_me:$LINENO: result: no" >&5
  1393. echo "${ECHO_T}no" >&6
  1394. fi
  1395. test -n "$CC" && break
  1396. done
  1397. fi
  1398. if test -z "$CC"; then
  1399. ac_ct_CC=$CC
  1400. for ac_prog in cl
  1401. do
  1402. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1403. set dummy $ac_prog; ac_word=$2
  1404. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1405. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1406. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1407. echo $ECHO_N "(cached) $ECHO_C" >&6
  1408. else
  1409. if test -n "$ac_ct_CC"; then
  1410. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1411. else
  1412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1413. for as_dir in $PATH
  1414. do
  1415. IFS=$as_save_IFS
  1416. test -z "$as_dir" && as_dir=.
  1417. for ac_exec_ext in '' $ac_executable_extensions; do
  1418. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1419. ac_cv_prog_ac_ct_CC="$ac_prog"
  1420. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1421. break 2
  1422. fi
  1423. done
  1424. done
  1425. fi
  1426. fi
  1427. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1428. if test -n "$ac_ct_CC"; then
  1429. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1430. echo "${ECHO_T}$ac_ct_CC" >&6
  1431. else
  1432. echo "$as_me:$LINENO: result: no" >&5
  1433. echo "${ECHO_T}no" >&6
  1434. fi
  1435. test -n "$ac_ct_CC" && break
  1436. done
  1437. CC=$ac_ct_CC
  1438. fi
  1439. fi
  1440. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1441. See \`config.log' for more details." >&5
  1442. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1443. See \`config.log' for more details." >&2;}
  1444. { (exit 1); exit 1; }; }
  1445. # Provide some information about the compiler.
  1446. echo "$as_me:$LINENO:" \
  1447. "checking for C compiler version" >&5
  1448. ac_compiler=`set X $ac_compile; echo $2`
  1449. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1450. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1451. ac_status=$?
  1452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1453. (exit $ac_status); }
  1454. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1455. (eval $ac_compiler -v </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. cat >conftest.$ac_ext <<_ACEOF
  1465. /* confdefs.h. */
  1466. _ACEOF
  1467. cat confdefs.h >>conftest.$ac_ext
  1468. cat >>conftest.$ac_ext <<_ACEOF
  1469. /* end confdefs.h. */
  1470. int
  1471. main ()
  1472. {
  1473. ;
  1474. return 0;
  1475. }
  1476. _ACEOF
  1477. ac_clean_files_save=$ac_clean_files
  1478. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1479. # Try to create an executable without -o first, disregard a.out.
  1480. # It will help us diagnose broken compilers, and finding out an intuition
  1481. # of exeext.
  1482. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1483. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1484. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1485. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1486. (eval $ac_link_default) 2>&5
  1487. ac_status=$?
  1488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1489. (exit $ac_status); }; then
  1490. # Find the output, starting from the most likely. This scheme is
  1491. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1492. # resort.
  1493. # Be careful to initialize this variable, since it used to be cached.
  1494. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1495. ac_cv_exeext=
  1496. # b.out is created by i960 compilers.
  1497. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1498. do
  1499. test -f "$ac_file" || continue
  1500. case $ac_file in
  1501. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1502. ;;
  1503. conftest.$ac_ext )
  1504. # This is the source file.
  1505. ;;
  1506. [ab].out )
  1507. # We found the default executable, but exeext='' is most
  1508. # certainly right.
  1509. break;;
  1510. *.* )
  1511. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1512. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1513. # but it would be cool to find out if it's true. Does anybody
  1514. # maintain Libtool? --akim.
  1515. export ac_cv_exeext
  1516. break;;
  1517. * )
  1518. break;;
  1519. esac
  1520. done
  1521. else
  1522. echo "$as_me: failed program was:" >&5
  1523. sed 's/^/| /' conftest.$ac_ext >&5
  1524. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1525. See \`config.log' for more details." >&5
  1526. echo "$as_me: error: C compiler cannot create executables
  1527. See \`config.log' for more details." >&2;}
  1528. { (exit 77); exit 77; }; }
  1529. fi
  1530. ac_exeext=$ac_cv_exeext
  1531. echo "$as_me:$LINENO: result: $ac_file" >&5
  1532. echo "${ECHO_T}$ac_file" >&6
  1533. # Check the compiler produces executables we can run. If not, either
  1534. # the compiler is broken, or we cross compile.
  1535. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1536. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1537. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1538. # If not cross compiling, check that we can run a simple program.
  1539. if test "$cross_compiling" != yes; then
  1540. if { ac_try='./$ac_file'
  1541. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1542. (eval $ac_try) 2>&5
  1543. ac_status=$?
  1544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1545. (exit $ac_status); }; }; then
  1546. cross_compiling=no
  1547. else
  1548. if test "$cross_compiling" = maybe; then
  1549. cross_compiling=yes
  1550. else
  1551. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1552. If you meant to cross compile, use \`--host'.
  1553. See \`config.log' for more details." >&5
  1554. echo "$as_me: error: cannot run C compiled programs.
  1555. If you meant to cross compile, use \`--host'.
  1556. See \`config.log' for more details." >&2;}
  1557. { (exit 1); exit 1; }; }
  1558. fi
  1559. fi
  1560. fi
  1561. echo "$as_me:$LINENO: result: yes" >&5
  1562. echo "${ECHO_T}yes" >&6
  1563. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1564. ac_clean_files=$ac_clean_files_save
  1565. # Check the compiler produces executables we can run. If not, either
  1566. # the compiler is broken, or we cross compile.
  1567. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1568. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1569. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1570. echo "${ECHO_T}$cross_compiling" >&6
  1571. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1572. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1573. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1574. (eval $ac_link) 2>&5
  1575. ac_status=$?
  1576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1577. (exit $ac_status); }; then
  1578. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1579. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1580. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1581. # `rm'.
  1582. for ac_file in conftest.exe conftest conftest.*; do
  1583. test -f "$ac_file" || continue
  1584. case $ac_file in
  1585. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1586. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1587. export ac_cv_exeext
  1588. break;;
  1589. * ) break;;
  1590. esac
  1591. done
  1592. else
  1593. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1594. See \`config.log' for more details." >&5
  1595. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1596. See \`config.log' for more details." >&2;}
  1597. { (exit 1); exit 1; }; }
  1598. fi
  1599. rm -f conftest$ac_cv_exeext
  1600. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1601. echo "${ECHO_T}$ac_cv_exeext" >&6
  1602. rm -f conftest.$ac_ext
  1603. EXEEXT=$ac_cv_exeext
  1604. ac_exeext=$EXEEXT
  1605. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1606. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1607. if test "${ac_cv_objext+set}" = set; then
  1608. echo $ECHO_N "(cached) $ECHO_C" >&6
  1609. else
  1610. cat >conftest.$ac_ext <<_ACEOF
  1611. /* confdefs.h. */
  1612. _ACEOF
  1613. cat confdefs.h >>conftest.$ac_ext
  1614. cat >>conftest.$ac_ext <<_ACEOF
  1615. /* end confdefs.h. */
  1616. int
  1617. main ()
  1618. {
  1619. ;
  1620. return 0;
  1621. }
  1622. _ACEOF
  1623. rm -f conftest.o conftest.obj
  1624. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1625. (eval $ac_compile) 2>&5
  1626. ac_status=$?
  1627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1628. (exit $ac_status); }; then
  1629. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1630. case $ac_file in
  1631. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1632. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1633. break;;
  1634. esac
  1635. done
  1636. else
  1637. echo "$as_me: failed program was:" >&5
  1638. sed 's/^/| /' conftest.$ac_ext >&5
  1639. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1640. See \`config.log' for more details." >&5
  1641. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1642. See \`config.log' for more details." >&2;}
  1643. { (exit 1); exit 1; }; }
  1644. fi
  1645. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1646. fi
  1647. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1648. echo "${ECHO_T}$ac_cv_objext" >&6
  1649. OBJEXT=$ac_cv_objext
  1650. ac_objext=$OBJEXT
  1651. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1652. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1653. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1654. echo $ECHO_N "(cached) $ECHO_C" >&6
  1655. else
  1656. cat >conftest.$ac_ext <<_ACEOF
  1657. /* confdefs.h. */
  1658. _ACEOF
  1659. cat confdefs.h >>conftest.$ac_ext
  1660. cat >>conftest.$ac_ext <<_ACEOF
  1661. /* end confdefs.h. */
  1662. int
  1663. main ()
  1664. {
  1665. #ifndef __GNUC__
  1666. choke me
  1667. #endif
  1668. ;
  1669. return 0;
  1670. }
  1671. _ACEOF
  1672. rm -f conftest.$ac_objext
  1673. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1674. (eval $ac_compile) 2>conftest.er1
  1675. ac_status=$?
  1676. grep -v '^ *+' conftest.er1 >conftest.err
  1677. rm -f conftest.er1
  1678. cat conftest.err >&5
  1679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1680. (exit $ac_status); } &&
  1681. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1682. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1683. (eval $ac_try) 2>&5
  1684. ac_status=$?
  1685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1686. (exit $ac_status); }; } &&
  1687. { ac_try='test -s conftest.$ac_objext'
  1688. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1689. (eval $ac_try) 2>&5
  1690. ac_status=$?
  1691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1692. (exit $ac_status); }; }; then
  1693. ac_compiler_gnu=yes
  1694. else
  1695. echo "$as_me: failed program was:" >&5
  1696. sed 's/^/| /' conftest.$ac_ext >&5
  1697. ac_compiler_gnu=no
  1698. fi
  1699. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1700. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1701. fi
  1702. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1703. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1704. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1705. ac_test_CFLAGS=${CFLAGS+set}
  1706. ac_save_CFLAGS=$CFLAGS
  1707. CFLAGS="-g"
  1708. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1709. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1710. if test "${ac_cv_prog_cc_g+set}" = set; then
  1711. echo $ECHO_N "(cached) $ECHO_C" >&6
  1712. else
  1713. cat >conftest.$ac_ext <<_ACEOF
  1714. /* confdefs.h. */
  1715. _ACEOF
  1716. cat confdefs.h >>conftest.$ac_ext
  1717. cat >>conftest.$ac_ext <<_ACEOF
  1718. /* end confdefs.h. */
  1719. int
  1720. main ()
  1721. {
  1722. ;
  1723. return 0;
  1724. }
  1725. _ACEOF
  1726. rm -f conftest.$ac_objext
  1727. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1728. (eval $ac_compile) 2>conftest.er1
  1729. ac_status=$?
  1730. grep -v '^ *+' conftest.er1 >conftest.err
  1731. rm -f conftest.er1
  1732. cat conftest.err >&5
  1733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1734. (exit $ac_status); } &&
  1735. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1736. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1737. (eval $ac_try) 2>&5
  1738. ac_status=$?
  1739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1740. (exit $ac_status); }; } &&
  1741. { ac_try='test -s conftest.$ac_objext'
  1742. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1743. (eval $ac_try) 2>&5
  1744. ac_status=$?
  1745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1746. (exit $ac_status); }; }; then
  1747. ac_cv_prog_cc_g=yes
  1748. else
  1749. echo "$as_me: failed program was:" >&5
  1750. sed 's/^/| /' conftest.$ac_ext >&5
  1751. ac_cv_prog_cc_g=no
  1752. fi
  1753. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1754. fi
  1755. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1756. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1757. if test "$ac_test_CFLAGS" = set; then
  1758. CFLAGS=$ac_save_CFLAGS
  1759. elif test $ac_cv_prog_cc_g = yes; then
  1760. if test "$GCC" = yes; then
  1761. CFLAGS="-g -O2"
  1762. else
  1763. CFLAGS="-g"
  1764. fi
  1765. else
  1766. if test "$GCC" = yes; then
  1767. CFLAGS="-O2"
  1768. else
  1769. CFLAGS=
  1770. fi
  1771. fi
  1772. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1773. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1774. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1775. echo $ECHO_N "(cached) $ECHO_C" >&6
  1776. else
  1777. ac_cv_prog_cc_stdc=no
  1778. ac_save_CC=$CC
  1779. cat >conftest.$ac_ext <<_ACEOF
  1780. /* confdefs.h. */
  1781. _ACEOF
  1782. cat confdefs.h >>conftest.$ac_ext
  1783. cat >>conftest.$ac_ext <<_ACEOF
  1784. /* end confdefs.h. */
  1785. #include <stdarg.h>
  1786. #include <stdio.h>
  1787. #include <sys/types.h>
  1788. #include <sys/stat.h>
  1789. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1790. struct buf { int x; };
  1791. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1792. static char *e (p, i)
  1793. char **p;
  1794. int i;
  1795. {
  1796. return p[i];
  1797. }
  1798. static char *f (char * (*g) (char **, int), char **p, ...)
  1799. {
  1800. char *s;
  1801. va_list v;
  1802. va_start (v,p);
  1803. s = g (p, va_arg (v,int));
  1804. va_end (v);
  1805. return s;
  1806. }
  1807. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1808. function prototypes and stuff, but not '\xHH' hex character constants.
  1809. These don't provoke an error unfortunately, instead are silently treated
  1810. as 'x'. The following induces an error, until -std1 is added to get
  1811. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  1812. array size at least. It's necessary to write '\x00'==0 to get something
  1813. that's true only with -std1. */
  1814. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1815. int test (int i, double x);
  1816. struct s1 {int (*f) (int a);};
  1817. struct s2 {int (*f) (double a);};
  1818. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1819. int argc;
  1820. char **argv;
  1821. int
  1822. main ()
  1823. {
  1824. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1825. ;
  1826. return 0;
  1827. }
  1828. _ACEOF
  1829. # Don't try gcc -ansi; that turns off useful extensions and
  1830. # breaks some systems' header files.
  1831. # AIX -qlanglvl=ansi
  1832. # Ultrix and OSF/1 -std1
  1833. # HP-UX 10.20 and later -Ae
  1834. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1835. # SVR4 -Xc -D__EXTENSIONS__
  1836. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1837. do
  1838. CC="$ac_save_CC $ac_arg"
  1839. rm -f conftest.$ac_objext
  1840. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1841. (eval $ac_compile) 2>conftest.er1
  1842. ac_status=$?
  1843. grep -v '^ *+' conftest.er1 >conftest.err
  1844. rm -f conftest.er1
  1845. cat conftest.err >&5
  1846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1847. (exit $ac_status); } &&
  1848. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1849. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1850. (eval $ac_try) 2>&5
  1851. ac_status=$?
  1852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1853. (exit $ac_status); }; } &&
  1854. { ac_try='test -s conftest.$ac_objext'
  1855. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1856. (eval $ac_try) 2>&5
  1857. ac_status=$?
  1858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1859. (exit $ac_status); }; }; then
  1860. ac_cv_prog_cc_stdc=$ac_arg
  1861. break
  1862. else
  1863. echo "$as_me: failed program was:" >&5
  1864. sed 's/^/| /' conftest.$ac_ext >&5
  1865. fi
  1866. rm -f conftest.err conftest.$ac_objext
  1867. done
  1868. rm -f conftest.$ac_ext conftest.$ac_objext
  1869. CC=$ac_save_CC
  1870. fi
  1871. case "x$ac_cv_prog_cc_stdc" in
  1872. x|xno)
  1873. echo "$as_me:$LINENO: result: none needed" >&5
  1874. echo "${ECHO_T}none needed" >&6 ;;
  1875. *)
  1876. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1877. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1878. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1879. esac
  1880. # Some people use a C++ compiler to compile C. Since we use `exit',
  1881. # in C++ we need to declare it. In case someone uses the same compiler
  1882. # for both compiling C and C++ we need to have the C++ compiler decide
  1883. # the declaration of exit, since it's the most demanding environment.
  1884. cat >conftest.$ac_ext <<_ACEOF
  1885. #ifndef __cplusplus
  1886. choke me
  1887. #endif
  1888. _ACEOF
  1889. rm -f conftest.$ac_objext
  1890. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1891. (eval $ac_compile) 2>conftest.er1
  1892. ac_status=$?
  1893. grep -v '^ *+' conftest.er1 >conftest.err
  1894. rm -f conftest.er1
  1895. cat conftest.err >&5
  1896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1897. (exit $ac_status); } &&
  1898. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1899. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1900. (eval $ac_try) 2>&5
  1901. ac_status=$?
  1902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1903. (exit $ac_status); }; } &&
  1904. { ac_try='test -s conftest.$ac_objext'
  1905. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1906. (eval $ac_try) 2>&5
  1907. ac_status=$?
  1908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1909. (exit $ac_status); }; }; then
  1910. for ac_declaration in \
  1911. '' \
  1912. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1913. 'extern "C" void std::exit (int); using std::exit;' \
  1914. 'extern "C" void exit (int) throw ();' \
  1915. 'extern "C" void exit (int);' \
  1916. 'void exit (int);'
  1917. do
  1918. cat >conftest.$ac_ext <<_ACEOF
  1919. /* confdefs.h. */
  1920. _ACEOF
  1921. cat confdefs.h >>conftest.$ac_ext
  1922. cat >>conftest.$ac_ext <<_ACEOF
  1923. /* end confdefs.h. */
  1924. $ac_declaration
  1925. #include <stdlib.h>
  1926. int
  1927. main ()
  1928. {
  1929. exit (42);
  1930. ;
  1931. return 0;
  1932. }
  1933. _ACEOF
  1934. rm -f conftest.$ac_objext
  1935. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1936. (eval $ac_compile) 2>conftest.er1
  1937. ac_status=$?
  1938. grep -v '^ *+' conftest.er1 >conftest.err
  1939. rm -f conftest.er1
  1940. cat conftest.err >&5
  1941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1942. (exit $ac_status); } &&
  1943. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1944. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1945. (eval $ac_try) 2>&5
  1946. ac_status=$?
  1947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1948. (exit $ac_status); }; } &&
  1949. { ac_try='test -s conftest.$ac_objext'
  1950. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1951. (eval $ac_try) 2>&5
  1952. ac_status=$?
  1953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1954. (exit $ac_status); }; }; then
  1955. :
  1956. else
  1957. echo "$as_me: failed program was:" >&5
  1958. sed 's/^/| /' conftest.$ac_ext >&5
  1959. continue
  1960. fi
  1961. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1962. cat >conftest.$ac_ext <<_ACEOF
  1963. /* confdefs.h. */
  1964. _ACEOF
  1965. cat confdefs.h >>conftest.$ac_ext
  1966. cat >>conftest.$ac_ext <<_ACEOF
  1967. /* end confdefs.h. */
  1968. $ac_declaration
  1969. int
  1970. main ()
  1971. {
  1972. exit (42);
  1973. ;
  1974. return 0;
  1975. }
  1976. _ACEOF
  1977. rm -f conftest.$ac_objext
  1978. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1979. (eval $ac_compile) 2>conftest.er1
  1980. ac_status=$?
  1981. grep -v '^ *+' conftest.er1 >conftest.err
  1982. rm -f conftest.er1
  1983. cat conftest.err >&5
  1984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1985. (exit $ac_status); } &&
  1986. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1987. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1988. (eval $ac_try) 2>&5
  1989. ac_status=$?
  1990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1991. (exit $ac_status); }; } &&
  1992. { ac_try='test -s conftest.$ac_objext'
  1993. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1994. (eval $ac_try) 2>&5
  1995. ac_status=$?
  1996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1997. (exit $ac_status); }; }; then
  1998. break
  1999. else
  2000. echo "$as_me: failed program was:" >&5
  2001. sed 's/^/| /' conftest.$ac_ext >&5
  2002. fi
  2003. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2004. done
  2005. rm -f conftest*
  2006. if test -n "$ac_declaration"; then
  2007. echo '#ifdef __cplusplus' >>confdefs.h
  2008. echo $ac_declaration >>confdefs.h
  2009. echo '#endif' >>confdefs.h
  2010. fi
  2011. else
  2012. echo "$as_me: failed program was:" >&5
  2013. sed 's/^/| /' conftest.$ac_ext >&5
  2014. fi
  2015. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2016. ac_ext=c
  2017. ac_cpp='$CPP $CPPFLAGS'
  2018. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2019. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2020. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2021. if test "${cross_compiling-x}" = "x"
  2022. then
  2023. cat << 'EOF' >&2
  2024. configure: error:
  2025. This system does not appear to have a working C compiler.
  2026. A working C compiler is required to compile Eggdrop.
  2027. EOF
  2028. exit 1
  2029. fi
  2030. # Crazy machines
  2031. ac_ext=c
  2032. ac_cpp='$CPP $CPPFLAGS'
  2033. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2034. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2035. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2036. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2037. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2038. # On Suns, sometimes $CPP names a directory.
  2039. if test -n "$CPP" && test -d "$CPP"; then
  2040. CPP=
  2041. fi
  2042. if test -z "$CPP"; then
  2043. if test "${ac_cv_prog_CPP+set}" = set; then
  2044. echo $ECHO_N "(cached) $ECHO_C" >&6
  2045. else
  2046. # Double quotes because CPP needs to be expanded
  2047. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2048. do
  2049. ac_preproc_ok=false
  2050. for ac_c_preproc_warn_flag in '' yes
  2051. do
  2052. # Use a header file that comes with gcc, so configuring glibc
  2053. # with a fresh cross-compiler works.
  2054. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2055. # <limits.h> exists even on freestanding compilers.
  2056. # On the NeXT, cc -E runs the code through the compiler's parser,
  2057. # not just through cpp. "Syntax error" is here to catch this case.
  2058. cat >conftest.$ac_ext <<_ACEOF
  2059. /* confdefs.h. */
  2060. _ACEOF
  2061. cat confdefs.h >>conftest.$ac_ext
  2062. cat >>conftest.$ac_ext <<_ACEOF
  2063. /* end confdefs.h. */
  2064. #ifdef __STDC__
  2065. # include <limits.h>
  2066. #else
  2067. # include <assert.h>
  2068. #endif
  2069. Syntax error
  2070. _ACEOF
  2071. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2072. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2073. ac_status=$?
  2074. grep -v '^ *+' conftest.er1 >conftest.err
  2075. rm -f conftest.er1
  2076. cat conftest.err >&5
  2077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2078. (exit $ac_status); } >/dev/null; then
  2079. if test -s conftest.err; then
  2080. ac_cpp_err=$ac_c_preproc_warn_flag
  2081. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2082. else
  2083. ac_cpp_err=
  2084. fi
  2085. else
  2086. ac_cpp_err=yes
  2087. fi
  2088. if test -z "$ac_cpp_err"; then
  2089. :
  2090. else
  2091. echo "$as_me: failed program was:" >&5
  2092. sed 's/^/| /' conftest.$ac_ext >&5
  2093. # Broken: fails on valid input.
  2094. continue
  2095. fi
  2096. rm -f conftest.err conftest.$ac_ext
  2097. # OK, works on sane cases. Now check whether non-existent headers
  2098. # can be detected and how.
  2099. cat >conftest.$ac_ext <<_ACEOF
  2100. /* confdefs.h. */
  2101. _ACEOF
  2102. cat confdefs.h >>conftest.$ac_ext
  2103. cat >>conftest.$ac_ext <<_ACEOF
  2104. /* end confdefs.h. */
  2105. #include <ac_nonexistent.h>
  2106. _ACEOF
  2107. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2108. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2109. ac_status=$?
  2110. grep -v '^ *+' conftest.er1 >conftest.err
  2111. rm -f conftest.er1
  2112. cat conftest.err >&5
  2113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2114. (exit $ac_status); } >/dev/null; then
  2115. if test -s conftest.err; then
  2116. ac_cpp_err=$ac_c_preproc_warn_flag
  2117. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2118. else
  2119. ac_cpp_err=
  2120. fi
  2121. else
  2122. ac_cpp_err=yes
  2123. fi
  2124. if test -z "$ac_cpp_err"; then
  2125. # Broken: success on invalid input.
  2126. continue
  2127. else
  2128. echo "$as_me: failed program was:" >&5
  2129. sed 's/^/| /' conftest.$ac_ext >&5
  2130. # Passes both tests.
  2131. ac_preproc_ok=:
  2132. break
  2133. fi
  2134. rm -f conftest.err conftest.$ac_ext
  2135. done
  2136. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2137. rm -f conftest.err conftest.$ac_ext
  2138. if $ac_preproc_ok; then
  2139. break
  2140. fi
  2141. done
  2142. ac_cv_prog_CPP=$CPP
  2143. fi
  2144. CPP=$ac_cv_prog_CPP
  2145. else
  2146. ac_cv_prog_CPP=$CPP
  2147. fi
  2148. echo "$as_me:$LINENO: result: $CPP" >&5
  2149. echo "${ECHO_T}$CPP" >&6
  2150. ac_preproc_ok=false
  2151. for ac_c_preproc_warn_flag in '' yes
  2152. do
  2153. # Use a header file that comes with gcc, so configuring glibc
  2154. # with a fresh cross-compiler works.
  2155. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2156. # <limits.h> exists even on freestanding compilers.
  2157. # On the NeXT, cc -E runs the code through the compiler's parser,
  2158. # not just through cpp. "Syntax error" is here to catch this case.
  2159. cat >conftest.$ac_ext <<_ACEOF
  2160. /* confdefs.h. */
  2161. _ACEOF
  2162. cat confdefs.h >>conftest.$ac_ext
  2163. cat >>conftest.$ac_ext <<_ACEOF
  2164. /* end confdefs.h. */
  2165. #ifdef __STDC__
  2166. # include <limits.h>
  2167. #else
  2168. # include <assert.h>
  2169. #endif
  2170. Syntax error
  2171. _ACEOF
  2172. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2173. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2174. ac_status=$?
  2175. grep -v '^ *+' conftest.er1 >conftest.err
  2176. rm -f conftest.er1
  2177. cat conftest.err >&5
  2178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2179. (exit $ac_status); } >/dev/null; then
  2180. if test -s conftest.err; then
  2181. ac_cpp_err=$ac_c_preproc_warn_flag
  2182. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2183. else
  2184. ac_cpp_err=
  2185. fi
  2186. else
  2187. ac_cpp_err=yes
  2188. fi
  2189. if test -z "$ac_cpp_err"; then
  2190. :
  2191. else
  2192. echo "$as_me: failed program was:" >&5
  2193. sed 's/^/| /' conftest.$ac_ext >&5
  2194. # Broken: fails on valid input.
  2195. continue
  2196. fi
  2197. rm -f conftest.err conftest.$ac_ext
  2198. # OK, works on sane cases. Now check whether non-existent headers
  2199. # can be detected and how.
  2200. cat >conftest.$ac_ext <<_ACEOF
  2201. /* confdefs.h. */
  2202. _ACEOF
  2203. cat confdefs.h >>conftest.$ac_ext
  2204. cat >>conftest.$ac_ext <<_ACEOF
  2205. /* end confdefs.h. */
  2206. #include <ac_nonexistent.h>
  2207. _ACEOF
  2208. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2209. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2210. ac_status=$?
  2211. grep -v '^ *+' conftest.er1 >conftest.err
  2212. rm -f conftest.er1
  2213. cat conftest.err >&5
  2214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2215. (exit $ac_status); } >/dev/null; then
  2216. if test -s conftest.err; then
  2217. ac_cpp_err=$ac_c_preproc_warn_flag
  2218. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2219. else
  2220. ac_cpp_err=
  2221. fi
  2222. else
  2223. ac_cpp_err=yes
  2224. fi
  2225. if test -z "$ac_cpp_err"; then
  2226. # Broken: success on invalid input.
  2227. continue
  2228. else
  2229. echo "$as_me: failed program was:" >&5
  2230. sed 's/^/| /' conftest.$ac_ext >&5
  2231. # Passes both tests.
  2232. ac_preproc_ok=:
  2233. break
  2234. fi
  2235. rm -f conftest.err conftest.$ac_ext
  2236. done
  2237. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2238. rm -f conftest.err conftest.$ac_ext
  2239. if $ac_preproc_ok; then
  2240. :
  2241. else
  2242. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2243. See \`config.log' for more details." >&5
  2244. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2245. See \`config.log' for more details." >&2;}
  2246. { (exit 1); exit 1; }; }
  2247. fi
  2248. ac_ext=c
  2249. ac_cpp='$CPP $CPPFLAGS'
  2250. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2251. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2252. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2253. echo "$as_me:$LINENO: checking for egrep" >&5
  2254. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2255. if test "${ac_cv_prog_egrep+set}" = set; then
  2256. echo $ECHO_N "(cached) $ECHO_C" >&6
  2257. else
  2258. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2259. then ac_cv_prog_egrep='grep -E'
  2260. else ac_cv_prog_egrep='egrep'
  2261. fi
  2262. fi
  2263. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2264. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2265. EGREP=$ac_cv_prog_egrep
  2266. echo "$as_me:$LINENO: checking for AIX" >&5
  2267. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  2268. cat >conftest.$ac_ext <<_ACEOF
  2269. /* confdefs.h. */
  2270. _ACEOF
  2271. cat confdefs.h >>conftest.$ac_ext
  2272. cat >>conftest.$ac_ext <<_ACEOF
  2273. /* end confdefs.h. */
  2274. #ifdef _AIX
  2275. yes
  2276. #endif
  2277. _ACEOF
  2278. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2279. $EGREP "yes" >/dev/null 2>&1; then
  2280. echo "$as_me:$LINENO: result: yes" >&5
  2281. echo "${ECHO_T}yes" >&6
  2282. cat >>confdefs.h <<\_ACEOF
  2283. #define _ALL_SOURCE 1
  2284. _ACEOF
  2285. else
  2286. echo "$as_me:$LINENO: result: no" >&5
  2287. echo "${ECHO_T}no" >&6
  2288. fi
  2289. rm -f conftest*
  2290. echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  2291. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
  2292. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  2293. echo $ECHO_N "(cached) $ECHO_C" >&6
  2294. else
  2295. ac_check_lib_save_LIBS=$LIBS
  2296. LIBS="-lcposix $LIBS"
  2297. cat >conftest.$ac_ext <<_ACEOF
  2298. /* confdefs.h. */
  2299. _ACEOF
  2300. cat confdefs.h >>conftest.$ac_ext
  2301. cat >>conftest.$ac_ext <<_ACEOF
  2302. /* end confdefs.h. */
  2303. /* Override any gcc2 internal prototype to avoid an error. */
  2304. #ifdef __cplusplus
  2305. extern "C"
  2306. #endif
  2307. /* We use char because int might match the return type of a gcc2
  2308. builtin and then its argument prototype would still apply. */
  2309. char strerror ();
  2310. int
  2311. main ()
  2312. {
  2313. strerror ();
  2314. ;
  2315. return 0;
  2316. }
  2317. _ACEOF
  2318. rm -f conftest.$ac_objext conftest$ac_exeext
  2319. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2320. (eval $ac_link) 2>conftest.er1
  2321. ac_status=$?
  2322. grep -v '^ *+' conftest.er1 >conftest.err
  2323. rm -f conftest.er1
  2324. cat conftest.err >&5
  2325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2326. (exit $ac_status); } &&
  2327. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2328. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2329. (eval $ac_try) 2>&5
  2330. ac_status=$?
  2331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2332. (exit $ac_status); }; } &&
  2333. { ac_try='test -s conftest$ac_exeext'
  2334. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2335. (eval $ac_try) 2>&5
  2336. ac_status=$?
  2337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2338. (exit $ac_status); }; }; then
  2339. ac_cv_lib_cposix_strerror=yes
  2340. else
  2341. echo "$as_me: failed program was:" >&5
  2342. sed 's/^/| /' conftest.$ac_ext >&5
  2343. ac_cv_lib_cposix_strerror=no
  2344. fi
  2345. rm -f conftest.err conftest.$ac_objext \
  2346. conftest$ac_exeext conftest.$ac_ext
  2347. LIBS=$ac_check_lib_save_LIBS
  2348. fi
  2349. echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  2350. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
  2351. if test $ac_cv_lib_cposix_strerror = yes; then
  2352. LIBS="$LIBS -lcposix"
  2353. fi
  2354. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2355. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2356. if test "${ac_cv_header_stdc+set}" = set; then
  2357. echo $ECHO_N "(cached) $ECHO_C" >&6
  2358. else
  2359. cat >conftest.$ac_ext <<_ACEOF
  2360. /* confdefs.h. */
  2361. _ACEOF
  2362. cat confdefs.h >>conftest.$ac_ext
  2363. cat >>conftest.$ac_ext <<_ACEOF
  2364. /* end confdefs.h. */
  2365. #include <stdlib.h>
  2366. #include <stdarg.h>
  2367. #include <string.h>
  2368. #include <float.h>
  2369. int
  2370. main ()
  2371. {
  2372. ;
  2373. return 0;
  2374. }
  2375. _ACEOF
  2376. rm -f conftest.$ac_objext
  2377. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2378. (eval $ac_compile) 2>conftest.er1
  2379. ac_status=$?
  2380. grep -v '^ *+' conftest.er1 >conftest.err
  2381. rm -f conftest.er1
  2382. cat conftest.err >&5
  2383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2384. (exit $ac_status); } &&
  2385. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2386. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2387. (eval $ac_try) 2>&5
  2388. ac_status=$?
  2389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2390. (exit $ac_status); }; } &&
  2391. { ac_try='test -s conftest.$ac_objext'
  2392. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2393. (eval $ac_try) 2>&5
  2394. ac_status=$?
  2395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2396. (exit $ac_status); }; }; then
  2397. ac_cv_header_stdc=yes
  2398. else
  2399. echo "$as_me: failed program was:" >&5
  2400. sed 's/^/| /' conftest.$ac_ext >&5
  2401. ac_cv_header_stdc=no
  2402. fi
  2403. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2404. if test $ac_cv_header_stdc = yes; then
  2405. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2406. cat >conftest.$ac_ext <<_ACEOF
  2407. /* confdefs.h. */
  2408. _ACEOF
  2409. cat confdefs.h >>conftest.$ac_ext
  2410. cat >>conftest.$ac_ext <<_ACEOF
  2411. /* end confdefs.h. */
  2412. #include <string.h>
  2413. _ACEOF
  2414. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2415. $EGREP "memchr" >/dev/null 2>&1; then
  2416. :
  2417. else
  2418. ac_cv_header_stdc=no
  2419. fi
  2420. rm -f conftest*
  2421. fi
  2422. if test $ac_cv_header_stdc = yes; then
  2423. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2424. cat >conftest.$ac_ext <<_ACEOF
  2425. /* confdefs.h. */
  2426. _ACEOF
  2427. cat confdefs.h >>conftest.$ac_ext
  2428. cat >>conftest.$ac_ext <<_ACEOF
  2429. /* end confdefs.h. */
  2430. #include <stdlib.h>
  2431. _ACEOF
  2432. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2433. $EGREP "free" >/dev/null 2>&1; then
  2434. :
  2435. else
  2436. ac_cv_header_stdc=no
  2437. fi
  2438. rm -f conftest*
  2439. fi
  2440. if test $ac_cv_header_stdc = yes; then
  2441. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2442. if test "$cross_compiling" = yes; then
  2443. :
  2444. else
  2445. cat >conftest.$ac_ext <<_ACEOF
  2446. /* confdefs.h. */
  2447. _ACEOF
  2448. cat confdefs.h >>conftest.$ac_ext
  2449. cat >>conftest.$ac_ext <<_ACEOF
  2450. /* end confdefs.h. */
  2451. #include <ctype.h>
  2452. #if ((' ' & 0x0FF) == 0x020)
  2453. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2454. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2455. #else
  2456. # define ISLOWER(c) \
  2457. (('a' <= (c) && (c) <= 'i') \
  2458. || ('j' <= (c) && (c) <= 'r') \
  2459. || ('s' <= (c) && (c) <= 'z'))
  2460. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2461. #endif
  2462. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2463. int
  2464. main ()
  2465. {
  2466. int i;
  2467. for (i = 0; i < 256; i++)
  2468. if (XOR (islower (i), ISLOWER (i))
  2469. || toupper (i) != TOUPPER (i))
  2470. exit(2);
  2471. exit (0);
  2472. }
  2473. _ACEOF
  2474. rm -f conftest$ac_exeext
  2475. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2476. (eval $ac_link) 2>&5
  2477. ac_status=$?
  2478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2479. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2480. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2481. (eval $ac_try) 2>&5
  2482. ac_status=$?
  2483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2484. (exit $ac_status); }; }; then
  2485. :
  2486. else
  2487. echo "$as_me: program exited with status $ac_status" >&5
  2488. echo "$as_me: failed program was:" >&5
  2489. sed 's/^/| /' conftest.$ac_ext >&5
  2490. ( exit $ac_status )
  2491. ac_cv_header_stdc=no
  2492. fi
  2493. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2494. fi
  2495. fi
  2496. fi
  2497. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2498. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2499. if test $ac_cv_header_stdc = yes; then
  2500. cat >>confdefs.h <<\_ACEOF
  2501. #define STDC_HEADERS 1
  2502. _ACEOF
  2503. fi
  2504. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2505. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2506. inttypes.h stdint.h unistd.h
  2507. do
  2508. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2509. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2510. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2511. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2512. echo $ECHO_N "(cached) $ECHO_C" >&6
  2513. else
  2514. cat >conftest.$ac_ext <<_ACEOF
  2515. /* confdefs.h. */
  2516. _ACEOF
  2517. cat confdefs.h >>conftest.$ac_ext
  2518. cat >>conftest.$ac_ext <<_ACEOF
  2519. /* end confdefs.h. */
  2520. $ac_includes_default
  2521. #include <$ac_header>
  2522. _ACEOF
  2523. rm -f conftest.$ac_objext
  2524. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2525. (eval $ac_compile) 2>conftest.er1
  2526. ac_status=$?
  2527. grep -v '^ *+' conftest.er1 >conftest.err
  2528. rm -f conftest.er1
  2529. cat conftest.err >&5
  2530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2531. (exit $ac_status); } &&
  2532. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2533. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2534. (eval $ac_try) 2>&5
  2535. ac_status=$?
  2536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2537. (exit $ac_status); }; } &&
  2538. { ac_try='test -s conftest.$ac_objext'
  2539. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2540. (eval $ac_try) 2>&5
  2541. ac_status=$?
  2542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2543. (exit $ac_status); }; }; then
  2544. eval "$as_ac_Header=yes"
  2545. else
  2546. echo "$as_me: failed program was:" >&5
  2547. sed 's/^/| /' conftest.$ac_ext >&5
  2548. eval "$as_ac_Header=no"
  2549. fi
  2550. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2551. fi
  2552. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2553. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2554. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2555. cat >>confdefs.h <<_ACEOF
  2556. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2557. _ACEOF
  2558. fi
  2559. done
  2560. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2561. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2562. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2563. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2564. echo $ECHO_N "(cached) $ECHO_C" >&6
  2565. fi
  2566. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2567. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2568. else
  2569. # Is the header compilable?
  2570. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2571. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2572. cat >conftest.$ac_ext <<_ACEOF
  2573. /* confdefs.h. */
  2574. _ACEOF
  2575. cat confdefs.h >>conftest.$ac_ext
  2576. cat >>conftest.$ac_ext <<_ACEOF
  2577. /* end confdefs.h. */
  2578. $ac_includes_default
  2579. #include <minix/config.h>
  2580. _ACEOF
  2581. rm -f conftest.$ac_objext
  2582. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2583. (eval $ac_compile) 2>conftest.er1
  2584. ac_status=$?
  2585. grep -v '^ *+' conftest.er1 >conftest.err
  2586. rm -f conftest.er1
  2587. cat conftest.err >&5
  2588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2589. (exit $ac_status); } &&
  2590. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2591. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2592. (eval $ac_try) 2>&5
  2593. ac_status=$?
  2594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2595. (exit $ac_status); }; } &&
  2596. { ac_try='test -s conftest.$ac_objext'
  2597. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2598. (eval $ac_try) 2>&5
  2599. ac_status=$?
  2600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2601. (exit $ac_status); }; }; then
  2602. ac_header_compiler=yes
  2603. else
  2604. echo "$as_me: failed program was:" >&5
  2605. sed 's/^/| /' conftest.$ac_ext >&5
  2606. ac_header_compiler=no
  2607. fi
  2608. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2609. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2610. echo "${ECHO_T}$ac_header_compiler" >&6
  2611. # Is the header present?
  2612. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2613. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2614. cat >conftest.$ac_ext <<_ACEOF
  2615. /* confdefs.h. */
  2616. _ACEOF
  2617. cat confdefs.h >>conftest.$ac_ext
  2618. cat >>conftest.$ac_ext <<_ACEOF
  2619. /* end confdefs.h. */
  2620. #include <minix/config.h>
  2621. _ACEOF
  2622. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2623. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2624. ac_status=$?
  2625. grep -v '^ *+' conftest.er1 >conftest.err
  2626. rm -f conftest.er1
  2627. cat conftest.err >&5
  2628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2629. (exit $ac_status); } >/dev/null; then
  2630. if test -s conftest.err; then
  2631. ac_cpp_err=$ac_c_preproc_warn_flag
  2632. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2633. else
  2634. ac_cpp_err=
  2635. fi
  2636. else
  2637. ac_cpp_err=yes
  2638. fi
  2639. if test -z "$ac_cpp_err"; then
  2640. ac_header_preproc=yes
  2641. else
  2642. echo "$as_me: failed program was:" >&5
  2643. sed 's/^/| /' conftest.$ac_ext >&5
  2644. ac_header_preproc=no
  2645. fi
  2646. rm -f conftest.err conftest.$ac_ext
  2647. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2648. echo "${ECHO_T}$ac_header_preproc" >&6
  2649. # So? What about this header?
  2650. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  2651. yes:no: )
  2652. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2653. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2654. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2655. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2656. ac_header_preproc=yes
  2657. ;;
  2658. no:yes:* )
  2659. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2660. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2661. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2662. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2663. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2664. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2665. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2666. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2667. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2668. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2669. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2670. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2671. (
  2672. cat <<\_ASBOX
  2673. ## ------------------------------------------ ##
  2674. ## Report this to the AC_PACKAGE_NAME lists. ##
  2675. ## ------------------------------------------ ##
  2676. _ASBOX
  2677. ) |
  2678. sed "s/^/$as_me: WARNING: /" >&2
  2679. ;;
  2680. esac
  2681. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2682. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2683. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2684. echo $ECHO_N "(cached) $ECHO_C" >&6
  2685. else
  2686. ac_cv_header_minix_config_h=$ac_header_preproc
  2687. fi
  2688. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2689. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2690. fi
  2691. if test $ac_cv_header_minix_config_h = yes; then
  2692. MINIX=yes
  2693. else
  2694. MINIX=
  2695. fi
  2696. if test "$MINIX" = yes; then
  2697. cat >>confdefs.h <<\_ACEOF
  2698. #define _POSIX_SOURCE 1
  2699. _ACEOF
  2700. cat >>confdefs.h <<\_ACEOF
  2701. #define _POSIX_1_SOURCE 2
  2702. _ACEOF
  2703. cat >>confdefs.h <<\_ACEOF
  2704. #define _MINIX 1
  2705. _ACEOF
  2706. fi
  2707. #checkpoint
  2708. cat >confcache <<\_ACEOF
  2709. # This file is a shell script that caches the results of configure
  2710. # tests run on this system so they can be shared between configure
  2711. # scripts and configure runs, see configure's option --config-cache.
  2712. # It is not useful on other systems. If it contains results you don't
  2713. # want to keep, you may remove or edit it.
  2714. #
  2715. # config.status only pays attention to the cache file if you give it
  2716. # the --recheck option to rerun configure.
  2717. #
  2718. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2719. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2720. # following values.
  2721. _ACEOF
  2722. # The following way of writing the cache mishandles newlines in values,
  2723. # but we know of no workaround that is simple, portable, and efficient.
  2724. # So, don't put newlines in cache variables' values.
  2725. # Ultrix sh set writes to stderr and can't be redirected directly,
  2726. # and sets the high bit in the cache file unless we assign to the vars.
  2727. {
  2728. (set) 2>&1 |
  2729. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2730. *ac_space=\ *)
  2731. # `set' does not quote correctly, so add quotes (double-quote
  2732. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2733. sed -n \
  2734. "s/'/'\\\\''/g;
  2735. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2736. ;;
  2737. *)
  2738. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2739. sed -n \
  2740. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2741. ;;
  2742. esac;
  2743. } |
  2744. sed '
  2745. t clear
  2746. : clear
  2747. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2748. t end
  2749. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2750. : end' >>confcache
  2751. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2752. if test -w $cache_file; then
  2753. test "x$cache_file" != "x/dev/null"
  2754. cat confcache >$cache_file
  2755. else
  2756. echo "not updating unwritable cache $cache_file"
  2757. fi
  2758. fi
  2759. rm -f confcache
  2760. # Speedup compile
  2761. if test -z "$no_pipe"
  2762. then
  2763. if test -n "$GCC"
  2764. then
  2765. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2766. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2767. if test "${egg_cv_var_ccpipe+set}" = set; then
  2768. echo $ECHO_N "(cached) $ECHO_C" >&6
  2769. else
  2770. ac_old_CC="$CC"
  2771. CC="$CC -pipe"
  2772. cat >conftest.$ac_ext <<_ACEOF
  2773. /* confdefs.h. */
  2774. _ACEOF
  2775. cat confdefs.h >>conftest.$ac_ext
  2776. cat >>conftest.$ac_ext <<_ACEOF
  2777. /* end confdefs.h. */
  2778. int
  2779. main ()
  2780. {
  2781. ;
  2782. return 0;
  2783. }
  2784. _ACEOF
  2785. rm -f conftest.$ac_objext
  2786. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2787. (eval $ac_compile) 2>conftest.er1
  2788. ac_status=$?
  2789. grep -v '^ *+' conftest.er1 >conftest.err
  2790. rm -f conftest.er1
  2791. cat conftest.err >&5
  2792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2793. (exit $ac_status); } &&
  2794. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2795. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2796. (eval $ac_try) 2>&5
  2797. ac_status=$?
  2798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2799. (exit $ac_status); }; } &&
  2800. { ac_try='test -s conftest.$ac_objext'
  2801. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2802. (eval $ac_try) 2>&5
  2803. ac_status=$?
  2804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2805. (exit $ac_status); }; }; then
  2806. egg_cv_var_ccpipe="yes"
  2807. else
  2808. echo "$as_me: failed program was:" >&5
  2809. sed 's/^/| /' conftest.$ac_ext >&5
  2810. egg_cv_var_ccpipe="no"
  2811. fi
  2812. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2813. CC="$ac_old_CC"
  2814. fi
  2815. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2816. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2817. if test "$egg_cv_var_ccpipe" = "yes"
  2818. then
  2819. CC="$CC -pipe"
  2820. fi
  2821. fi
  2822. fi
  2823. CCDEPMODE=gcc
  2824. num=`$CC -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  2825. if test $num = "3"; then
  2826. CCDEPMODE=gcc3
  2827. fi
  2828. # Create static binaries
  2829. if test -z "$no_static"
  2830. then
  2831. if test -n "$GCC"
  2832. then
  2833. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  2834. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  2835. if test "${egg_cv_var_ccstatic+set}" = set; then
  2836. echo $ECHO_N "(cached) $ECHO_C" >&6
  2837. else
  2838. ac_old_CC="$CC"
  2839. CC="$CC -static"
  2840. cat >conftest.$ac_ext <<_ACEOF
  2841. /* confdefs.h. */
  2842. _ACEOF
  2843. cat confdefs.h >>conftest.$ac_ext
  2844. cat >>conftest.$ac_ext <<_ACEOF
  2845. /* end confdefs.h. */
  2846. int
  2847. main ()
  2848. {
  2849. ;
  2850. return 0;
  2851. }
  2852. _ACEOF
  2853. rm -f conftest.$ac_objext
  2854. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2855. (eval $ac_compile) 2>conftest.er1
  2856. ac_status=$?
  2857. grep -v '^ *+' conftest.er1 >conftest.err
  2858. rm -f conftest.er1
  2859. cat conftest.err >&5
  2860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2861. (exit $ac_status); } &&
  2862. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2863. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2864. (eval $ac_try) 2>&5
  2865. ac_status=$?
  2866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2867. (exit $ac_status); }; } &&
  2868. { ac_try='test -s conftest.$ac_objext'
  2869. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2870. (eval $ac_try) 2>&5
  2871. ac_status=$?
  2872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2873. (exit $ac_status); }; }; then
  2874. egg_cv_var_ccstatic="yes"
  2875. else
  2876. echo "$as_me: failed program was:" >&5
  2877. sed 's/^/| /' conftest.$ac_ext >&5
  2878. egg_cv_var_ccstatic="no"
  2879. fi
  2880. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2881. CC="$ac_old_CC"
  2882. fi
  2883. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  2884. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  2885. if test "$egg_cv_var_ccstatic" = "yes"
  2886. then
  2887. CCDEBUG="$CC"
  2888. CC="$CC -static"
  2889. else
  2890. cat << 'EOF' >&2
  2891. configure: error:
  2892. Your C compiler does not support -static.
  2893. This compile flag is required for the botpack.
  2894. EOF
  2895. exit 1
  2896. fi
  2897. fi
  2898. fi
  2899. # Checks for programs
  2900. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2901. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2902. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2903. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2904. echo $ECHO_N "(cached) $ECHO_C" >&6
  2905. else
  2906. cat >conftest.make <<\_ACEOF
  2907. all:
  2908. @echo 'ac_maketemp="$(MAKE)"'
  2909. _ACEOF
  2910. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2911. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2912. if test -n "$ac_maketemp"; then
  2913. eval ac_cv_prog_make_${ac_make}_set=yes
  2914. else
  2915. eval ac_cv_prog_make_${ac_make}_set=no
  2916. fi
  2917. rm -f conftest.make
  2918. fi
  2919. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2920. echo "$as_me:$LINENO: result: yes" >&5
  2921. echo "${ECHO_T}yes" >&6
  2922. SET_MAKE=
  2923. else
  2924. echo "$as_me:$LINENO: result: no" >&5
  2925. echo "${ECHO_T}no" >&6
  2926. SET_MAKE="MAKE=${MAKE-make}"
  2927. fi
  2928. cat << 'EOF' > conftest.head
  2929. a
  2930. b
  2931. c
  2932. EOF
  2933. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  2934. do
  2935. echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  2936. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6
  2937. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  2938. echo $ECHO_N "(cached) $ECHO_C" >&6
  2939. else
  2940. if test -n "$HEAD_1"
  2941. then
  2942. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  2943. else
  2944. if test "`cat conftest.head | $ac_prog`" = "a";
  2945. then
  2946. echo "$as_me:$LINENO: result: yes" >&5
  2947. echo "${ECHO_T}yes" >&6
  2948. ac_cv_prog_HEAD_1=$ac_prog
  2949. else
  2950. echo "$as_me:$LINENO: result: no" >&5
  2951. echo "${ECHO_T}no" >&6
  2952. fi
  2953. fi
  2954. fi
  2955. test -n "$ac_cv_prog_HEAD_1" && break
  2956. done
  2957. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  2958. then
  2959. cat << 'EOF' >&2
  2960. configure: error:
  2961. This system seems to lack a working 'head -1' or 'head -n 1' command.
  2962. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  2963. EOF
  2964. exit 1
  2965. fi
  2966. rm -f conftest.head
  2967. HEAD_1=$ac_cv_prog_HEAD_1
  2968. # awk is needed for Tcl library and header checks, and eggdrop version subst
  2969. for ac_prog in gawk mawk nawk awk
  2970. do
  2971. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2972. set dummy $ac_prog; ac_word=$2
  2973. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2974. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2975. if test "${ac_cv_prog_AWK+set}" = set; then
  2976. echo $ECHO_N "(cached) $ECHO_C" >&6
  2977. else
  2978. if test -n "$AWK"; then
  2979. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2980. else
  2981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2982. for as_dir in $PATH
  2983. do
  2984. IFS=$as_save_IFS
  2985. test -z "$as_dir" && as_dir=.
  2986. for ac_exec_ext in '' $ac_executable_extensions; do
  2987. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2988. ac_cv_prog_AWK="$ac_prog"
  2989. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2990. break 2
  2991. fi
  2992. done
  2993. done
  2994. fi
  2995. fi
  2996. AWK=$ac_cv_prog_AWK
  2997. if test -n "$AWK"; then
  2998. echo "$as_me:$LINENO: result: $AWK" >&5
  2999. echo "${ECHO_T}$AWK" >&6
  3000. else
  3001. echo "$as_me:$LINENO: result: no" >&5
  3002. echo "${ECHO_T}no" >&6
  3003. fi
  3004. test -n "$AWK" && break
  3005. done
  3006. if test "${AWK-x}" = "x"
  3007. then
  3008. cat << 'EOF' >&2
  3009. configure: error:
  3010. This system seems to lack a working 'awk' command.
  3011. A working 'awk' command is required to compile Eggdrop.
  3012. EOF
  3013. exit 1
  3014. fi
  3015. # basename is needed for Tcl library and header checks
  3016. # Extract the first word of "basename", so it can be a program name with args.
  3017. set dummy basename; ac_word=$2
  3018. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3019. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3020. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3021. echo $ECHO_N "(cached) $ECHO_C" >&6
  3022. else
  3023. if test -n "$BASENAME"; then
  3024. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3025. else
  3026. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3027. for as_dir in $PATH
  3028. do
  3029. IFS=$as_save_IFS
  3030. test -z "$as_dir" && as_dir=.
  3031. for ac_exec_ext in '' $ac_executable_extensions; do
  3032. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3033. ac_cv_prog_BASENAME="basename"
  3034. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3035. break 2
  3036. fi
  3037. done
  3038. done
  3039. fi
  3040. fi
  3041. BASENAME=$ac_cv_prog_BASENAME
  3042. if test -n "$BASENAME"; then
  3043. echo "$as_me:$LINENO: result: $BASENAME" >&5
  3044. echo "${ECHO_T}$BASENAME" >&6
  3045. else
  3046. echo "$as_me:$LINENO: result: no" >&5
  3047. echo "${ECHO_T}no" >&6
  3048. fi
  3049. if test "${BASENAME-x}" = "x"
  3050. then
  3051. cat << 'EOF' >&2
  3052. configure: error:
  3053. This system seems to lack a working 'basename' command.
  3054. A working 'basename' command is required to compile Eggdrop.
  3055. EOF
  3056. exit 1
  3057. fi
  3058. # Extract the first word of "objcopy", so it can be a program name with args.
  3059. set dummy objcopy; 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_OBJCOPY+set}" = set; then
  3063. echo $ECHO_N "(cached) $ECHO_C" >&6
  3064. else
  3065. if test -n "$OBJCOPY"; then
  3066. ac_cv_prog_OBJCOPY="$OBJCOPY" # 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_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  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. OBJCOPY=$ac_cv_prog_OBJCOPY
  3084. if test -n "$OBJCOPY"; then
  3085. echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  3086. echo "${ECHO_T}$OBJCOPY" >&6
  3087. else
  3088. echo "$as_me:$LINENO: result: no" >&5
  3089. echo "${ECHO_T}no" >&6
  3090. fi
  3091. # Extract the first word of "strip", so it can be a program name with args.
  3092. set dummy strip; ac_word=$2
  3093. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3094. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3095. if test "${ac_cv_prog_STRIP+set}" = set; then
  3096. echo $ECHO_N "(cached) $ECHO_C" >&6
  3097. else
  3098. if test -n "$STRIP"; then
  3099. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3100. else
  3101. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3102. for as_dir in $PATH
  3103. do
  3104. IFS=$as_save_IFS
  3105. test -z "$as_dir" && as_dir=.
  3106. for ac_exec_ext in '' $ac_executable_extensions; do
  3107. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3108. ac_cv_prog_STRIP="strip"
  3109. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3110. break 2
  3111. fi
  3112. done
  3113. done
  3114. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3115. fi
  3116. fi
  3117. STRIP=$ac_cv_prog_STRIP
  3118. if test -n "$STRIP"; then
  3119. echo "$as_me:$LINENO: result: $STRIP" >&5
  3120. echo "${ECHO_T}$STRIP" >&6
  3121. else
  3122. echo "$as_me:$LINENO: result: no" >&5
  3123. echo "${ECHO_T}no" >&6
  3124. fi
  3125. # Extract the first word of "uname", so it can be a program name with args.
  3126. set dummy uname; ac_word=$2
  3127. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3128. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3129. if test "${ac_cv_prog_UNAME+set}" = set; then
  3130. echo $ECHO_N "(cached) $ECHO_C" >&6
  3131. else
  3132. if test -n "$UNAME"; then
  3133. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3134. else
  3135. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3136. for as_dir in $PATH
  3137. do
  3138. IFS=$as_save_IFS
  3139. test -z "$as_dir" && as_dir=.
  3140. for ac_exec_ext in '' $ac_executable_extensions; do
  3141. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3142. ac_cv_prog_UNAME="uname"
  3143. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3144. break 2
  3145. fi
  3146. done
  3147. done
  3148. fi
  3149. fi
  3150. UNAME=$ac_cv_prog_UNAME
  3151. if test -n "$UNAME"; then
  3152. echo "$as_me:$LINENO: result: $UNAME" >&5
  3153. echo "${ECHO_T}$UNAME" >&6
  3154. else
  3155. echo "$as_me:$LINENO: result: no" >&5
  3156. echo "${ECHO_T}no" >&6
  3157. fi
  3158. #AC_CHECK_PROG(CCACHE, ccache, ccache)
  3159. # Extract the first word of "distcc", so it can be a program name with args.
  3160. set dummy distcc; ac_word=$2
  3161. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3162. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3163. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3164. echo $ECHO_N "(cached) $ECHO_C" >&6
  3165. else
  3166. if test -n "$DISTCC"; then
  3167. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3168. else
  3169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3170. for as_dir in $PATH
  3171. do
  3172. IFS=$as_save_IFS
  3173. test -z "$as_dir" && as_dir=.
  3174. for ac_exec_ext in '' $ac_executable_extensions; do
  3175. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3176. ac_cv_prog_DISTCC="distcc"
  3177. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3178. break 2
  3179. fi
  3180. done
  3181. done
  3182. fi
  3183. fi
  3184. DISTCC=$ac_cv_prog_DISTCC
  3185. if test -n "$DISTCC"; then
  3186. echo "$as_me:$LINENO: result: $DISTCC" >&5
  3187. echo "${ECHO_T}$DISTCC" >&6
  3188. else
  3189. echo "$as_me:$LINENO: result: no" >&5
  3190. echo "${ECHO_T}no" >&6
  3191. fi
  3192. # Test the os and set the module linking settings
  3193. LINUX=no
  3194. IRIX=no
  3195. SUNOS=no
  3196. HPUX=no
  3197. EGG_CYGWIN=no
  3198. echo "$as_me:$LINENO: checking system type" >&5
  3199. echo $ECHO_N "checking system type... $ECHO_C" >&6
  3200. if test "${egg_cv_var_system_type+set}" = set; then
  3201. echo $ECHO_N "(cached) $ECHO_C" >&6
  3202. else
  3203. egg_cv_var_system_type=`$UNAME -s`
  3204. fi
  3205. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3206. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3207. echo "$as_me:$LINENO: checking system release" >&5
  3208. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3209. if test "${egg_cv_var_system_release+set}" = set; then
  3210. echo $ECHO_N "(cached) $ECHO_C" >&6
  3211. else
  3212. egg_cv_var_system_release=`$UNAME -r`
  3213. fi
  3214. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3215. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3216. case "$egg_cv_var_system_type" in
  3217. BSD/OS)
  3218. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3219. 2)
  3220. ;;
  3221. *)
  3222. CFLAGS="$CFLAGS -Wall"
  3223. ;;
  3224. esac
  3225. ;;
  3226. CYGWI*)
  3227. case "`echo $egg_cv_var_system_release | cut -c 1-3`" in
  3228. 1.*)
  3229. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3230. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3231. WIN32FLAGS=
  3232. cat >conftest.$ac_ext <<_ACEOF
  3233. /* confdefs.h. */
  3234. _ACEOF
  3235. cat confdefs.h >>conftest.$ac_ext
  3236. cat >>conftest.$ac_ext <<_ACEOF
  3237. /* end confdefs.h. */
  3238. int
  3239. main ()
  3240. {
  3241. #ifndef WIN32
  3242. # ifndef _WIN32
  3243. # error WIN32 or _WIN32 not defined
  3244. # endif
  3245. #endif
  3246. ;
  3247. return 0;
  3248. }
  3249. _ACEOF
  3250. rm -f conftest.$ac_objext
  3251. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3252. (eval $ac_compile) 2>conftest.er1
  3253. ac_status=$?
  3254. grep -v '^ *+' conftest.er1 >conftest.err
  3255. rm -f conftest.er1
  3256. cat conftest.err >&5
  3257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3258. (exit $ac_status); } &&
  3259. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3260. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3261. (eval $ac_try) 2>&5
  3262. ac_status=$?
  3263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3264. (exit $ac_status); }; } &&
  3265. { ac_try='test -s conftest.$ac_objext'
  3266. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3267. (eval $ac_try) 2>&5
  3268. ac_status=$?
  3269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3270. (exit $ac_status); }; }; then
  3271. echo "$as_me:$LINENO: result: present by default" >&5
  3272. echo "${ECHO_T}present by default" >&6
  3273. else
  3274. echo "$as_me: failed program was:" >&5
  3275. sed 's/^/| /' conftest.$ac_ext >&5
  3276. ac_compile_save="$ac_compile"
  3277. save_CC="$CC"
  3278. ac_compile="$ac_compile -mwin32"
  3279. CC="$CC -mwin32"
  3280. cat >conftest.$ac_ext <<_ACEOF
  3281. /* confdefs.h. */
  3282. _ACEOF
  3283. cat confdefs.h >>conftest.$ac_ext
  3284. cat >>conftest.$ac_ext <<_ACEOF
  3285. /* end confdefs.h. */
  3286. int
  3287. main ()
  3288. {
  3289. #ifndef WIN32
  3290. # ifndef _WIN32
  3291. # error WIN32 or _WIN32 not defined
  3292. # endif
  3293. #endif
  3294. ;
  3295. return 0;
  3296. }
  3297. _ACEOF
  3298. rm -f conftest.$ac_objext
  3299. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3300. (eval $ac_compile) 2>conftest.er1
  3301. ac_status=$?
  3302. grep -v '^ *+' conftest.er1 >conftest.err
  3303. rm -f conftest.er1
  3304. cat conftest.err >&5
  3305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3306. (exit $ac_status); } &&
  3307. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3308. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3309. (eval $ac_try) 2>&5
  3310. ac_status=$?
  3311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3312. (exit $ac_status); }; } &&
  3313. { ac_try='test -s conftest.$ac_objext'
  3314. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3315. (eval $ac_try) 2>&5
  3316. ac_status=$?
  3317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3318. (exit $ac_status); }; }; then
  3319. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3320. echo "${ECHO_T}found via -mwin32" >&6
  3321. ac_compile="$ac_compile_save"
  3322. CC="$save_CC"
  3323. WIN32FLAGS="-mwin32"
  3324. else
  3325. echo "$as_me: failed program was:" >&5
  3326. sed 's/^/| /' conftest.$ac_ext >&5
  3327. ac_compile="$ac_compile_save"
  3328. CC="$save_CC"
  3329. echo "$as_me:$LINENO: result: not found" >&5
  3330. echo "${ECHO_T}not found" >&6
  3331. fi
  3332. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3333. fi
  3334. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3335. CC="$CC $WIN32FLAGS"
  3336. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3337. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3338. if test -r /usr/lib/binmode.o
  3339. then
  3340. echo "$as_me:$LINENO: result: yes" >&5
  3341. echo "${ECHO_T}yes" >&6
  3342. LIBS="$LIBS /usr/lib/binmode.o"
  3343. else
  3344. echo "$as_me:$LINENO: result: no" >&5
  3345. echo "${ECHO_T}no" >&6
  3346. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3347. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3348. fi
  3349. ;;
  3350. *)
  3351. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3352. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3353. ;;
  3354. esac
  3355. EGG_CYGWIN=yes
  3356. cat >>confdefs.h <<\_ACEOF
  3357. #define CYGWIN_HACKS 1
  3358. _ACEOF
  3359. ;;
  3360. HP-UX)
  3361. HPUX=yes
  3362. cat >>confdefs.h <<\_ACEOF
  3363. #define HPUX_HACKS 1
  3364. _ACEOF
  3365. if test "`echo $egg_cv_var_system_release | cut -d . -f 2`" = "10"
  3366. then
  3367. cat >>confdefs.h <<\_ACEOF
  3368. #define HPUX10_HACKS 1
  3369. _ACEOF
  3370. fi
  3371. ;;
  3372. dell)
  3373. echo "$as_me:$LINENO: result: Dell SVR4" >&5
  3374. echo "${ECHO_T}Dell SVR4" >&6
  3375. ;;
  3376. IRIX)
  3377. IRIX=yes
  3378. ;;
  3379. Ultrix)
  3380. SHELL=/bin/sh5
  3381. ;;
  3382. SINIX*)
  3383. ;;
  3384. BeOS)
  3385. ;;
  3386. Linux)
  3387. LINUX=yes
  3388. CFLAGS="$CFLAGS -Wall"
  3389. ;;
  3390. Lynx)
  3391. ;;
  3392. QNX)
  3393. ;;
  3394. OSF1)
  3395. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3396. V*)
  3397. # FIXME: we should check this in a separate test
  3398. # Digital OSF uses an ancient version of gawk
  3399. if test "$AWK" = "gawk"
  3400. then
  3401. AWK=awk
  3402. fi
  3403. ;;
  3404. 1.0|1.1|1.2)
  3405. cat >>confdefs.h <<\_ACEOF
  3406. #define OSF1_HACKS 1
  3407. _ACEOF
  3408. ;;
  3409. 1.*)
  3410. cat >>confdefs.h <<\_ACEOF
  3411. #define OSF1_HACKS 1
  3412. _ACEOF
  3413. ;;
  3414. *)
  3415. ;;
  3416. esac
  3417. cat >>confdefs.h <<\_ACEOF
  3418. #define STOP_UAC 1
  3419. _ACEOF
  3420. cat >>confdefs.h <<\_ACEOF
  3421. #define BROKEN_SNPRINTF 1
  3422. _ACEOF
  3423. ;;
  3424. SunOS)
  3425. if ! test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"
  3426. then
  3427. # SunOS 4
  3428. SUNOS=yes
  3429. fi
  3430. ;;
  3431. *BSD)
  3432. # FreeBSD/OpenBSD/NetBSD
  3433. ;;
  3434. *)
  3435. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3436. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3437. if test -r /mach
  3438. then
  3439. echo "$as_me:$LINENO: result: yes" >&5
  3440. echo "${ECHO_T}yes" >&6
  3441. cat >>confdefs.h <<\_ACEOF
  3442. #define BORGCUBES 1
  3443. _ACEOF
  3444. else
  3445. echo "$as_me:$LINENO: result: no" >&5
  3446. echo "${ECHO_T}no" >&6
  3447. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3448. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3449. if test -r /cmds
  3450. then
  3451. echo "$as_me:$LINENO: result: yes" >&5
  3452. echo "${ECHO_T}yes" >&6
  3453. else
  3454. echo "$as_me:$LINENO: result: no" >&5
  3455. echo "${ECHO_T}no" >&6
  3456. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3457. echo "${ECHO_T}Something unknown!" >&6
  3458. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3459. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3460. fi
  3461. fi
  3462. ;;
  3463. esac
  3464. dns_reslib_avail="true"
  3465. echo "$as_me:$LINENO: checking for res_init" >&5
  3466. echo $ECHO_N "checking for res_init... $ECHO_C" >&6
  3467. if test "${ac_cv_func_res_init+set}" = set; then
  3468. echo $ECHO_N "(cached) $ECHO_C" >&6
  3469. else
  3470. cat >conftest.$ac_ext <<_ACEOF
  3471. /* confdefs.h. */
  3472. _ACEOF
  3473. cat confdefs.h >>conftest.$ac_ext
  3474. cat >>conftest.$ac_ext <<_ACEOF
  3475. /* end confdefs.h. */
  3476. /* Define res_init to an innocuous variant, in case <limits.h> declares res_init.
  3477. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3478. #define res_init innocuous_res_init
  3479. /* System header to define __stub macros and hopefully few prototypes,
  3480. which can conflict with char res_init (); below.
  3481. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3482. <limits.h> exists even on freestanding compilers. */
  3483. #ifdef __STDC__
  3484. # include <limits.h>
  3485. #else
  3486. # include <assert.h>
  3487. #endif
  3488. #undef res_init
  3489. /* Override any gcc2 internal prototype to avoid an error. */
  3490. #ifdef __cplusplus
  3491. extern "C"
  3492. {
  3493. #endif
  3494. /* We use char because int might match the return type of a gcc2
  3495. builtin and then its argument prototype would still apply. */
  3496. char res_init ();
  3497. /* The GNU C library defines this for functions which it implements
  3498. to always fail with ENOSYS. Some functions are actually named
  3499. something starting with __ and the normal name is an alias. */
  3500. #if defined (__stub_res_init) || defined (__stub___res_init)
  3501. choke me
  3502. #else
  3503. char (*f) () = res_init;
  3504. #endif
  3505. #ifdef __cplusplus
  3506. }
  3507. #endif
  3508. int
  3509. main ()
  3510. {
  3511. return f != res_init;
  3512. ;
  3513. return 0;
  3514. }
  3515. _ACEOF
  3516. rm -f conftest.$ac_objext conftest$ac_exeext
  3517. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3518. (eval $ac_link) 2>conftest.er1
  3519. ac_status=$?
  3520. grep -v '^ *+' conftest.er1 >conftest.err
  3521. rm -f conftest.er1
  3522. cat conftest.err >&5
  3523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3524. (exit $ac_status); } &&
  3525. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3526. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3527. (eval $ac_try) 2>&5
  3528. ac_status=$?
  3529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3530. (exit $ac_status); }; } &&
  3531. { ac_try='test -s conftest$ac_exeext'
  3532. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3533. (eval $ac_try) 2>&5
  3534. ac_status=$?
  3535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3536. (exit $ac_status); }; }; then
  3537. ac_cv_func_res_init=yes
  3538. else
  3539. echo "$as_me: failed program was:" >&5
  3540. sed 's/^/| /' conftest.$ac_ext >&5
  3541. ac_cv_func_res_init=no
  3542. fi
  3543. rm -f conftest.err conftest.$ac_objext \
  3544. conftest$ac_exeext conftest.$ac_ext
  3545. fi
  3546. echo "$as_me:$LINENO: result: $ac_cv_func_res_init" >&5
  3547. echo "${ECHO_T}$ac_cv_func_res_init" >&6
  3548. if test $ac_cv_func_res_init = yes; then
  3549. :
  3550. else
  3551. echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
  3552. echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
  3553. if test "${ac_cv_lib_resolv_res_init+set}" = set; then
  3554. echo $ECHO_N "(cached) $ECHO_C" >&6
  3555. else
  3556. ac_check_lib_save_LIBS=$LIBS
  3557. LIBS="-lresolv $LIBS"
  3558. cat >conftest.$ac_ext <<_ACEOF
  3559. /* confdefs.h. */
  3560. _ACEOF
  3561. cat confdefs.h >>conftest.$ac_ext
  3562. cat >>conftest.$ac_ext <<_ACEOF
  3563. /* end confdefs.h. */
  3564. /* Override any gcc2 internal prototype to avoid an error. */
  3565. #ifdef __cplusplus
  3566. extern "C"
  3567. #endif
  3568. /* We use char because int might match the return type of a gcc2
  3569. builtin and then its argument prototype would still apply. */
  3570. char res_init ();
  3571. int
  3572. main ()
  3573. {
  3574. res_init ();
  3575. ;
  3576. return 0;
  3577. }
  3578. _ACEOF
  3579. rm -f conftest.$ac_objext conftest$ac_exeext
  3580. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3581. (eval $ac_link) 2>conftest.er1
  3582. ac_status=$?
  3583. grep -v '^ *+' conftest.er1 >conftest.err
  3584. rm -f conftest.er1
  3585. cat conftest.err >&5
  3586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3587. (exit $ac_status); } &&
  3588. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3589. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3590. (eval $ac_try) 2>&5
  3591. ac_status=$?
  3592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3593. (exit $ac_status); }; } &&
  3594. { ac_try='test -s conftest$ac_exeext'
  3595. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3596. (eval $ac_try) 2>&5
  3597. ac_status=$?
  3598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3599. (exit $ac_status); }; }; then
  3600. ac_cv_lib_resolv_res_init=yes
  3601. else
  3602. echo "$as_me: failed program was:" >&5
  3603. sed 's/^/| /' conftest.$ac_ext >&5
  3604. ac_cv_lib_resolv_res_init=no
  3605. fi
  3606. rm -f conftest.err conftest.$ac_objext \
  3607. conftest$ac_exeext conftest.$ac_ext
  3608. LIBS=$ac_check_lib_save_LIBS
  3609. fi
  3610. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
  3611. echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
  3612. if test $ac_cv_lib_resolv_res_init = yes; then
  3613. RESLIB="-lresolv"
  3614. else
  3615. echo "$as_me:$LINENO: checking for res_init in -lbind" >&5
  3616. echo $ECHO_N "checking for res_init in -lbind... $ECHO_C" >&6
  3617. if test "${ac_cv_lib_bind_res_init+set}" = set; then
  3618. echo $ECHO_N "(cached) $ECHO_C" >&6
  3619. else
  3620. ac_check_lib_save_LIBS=$LIBS
  3621. LIBS="-lbind $LIBS"
  3622. cat >conftest.$ac_ext <<_ACEOF
  3623. /* confdefs.h. */
  3624. _ACEOF
  3625. cat confdefs.h >>conftest.$ac_ext
  3626. cat >>conftest.$ac_ext <<_ACEOF
  3627. /* end confdefs.h. */
  3628. /* Override any gcc2 internal prototype to avoid an error. */
  3629. #ifdef __cplusplus
  3630. extern "C"
  3631. #endif
  3632. /* We use char because int might match the return type of a gcc2
  3633. builtin and then its argument prototype would still apply. */
  3634. char res_init ();
  3635. int
  3636. main ()
  3637. {
  3638. res_init ();
  3639. ;
  3640. return 0;
  3641. }
  3642. _ACEOF
  3643. rm -f conftest.$ac_objext conftest$ac_exeext
  3644. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3645. (eval $ac_link) 2>conftest.er1
  3646. ac_status=$?
  3647. grep -v '^ *+' conftest.er1 >conftest.err
  3648. rm -f conftest.er1
  3649. cat conftest.err >&5
  3650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3651. (exit $ac_status); } &&
  3652. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3653. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3654. (eval $ac_try) 2>&5
  3655. ac_status=$?
  3656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3657. (exit $ac_status); }; } &&
  3658. { ac_try='test -s conftest$ac_exeext'
  3659. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3660. (eval $ac_try) 2>&5
  3661. ac_status=$?
  3662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3663. (exit $ac_status); }; }; then
  3664. ac_cv_lib_bind_res_init=yes
  3665. else
  3666. echo "$as_me: failed program was:" >&5
  3667. sed 's/^/| /' conftest.$ac_ext >&5
  3668. ac_cv_lib_bind_res_init=no
  3669. fi
  3670. rm -f conftest.err conftest.$ac_objext \
  3671. conftest$ac_exeext conftest.$ac_ext
  3672. LIBS=$ac_check_lib_save_LIBS
  3673. fi
  3674. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_init" >&5
  3675. echo "${ECHO_T}$ac_cv_lib_bind_res_init" >&6
  3676. if test $ac_cv_lib_bind_res_init = yes; then
  3677. RESLIB="-lbind"
  3678. else
  3679. dns_reslib_avail="false";
  3680. fi
  3681. fi
  3682. fi
  3683. if test "${dns_reslib_avail}" = false; then
  3684. dns_reslib_avail="true"
  3685. echo "$as_me:$LINENO: checking for __res_init" >&5
  3686. echo $ECHO_N "checking for __res_init... $ECHO_C" >&6
  3687. if test "${ac_cv_func___res_init+set}" = set; then
  3688. echo $ECHO_N "(cached) $ECHO_C" >&6
  3689. else
  3690. cat >conftest.$ac_ext <<_ACEOF
  3691. /* confdefs.h. */
  3692. _ACEOF
  3693. cat confdefs.h >>conftest.$ac_ext
  3694. cat >>conftest.$ac_ext <<_ACEOF
  3695. /* end confdefs.h. */
  3696. /* Define __res_init to an innocuous variant, in case <limits.h> declares __res_init.
  3697. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3698. #define __res_init innocuous___res_init
  3699. /* System header to define __stub macros and hopefully few prototypes,
  3700. which can conflict with char __res_init (); below.
  3701. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3702. <limits.h> exists even on freestanding compilers. */
  3703. #ifdef __STDC__
  3704. # include <limits.h>
  3705. #else
  3706. # include <assert.h>
  3707. #endif
  3708. #undef __res_init
  3709. /* Override any gcc2 internal prototype to avoid an error. */
  3710. #ifdef __cplusplus
  3711. extern "C"
  3712. {
  3713. #endif
  3714. /* We use char because int might match the return type of a gcc2
  3715. builtin and then its argument prototype would still apply. */
  3716. char __res_init ();
  3717. /* The GNU C library defines this for functions which it implements
  3718. to always fail with ENOSYS. Some functions are actually named
  3719. something starting with __ and the normal name is an alias. */
  3720. #if defined (__stub___res_init) || defined (__stub_____res_init)
  3721. choke me
  3722. #else
  3723. char (*f) () = __res_init;
  3724. #endif
  3725. #ifdef __cplusplus
  3726. }
  3727. #endif
  3728. int
  3729. main ()
  3730. {
  3731. return f != __res_init;
  3732. ;
  3733. return 0;
  3734. }
  3735. _ACEOF
  3736. rm -f conftest.$ac_objext conftest$ac_exeext
  3737. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3738. (eval $ac_link) 2>conftest.er1
  3739. ac_status=$?
  3740. grep -v '^ *+' conftest.er1 >conftest.err
  3741. rm -f conftest.er1
  3742. cat conftest.err >&5
  3743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3744. (exit $ac_status); } &&
  3745. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3746. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3747. (eval $ac_try) 2>&5
  3748. ac_status=$?
  3749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3750. (exit $ac_status); }; } &&
  3751. { ac_try='test -s conftest$ac_exeext'
  3752. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3753. (eval $ac_try) 2>&5
  3754. ac_status=$?
  3755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3756. (exit $ac_status); }; }; then
  3757. ac_cv_func___res_init=yes
  3758. else
  3759. echo "$as_me: failed program was:" >&5
  3760. sed 's/^/| /' conftest.$ac_ext >&5
  3761. ac_cv_func___res_init=no
  3762. fi
  3763. rm -f conftest.err conftest.$ac_objext \
  3764. conftest$ac_exeext conftest.$ac_ext
  3765. fi
  3766. echo "$as_me:$LINENO: result: $ac_cv_func___res_init" >&5
  3767. echo "${ECHO_T}$ac_cv_func___res_init" >&6
  3768. if test $ac_cv_func___res_init = yes; then
  3769. :
  3770. else
  3771. echo "$as_me:$LINENO: checking for __res_init in -lresolv" >&5
  3772. echo $ECHO_N "checking for __res_init in -lresolv... $ECHO_C" >&6
  3773. if test "${ac_cv_lib_resolv___res_init+set}" = set; then
  3774. echo $ECHO_N "(cached) $ECHO_C" >&6
  3775. else
  3776. ac_check_lib_save_LIBS=$LIBS
  3777. LIBS="-lresolv $LIBS"
  3778. cat >conftest.$ac_ext <<_ACEOF
  3779. /* confdefs.h. */
  3780. _ACEOF
  3781. cat confdefs.h >>conftest.$ac_ext
  3782. cat >>conftest.$ac_ext <<_ACEOF
  3783. /* end confdefs.h. */
  3784. /* Override any gcc2 internal prototype to avoid an error. */
  3785. #ifdef __cplusplus
  3786. extern "C"
  3787. #endif
  3788. /* We use char because int might match the return type of a gcc2
  3789. builtin and then its argument prototype would still apply. */
  3790. char __res_init ();
  3791. int
  3792. main ()
  3793. {
  3794. __res_init ();
  3795. ;
  3796. return 0;
  3797. }
  3798. _ACEOF
  3799. rm -f conftest.$ac_objext conftest$ac_exeext
  3800. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3801. (eval $ac_link) 2>conftest.er1
  3802. ac_status=$?
  3803. grep -v '^ *+' conftest.er1 >conftest.err
  3804. rm -f conftest.er1
  3805. cat conftest.err >&5
  3806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3807. (exit $ac_status); } &&
  3808. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3809. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3810. (eval $ac_try) 2>&5
  3811. ac_status=$?
  3812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3813. (exit $ac_status); }; } &&
  3814. { ac_try='test -s conftest$ac_exeext'
  3815. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3816. (eval $ac_try) 2>&5
  3817. ac_status=$?
  3818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3819. (exit $ac_status); }; }; then
  3820. ac_cv_lib_resolv___res_init=yes
  3821. else
  3822. echo "$as_me: failed program was:" >&5
  3823. sed 's/^/| /' conftest.$ac_ext >&5
  3824. ac_cv_lib_resolv___res_init=no
  3825. fi
  3826. rm -f conftest.err conftest.$ac_objext \
  3827. conftest$ac_exeext conftest.$ac_ext
  3828. LIBS=$ac_check_lib_save_LIBS
  3829. fi
  3830. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_init" >&5
  3831. echo "${ECHO_T}$ac_cv_lib_resolv___res_init" >&6
  3832. if test $ac_cv_lib_resolv___res_init = yes; then
  3833. RESLIB="-lresolv"
  3834. else
  3835. echo "$as_me:$LINENO: checking for __res_init in -lbind" >&5
  3836. echo $ECHO_N "checking for __res_init in -lbind... $ECHO_C" >&6
  3837. if test "${ac_cv_lib_bind___res_init+set}" = set; then
  3838. echo $ECHO_N "(cached) $ECHO_C" >&6
  3839. else
  3840. ac_check_lib_save_LIBS=$LIBS
  3841. LIBS="-lbind $LIBS"
  3842. cat >conftest.$ac_ext <<_ACEOF
  3843. /* confdefs.h. */
  3844. _ACEOF
  3845. cat confdefs.h >>conftest.$ac_ext
  3846. cat >>conftest.$ac_ext <<_ACEOF
  3847. /* end confdefs.h. */
  3848. /* Override any gcc2 internal prototype to avoid an error. */
  3849. #ifdef __cplusplus
  3850. extern "C"
  3851. #endif
  3852. /* We use char because int might match the return type of a gcc2
  3853. builtin and then its argument prototype would still apply. */
  3854. char __res_init ();
  3855. int
  3856. main ()
  3857. {
  3858. __res_init ();
  3859. ;
  3860. return 0;
  3861. }
  3862. _ACEOF
  3863. rm -f conftest.$ac_objext conftest$ac_exeext
  3864. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3865. (eval $ac_link) 2>conftest.er1
  3866. ac_status=$?
  3867. grep -v '^ *+' conftest.er1 >conftest.err
  3868. rm -f conftest.er1
  3869. cat conftest.err >&5
  3870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3871. (exit $ac_status); } &&
  3872. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3873. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3874. (eval $ac_try) 2>&5
  3875. ac_status=$?
  3876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3877. (exit $ac_status); }; } &&
  3878. { ac_try='test -s conftest$ac_exeext'
  3879. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3880. (eval $ac_try) 2>&5
  3881. ac_status=$?
  3882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3883. (exit $ac_status); }; }; then
  3884. ac_cv_lib_bind___res_init=yes
  3885. else
  3886. echo "$as_me: failed program was:" >&5
  3887. sed 's/^/| /' conftest.$ac_ext >&5
  3888. ac_cv_lib_bind___res_init=no
  3889. fi
  3890. rm -f conftest.err conftest.$ac_objext \
  3891. conftest$ac_exeext conftest.$ac_ext
  3892. LIBS=$ac_check_lib_save_LIBS
  3893. fi
  3894. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_init" >&5
  3895. echo "${ECHO_T}$ac_cv_lib_bind___res_init" >&6
  3896. if test $ac_cv_lib_bind___res_init = yes; then
  3897. RESLIB="-lbind"
  3898. else
  3899. dns_reslib_avail="false";
  3900. fi
  3901. fi
  3902. fi
  3903. fi
  3904. echo "$as_me:$LINENO: checking for res_mkquery" >&5
  3905. echo $ECHO_N "checking for res_mkquery... $ECHO_C" >&6
  3906. if test "${ac_cv_func_res_mkquery+set}" = set; then
  3907. echo $ECHO_N "(cached) $ECHO_C" >&6
  3908. else
  3909. cat >conftest.$ac_ext <<_ACEOF
  3910. /* confdefs.h. */
  3911. _ACEOF
  3912. cat confdefs.h >>conftest.$ac_ext
  3913. cat >>conftest.$ac_ext <<_ACEOF
  3914. /* end confdefs.h. */
  3915. /* Define res_mkquery to an innocuous variant, in case <limits.h> declares res_mkquery.
  3916. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3917. #define res_mkquery innocuous_res_mkquery
  3918. /* System header to define __stub macros and hopefully few prototypes,
  3919. which can conflict with char res_mkquery (); below.
  3920. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3921. <limits.h> exists even on freestanding compilers. */
  3922. #ifdef __STDC__
  3923. # include <limits.h>
  3924. #else
  3925. # include <assert.h>
  3926. #endif
  3927. #undef res_mkquery
  3928. /* Override any gcc2 internal prototype to avoid an error. */
  3929. #ifdef __cplusplus
  3930. extern "C"
  3931. {
  3932. #endif
  3933. /* We use char because int might match the return type of a gcc2
  3934. builtin and then its argument prototype would still apply. */
  3935. char res_mkquery ();
  3936. /* The GNU C library defines this for functions which it implements
  3937. to always fail with ENOSYS. Some functions are actually named
  3938. something starting with __ and the normal name is an alias. */
  3939. #if defined (__stub_res_mkquery) || defined (__stub___res_mkquery)
  3940. choke me
  3941. #else
  3942. char (*f) () = res_mkquery;
  3943. #endif
  3944. #ifdef __cplusplus
  3945. }
  3946. #endif
  3947. int
  3948. main ()
  3949. {
  3950. return f != res_mkquery;
  3951. ;
  3952. return 0;
  3953. }
  3954. _ACEOF
  3955. rm -f conftest.$ac_objext conftest$ac_exeext
  3956. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3957. (eval $ac_link) 2>conftest.er1
  3958. ac_status=$?
  3959. grep -v '^ *+' conftest.er1 >conftest.err
  3960. rm -f conftest.er1
  3961. cat conftest.err >&5
  3962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3963. (exit $ac_status); } &&
  3964. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3965. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3966. (eval $ac_try) 2>&5
  3967. ac_status=$?
  3968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3969. (exit $ac_status); }; } &&
  3970. { ac_try='test -s conftest$ac_exeext'
  3971. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3972. (eval $ac_try) 2>&5
  3973. ac_status=$?
  3974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3975. (exit $ac_status); }; }; then
  3976. ac_cv_func_res_mkquery=yes
  3977. else
  3978. echo "$as_me: failed program was:" >&5
  3979. sed 's/^/| /' conftest.$ac_ext >&5
  3980. ac_cv_func_res_mkquery=no
  3981. fi
  3982. rm -f conftest.err conftest.$ac_objext \
  3983. conftest$ac_exeext conftest.$ac_ext
  3984. fi
  3985. echo "$as_me:$LINENO: result: $ac_cv_func_res_mkquery" >&5
  3986. echo "${ECHO_T}$ac_cv_func_res_mkquery" >&6
  3987. if test $ac_cv_func_res_mkquery = yes; then
  3988. :
  3989. else
  3990. echo "$as_me:$LINENO: checking for res_mkquery in -lresolv" >&5
  3991. echo $ECHO_N "checking for res_mkquery in -lresolv... $ECHO_C" >&6
  3992. if test "${ac_cv_lib_resolv_res_mkquery+set}" = set; then
  3993. echo $ECHO_N "(cached) $ECHO_C" >&6
  3994. else
  3995. ac_check_lib_save_LIBS=$LIBS
  3996. LIBS="-lresolv $LIBS"
  3997. cat >conftest.$ac_ext <<_ACEOF
  3998. /* confdefs.h. */
  3999. _ACEOF
  4000. cat confdefs.h >>conftest.$ac_ext
  4001. cat >>conftest.$ac_ext <<_ACEOF
  4002. /* end confdefs.h. */
  4003. /* Override any gcc2 internal prototype to avoid an error. */
  4004. #ifdef __cplusplus
  4005. extern "C"
  4006. #endif
  4007. /* We use char because int might match the return type of a gcc2
  4008. builtin and then its argument prototype would still apply. */
  4009. char res_mkquery ();
  4010. int
  4011. main ()
  4012. {
  4013. res_mkquery ();
  4014. ;
  4015. return 0;
  4016. }
  4017. _ACEOF
  4018. rm -f conftest.$ac_objext conftest$ac_exeext
  4019. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4020. (eval $ac_link) 2>conftest.er1
  4021. ac_status=$?
  4022. grep -v '^ *+' conftest.er1 >conftest.err
  4023. rm -f conftest.er1
  4024. cat conftest.err >&5
  4025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4026. (exit $ac_status); } &&
  4027. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4028. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4029. (eval $ac_try) 2>&5
  4030. ac_status=$?
  4031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4032. (exit $ac_status); }; } &&
  4033. { ac_try='test -s conftest$ac_exeext'
  4034. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4035. (eval $ac_try) 2>&5
  4036. ac_status=$?
  4037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4038. (exit $ac_status); }; }; then
  4039. ac_cv_lib_resolv_res_mkquery=yes
  4040. else
  4041. echo "$as_me: failed program was:" >&5
  4042. sed 's/^/| /' conftest.$ac_ext >&5
  4043. ac_cv_lib_resolv_res_mkquery=no
  4044. fi
  4045. rm -f conftest.err conftest.$ac_objext \
  4046. conftest$ac_exeext conftest.$ac_ext
  4047. LIBS=$ac_check_lib_save_LIBS
  4048. fi
  4049. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_mkquery" >&5
  4050. echo "${ECHO_T}$ac_cv_lib_resolv_res_mkquery" >&6
  4051. if test $ac_cv_lib_resolv_res_mkquery = yes; then
  4052. if test "x${RESLIB}" != "x-lresolv"; then
  4053. RESLIB="${RESLIB} -lresolv"
  4054. fi
  4055. else
  4056. echo "$as_me:$LINENO: checking for res_mkquery in -lbind" >&5
  4057. echo $ECHO_N "checking for res_mkquery in -lbind... $ECHO_C" >&6
  4058. if test "${ac_cv_lib_bind_res_mkquery+set}" = set; then
  4059. echo $ECHO_N "(cached) $ECHO_C" >&6
  4060. else
  4061. ac_check_lib_save_LIBS=$LIBS
  4062. LIBS="-lbind $LIBS"
  4063. cat >conftest.$ac_ext <<_ACEOF
  4064. /* confdefs.h. */
  4065. _ACEOF
  4066. cat confdefs.h >>conftest.$ac_ext
  4067. cat >>conftest.$ac_ext <<_ACEOF
  4068. /* end confdefs.h. */
  4069. /* Override any gcc2 internal prototype to avoid an error. */
  4070. #ifdef __cplusplus
  4071. extern "C"
  4072. #endif
  4073. /* We use char because int might match the return type of a gcc2
  4074. builtin and then its argument prototype would still apply. */
  4075. char res_mkquery ();
  4076. int
  4077. main ()
  4078. {
  4079. res_mkquery ();
  4080. ;
  4081. return 0;
  4082. }
  4083. _ACEOF
  4084. rm -f conftest.$ac_objext conftest$ac_exeext
  4085. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4086. (eval $ac_link) 2>conftest.er1
  4087. ac_status=$?
  4088. grep -v '^ *+' conftest.er1 >conftest.err
  4089. rm -f conftest.er1
  4090. cat conftest.err >&5
  4091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4092. (exit $ac_status); } &&
  4093. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4094. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4095. (eval $ac_try) 2>&5
  4096. ac_status=$?
  4097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4098. (exit $ac_status); }; } &&
  4099. { ac_try='test -s conftest$ac_exeext'
  4100. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4101. (eval $ac_try) 2>&5
  4102. ac_status=$?
  4103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4104. (exit $ac_status); }; }; then
  4105. ac_cv_lib_bind_res_mkquery=yes
  4106. else
  4107. echo "$as_me: failed program was:" >&5
  4108. sed 's/^/| /' conftest.$ac_ext >&5
  4109. ac_cv_lib_bind_res_mkquery=no
  4110. fi
  4111. rm -f conftest.err conftest.$ac_objext \
  4112. conftest$ac_exeext conftest.$ac_ext
  4113. LIBS=$ac_check_lib_save_LIBS
  4114. fi
  4115. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_mkquery" >&5
  4116. echo "${ECHO_T}$ac_cv_lib_bind_res_mkquery" >&6
  4117. if test $ac_cv_lib_bind_res_mkquery = yes; then
  4118. if test "x${RESLIB}" != "x-lbind"; then
  4119. RESLIB="${RESLIB} -lbind"
  4120. fi
  4121. else
  4122. dns_reslib_avail="false";
  4123. fi
  4124. fi
  4125. fi
  4126. if test "${dns_reslib_avail}" = false; then
  4127. dns_reslib_avail="true"
  4128. echo "$as_me:$LINENO: checking for __res_mkquery" >&5
  4129. echo $ECHO_N "checking for __res_mkquery... $ECHO_C" >&6
  4130. if test "${ac_cv_func___res_mkquery+set}" = set; then
  4131. echo $ECHO_N "(cached) $ECHO_C" >&6
  4132. else
  4133. cat >conftest.$ac_ext <<_ACEOF
  4134. /* confdefs.h. */
  4135. _ACEOF
  4136. cat confdefs.h >>conftest.$ac_ext
  4137. cat >>conftest.$ac_ext <<_ACEOF
  4138. /* end confdefs.h. */
  4139. /* Define __res_mkquery to an innocuous variant, in case <limits.h> declares __res_mkquery.
  4140. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4141. #define __res_mkquery innocuous___res_mkquery
  4142. /* System header to define __stub macros and hopefully few prototypes,
  4143. which can conflict with char __res_mkquery (); below.
  4144. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4145. <limits.h> exists even on freestanding compilers. */
  4146. #ifdef __STDC__
  4147. # include <limits.h>
  4148. #else
  4149. # include <assert.h>
  4150. #endif
  4151. #undef __res_mkquery
  4152. /* Override any gcc2 internal prototype to avoid an error. */
  4153. #ifdef __cplusplus
  4154. extern "C"
  4155. {
  4156. #endif
  4157. /* We use char because int might match the return type of a gcc2
  4158. builtin and then its argument prototype would still apply. */
  4159. char __res_mkquery ();
  4160. /* The GNU C library defines this for functions which it implements
  4161. to always fail with ENOSYS. Some functions are actually named
  4162. something starting with __ and the normal name is an alias. */
  4163. #if defined (__stub___res_mkquery) || defined (__stub_____res_mkquery)
  4164. choke me
  4165. #else
  4166. char (*f) () = __res_mkquery;
  4167. #endif
  4168. #ifdef __cplusplus
  4169. }
  4170. #endif
  4171. int
  4172. main ()
  4173. {
  4174. return f != __res_mkquery;
  4175. ;
  4176. return 0;
  4177. }
  4178. _ACEOF
  4179. rm -f conftest.$ac_objext conftest$ac_exeext
  4180. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4181. (eval $ac_link) 2>conftest.er1
  4182. ac_status=$?
  4183. grep -v '^ *+' conftest.er1 >conftest.err
  4184. rm -f conftest.er1
  4185. cat conftest.err >&5
  4186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4187. (exit $ac_status); } &&
  4188. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4189. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4190. (eval $ac_try) 2>&5
  4191. ac_status=$?
  4192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4193. (exit $ac_status); }; } &&
  4194. { ac_try='test -s conftest$ac_exeext'
  4195. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4196. (eval $ac_try) 2>&5
  4197. ac_status=$?
  4198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4199. (exit $ac_status); }; }; then
  4200. ac_cv_func___res_mkquery=yes
  4201. else
  4202. echo "$as_me: failed program was:" >&5
  4203. sed 's/^/| /' conftest.$ac_ext >&5
  4204. ac_cv_func___res_mkquery=no
  4205. fi
  4206. rm -f conftest.err conftest.$ac_objext \
  4207. conftest$ac_exeext conftest.$ac_ext
  4208. fi
  4209. echo "$as_me:$LINENO: result: $ac_cv_func___res_mkquery" >&5
  4210. echo "${ECHO_T}$ac_cv_func___res_mkquery" >&6
  4211. if test $ac_cv_func___res_mkquery = yes; then
  4212. :
  4213. else
  4214. echo "$as_me:$LINENO: checking for __res_mkquery in -lresolv" >&5
  4215. echo $ECHO_N "checking for __res_mkquery in -lresolv... $ECHO_C" >&6
  4216. if test "${ac_cv_lib_resolv___res_mkquery+set}" = set; then
  4217. echo $ECHO_N "(cached) $ECHO_C" >&6
  4218. else
  4219. ac_check_lib_save_LIBS=$LIBS
  4220. LIBS="-lresolv $LIBS"
  4221. cat >conftest.$ac_ext <<_ACEOF
  4222. /* confdefs.h. */
  4223. _ACEOF
  4224. cat confdefs.h >>conftest.$ac_ext
  4225. cat >>conftest.$ac_ext <<_ACEOF
  4226. /* end confdefs.h. */
  4227. /* Override any gcc2 internal prototype to avoid an error. */
  4228. #ifdef __cplusplus
  4229. extern "C"
  4230. #endif
  4231. /* We use char because int might match the return type of a gcc2
  4232. builtin and then its argument prototype would still apply. */
  4233. char __res_mkquery ();
  4234. int
  4235. main ()
  4236. {
  4237. __res_mkquery ();
  4238. ;
  4239. return 0;
  4240. }
  4241. _ACEOF
  4242. rm -f conftest.$ac_objext conftest$ac_exeext
  4243. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4244. (eval $ac_link) 2>conftest.er1
  4245. ac_status=$?
  4246. grep -v '^ *+' conftest.er1 >conftest.err
  4247. rm -f conftest.er1
  4248. cat conftest.err >&5
  4249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4250. (exit $ac_status); } &&
  4251. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4252. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4253. (eval $ac_try) 2>&5
  4254. ac_status=$?
  4255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4256. (exit $ac_status); }; } &&
  4257. { ac_try='test -s conftest$ac_exeext'
  4258. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4259. (eval $ac_try) 2>&5
  4260. ac_status=$?
  4261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4262. (exit $ac_status); }; }; then
  4263. ac_cv_lib_resolv___res_mkquery=yes
  4264. else
  4265. echo "$as_me: failed program was:" >&5
  4266. sed 's/^/| /' conftest.$ac_ext >&5
  4267. ac_cv_lib_resolv___res_mkquery=no
  4268. fi
  4269. rm -f conftest.err conftest.$ac_objext \
  4270. conftest$ac_exeext conftest.$ac_ext
  4271. LIBS=$ac_check_lib_save_LIBS
  4272. fi
  4273. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_mkquery" >&5
  4274. echo "${ECHO_T}$ac_cv_lib_resolv___res_mkquery" >&6
  4275. if test $ac_cv_lib_resolv___res_mkquery = yes; then
  4276. if test "x${RESLIB}" != "x-lresolv"; then
  4277. RESLIB="${RESLIB} -lresolv"
  4278. fi
  4279. else
  4280. echo "$as_me:$LINENO: checking for __res_mkquery in -lbind" >&5
  4281. echo $ECHO_N "checking for __res_mkquery in -lbind... $ECHO_C" >&6
  4282. if test "${ac_cv_lib_bind___res_mkquery+set}" = set; then
  4283. echo $ECHO_N "(cached) $ECHO_C" >&6
  4284. else
  4285. ac_check_lib_save_LIBS=$LIBS
  4286. LIBS="-lbind $LIBS"
  4287. cat >conftest.$ac_ext <<_ACEOF
  4288. /* confdefs.h. */
  4289. _ACEOF
  4290. cat confdefs.h >>conftest.$ac_ext
  4291. cat >>conftest.$ac_ext <<_ACEOF
  4292. /* end confdefs.h. */
  4293. /* Override any gcc2 internal prototype to avoid an error. */
  4294. #ifdef __cplusplus
  4295. extern "C"
  4296. #endif
  4297. /* We use char because int might match the return type of a gcc2
  4298. builtin and then its argument prototype would still apply. */
  4299. char __res_mkquery ();
  4300. int
  4301. main ()
  4302. {
  4303. __res_mkquery ();
  4304. ;
  4305. return 0;
  4306. }
  4307. _ACEOF
  4308. rm -f conftest.$ac_objext conftest$ac_exeext
  4309. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4310. (eval $ac_link) 2>conftest.er1
  4311. ac_status=$?
  4312. grep -v '^ *+' conftest.er1 >conftest.err
  4313. rm -f conftest.er1
  4314. cat conftest.err >&5
  4315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4316. (exit $ac_status); } &&
  4317. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4318. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4319. (eval $ac_try) 2>&5
  4320. ac_status=$?
  4321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4322. (exit $ac_status); }; } &&
  4323. { ac_try='test -s conftest$ac_exeext'
  4324. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4325. (eval $ac_try) 2>&5
  4326. ac_status=$?
  4327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4328. (exit $ac_status); }; }; then
  4329. ac_cv_lib_bind___res_mkquery=yes
  4330. else
  4331. echo "$as_me: failed program was:" >&5
  4332. sed 's/^/| /' conftest.$ac_ext >&5
  4333. ac_cv_lib_bind___res_mkquery=no
  4334. fi
  4335. rm -f conftest.err conftest.$ac_objext \
  4336. conftest$ac_exeext conftest.$ac_ext
  4337. LIBS=$ac_check_lib_save_LIBS
  4338. fi
  4339. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_mkquery" >&5
  4340. echo "${ECHO_T}$ac_cv_lib_bind___res_mkquery" >&6
  4341. if test $ac_cv_lib_bind___res_mkquery = yes; then
  4342. if test "x${RESLIB}" != "x-lbind"; then
  4343. RESLIB="${RESLIB} -lbind"
  4344. fi
  4345. else
  4346. dns_reslib_avail="false";
  4347. fi
  4348. fi
  4349. fi
  4350. fi
  4351. if test "${dns_reslib_avail}" = false; then
  4352. if test "$ac_cv_cygwin" = "yes"; then
  4353. echo "$as_me:$LINENO: checking for /usr/local/bind/lib/libbind.a" >&5
  4354. echo $ECHO_N "checking for /usr/local/bind/lib/libbind.a... $ECHO_C" >&6
  4355. if test -r /usr/local/bind/lib/libbind.a; then
  4356. echo "$as_me:$LINENO: result: yes" >&5
  4357. echo "${ECHO_T}yes" >&6
  4358. RESLIB="${RESLIB} -L/usr/local/bind/lib -lbind"
  4359. RESINCLUDE="-I/usr/local/bind/include"
  4360. dns_reslib_avail="true"
  4361. else
  4362. echo "$as_me:$LINENO: result: no" >&5
  4363. echo "${ECHO_T}no" >&6
  4364. fi
  4365. fi
  4366. fi
  4367. if test "${dns_reslib_avail}" = false; then
  4368. cat >&2 <<EOF
  4369. configure: warning:
  4370. Your system provides no functional resolver library.
  4371. One is required for buld.
  4372. EOF
  4373. exit 1
  4374. fi
  4375. #checkpoint
  4376. cat >confcache <<\_ACEOF
  4377. # This file is a shell script that caches the results of configure
  4378. # tests run on this system so they can be shared between configure
  4379. # scripts and configure runs, see configure's option --config-cache.
  4380. # It is not useful on other systems. If it contains results you don't
  4381. # want to keep, you may remove or edit it.
  4382. #
  4383. # config.status only pays attention to the cache file if you give it
  4384. # the --recheck option to rerun configure.
  4385. #
  4386. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4387. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4388. # following values.
  4389. _ACEOF
  4390. # The following way of writing the cache mishandles newlines in values,
  4391. # but we know of no workaround that is simple, portable, and efficient.
  4392. # So, don't put newlines in cache variables' values.
  4393. # Ultrix sh set writes to stderr and can't be redirected directly,
  4394. # and sets the high bit in the cache file unless we assign to the vars.
  4395. {
  4396. (set) 2>&1 |
  4397. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4398. *ac_space=\ *)
  4399. # `set' does not quote correctly, so add quotes (double-quote
  4400. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4401. sed -n \
  4402. "s/'/'\\\\''/g;
  4403. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4404. ;;
  4405. *)
  4406. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4407. sed -n \
  4408. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4409. ;;
  4410. esac;
  4411. } |
  4412. sed '
  4413. t clear
  4414. : clear
  4415. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4416. t end
  4417. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4418. : end' >>confcache
  4419. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4420. if test -w $cache_file; then
  4421. test "x$cache_file" != "x/dev/null"
  4422. cat confcache >$cache_file
  4423. else
  4424. echo "not updating unwritable cache $cache_file"
  4425. fi
  4426. fi
  4427. rm -f confcache
  4428. # Checks for system libraries
  4429. # FIXME: this needs to be fixed so that it works on IRIX
  4430. if test "$IRIX" = "yes"
  4431. then
  4432. { echo "$as_me:$LINENO: WARNING: Skipping library tests because they CONFUSE Irix." >&5
  4433. echo "$as_me: WARNING: Skipping library tests because they CONFUSE Irix." >&2;}
  4434. else
  4435. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4436. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  4437. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4438. echo $ECHO_N "(cached) $ECHO_C" >&6
  4439. else
  4440. ac_check_lib_save_LIBS=$LIBS
  4441. LIBS="-lsocket $LIBS"
  4442. cat >conftest.$ac_ext <<_ACEOF
  4443. /* confdefs.h. */
  4444. _ACEOF
  4445. cat confdefs.h >>conftest.$ac_ext
  4446. cat >>conftest.$ac_ext <<_ACEOF
  4447. /* end confdefs.h. */
  4448. /* Override any gcc2 internal prototype to avoid an error. */
  4449. #ifdef __cplusplus
  4450. extern "C"
  4451. #endif
  4452. /* We use char because int might match the return type of a gcc2
  4453. builtin and then its argument prototype would still apply. */
  4454. char socket ();
  4455. int
  4456. main ()
  4457. {
  4458. socket ();
  4459. ;
  4460. return 0;
  4461. }
  4462. _ACEOF
  4463. rm -f conftest.$ac_objext conftest$ac_exeext
  4464. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4465. (eval $ac_link) 2>conftest.er1
  4466. ac_status=$?
  4467. grep -v '^ *+' conftest.er1 >conftest.err
  4468. rm -f conftest.er1
  4469. cat conftest.err >&5
  4470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4471. (exit $ac_status); } &&
  4472. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4473. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4474. (eval $ac_try) 2>&5
  4475. ac_status=$?
  4476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4477. (exit $ac_status); }; } &&
  4478. { ac_try='test -s conftest$ac_exeext'
  4479. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4480. (eval $ac_try) 2>&5
  4481. ac_status=$?
  4482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4483. (exit $ac_status); }; }; then
  4484. ac_cv_lib_socket_socket=yes
  4485. else
  4486. echo "$as_me: failed program was:" >&5
  4487. sed 's/^/| /' conftest.$ac_ext >&5
  4488. ac_cv_lib_socket_socket=no
  4489. fi
  4490. rm -f conftest.err conftest.$ac_objext \
  4491. conftest$ac_exeext conftest.$ac_ext
  4492. LIBS=$ac_check_lib_save_LIBS
  4493. fi
  4494. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4495. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  4496. if test $ac_cv_lib_socket_socket = yes; then
  4497. cat >>confdefs.h <<_ACEOF
  4498. #define HAVE_LIBSOCKET 1
  4499. _ACEOF
  4500. LIBS="-lsocket $LIBS"
  4501. fi
  4502. echo "$as_me:$LINENO: checking for connect in -lnsl" >&5
  4503. echo $ECHO_N "checking for connect in -lnsl... $ECHO_C" >&6
  4504. if test "${ac_cv_lib_nsl_connect+set}" = set; then
  4505. echo $ECHO_N "(cached) $ECHO_C" >&6
  4506. else
  4507. ac_check_lib_save_LIBS=$LIBS
  4508. LIBS="-lnsl $LIBS"
  4509. cat >conftest.$ac_ext <<_ACEOF
  4510. /* confdefs.h. */
  4511. _ACEOF
  4512. cat confdefs.h >>conftest.$ac_ext
  4513. cat >>conftest.$ac_ext <<_ACEOF
  4514. /* end confdefs.h. */
  4515. /* Override any gcc2 internal prototype to avoid an error. */
  4516. #ifdef __cplusplus
  4517. extern "C"
  4518. #endif
  4519. /* We use char because int might match the return type of a gcc2
  4520. builtin and then its argument prototype would still apply. */
  4521. char connect ();
  4522. int
  4523. main ()
  4524. {
  4525. connect ();
  4526. ;
  4527. return 0;
  4528. }
  4529. _ACEOF
  4530. rm -f conftest.$ac_objext conftest$ac_exeext
  4531. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4532. (eval $ac_link) 2>conftest.er1
  4533. ac_status=$?
  4534. grep -v '^ *+' conftest.er1 >conftest.err
  4535. rm -f conftest.er1
  4536. cat conftest.err >&5
  4537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4538. (exit $ac_status); } &&
  4539. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4540. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4541. (eval $ac_try) 2>&5
  4542. ac_status=$?
  4543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4544. (exit $ac_status); }; } &&
  4545. { ac_try='test -s conftest$ac_exeext'
  4546. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4547. (eval $ac_try) 2>&5
  4548. ac_status=$?
  4549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4550. (exit $ac_status); }; }; then
  4551. ac_cv_lib_nsl_connect=yes
  4552. else
  4553. echo "$as_me: failed program was:" >&5
  4554. sed 's/^/| /' conftest.$ac_ext >&5
  4555. ac_cv_lib_nsl_connect=no
  4556. fi
  4557. rm -f conftest.err conftest.$ac_objext \
  4558. conftest$ac_exeext conftest.$ac_ext
  4559. LIBS=$ac_check_lib_save_LIBS
  4560. fi
  4561. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_connect" >&5
  4562. echo "${ECHO_T}$ac_cv_lib_nsl_connect" >&6
  4563. if test $ac_cv_lib_nsl_connect = yes; then
  4564. cat >>confdefs.h <<_ACEOF
  4565. #define HAVE_LIBNSL 1
  4566. _ACEOF
  4567. LIBS="-lnsl $LIBS"
  4568. fi
  4569. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  4570. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  4571. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  4572. echo $ECHO_N "(cached) $ECHO_C" >&6
  4573. else
  4574. ac_check_lib_save_LIBS=$LIBS
  4575. LIBS="-ldns $LIBS"
  4576. cat >conftest.$ac_ext <<_ACEOF
  4577. /* confdefs.h. */
  4578. _ACEOF
  4579. cat confdefs.h >>conftest.$ac_ext
  4580. cat >>conftest.$ac_ext <<_ACEOF
  4581. /* end confdefs.h. */
  4582. /* Override any gcc2 internal prototype to avoid an error. */
  4583. #ifdef __cplusplus
  4584. extern "C"
  4585. #endif
  4586. /* We use char because int might match the return type of a gcc2
  4587. builtin and then its argument prototype would still apply. */
  4588. char gethostbyname ();
  4589. int
  4590. main ()
  4591. {
  4592. gethostbyname ();
  4593. ;
  4594. return 0;
  4595. }
  4596. _ACEOF
  4597. rm -f conftest.$ac_objext conftest$ac_exeext
  4598. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4599. (eval $ac_link) 2>conftest.er1
  4600. ac_status=$?
  4601. grep -v '^ *+' conftest.er1 >conftest.err
  4602. rm -f conftest.er1
  4603. cat conftest.err >&5
  4604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4605. (exit $ac_status); } &&
  4606. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4607. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4608. (eval $ac_try) 2>&5
  4609. ac_status=$?
  4610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4611. (exit $ac_status); }; } &&
  4612. { ac_try='test -s conftest$ac_exeext'
  4613. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4614. (eval $ac_try) 2>&5
  4615. ac_status=$?
  4616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4617. (exit $ac_status); }; }; then
  4618. ac_cv_lib_dns_gethostbyname=yes
  4619. else
  4620. echo "$as_me: failed program was:" >&5
  4621. sed 's/^/| /' conftest.$ac_ext >&5
  4622. ac_cv_lib_dns_gethostbyname=no
  4623. fi
  4624. rm -f conftest.err conftest.$ac_objext \
  4625. conftest$ac_exeext conftest.$ac_ext
  4626. LIBS=$ac_check_lib_save_LIBS
  4627. fi
  4628. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  4629. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  4630. if test $ac_cv_lib_dns_gethostbyname = yes; then
  4631. cat >>confdefs.h <<_ACEOF
  4632. #define HAVE_LIBDNS 1
  4633. _ACEOF
  4634. LIBS="-ldns $LIBS"
  4635. fi
  4636. echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
  4637. echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
  4638. if test "${ac_cv_lib_z_gzopen+set}" = set; then
  4639. echo $ECHO_N "(cached) $ECHO_C" >&6
  4640. else
  4641. ac_check_lib_save_LIBS=$LIBS
  4642. LIBS="-lz $LIBS"
  4643. cat >conftest.$ac_ext <<_ACEOF
  4644. /* confdefs.h. */
  4645. _ACEOF
  4646. cat confdefs.h >>conftest.$ac_ext
  4647. cat >>conftest.$ac_ext <<_ACEOF
  4648. /* end confdefs.h. */
  4649. /* Override any gcc2 internal prototype to avoid an error. */
  4650. #ifdef __cplusplus
  4651. extern "C"
  4652. #endif
  4653. /* We use char because int might match the return type of a gcc2
  4654. builtin and then its argument prototype would still apply. */
  4655. char gzopen ();
  4656. int
  4657. main ()
  4658. {
  4659. gzopen ();
  4660. ;
  4661. return 0;
  4662. }
  4663. _ACEOF
  4664. rm -f conftest.$ac_objext conftest$ac_exeext
  4665. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4666. (eval $ac_link) 2>conftest.er1
  4667. ac_status=$?
  4668. grep -v '^ *+' conftest.er1 >conftest.err
  4669. rm -f conftest.er1
  4670. cat conftest.err >&5
  4671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4672. (exit $ac_status); } &&
  4673. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4674. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4675. (eval $ac_try) 2>&5
  4676. ac_status=$?
  4677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4678. (exit $ac_status); }; } &&
  4679. { ac_try='test -s conftest$ac_exeext'
  4680. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4681. (eval $ac_try) 2>&5
  4682. ac_status=$?
  4683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4684. (exit $ac_status); }; }; then
  4685. ac_cv_lib_z_gzopen=yes
  4686. else
  4687. echo "$as_me: failed program was:" >&5
  4688. sed 's/^/| /' conftest.$ac_ext >&5
  4689. ac_cv_lib_z_gzopen=no
  4690. fi
  4691. rm -f conftest.err conftest.$ac_objext \
  4692. conftest$ac_exeext conftest.$ac_ext
  4693. LIBS=$ac_check_lib_save_LIBS
  4694. fi
  4695. echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
  4696. echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
  4697. if test $ac_cv_lib_z_gzopen = yes; then
  4698. ZLIB="-lz"
  4699. fi
  4700. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
  4701. echo "$as_me:$LINENO: checking for SSL_accept in -lssl" >&5
  4702. echo $ECHO_N "checking for SSL_accept in -lssl... $ECHO_C" >&6
  4703. if test "${ac_cv_lib_ssl_SSL_accept+set}" = set; then
  4704. echo $ECHO_N "(cached) $ECHO_C" >&6
  4705. else
  4706. ac_check_lib_save_LIBS=$LIBS
  4707. LIBS="-lssl -lcrypto $LIBS"
  4708. cat >conftest.$ac_ext <<_ACEOF
  4709. /* confdefs.h. */
  4710. _ACEOF
  4711. cat confdefs.h >>conftest.$ac_ext
  4712. cat >>conftest.$ac_ext <<_ACEOF
  4713. /* end confdefs.h. */
  4714. /* Override any gcc2 internal prototype to avoid an error. */
  4715. #ifdef __cplusplus
  4716. extern "C"
  4717. #endif
  4718. /* We use char because int might match the return type of a gcc2
  4719. builtin and then its argument prototype would still apply. */
  4720. char SSL_accept ();
  4721. int
  4722. main ()
  4723. {
  4724. SSL_accept ();
  4725. ;
  4726. return 0;
  4727. }
  4728. _ACEOF
  4729. rm -f conftest.$ac_objext conftest$ac_exeext
  4730. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4731. (eval $ac_link) 2>conftest.er1
  4732. ac_status=$?
  4733. grep -v '^ *+' conftest.er1 >conftest.err
  4734. rm -f conftest.er1
  4735. cat conftest.err >&5
  4736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4737. (exit $ac_status); } &&
  4738. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4739. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4740. (eval $ac_try) 2>&5
  4741. ac_status=$?
  4742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4743. (exit $ac_status); }; } &&
  4744. { ac_try='test -s conftest$ac_exeext'
  4745. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4746. (eval $ac_try) 2>&5
  4747. ac_status=$?
  4748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4749. (exit $ac_status); }; }; then
  4750. ac_cv_lib_ssl_SSL_accept=yes
  4751. else
  4752. echo "$as_me: failed program was:" >&5
  4753. sed 's/^/| /' conftest.$ac_ext >&5
  4754. ac_cv_lib_ssl_SSL_accept=no
  4755. fi
  4756. rm -f conftest.err conftest.$ac_objext \
  4757. conftest$ac_exeext conftest.$ac_ext
  4758. LIBS=$ac_check_lib_save_LIBS
  4759. fi
  4760. echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_accept" >&5
  4761. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_accept" >&6
  4762. if test $ac_cv_lib_ssl_SSL_accept = yes; then
  4763. SSL="-lcrypto"
  4764. else
  4765. SSL=""
  4766. fi
  4767. # This is needed for Tcl libraries compiled with thread support
  4768. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4769. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4770. # ac_cv_lib_pthread="-lpthread"], [dnl
  4771. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4772. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4773. # ac_cv_lib_pthread="-lpthread"], [dnl
  4774. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4775. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4776. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4777. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4778. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4779. # ac_cv_lib_pthread=""],
  4780. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4781. fi
  4782. # Checks for header files
  4783. ac_header_dirent=no
  4784. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4785. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4786. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4787. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4788. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4789. echo $ECHO_N "(cached) $ECHO_C" >&6
  4790. else
  4791. cat >conftest.$ac_ext <<_ACEOF
  4792. /* confdefs.h. */
  4793. _ACEOF
  4794. cat confdefs.h >>conftest.$ac_ext
  4795. cat >>conftest.$ac_ext <<_ACEOF
  4796. /* end confdefs.h. */
  4797. #include <sys/types.h>
  4798. #include <$ac_hdr>
  4799. int
  4800. main ()
  4801. {
  4802. if ((DIR *) 0)
  4803. return 0;
  4804. ;
  4805. return 0;
  4806. }
  4807. _ACEOF
  4808. rm -f conftest.$ac_objext
  4809. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4810. (eval $ac_compile) 2>conftest.er1
  4811. ac_status=$?
  4812. grep -v '^ *+' conftest.er1 >conftest.err
  4813. rm -f conftest.er1
  4814. cat conftest.err >&5
  4815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4816. (exit $ac_status); } &&
  4817. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4818. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4819. (eval $ac_try) 2>&5
  4820. ac_status=$?
  4821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4822. (exit $ac_status); }; } &&
  4823. { ac_try='test -s conftest.$ac_objext'
  4824. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4825. (eval $ac_try) 2>&5
  4826. ac_status=$?
  4827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4828. (exit $ac_status); }; }; then
  4829. eval "$as_ac_Header=yes"
  4830. else
  4831. echo "$as_me: failed program was:" >&5
  4832. sed 's/^/| /' conftest.$ac_ext >&5
  4833. eval "$as_ac_Header=no"
  4834. fi
  4835. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4836. fi
  4837. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4838. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4839. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4840. cat >>confdefs.h <<_ACEOF
  4841. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4842. _ACEOF
  4843. ac_header_dirent=$ac_hdr; break
  4844. fi
  4845. done
  4846. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4847. if test $ac_header_dirent = dirent.h; then
  4848. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4849. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4850. if test "${ac_cv_search_opendir+set}" = set; then
  4851. echo $ECHO_N "(cached) $ECHO_C" >&6
  4852. else
  4853. ac_func_search_save_LIBS=$LIBS
  4854. ac_cv_search_opendir=no
  4855. cat >conftest.$ac_ext <<_ACEOF
  4856. /* confdefs.h. */
  4857. _ACEOF
  4858. cat confdefs.h >>conftest.$ac_ext
  4859. cat >>conftest.$ac_ext <<_ACEOF
  4860. /* end confdefs.h. */
  4861. /* Override any gcc2 internal prototype to avoid an error. */
  4862. #ifdef __cplusplus
  4863. extern "C"
  4864. #endif
  4865. /* We use char because int might match the return type of a gcc2
  4866. builtin and then its argument prototype would still apply. */
  4867. char opendir ();
  4868. int
  4869. main ()
  4870. {
  4871. opendir ();
  4872. ;
  4873. return 0;
  4874. }
  4875. _ACEOF
  4876. rm -f conftest.$ac_objext conftest$ac_exeext
  4877. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4878. (eval $ac_link) 2>conftest.er1
  4879. ac_status=$?
  4880. grep -v '^ *+' conftest.er1 >conftest.err
  4881. rm -f conftest.er1
  4882. cat conftest.err >&5
  4883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4884. (exit $ac_status); } &&
  4885. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4886. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4887. (eval $ac_try) 2>&5
  4888. ac_status=$?
  4889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4890. (exit $ac_status); }; } &&
  4891. { ac_try='test -s conftest$ac_exeext'
  4892. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4893. (eval $ac_try) 2>&5
  4894. ac_status=$?
  4895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4896. (exit $ac_status); }; }; then
  4897. ac_cv_search_opendir="none required"
  4898. else
  4899. echo "$as_me: failed program was:" >&5
  4900. sed 's/^/| /' conftest.$ac_ext >&5
  4901. fi
  4902. rm -f conftest.err conftest.$ac_objext \
  4903. conftest$ac_exeext conftest.$ac_ext
  4904. if test "$ac_cv_search_opendir" = no; then
  4905. for ac_lib in dir; do
  4906. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4907. cat >conftest.$ac_ext <<_ACEOF
  4908. /* confdefs.h. */
  4909. _ACEOF
  4910. cat confdefs.h >>conftest.$ac_ext
  4911. cat >>conftest.$ac_ext <<_ACEOF
  4912. /* end confdefs.h. */
  4913. /* Override any gcc2 internal prototype to avoid an error. */
  4914. #ifdef __cplusplus
  4915. extern "C"
  4916. #endif
  4917. /* We use char because int might match the return type of a gcc2
  4918. builtin and then its argument prototype would still apply. */
  4919. char opendir ();
  4920. int
  4921. main ()
  4922. {
  4923. opendir ();
  4924. ;
  4925. return 0;
  4926. }
  4927. _ACEOF
  4928. rm -f conftest.$ac_objext conftest$ac_exeext
  4929. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4930. (eval $ac_link) 2>conftest.er1
  4931. ac_status=$?
  4932. grep -v '^ *+' conftest.er1 >conftest.err
  4933. rm -f conftest.er1
  4934. cat conftest.err >&5
  4935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4936. (exit $ac_status); } &&
  4937. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4938. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4939. (eval $ac_try) 2>&5
  4940. ac_status=$?
  4941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4942. (exit $ac_status); }; } &&
  4943. { ac_try='test -s conftest$ac_exeext'
  4944. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4945. (eval $ac_try) 2>&5
  4946. ac_status=$?
  4947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4948. (exit $ac_status); }; }; then
  4949. ac_cv_search_opendir="-l$ac_lib"
  4950. break
  4951. else
  4952. echo "$as_me: failed program was:" >&5
  4953. sed 's/^/| /' conftest.$ac_ext >&5
  4954. fi
  4955. rm -f conftest.err conftest.$ac_objext \
  4956. conftest$ac_exeext conftest.$ac_ext
  4957. done
  4958. fi
  4959. LIBS=$ac_func_search_save_LIBS
  4960. fi
  4961. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4962. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4963. if test "$ac_cv_search_opendir" != no; then
  4964. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4965. fi
  4966. else
  4967. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4968. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4969. if test "${ac_cv_search_opendir+set}" = set; then
  4970. echo $ECHO_N "(cached) $ECHO_C" >&6
  4971. else
  4972. ac_func_search_save_LIBS=$LIBS
  4973. ac_cv_search_opendir=no
  4974. cat >conftest.$ac_ext <<_ACEOF
  4975. /* confdefs.h. */
  4976. _ACEOF
  4977. cat confdefs.h >>conftest.$ac_ext
  4978. cat >>conftest.$ac_ext <<_ACEOF
  4979. /* end confdefs.h. */
  4980. /* Override any gcc2 internal prototype to avoid an error. */
  4981. #ifdef __cplusplus
  4982. extern "C"
  4983. #endif
  4984. /* We use char because int might match the return type of a gcc2
  4985. builtin and then its argument prototype would still apply. */
  4986. char opendir ();
  4987. int
  4988. main ()
  4989. {
  4990. opendir ();
  4991. ;
  4992. return 0;
  4993. }
  4994. _ACEOF
  4995. rm -f conftest.$ac_objext conftest$ac_exeext
  4996. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4997. (eval $ac_link) 2>conftest.er1
  4998. ac_status=$?
  4999. grep -v '^ *+' conftest.er1 >conftest.err
  5000. rm -f conftest.er1
  5001. cat conftest.err >&5
  5002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5003. (exit $ac_status); } &&
  5004. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5005. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5006. (eval $ac_try) 2>&5
  5007. ac_status=$?
  5008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5009. (exit $ac_status); }; } &&
  5010. { ac_try='test -s conftest$ac_exeext'
  5011. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5012. (eval $ac_try) 2>&5
  5013. ac_status=$?
  5014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5015. (exit $ac_status); }; }; then
  5016. ac_cv_search_opendir="none required"
  5017. else
  5018. echo "$as_me: failed program was:" >&5
  5019. sed 's/^/| /' conftest.$ac_ext >&5
  5020. fi
  5021. rm -f conftest.err conftest.$ac_objext \
  5022. conftest$ac_exeext conftest.$ac_ext
  5023. if test "$ac_cv_search_opendir" = no; then
  5024. for ac_lib in x; do
  5025. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5026. cat >conftest.$ac_ext <<_ACEOF
  5027. /* confdefs.h. */
  5028. _ACEOF
  5029. cat confdefs.h >>conftest.$ac_ext
  5030. cat >>conftest.$ac_ext <<_ACEOF
  5031. /* end confdefs.h. */
  5032. /* Override any gcc2 internal prototype to avoid an error. */
  5033. #ifdef __cplusplus
  5034. extern "C"
  5035. #endif
  5036. /* We use char because int might match the return type of a gcc2
  5037. builtin and then its argument prototype would still apply. */
  5038. char opendir ();
  5039. int
  5040. main ()
  5041. {
  5042. opendir ();
  5043. ;
  5044. return 0;
  5045. }
  5046. _ACEOF
  5047. rm -f conftest.$ac_objext conftest$ac_exeext
  5048. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5049. (eval $ac_link) 2>conftest.er1
  5050. ac_status=$?
  5051. grep -v '^ *+' conftest.er1 >conftest.err
  5052. rm -f conftest.er1
  5053. cat conftest.err >&5
  5054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5055. (exit $ac_status); } &&
  5056. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5057. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5058. (eval $ac_try) 2>&5
  5059. ac_status=$?
  5060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5061. (exit $ac_status); }; } &&
  5062. { ac_try='test -s conftest$ac_exeext'
  5063. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5064. (eval $ac_try) 2>&5
  5065. ac_status=$?
  5066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5067. (exit $ac_status); }; }; then
  5068. ac_cv_search_opendir="-l$ac_lib"
  5069. break
  5070. else
  5071. echo "$as_me: failed program was:" >&5
  5072. sed 's/^/| /' conftest.$ac_ext >&5
  5073. fi
  5074. rm -f conftest.err conftest.$ac_objext \
  5075. conftest$ac_exeext conftest.$ac_ext
  5076. done
  5077. fi
  5078. LIBS=$ac_func_search_save_LIBS
  5079. fi
  5080. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  5081. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  5082. if test "$ac_cv_search_opendir" != no; then
  5083. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  5084. fi
  5085. fi
  5086. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  5087. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  5088. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  5089. echo $ECHO_N "(cached) $ECHO_C" >&6
  5090. else
  5091. cat >conftest.$ac_ext <<_ACEOF
  5092. /* confdefs.h. */
  5093. _ACEOF
  5094. cat confdefs.h >>conftest.$ac_ext
  5095. cat >>conftest.$ac_ext <<_ACEOF
  5096. /* end confdefs.h. */
  5097. #include <sys/types.h>
  5098. #include <sys/wait.h>
  5099. #ifndef WEXITSTATUS
  5100. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  5101. #endif
  5102. #ifndef WIFEXITED
  5103. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  5104. #endif
  5105. int
  5106. main ()
  5107. {
  5108. int s;
  5109. wait (&s);
  5110. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  5111. ;
  5112. return 0;
  5113. }
  5114. _ACEOF
  5115. rm -f conftest.$ac_objext
  5116. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5117. (eval $ac_compile) 2>conftest.er1
  5118. ac_status=$?
  5119. grep -v '^ *+' conftest.er1 >conftest.err
  5120. rm -f conftest.er1
  5121. cat conftest.err >&5
  5122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5123. (exit $ac_status); } &&
  5124. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5125. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5126. (eval $ac_try) 2>&5
  5127. ac_status=$?
  5128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5129. (exit $ac_status); }; } &&
  5130. { ac_try='test -s conftest.$ac_objext'
  5131. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5132. (eval $ac_try) 2>&5
  5133. ac_status=$?
  5134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5135. (exit $ac_status); }; }; then
  5136. ac_cv_header_sys_wait_h=yes
  5137. else
  5138. echo "$as_me: failed program was:" >&5
  5139. sed 's/^/| /' conftest.$ac_ext >&5
  5140. ac_cv_header_sys_wait_h=no
  5141. fi
  5142. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5143. fi
  5144. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  5145. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  5146. if test $ac_cv_header_sys_wait_h = yes; then
  5147. cat >>confdefs.h <<\_ACEOF
  5148. #define HAVE_SYS_WAIT_H 1
  5149. _ACEOF
  5150. fi
  5151. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  5152. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  5153. if test "${ac_cv_header_time+set}" = set; then
  5154. echo $ECHO_N "(cached) $ECHO_C" >&6
  5155. else
  5156. cat >conftest.$ac_ext <<_ACEOF
  5157. /* confdefs.h. */
  5158. _ACEOF
  5159. cat confdefs.h >>conftest.$ac_ext
  5160. cat >>conftest.$ac_ext <<_ACEOF
  5161. /* end confdefs.h. */
  5162. #include <sys/types.h>
  5163. #include <sys/time.h>
  5164. #include <time.h>
  5165. int
  5166. main ()
  5167. {
  5168. if ((struct tm *) 0)
  5169. return 0;
  5170. ;
  5171. return 0;
  5172. }
  5173. _ACEOF
  5174. rm -f conftest.$ac_objext
  5175. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5176. (eval $ac_compile) 2>conftest.er1
  5177. ac_status=$?
  5178. grep -v '^ *+' conftest.er1 >conftest.err
  5179. rm -f conftest.er1
  5180. cat conftest.err >&5
  5181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5182. (exit $ac_status); } &&
  5183. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5184. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5185. (eval $ac_try) 2>&5
  5186. ac_status=$?
  5187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5188. (exit $ac_status); }; } &&
  5189. { ac_try='test -s conftest.$ac_objext'
  5190. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5191. (eval $ac_try) 2>&5
  5192. ac_status=$?
  5193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5194. (exit $ac_status); }; }; then
  5195. ac_cv_header_time=yes
  5196. else
  5197. echo "$as_me: failed program was:" >&5
  5198. sed 's/^/| /' conftest.$ac_ext >&5
  5199. ac_cv_header_time=no
  5200. fi
  5201. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5202. fi
  5203. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  5204. echo "${ECHO_T}$ac_cv_header_time" >&6
  5205. if test $ac_cv_header_time = yes; then
  5206. cat >>confdefs.h <<\_ACEOF
  5207. #define TIME_WITH_SYS_TIME 1
  5208. _ACEOF
  5209. fi
  5210. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  5211. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  5212. if test "${ac_cv_header_stat_broken+set}" = set; then
  5213. echo $ECHO_N "(cached) $ECHO_C" >&6
  5214. else
  5215. cat >conftest.$ac_ext <<_ACEOF
  5216. /* confdefs.h. */
  5217. _ACEOF
  5218. cat confdefs.h >>conftest.$ac_ext
  5219. cat >>conftest.$ac_ext <<_ACEOF
  5220. /* end confdefs.h. */
  5221. #include <sys/types.h>
  5222. #include <sys/stat.h>
  5223. #if defined(S_ISBLK) && defined(S_IFDIR)
  5224. # if S_ISBLK (S_IFDIR)
  5225. You lose.
  5226. # endif
  5227. #endif
  5228. #if defined(S_ISBLK) && defined(S_IFCHR)
  5229. # if S_ISBLK (S_IFCHR)
  5230. You lose.
  5231. # endif
  5232. #endif
  5233. #if defined(S_ISLNK) && defined(S_IFREG)
  5234. # if S_ISLNK (S_IFREG)
  5235. You lose.
  5236. # endif
  5237. #endif
  5238. #if defined(S_ISSOCK) && defined(S_IFREG)
  5239. # if S_ISSOCK (S_IFREG)
  5240. You lose.
  5241. # endif
  5242. #endif
  5243. _ACEOF
  5244. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5245. $EGREP "You lose" >/dev/null 2>&1; then
  5246. ac_cv_header_stat_broken=yes
  5247. else
  5248. ac_cv_header_stat_broken=no
  5249. fi
  5250. rm -f conftest*
  5251. fi
  5252. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  5253. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  5254. if test $ac_cv_header_stat_broken = yes; then
  5255. cat >>confdefs.h <<\_ACEOF
  5256. #define STAT_MACROS_BROKEN 1
  5257. _ACEOF
  5258. fi
  5259. #checkpoint
  5260. cat >confcache <<\_ACEOF
  5261. # This file is a shell script that caches the results of configure
  5262. # tests run on this system so they can be shared between configure
  5263. # scripts and configure runs, see configure's option --config-cache.
  5264. # It is not useful on other systems. If it contains results you don't
  5265. # want to keep, you may remove or edit it.
  5266. #
  5267. # config.status only pays attention to the cache file if you give it
  5268. # the --recheck option to rerun configure.
  5269. #
  5270. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5271. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5272. # following values.
  5273. _ACEOF
  5274. # The following way of writing the cache mishandles newlines in values,
  5275. # but we know of no workaround that is simple, portable, and efficient.
  5276. # So, don't put newlines in cache variables' values.
  5277. # Ultrix sh set writes to stderr and can't be redirected directly,
  5278. # and sets the high bit in the cache file unless we assign to the vars.
  5279. {
  5280. (set) 2>&1 |
  5281. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5282. *ac_space=\ *)
  5283. # `set' does not quote correctly, so add quotes (double-quote
  5284. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5285. sed -n \
  5286. "s/'/'\\\\''/g;
  5287. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5288. ;;
  5289. *)
  5290. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5291. sed -n \
  5292. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5293. ;;
  5294. esac;
  5295. } |
  5296. sed '
  5297. t clear
  5298. : clear
  5299. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5300. t end
  5301. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5302. : end' >>confcache
  5303. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5304. if test -w $cache_file; then
  5305. test "x$cache_file" != "x/dev/null"
  5306. cat confcache >$cache_file
  5307. else
  5308. echo "not updating unwritable cache $cache_file"
  5309. fi
  5310. fi
  5311. rm -f confcache
  5312. for ac_header in arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5313. do
  5314. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5315. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5316. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5317. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5318. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5319. echo $ECHO_N "(cached) $ECHO_C" >&6
  5320. fi
  5321. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5322. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5323. else
  5324. # Is the header compilable?
  5325. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5326. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5327. cat >conftest.$ac_ext <<_ACEOF
  5328. /* confdefs.h. */
  5329. _ACEOF
  5330. cat confdefs.h >>conftest.$ac_ext
  5331. cat >>conftest.$ac_ext <<_ACEOF
  5332. /* end confdefs.h. */
  5333. $ac_includes_default
  5334. #include <$ac_header>
  5335. _ACEOF
  5336. rm -f conftest.$ac_objext
  5337. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5338. (eval $ac_compile) 2>conftest.er1
  5339. ac_status=$?
  5340. grep -v '^ *+' conftest.er1 >conftest.err
  5341. rm -f conftest.er1
  5342. cat conftest.err >&5
  5343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5344. (exit $ac_status); } &&
  5345. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5346. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5347. (eval $ac_try) 2>&5
  5348. ac_status=$?
  5349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5350. (exit $ac_status); }; } &&
  5351. { ac_try='test -s conftest.$ac_objext'
  5352. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5353. (eval $ac_try) 2>&5
  5354. ac_status=$?
  5355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5356. (exit $ac_status); }; }; then
  5357. ac_header_compiler=yes
  5358. else
  5359. echo "$as_me: failed program was:" >&5
  5360. sed 's/^/| /' conftest.$ac_ext >&5
  5361. ac_header_compiler=no
  5362. fi
  5363. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5364. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5365. echo "${ECHO_T}$ac_header_compiler" >&6
  5366. # Is the header present?
  5367. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5368. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5369. cat >conftest.$ac_ext <<_ACEOF
  5370. /* confdefs.h. */
  5371. _ACEOF
  5372. cat confdefs.h >>conftest.$ac_ext
  5373. cat >>conftest.$ac_ext <<_ACEOF
  5374. /* end confdefs.h. */
  5375. #include <$ac_header>
  5376. _ACEOF
  5377. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5378. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5379. ac_status=$?
  5380. grep -v '^ *+' conftest.er1 >conftest.err
  5381. rm -f conftest.er1
  5382. cat conftest.err >&5
  5383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5384. (exit $ac_status); } >/dev/null; then
  5385. if test -s conftest.err; then
  5386. ac_cpp_err=$ac_c_preproc_warn_flag
  5387. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5388. else
  5389. ac_cpp_err=
  5390. fi
  5391. else
  5392. ac_cpp_err=yes
  5393. fi
  5394. if test -z "$ac_cpp_err"; then
  5395. ac_header_preproc=yes
  5396. else
  5397. echo "$as_me: failed program was:" >&5
  5398. sed 's/^/| /' conftest.$ac_ext >&5
  5399. ac_header_preproc=no
  5400. fi
  5401. rm -f conftest.err conftest.$ac_ext
  5402. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5403. echo "${ECHO_T}$ac_header_preproc" >&6
  5404. # So? What about this header?
  5405. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5406. yes:no: )
  5407. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5408. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5409. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5410. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5411. ac_header_preproc=yes
  5412. ;;
  5413. no:yes:* )
  5414. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5415. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5416. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5417. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5418. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5419. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5420. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5421. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5422. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5423. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5424. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5425. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5426. (
  5427. cat <<\_ASBOX
  5428. ## ------------------------------------------ ##
  5429. ## Report this to the AC_PACKAGE_NAME lists. ##
  5430. ## ------------------------------------------ ##
  5431. _ASBOX
  5432. ) |
  5433. sed "s/^/$as_me: WARNING: /" >&2
  5434. ;;
  5435. esac
  5436. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5437. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5438. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5439. echo $ECHO_N "(cached) $ECHO_C" >&6
  5440. else
  5441. eval "$as_ac_Header=\$ac_header_preproc"
  5442. fi
  5443. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5444. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5445. fi
  5446. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5447. cat >>confdefs.h <<_ACEOF
  5448. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5449. _ACEOF
  5450. fi
  5451. done
  5452. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5453. do
  5454. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5455. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5456. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5457. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5458. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5459. echo $ECHO_N "(cached) $ECHO_C" >&6
  5460. fi
  5461. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5462. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5463. else
  5464. # Is the header compilable?
  5465. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5466. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5467. cat >conftest.$ac_ext <<_ACEOF
  5468. /* confdefs.h. */
  5469. _ACEOF
  5470. cat confdefs.h >>conftest.$ac_ext
  5471. cat >>conftest.$ac_ext <<_ACEOF
  5472. /* end confdefs.h. */
  5473. $ac_includes_default
  5474. #include <$ac_header>
  5475. _ACEOF
  5476. rm -f conftest.$ac_objext
  5477. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5478. (eval $ac_compile) 2>conftest.er1
  5479. ac_status=$?
  5480. grep -v '^ *+' conftest.er1 >conftest.err
  5481. rm -f conftest.er1
  5482. cat conftest.err >&5
  5483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5484. (exit $ac_status); } &&
  5485. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5486. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5487. (eval $ac_try) 2>&5
  5488. ac_status=$?
  5489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5490. (exit $ac_status); }; } &&
  5491. { ac_try='test -s conftest.$ac_objext'
  5492. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5493. (eval $ac_try) 2>&5
  5494. ac_status=$?
  5495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5496. (exit $ac_status); }; }; then
  5497. ac_header_compiler=yes
  5498. else
  5499. echo "$as_me: failed program was:" >&5
  5500. sed 's/^/| /' conftest.$ac_ext >&5
  5501. ac_header_compiler=no
  5502. fi
  5503. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5504. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5505. echo "${ECHO_T}$ac_header_compiler" >&6
  5506. # Is the header present?
  5507. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5508. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5509. cat >conftest.$ac_ext <<_ACEOF
  5510. /* confdefs.h. */
  5511. _ACEOF
  5512. cat confdefs.h >>conftest.$ac_ext
  5513. cat >>conftest.$ac_ext <<_ACEOF
  5514. /* end confdefs.h. */
  5515. #include <$ac_header>
  5516. _ACEOF
  5517. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5518. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5519. ac_status=$?
  5520. grep -v '^ *+' conftest.er1 >conftest.err
  5521. rm -f conftest.er1
  5522. cat conftest.err >&5
  5523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5524. (exit $ac_status); } >/dev/null; then
  5525. if test -s conftest.err; then
  5526. ac_cpp_err=$ac_c_preproc_warn_flag
  5527. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5528. else
  5529. ac_cpp_err=
  5530. fi
  5531. else
  5532. ac_cpp_err=yes
  5533. fi
  5534. if test -z "$ac_cpp_err"; then
  5535. ac_header_preproc=yes
  5536. else
  5537. echo "$as_me: failed program was:" >&5
  5538. sed 's/^/| /' conftest.$ac_ext >&5
  5539. ac_header_preproc=no
  5540. fi
  5541. rm -f conftest.err conftest.$ac_ext
  5542. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5543. echo "${ECHO_T}$ac_header_preproc" >&6
  5544. # So? What about this header?
  5545. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5546. yes:no: )
  5547. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5548. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5549. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5550. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5551. ac_header_preproc=yes
  5552. ;;
  5553. no:yes:* )
  5554. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5555. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5556. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5557. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5558. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5559. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5560. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5561. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5562. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5563. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5564. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5565. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5566. (
  5567. cat <<\_ASBOX
  5568. ## ------------------------------------------ ##
  5569. ## Report this to the AC_PACKAGE_NAME lists. ##
  5570. ## ------------------------------------------ ##
  5571. _ASBOX
  5572. ) |
  5573. sed "s/^/$as_me: WARNING: /" >&2
  5574. ;;
  5575. esac
  5576. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5577. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5578. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5579. echo $ECHO_N "(cached) $ECHO_C" >&6
  5580. else
  5581. eval "$as_ac_Header=\$ac_header_preproc"
  5582. fi
  5583. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5584. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5585. fi
  5586. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5587. cat >>confdefs.h <<_ACEOF
  5588. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5589. _ACEOF
  5590. fi
  5591. done
  5592. #checkpoint
  5593. cat >confcache <<\_ACEOF
  5594. # This file is a shell script that caches the results of configure
  5595. # tests run on this system so they can be shared between configure
  5596. # scripts and configure runs, see configure's option --config-cache.
  5597. # It is not useful on other systems. If it contains results you don't
  5598. # want to keep, you may remove or edit it.
  5599. #
  5600. # config.status only pays attention to the cache file if you give it
  5601. # the --recheck option to rerun configure.
  5602. #
  5603. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5604. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5605. # following values.
  5606. _ACEOF
  5607. # The following way of writing the cache mishandles newlines in values,
  5608. # but we know of no workaround that is simple, portable, and efficient.
  5609. # So, don't put newlines in cache variables' values.
  5610. # Ultrix sh set writes to stderr and can't be redirected directly,
  5611. # and sets the high bit in the cache file unless we assign to the vars.
  5612. {
  5613. (set) 2>&1 |
  5614. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5615. *ac_space=\ *)
  5616. # `set' does not quote correctly, so add quotes (double-quote
  5617. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5618. sed -n \
  5619. "s/'/'\\\\''/g;
  5620. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5621. ;;
  5622. *)
  5623. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5624. sed -n \
  5625. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5626. ;;
  5627. esac;
  5628. } |
  5629. sed '
  5630. t clear
  5631. : clear
  5632. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5633. t end
  5634. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5635. : end' >>confcache
  5636. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5637. if test -w $cache_file; then
  5638. test "x$cache_file" != "x/dev/null"
  5639. cat confcache >$cache_file
  5640. else
  5641. echo "not updating unwritable cache $cache_file"
  5642. fi
  5643. fi
  5644. rm -f confcache
  5645. for ac_header in openssl/ssl.h openssl/crypto.h
  5646. do
  5647. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5648. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5649. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5650. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5651. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5652. echo $ECHO_N "(cached) $ECHO_C" >&6
  5653. fi
  5654. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5655. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5656. else
  5657. # Is the header compilable?
  5658. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5659. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5660. cat >conftest.$ac_ext <<_ACEOF
  5661. /* confdefs.h. */
  5662. _ACEOF
  5663. cat confdefs.h >>conftest.$ac_ext
  5664. cat >>conftest.$ac_ext <<_ACEOF
  5665. /* end confdefs.h. */
  5666. $ac_includes_default
  5667. #include <$ac_header>
  5668. _ACEOF
  5669. rm -f conftest.$ac_objext
  5670. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5671. (eval $ac_compile) 2>conftest.er1
  5672. ac_status=$?
  5673. grep -v '^ *+' conftest.er1 >conftest.err
  5674. rm -f conftest.er1
  5675. cat conftest.err >&5
  5676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5677. (exit $ac_status); } &&
  5678. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5679. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5680. (eval $ac_try) 2>&5
  5681. ac_status=$?
  5682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5683. (exit $ac_status); }; } &&
  5684. { ac_try='test -s conftest.$ac_objext'
  5685. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5686. (eval $ac_try) 2>&5
  5687. ac_status=$?
  5688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5689. (exit $ac_status); }; }; then
  5690. ac_header_compiler=yes
  5691. else
  5692. echo "$as_me: failed program was:" >&5
  5693. sed 's/^/| /' conftest.$ac_ext >&5
  5694. ac_header_compiler=no
  5695. fi
  5696. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5697. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5698. echo "${ECHO_T}$ac_header_compiler" >&6
  5699. # Is the header present?
  5700. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5701. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5702. cat >conftest.$ac_ext <<_ACEOF
  5703. /* confdefs.h. */
  5704. _ACEOF
  5705. cat confdefs.h >>conftest.$ac_ext
  5706. cat >>conftest.$ac_ext <<_ACEOF
  5707. /* end confdefs.h. */
  5708. #include <$ac_header>
  5709. _ACEOF
  5710. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5711. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5712. ac_status=$?
  5713. grep -v '^ *+' conftest.er1 >conftest.err
  5714. rm -f conftest.er1
  5715. cat conftest.err >&5
  5716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5717. (exit $ac_status); } >/dev/null; then
  5718. if test -s conftest.err; then
  5719. ac_cpp_err=$ac_c_preproc_warn_flag
  5720. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5721. else
  5722. ac_cpp_err=
  5723. fi
  5724. else
  5725. ac_cpp_err=yes
  5726. fi
  5727. if test -z "$ac_cpp_err"; then
  5728. ac_header_preproc=yes
  5729. else
  5730. echo "$as_me: failed program was:" >&5
  5731. sed 's/^/| /' conftest.$ac_ext >&5
  5732. ac_header_preproc=no
  5733. fi
  5734. rm -f conftest.err conftest.$ac_ext
  5735. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5736. echo "${ECHO_T}$ac_header_preproc" >&6
  5737. # So? What about this header?
  5738. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5739. yes:no: )
  5740. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5741. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5742. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5743. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5744. ac_header_preproc=yes
  5745. ;;
  5746. no:yes:* )
  5747. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5748. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5749. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5750. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5751. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5752. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5753. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5754. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5755. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5756. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5757. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5758. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5759. (
  5760. cat <<\_ASBOX
  5761. ## ------------------------------------------ ##
  5762. ## Report this to the AC_PACKAGE_NAME lists. ##
  5763. ## ------------------------------------------ ##
  5764. _ASBOX
  5765. ) |
  5766. sed "s/^/$as_me: WARNING: /" >&2
  5767. ;;
  5768. esac
  5769. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5770. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5771. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5772. echo $ECHO_N "(cached) $ECHO_C" >&6
  5773. else
  5774. eval "$as_ac_Header=\$ac_header_preproc"
  5775. fi
  5776. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5777. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5778. fi
  5779. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5780. cat >>confdefs.h <<_ACEOF
  5781. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5782. _ACEOF
  5783. fi
  5784. done
  5785. for ac_header in zlib.h
  5786. do
  5787. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5788. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5789. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5790. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5791. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5792. echo $ECHO_N "(cached) $ECHO_C" >&6
  5793. fi
  5794. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5795. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5796. else
  5797. # Is the header compilable?
  5798. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5799. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5800. cat >conftest.$ac_ext <<_ACEOF
  5801. /* confdefs.h. */
  5802. _ACEOF
  5803. cat confdefs.h >>conftest.$ac_ext
  5804. cat >>conftest.$ac_ext <<_ACEOF
  5805. /* end confdefs.h. */
  5806. $ac_includes_default
  5807. #include <$ac_header>
  5808. _ACEOF
  5809. rm -f conftest.$ac_objext
  5810. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5811. (eval $ac_compile) 2>conftest.er1
  5812. ac_status=$?
  5813. grep -v '^ *+' conftest.er1 >conftest.err
  5814. rm -f conftest.er1
  5815. cat conftest.err >&5
  5816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5817. (exit $ac_status); } &&
  5818. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5819. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5820. (eval $ac_try) 2>&5
  5821. ac_status=$?
  5822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5823. (exit $ac_status); }; } &&
  5824. { ac_try='test -s conftest.$ac_objext'
  5825. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5826. (eval $ac_try) 2>&5
  5827. ac_status=$?
  5828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5829. (exit $ac_status); }; }; then
  5830. ac_header_compiler=yes
  5831. else
  5832. echo "$as_me: failed program was:" >&5
  5833. sed 's/^/| /' conftest.$ac_ext >&5
  5834. ac_header_compiler=no
  5835. fi
  5836. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5837. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5838. echo "${ECHO_T}$ac_header_compiler" >&6
  5839. # Is the header present?
  5840. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5841. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5842. cat >conftest.$ac_ext <<_ACEOF
  5843. /* confdefs.h. */
  5844. _ACEOF
  5845. cat confdefs.h >>conftest.$ac_ext
  5846. cat >>conftest.$ac_ext <<_ACEOF
  5847. /* end confdefs.h. */
  5848. #include <$ac_header>
  5849. _ACEOF
  5850. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5851. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5852. ac_status=$?
  5853. grep -v '^ *+' conftest.er1 >conftest.err
  5854. rm -f conftest.er1
  5855. cat conftest.err >&5
  5856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5857. (exit $ac_status); } >/dev/null; then
  5858. if test -s conftest.err; then
  5859. ac_cpp_err=$ac_c_preproc_warn_flag
  5860. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5861. else
  5862. ac_cpp_err=
  5863. fi
  5864. else
  5865. ac_cpp_err=yes
  5866. fi
  5867. if test -z "$ac_cpp_err"; then
  5868. ac_header_preproc=yes
  5869. else
  5870. echo "$as_me: failed program was:" >&5
  5871. sed 's/^/| /' conftest.$ac_ext >&5
  5872. ac_header_preproc=no
  5873. fi
  5874. rm -f conftest.err conftest.$ac_ext
  5875. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5876. echo "${ECHO_T}$ac_header_preproc" >&6
  5877. # So? What about this header?
  5878. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5879. yes:no: )
  5880. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5881. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5882. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5883. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5884. ac_header_preproc=yes
  5885. ;;
  5886. no:yes:* )
  5887. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5888. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5889. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5890. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5891. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5892. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5893. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5894. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5895. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5896. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5897. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5898. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5899. (
  5900. cat <<\_ASBOX
  5901. ## ------------------------------------------ ##
  5902. ## Report this to the AC_PACKAGE_NAME lists. ##
  5903. ## ------------------------------------------ ##
  5904. _ASBOX
  5905. ) |
  5906. sed "s/^/$as_me: WARNING: /" >&2
  5907. ;;
  5908. esac
  5909. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5910. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5911. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5912. echo $ECHO_N "(cached) $ECHO_C" >&6
  5913. else
  5914. eval "$as_ac_Header=\$ac_header_preproc"
  5915. fi
  5916. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5917. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5918. fi
  5919. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5920. cat >>confdefs.h <<_ACEOF
  5921. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5922. _ACEOF
  5923. fi
  5924. done
  5925. if test "x${ZLIB}" = x; then
  5926. cat >&2 <<EOF
  5927. configure: error:
  5928. Your system does not provide a working zlib compression library.
  5929. It is required.
  5930. EOF
  5931. exit 1
  5932. else
  5933. if test "${ac_cv_header_zlib_h}" != yes; then
  5934. cat >&2 <<EOF
  5935. configure: error:
  5936. Your system does not provide the necessary zlib header file.
  5937. It is required.
  5938. EOF
  5939. exit 1
  5940. fi
  5941. fi
  5942. if test "x${SSL}" = x; then
  5943. cat >&2 <<EOF
  5944. configure: error:
  5945. Your system does not provide a working ssl library.
  5946. It is required. Download openssl at www.openssl.org
  5947. EOF
  5948. exit 1
  5949. else
  5950. if test "${ac_cv_header_openssl_ssl_h}" != yes; then
  5951. cat >&2 <<EOF
  5952. configure: error:
  5953. Your system does not provide the necessary ssl header file.
  5954. It is required. Download openssl at www.openssl.org
  5955. EOF
  5956. exit 1
  5957. fi
  5958. fi
  5959. # Checks for typedefs, structures, and compiler characteristics
  5960. echo "$as_me:$LINENO: checking for pid_t" >&5
  5961. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  5962. if test "${ac_cv_type_pid_t+set}" = set; then
  5963. echo $ECHO_N "(cached) $ECHO_C" >&6
  5964. else
  5965. cat >conftest.$ac_ext <<_ACEOF
  5966. /* confdefs.h. */
  5967. _ACEOF
  5968. cat confdefs.h >>conftest.$ac_ext
  5969. cat >>conftest.$ac_ext <<_ACEOF
  5970. /* end confdefs.h. */
  5971. $ac_includes_default
  5972. int
  5973. main ()
  5974. {
  5975. if ((pid_t *) 0)
  5976. return 0;
  5977. if (sizeof (pid_t))
  5978. return 0;
  5979. ;
  5980. return 0;
  5981. }
  5982. _ACEOF
  5983. rm -f conftest.$ac_objext
  5984. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5985. (eval $ac_compile) 2>conftest.er1
  5986. ac_status=$?
  5987. grep -v '^ *+' conftest.er1 >conftest.err
  5988. rm -f conftest.er1
  5989. cat conftest.err >&5
  5990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5991. (exit $ac_status); } &&
  5992. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5993. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5994. (eval $ac_try) 2>&5
  5995. ac_status=$?
  5996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5997. (exit $ac_status); }; } &&
  5998. { ac_try='test -s conftest.$ac_objext'
  5999. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6000. (eval $ac_try) 2>&5
  6001. ac_status=$?
  6002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6003. (exit $ac_status); }; }; then
  6004. ac_cv_type_pid_t=yes
  6005. else
  6006. echo "$as_me: failed program was:" >&5
  6007. sed 's/^/| /' conftest.$ac_ext >&5
  6008. ac_cv_type_pid_t=no
  6009. fi
  6010. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6011. fi
  6012. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  6013. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  6014. if test $ac_cv_type_pid_t = yes; then
  6015. :
  6016. else
  6017. cat >>confdefs.h <<_ACEOF
  6018. #define pid_t int
  6019. _ACEOF
  6020. fi
  6021. echo "$as_me:$LINENO: checking for size_t" >&5
  6022. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  6023. if test "${ac_cv_type_size_t+set}" = set; then
  6024. echo $ECHO_N "(cached) $ECHO_C" >&6
  6025. else
  6026. cat >conftest.$ac_ext <<_ACEOF
  6027. /* confdefs.h. */
  6028. _ACEOF
  6029. cat confdefs.h >>conftest.$ac_ext
  6030. cat >>conftest.$ac_ext <<_ACEOF
  6031. /* end confdefs.h. */
  6032. $ac_includes_default
  6033. int
  6034. main ()
  6035. {
  6036. if ((size_t *) 0)
  6037. return 0;
  6038. if (sizeof (size_t))
  6039. return 0;
  6040. ;
  6041. return 0;
  6042. }
  6043. _ACEOF
  6044. rm -f conftest.$ac_objext
  6045. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6046. (eval $ac_compile) 2>conftest.er1
  6047. ac_status=$?
  6048. grep -v '^ *+' conftest.er1 >conftest.err
  6049. rm -f conftest.er1
  6050. cat conftest.err >&5
  6051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6052. (exit $ac_status); } &&
  6053. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6054. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6055. (eval $ac_try) 2>&5
  6056. ac_status=$?
  6057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6058. (exit $ac_status); }; } &&
  6059. { ac_try='test -s conftest.$ac_objext'
  6060. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6061. (eval $ac_try) 2>&5
  6062. ac_status=$?
  6063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6064. (exit $ac_status); }; }; then
  6065. ac_cv_type_size_t=yes
  6066. else
  6067. echo "$as_me: failed program was:" >&5
  6068. sed 's/^/| /' conftest.$ac_ext >&5
  6069. ac_cv_type_size_t=no
  6070. fi
  6071. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6072. fi
  6073. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  6074. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  6075. if test $ac_cv_type_size_t = yes; then
  6076. :
  6077. else
  6078. cat >>confdefs.h <<_ACEOF
  6079. #define size_t unsigned
  6080. _ACEOF
  6081. fi
  6082. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  6083. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  6084. if test "${ac_cv_type_uid_t+set}" = set; then
  6085. echo $ECHO_N "(cached) $ECHO_C" >&6
  6086. else
  6087. cat >conftest.$ac_ext <<_ACEOF
  6088. /* confdefs.h. */
  6089. _ACEOF
  6090. cat confdefs.h >>conftest.$ac_ext
  6091. cat >>conftest.$ac_ext <<_ACEOF
  6092. /* end confdefs.h. */
  6093. #include <sys/types.h>
  6094. _ACEOF
  6095. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6096. $EGREP "uid_t" >/dev/null 2>&1; then
  6097. ac_cv_type_uid_t=yes
  6098. else
  6099. ac_cv_type_uid_t=no
  6100. fi
  6101. rm -f conftest*
  6102. fi
  6103. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  6104. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  6105. if test $ac_cv_type_uid_t = no; then
  6106. cat >>confdefs.h <<\_ACEOF
  6107. #define uid_t int
  6108. _ACEOF
  6109. cat >>confdefs.h <<\_ACEOF
  6110. #define gid_t int
  6111. _ACEOF
  6112. fi
  6113. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  6114. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  6115. if test "${ac_cv_c_const+set}" = set; then
  6116. echo $ECHO_N "(cached) $ECHO_C" >&6
  6117. else
  6118. cat >conftest.$ac_ext <<_ACEOF
  6119. /* confdefs.h. */
  6120. _ACEOF
  6121. cat confdefs.h >>conftest.$ac_ext
  6122. cat >>conftest.$ac_ext <<_ACEOF
  6123. /* end confdefs.h. */
  6124. int
  6125. main ()
  6126. {
  6127. /* FIXME: Include the comments suggested by Paul. */
  6128. #ifndef __cplusplus
  6129. /* Ultrix mips cc rejects this. */
  6130. typedef int charset[2];
  6131. const charset x;
  6132. /* SunOS 4.1.1 cc rejects this. */
  6133. char const *const *ccp;
  6134. char **p;
  6135. /* NEC SVR4.0.2 mips cc rejects this. */
  6136. struct point {int x, y;};
  6137. static struct point const zero = {0,0};
  6138. /* AIX XL C 1.02.0.0 rejects this.
  6139. It does not let you subtract one const X* pointer from another in
  6140. an arm of an if-expression whose if-part is not a constant
  6141. expression */
  6142. const char *g = "string";
  6143. ccp = &g + (g ? g-g : 0);
  6144. /* HPUX 7.0 cc rejects these. */
  6145. ++ccp;
  6146. p = (char**) ccp;
  6147. ccp = (char const *const *) p;
  6148. { /* SCO 3.2v4 cc rejects this. */
  6149. char *t;
  6150. char const *s = 0 ? (char *) 0 : (char const *) 0;
  6151. *t++ = 0;
  6152. }
  6153. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  6154. int x[] = {25, 17};
  6155. const int *foo = &x[0];
  6156. ++foo;
  6157. }
  6158. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6159. typedef const int *iptr;
  6160. iptr p = 0;
  6161. ++p;
  6162. }
  6163. { /* AIX XL C 1.02.0.0 rejects this saying
  6164. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  6165. struct s { int j; const int *ap[3]; };
  6166. struct s *b; b->j = 5;
  6167. }
  6168. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  6169. const int foo = 10;
  6170. }
  6171. #endif
  6172. ;
  6173. return 0;
  6174. }
  6175. _ACEOF
  6176. rm -f conftest.$ac_objext
  6177. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6178. (eval $ac_compile) 2>conftest.er1
  6179. ac_status=$?
  6180. grep -v '^ *+' conftest.er1 >conftest.err
  6181. rm -f conftest.er1
  6182. cat conftest.err >&5
  6183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6184. (exit $ac_status); } &&
  6185. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6186. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6187. (eval $ac_try) 2>&5
  6188. ac_status=$?
  6189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6190. (exit $ac_status); }; } &&
  6191. { ac_try='test -s conftest.$ac_objext'
  6192. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6193. (eval $ac_try) 2>&5
  6194. ac_status=$?
  6195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6196. (exit $ac_status); }; }; then
  6197. ac_cv_c_const=yes
  6198. else
  6199. echo "$as_me: failed program was:" >&5
  6200. sed 's/^/| /' conftest.$ac_ext >&5
  6201. ac_cv_c_const=no
  6202. fi
  6203. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6204. fi
  6205. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  6206. echo "${ECHO_T}$ac_cv_c_const" >&6
  6207. if test $ac_cv_c_const = no; then
  6208. cat >>confdefs.h <<\_ACEOF
  6209. #define const
  6210. _ACEOF
  6211. fi
  6212. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  6213. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  6214. if test "${ac_cv_c_bigendian+set}" = set; then
  6215. echo $ECHO_N "(cached) $ECHO_C" >&6
  6216. else
  6217. # See if sys/param.h defines the BYTE_ORDER macro.
  6218. cat >conftest.$ac_ext <<_ACEOF
  6219. /* confdefs.h. */
  6220. _ACEOF
  6221. cat confdefs.h >>conftest.$ac_ext
  6222. cat >>conftest.$ac_ext <<_ACEOF
  6223. /* end confdefs.h. */
  6224. #include <sys/types.h>
  6225. #include <sys/param.h>
  6226. int
  6227. main ()
  6228. {
  6229. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  6230. bogus endian macros
  6231. #endif
  6232. ;
  6233. return 0;
  6234. }
  6235. _ACEOF
  6236. rm -f conftest.$ac_objext
  6237. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6238. (eval $ac_compile) 2>conftest.er1
  6239. ac_status=$?
  6240. grep -v '^ *+' conftest.er1 >conftest.err
  6241. rm -f conftest.er1
  6242. cat conftest.err >&5
  6243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6244. (exit $ac_status); } &&
  6245. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6246. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6247. (eval $ac_try) 2>&5
  6248. ac_status=$?
  6249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6250. (exit $ac_status); }; } &&
  6251. { ac_try='test -s conftest.$ac_objext'
  6252. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6253. (eval $ac_try) 2>&5
  6254. ac_status=$?
  6255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6256. (exit $ac_status); }; }; then
  6257. # It does; now see whether it defined to BIG_ENDIAN or not.
  6258. cat >conftest.$ac_ext <<_ACEOF
  6259. /* confdefs.h. */
  6260. _ACEOF
  6261. cat confdefs.h >>conftest.$ac_ext
  6262. cat >>conftest.$ac_ext <<_ACEOF
  6263. /* end confdefs.h. */
  6264. #include <sys/types.h>
  6265. #include <sys/param.h>
  6266. int
  6267. main ()
  6268. {
  6269. #if BYTE_ORDER != BIG_ENDIAN
  6270. not big endian
  6271. #endif
  6272. ;
  6273. return 0;
  6274. }
  6275. _ACEOF
  6276. rm -f conftest.$ac_objext
  6277. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6278. (eval $ac_compile) 2>conftest.er1
  6279. ac_status=$?
  6280. grep -v '^ *+' conftest.er1 >conftest.err
  6281. rm -f conftest.er1
  6282. cat conftest.err >&5
  6283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6284. (exit $ac_status); } &&
  6285. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6286. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6287. (eval $ac_try) 2>&5
  6288. ac_status=$?
  6289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6290. (exit $ac_status); }; } &&
  6291. { ac_try='test -s conftest.$ac_objext'
  6292. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6293. (eval $ac_try) 2>&5
  6294. ac_status=$?
  6295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6296. (exit $ac_status); }; }; then
  6297. ac_cv_c_bigendian=yes
  6298. else
  6299. echo "$as_me: failed program was:" >&5
  6300. sed 's/^/| /' conftest.$ac_ext >&5
  6301. ac_cv_c_bigendian=no
  6302. fi
  6303. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6304. else
  6305. echo "$as_me: failed program was:" >&5
  6306. sed 's/^/| /' conftest.$ac_ext >&5
  6307. # It does not; compile a test program.
  6308. if test "$cross_compiling" = yes; then
  6309. # try to guess the endianness by grepping values into an object file
  6310. ac_cv_c_bigendian=unknown
  6311. cat >conftest.$ac_ext <<_ACEOF
  6312. /* confdefs.h. */
  6313. _ACEOF
  6314. cat confdefs.h >>conftest.$ac_ext
  6315. cat >>conftest.$ac_ext <<_ACEOF
  6316. /* end confdefs.h. */
  6317. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6318. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6319. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  6320. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6321. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6322. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  6323. int
  6324. main ()
  6325. {
  6326. _ascii (); _ebcdic ();
  6327. ;
  6328. return 0;
  6329. }
  6330. _ACEOF
  6331. rm -f conftest.$ac_objext
  6332. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6333. (eval $ac_compile) 2>conftest.er1
  6334. ac_status=$?
  6335. grep -v '^ *+' conftest.er1 >conftest.err
  6336. rm -f conftest.er1
  6337. cat conftest.err >&5
  6338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6339. (exit $ac_status); } &&
  6340. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6341. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6342. (eval $ac_try) 2>&5
  6343. ac_status=$?
  6344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6345. (exit $ac_status); }; } &&
  6346. { ac_try='test -s conftest.$ac_objext'
  6347. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6348. (eval $ac_try) 2>&5
  6349. ac_status=$?
  6350. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6351. (exit $ac_status); }; }; then
  6352. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  6353. ac_cv_c_bigendian=yes
  6354. fi
  6355. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6356. if test "$ac_cv_c_bigendian" = unknown; then
  6357. ac_cv_c_bigendian=no
  6358. else
  6359. # finding both strings is unlikely to happen, but who knows?
  6360. ac_cv_c_bigendian=unknown
  6361. fi
  6362. fi
  6363. else
  6364. echo "$as_me: failed program was:" >&5
  6365. sed 's/^/| /' conftest.$ac_ext >&5
  6366. fi
  6367. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6368. else
  6369. cat >conftest.$ac_ext <<_ACEOF
  6370. /* confdefs.h. */
  6371. _ACEOF
  6372. cat confdefs.h >>conftest.$ac_ext
  6373. cat >>conftest.$ac_ext <<_ACEOF
  6374. /* end confdefs.h. */
  6375. int
  6376. main ()
  6377. {
  6378. /* Are we little or big endian? From Harbison&Steele. */
  6379. union
  6380. {
  6381. long l;
  6382. char c[sizeof (long)];
  6383. } u;
  6384. u.l = 1;
  6385. exit (u.c[sizeof (long) - 1] == 1);
  6386. }
  6387. _ACEOF
  6388. rm -f conftest$ac_exeext
  6389. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6390. (eval $ac_link) 2>&5
  6391. ac_status=$?
  6392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6393. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6394. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6395. (eval $ac_try) 2>&5
  6396. ac_status=$?
  6397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6398. (exit $ac_status); }; }; then
  6399. ac_cv_c_bigendian=no
  6400. else
  6401. echo "$as_me: program exited with status $ac_status" >&5
  6402. echo "$as_me: failed program was:" >&5
  6403. sed 's/^/| /' conftest.$ac_ext >&5
  6404. ( exit $ac_status )
  6405. ac_cv_c_bigendian=yes
  6406. fi
  6407. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6408. fi
  6409. fi
  6410. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6411. fi
  6412. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6413. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  6414. case $ac_cv_c_bigendian in
  6415. yes)
  6416. cat >>confdefs.h <<\_ACEOF
  6417. #define WORDS_BIGENDIAN 1
  6418. _ACEOF
  6419. ;;
  6420. no)
  6421. ;;
  6422. *)
  6423. { { echo "$as_me:$LINENO: error: unknown endianness
  6424. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6425. echo "$as_me: error: unknown endianness
  6426. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6427. { (exit 1); exit 1; }; } ;;
  6428. esac
  6429. echo "$as_me:$LINENO: checking for inline" >&5
  6430. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  6431. if test "${ac_cv_c_inline+set}" = set; then
  6432. echo $ECHO_N "(cached) $ECHO_C" >&6
  6433. else
  6434. ac_cv_c_inline=no
  6435. for ac_kw in inline __inline__ __inline; do
  6436. cat >conftest.$ac_ext <<_ACEOF
  6437. /* confdefs.h. */
  6438. _ACEOF
  6439. cat confdefs.h >>conftest.$ac_ext
  6440. cat >>conftest.$ac_ext <<_ACEOF
  6441. /* end confdefs.h. */
  6442. #ifndef __cplusplus
  6443. typedef int foo_t;
  6444. static $ac_kw foo_t static_foo () {return 0; }
  6445. $ac_kw foo_t foo () {return 0; }
  6446. #endif
  6447. _ACEOF
  6448. rm -f conftest.$ac_objext
  6449. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6450. (eval $ac_compile) 2>conftest.er1
  6451. ac_status=$?
  6452. grep -v '^ *+' conftest.er1 >conftest.err
  6453. rm -f conftest.er1
  6454. cat conftest.err >&5
  6455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6456. (exit $ac_status); } &&
  6457. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6458. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6459. (eval $ac_try) 2>&5
  6460. ac_status=$?
  6461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6462. (exit $ac_status); }; } &&
  6463. { ac_try='test -s conftest.$ac_objext'
  6464. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6465. (eval $ac_try) 2>&5
  6466. ac_status=$?
  6467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6468. (exit $ac_status); }; }; then
  6469. ac_cv_c_inline=$ac_kw; break
  6470. else
  6471. echo "$as_me: failed program was:" >&5
  6472. sed 's/^/| /' conftest.$ac_ext >&5
  6473. fi
  6474. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6475. done
  6476. fi
  6477. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6478. echo "${ECHO_T}$ac_cv_c_inline" >&6
  6479. case $ac_cv_c_inline in
  6480. inline | yes) ;;
  6481. *)
  6482. case $ac_cv_c_inline in
  6483. no) ac_val=;;
  6484. *) ac_val=$ac_cv_c_inline;;
  6485. esac
  6486. cat >>confdefs.h <<_ACEOF
  6487. #ifndef __cplusplus
  6488. #define inline $ac_val
  6489. #endif
  6490. _ACEOF
  6491. ;;
  6492. esac
  6493. echo "$as_me:$LINENO: checking for long" >&5
  6494. echo $ECHO_N "checking for long... $ECHO_C" >&6
  6495. if test "${ac_cv_type_long+set}" = set; then
  6496. echo $ECHO_N "(cached) $ECHO_C" >&6
  6497. else
  6498. cat >conftest.$ac_ext <<_ACEOF
  6499. /* confdefs.h. */
  6500. _ACEOF
  6501. cat confdefs.h >>conftest.$ac_ext
  6502. cat >>conftest.$ac_ext <<_ACEOF
  6503. /* end confdefs.h. */
  6504. $ac_includes_default
  6505. int
  6506. main ()
  6507. {
  6508. if ((long *) 0)
  6509. return 0;
  6510. if (sizeof (long))
  6511. return 0;
  6512. ;
  6513. return 0;
  6514. }
  6515. _ACEOF
  6516. rm -f conftest.$ac_objext
  6517. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6518. (eval $ac_compile) 2>conftest.er1
  6519. ac_status=$?
  6520. grep -v '^ *+' conftest.er1 >conftest.err
  6521. rm -f conftest.er1
  6522. cat conftest.err >&5
  6523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6524. (exit $ac_status); } &&
  6525. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6526. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6527. (eval $ac_try) 2>&5
  6528. ac_status=$?
  6529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6530. (exit $ac_status); }; } &&
  6531. { ac_try='test -s conftest.$ac_objext'
  6532. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6533. (eval $ac_try) 2>&5
  6534. ac_status=$?
  6535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6536. (exit $ac_status); }; }; then
  6537. ac_cv_type_long=yes
  6538. else
  6539. echo "$as_me: failed program was:" >&5
  6540. sed 's/^/| /' conftest.$ac_ext >&5
  6541. ac_cv_type_long=no
  6542. fi
  6543. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6544. fi
  6545. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  6546. echo "${ECHO_T}$ac_cv_type_long" >&6
  6547. echo "$as_me:$LINENO: checking size of long" >&5
  6548. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  6549. if test "${ac_cv_sizeof_long+set}" = set; then
  6550. echo $ECHO_N "(cached) $ECHO_C" >&6
  6551. else
  6552. if test "$ac_cv_type_long" = yes; then
  6553. # The cast to unsigned long works around a bug in the HP C Compiler
  6554. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6555. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6556. # This bug is HP SR number 8606223364.
  6557. if test "$cross_compiling" = yes; then
  6558. # Depending upon the size, compute the lo and hi bounds.
  6559. cat >conftest.$ac_ext <<_ACEOF
  6560. /* confdefs.h. */
  6561. _ACEOF
  6562. cat confdefs.h >>conftest.$ac_ext
  6563. cat >>conftest.$ac_ext <<_ACEOF
  6564. /* end confdefs.h. */
  6565. $ac_includes_default
  6566. int
  6567. main ()
  6568. {
  6569. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  6570. test_array [0] = 0
  6571. ;
  6572. return 0;
  6573. }
  6574. _ACEOF
  6575. rm -f conftest.$ac_objext
  6576. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6577. (eval $ac_compile) 2>conftest.er1
  6578. ac_status=$?
  6579. grep -v '^ *+' conftest.er1 >conftest.err
  6580. rm -f conftest.er1
  6581. cat conftest.err >&5
  6582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6583. (exit $ac_status); } &&
  6584. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6585. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6586. (eval $ac_try) 2>&5
  6587. ac_status=$?
  6588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6589. (exit $ac_status); }; } &&
  6590. { ac_try='test -s conftest.$ac_objext'
  6591. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6592. (eval $ac_try) 2>&5
  6593. ac_status=$?
  6594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6595. (exit $ac_status); }; }; then
  6596. ac_lo=0 ac_mid=0
  6597. while :; do
  6598. cat >conftest.$ac_ext <<_ACEOF
  6599. /* confdefs.h. */
  6600. _ACEOF
  6601. cat confdefs.h >>conftest.$ac_ext
  6602. cat >>conftest.$ac_ext <<_ACEOF
  6603. /* end confdefs.h. */
  6604. $ac_includes_default
  6605. int
  6606. main ()
  6607. {
  6608. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6609. test_array [0] = 0
  6610. ;
  6611. return 0;
  6612. }
  6613. _ACEOF
  6614. rm -f conftest.$ac_objext
  6615. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6616. (eval $ac_compile) 2>conftest.er1
  6617. ac_status=$?
  6618. grep -v '^ *+' conftest.er1 >conftest.err
  6619. rm -f conftest.er1
  6620. cat conftest.err >&5
  6621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6622. (exit $ac_status); } &&
  6623. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6624. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6625. (eval $ac_try) 2>&5
  6626. ac_status=$?
  6627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6628. (exit $ac_status); }; } &&
  6629. { ac_try='test -s conftest.$ac_objext'
  6630. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6631. (eval $ac_try) 2>&5
  6632. ac_status=$?
  6633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6634. (exit $ac_status); }; }; then
  6635. ac_hi=$ac_mid; break
  6636. else
  6637. echo "$as_me: failed program was:" >&5
  6638. sed 's/^/| /' conftest.$ac_ext >&5
  6639. ac_lo=`expr $ac_mid + 1`
  6640. if test $ac_lo -le $ac_mid; then
  6641. ac_lo= ac_hi=
  6642. break
  6643. fi
  6644. ac_mid=`expr 2 '*' $ac_mid + 1`
  6645. fi
  6646. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6647. done
  6648. else
  6649. echo "$as_me: failed program was:" >&5
  6650. sed 's/^/| /' conftest.$ac_ext >&5
  6651. cat >conftest.$ac_ext <<_ACEOF
  6652. /* confdefs.h. */
  6653. _ACEOF
  6654. cat confdefs.h >>conftest.$ac_ext
  6655. cat >>conftest.$ac_ext <<_ACEOF
  6656. /* end confdefs.h. */
  6657. $ac_includes_default
  6658. int
  6659. main ()
  6660. {
  6661. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  6662. test_array [0] = 0
  6663. ;
  6664. return 0;
  6665. }
  6666. _ACEOF
  6667. rm -f conftest.$ac_objext
  6668. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6669. (eval $ac_compile) 2>conftest.er1
  6670. ac_status=$?
  6671. grep -v '^ *+' conftest.er1 >conftest.err
  6672. rm -f conftest.er1
  6673. cat conftest.err >&5
  6674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6675. (exit $ac_status); } &&
  6676. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6677. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6678. (eval $ac_try) 2>&5
  6679. ac_status=$?
  6680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6681. (exit $ac_status); }; } &&
  6682. { ac_try='test -s conftest.$ac_objext'
  6683. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6684. (eval $ac_try) 2>&5
  6685. ac_status=$?
  6686. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6687. (exit $ac_status); }; }; then
  6688. ac_hi=-1 ac_mid=-1
  6689. while :; do
  6690. cat >conftest.$ac_ext <<_ACEOF
  6691. /* confdefs.h. */
  6692. _ACEOF
  6693. cat confdefs.h >>conftest.$ac_ext
  6694. cat >>conftest.$ac_ext <<_ACEOF
  6695. /* end confdefs.h. */
  6696. $ac_includes_default
  6697. int
  6698. main ()
  6699. {
  6700. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  6701. test_array [0] = 0
  6702. ;
  6703. return 0;
  6704. }
  6705. _ACEOF
  6706. rm -f conftest.$ac_objext
  6707. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6708. (eval $ac_compile) 2>conftest.er1
  6709. ac_status=$?
  6710. grep -v '^ *+' conftest.er1 >conftest.err
  6711. rm -f conftest.er1
  6712. cat conftest.err >&5
  6713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6714. (exit $ac_status); } &&
  6715. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6716. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6717. (eval $ac_try) 2>&5
  6718. ac_status=$?
  6719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6720. (exit $ac_status); }; } &&
  6721. { ac_try='test -s conftest.$ac_objext'
  6722. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6723. (eval $ac_try) 2>&5
  6724. ac_status=$?
  6725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6726. (exit $ac_status); }; }; then
  6727. ac_lo=$ac_mid; break
  6728. else
  6729. echo "$as_me: failed program was:" >&5
  6730. sed 's/^/| /' conftest.$ac_ext >&5
  6731. ac_hi=`expr '(' $ac_mid ')' - 1`
  6732. if test $ac_mid -le $ac_hi; then
  6733. ac_lo= ac_hi=
  6734. break
  6735. fi
  6736. ac_mid=`expr 2 '*' $ac_mid`
  6737. fi
  6738. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6739. done
  6740. else
  6741. echo "$as_me: failed program was:" >&5
  6742. sed 's/^/| /' conftest.$ac_ext >&5
  6743. ac_lo= ac_hi=
  6744. fi
  6745. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6746. fi
  6747. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6748. # Binary search between lo and hi bounds.
  6749. while test "x$ac_lo" != "x$ac_hi"; do
  6750. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6751. cat >conftest.$ac_ext <<_ACEOF
  6752. /* confdefs.h. */
  6753. _ACEOF
  6754. cat confdefs.h >>conftest.$ac_ext
  6755. cat >>conftest.$ac_ext <<_ACEOF
  6756. /* end confdefs.h. */
  6757. $ac_includes_default
  6758. int
  6759. main ()
  6760. {
  6761. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6762. test_array [0] = 0
  6763. ;
  6764. return 0;
  6765. }
  6766. _ACEOF
  6767. rm -f conftest.$ac_objext
  6768. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6769. (eval $ac_compile) 2>conftest.er1
  6770. ac_status=$?
  6771. grep -v '^ *+' conftest.er1 >conftest.err
  6772. rm -f conftest.er1
  6773. cat conftest.err >&5
  6774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6775. (exit $ac_status); } &&
  6776. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6777. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6778. (eval $ac_try) 2>&5
  6779. ac_status=$?
  6780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6781. (exit $ac_status); }; } &&
  6782. { ac_try='test -s conftest.$ac_objext'
  6783. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6784. (eval $ac_try) 2>&5
  6785. ac_status=$?
  6786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6787. (exit $ac_status); }; }; then
  6788. ac_hi=$ac_mid
  6789. else
  6790. echo "$as_me: failed program was:" >&5
  6791. sed 's/^/| /' conftest.$ac_ext >&5
  6792. ac_lo=`expr '(' $ac_mid ')' + 1`
  6793. fi
  6794. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6795. done
  6796. case $ac_lo in
  6797. ?*) ac_cv_sizeof_long=$ac_lo;;
  6798. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6799. See \`config.log' for more details." >&5
  6800. echo "$as_me: error: cannot compute sizeof (long), 77
  6801. See \`config.log' for more details." >&2;}
  6802. { (exit 1); exit 1; }; } ;;
  6803. esac
  6804. else
  6805. if test "$cross_compiling" = yes; then
  6806. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6807. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6808. { (exit 1); exit 1; }; }
  6809. else
  6810. cat >conftest.$ac_ext <<_ACEOF
  6811. /* confdefs.h. */
  6812. _ACEOF
  6813. cat confdefs.h >>conftest.$ac_ext
  6814. cat >>conftest.$ac_ext <<_ACEOF
  6815. /* end confdefs.h. */
  6816. $ac_includes_default
  6817. long longval () { return (long) (sizeof (long)); }
  6818. unsigned long ulongval () { return (long) (sizeof (long)); }
  6819. #include <stdio.h>
  6820. #include <stdlib.h>
  6821. int
  6822. main ()
  6823. {
  6824. FILE *f = fopen ("conftest.val", "w");
  6825. if (! f)
  6826. exit (1);
  6827. if (((long) (sizeof (long))) < 0)
  6828. {
  6829. long i = longval ();
  6830. if (i != ((long) (sizeof (long))))
  6831. exit (1);
  6832. fprintf (f, "%ld\n", i);
  6833. }
  6834. else
  6835. {
  6836. unsigned long i = ulongval ();
  6837. if (i != ((long) (sizeof (long))))
  6838. exit (1);
  6839. fprintf (f, "%lu\n", i);
  6840. }
  6841. exit (ferror (f) || fclose (f) != 0);
  6842. ;
  6843. return 0;
  6844. }
  6845. _ACEOF
  6846. rm -f conftest$ac_exeext
  6847. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6848. (eval $ac_link) 2>&5
  6849. ac_status=$?
  6850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6851. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6852. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6853. (eval $ac_try) 2>&5
  6854. ac_status=$?
  6855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6856. (exit $ac_status); }; }; then
  6857. ac_cv_sizeof_long=`cat conftest.val`
  6858. else
  6859. echo "$as_me: program exited with status $ac_status" >&5
  6860. echo "$as_me: failed program was:" >&5
  6861. sed 's/^/| /' conftest.$ac_ext >&5
  6862. ( exit $ac_status )
  6863. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6864. See \`config.log' for more details." >&5
  6865. echo "$as_me: error: cannot compute sizeof (long), 77
  6866. See \`config.log' for more details." >&2;}
  6867. { (exit 1); exit 1; }; }
  6868. fi
  6869. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6870. fi
  6871. fi
  6872. rm -f conftest.val
  6873. else
  6874. ac_cv_sizeof_long=0
  6875. fi
  6876. fi
  6877. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  6878. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  6879. cat >>confdefs.h <<_ACEOF
  6880. #define SIZEOF_LONG $ac_cv_sizeof_long
  6881. _ACEOF
  6882. echo "$as_me:$LINENO: checking for int" >&5
  6883. echo $ECHO_N "checking for int... $ECHO_C" >&6
  6884. if test "${ac_cv_type_int+set}" = set; then
  6885. echo $ECHO_N "(cached) $ECHO_C" >&6
  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. $ac_includes_default
  6894. int
  6895. main ()
  6896. {
  6897. if ((int *) 0)
  6898. return 0;
  6899. if (sizeof (int))
  6900. return 0;
  6901. ;
  6902. return 0;
  6903. }
  6904. _ACEOF
  6905. rm -f conftest.$ac_objext
  6906. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6907. (eval $ac_compile) 2>conftest.er1
  6908. ac_status=$?
  6909. grep -v '^ *+' conftest.er1 >conftest.err
  6910. rm -f conftest.er1
  6911. cat conftest.err >&5
  6912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6913. (exit $ac_status); } &&
  6914. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6915. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6916. (eval $ac_try) 2>&5
  6917. ac_status=$?
  6918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6919. (exit $ac_status); }; } &&
  6920. { ac_try='test -s conftest.$ac_objext'
  6921. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6922. (eval $ac_try) 2>&5
  6923. ac_status=$?
  6924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6925. (exit $ac_status); }; }; then
  6926. ac_cv_type_int=yes
  6927. else
  6928. echo "$as_me: failed program was:" >&5
  6929. sed 's/^/| /' conftest.$ac_ext >&5
  6930. ac_cv_type_int=no
  6931. fi
  6932. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6933. fi
  6934. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  6935. echo "${ECHO_T}$ac_cv_type_int" >&6
  6936. echo "$as_me:$LINENO: checking size of int" >&5
  6937. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  6938. if test "${ac_cv_sizeof_int+set}" = set; then
  6939. echo $ECHO_N "(cached) $ECHO_C" >&6
  6940. else
  6941. if test "$ac_cv_type_int" = yes; then
  6942. # The cast to unsigned long works around a bug in the HP C Compiler
  6943. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6944. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6945. # This bug is HP SR number 8606223364.
  6946. if test "$cross_compiling" = yes; then
  6947. # Depending upon the size, compute the lo and hi bounds.
  6948. cat >conftest.$ac_ext <<_ACEOF
  6949. /* confdefs.h. */
  6950. _ACEOF
  6951. cat confdefs.h >>conftest.$ac_ext
  6952. cat >>conftest.$ac_ext <<_ACEOF
  6953. /* end confdefs.h. */
  6954. $ac_includes_default
  6955. int
  6956. main ()
  6957. {
  6958. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  6959. test_array [0] = 0
  6960. ;
  6961. return 0;
  6962. }
  6963. _ACEOF
  6964. rm -f conftest.$ac_objext
  6965. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6966. (eval $ac_compile) 2>conftest.er1
  6967. ac_status=$?
  6968. grep -v '^ *+' conftest.er1 >conftest.err
  6969. rm -f conftest.er1
  6970. cat conftest.err >&5
  6971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6972. (exit $ac_status); } &&
  6973. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6974. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6975. (eval $ac_try) 2>&5
  6976. ac_status=$?
  6977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6978. (exit $ac_status); }; } &&
  6979. { ac_try='test -s conftest.$ac_objext'
  6980. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6981. (eval $ac_try) 2>&5
  6982. ac_status=$?
  6983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6984. (exit $ac_status); }; }; then
  6985. ac_lo=0 ac_mid=0
  6986. while :; do
  6987. cat >conftest.$ac_ext <<_ACEOF
  6988. /* confdefs.h. */
  6989. _ACEOF
  6990. cat confdefs.h >>conftest.$ac_ext
  6991. cat >>conftest.$ac_ext <<_ACEOF
  6992. /* end confdefs.h. */
  6993. $ac_includes_default
  6994. int
  6995. main ()
  6996. {
  6997. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6998. test_array [0] = 0
  6999. ;
  7000. return 0;
  7001. }
  7002. _ACEOF
  7003. rm -f conftest.$ac_objext
  7004. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7005. (eval $ac_compile) 2>conftest.er1
  7006. ac_status=$?
  7007. grep -v '^ *+' conftest.er1 >conftest.err
  7008. rm -f conftest.er1
  7009. cat conftest.err >&5
  7010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7011. (exit $ac_status); } &&
  7012. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7013. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7014. (eval $ac_try) 2>&5
  7015. ac_status=$?
  7016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7017. (exit $ac_status); }; } &&
  7018. { ac_try='test -s conftest.$ac_objext'
  7019. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7020. (eval $ac_try) 2>&5
  7021. ac_status=$?
  7022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7023. (exit $ac_status); }; }; then
  7024. ac_hi=$ac_mid; break
  7025. else
  7026. echo "$as_me: failed program was:" >&5
  7027. sed 's/^/| /' conftest.$ac_ext >&5
  7028. ac_lo=`expr $ac_mid + 1`
  7029. if test $ac_lo -le $ac_mid; then
  7030. ac_lo= ac_hi=
  7031. break
  7032. fi
  7033. ac_mid=`expr 2 '*' $ac_mid + 1`
  7034. fi
  7035. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7036. done
  7037. else
  7038. echo "$as_me: failed program was:" >&5
  7039. sed 's/^/| /' conftest.$ac_ext >&5
  7040. cat >conftest.$ac_ext <<_ACEOF
  7041. /* confdefs.h. */
  7042. _ACEOF
  7043. cat confdefs.h >>conftest.$ac_ext
  7044. cat >>conftest.$ac_ext <<_ACEOF
  7045. /* end confdefs.h. */
  7046. $ac_includes_default
  7047. int
  7048. main ()
  7049. {
  7050. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  7051. test_array [0] = 0
  7052. ;
  7053. return 0;
  7054. }
  7055. _ACEOF
  7056. rm -f conftest.$ac_objext
  7057. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7058. (eval $ac_compile) 2>conftest.er1
  7059. ac_status=$?
  7060. grep -v '^ *+' conftest.er1 >conftest.err
  7061. rm -f conftest.er1
  7062. cat conftest.err >&5
  7063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7064. (exit $ac_status); } &&
  7065. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7066. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7067. (eval $ac_try) 2>&5
  7068. ac_status=$?
  7069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7070. (exit $ac_status); }; } &&
  7071. { ac_try='test -s conftest.$ac_objext'
  7072. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7073. (eval $ac_try) 2>&5
  7074. ac_status=$?
  7075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7076. (exit $ac_status); }; }; then
  7077. ac_hi=-1 ac_mid=-1
  7078. while :; do
  7079. cat >conftest.$ac_ext <<_ACEOF
  7080. /* confdefs.h. */
  7081. _ACEOF
  7082. cat confdefs.h >>conftest.$ac_ext
  7083. cat >>conftest.$ac_ext <<_ACEOF
  7084. /* end confdefs.h. */
  7085. $ac_includes_default
  7086. int
  7087. main ()
  7088. {
  7089. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  7090. test_array [0] = 0
  7091. ;
  7092. return 0;
  7093. }
  7094. _ACEOF
  7095. rm -f conftest.$ac_objext
  7096. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7097. (eval $ac_compile) 2>conftest.er1
  7098. ac_status=$?
  7099. grep -v '^ *+' conftest.er1 >conftest.err
  7100. rm -f conftest.er1
  7101. cat conftest.err >&5
  7102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7103. (exit $ac_status); } &&
  7104. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7105. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7106. (eval $ac_try) 2>&5
  7107. ac_status=$?
  7108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7109. (exit $ac_status); }; } &&
  7110. { ac_try='test -s conftest.$ac_objext'
  7111. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7112. (eval $ac_try) 2>&5
  7113. ac_status=$?
  7114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7115. (exit $ac_status); }; }; then
  7116. ac_lo=$ac_mid; break
  7117. else
  7118. echo "$as_me: failed program was:" >&5
  7119. sed 's/^/| /' conftest.$ac_ext >&5
  7120. ac_hi=`expr '(' $ac_mid ')' - 1`
  7121. if test $ac_mid -le $ac_hi; then
  7122. ac_lo= ac_hi=
  7123. break
  7124. fi
  7125. ac_mid=`expr 2 '*' $ac_mid`
  7126. fi
  7127. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7128. done
  7129. else
  7130. echo "$as_me: failed program was:" >&5
  7131. sed 's/^/| /' conftest.$ac_ext >&5
  7132. ac_lo= ac_hi=
  7133. fi
  7134. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7135. fi
  7136. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7137. # Binary search between lo and hi bounds.
  7138. while test "x$ac_lo" != "x$ac_hi"; do
  7139. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7140. cat >conftest.$ac_ext <<_ACEOF
  7141. /* confdefs.h. */
  7142. _ACEOF
  7143. cat confdefs.h >>conftest.$ac_ext
  7144. cat >>conftest.$ac_ext <<_ACEOF
  7145. /* end confdefs.h. */
  7146. $ac_includes_default
  7147. int
  7148. main ()
  7149. {
  7150. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  7151. test_array [0] = 0
  7152. ;
  7153. return 0;
  7154. }
  7155. _ACEOF
  7156. rm -f conftest.$ac_objext
  7157. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7158. (eval $ac_compile) 2>conftest.er1
  7159. ac_status=$?
  7160. grep -v '^ *+' conftest.er1 >conftest.err
  7161. rm -f conftest.er1
  7162. cat conftest.err >&5
  7163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7164. (exit $ac_status); } &&
  7165. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7166. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7167. (eval $ac_try) 2>&5
  7168. ac_status=$?
  7169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7170. (exit $ac_status); }; } &&
  7171. { ac_try='test -s conftest.$ac_objext'
  7172. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7173. (eval $ac_try) 2>&5
  7174. ac_status=$?
  7175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7176. (exit $ac_status); }; }; then
  7177. ac_hi=$ac_mid
  7178. else
  7179. echo "$as_me: failed program was:" >&5
  7180. sed 's/^/| /' conftest.$ac_ext >&5
  7181. ac_lo=`expr '(' $ac_mid ')' + 1`
  7182. fi
  7183. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7184. done
  7185. case $ac_lo in
  7186. ?*) ac_cv_sizeof_int=$ac_lo;;
  7187. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  7188. See \`config.log' for more details." >&5
  7189. echo "$as_me: error: cannot compute sizeof (int), 77
  7190. See \`config.log' for more details." >&2;}
  7191. { (exit 1); exit 1; }; } ;;
  7192. esac
  7193. else
  7194. if test "$cross_compiling" = yes; then
  7195. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7196. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7197. { (exit 1); exit 1; }; }
  7198. else
  7199. cat >conftest.$ac_ext <<_ACEOF
  7200. /* confdefs.h. */
  7201. _ACEOF
  7202. cat confdefs.h >>conftest.$ac_ext
  7203. cat >>conftest.$ac_ext <<_ACEOF
  7204. /* end confdefs.h. */
  7205. $ac_includes_default
  7206. long longval () { return (long) (sizeof (int)); }
  7207. unsigned long ulongval () { return (long) (sizeof (int)); }
  7208. #include <stdio.h>
  7209. #include <stdlib.h>
  7210. int
  7211. main ()
  7212. {
  7213. FILE *f = fopen ("conftest.val", "w");
  7214. if (! f)
  7215. exit (1);
  7216. if (((long) (sizeof (int))) < 0)
  7217. {
  7218. long i = longval ();
  7219. if (i != ((long) (sizeof (int))))
  7220. exit (1);
  7221. fprintf (f, "%ld\n", i);
  7222. }
  7223. else
  7224. {
  7225. unsigned long i = ulongval ();
  7226. if (i != ((long) (sizeof (int))))
  7227. exit (1);
  7228. fprintf (f, "%lu\n", i);
  7229. }
  7230. exit (ferror (f) || fclose (f) != 0);
  7231. ;
  7232. return 0;
  7233. }
  7234. _ACEOF
  7235. rm -f conftest$ac_exeext
  7236. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7237. (eval $ac_link) 2>&5
  7238. ac_status=$?
  7239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7240. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7241. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7242. (eval $ac_try) 2>&5
  7243. ac_status=$?
  7244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7245. (exit $ac_status); }; }; then
  7246. ac_cv_sizeof_int=`cat conftest.val`
  7247. else
  7248. echo "$as_me: program exited with status $ac_status" >&5
  7249. echo "$as_me: failed program was:" >&5
  7250. sed 's/^/| /' conftest.$ac_ext >&5
  7251. ( exit $ac_status )
  7252. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  7253. See \`config.log' for more details." >&5
  7254. echo "$as_me: error: cannot compute sizeof (int), 77
  7255. See \`config.log' for more details." >&2;}
  7256. { (exit 1); exit 1; }; }
  7257. fi
  7258. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7259. fi
  7260. fi
  7261. rm -f conftest.val
  7262. else
  7263. ac_cv_sizeof_int=0
  7264. fi
  7265. fi
  7266. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  7267. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  7268. cat >>confdefs.h <<_ACEOF
  7269. #define SIZEOF_INT $ac_cv_sizeof_int
  7270. _ACEOF
  7271. #checkpoint
  7272. cat >confcache <<\_ACEOF
  7273. # This file is a shell script that caches the results of configure
  7274. # tests run on this system so they can be shared between configure
  7275. # scripts and configure runs, see configure's option --config-cache.
  7276. # It is not useful on other systems. If it contains results you don't
  7277. # want to keep, you may remove or edit it.
  7278. #
  7279. # config.status only pays attention to the cache file if you give it
  7280. # the --recheck option to rerun configure.
  7281. #
  7282. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7283. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7284. # following values.
  7285. _ACEOF
  7286. # The following way of writing the cache mishandles newlines in values,
  7287. # but we know of no workaround that is simple, portable, and efficient.
  7288. # So, don't put newlines in cache variables' values.
  7289. # Ultrix sh set writes to stderr and can't be redirected directly,
  7290. # and sets the high bit in the cache file unless we assign to the vars.
  7291. {
  7292. (set) 2>&1 |
  7293. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7294. *ac_space=\ *)
  7295. # `set' does not quote correctly, so add quotes (double-quote
  7296. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7297. sed -n \
  7298. "s/'/'\\\\''/g;
  7299. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7300. ;;
  7301. *)
  7302. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7303. sed -n \
  7304. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7305. ;;
  7306. esac;
  7307. } |
  7308. sed '
  7309. t clear
  7310. : clear
  7311. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7312. t end
  7313. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7314. : end' >>confcache
  7315. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7316. if test -w $cache_file; then
  7317. test "x$cache_file" != "x/dev/null"
  7318. cat confcache >$cache_file
  7319. else
  7320. echo "not updating unwritable cache $cache_file"
  7321. fi
  7322. fi
  7323. rm -f confcache
  7324. echo "$as_me:$LINENO: checking for working volatile" >&5
  7325. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  7326. if test "${ac_cv_c_volatile+set}" = set; then
  7327. echo $ECHO_N "(cached) $ECHO_C" >&6
  7328. else
  7329. cat >conftest.$ac_ext <<_ACEOF
  7330. /* confdefs.h. */
  7331. _ACEOF
  7332. cat confdefs.h >>conftest.$ac_ext
  7333. cat >>conftest.$ac_ext <<_ACEOF
  7334. /* end confdefs.h. */
  7335. int
  7336. main ()
  7337. {
  7338. volatile int x;
  7339. int * volatile y;
  7340. ;
  7341. return 0;
  7342. }
  7343. _ACEOF
  7344. rm -f conftest.$ac_objext
  7345. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7346. (eval $ac_compile) 2>conftest.er1
  7347. ac_status=$?
  7348. grep -v '^ *+' conftest.er1 >conftest.err
  7349. rm -f conftest.er1
  7350. cat conftest.err >&5
  7351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7352. (exit $ac_status); } &&
  7353. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7354. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7355. (eval $ac_try) 2>&5
  7356. ac_status=$?
  7357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7358. (exit $ac_status); }; } &&
  7359. { ac_try='test -s conftest.$ac_objext'
  7360. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7361. (eval $ac_try) 2>&5
  7362. ac_status=$?
  7363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7364. (exit $ac_status); }; }; then
  7365. ac_cv_c_volatile=yes
  7366. else
  7367. echo "$as_me: failed program was:" >&5
  7368. sed 's/^/| /' conftest.$ac_ext >&5
  7369. ac_cv_c_volatile=no
  7370. fi
  7371. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7372. fi
  7373. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  7374. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  7375. if test $ac_cv_c_volatile = no; then
  7376. cat >>confdefs.h <<\_ACEOF
  7377. #define volatile
  7378. _ACEOF
  7379. fi
  7380. if test $ac_cv_c_compiler_gnu = yes; then
  7381. echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  7382. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  7383. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  7384. echo $ECHO_N "(cached) $ECHO_C" >&6
  7385. else
  7386. ac_pattern="Autoconf.*'x'"
  7387. cat >conftest.$ac_ext <<_ACEOF
  7388. /* confdefs.h. */
  7389. _ACEOF
  7390. cat confdefs.h >>conftest.$ac_ext
  7391. cat >>conftest.$ac_ext <<_ACEOF
  7392. /* end confdefs.h. */
  7393. #include <sgtty.h>
  7394. Autoconf TIOCGETP
  7395. _ACEOF
  7396. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7397. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7398. ac_cv_prog_gcc_traditional=yes
  7399. else
  7400. ac_cv_prog_gcc_traditional=no
  7401. fi
  7402. rm -f conftest*
  7403. if test $ac_cv_prog_gcc_traditional = no; then
  7404. cat >conftest.$ac_ext <<_ACEOF
  7405. /* confdefs.h. */
  7406. _ACEOF
  7407. cat confdefs.h >>conftest.$ac_ext
  7408. cat >>conftest.$ac_ext <<_ACEOF
  7409. /* end confdefs.h. */
  7410. #include <termio.h>
  7411. Autoconf TCGETA
  7412. _ACEOF
  7413. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7414. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7415. ac_cv_prog_gcc_traditional=yes
  7416. fi
  7417. rm -f conftest*
  7418. fi
  7419. fi
  7420. echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  7421. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  7422. if test $ac_cv_prog_gcc_traditional = yes; then
  7423. CC="$CC -traditional"
  7424. fi
  7425. fi
  7426. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7427. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7428. if test "${ac_cv_struct_tm+set}" = set; then
  7429. echo $ECHO_N "(cached) $ECHO_C" >&6
  7430. else
  7431. cat >conftest.$ac_ext <<_ACEOF
  7432. /* confdefs.h. */
  7433. _ACEOF
  7434. cat confdefs.h >>conftest.$ac_ext
  7435. cat >>conftest.$ac_ext <<_ACEOF
  7436. /* end confdefs.h. */
  7437. #include <sys/types.h>
  7438. #include <time.h>
  7439. int
  7440. main ()
  7441. {
  7442. struct tm *tp; tp->tm_sec;
  7443. ;
  7444. return 0;
  7445. }
  7446. _ACEOF
  7447. rm -f conftest.$ac_objext
  7448. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7449. (eval $ac_compile) 2>conftest.er1
  7450. ac_status=$?
  7451. grep -v '^ *+' conftest.er1 >conftest.err
  7452. rm -f conftest.er1
  7453. cat conftest.err >&5
  7454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7455. (exit $ac_status); } &&
  7456. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7457. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7458. (eval $ac_try) 2>&5
  7459. ac_status=$?
  7460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7461. (exit $ac_status); }; } &&
  7462. { ac_try='test -s conftest.$ac_objext'
  7463. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7464. (eval $ac_try) 2>&5
  7465. ac_status=$?
  7466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7467. (exit $ac_status); }; }; then
  7468. ac_cv_struct_tm=time.h
  7469. else
  7470. echo "$as_me: failed program was:" >&5
  7471. sed 's/^/| /' conftest.$ac_ext >&5
  7472. ac_cv_struct_tm=sys/time.h
  7473. fi
  7474. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7475. fi
  7476. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7477. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7478. if test $ac_cv_struct_tm = sys/time.h; then
  7479. cat >>confdefs.h <<\_ACEOF
  7480. #define TM_IN_SYS_TIME 1
  7481. _ACEOF
  7482. fi
  7483. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  7484. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  7485. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  7486. echo $ECHO_N "(cached) $ECHO_C" >&6
  7487. else
  7488. cat >conftest.$ac_ext <<_ACEOF
  7489. /* confdefs.h. */
  7490. _ACEOF
  7491. cat confdefs.h >>conftest.$ac_ext
  7492. cat >>conftest.$ac_ext <<_ACEOF
  7493. /* end confdefs.h. */
  7494. #include <sys/types.h>
  7495. #include <$ac_cv_struct_tm>
  7496. int
  7497. main ()
  7498. {
  7499. static struct tm ac_aggr;
  7500. if (ac_aggr.tm_zone)
  7501. return 0;
  7502. ;
  7503. return 0;
  7504. }
  7505. _ACEOF
  7506. rm -f conftest.$ac_objext
  7507. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7508. (eval $ac_compile) 2>conftest.er1
  7509. ac_status=$?
  7510. grep -v '^ *+' conftest.er1 >conftest.err
  7511. rm -f conftest.er1
  7512. cat conftest.err >&5
  7513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7514. (exit $ac_status); } &&
  7515. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7516. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7517. (eval $ac_try) 2>&5
  7518. ac_status=$?
  7519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7520. (exit $ac_status); }; } &&
  7521. { ac_try='test -s conftest.$ac_objext'
  7522. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7523. (eval $ac_try) 2>&5
  7524. ac_status=$?
  7525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7526. (exit $ac_status); }; }; then
  7527. ac_cv_member_struct_tm_tm_zone=yes
  7528. else
  7529. echo "$as_me: failed program was:" >&5
  7530. sed 's/^/| /' conftest.$ac_ext >&5
  7531. cat >conftest.$ac_ext <<_ACEOF
  7532. /* confdefs.h. */
  7533. _ACEOF
  7534. cat confdefs.h >>conftest.$ac_ext
  7535. cat >>conftest.$ac_ext <<_ACEOF
  7536. /* end confdefs.h. */
  7537. #include <sys/types.h>
  7538. #include <$ac_cv_struct_tm>
  7539. int
  7540. main ()
  7541. {
  7542. static struct tm ac_aggr;
  7543. if (sizeof ac_aggr.tm_zone)
  7544. return 0;
  7545. ;
  7546. return 0;
  7547. }
  7548. _ACEOF
  7549. rm -f conftest.$ac_objext
  7550. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7551. (eval $ac_compile) 2>conftest.er1
  7552. ac_status=$?
  7553. grep -v '^ *+' conftest.er1 >conftest.err
  7554. rm -f conftest.er1
  7555. cat conftest.err >&5
  7556. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7557. (exit $ac_status); } &&
  7558. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7559. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7560. (eval $ac_try) 2>&5
  7561. ac_status=$?
  7562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7563. (exit $ac_status); }; } &&
  7564. { ac_try='test -s conftest.$ac_objext'
  7565. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7566. (eval $ac_try) 2>&5
  7567. ac_status=$?
  7568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7569. (exit $ac_status); }; }; then
  7570. ac_cv_member_struct_tm_tm_zone=yes
  7571. else
  7572. echo "$as_me: failed program was:" >&5
  7573. sed 's/^/| /' conftest.$ac_ext >&5
  7574. ac_cv_member_struct_tm_tm_zone=no
  7575. fi
  7576. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7577. fi
  7578. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7579. fi
  7580. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  7581. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  7582. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  7583. cat >>confdefs.h <<_ACEOF
  7584. #define HAVE_STRUCT_TM_TM_ZONE 1
  7585. _ACEOF
  7586. fi
  7587. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  7588. cat >>confdefs.h <<\_ACEOF
  7589. #define HAVE_TM_ZONE 1
  7590. _ACEOF
  7591. else
  7592. echo "$as_me:$LINENO: checking for tzname" >&5
  7593. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  7594. if test "${ac_cv_var_tzname+set}" = set; then
  7595. echo $ECHO_N "(cached) $ECHO_C" >&6
  7596. else
  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. #include <time.h>
  7604. #ifndef tzname /* For SGI. */
  7605. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  7606. #endif
  7607. int
  7608. main ()
  7609. {
  7610. atoi(*tzname);
  7611. ;
  7612. return 0;
  7613. }
  7614. _ACEOF
  7615. rm -f conftest.$ac_objext conftest$ac_exeext
  7616. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7617. (eval $ac_link) 2>conftest.er1
  7618. ac_status=$?
  7619. grep -v '^ *+' conftest.er1 >conftest.err
  7620. rm -f conftest.er1
  7621. cat conftest.err >&5
  7622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7623. (exit $ac_status); } &&
  7624. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7625. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7626. (eval $ac_try) 2>&5
  7627. ac_status=$?
  7628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7629. (exit $ac_status); }; } &&
  7630. { ac_try='test -s conftest$ac_exeext'
  7631. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7632. (eval $ac_try) 2>&5
  7633. ac_status=$?
  7634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7635. (exit $ac_status); }; }; then
  7636. ac_cv_var_tzname=yes
  7637. else
  7638. echo "$as_me: failed program was:" >&5
  7639. sed 's/^/| /' conftest.$ac_ext >&5
  7640. ac_cv_var_tzname=no
  7641. fi
  7642. rm -f conftest.err conftest.$ac_objext \
  7643. conftest$ac_exeext conftest.$ac_ext
  7644. fi
  7645. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  7646. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  7647. if test $ac_cv_var_tzname = yes; then
  7648. cat >>confdefs.h <<\_ACEOF
  7649. #define HAVE_TZNAME 1
  7650. _ACEOF
  7651. fi
  7652. fi
  7653. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7654. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7655. if test "${ac_cv_struct_tm+set}" = set; then
  7656. echo $ECHO_N "(cached) $ECHO_C" >&6
  7657. else
  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. #include <sys/types.h>
  7665. #include <time.h>
  7666. int
  7667. main ()
  7668. {
  7669. struct tm *tp; tp->tm_sec;
  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_cv_struct_tm=time.h
  7696. else
  7697. echo "$as_me: failed program was:" >&5
  7698. sed 's/^/| /' conftest.$ac_ext >&5
  7699. ac_cv_struct_tm=sys/time.h
  7700. fi
  7701. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7702. fi
  7703. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7704. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7705. if test $ac_cv_struct_tm = sys/time.h; then
  7706. cat >>confdefs.h <<\_ACEOF
  7707. #define TM_IN_SYS_TIME 1
  7708. _ACEOF
  7709. fi
  7710. #checkpoint
  7711. cat >confcache <<\_ACEOF
  7712. # This file is a shell script that caches the results of configure
  7713. # tests run on this system so they can be shared between configure
  7714. # scripts and configure runs, see configure's option --config-cache.
  7715. # It is not useful on other systems. If it contains results you don't
  7716. # want to keep, you may remove or edit it.
  7717. #
  7718. # config.status only pays attention to the cache file if you give it
  7719. # the --recheck option to rerun configure.
  7720. #
  7721. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7722. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7723. # following values.
  7724. _ACEOF
  7725. # The following way of writing the cache mishandles newlines in values,
  7726. # but we know of no workaround that is simple, portable, and efficient.
  7727. # So, don't put newlines in cache variables' values.
  7728. # Ultrix sh set writes to stderr and can't be redirected directly,
  7729. # and sets the high bit in the cache file unless we assign to the vars.
  7730. {
  7731. (set) 2>&1 |
  7732. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7733. *ac_space=\ *)
  7734. # `set' does not quote correctly, so add quotes (double-quote
  7735. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7736. sed -n \
  7737. "s/'/'\\\\''/g;
  7738. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7739. ;;
  7740. *)
  7741. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7742. sed -n \
  7743. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7744. ;;
  7745. esac;
  7746. } |
  7747. sed '
  7748. t clear
  7749. : clear
  7750. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7751. t end
  7752. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7753. : end' >>confcache
  7754. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7755. if test -w $cache_file; then
  7756. test "x$cache_file" != "x/dev/null"
  7757. cat confcache >$cache_file
  7758. else
  7759. echo "not updating unwritable cache $cache_file"
  7760. fi
  7761. fi
  7762. rm -f confcache
  7763. # Check for IPv6 support
  7764. #EGG_IPV6_SUPPORTED
  7765. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  7766. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  7767. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  7768. if test "${enable_ipv6+set}" = set; then
  7769. enableval="$enable_ipv6"
  7770. ac_cv_dipv6="yes"
  7771. echo "$as_me:$LINENO: result: yes" >&5
  7772. echo "${ECHO_T}yes" >&6
  7773. else
  7774. ac_cv_dipv6="no"
  7775. if test "$egg_cv_ipv6_supported" = "no"; then
  7776. ac_cv_dipv6="no"
  7777. fi
  7778. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  7779. echo "${ECHO_T}$ac_cv_dipv6" >&6
  7780. fi;
  7781. if test "$ac_cv_dipv6" = "no"; then
  7782. cat >>confdefs.h <<\_ACEOF
  7783. #define USE_IPV6 1
  7784. _ACEOF
  7785. fi
  7786. echo "$as_me:$LINENO: checking for socklen_t" >&5
  7787. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  7788. if test "${egg_cv_socklen_t+set}" = set; then
  7789. echo $ECHO_N "(cached) $ECHO_C" >&6
  7790. else
  7791. if test "$cross_compiling" = yes; then
  7792. egg_cv_socklen_t=no
  7793. else
  7794. cat >conftest.$ac_ext <<_ACEOF
  7795. /* confdefs.h. */
  7796. _ACEOF
  7797. cat confdefs.h >>conftest.$ac_ext
  7798. cat >>conftest.$ac_ext <<_ACEOF
  7799. /* end confdefs.h. */
  7800. #include <unistd.h>
  7801. #include <sys/types.h>
  7802. #include <sys/socket.h>
  7803. #include <netinet/in.h>
  7804. #include <arpa/inet.h>
  7805. int main()
  7806. {
  7807. socklen_t test = sizeof(int);
  7808. return 0;
  7809. }
  7810. _ACEOF
  7811. rm -f conftest$ac_exeext
  7812. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7813. (eval $ac_link) 2>&5
  7814. ac_status=$?
  7815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7816. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7817. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7818. (eval $ac_try) 2>&5
  7819. ac_status=$?
  7820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7821. (exit $ac_status); }; }; then
  7822. egg_cv_socklen_t=yes
  7823. else
  7824. echo "$as_me: program exited with status $ac_status" >&5
  7825. echo "$as_me: failed program was:" >&5
  7826. sed 's/^/| /' conftest.$ac_ext >&5
  7827. ( exit $ac_status )
  7828. egg_cv_socklen_t=no
  7829. fi
  7830. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7831. fi
  7832. fi
  7833. if test "$egg_cv_socklen_t" = "yes"; then
  7834. cat >>confdefs.h <<\_ACEOF
  7835. #define HAVE_SOCKLEN_T 1
  7836. _ACEOF
  7837. echo "$as_me:$LINENO: result: yes" >&5
  7838. echo "${ECHO_T}yes" >&6
  7839. else
  7840. echo "$as_me:$LINENO: result: no" >&5
  7841. echo "${ECHO_T}no" >&6
  7842. fi
  7843. # Checks for library functions
  7844. #checkpoint
  7845. cat >confcache <<\_ACEOF
  7846. # This file is a shell script that caches the results of configure
  7847. # tests run on this system so they can be shared between configure
  7848. # scripts and configure runs, see configure's option --config-cache.
  7849. # It is not useful on other systems. If it contains results you don't
  7850. # want to keep, you may remove or edit it.
  7851. #
  7852. # config.status only pays attention to the cache file if you give it
  7853. # the --recheck option to rerun configure.
  7854. #
  7855. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7856. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7857. # following values.
  7858. _ACEOF
  7859. # The following way of writing the cache mishandles newlines in values,
  7860. # but we know of no workaround that is simple, portable, and efficient.
  7861. # So, don't put newlines in cache variables' values.
  7862. # Ultrix sh set writes to stderr and can't be redirected directly,
  7863. # and sets the high bit in the cache file unless we assign to the vars.
  7864. {
  7865. (set) 2>&1 |
  7866. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7867. *ac_space=\ *)
  7868. # `set' does not quote correctly, so add quotes (double-quote
  7869. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7870. sed -n \
  7871. "s/'/'\\\\''/g;
  7872. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7873. ;;
  7874. *)
  7875. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7876. sed -n \
  7877. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7878. ;;
  7879. esac;
  7880. } |
  7881. sed '
  7882. t clear
  7883. : clear
  7884. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7885. t end
  7886. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7887. : end' >>confcache
  7888. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7889. if test -w $cache_file; then
  7890. test "x$cache_file" != "x/dev/null"
  7891. cat confcache >$cache_file
  7892. else
  7893. echo "not updating unwritable cache $cache_file"
  7894. fi
  7895. fi
  7896. rm -f confcache
  7897. # Checks for library functions.
  7898. for ac_header in unistd.h vfork.h
  7899. do
  7900. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7901. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7902. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7903. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7904. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7905. echo $ECHO_N "(cached) $ECHO_C" >&6
  7906. fi
  7907. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7908. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7909. else
  7910. # Is the header compilable?
  7911. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7912. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7913. cat >conftest.$ac_ext <<_ACEOF
  7914. /* confdefs.h. */
  7915. _ACEOF
  7916. cat confdefs.h >>conftest.$ac_ext
  7917. cat >>conftest.$ac_ext <<_ACEOF
  7918. /* end confdefs.h. */
  7919. $ac_includes_default
  7920. #include <$ac_header>
  7921. _ACEOF
  7922. rm -f conftest.$ac_objext
  7923. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7924. (eval $ac_compile) 2>conftest.er1
  7925. ac_status=$?
  7926. grep -v '^ *+' conftest.er1 >conftest.err
  7927. rm -f conftest.er1
  7928. cat conftest.err >&5
  7929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7930. (exit $ac_status); } &&
  7931. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7932. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7933. (eval $ac_try) 2>&5
  7934. ac_status=$?
  7935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7936. (exit $ac_status); }; } &&
  7937. { ac_try='test -s conftest.$ac_objext'
  7938. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7939. (eval $ac_try) 2>&5
  7940. ac_status=$?
  7941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7942. (exit $ac_status); }; }; then
  7943. ac_header_compiler=yes
  7944. else
  7945. echo "$as_me: failed program was:" >&5
  7946. sed 's/^/| /' conftest.$ac_ext >&5
  7947. ac_header_compiler=no
  7948. fi
  7949. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7950. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7951. echo "${ECHO_T}$ac_header_compiler" >&6
  7952. # Is the header present?
  7953. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7954. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7955. cat >conftest.$ac_ext <<_ACEOF
  7956. /* confdefs.h. */
  7957. _ACEOF
  7958. cat confdefs.h >>conftest.$ac_ext
  7959. cat >>conftest.$ac_ext <<_ACEOF
  7960. /* end confdefs.h. */
  7961. #include <$ac_header>
  7962. _ACEOF
  7963. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7964. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7965. ac_status=$?
  7966. grep -v '^ *+' conftest.er1 >conftest.err
  7967. rm -f conftest.er1
  7968. cat conftest.err >&5
  7969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7970. (exit $ac_status); } >/dev/null; then
  7971. if test -s conftest.err; then
  7972. ac_cpp_err=$ac_c_preproc_warn_flag
  7973. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7974. else
  7975. ac_cpp_err=
  7976. fi
  7977. else
  7978. ac_cpp_err=yes
  7979. fi
  7980. if test -z "$ac_cpp_err"; then
  7981. ac_header_preproc=yes
  7982. else
  7983. echo "$as_me: failed program was:" >&5
  7984. sed 's/^/| /' conftest.$ac_ext >&5
  7985. ac_header_preproc=no
  7986. fi
  7987. rm -f conftest.err conftest.$ac_ext
  7988. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7989. echo "${ECHO_T}$ac_header_preproc" >&6
  7990. # So? What about this header?
  7991. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7992. yes:no: )
  7993. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7994. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7995. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7996. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7997. ac_header_preproc=yes
  7998. ;;
  7999. no:yes:* )
  8000. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8001. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8002. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8003. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8004. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8005. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8006. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8007. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8008. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8009. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8010. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8011. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8012. (
  8013. cat <<\_ASBOX
  8014. ## ------------------------------------------ ##
  8015. ## Report this to the AC_PACKAGE_NAME lists. ##
  8016. ## ------------------------------------------ ##
  8017. _ASBOX
  8018. ) |
  8019. sed "s/^/$as_me: WARNING: /" >&2
  8020. ;;
  8021. esac
  8022. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8023. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8024. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8025. echo $ECHO_N "(cached) $ECHO_C" >&6
  8026. else
  8027. eval "$as_ac_Header=\$ac_header_preproc"
  8028. fi
  8029. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8030. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8031. fi
  8032. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8033. cat >>confdefs.h <<_ACEOF
  8034. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8035. _ACEOF
  8036. fi
  8037. done
  8038. for ac_func in fork vfork
  8039. do
  8040. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8041. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8042. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8043. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8044. echo $ECHO_N "(cached) $ECHO_C" >&6
  8045. else
  8046. cat >conftest.$ac_ext <<_ACEOF
  8047. /* confdefs.h. */
  8048. _ACEOF
  8049. cat confdefs.h >>conftest.$ac_ext
  8050. cat >>conftest.$ac_ext <<_ACEOF
  8051. /* end confdefs.h. */
  8052. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8053. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8054. #define $ac_func innocuous_$ac_func
  8055. /* System header to define __stub macros and hopefully few prototypes,
  8056. which can conflict with char $ac_func (); below.
  8057. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8058. <limits.h> exists even on freestanding compilers. */
  8059. #ifdef __STDC__
  8060. # include <limits.h>
  8061. #else
  8062. # include <assert.h>
  8063. #endif
  8064. #undef $ac_func
  8065. /* Override any gcc2 internal prototype to avoid an error. */
  8066. #ifdef __cplusplus
  8067. extern "C"
  8068. {
  8069. #endif
  8070. /* We use char because int might match the return type of a gcc2
  8071. builtin and then its argument prototype would still apply. */
  8072. char $ac_func ();
  8073. /* The GNU C library defines this for functions which it implements
  8074. to always fail with ENOSYS. Some functions are actually named
  8075. something starting with __ and the normal name is an alias. */
  8076. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8077. choke me
  8078. #else
  8079. char (*f) () = $ac_func;
  8080. #endif
  8081. #ifdef __cplusplus
  8082. }
  8083. #endif
  8084. int
  8085. main ()
  8086. {
  8087. return f != $ac_func;
  8088. ;
  8089. return 0;
  8090. }
  8091. _ACEOF
  8092. rm -f conftest.$ac_objext conftest$ac_exeext
  8093. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8094. (eval $ac_link) 2>conftest.er1
  8095. ac_status=$?
  8096. grep -v '^ *+' conftest.er1 >conftest.err
  8097. rm -f conftest.er1
  8098. cat conftest.err >&5
  8099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8100. (exit $ac_status); } &&
  8101. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8102. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8103. (eval $ac_try) 2>&5
  8104. ac_status=$?
  8105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8106. (exit $ac_status); }; } &&
  8107. { ac_try='test -s conftest$ac_exeext'
  8108. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8109. (eval $ac_try) 2>&5
  8110. ac_status=$?
  8111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8112. (exit $ac_status); }; }; then
  8113. eval "$as_ac_var=yes"
  8114. else
  8115. echo "$as_me: failed program was:" >&5
  8116. sed 's/^/| /' conftest.$ac_ext >&5
  8117. eval "$as_ac_var=no"
  8118. fi
  8119. rm -f conftest.err conftest.$ac_objext \
  8120. conftest$ac_exeext conftest.$ac_ext
  8121. fi
  8122. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8123. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8124. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8125. cat >>confdefs.h <<_ACEOF
  8126. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8127. _ACEOF
  8128. fi
  8129. done
  8130. if test "x$ac_cv_func_fork" = xyes; then
  8131. echo "$as_me:$LINENO: checking for working fork" >&5
  8132. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  8133. if test "${ac_cv_func_fork_works+set}" = set; then
  8134. echo $ECHO_N "(cached) $ECHO_C" >&6
  8135. else
  8136. if test "$cross_compiling" = yes; then
  8137. ac_cv_func_fork_works=cross
  8138. else
  8139. cat >conftest.$ac_ext <<_ACEOF
  8140. /* By Ruediger Kuhlmann. */
  8141. #include <sys/types.h>
  8142. #if HAVE_UNISTD_H
  8143. # include <unistd.h>
  8144. #endif
  8145. /* Some systems only have a dummy stub for fork() */
  8146. int main ()
  8147. {
  8148. if (fork() < 0)
  8149. exit (1);
  8150. exit (0);
  8151. }
  8152. _ACEOF
  8153. rm -f conftest$ac_exeext
  8154. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8155. (eval $ac_link) 2>&5
  8156. ac_status=$?
  8157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8158. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8159. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8160. (eval $ac_try) 2>&5
  8161. ac_status=$?
  8162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8163. (exit $ac_status); }; }; then
  8164. ac_cv_func_fork_works=yes
  8165. else
  8166. echo "$as_me: program exited with status $ac_status" >&5
  8167. echo "$as_me: failed program was:" >&5
  8168. sed 's/^/| /' conftest.$ac_ext >&5
  8169. ( exit $ac_status )
  8170. ac_cv_func_fork_works=no
  8171. fi
  8172. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8173. fi
  8174. fi
  8175. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  8176. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  8177. else
  8178. ac_cv_func_fork_works=$ac_cv_func_fork
  8179. fi
  8180. if test "x$ac_cv_func_fork_works" = xcross; then
  8181. case $host in
  8182. *-*-amigaos* | *-*-msdosdjgpp*)
  8183. # Override, as these systems have only a dummy fork() stub
  8184. ac_cv_func_fork_works=no
  8185. ;;
  8186. *)
  8187. ac_cv_func_fork_works=yes
  8188. ;;
  8189. esac
  8190. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  8191. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  8192. fi
  8193. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8194. if test "x$ac_cv_func_vfork" = xyes; then
  8195. echo "$as_me:$LINENO: checking for working vfork" >&5
  8196. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  8197. if test "${ac_cv_func_vfork_works+set}" = set; then
  8198. echo $ECHO_N "(cached) $ECHO_C" >&6
  8199. else
  8200. if test "$cross_compiling" = yes; then
  8201. ac_cv_func_vfork_works=cross
  8202. else
  8203. cat >conftest.$ac_ext <<_ACEOF
  8204. /* confdefs.h. */
  8205. _ACEOF
  8206. cat confdefs.h >>conftest.$ac_ext
  8207. cat >>conftest.$ac_ext <<_ACEOF
  8208. /* end confdefs.h. */
  8209. /* Thanks to Paul Eggert for this test. */
  8210. #include <stdio.h>
  8211. #include <stdlib.h>
  8212. #include <sys/types.h>
  8213. #include <sys/stat.h>
  8214. #include <sys/wait.h>
  8215. #if HAVE_UNISTD_H
  8216. # include <unistd.h>
  8217. #endif
  8218. #if HAVE_VFORK_H
  8219. # include <vfork.h>
  8220. #endif
  8221. /* On some sparc systems, changes by the child to local and incoming
  8222. argument registers are propagated back to the parent. The compiler
  8223. is told about this with #include <vfork.h>, but some compilers
  8224. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  8225. static variable whose address is put into a register that is
  8226. clobbered by the vfork. */
  8227. static void
  8228. #ifdef __cplusplus
  8229. sparc_address_test (int arg)
  8230. # else
  8231. sparc_address_test (arg) int arg;
  8232. #endif
  8233. {
  8234. static pid_t child;
  8235. if (!child) {
  8236. child = vfork ();
  8237. if (child < 0) {
  8238. perror ("vfork");
  8239. _exit(2);
  8240. }
  8241. if (!child) {
  8242. arg = getpid();
  8243. write(-1, "", 0);
  8244. _exit (arg);
  8245. }
  8246. }
  8247. }
  8248. int
  8249. main ()
  8250. {
  8251. pid_t parent = getpid ();
  8252. pid_t child;
  8253. sparc_address_test (0);
  8254. child = vfork ();
  8255. if (child == 0) {
  8256. /* Here is another test for sparc vfork register problems. This
  8257. test uses lots of local variables, at least as many local
  8258. variables as main has allocated so far including compiler
  8259. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  8260. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  8261. reuse the register of parent for one of the local variables,
  8262. since it will think that parent can't possibly be used any more
  8263. in this routine. Assigning to the local variable will thus
  8264. munge parent in the parent process. */
  8265. pid_t
  8266. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  8267. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  8268. /* Convince the compiler that p..p7 are live; otherwise, it might
  8269. use the same hardware register for all 8 local variables. */
  8270. if (p != p1 || p != p2 || p != p3 || p != p4
  8271. || p != p5 || p != p6 || p != p7)
  8272. _exit(1);
  8273. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  8274. from child file descriptors. If the child closes a descriptor
  8275. before it execs or exits, this munges the parent's descriptor
  8276. as well. Test for this by closing stdout in the child. */
  8277. _exit(close(fileno(stdout)) != 0);
  8278. } else {
  8279. int status;
  8280. struct stat st;
  8281. while (wait(&status) != child)
  8282. ;
  8283. exit(
  8284. /* Was there some problem with vforking? */
  8285. child < 0
  8286. /* Did the child fail? (This shouldn't happen.) */
  8287. || status
  8288. /* Did the vfork/compiler bug occur? */
  8289. || parent != getpid()
  8290. /* Did the file descriptor bug occur? */
  8291. || fstat(fileno(stdout), &st) != 0
  8292. );
  8293. }
  8294. }
  8295. _ACEOF
  8296. rm -f conftest$ac_exeext
  8297. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8298. (eval $ac_link) 2>&5
  8299. ac_status=$?
  8300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8301. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8302. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8303. (eval $ac_try) 2>&5
  8304. ac_status=$?
  8305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8306. (exit $ac_status); }; }; then
  8307. ac_cv_func_vfork_works=yes
  8308. else
  8309. echo "$as_me: program exited with status $ac_status" >&5
  8310. echo "$as_me: failed program was:" >&5
  8311. sed 's/^/| /' conftest.$ac_ext >&5
  8312. ( exit $ac_status )
  8313. ac_cv_func_vfork_works=no
  8314. fi
  8315. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8316. fi
  8317. fi
  8318. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  8319. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  8320. fi;
  8321. if test "x$ac_cv_func_fork_works" = xcross; then
  8322. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8323. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  8324. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  8325. fi
  8326. if test "x$ac_cv_func_vfork_works" = xyes; then
  8327. cat >>confdefs.h <<\_ACEOF
  8328. #define HAVE_WORKING_VFORK 1
  8329. _ACEOF
  8330. else
  8331. cat >>confdefs.h <<\_ACEOF
  8332. #define vfork fork
  8333. _ACEOF
  8334. fi
  8335. if test "x$ac_cv_func_fork_works" = xyes; then
  8336. cat >>confdefs.h <<\_ACEOF
  8337. #define HAVE_WORKING_FORK 1
  8338. _ACEOF
  8339. fi
  8340. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8341. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8342. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8343. echo $ECHO_N "(cached) $ECHO_C" >&6
  8344. else
  8345. rm -f conftest.sym conftest.file
  8346. echo >conftest.file
  8347. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8348. if test "$cross_compiling" = yes; then
  8349. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8350. else
  8351. cat >conftest.$ac_ext <<_ACEOF
  8352. /* confdefs.h. */
  8353. _ACEOF
  8354. cat confdefs.h >>conftest.$ac_ext
  8355. cat >>conftest.$ac_ext <<_ACEOF
  8356. /* end confdefs.h. */
  8357. $ac_includes_default
  8358. int
  8359. main ()
  8360. {
  8361. struct stat sbuf;
  8362. /* Linux will dereference the symlink and fail.
  8363. That is better in the sense that it means we will not
  8364. have to compile and use the lstat wrapper. */
  8365. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8366. ;
  8367. return 0;
  8368. }
  8369. _ACEOF
  8370. rm -f conftest$ac_exeext
  8371. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8372. (eval $ac_link) 2>&5
  8373. ac_status=$?
  8374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8375. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8376. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8377. (eval $ac_try) 2>&5
  8378. ac_status=$?
  8379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8380. (exit $ac_status); }; }; then
  8381. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8382. else
  8383. echo "$as_me: program exited with status $ac_status" >&5
  8384. echo "$as_me: failed program was:" >&5
  8385. sed 's/^/| /' conftest.$ac_ext >&5
  8386. ( exit $ac_status )
  8387. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8388. fi
  8389. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8390. fi
  8391. else
  8392. # If the `ln -s' command failed, then we probably don't even
  8393. # have an lstat function.
  8394. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8395. fi
  8396. rm -f conftest.sym conftest.file
  8397. fi
  8398. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8399. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8400. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8401. cat >>confdefs.h <<_ACEOF
  8402. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8403. _ACEOF
  8404. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8405. case $LIBOBJS in
  8406. "lstat.$ac_objext" | \
  8407. *" lstat.$ac_objext" | \
  8408. "lstat.$ac_objext "* | \
  8409. *" lstat.$ac_objext "* ) ;;
  8410. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8411. esac
  8412. fi
  8413. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8414. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  8415. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8416. echo $ECHO_N "(cached) $ECHO_C" >&6
  8417. else
  8418. if test "$cross_compiling" = yes; then
  8419. ac_cv_func_lstat_empty_string_bug=yes
  8420. else
  8421. cat >conftest.$ac_ext <<_ACEOF
  8422. /* confdefs.h. */
  8423. _ACEOF
  8424. cat confdefs.h >>conftest.$ac_ext
  8425. cat >>conftest.$ac_ext <<_ACEOF
  8426. /* end confdefs.h. */
  8427. $ac_includes_default
  8428. int
  8429. main ()
  8430. {
  8431. struct stat sbuf;
  8432. exit (lstat ("", &sbuf) ? 1 : 0);
  8433. ;
  8434. return 0;
  8435. }
  8436. _ACEOF
  8437. rm -f conftest$ac_exeext
  8438. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8439. (eval $ac_link) 2>&5
  8440. ac_status=$?
  8441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8442. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8443. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8444. (eval $ac_try) 2>&5
  8445. ac_status=$?
  8446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8447. (exit $ac_status); }; }; then
  8448. ac_cv_func_lstat_empty_string_bug=yes
  8449. else
  8450. echo "$as_me: program exited with status $ac_status" >&5
  8451. echo "$as_me: failed program was:" >&5
  8452. sed 's/^/| /' conftest.$ac_ext >&5
  8453. ( exit $ac_status )
  8454. ac_cv_func_lstat_empty_string_bug=no
  8455. fi
  8456. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8457. fi
  8458. fi
  8459. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  8460. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  8461. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  8462. case $LIBOBJS in
  8463. "lstat.$ac_objext" | \
  8464. *" lstat.$ac_objext" | \
  8465. "lstat.$ac_objext "* | \
  8466. *" lstat.$ac_objext "* ) ;;
  8467. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8468. esac
  8469. cat >>confdefs.h <<_ACEOF
  8470. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  8471. _ACEOF
  8472. fi
  8473. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8474. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8475. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8476. echo $ECHO_N "(cached) $ECHO_C" >&6
  8477. else
  8478. rm -f conftest.sym conftest.file
  8479. echo >conftest.file
  8480. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8481. if test "$cross_compiling" = yes; then
  8482. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8483. else
  8484. cat >conftest.$ac_ext <<_ACEOF
  8485. /* confdefs.h. */
  8486. _ACEOF
  8487. cat confdefs.h >>conftest.$ac_ext
  8488. cat >>conftest.$ac_ext <<_ACEOF
  8489. /* end confdefs.h. */
  8490. $ac_includes_default
  8491. int
  8492. main ()
  8493. {
  8494. struct stat sbuf;
  8495. /* Linux will dereference the symlink and fail.
  8496. That is better in the sense that it means we will not
  8497. have to compile and use the lstat wrapper. */
  8498. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8499. ;
  8500. return 0;
  8501. }
  8502. _ACEOF
  8503. rm -f conftest$ac_exeext
  8504. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8505. (eval $ac_link) 2>&5
  8506. ac_status=$?
  8507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8508. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8509. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8510. (eval $ac_try) 2>&5
  8511. ac_status=$?
  8512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8513. (exit $ac_status); }; }; then
  8514. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8515. else
  8516. echo "$as_me: program exited with status $ac_status" >&5
  8517. echo "$as_me: failed program was:" >&5
  8518. sed 's/^/| /' conftest.$ac_ext >&5
  8519. ( exit $ac_status )
  8520. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8521. fi
  8522. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8523. fi
  8524. else
  8525. # If the `ln -s' command failed, then we probably don't even
  8526. # have an lstat function.
  8527. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8528. fi
  8529. rm -f conftest.sym conftest.file
  8530. fi
  8531. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8532. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8533. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8534. cat >>confdefs.h <<_ACEOF
  8535. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8536. _ACEOF
  8537. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8538. case $LIBOBJS in
  8539. "lstat.$ac_objext" | \
  8540. *" lstat.$ac_objext" | \
  8541. "lstat.$ac_objext "* | \
  8542. *" lstat.$ac_objext "* ) ;;
  8543. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8544. esac
  8545. fi
  8546. for ac_header in stdlib.h
  8547. do
  8548. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8549. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8550. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8551. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8552. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8553. echo $ECHO_N "(cached) $ECHO_C" >&6
  8554. fi
  8555. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8556. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8557. else
  8558. # Is the header compilable?
  8559. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8560. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8561. cat >conftest.$ac_ext <<_ACEOF
  8562. /* confdefs.h. */
  8563. _ACEOF
  8564. cat confdefs.h >>conftest.$ac_ext
  8565. cat >>conftest.$ac_ext <<_ACEOF
  8566. /* end confdefs.h. */
  8567. $ac_includes_default
  8568. #include <$ac_header>
  8569. _ACEOF
  8570. rm -f conftest.$ac_objext
  8571. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8572. (eval $ac_compile) 2>conftest.er1
  8573. ac_status=$?
  8574. grep -v '^ *+' conftest.er1 >conftest.err
  8575. rm -f conftest.er1
  8576. cat conftest.err >&5
  8577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8578. (exit $ac_status); } &&
  8579. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8580. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8581. (eval $ac_try) 2>&5
  8582. ac_status=$?
  8583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8584. (exit $ac_status); }; } &&
  8585. { ac_try='test -s conftest.$ac_objext'
  8586. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8587. (eval $ac_try) 2>&5
  8588. ac_status=$?
  8589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8590. (exit $ac_status); }; }; then
  8591. ac_header_compiler=yes
  8592. else
  8593. echo "$as_me: failed program was:" >&5
  8594. sed 's/^/| /' conftest.$ac_ext >&5
  8595. ac_header_compiler=no
  8596. fi
  8597. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8598. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8599. echo "${ECHO_T}$ac_header_compiler" >&6
  8600. # Is the header present?
  8601. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8602. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8603. cat >conftest.$ac_ext <<_ACEOF
  8604. /* confdefs.h. */
  8605. _ACEOF
  8606. cat confdefs.h >>conftest.$ac_ext
  8607. cat >>conftest.$ac_ext <<_ACEOF
  8608. /* end confdefs.h. */
  8609. #include <$ac_header>
  8610. _ACEOF
  8611. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8612. (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
  8619. if test -s conftest.err; then
  8620. ac_cpp_err=$ac_c_preproc_warn_flag
  8621. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8622. else
  8623. ac_cpp_err=
  8624. fi
  8625. else
  8626. ac_cpp_err=yes
  8627. fi
  8628. if test -z "$ac_cpp_err"; then
  8629. ac_header_preproc=yes
  8630. else
  8631. echo "$as_me: failed program was:" >&5
  8632. sed 's/^/| /' conftest.$ac_ext >&5
  8633. ac_header_preproc=no
  8634. fi
  8635. rm -f conftest.err conftest.$ac_ext
  8636. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8637. echo "${ECHO_T}$ac_header_preproc" >&6
  8638. # So? What about this header?
  8639. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8640. yes:no: )
  8641. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8642. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8643. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8644. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8645. ac_header_preproc=yes
  8646. ;;
  8647. no:yes:* )
  8648. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8649. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8650. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8651. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8652. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8653. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8654. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8655. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8656. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8657. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8658. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8659. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8660. (
  8661. cat <<\_ASBOX
  8662. ## ------------------------------------------ ##
  8663. ## Report this to the AC_PACKAGE_NAME lists. ##
  8664. ## ------------------------------------------ ##
  8665. _ASBOX
  8666. ) |
  8667. sed "s/^/$as_me: WARNING: /" >&2
  8668. ;;
  8669. esac
  8670. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8671. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8672. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8673. echo $ECHO_N "(cached) $ECHO_C" >&6
  8674. else
  8675. eval "$as_ac_Header=\$ac_header_preproc"
  8676. fi
  8677. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8678. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8679. fi
  8680. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8681. cat >>confdefs.h <<_ACEOF
  8682. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8683. _ACEOF
  8684. fi
  8685. done
  8686. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8687. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  8688. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8689. echo $ECHO_N "(cached) $ECHO_C" >&6
  8690. else
  8691. if test "$cross_compiling" = yes; then
  8692. ac_cv_func_malloc_0_nonnull=no
  8693. else
  8694. cat >conftest.$ac_ext <<_ACEOF
  8695. /* confdefs.h. */
  8696. _ACEOF
  8697. cat confdefs.h >>conftest.$ac_ext
  8698. cat >>conftest.$ac_ext <<_ACEOF
  8699. /* end confdefs.h. */
  8700. #if STDC_HEADERS || HAVE_STDLIB_H
  8701. # include <stdlib.h>
  8702. #else
  8703. char *malloc ();
  8704. #endif
  8705. int
  8706. main ()
  8707. {
  8708. exit (malloc (0) ? 0 : 1);
  8709. ;
  8710. return 0;
  8711. }
  8712. _ACEOF
  8713. rm -f conftest$ac_exeext
  8714. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8715. (eval $ac_link) 2>&5
  8716. ac_status=$?
  8717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8718. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8719. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8720. (eval $ac_try) 2>&5
  8721. ac_status=$?
  8722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8723. (exit $ac_status); }; }; then
  8724. ac_cv_func_malloc_0_nonnull=yes
  8725. else
  8726. echo "$as_me: program exited with status $ac_status" >&5
  8727. echo "$as_me: failed program was:" >&5
  8728. sed 's/^/| /' conftest.$ac_ext >&5
  8729. ( exit $ac_status )
  8730. ac_cv_func_malloc_0_nonnull=no
  8731. fi
  8732. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8733. fi
  8734. fi
  8735. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  8736. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  8737. if test $ac_cv_func_malloc_0_nonnull = yes; then
  8738. cat >>confdefs.h <<\_ACEOF
  8739. #define HAVE_MALLOC 1
  8740. _ACEOF
  8741. else
  8742. cat >>confdefs.h <<\_ACEOF
  8743. #define HAVE_MALLOC 0
  8744. _ACEOF
  8745. case $LIBOBJS in
  8746. "malloc.$ac_objext" | \
  8747. *" malloc.$ac_objext" | \
  8748. "malloc.$ac_objext "* | \
  8749. *" malloc.$ac_objext "* ) ;;
  8750. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  8751. esac
  8752. cat >>confdefs.h <<\_ACEOF
  8753. #define malloc rpl_malloc
  8754. _ACEOF
  8755. fi
  8756. for ac_header in stdlib.h sys/time.h unistd.h
  8757. do
  8758. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8759. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8760. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8761. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8762. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8763. echo $ECHO_N "(cached) $ECHO_C" >&6
  8764. fi
  8765. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8766. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8767. else
  8768. # Is the header compilable?
  8769. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8770. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8771. cat >conftest.$ac_ext <<_ACEOF
  8772. /* confdefs.h. */
  8773. _ACEOF
  8774. cat confdefs.h >>conftest.$ac_ext
  8775. cat >>conftest.$ac_ext <<_ACEOF
  8776. /* end confdefs.h. */
  8777. $ac_includes_default
  8778. #include <$ac_header>
  8779. _ACEOF
  8780. rm -f conftest.$ac_objext
  8781. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8782. (eval $ac_compile) 2>conftest.er1
  8783. ac_status=$?
  8784. grep -v '^ *+' conftest.er1 >conftest.err
  8785. rm -f conftest.er1
  8786. cat conftest.err >&5
  8787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8788. (exit $ac_status); } &&
  8789. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8790. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8791. (eval $ac_try) 2>&5
  8792. ac_status=$?
  8793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8794. (exit $ac_status); }; } &&
  8795. { ac_try='test -s conftest.$ac_objext'
  8796. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8797. (eval $ac_try) 2>&5
  8798. ac_status=$?
  8799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8800. (exit $ac_status); }; }; then
  8801. ac_header_compiler=yes
  8802. else
  8803. echo "$as_me: failed program was:" >&5
  8804. sed 's/^/| /' conftest.$ac_ext >&5
  8805. ac_header_compiler=no
  8806. fi
  8807. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8808. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8809. echo "${ECHO_T}$ac_header_compiler" >&6
  8810. # Is the header present?
  8811. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8812. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8813. cat >conftest.$ac_ext <<_ACEOF
  8814. /* confdefs.h. */
  8815. _ACEOF
  8816. cat confdefs.h >>conftest.$ac_ext
  8817. cat >>conftest.$ac_ext <<_ACEOF
  8818. /* end confdefs.h. */
  8819. #include <$ac_header>
  8820. _ACEOF
  8821. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8822. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8823. ac_status=$?
  8824. grep -v '^ *+' conftest.er1 >conftest.err
  8825. rm -f conftest.er1
  8826. cat conftest.err >&5
  8827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8828. (exit $ac_status); } >/dev/null; then
  8829. if test -s conftest.err; then
  8830. ac_cpp_err=$ac_c_preproc_warn_flag
  8831. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8832. else
  8833. ac_cpp_err=
  8834. fi
  8835. else
  8836. ac_cpp_err=yes
  8837. fi
  8838. if test -z "$ac_cpp_err"; then
  8839. ac_header_preproc=yes
  8840. else
  8841. echo "$as_me: failed program was:" >&5
  8842. sed 's/^/| /' conftest.$ac_ext >&5
  8843. ac_header_preproc=no
  8844. fi
  8845. rm -f conftest.err conftest.$ac_ext
  8846. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8847. echo "${ECHO_T}$ac_header_preproc" >&6
  8848. # So? What about this header?
  8849. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8850. yes:no: )
  8851. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8852. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8853. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8854. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8855. ac_header_preproc=yes
  8856. ;;
  8857. no:yes:* )
  8858. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8859. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8860. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8861. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8862. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8863. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8864. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8865. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8866. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8867. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8868. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8869. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8870. (
  8871. cat <<\_ASBOX
  8872. ## ------------------------------------------ ##
  8873. ## Report this to the AC_PACKAGE_NAME lists. ##
  8874. ## ------------------------------------------ ##
  8875. _ASBOX
  8876. ) |
  8877. sed "s/^/$as_me: WARNING: /" >&2
  8878. ;;
  8879. esac
  8880. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8881. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8882. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8883. echo $ECHO_N "(cached) $ECHO_C" >&6
  8884. else
  8885. eval "$as_ac_Header=\$ac_header_preproc"
  8886. fi
  8887. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8888. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8889. fi
  8890. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8891. cat >>confdefs.h <<_ACEOF
  8892. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8893. _ACEOF
  8894. fi
  8895. done
  8896. for ac_func in alarm
  8897. do
  8898. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8899. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8900. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8901. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8902. echo $ECHO_N "(cached) $ECHO_C" >&6
  8903. else
  8904. cat >conftest.$ac_ext <<_ACEOF
  8905. /* confdefs.h. */
  8906. _ACEOF
  8907. cat confdefs.h >>conftest.$ac_ext
  8908. cat >>conftest.$ac_ext <<_ACEOF
  8909. /* end confdefs.h. */
  8910. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8911. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8912. #define $ac_func innocuous_$ac_func
  8913. /* System header to define __stub macros and hopefully few prototypes,
  8914. which can conflict with char $ac_func (); below.
  8915. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8916. <limits.h> exists even on freestanding compilers. */
  8917. #ifdef __STDC__
  8918. # include <limits.h>
  8919. #else
  8920. # include <assert.h>
  8921. #endif
  8922. #undef $ac_func
  8923. /* Override any gcc2 internal prototype to avoid an error. */
  8924. #ifdef __cplusplus
  8925. extern "C"
  8926. {
  8927. #endif
  8928. /* We use char because int might match the return type of a gcc2
  8929. builtin and then its argument prototype would still apply. */
  8930. char $ac_func ();
  8931. /* The GNU C library defines this for functions which it implements
  8932. to always fail with ENOSYS. Some functions are actually named
  8933. something starting with __ and the normal name is an alias. */
  8934. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8935. choke me
  8936. #else
  8937. char (*f) () = $ac_func;
  8938. #endif
  8939. #ifdef __cplusplus
  8940. }
  8941. #endif
  8942. int
  8943. main ()
  8944. {
  8945. return f != $ac_func;
  8946. ;
  8947. return 0;
  8948. }
  8949. _ACEOF
  8950. rm -f conftest.$ac_objext conftest$ac_exeext
  8951. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8952. (eval $ac_link) 2>conftest.er1
  8953. ac_status=$?
  8954. grep -v '^ *+' conftest.er1 >conftest.err
  8955. rm -f conftest.er1
  8956. cat conftest.err >&5
  8957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8958. (exit $ac_status); } &&
  8959. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8960. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8961. (eval $ac_try) 2>&5
  8962. ac_status=$?
  8963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8964. (exit $ac_status); }; } &&
  8965. { ac_try='test -s conftest$ac_exeext'
  8966. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8967. (eval $ac_try) 2>&5
  8968. ac_status=$?
  8969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8970. (exit $ac_status); }; }; then
  8971. eval "$as_ac_var=yes"
  8972. else
  8973. echo "$as_me: failed program was:" >&5
  8974. sed 's/^/| /' conftest.$ac_ext >&5
  8975. eval "$as_ac_var=no"
  8976. fi
  8977. rm -f conftest.err conftest.$ac_objext \
  8978. conftest$ac_exeext conftest.$ac_ext
  8979. fi
  8980. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8981. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8982. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8983. cat >>confdefs.h <<_ACEOF
  8984. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8985. _ACEOF
  8986. fi
  8987. done
  8988. echo "$as_me:$LINENO: checking for working mktime" >&5
  8989. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  8990. if test "${ac_cv_func_working_mktime+set}" = set; then
  8991. echo $ECHO_N "(cached) $ECHO_C" >&6
  8992. else
  8993. if test "$cross_compiling" = yes; then
  8994. ac_cv_func_working_mktime=no
  8995. else
  8996. cat >conftest.$ac_ext <<_ACEOF
  8997. /* confdefs.h. */
  8998. _ACEOF
  8999. cat confdefs.h >>conftest.$ac_ext
  9000. cat >>conftest.$ac_ext <<_ACEOF
  9001. /* end confdefs.h. */
  9002. /* Test program from Paul Eggert and Tony Leneis. */
  9003. #if TIME_WITH_SYS_TIME
  9004. # include <sys/time.h>
  9005. # include <time.h>
  9006. #else
  9007. # if HAVE_SYS_TIME_H
  9008. # include <sys/time.h>
  9009. # else
  9010. # include <time.h>
  9011. # endif
  9012. #endif
  9013. #if HAVE_STDLIB_H
  9014. # include <stdlib.h>
  9015. #endif
  9016. #if HAVE_UNISTD_H
  9017. # include <unistd.h>
  9018. #endif
  9019. #if !HAVE_ALARM
  9020. # define alarm(X) /* empty */
  9021. #endif
  9022. /* Work around redefinition to rpl_putenv by other config tests. */
  9023. #undef putenv
  9024. static time_t time_t_max;
  9025. static time_t time_t_min;
  9026. /* Values we'll use to set the TZ environment variable. */
  9027. static char *tz_strings[] = {
  9028. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  9029. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  9030. };
  9031. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  9032. /* Fail if mktime fails to convert a date in the spring-forward gap.
  9033. Based on a problem report from Andreas Jaeger. */
  9034. static void
  9035. spring_forward_gap ()
  9036. {
  9037. /* glibc (up to about 1998-10-07) failed this test. */
  9038. struct tm tm;
  9039. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  9040. instead of "TZ=America/Vancouver" in order to detect the bug even
  9041. on systems that don't support the Olson extension, or don't have the
  9042. full zoneinfo tables installed. */
  9043. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  9044. tm.tm_year = 98;
  9045. tm.tm_mon = 3;
  9046. tm.tm_mday = 5;
  9047. tm.tm_hour = 2;
  9048. tm.tm_min = 0;
  9049. tm.tm_sec = 0;
  9050. tm.tm_isdst = -1;
  9051. if (mktime (&tm) == (time_t)-1)
  9052. exit (1);
  9053. }
  9054. static void
  9055. mktime_test1 (now)
  9056. time_t now;
  9057. {
  9058. struct tm *lt;
  9059. if ((lt = localtime (&now)) && mktime (lt) != now)
  9060. exit (1);
  9061. }
  9062. static void
  9063. mktime_test (now)
  9064. time_t now;
  9065. {
  9066. mktime_test1 (now);
  9067. mktime_test1 ((time_t) (time_t_max - now));
  9068. mktime_test1 ((time_t) (time_t_min + now));
  9069. }
  9070. static void
  9071. irix_6_4_bug ()
  9072. {
  9073. /* Based on code from Ariel Faigon. */
  9074. struct tm tm;
  9075. tm.tm_year = 96;
  9076. tm.tm_mon = 3;
  9077. tm.tm_mday = 0;
  9078. tm.tm_hour = 0;
  9079. tm.tm_min = 0;
  9080. tm.tm_sec = 0;
  9081. tm.tm_isdst = -1;
  9082. mktime (&tm);
  9083. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  9084. exit (1);
  9085. }
  9086. static void
  9087. bigtime_test (j)
  9088. int j;
  9089. {
  9090. struct tm tm;
  9091. time_t now;
  9092. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  9093. now = mktime (&tm);
  9094. if (now != (time_t) -1)
  9095. {
  9096. struct tm *lt = localtime (&now);
  9097. if (! (lt
  9098. && lt->tm_year == tm.tm_year
  9099. && lt->tm_mon == tm.tm_mon
  9100. && lt->tm_mday == tm.tm_mday
  9101. && lt->tm_hour == tm.tm_hour
  9102. && lt->tm_min == tm.tm_min
  9103. && lt->tm_sec == tm.tm_sec
  9104. && lt->tm_yday == tm.tm_yday
  9105. && lt->tm_wday == tm.tm_wday
  9106. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  9107. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  9108. exit (1);
  9109. }
  9110. }
  9111. int
  9112. main ()
  9113. {
  9114. time_t t, delta;
  9115. int i, j;
  9116. /* This test makes some buggy mktime implementations loop.
  9117. Give up after 60 seconds; a mktime slower than that
  9118. isn't worth using anyway. */
  9119. alarm (60);
  9120. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  9121. continue;
  9122. time_t_max--;
  9123. if ((time_t) -1 < 0)
  9124. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  9125. continue;
  9126. delta = time_t_max / 997; /* a suitable prime number */
  9127. for (i = 0; i < N_STRINGS; i++)
  9128. {
  9129. if (tz_strings[i])
  9130. putenv (tz_strings[i]);
  9131. for (t = 0; t <= time_t_max - delta; t += delta)
  9132. mktime_test (t);
  9133. mktime_test ((time_t) 1);
  9134. mktime_test ((time_t) (60 * 60));
  9135. mktime_test ((time_t) (60 * 60 * 24));
  9136. for (j = 1; 0 < j; j *= 2)
  9137. bigtime_test (j);
  9138. bigtime_test (j - 1);
  9139. }
  9140. irix_6_4_bug ();
  9141. spring_forward_gap ();
  9142. exit (0);
  9143. }
  9144. _ACEOF
  9145. rm -f conftest$ac_exeext
  9146. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9147. (eval $ac_link) 2>&5
  9148. ac_status=$?
  9149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9150. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9151. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9152. (eval $ac_try) 2>&5
  9153. ac_status=$?
  9154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9155. (exit $ac_status); }; }; then
  9156. ac_cv_func_working_mktime=yes
  9157. else
  9158. echo "$as_me: program exited with status $ac_status" >&5
  9159. echo "$as_me: failed program was:" >&5
  9160. sed 's/^/| /' conftest.$ac_ext >&5
  9161. ( exit $ac_status )
  9162. ac_cv_func_working_mktime=no
  9163. fi
  9164. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9165. fi
  9166. fi
  9167. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  9168. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  9169. if test $ac_cv_func_working_mktime = no; then
  9170. case $LIBOBJS in
  9171. "mktime.$ac_objext" | \
  9172. *" mktime.$ac_objext" | \
  9173. "mktime.$ac_objext "* | \
  9174. *" mktime.$ac_objext "* ) ;;
  9175. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  9176. esac
  9177. fi
  9178. for ac_header in stdlib.h unistd.h
  9179. do
  9180. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9181. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9182. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9183. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9184. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9185. echo $ECHO_N "(cached) $ECHO_C" >&6
  9186. fi
  9187. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9188. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9189. else
  9190. # Is the header compilable?
  9191. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9192. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9193. cat >conftest.$ac_ext <<_ACEOF
  9194. /* confdefs.h. */
  9195. _ACEOF
  9196. cat confdefs.h >>conftest.$ac_ext
  9197. cat >>conftest.$ac_ext <<_ACEOF
  9198. /* end confdefs.h. */
  9199. $ac_includes_default
  9200. #include <$ac_header>
  9201. _ACEOF
  9202. rm -f conftest.$ac_objext
  9203. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9204. (eval $ac_compile) 2>conftest.er1
  9205. ac_status=$?
  9206. grep -v '^ *+' conftest.er1 >conftest.err
  9207. rm -f conftest.er1
  9208. cat conftest.err >&5
  9209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9210. (exit $ac_status); } &&
  9211. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9212. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9213. (eval $ac_try) 2>&5
  9214. ac_status=$?
  9215. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9216. (exit $ac_status); }; } &&
  9217. { ac_try='test -s conftest.$ac_objext'
  9218. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9219. (eval $ac_try) 2>&5
  9220. ac_status=$?
  9221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9222. (exit $ac_status); }; }; then
  9223. ac_header_compiler=yes
  9224. else
  9225. echo "$as_me: failed program was:" >&5
  9226. sed 's/^/| /' conftest.$ac_ext >&5
  9227. ac_header_compiler=no
  9228. fi
  9229. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9230. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9231. echo "${ECHO_T}$ac_header_compiler" >&6
  9232. # Is the header present?
  9233. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9234. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9235. cat >conftest.$ac_ext <<_ACEOF
  9236. /* confdefs.h. */
  9237. _ACEOF
  9238. cat confdefs.h >>conftest.$ac_ext
  9239. cat >>conftest.$ac_ext <<_ACEOF
  9240. /* end confdefs.h. */
  9241. #include <$ac_header>
  9242. _ACEOF
  9243. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9244. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9245. ac_status=$?
  9246. grep -v '^ *+' conftest.er1 >conftest.err
  9247. rm -f conftest.er1
  9248. cat conftest.err >&5
  9249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9250. (exit $ac_status); } >/dev/null; then
  9251. if test -s conftest.err; then
  9252. ac_cpp_err=$ac_c_preproc_warn_flag
  9253. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9254. else
  9255. ac_cpp_err=
  9256. fi
  9257. else
  9258. ac_cpp_err=yes
  9259. fi
  9260. if test -z "$ac_cpp_err"; then
  9261. ac_header_preproc=yes
  9262. else
  9263. echo "$as_me: failed program was:" >&5
  9264. sed 's/^/| /' conftest.$ac_ext >&5
  9265. ac_header_preproc=no
  9266. fi
  9267. rm -f conftest.err conftest.$ac_ext
  9268. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9269. echo "${ECHO_T}$ac_header_preproc" >&6
  9270. # So? What about this header?
  9271. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9272. yes:no: )
  9273. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9274. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9275. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9276. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9277. ac_header_preproc=yes
  9278. ;;
  9279. no:yes:* )
  9280. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9281. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9282. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9283. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9284. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9285. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9286. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9287. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9288. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9289. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9290. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9291. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9292. (
  9293. cat <<\_ASBOX
  9294. ## ------------------------------------------ ##
  9295. ## Report this to the AC_PACKAGE_NAME lists. ##
  9296. ## ------------------------------------------ ##
  9297. _ASBOX
  9298. ) |
  9299. sed "s/^/$as_me: WARNING: /" >&2
  9300. ;;
  9301. esac
  9302. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9303. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9304. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9305. echo $ECHO_N "(cached) $ECHO_C" >&6
  9306. else
  9307. eval "$as_ac_Header=\$ac_header_preproc"
  9308. fi
  9309. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9310. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9311. fi
  9312. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9313. cat >>confdefs.h <<_ACEOF
  9314. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9315. _ACEOF
  9316. fi
  9317. done
  9318. for ac_func in getpagesize
  9319. do
  9320. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9321. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9322. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9323. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9324. echo $ECHO_N "(cached) $ECHO_C" >&6
  9325. else
  9326. cat >conftest.$ac_ext <<_ACEOF
  9327. /* confdefs.h. */
  9328. _ACEOF
  9329. cat confdefs.h >>conftest.$ac_ext
  9330. cat >>conftest.$ac_ext <<_ACEOF
  9331. /* end confdefs.h. */
  9332. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9333. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9334. #define $ac_func innocuous_$ac_func
  9335. /* System header to define __stub macros and hopefully few prototypes,
  9336. which can conflict with char $ac_func (); below.
  9337. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9338. <limits.h> exists even on freestanding compilers. */
  9339. #ifdef __STDC__
  9340. # include <limits.h>
  9341. #else
  9342. # include <assert.h>
  9343. #endif
  9344. #undef $ac_func
  9345. /* Override any gcc2 internal prototype to avoid an error. */
  9346. #ifdef __cplusplus
  9347. extern "C"
  9348. {
  9349. #endif
  9350. /* We use char because int might match the return type of a gcc2
  9351. builtin and then its argument prototype would still apply. */
  9352. char $ac_func ();
  9353. /* The GNU C library defines this for functions which it implements
  9354. to always fail with ENOSYS. Some functions are actually named
  9355. something starting with __ and the normal name is an alias. */
  9356. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9357. choke me
  9358. #else
  9359. char (*f) () = $ac_func;
  9360. #endif
  9361. #ifdef __cplusplus
  9362. }
  9363. #endif
  9364. int
  9365. main ()
  9366. {
  9367. return f != $ac_func;
  9368. ;
  9369. return 0;
  9370. }
  9371. _ACEOF
  9372. rm -f conftest.$ac_objext conftest$ac_exeext
  9373. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9374. (eval $ac_link) 2>conftest.er1
  9375. ac_status=$?
  9376. grep -v '^ *+' conftest.er1 >conftest.err
  9377. rm -f conftest.er1
  9378. cat conftest.err >&5
  9379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9380. (exit $ac_status); } &&
  9381. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9382. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9383. (eval $ac_try) 2>&5
  9384. ac_status=$?
  9385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9386. (exit $ac_status); }; } &&
  9387. { ac_try='test -s conftest$ac_exeext'
  9388. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9389. (eval $ac_try) 2>&5
  9390. ac_status=$?
  9391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9392. (exit $ac_status); }; }; then
  9393. eval "$as_ac_var=yes"
  9394. else
  9395. echo "$as_me: failed program was:" >&5
  9396. sed 's/^/| /' conftest.$ac_ext >&5
  9397. eval "$as_ac_var=no"
  9398. fi
  9399. rm -f conftest.err conftest.$ac_objext \
  9400. conftest$ac_exeext conftest.$ac_ext
  9401. fi
  9402. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9403. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9404. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9405. cat >>confdefs.h <<_ACEOF
  9406. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9407. _ACEOF
  9408. fi
  9409. done
  9410. echo "$as_me:$LINENO: checking for working mmap" >&5
  9411. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9412. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9413. echo $ECHO_N "(cached) $ECHO_C" >&6
  9414. else
  9415. if test "$cross_compiling" = yes; then
  9416. ac_cv_func_mmap_fixed_mapped=no
  9417. else
  9418. cat >conftest.$ac_ext <<_ACEOF
  9419. /* confdefs.h. */
  9420. _ACEOF
  9421. cat confdefs.h >>conftest.$ac_ext
  9422. cat >>conftest.$ac_ext <<_ACEOF
  9423. /* end confdefs.h. */
  9424. $ac_includes_default
  9425. /* malloc might have been renamed as rpl_malloc. */
  9426. #undef malloc
  9427. /* Thanks to Mike Haertel and Jim Avera for this test.
  9428. Here is a matrix of mmap possibilities:
  9429. mmap private not fixed
  9430. mmap private fixed at somewhere currently unmapped
  9431. mmap private fixed at somewhere already mapped
  9432. mmap shared not fixed
  9433. mmap shared fixed at somewhere currently unmapped
  9434. mmap shared fixed at somewhere already mapped
  9435. For private mappings, we should verify that changes cannot be read()
  9436. back from the file, nor mmap's back from the file at a different
  9437. address. (There have been systems where private was not correctly
  9438. implemented like the infamous i386 svr4.0, and systems where the
  9439. VM page cache was not coherent with the file system buffer cache
  9440. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9441. For shared mappings, we should conversely verify that changes get
  9442. propagated back to all the places they're supposed to be.
  9443. Grep wants private fixed already mapped.
  9444. The main things grep needs to know about mmap are:
  9445. * does it exist and is it safe to write into the mmap'd area
  9446. * how to use it (BSD variants) */
  9447. #include <fcntl.h>
  9448. #include <sys/mman.h>
  9449. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9450. char *malloc ();
  9451. #endif
  9452. /* This mess was copied from the GNU getpagesize.h. */
  9453. #if !HAVE_GETPAGESIZE
  9454. /* Assume that all systems that can run configure have sys/param.h. */
  9455. # if !HAVE_SYS_PARAM_H
  9456. # define HAVE_SYS_PARAM_H 1
  9457. # endif
  9458. # ifdef _SC_PAGESIZE
  9459. # define getpagesize() sysconf(_SC_PAGESIZE)
  9460. # else /* no _SC_PAGESIZE */
  9461. # if HAVE_SYS_PARAM_H
  9462. # include <sys/param.h>
  9463. # ifdef EXEC_PAGESIZE
  9464. # define getpagesize() EXEC_PAGESIZE
  9465. # else /* no EXEC_PAGESIZE */
  9466. # ifdef NBPG
  9467. # define getpagesize() NBPG * CLSIZE
  9468. # ifndef CLSIZE
  9469. # define CLSIZE 1
  9470. # endif /* no CLSIZE */
  9471. # else /* no NBPG */
  9472. # ifdef NBPC
  9473. # define getpagesize() NBPC
  9474. # else /* no NBPC */
  9475. # ifdef PAGESIZE
  9476. # define getpagesize() PAGESIZE
  9477. # endif /* PAGESIZE */
  9478. # endif /* no NBPC */
  9479. # endif /* no NBPG */
  9480. # endif /* no EXEC_PAGESIZE */
  9481. # else /* no HAVE_SYS_PARAM_H */
  9482. # define getpagesize() 8192 /* punt totally */
  9483. # endif /* no HAVE_SYS_PARAM_H */
  9484. # endif /* no _SC_PAGESIZE */
  9485. #endif /* no HAVE_GETPAGESIZE */
  9486. int
  9487. main ()
  9488. {
  9489. char *data, *data2, *data3;
  9490. int i, pagesize;
  9491. int fd;
  9492. pagesize = getpagesize ();
  9493. /* First, make a file with some known garbage in it. */
  9494. data = (char *) malloc (pagesize);
  9495. if (!data)
  9496. exit (1);
  9497. for (i = 0; i < pagesize; ++i)
  9498. *(data + i) = rand ();
  9499. umask (0);
  9500. fd = creat ("conftest.mmap", 0600);
  9501. if (fd < 0)
  9502. exit (1);
  9503. if (write (fd, data, pagesize) != pagesize)
  9504. exit (1);
  9505. close (fd);
  9506. /* Next, try to mmap the file at a fixed address which already has
  9507. something else allocated at it. If we can, also make sure that
  9508. we see the same garbage. */
  9509. fd = open ("conftest.mmap", O_RDWR);
  9510. if (fd < 0)
  9511. exit (1);
  9512. data2 = (char *) malloc (2 * pagesize);
  9513. if (!data2)
  9514. exit (1);
  9515. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9516. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9517. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9518. exit (1);
  9519. for (i = 0; i < pagesize; ++i)
  9520. if (*(data + i) != *(data2 + i))
  9521. exit (1);
  9522. /* Finally, make sure that changes to the mapped area do not
  9523. percolate back to the file as seen by read(). (This is a bug on
  9524. some variants of i386 svr4.0.) */
  9525. for (i = 0; i < pagesize; ++i)
  9526. *(data2 + i) = *(data2 + i) + 1;
  9527. data3 = (char *) malloc (pagesize);
  9528. if (!data3)
  9529. exit (1);
  9530. if (read (fd, data3, pagesize) != pagesize)
  9531. exit (1);
  9532. for (i = 0; i < pagesize; ++i)
  9533. if (*(data + i) != *(data3 + i))
  9534. exit (1);
  9535. close (fd);
  9536. exit (0);
  9537. }
  9538. _ACEOF
  9539. rm -f conftest$ac_exeext
  9540. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9541. (eval $ac_link) 2>&5
  9542. ac_status=$?
  9543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9544. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9545. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9546. (eval $ac_try) 2>&5
  9547. ac_status=$?
  9548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9549. (exit $ac_status); }; }; then
  9550. ac_cv_func_mmap_fixed_mapped=yes
  9551. else
  9552. echo "$as_me: program exited with status $ac_status" >&5
  9553. echo "$as_me: failed program was:" >&5
  9554. sed 's/^/| /' conftest.$ac_ext >&5
  9555. ( exit $ac_status )
  9556. ac_cv_func_mmap_fixed_mapped=no
  9557. fi
  9558. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9559. fi
  9560. fi
  9561. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9562. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9563. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9564. cat >>confdefs.h <<\_ACEOF
  9565. #define HAVE_MMAP 1
  9566. _ACEOF
  9567. fi
  9568. rm -f conftest.mmap
  9569. for ac_header in stdlib.h
  9570. do
  9571. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9572. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9573. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9574. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9575. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9576. echo $ECHO_N "(cached) $ECHO_C" >&6
  9577. fi
  9578. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9579. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9580. else
  9581. # Is the header compilable?
  9582. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9583. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9584. cat >conftest.$ac_ext <<_ACEOF
  9585. /* confdefs.h. */
  9586. _ACEOF
  9587. cat confdefs.h >>conftest.$ac_ext
  9588. cat >>conftest.$ac_ext <<_ACEOF
  9589. /* end confdefs.h. */
  9590. $ac_includes_default
  9591. #include <$ac_header>
  9592. _ACEOF
  9593. rm -f conftest.$ac_objext
  9594. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9595. (eval $ac_compile) 2>conftest.er1
  9596. ac_status=$?
  9597. grep -v '^ *+' conftest.er1 >conftest.err
  9598. rm -f conftest.er1
  9599. cat conftest.err >&5
  9600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9601. (exit $ac_status); } &&
  9602. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9603. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9604. (eval $ac_try) 2>&5
  9605. ac_status=$?
  9606. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9607. (exit $ac_status); }; } &&
  9608. { ac_try='test -s conftest.$ac_objext'
  9609. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9610. (eval $ac_try) 2>&5
  9611. ac_status=$?
  9612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9613. (exit $ac_status); }; }; then
  9614. ac_header_compiler=yes
  9615. else
  9616. echo "$as_me: failed program was:" >&5
  9617. sed 's/^/| /' conftest.$ac_ext >&5
  9618. ac_header_compiler=no
  9619. fi
  9620. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9621. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9622. echo "${ECHO_T}$ac_header_compiler" >&6
  9623. # Is the header present?
  9624. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9625. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9626. cat >conftest.$ac_ext <<_ACEOF
  9627. /* confdefs.h. */
  9628. _ACEOF
  9629. cat confdefs.h >>conftest.$ac_ext
  9630. cat >>conftest.$ac_ext <<_ACEOF
  9631. /* end confdefs.h. */
  9632. #include <$ac_header>
  9633. _ACEOF
  9634. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9635. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9636. ac_status=$?
  9637. grep -v '^ *+' conftest.er1 >conftest.err
  9638. rm -f conftest.er1
  9639. cat conftest.err >&5
  9640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9641. (exit $ac_status); } >/dev/null; then
  9642. if test -s conftest.err; then
  9643. ac_cpp_err=$ac_c_preproc_warn_flag
  9644. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9645. else
  9646. ac_cpp_err=
  9647. fi
  9648. else
  9649. ac_cpp_err=yes
  9650. fi
  9651. if test -z "$ac_cpp_err"; then
  9652. ac_header_preproc=yes
  9653. else
  9654. echo "$as_me: failed program was:" >&5
  9655. sed 's/^/| /' conftest.$ac_ext >&5
  9656. ac_header_preproc=no
  9657. fi
  9658. rm -f conftest.err conftest.$ac_ext
  9659. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9660. echo "${ECHO_T}$ac_header_preproc" >&6
  9661. # So? What about this header?
  9662. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9663. yes:no: )
  9664. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9665. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9666. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9667. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9668. ac_header_preproc=yes
  9669. ;;
  9670. no:yes:* )
  9671. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9672. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9673. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9674. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9675. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9676. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9677. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9678. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9679. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9680. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9681. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9682. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9683. (
  9684. cat <<\_ASBOX
  9685. ## ------------------------------------------ ##
  9686. ## Report this to the AC_PACKAGE_NAME lists. ##
  9687. ## ------------------------------------------ ##
  9688. _ASBOX
  9689. ) |
  9690. sed "s/^/$as_me: WARNING: /" >&2
  9691. ;;
  9692. esac
  9693. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9694. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9695. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9696. echo $ECHO_N "(cached) $ECHO_C" >&6
  9697. else
  9698. eval "$as_ac_Header=\$ac_header_preproc"
  9699. fi
  9700. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9701. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9702. fi
  9703. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9704. cat >>confdefs.h <<_ACEOF
  9705. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9706. _ACEOF
  9707. fi
  9708. done
  9709. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9710. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  9711. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9712. echo $ECHO_N "(cached) $ECHO_C" >&6
  9713. else
  9714. if test "$cross_compiling" = yes; then
  9715. ac_cv_func_realloc_0_nonnull=no
  9716. else
  9717. cat >conftest.$ac_ext <<_ACEOF
  9718. /* confdefs.h. */
  9719. _ACEOF
  9720. cat confdefs.h >>conftest.$ac_ext
  9721. cat >>conftest.$ac_ext <<_ACEOF
  9722. /* end confdefs.h. */
  9723. #if STDC_HEADERS || HAVE_STDLIB_H
  9724. # include <stdlib.h>
  9725. #else
  9726. char *realloc ();
  9727. #endif
  9728. int
  9729. main ()
  9730. {
  9731. exit (realloc (0, 0) ? 0 : 1);
  9732. ;
  9733. return 0;
  9734. }
  9735. _ACEOF
  9736. rm -f conftest$ac_exeext
  9737. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9738. (eval $ac_link) 2>&5
  9739. ac_status=$?
  9740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9741. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9742. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9743. (eval $ac_try) 2>&5
  9744. ac_status=$?
  9745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9746. (exit $ac_status); }; }; then
  9747. ac_cv_func_realloc_0_nonnull=yes
  9748. else
  9749. echo "$as_me: program exited with status $ac_status" >&5
  9750. echo "$as_me: failed program was:" >&5
  9751. sed 's/^/| /' conftest.$ac_ext >&5
  9752. ( exit $ac_status )
  9753. ac_cv_func_realloc_0_nonnull=no
  9754. fi
  9755. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9756. fi
  9757. fi
  9758. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9759. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  9760. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9761. cat >>confdefs.h <<\_ACEOF
  9762. #define HAVE_REALLOC 1
  9763. _ACEOF
  9764. else
  9765. cat >>confdefs.h <<\_ACEOF
  9766. #define HAVE_REALLOC 0
  9767. _ACEOF
  9768. case $LIBOBJS in
  9769. "realloc.$ac_objext" | \
  9770. *" realloc.$ac_objext" | \
  9771. "realloc.$ac_objext "* | \
  9772. *" realloc.$ac_objext "* ) ;;
  9773. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  9774. esac
  9775. cat >>confdefs.h <<\_ACEOF
  9776. #define realloc rpl_realloc
  9777. _ACEOF
  9778. fi
  9779. for ac_header in sys/select.h sys/socket.h
  9780. do
  9781. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9782. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9783. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9784. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9785. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9786. echo $ECHO_N "(cached) $ECHO_C" >&6
  9787. fi
  9788. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9789. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9790. else
  9791. # Is the header compilable?
  9792. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9793. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9794. cat >conftest.$ac_ext <<_ACEOF
  9795. /* confdefs.h. */
  9796. _ACEOF
  9797. cat confdefs.h >>conftest.$ac_ext
  9798. cat >>conftest.$ac_ext <<_ACEOF
  9799. /* end confdefs.h. */
  9800. $ac_includes_default
  9801. #include <$ac_header>
  9802. _ACEOF
  9803. rm -f conftest.$ac_objext
  9804. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9805. (eval $ac_compile) 2>conftest.er1
  9806. ac_status=$?
  9807. grep -v '^ *+' conftest.er1 >conftest.err
  9808. rm -f conftest.er1
  9809. cat conftest.err >&5
  9810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9811. (exit $ac_status); } &&
  9812. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9813. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9814. (eval $ac_try) 2>&5
  9815. ac_status=$?
  9816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9817. (exit $ac_status); }; } &&
  9818. { ac_try='test -s conftest.$ac_objext'
  9819. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9820. (eval $ac_try) 2>&5
  9821. ac_status=$?
  9822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9823. (exit $ac_status); }; }; then
  9824. ac_header_compiler=yes
  9825. else
  9826. echo "$as_me: failed program was:" >&5
  9827. sed 's/^/| /' conftest.$ac_ext >&5
  9828. ac_header_compiler=no
  9829. fi
  9830. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9831. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9832. echo "${ECHO_T}$ac_header_compiler" >&6
  9833. # Is the header present?
  9834. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9835. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9836. cat >conftest.$ac_ext <<_ACEOF
  9837. /* confdefs.h. */
  9838. _ACEOF
  9839. cat confdefs.h >>conftest.$ac_ext
  9840. cat >>conftest.$ac_ext <<_ACEOF
  9841. /* end confdefs.h. */
  9842. #include <$ac_header>
  9843. _ACEOF
  9844. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9845. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9846. ac_status=$?
  9847. grep -v '^ *+' conftest.er1 >conftest.err
  9848. rm -f conftest.er1
  9849. cat conftest.err >&5
  9850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9851. (exit $ac_status); } >/dev/null; then
  9852. if test -s conftest.err; then
  9853. ac_cpp_err=$ac_c_preproc_warn_flag
  9854. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9855. else
  9856. ac_cpp_err=
  9857. fi
  9858. else
  9859. ac_cpp_err=yes
  9860. fi
  9861. if test -z "$ac_cpp_err"; then
  9862. ac_header_preproc=yes
  9863. else
  9864. echo "$as_me: failed program was:" >&5
  9865. sed 's/^/| /' conftest.$ac_ext >&5
  9866. ac_header_preproc=no
  9867. fi
  9868. rm -f conftest.err conftest.$ac_ext
  9869. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9870. echo "${ECHO_T}$ac_header_preproc" >&6
  9871. # So? What about this header?
  9872. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9873. yes:no: )
  9874. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9875. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9876. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9877. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9878. ac_header_preproc=yes
  9879. ;;
  9880. no:yes:* )
  9881. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9882. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9883. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9884. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9885. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9886. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9887. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9888. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9889. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9890. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9891. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9892. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9893. (
  9894. cat <<\_ASBOX
  9895. ## ------------------------------------------ ##
  9896. ## Report this to the AC_PACKAGE_NAME lists. ##
  9897. ## ------------------------------------------ ##
  9898. _ASBOX
  9899. ) |
  9900. sed "s/^/$as_me: WARNING: /" >&2
  9901. ;;
  9902. esac
  9903. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9904. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9905. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9906. echo $ECHO_N "(cached) $ECHO_C" >&6
  9907. else
  9908. eval "$as_ac_Header=\$ac_header_preproc"
  9909. fi
  9910. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9911. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9912. fi
  9913. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9914. cat >>confdefs.h <<_ACEOF
  9915. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9916. _ACEOF
  9917. fi
  9918. done
  9919. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  9920. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  9921. if test "${ac_cv_func_select_args+set}" = set; then
  9922. echo $ECHO_N "(cached) $ECHO_C" >&6
  9923. else
  9924. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  9925. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  9926. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  9927. cat >conftest.$ac_ext <<_ACEOF
  9928. /* confdefs.h. */
  9929. _ACEOF
  9930. cat confdefs.h >>conftest.$ac_ext
  9931. cat >>conftest.$ac_ext <<_ACEOF
  9932. /* end confdefs.h. */
  9933. $ac_includes_default
  9934. #if HAVE_SYS_SELECT_H
  9935. # include <sys/select.h>
  9936. #endif
  9937. #if HAVE_SYS_SOCKET_H
  9938. # include <sys/socket.h>
  9939. #endif
  9940. int
  9941. main ()
  9942. {
  9943. extern int select ($ac_arg1,
  9944. $ac_arg234, $ac_arg234, $ac_arg234,
  9945. $ac_arg5);
  9946. ;
  9947. return 0;
  9948. }
  9949. _ACEOF
  9950. rm -f conftest.$ac_objext
  9951. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9952. (eval $ac_compile) 2>conftest.er1
  9953. ac_status=$?
  9954. grep -v '^ *+' conftest.er1 >conftest.err
  9955. rm -f conftest.er1
  9956. cat conftest.err >&5
  9957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9958. (exit $ac_status); } &&
  9959. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9960. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9961. (eval $ac_try) 2>&5
  9962. ac_status=$?
  9963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9964. (exit $ac_status); }; } &&
  9965. { ac_try='test -s conftest.$ac_objext'
  9966. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9967. (eval $ac_try) 2>&5
  9968. ac_status=$?
  9969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9970. (exit $ac_status); }; }; then
  9971. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  9972. else
  9973. echo "$as_me: failed program was:" >&5
  9974. sed 's/^/| /' conftest.$ac_ext >&5
  9975. fi
  9976. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9977. done
  9978. done
  9979. done
  9980. # Provide a safe default value.
  9981. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  9982. fi
  9983. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  9984. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  9985. ac_save_IFS=$IFS; IFS=','
  9986. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  9987. IFS=$ac_save_IFS
  9988. shift
  9989. cat >>confdefs.h <<_ACEOF
  9990. #define SELECT_TYPE_ARG1 $1
  9991. _ACEOF
  9992. cat >>confdefs.h <<_ACEOF
  9993. #define SELECT_TYPE_ARG234 ($2)
  9994. _ACEOF
  9995. cat >>confdefs.h <<_ACEOF
  9996. #define SELECT_TYPE_ARG5 ($3)
  9997. _ACEOF
  9998. rm -f conftest*
  9999. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  10000. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  10001. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  10002. echo $ECHO_N "(cached) $ECHO_C" >&6
  10003. else
  10004. if test "$cross_compiling" = yes; then
  10005. ac_cv_func_stat_empty_string_bug=yes
  10006. else
  10007. cat >conftest.$ac_ext <<_ACEOF
  10008. /* confdefs.h. */
  10009. _ACEOF
  10010. cat confdefs.h >>conftest.$ac_ext
  10011. cat >>conftest.$ac_ext <<_ACEOF
  10012. /* end confdefs.h. */
  10013. $ac_includes_default
  10014. int
  10015. main ()
  10016. {
  10017. struct stat sbuf;
  10018. exit (stat ("", &sbuf) ? 1 : 0);
  10019. ;
  10020. return 0;
  10021. }
  10022. _ACEOF
  10023. rm -f conftest$ac_exeext
  10024. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10025. (eval $ac_link) 2>&5
  10026. ac_status=$?
  10027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10028. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10029. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10030. (eval $ac_try) 2>&5
  10031. ac_status=$?
  10032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10033. (exit $ac_status); }; }; then
  10034. ac_cv_func_stat_empty_string_bug=yes
  10035. else
  10036. echo "$as_me: program exited with status $ac_status" >&5
  10037. echo "$as_me: failed program was:" >&5
  10038. sed 's/^/| /' conftest.$ac_ext >&5
  10039. ( exit $ac_status )
  10040. ac_cv_func_stat_empty_string_bug=no
  10041. fi
  10042. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10043. fi
  10044. fi
  10045. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  10046. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  10047. if test $ac_cv_func_stat_empty_string_bug = yes; then
  10048. case $LIBOBJS in
  10049. "stat.$ac_objext" | \
  10050. *" stat.$ac_objext" | \
  10051. "stat.$ac_objext "* | \
  10052. *" stat.$ac_objext "* ) ;;
  10053. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  10054. esac
  10055. cat >>confdefs.h <<_ACEOF
  10056. #define HAVE_STAT_EMPTY_STRING_BUG 1
  10057. _ACEOF
  10058. fi
  10059. for ac_func in strftime
  10060. do
  10061. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10062. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10063. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10064. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10065. echo $ECHO_N "(cached) $ECHO_C" >&6
  10066. else
  10067. cat >conftest.$ac_ext <<_ACEOF
  10068. /* confdefs.h. */
  10069. _ACEOF
  10070. cat confdefs.h >>conftest.$ac_ext
  10071. cat >>conftest.$ac_ext <<_ACEOF
  10072. /* end confdefs.h. */
  10073. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10074. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10075. #define $ac_func innocuous_$ac_func
  10076. /* System header to define __stub macros and hopefully few prototypes,
  10077. which can conflict with char $ac_func (); below.
  10078. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10079. <limits.h> exists even on freestanding compilers. */
  10080. #ifdef __STDC__
  10081. # include <limits.h>
  10082. #else
  10083. # include <assert.h>
  10084. #endif
  10085. #undef $ac_func
  10086. /* Override any gcc2 internal prototype to avoid an error. */
  10087. #ifdef __cplusplus
  10088. extern "C"
  10089. {
  10090. #endif
  10091. /* We use char because int might match the return type of a gcc2
  10092. builtin and then its argument prototype would still apply. */
  10093. char $ac_func ();
  10094. /* The GNU C library defines this for functions which it implements
  10095. to always fail with ENOSYS. Some functions are actually named
  10096. something starting with __ and the normal name is an alias. */
  10097. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10098. choke me
  10099. #else
  10100. char (*f) () = $ac_func;
  10101. #endif
  10102. #ifdef __cplusplus
  10103. }
  10104. #endif
  10105. int
  10106. main ()
  10107. {
  10108. return f != $ac_func;
  10109. ;
  10110. return 0;
  10111. }
  10112. _ACEOF
  10113. rm -f conftest.$ac_objext conftest$ac_exeext
  10114. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10115. (eval $ac_link) 2>conftest.er1
  10116. ac_status=$?
  10117. grep -v '^ *+' conftest.er1 >conftest.err
  10118. rm -f conftest.er1
  10119. cat conftest.err >&5
  10120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10121. (exit $ac_status); } &&
  10122. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10123. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10124. (eval $ac_try) 2>&5
  10125. ac_status=$?
  10126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10127. (exit $ac_status); }; } &&
  10128. { ac_try='test -s conftest$ac_exeext'
  10129. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10130. (eval $ac_try) 2>&5
  10131. ac_status=$?
  10132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10133. (exit $ac_status); }; }; then
  10134. eval "$as_ac_var=yes"
  10135. else
  10136. echo "$as_me: failed program was:" >&5
  10137. sed 's/^/| /' conftest.$ac_ext >&5
  10138. eval "$as_ac_var=no"
  10139. fi
  10140. rm -f conftest.err conftest.$ac_objext \
  10141. conftest$ac_exeext conftest.$ac_ext
  10142. fi
  10143. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10144. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10145. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10146. cat >>confdefs.h <<_ACEOF
  10147. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10148. _ACEOF
  10149. else
  10150. # strftime is in -lintl on SCO UNIX.
  10151. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  10152. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  10153. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  10154. echo $ECHO_N "(cached) $ECHO_C" >&6
  10155. else
  10156. ac_check_lib_save_LIBS=$LIBS
  10157. LIBS="-lintl $LIBS"
  10158. cat >conftest.$ac_ext <<_ACEOF
  10159. /* confdefs.h. */
  10160. _ACEOF
  10161. cat confdefs.h >>conftest.$ac_ext
  10162. cat >>conftest.$ac_ext <<_ACEOF
  10163. /* end confdefs.h. */
  10164. /* Override any gcc2 internal prototype to avoid an error. */
  10165. #ifdef __cplusplus
  10166. extern "C"
  10167. #endif
  10168. /* We use char because int might match the return type of a gcc2
  10169. builtin and then its argument prototype would still apply. */
  10170. char strftime ();
  10171. int
  10172. main ()
  10173. {
  10174. strftime ();
  10175. ;
  10176. return 0;
  10177. }
  10178. _ACEOF
  10179. rm -f conftest.$ac_objext conftest$ac_exeext
  10180. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10181. (eval $ac_link) 2>conftest.er1
  10182. ac_status=$?
  10183. grep -v '^ *+' conftest.er1 >conftest.err
  10184. rm -f conftest.er1
  10185. cat conftest.err >&5
  10186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10187. (exit $ac_status); } &&
  10188. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10189. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10190. (eval $ac_try) 2>&5
  10191. ac_status=$?
  10192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10193. (exit $ac_status); }; } &&
  10194. { ac_try='test -s conftest$ac_exeext'
  10195. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10196. (eval $ac_try) 2>&5
  10197. ac_status=$?
  10198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10199. (exit $ac_status); }; }; then
  10200. ac_cv_lib_intl_strftime=yes
  10201. else
  10202. echo "$as_me: failed program was:" >&5
  10203. sed 's/^/| /' conftest.$ac_ext >&5
  10204. ac_cv_lib_intl_strftime=no
  10205. fi
  10206. rm -f conftest.err conftest.$ac_objext \
  10207. conftest$ac_exeext conftest.$ac_ext
  10208. LIBS=$ac_check_lib_save_LIBS
  10209. fi
  10210. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  10211. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  10212. if test $ac_cv_lib_intl_strftime = yes; then
  10213. cat >>confdefs.h <<\_ACEOF
  10214. #define HAVE_STRFTIME 1
  10215. _ACEOF
  10216. LIBS="-lintl $LIBS"
  10217. fi
  10218. fi
  10219. done
  10220. #checkpoint
  10221. cat >confcache <<\_ACEOF
  10222. # This file is a shell script that caches the results of configure
  10223. # tests run on this system so they can be shared between configure
  10224. # scripts and configure runs, see configure's option --config-cache.
  10225. # It is not useful on other systems. If it contains results you don't
  10226. # want to keep, you may remove or edit it.
  10227. #
  10228. # config.status only pays attention to the cache file if you give it
  10229. # the --recheck option to rerun configure.
  10230. #
  10231. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10232. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10233. # following values.
  10234. _ACEOF
  10235. # The following way of writing the cache mishandles newlines in values,
  10236. # but we know of no workaround that is simple, portable, and efficient.
  10237. # So, don't put newlines in cache variables' values.
  10238. # Ultrix sh set writes to stderr and can't be redirected directly,
  10239. # and sets the high bit in the cache file unless we assign to the vars.
  10240. {
  10241. (set) 2>&1 |
  10242. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10243. *ac_space=\ *)
  10244. # `set' does not quote correctly, so add quotes (double-quote
  10245. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10246. sed -n \
  10247. "s/'/'\\\\''/g;
  10248. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10249. ;;
  10250. *)
  10251. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10252. sed -n \
  10253. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10254. ;;
  10255. esac;
  10256. } |
  10257. sed '
  10258. t clear
  10259. : clear
  10260. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10261. t end
  10262. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10263. : end' >>confcache
  10264. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10265. if test -w $cache_file; then
  10266. test "x$cache_file" != "x/dev/null"
  10267. cat confcache >$cache_file
  10268. else
  10269. echo "not updating unwritable cache $cache_file"
  10270. fi
  10271. fi
  10272. rm -f confcache
  10273. for ac_func in clock fsync getdtablesize getrusage inet_aton isascii gethostbyname2
  10274. do
  10275. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10276. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10277. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10278. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10279. echo $ECHO_N "(cached) $ECHO_C" >&6
  10280. else
  10281. cat >conftest.$ac_ext <<_ACEOF
  10282. /* confdefs.h. */
  10283. _ACEOF
  10284. cat confdefs.h >>conftest.$ac_ext
  10285. cat >>conftest.$ac_ext <<_ACEOF
  10286. /* end confdefs.h. */
  10287. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10288. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10289. #define $ac_func innocuous_$ac_func
  10290. /* System header to define __stub macros and hopefully few prototypes,
  10291. which can conflict with char $ac_func (); below.
  10292. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10293. <limits.h> exists even on freestanding compilers. */
  10294. #ifdef __STDC__
  10295. # include <limits.h>
  10296. #else
  10297. # include <assert.h>
  10298. #endif
  10299. #undef $ac_func
  10300. /* Override any gcc2 internal prototype to avoid an error. */
  10301. #ifdef __cplusplus
  10302. extern "C"
  10303. {
  10304. #endif
  10305. /* We use char because int might match the return type of a gcc2
  10306. builtin and then its argument prototype would still apply. */
  10307. char $ac_func ();
  10308. /* The GNU C library defines this for functions which it implements
  10309. to always fail with ENOSYS. Some functions are actually named
  10310. something starting with __ and the normal name is an alias. */
  10311. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10312. choke me
  10313. #else
  10314. char (*f) () = $ac_func;
  10315. #endif
  10316. #ifdef __cplusplus
  10317. }
  10318. #endif
  10319. int
  10320. main ()
  10321. {
  10322. return f != $ac_func;
  10323. ;
  10324. return 0;
  10325. }
  10326. _ACEOF
  10327. rm -f conftest.$ac_objext conftest$ac_exeext
  10328. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10329. (eval $ac_link) 2>conftest.er1
  10330. ac_status=$?
  10331. grep -v '^ *+' conftest.er1 >conftest.err
  10332. rm -f conftest.er1
  10333. cat conftest.err >&5
  10334. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10335. (exit $ac_status); } &&
  10336. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  10342. { ac_try='test -s conftest$ac_exeext'
  10343. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10344. (eval $ac_try) 2>&5
  10345. ac_status=$?
  10346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10347. (exit $ac_status); }; }; then
  10348. eval "$as_ac_var=yes"
  10349. else
  10350. echo "$as_me: failed program was:" >&5
  10351. sed 's/^/| /' conftest.$ac_ext >&5
  10352. eval "$as_ac_var=no"
  10353. fi
  10354. rm -f conftest.err conftest.$ac_objext \
  10355. conftest$ac_exeext conftest.$ac_ext
  10356. fi
  10357. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10358. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10359. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10360. cat >>confdefs.h <<_ACEOF
  10361. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10362. _ACEOF
  10363. fi
  10364. done
  10365. for ac_func in getipnodebyname memcpy memset random rename setpgid sigaction sigemptyset snprintf srandom
  10366. do
  10367. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10368. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10369. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10370. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10371. echo $ECHO_N "(cached) $ECHO_C" >&6
  10372. else
  10373. cat >conftest.$ac_ext <<_ACEOF
  10374. /* confdefs.h. */
  10375. _ACEOF
  10376. cat confdefs.h >>conftest.$ac_ext
  10377. cat >>conftest.$ac_ext <<_ACEOF
  10378. /* end confdefs.h. */
  10379. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10380. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10381. #define $ac_func innocuous_$ac_func
  10382. /* System header to define __stub macros and hopefully few prototypes,
  10383. which can conflict with char $ac_func (); below.
  10384. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10385. <limits.h> exists even on freestanding compilers. */
  10386. #ifdef __STDC__
  10387. # include <limits.h>
  10388. #else
  10389. # include <assert.h>
  10390. #endif
  10391. #undef $ac_func
  10392. /* Override any gcc2 internal prototype to avoid an error. */
  10393. #ifdef __cplusplus
  10394. extern "C"
  10395. {
  10396. #endif
  10397. /* We use char because int might match the return type of a gcc2
  10398. builtin and then its argument prototype would still apply. */
  10399. char $ac_func ();
  10400. /* The GNU C library defines this for functions which it implements
  10401. to always fail with ENOSYS. Some functions are actually named
  10402. something starting with __ and the normal name is an alias. */
  10403. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10404. choke me
  10405. #else
  10406. char (*f) () = $ac_func;
  10407. #endif
  10408. #ifdef __cplusplus
  10409. }
  10410. #endif
  10411. int
  10412. main ()
  10413. {
  10414. return f != $ac_func;
  10415. ;
  10416. return 0;
  10417. }
  10418. _ACEOF
  10419. rm -f conftest.$ac_objext conftest$ac_exeext
  10420. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10421. (eval $ac_link) 2>conftest.er1
  10422. ac_status=$?
  10423. grep -v '^ *+' conftest.er1 >conftest.err
  10424. rm -f conftest.er1
  10425. cat conftest.err >&5
  10426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10427. (exit $ac_status); } &&
  10428. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10429. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10430. (eval $ac_try) 2>&5
  10431. ac_status=$?
  10432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10433. (exit $ac_status); }; } &&
  10434. { ac_try='test -s conftest$ac_exeext'
  10435. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10436. (eval $ac_try) 2>&5
  10437. ac_status=$?
  10438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10439. (exit $ac_status); }; }; then
  10440. eval "$as_ac_var=yes"
  10441. else
  10442. echo "$as_me: failed program was:" >&5
  10443. sed 's/^/| /' conftest.$ac_ext >&5
  10444. eval "$as_ac_var=no"
  10445. fi
  10446. rm -f conftest.err conftest.$ac_objext \
  10447. conftest$ac_exeext conftest.$ac_ext
  10448. fi
  10449. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10450. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10451. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10452. cat >>confdefs.h <<_ACEOF
  10453. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10454. _ACEOF
  10455. fi
  10456. done
  10457. #checkpoint
  10458. cat >confcache <<\_ACEOF
  10459. # This file is a shell script that caches the results of configure
  10460. # tests run on this system so they can be shared between configure
  10461. # scripts and configure runs, see configure's option --config-cache.
  10462. # It is not useful on other systems. If it contains results you don't
  10463. # want to keep, you may remove or edit it.
  10464. #
  10465. # config.status only pays attention to the cache file if you give it
  10466. # the --recheck option to rerun configure.
  10467. #
  10468. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10469. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10470. # following values.
  10471. _ACEOF
  10472. # The following way of writing the cache mishandles newlines in values,
  10473. # but we know of no workaround that is simple, portable, and efficient.
  10474. # So, don't put newlines in cache variables' values.
  10475. # Ultrix sh set writes to stderr and can't be redirected directly,
  10476. # and sets the high bit in the cache file unless we assign to the vars.
  10477. {
  10478. (set) 2>&1 |
  10479. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10480. *ac_space=\ *)
  10481. # `set' does not quote correctly, so add quotes (double-quote
  10482. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10483. sed -n \
  10484. "s/'/'\\\\''/g;
  10485. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10486. ;;
  10487. *)
  10488. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10489. sed -n \
  10490. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10491. ;;
  10492. esac;
  10493. } |
  10494. sed '
  10495. t clear
  10496. : clear
  10497. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10498. t end
  10499. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10500. : end' >>confcache
  10501. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10502. if test -w $cache_file; then
  10503. test "x$cache_file" != "x/dev/null"
  10504. cat confcache >$cache_file
  10505. else
  10506. echo "not updating unwritable cache $cache_file"
  10507. fi
  10508. fi
  10509. rm -f confcache
  10510. for ac_func in strcasecmp strncasecmp vsnprintf
  10511. do
  10512. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10513. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10514. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10515. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10516. echo $ECHO_N "(cached) $ECHO_C" >&6
  10517. else
  10518. cat >conftest.$ac_ext <<_ACEOF
  10519. /* confdefs.h. */
  10520. _ACEOF
  10521. cat confdefs.h >>conftest.$ac_ext
  10522. cat >>conftest.$ac_ext <<_ACEOF
  10523. /* end confdefs.h. */
  10524. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10525. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10526. #define $ac_func innocuous_$ac_func
  10527. /* System header to define __stub macros and hopefully few prototypes,
  10528. which can conflict with char $ac_func (); below.
  10529. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10530. <limits.h> exists even on freestanding compilers. */
  10531. #ifdef __STDC__
  10532. # include <limits.h>
  10533. #else
  10534. # include <assert.h>
  10535. #endif
  10536. #undef $ac_func
  10537. /* Override any gcc2 internal prototype to avoid an error. */
  10538. #ifdef __cplusplus
  10539. extern "C"
  10540. {
  10541. #endif
  10542. /* We use char because int might match the return type of a gcc2
  10543. builtin and then its argument prototype would still apply. */
  10544. char $ac_func ();
  10545. /* The GNU C library defines this for functions which it implements
  10546. to always fail with ENOSYS. Some functions are actually named
  10547. something starting with __ and the normal name is an alias. */
  10548. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10549. choke me
  10550. #else
  10551. char (*f) () = $ac_func;
  10552. #endif
  10553. #ifdef __cplusplus
  10554. }
  10555. #endif
  10556. int
  10557. main ()
  10558. {
  10559. return f != $ac_func;
  10560. ;
  10561. return 0;
  10562. }
  10563. _ACEOF
  10564. rm -f conftest.$ac_objext conftest$ac_exeext
  10565. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10566. (eval $ac_link) 2>conftest.er1
  10567. ac_status=$?
  10568. grep -v '^ *+' conftest.er1 >conftest.err
  10569. rm -f conftest.er1
  10570. cat conftest.err >&5
  10571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10572. (exit $ac_status); } &&
  10573. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10574. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10575. (eval $ac_try) 2>&5
  10576. ac_status=$?
  10577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10578. (exit $ac_status); }; } &&
  10579. { ac_try='test -s conftest$ac_exeext'
  10580. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10581. (eval $ac_try) 2>&5
  10582. ac_status=$?
  10583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10584. (exit $ac_status); }; }; then
  10585. eval "$as_ac_var=yes"
  10586. else
  10587. echo "$as_me: failed program was:" >&5
  10588. sed 's/^/| /' conftest.$ac_ext >&5
  10589. eval "$as_ac_var=no"
  10590. fi
  10591. rm -f conftest.err conftest.$ac_objext \
  10592. conftest$ac_exeext conftest.$ac_ext
  10593. fi
  10594. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10595. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10596. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10597. cat >>confdefs.h <<_ACEOF
  10598. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10599. _ACEOF
  10600. fi
  10601. done
  10602. #autoscan suggested this....
  10603. #These are recommended by autoscan, but no code supports it currently
  10604. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa mbrlen
  10605. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  10606. for ac_func in vsprintf
  10607. do
  10608. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10609. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10610. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10611. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10612. echo $ECHO_N "(cached) $ECHO_C" >&6
  10613. else
  10614. cat >conftest.$ac_ext <<_ACEOF
  10615. /* confdefs.h. */
  10616. _ACEOF
  10617. cat confdefs.h >>conftest.$ac_ext
  10618. cat >>conftest.$ac_ext <<_ACEOF
  10619. /* end confdefs.h. */
  10620. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10621. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10622. #define $ac_func innocuous_$ac_func
  10623. /* System header to define __stub macros and hopefully few prototypes,
  10624. which can conflict with char $ac_func (); below.
  10625. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10626. <limits.h> exists even on freestanding compilers. */
  10627. #ifdef __STDC__
  10628. # include <limits.h>
  10629. #else
  10630. # include <assert.h>
  10631. #endif
  10632. #undef $ac_func
  10633. /* Override any gcc2 internal prototype to avoid an error. */
  10634. #ifdef __cplusplus
  10635. extern "C"
  10636. {
  10637. #endif
  10638. /* We use char because int might match the return type of a gcc2
  10639. builtin and then its argument prototype would still apply. */
  10640. char $ac_func ();
  10641. /* The GNU C library defines this for functions which it implements
  10642. to always fail with ENOSYS. Some functions are actually named
  10643. something starting with __ and the normal name is an alias. */
  10644. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10645. choke me
  10646. #else
  10647. char (*f) () = $ac_func;
  10648. #endif
  10649. #ifdef __cplusplus
  10650. }
  10651. #endif
  10652. int
  10653. main ()
  10654. {
  10655. return f != $ac_func;
  10656. ;
  10657. return 0;
  10658. }
  10659. _ACEOF
  10660. rm -f conftest.$ac_objext conftest$ac_exeext
  10661. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10662. (eval $ac_link) 2>conftest.er1
  10663. ac_status=$?
  10664. grep -v '^ *+' conftest.er1 >conftest.err
  10665. rm -f conftest.er1
  10666. cat conftest.err >&5
  10667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10668. (exit $ac_status); } &&
  10669. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10670. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10671. (eval $ac_try) 2>&5
  10672. ac_status=$?
  10673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10674. (exit $ac_status); }; } &&
  10675. { ac_try='test -s conftest$ac_exeext'
  10676. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10677. (eval $ac_try) 2>&5
  10678. ac_status=$?
  10679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10680. (exit $ac_status); }; }; then
  10681. eval "$as_ac_var=yes"
  10682. else
  10683. echo "$as_me: failed program was:" >&5
  10684. sed 's/^/| /' conftest.$ac_ext >&5
  10685. eval "$as_ac_var=no"
  10686. fi
  10687. rm -f conftest.err conftest.$ac_objext \
  10688. conftest$ac_exeext conftest.$ac_ext
  10689. fi
  10690. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10691. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10692. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10693. cat >>confdefs.h <<_ACEOF
  10694. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10695. _ACEOF
  10696. fi
  10697. done
  10698. if test "$ac_cv_func_vsprintf" = "no"
  10699. then
  10700. cat << 'EOF' >&2
  10701. configure: error:
  10702. Your system does not have the sprintf/vsprintf libraries.
  10703. These are required to compile almost anything. Sorry.
  10704. EOF
  10705. exit 1
  10706. fi
  10707. for ac_func in uname
  10708. do
  10709. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10710. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10711. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10712. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10713. echo $ECHO_N "(cached) $ECHO_C" >&6
  10714. else
  10715. cat >conftest.$ac_ext <<_ACEOF
  10716. /* confdefs.h. */
  10717. _ACEOF
  10718. cat confdefs.h >>conftest.$ac_ext
  10719. cat >>conftest.$ac_ext <<_ACEOF
  10720. /* end confdefs.h. */
  10721. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10722. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10723. #define $ac_func innocuous_$ac_func
  10724. /* System header to define __stub macros and hopefully few prototypes,
  10725. which can conflict with char $ac_func (); below.
  10726. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10727. <limits.h> exists even on freestanding compilers. */
  10728. #ifdef __STDC__
  10729. # include <limits.h>
  10730. #else
  10731. # include <assert.h>
  10732. #endif
  10733. #undef $ac_func
  10734. /* Override any gcc2 internal prototype to avoid an error. */
  10735. #ifdef __cplusplus
  10736. extern "C"
  10737. {
  10738. #endif
  10739. /* We use char because int might match the return type of a gcc2
  10740. builtin and then its argument prototype would still apply. */
  10741. char $ac_func ();
  10742. /* The GNU C library defines this for functions which it implements
  10743. to always fail with ENOSYS. Some functions are actually named
  10744. something starting with __ and the normal name is an alias. */
  10745. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10746. choke me
  10747. #else
  10748. char (*f) () = $ac_func;
  10749. #endif
  10750. #ifdef __cplusplus
  10751. }
  10752. #endif
  10753. int
  10754. main ()
  10755. {
  10756. return f != $ac_func;
  10757. ;
  10758. return 0;
  10759. }
  10760. _ACEOF
  10761. rm -f conftest.$ac_objext conftest$ac_exeext
  10762. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10763. (eval $ac_link) 2>conftest.er1
  10764. ac_status=$?
  10765. grep -v '^ *+' conftest.er1 >conftest.err
  10766. rm -f conftest.er1
  10767. cat conftest.err >&5
  10768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10769. (exit $ac_status); } &&
  10770. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10771. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10772. (eval $ac_try) 2>&5
  10773. ac_status=$?
  10774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10775. (exit $ac_status); }; } &&
  10776. { ac_try='test -s conftest$ac_exeext'
  10777. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10778. (eval $ac_try) 2>&5
  10779. ac_status=$?
  10780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10781. (exit $ac_status); }; }; then
  10782. eval "$as_ac_var=yes"
  10783. else
  10784. echo "$as_me: failed program was:" >&5
  10785. sed 's/^/| /' conftest.$ac_ext >&5
  10786. eval "$as_ac_var=no"
  10787. fi
  10788. rm -f conftest.err conftest.$ac_objext \
  10789. conftest$ac_exeext conftest.$ac_ext
  10790. fi
  10791. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10792. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10793. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10794. cat >>confdefs.h <<_ACEOF
  10795. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10796. _ACEOF
  10797. fi
  10798. done
  10799. if test "$ac_cv_func_uname" = "no"
  10800. then
  10801. cat << 'EOF' >&2
  10802. configure: error:
  10803. Your system does not have the uname() function.
  10804. This is required for the botpack.
  10805. EOF
  10806. exit 1
  10807. fi
  10808. # Make sure we have stdc headers, since we can't compile without them
  10809. if test "$ac_cv_header_stdc" = "no"
  10810. then
  10811. cat << 'EOF' >&2
  10812. configure: error:
  10813. Your system must support ANSI C Header files.
  10814. These are required for the language support. Sorry.
  10815. EOF
  10816. exit 1
  10817. fi
  10818. #checkpoint
  10819. cat >confcache <<\_ACEOF
  10820. # This file is a shell script that caches the results of configure
  10821. # tests run on this system so they can be shared between configure
  10822. # scripts and configure runs, see configure's option --config-cache.
  10823. # It is not useful on other systems. If it contains results you don't
  10824. # want to keep, you may remove or edit it.
  10825. #
  10826. # config.status only pays attention to the cache file if you give it
  10827. # the --recheck option to rerun configure.
  10828. #
  10829. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10830. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10831. # following values.
  10832. _ACEOF
  10833. # The following way of writing the cache mishandles newlines in values,
  10834. # but we know of no workaround that is simple, portable, and efficient.
  10835. # So, don't put newlines in cache variables' values.
  10836. # Ultrix sh set writes to stderr and can't be redirected directly,
  10837. # and sets the high bit in the cache file unless we assign to the vars.
  10838. {
  10839. (set) 2>&1 |
  10840. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10841. *ac_space=\ *)
  10842. # `set' does not quote correctly, so add quotes (double-quote
  10843. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10844. sed -n \
  10845. "s/'/'\\\\''/g;
  10846. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10847. ;;
  10848. *)
  10849. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10850. sed -n \
  10851. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10852. ;;
  10853. esac;
  10854. } |
  10855. sed '
  10856. t clear
  10857. : clear
  10858. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10859. t end
  10860. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10861. : end' >>confcache
  10862. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10863. if test -w $cache_file; then
  10864. test "x$cache_file" != "x/dev/null"
  10865. cat confcache >$cache_file
  10866. else
  10867. echo "not updating unwritable cache $cache_file"
  10868. fi
  10869. fi
  10870. rm -f confcache
  10871. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  10872. if ! test -f $srcdir/pack/pack.cfg; then
  10873. cat << EOF >&2
  10874. configure: error:
  10875. Your pack cfg is missing, please copy it to $srcdir/pack/pack.cfg
  10876. EOF
  10877. exit 1
  10878. fi
  10879. PACKNAME=`grep "PACKNAME " $srcdir/pack/pack.cfg | $AWK '/PACKNAME/ {print $2}'`
  10880. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  10881. cat >>confdefs.h <<_ACEOF
  10882. #define EGG_VERSION $version_num
  10883. _ACEOF
  10884. for define in `sed -n -e 's/^+ \([^ ]*\) .*/\1/ p' pack/pack.cfg`; do
  10885. u_define="S_$define"
  10886. cat >>confdefs.h <<_ACEOF
  10887. #define $u_define 1
  10888. _ACEOF
  10889. done
  10890. case "$srcdir" in
  10891. [\\/]* | ?:[\\/]*)
  10892. MOD_UPDIR=""
  10893. ;;
  10894. *)
  10895. MOD_UPDIR="../"
  10896. ;;
  10897. esac
  10898. files="src/Makefile.in src/compat/Makefile.in src/crypto/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"
  10899. for mf in $files; do
  10900. # Strip MF so we end up with the name of the file.
  10901. # echo "MF: $mf"
  10902. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10903. dirpart=`(dirname "$mf") 2>/dev/null ||
  10904. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10905. X"$mf" : 'X\(//\)[^/]' \| \
  10906. X"$mf" : 'X\(//\)$' \| \
  10907. X"$mf" : 'X\(/\)' \| \
  10908. . : '\(.\)' 2>/dev/null ||
  10909. echo X"$mf" |
  10910. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10911. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10912. /^X\(\/\/\)$/{ s//\1/; q; }
  10913. /^X\(\/\).*/{ s//\1/; q; }
  10914. s/.*/./; q'`
  10915. # echo "dirpart: $dirpart mf: $mf"
  10916. # rm -rf "$dirpart/.deps/"
  10917. rm -f "$dirpart/.deps/includes"
  10918. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  10919. for file in `sed -n -e '
  10920. /^OBJS = .*\\\\$/ {
  10921. s/^OBJS = //
  10922. :loop
  10923. s/\\\\$//
  10924. p
  10925. n
  10926. /\\\\$/ b loop
  10927. p
  10928. }
  10929. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  10930. do
  10931. base=`basename $file .o`
  10932. test -f "$dirpart/$base.c" || continue
  10933. if ! test -f "$dirpart/.deps/$base.Po"; then
  10934. echo '# dummy' > "$dirpart/.deps/$base.Po"
  10935. #Remove the .o file, because it needs to be recompiled for its dependancies.
  10936. if test -f "$dirpart/$base.o"; then
  10937. rm -f "$dirpart/$base.o"
  10938. fi
  10939. fi
  10940. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  10941. echo "_$base.c:" >> "$dirpart/.deps/includes"
  10942. done
  10943. done
  10944. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/mod/dns.mod/Makefile"
  10945. cat >confcache <<\_ACEOF
  10946. # This file is a shell script that caches the results of configure
  10947. # tests run on this system so they can be shared between configure
  10948. # scripts and configure runs, see configure's option --config-cache.
  10949. # It is not useful on other systems. If it contains results you don't
  10950. # want to keep, you may remove or edit it.
  10951. #
  10952. # config.status only pays attention to the cache file if you give it
  10953. # the --recheck option to rerun configure.
  10954. #
  10955. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10956. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10957. # following values.
  10958. _ACEOF
  10959. # The following way of writing the cache mishandles newlines in values,
  10960. # but we know of no workaround that is simple, portable, and efficient.
  10961. # So, don't put newlines in cache variables' values.
  10962. # Ultrix sh set writes to stderr and can't be redirected directly,
  10963. # and sets the high bit in the cache file unless we assign to the vars.
  10964. {
  10965. (set) 2>&1 |
  10966. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10967. *ac_space=\ *)
  10968. # `set' does not quote correctly, so add quotes (double-quote
  10969. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10970. sed -n \
  10971. "s/'/'\\\\''/g;
  10972. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10973. ;;
  10974. *)
  10975. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10976. sed -n \
  10977. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10978. ;;
  10979. esac;
  10980. } |
  10981. sed '
  10982. t clear
  10983. : clear
  10984. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10985. t end
  10986. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10987. : end' >>confcache
  10988. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10989. if test -w $cache_file; then
  10990. test "x$cache_file" != "x/dev/null"
  10991. cat confcache >$cache_file
  10992. else
  10993. echo "not updating unwritable cache $cache_file"
  10994. fi
  10995. fi
  10996. rm -f confcache
  10997. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10998. # Let make expand exec_prefix.
  10999. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11000. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11001. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11002. # trailing colons and then remove the whole line if VPATH becomes empty
  11003. # (actually we leave an empty line to preserve line numbers).
  11004. if test "x$srcdir" = x.; then
  11005. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11006. s/:*\$(srcdir):*/:/;
  11007. s/:*\${srcdir}:*/:/;
  11008. s/:*@srcdir@:*/:/;
  11009. s/^\([^=]*=[ ]*\):*/\1/;
  11010. s/:*$//;
  11011. s/^[^=]*=[ ]*$//;
  11012. }'
  11013. fi
  11014. DEFS=-DHAVE_CONFIG_H
  11015. ac_libobjs=
  11016. ac_ltlibobjs=
  11017. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11018. # 1. Remove the extension, and $U if already installed.
  11019. ac_i=`echo "$ac_i" |
  11020. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  11021. # 2. Add them.
  11022. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  11023. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  11024. done
  11025. LIBOBJS=$ac_libobjs
  11026. LTLIBOBJS=$ac_ltlibobjs
  11027. : ${CONFIG_STATUS=./config.status}
  11028. ac_clean_files_save=$ac_clean_files
  11029. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11030. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  11031. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11032. cat >$CONFIG_STATUS <<_ACEOF
  11033. #! $SHELL
  11034. # Generated by $as_me.
  11035. # Run this file to recreate the current configuration.
  11036. # Compiler output produced by configure, useful for debugging
  11037. # configure, is in config.log if it exists.
  11038. debug=false
  11039. ac_cs_recheck=false
  11040. ac_cs_silent=false
  11041. SHELL=\${CONFIG_SHELL-$SHELL}
  11042. _ACEOF
  11043. cat >>$CONFIG_STATUS <<\_ACEOF
  11044. ## --------------------- ##
  11045. ## M4sh Initialization. ##
  11046. ## --------------------- ##
  11047. # Be Bourne compatible
  11048. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  11049. emulate sh
  11050. NULLCMD=:
  11051. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  11052. # is contrary to our usage. Disable this feature.
  11053. alias -g '${1+"$@"}'='"$@"'
  11054. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  11055. set -o posix
  11056. fi
  11057. DUALCASE=1; export DUALCASE # for MKS sh
  11058. # Support unset when possible.
  11059. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11060. as_unset=unset
  11061. else
  11062. as_unset=false
  11063. fi
  11064. # Work around bugs in pre-3.0 UWIN ksh.
  11065. $as_unset ENV MAIL MAILPATH
  11066. PS1='$ '
  11067. PS2='> '
  11068. PS4='+ '
  11069. # NLS nuisances.
  11070. for as_var in \
  11071. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  11072. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  11073. LC_TELEPHONE LC_TIME
  11074. do
  11075. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  11076. eval $as_var=C; export $as_var
  11077. else
  11078. $as_unset $as_var
  11079. fi
  11080. done
  11081. # Required to use basename.
  11082. if expr a : '\(a\)' >/dev/null 2>&1; then
  11083. as_expr=expr
  11084. else
  11085. as_expr=false
  11086. fi
  11087. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  11088. as_basename=basename
  11089. else
  11090. as_basename=false
  11091. fi
  11092. # Name of the executable.
  11093. as_me=`$as_basename "$0" ||
  11094. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11095. X"$0" : 'X\(//\)$' \| \
  11096. X"$0" : 'X\(/\)$' \| \
  11097. . : '\(.\)' 2>/dev/null ||
  11098. echo X/"$0" |
  11099. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  11100. /^X\/\(\/\/\)$/{ s//\1/; q; }
  11101. /^X\/\(\/\).*/{ s//\1/; q; }
  11102. s/.*/./; q'`
  11103. # PATH needs CR, and LINENO needs CR and PATH.
  11104. # Avoid depending upon Character Ranges.
  11105. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11106. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11107. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11108. as_cr_digits='0123456789'
  11109. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11110. # The user is always right.
  11111. if test "${PATH_SEPARATOR+set}" != set; then
  11112. echo "#! /bin/sh" >conf$$.sh
  11113. echo "exit 0" >>conf$$.sh
  11114. chmod +x conf$$.sh
  11115. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11116. PATH_SEPARATOR=';'
  11117. else
  11118. PATH_SEPARATOR=:
  11119. fi
  11120. rm -f conf$$.sh
  11121. fi
  11122. as_lineno_1=$LINENO
  11123. as_lineno_2=$LINENO
  11124. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11125. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11126. test "x$as_lineno_3" = "x$as_lineno_2" || {
  11127. # Find who we are. Look in the path if we contain no path at all
  11128. # relative or not.
  11129. case $0 in
  11130. *[\\/]* ) as_myself=$0 ;;
  11131. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11132. for as_dir in $PATH
  11133. do
  11134. IFS=$as_save_IFS
  11135. test -z "$as_dir" && as_dir=.
  11136. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11137. done
  11138. ;;
  11139. esac
  11140. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11141. # in which case we are not to be found in the path.
  11142. if test "x$as_myself" = x; then
  11143. as_myself=$0
  11144. fi
  11145. if test ! -f "$as_myself"; then
  11146. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  11147. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  11148. { (exit 1); exit 1; }; }
  11149. fi
  11150. case $CONFIG_SHELL in
  11151. '')
  11152. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11153. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  11154. do
  11155. IFS=$as_save_IFS
  11156. test -z "$as_dir" && as_dir=.
  11157. for as_base in sh bash ksh sh5; do
  11158. case $as_dir in
  11159. /*)
  11160. if ("$as_dir/$as_base" -c '
  11161. as_lineno_1=$LINENO
  11162. as_lineno_2=$LINENO
  11163. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11164. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11165. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  11166. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  11167. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  11168. CONFIG_SHELL=$as_dir/$as_base
  11169. export CONFIG_SHELL
  11170. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  11171. fi;;
  11172. esac
  11173. done
  11174. done
  11175. ;;
  11176. esac
  11177. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11178. # uniformly replaced by the line number. The first 'sed' inserts a
  11179. # line-number line before each line; the second 'sed' does the real
  11180. # work. The second script uses 'N' to pair each line-number line
  11181. # with the numbered line, and appends trailing '-' during
  11182. # substitution so that $LINENO is not a special case at line end.
  11183. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11184. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  11185. sed '=' <$as_myself |
  11186. sed '
  11187. N
  11188. s,$,-,
  11189. : loop
  11190. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  11191. t loop
  11192. s,-$,,
  11193. s,^['$as_cr_digits']*\n,,
  11194. ' >$as_me.lineno &&
  11195. chmod +x $as_me.lineno ||
  11196. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  11197. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  11198. { (exit 1); exit 1; }; }
  11199. # Don't try to exec as it changes $[0], causing all sort of problems
  11200. # (the dirname of $[0] is not the place where we might find the
  11201. # original and so on. Autoconf is especially sensible to this).
  11202. . ./$as_me.lineno
  11203. # Exit status is that of the last command.
  11204. exit
  11205. }
  11206. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  11207. *c*,-n*) ECHO_N= ECHO_C='
  11208. ' ECHO_T=' ' ;;
  11209. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  11210. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  11211. esac
  11212. if expr a : '\(a\)' >/dev/null 2>&1; then
  11213. as_expr=expr
  11214. else
  11215. as_expr=false
  11216. fi
  11217. rm -f conf$$ conf$$.exe conf$$.file
  11218. echo >conf$$.file
  11219. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11220. # We could just check for DJGPP; but this test a) works b) is more generic
  11221. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  11222. if test -f conf$$.exe; then
  11223. # Don't use ln at all; we don't have any links
  11224. as_ln_s='cp -p'
  11225. else
  11226. as_ln_s='ln -s'
  11227. fi
  11228. elif ln conf$$.file conf$$ 2>/dev/null; then
  11229. as_ln_s=ln
  11230. else
  11231. as_ln_s='cp -p'
  11232. fi
  11233. rm -f conf$$ conf$$.exe conf$$.file
  11234. if mkdir -p . 2>/dev/null; then
  11235. as_mkdir_p=:
  11236. else
  11237. test -d ./-p && rmdir ./-p
  11238. as_mkdir_p=false
  11239. fi
  11240. as_executable_p="test -f"
  11241. # Sed expression to map a string onto a valid CPP name.
  11242. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11243. # Sed expression to map a string onto a valid variable name.
  11244. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11245. # IFS
  11246. # We need space, tab and new line, in precisely that order.
  11247. as_nl='
  11248. '
  11249. IFS=" $as_nl"
  11250. # CDPATH.
  11251. $as_unset CDPATH
  11252. exec 6>&1
  11253. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  11254. # report actual input values of CONFIG_FILES etc. instead of their
  11255. # values after options handling. Logging --version etc. is OK.
  11256. exec 5>>config.log
  11257. {
  11258. echo
  11259. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11260. ## Running $as_me. ##
  11261. _ASBOX
  11262. } >&5
  11263. cat >&5 <<_CSEOF
  11264. This file was extended by $as_me, which was
  11265. generated by GNU Autoconf 2.59. Invocation command line was
  11266. CONFIG_FILES = $CONFIG_FILES
  11267. CONFIG_HEADERS = $CONFIG_HEADERS
  11268. CONFIG_LINKS = $CONFIG_LINKS
  11269. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11270. $ $0 $@
  11271. _CSEOF
  11272. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  11273. echo >&5
  11274. _ACEOF
  11275. # Files that config.status was made for.
  11276. if test -n "$ac_config_files"; then
  11277. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  11278. fi
  11279. if test -n "$ac_config_headers"; then
  11280. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  11281. fi
  11282. if test -n "$ac_config_links"; then
  11283. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  11284. fi
  11285. if test -n "$ac_config_commands"; then
  11286. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  11287. fi
  11288. cat >>$CONFIG_STATUS <<\_ACEOF
  11289. ac_cs_usage="\
  11290. \`$as_me' instantiates files from templates according to the
  11291. current configuration.
  11292. Usage: $0 [OPTIONS] [FILE]...
  11293. -h, --help print this help, then exit
  11294. -V, --version print version number, then exit
  11295. -q, --quiet do not print progress messages
  11296. -d, --debug don't remove temporary files
  11297. --recheck update $as_me by reconfiguring in the same conditions
  11298. --file=FILE[:TEMPLATE]
  11299. instantiate the configuration file FILE
  11300. --header=FILE[:TEMPLATE]
  11301. instantiate the configuration header FILE
  11302. Configuration files:
  11303. $config_files
  11304. Configuration headers:
  11305. $config_headers
  11306. Report bugs to <bug-autoconf@gnu.org>."
  11307. _ACEOF
  11308. cat >>$CONFIG_STATUS <<_ACEOF
  11309. ac_cs_version="\\
  11310. config.status
  11311. configured by $0, generated by GNU Autoconf 2.59,
  11312. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  11313. Copyright (C) 2003 Free Software Foundation, Inc.
  11314. This config.status script is free software; the Free Software Foundation
  11315. gives unlimited permission to copy, distribute and modify it."
  11316. srcdir=$srcdir
  11317. _ACEOF
  11318. cat >>$CONFIG_STATUS <<\_ACEOF
  11319. # If no file are specified by the user, then we need to provide default
  11320. # value. By we need to know if files were specified by the user.
  11321. ac_need_defaults=:
  11322. while test $# != 0
  11323. do
  11324. case $1 in
  11325. --*=*)
  11326. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  11327. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  11328. ac_shift=:
  11329. ;;
  11330. -*)
  11331. ac_option=$1
  11332. ac_optarg=$2
  11333. ac_shift=shift
  11334. ;;
  11335. *) # This is not an option, so the user has probably given explicit
  11336. # arguments.
  11337. ac_option=$1
  11338. ac_need_defaults=false;;
  11339. esac
  11340. case $ac_option in
  11341. # Handling of the options.
  11342. _ACEOF
  11343. cat >>$CONFIG_STATUS <<\_ACEOF
  11344. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11345. ac_cs_recheck=: ;;
  11346. --version | --vers* | -V )
  11347. echo "$ac_cs_version"; exit 0 ;;
  11348. --he | --h)
  11349. # Conflict between --help and --header
  11350. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  11351. Try \`$0 --help' for more information." >&5
  11352. echo "$as_me: error: ambiguous option: $1
  11353. Try \`$0 --help' for more information." >&2;}
  11354. { (exit 1); exit 1; }; };;
  11355. --help | --hel | -h )
  11356. echo "$ac_cs_usage"; exit 0 ;;
  11357. --debug | --d* | -d )
  11358. debug=: ;;
  11359. --file | --fil | --fi | --f )
  11360. $ac_shift
  11361. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11362. ac_need_defaults=false;;
  11363. --header | --heade | --head | --hea )
  11364. $ac_shift
  11365. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11366. ac_need_defaults=false;;
  11367. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11368. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11369. ac_cs_silent=: ;;
  11370. # This is an error.
  11371. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  11372. Try \`$0 --help' for more information." >&5
  11373. echo "$as_me: error: unrecognized option: $1
  11374. Try \`$0 --help' for more information." >&2;}
  11375. { (exit 1); exit 1; }; } ;;
  11376. *) ac_config_targets="$ac_config_targets $1" ;;
  11377. esac
  11378. shift
  11379. done
  11380. ac_configure_extra_args=
  11381. if $ac_cs_silent; then
  11382. exec 6>/dev/null
  11383. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11384. fi
  11385. _ACEOF
  11386. cat >>$CONFIG_STATUS <<_ACEOF
  11387. if \$ac_cs_recheck; then
  11388. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11389. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11390. fi
  11391. _ACEOF
  11392. cat >>$CONFIG_STATUS <<\_ACEOF
  11393. for ac_config_target in $ac_config_targets
  11394. do
  11395. case "$ac_config_target" in
  11396. # Handling of arguments.
  11397. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11398. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11399. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  11400. "src/crypto/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  11401. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  11402. "src/mod/dns.mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/dns.mod/Makefile" ;;
  11403. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11404. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11405. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11406. { (exit 1); exit 1; }; };;
  11407. esac
  11408. done
  11409. # If the user did not use the arguments to specify the items to instantiate,
  11410. # then the envvar interface is used. Set only those that are not.
  11411. # We use the long form for the default assignment because of an extremely
  11412. # bizarre bug on SunOS 4.1.3.
  11413. if $ac_need_defaults; then
  11414. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11415. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11416. fi
  11417. # Have a temporary directory for convenience. Make it in the build tree
  11418. # simply because there is no reason to put it here, and in addition,
  11419. # creating and moving files from /tmp can sometimes cause problems.
  11420. # Create a temporary directory, and hook for its removal unless debugging.
  11421. $debug ||
  11422. {
  11423. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11424. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11425. }
  11426. # Create a (secure) tmp directory for tmp files.
  11427. {
  11428. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11429. test -n "$tmp" && test -d "$tmp"
  11430. } ||
  11431. {
  11432. tmp=./confstat$$-$RANDOM
  11433. (umask 077 && mkdir $tmp)
  11434. } ||
  11435. {
  11436. echo "$me: cannot create a temporary directory in ." >&2
  11437. { (exit 1); exit 1; }
  11438. }
  11439. _ACEOF
  11440. cat >>$CONFIG_STATUS <<_ACEOF
  11441. #
  11442. # CONFIG_FILES section.
  11443. #
  11444. # No need to generate the scripts if there are no CONFIG_FILES.
  11445. # This happens for instance when ./config.status config.h
  11446. if test -n "\$CONFIG_FILES"; then
  11447. # Protect against being on the right side of a sed subst in config.status.
  11448. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11449. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11450. s,@SHELL@,$SHELL,;t t
  11451. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11452. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11453. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11454. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11455. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11456. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11457. s,@exec_prefix@,$exec_prefix,;t t
  11458. s,@prefix@,$prefix,;t t
  11459. s,@program_transform_name@,$program_transform_name,;t t
  11460. s,@bindir@,$bindir,;t t
  11461. s,@sbindir@,$sbindir,;t t
  11462. s,@libexecdir@,$libexecdir,;t t
  11463. s,@datadir@,$datadir,;t t
  11464. s,@sysconfdir@,$sysconfdir,;t t
  11465. s,@sharedstatedir@,$sharedstatedir,;t t
  11466. s,@localstatedir@,$localstatedir,;t t
  11467. s,@libdir@,$libdir,;t t
  11468. s,@includedir@,$includedir,;t t
  11469. s,@oldincludedir@,$oldincludedir,;t t
  11470. s,@infodir@,$infodir,;t t
  11471. s,@mandir@,$mandir,;t t
  11472. s,@build_alias@,$build_alias,;t t
  11473. s,@host_alias@,$host_alias,;t t
  11474. s,@target_alias@,$target_alias,;t t
  11475. s,@DEFS@,$DEFS,;t t
  11476. s,@ECHO_C@,$ECHO_C,;t t
  11477. s,@ECHO_N@,$ECHO_N,;t t
  11478. s,@ECHO_T@,$ECHO_T,;t t
  11479. s,@LIBS@,$LIBS,;t t
  11480. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  11481. s,@CC@,$CC,;t t
  11482. s,@CFLAGS@,$CFLAGS,;t t
  11483. s,@LDFLAGS@,$LDFLAGS,;t t
  11484. s,@CPPFLAGS@,$CPPFLAGS,;t t
  11485. s,@ac_ct_CC@,$ac_ct_CC,;t t
  11486. s,@EXEEXT@,$EXEEXT,;t t
  11487. s,@OBJEXT@,$OBJEXT,;t t
  11488. s,@CPP@,$CPP,;t t
  11489. s,@EGREP@,$EGREP,;t t
  11490. s,@CCDEPMODE@,$CCDEPMODE,;t t
  11491. s,@CCDEBUG@,$CCDEBUG,;t t
  11492. s,@SET_MAKE@,$SET_MAKE,;t t
  11493. s,@HEAD_1@,$HEAD_1,;t t
  11494. s,@AWK@,$AWK,;t t
  11495. s,@BASENAME@,$BASENAME,;t t
  11496. s,@OBJCOPY@,$OBJCOPY,;t t
  11497. s,@STRIP@,$STRIP,;t t
  11498. s,@UNAME@,$UNAME,;t t
  11499. s,@DISTCC@,$DISTCC,;t t
  11500. s,@RESLIB@,$RESLIB,;t t
  11501. s,@RESINCLUDE@,$RESINCLUDE,;t t
  11502. s,@ZLIB@,$ZLIB,;t t
  11503. s,@SSL@,$SSL,;t t
  11504. s,@LIBOBJS@,$LIBOBJS,;t t
  11505. s,@VERSION@,$VERSION,;t t
  11506. s,@NUMVER@,$NUMVER,;t t
  11507. s,@PACKNAME@,$PACKNAME,;t t
  11508. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  11509. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11510. CEOF
  11511. _ACEOF
  11512. cat >>$CONFIG_STATUS <<\_ACEOF
  11513. # Split the substitutions into bite-sized pieces for seds with
  11514. # small command number limits, like on Digital OSF/1 and HP-UX.
  11515. ac_max_sed_lines=48
  11516. ac_sed_frag=1 # Number of current file.
  11517. ac_beg=1 # First line for current file.
  11518. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11519. ac_more_lines=:
  11520. ac_sed_cmds=
  11521. while $ac_more_lines; do
  11522. if test $ac_beg -gt 1; then
  11523. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11524. else
  11525. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11526. fi
  11527. if test ! -s $tmp/subs.frag; then
  11528. ac_more_lines=false
  11529. else
  11530. # The purpose of the label and of the branching condition is to
  11531. # speed up the sed processing (if there are no `@' at all, there
  11532. # is no need to browse any of the substitutions).
  11533. # These are the two extra sed commands mentioned above.
  11534. (echo ':t
  11535. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11536. if test -z "$ac_sed_cmds"; then
  11537. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11538. else
  11539. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11540. fi
  11541. ac_sed_frag=`expr $ac_sed_frag + 1`
  11542. ac_beg=$ac_end
  11543. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11544. fi
  11545. done
  11546. if test -z "$ac_sed_cmds"; then
  11547. ac_sed_cmds=cat
  11548. fi
  11549. fi # test -n "$CONFIG_FILES"
  11550. _ACEOF
  11551. cat >>$CONFIG_STATUS <<\_ACEOF
  11552. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11553. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11554. case $ac_file in
  11555. - | *:- | *:-:* ) # input from stdin
  11556. cat >$tmp/stdin
  11557. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11558. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11559. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11560. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11561. * ) ac_file_in=$ac_file.in ;;
  11562. esac
  11563. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11564. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11565. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11566. X"$ac_file" : 'X\(//\)[^/]' \| \
  11567. X"$ac_file" : 'X\(//\)$' \| \
  11568. X"$ac_file" : 'X\(/\)' \| \
  11569. . : '\(.\)' 2>/dev/null ||
  11570. echo X"$ac_file" |
  11571. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11572. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11573. /^X\(\/\/\)$/{ s//\1/; q; }
  11574. /^X\(\/\).*/{ s//\1/; q; }
  11575. s/.*/./; q'`
  11576. { if $as_mkdir_p; then
  11577. mkdir -p "$ac_dir"
  11578. else
  11579. as_dir="$ac_dir"
  11580. as_dirs=
  11581. while test ! -d "$as_dir"; do
  11582. as_dirs="$as_dir $as_dirs"
  11583. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11584. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11585. X"$as_dir" : 'X\(//\)[^/]' \| \
  11586. X"$as_dir" : 'X\(//\)$' \| \
  11587. X"$as_dir" : 'X\(/\)' \| \
  11588. . : '\(.\)' 2>/dev/null ||
  11589. echo X"$as_dir" |
  11590. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11591. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11592. /^X\(\/\/\)$/{ s//\1/; q; }
  11593. /^X\(\/\).*/{ s//\1/; q; }
  11594. s/.*/./; q'`
  11595. done
  11596. test ! -n "$as_dirs" || mkdir $as_dirs
  11597. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11598. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11599. { (exit 1); exit 1; }; }; }
  11600. ac_builddir=.
  11601. if test "$ac_dir" != .; then
  11602. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11603. # A "../" for each directory in $ac_dir_suffix.
  11604. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11605. else
  11606. ac_dir_suffix= ac_top_builddir=
  11607. fi
  11608. case $srcdir in
  11609. .) # No --srcdir option. We are building in place.
  11610. ac_srcdir=.
  11611. if test -z "$ac_top_builddir"; then
  11612. ac_top_srcdir=.
  11613. else
  11614. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11615. fi ;;
  11616. [\\/]* | ?:[\\/]* ) # Absolute path.
  11617. ac_srcdir=$srcdir$ac_dir_suffix;
  11618. ac_top_srcdir=$srcdir ;;
  11619. *) # Relative path.
  11620. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11621. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11622. esac
  11623. # Do not use `cd foo && pwd` to compute absolute paths, because
  11624. # the directories may not exist.
  11625. case `pwd` in
  11626. .) ac_abs_builddir="$ac_dir";;
  11627. *)
  11628. case "$ac_dir" in
  11629. .) ac_abs_builddir=`pwd`;;
  11630. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11631. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11632. esac;;
  11633. esac
  11634. case $ac_abs_builddir in
  11635. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11636. *)
  11637. case ${ac_top_builddir}. in
  11638. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11639. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11640. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11641. esac;;
  11642. esac
  11643. case $ac_abs_builddir in
  11644. .) ac_abs_srcdir=$ac_srcdir;;
  11645. *)
  11646. case $ac_srcdir in
  11647. .) ac_abs_srcdir=$ac_abs_builddir;;
  11648. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11649. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11650. esac;;
  11651. esac
  11652. case $ac_abs_builddir in
  11653. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11654. *)
  11655. case $ac_top_srcdir in
  11656. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11657. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11658. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11659. esac;;
  11660. esac
  11661. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11662. # use $as_me), people would be surprised to read:
  11663. # /* config.h. Generated by config.status. */
  11664. if test x"$ac_file" = x-; then
  11665. configure_input=
  11666. else
  11667. configure_input="$ac_file. "
  11668. fi
  11669. configure_input=$configure_input"Generated from `echo $ac_file_in |
  11670. sed 's,.*/,,'` by configure."
  11671. # First look for the input files in the build tree, otherwise in the
  11672. # src tree.
  11673. ac_file_inputs=`IFS=:
  11674. for f in $ac_file_in; do
  11675. case $f in
  11676. -) echo $tmp/stdin ;;
  11677. [\\/$]*)
  11678. # Absolute (can't be DOS-style, as IFS=:)
  11679. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11680. echo "$as_me: error: cannot find input file: $f" >&2;}
  11681. { (exit 1); exit 1; }; }
  11682. echo "$f";;
  11683. *) # Relative
  11684. if test -f "$f"; then
  11685. # Build tree
  11686. echo "$f"
  11687. elif test -f "$srcdir/$f"; then
  11688. # Source tree
  11689. echo "$srcdir/$f"
  11690. else
  11691. # /dev/null tree
  11692. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11693. echo "$as_me: error: cannot find input file: $f" >&2;}
  11694. { (exit 1); exit 1; }; }
  11695. fi;;
  11696. esac
  11697. done` || { (exit 1); exit 1; }
  11698. if test x"$ac_file" != x-; then
  11699. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11700. echo "$as_me: creating $ac_file" >&6;}
  11701. rm -f "$ac_file"
  11702. fi
  11703. _ACEOF
  11704. cat >>$CONFIG_STATUS <<_ACEOF
  11705. sed "$ac_vpsub
  11706. $extrasub
  11707. _ACEOF
  11708. cat >>$CONFIG_STATUS <<\_ACEOF
  11709. :t
  11710. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11711. s,@configure_input@,$configure_input,;t t
  11712. s,@srcdir@,$ac_srcdir,;t t
  11713. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  11714. s,@top_srcdir@,$ac_top_srcdir,;t t
  11715. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  11716. s,@builddir@,$ac_builddir,;t t
  11717. s,@abs_builddir@,$ac_abs_builddir,;t t
  11718. s,@top_builddir@,$ac_top_builddir,;t t
  11719. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  11720. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  11721. rm -f $tmp/stdin
  11722. if test x"$ac_file" != x-; then
  11723. mv $tmp/out $ac_file
  11724. else
  11725. cat $tmp/out
  11726. rm -f $tmp/out
  11727. fi
  11728. done
  11729. _ACEOF
  11730. cat >>$CONFIG_STATUS <<\_ACEOF
  11731. #
  11732. # CONFIG_HEADER section.
  11733. #
  11734. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11735. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11736. #
  11737. # ac_d sets the value in "#define NAME VALUE" lines.
  11738. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11739. ac_dB='[ ].*$,\1#\2'
  11740. ac_dC=' '
  11741. ac_dD=',;t'
  11742. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11743. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11744. ac_uB='$,\1#\2define\3'
  11745. ac_uC=' '
  11746. ac_uD=',;t'
  11747. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  11748. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11749. case $ac_file in
  11750. - | *:- | *:-:* ) # input from stdin
  11751. cat >$tmp/stdin
  11752. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11753. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11754. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11755. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11756. * ) ac_file_in=$ac_file.in ;;
  11757. esac
  11758. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  11759. echo "$as_me: creating $ac_file" >&6;}
  11760. # First look for the input files in the build tree, otherwise in the
  11761. # src tree.
  11762. ac_file_inputs=`IFS=:
  11763. for f in $ac_file_in; do
  11764. case $f in
  11765. -) echo $tmp/stdin ;;
  11766. [\\/$]*)
  11767. # Absolute (can't be DOS-style, as IFS=:)
  11768. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11769. echo "$as_me: error: cannot find input file: $f" >&2;}
  11770. { (exit 1); exit 1; }; }
  11771. # Do quote $f, to prevent DOS paths from being IFS'd.
  11772. echo "$f";;
  11773. *) # Relative
  11774. if test -f "$f"; then
  11775. # Build tree
  11776. echo "$f"
  11777. elif test -f "$srcdir/$f"; then
  11778. # Source tree
  11779. echo "$srcdir/$f"
  11780. else
  11781. # /dev/null tree
  11782. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11783. echo "$as_me: error: cannot find input file: $f" >&2;}
  11784. { (exit 1); exit 1; }; }
  11785. fi;;
  11786. esac
  11787. done` || { (exit 1); exit 1; }
  11788. # Remove the trailing spaces.
  11789. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  11790. _ACEOF
  11791. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  11792. # `conftest.undefs', that substitutes the proper values into
  11793. # config.h.in to produce config.h. The first handles `#define'
  11794. # templates, and the second `#undef' templates.
  11795. # And first: Protect against being on the right side of a sed subst in
  11796. # config.status. Protect against being in an unquoted here document
  11797. # in config.status.
  11798. rm -f conftest.defines conftest.undefs
  11799. # Using a here document instead of a string reduces the quoting nightmare.
  11800. # Putting comments in sed scripts is not portable.
  11801. #
  11802. # `end' is used to avoid that the second main sed command (meant for
  11803. # 0-ary CPP macros) applies to n-ary macro definitions.
  11804. # See the Autoconf documentation for `clear'.
  11805. cat >confdef2sed.sed <<\_ACEOF
  11806. s/[\\&,]/\\&/g
  11807. s,[\\$`],\\&,g
  11808. t clear
  11809. : clear
  11810. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  11811. t end
  11812. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  11813. : end
  11814. _ACEOF
  11815. # If some macros were called several times there might be several times
  11816. # the same #defines, which is useless. Nevertheless, we may not want to
  11817. # sort them, since we want the *last* AC-DEFINE to be honored.
  11818. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  11819. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  11820. rm -f confdef2sed.sed
  11821. # This sed command replaces #undef with comments. This is necessary, for
  11822. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11823. # on some systems where configure will not decide to define it.
  11824. cat >>conftest.undefs <<\_ACEOF
  11825. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  11826. _ACEOF
  11827. # Break up conftest.defines because some shells have a limit on the size
  11828. # of here documents, and old seds have small limits too (100 cmds).
  11829. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  11830. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  11831. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  11832. echo ' :' >>$CONFIG_STATUS
  11833. rm -f conftest.tail
  11834. while grep . conftest.defines >/dev/null
  11835. do
  11836. # Write a limited-size here document to $tmp/defines.sed.
  11837. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  11838. # Speed up: don't consider the non `#define' lines.
  11839. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  11840. # Work around the forget-to-reset-the-flag bug.
  11841. echo 't clr' >>$CONFIG_STATUS
  11842. echo ': clr' >>$CONFIG_STATUS
  11843. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  11844. echo 'CEOF
  11845. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  11846. rm -f $tmp/in
  11847. mv $tmp/out $tmp/in
  11848. ' >>$CONFIG_STATUS
  11849. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  11850. rm -f conftest.defines
  11851. mv conftest.tail conftest.defines
  11852. done
  11853. rm -f conftest.defines
  11854. echo ' fi # grep' >>$CONFIG_STATUS
  11855. echo >>$CONFIG_STATUS
  11856. # Break up conftest.undefs because some shells have a limit on the size
  11857. # of here documents, and old seds have small limits too (100 cmds).
  11858. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  11859. rm -f conftest.tail
  11860. while grep . conftest.undefs >/dev/null
  11861. do
  11862. # Write a limited-size here document to $tmp/undefs.sed.
  11863. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  11864. # Speed up: don't consider the non `#undef'
  11865. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  11866. # Work around the forget-to-reset-the-flag bug.
  11867. echo 't clr' >>$CONFIG_STATUS
  11868. echo ': clr' >>$CONFIG_STATUS
  11869. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  11870. echo 'CEOF
  11871. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  11872. rm -f $tmp/in
  11873. mv $tmp/out $tmp/in
  11874. ' >>$CONFIG_STATUS
  11875. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  11876. rm -f conftest.undefs
  11877. mv conftest.tail conftest.undefs
  11878. done
  11879. rm -f conftest.undefs
  11880. cat >>$CONFIG_STATUS <<\_ACEOF
  11881. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11882. # use $as_me), people would be surprised to read:
  11883. # /* config.h. Generated by config.status. */
  11884. if test x"$ac_file" = x-; then
  11885. echo "/* Generated by configure. */" >$tmp/config.h
  11886. else
  11887. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  11888. fi
  11889. cat $tmp/in >>$tmp/config.h
  11890. rm -f $tmp/in
  11891. if test x"$ac_file" != x-; then
  11892. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  11893. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11894. echo "$as_me: $ac_file is unchanged" >&6;}
  11895. else
  11896. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11897. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11898. X"$ac_file" : 'X\(//\)[^/]' \| \
  11899. X"$ac_file" : 'X\(//\)$' \| \
  11900. X"$ac_file" : 'X\(/\)' \| \
  11901. . : '\(.\)' 2>/dev/null ||
  11902. echo X"$ac_file" |
  11903. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11904. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11905. /^X\(\/\/\)$/{ s//\1/; q; }
  11906. /^X\(\/\).*/{ s//\1/; q; }
  11907. s/.*/./; q'`
  11908. { if $as_mkdir_p; then
  11909. mkdir -p "$ac_dir"
  11910. else
  11911. as_dir="$ac_dir"
  11912. as_dirs=
  11913. while test ! -d "$as_dir"; do
  11914. as_dirs="$as_dir $as_dirs"
  11915. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11916. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11917. X"$as_dir" : 'X\(//\)[^/]' \| \
  11918. X"$as_dir" : 'X\(//\)$' \| \
  11919. X"$as_dir" : 'X\(/\)' \| \
  11920. . : '\(.\)' 2>/dev/null ||
  11921. echo X"$as_dir" |
  11922. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11923. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11924. /^X\(\/\/\)$/{ s//\1/; q; }
  11925. /^X\(\/\).*/{ s//\1/; q; }
  11926. s/.*/./; q'`
  11927. done
  11928. test ! -n "$as_dirs" || mkdir $as_dirs
  11929. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11930. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11931. { (exit 1); exit 1; }; }; }
  11932. rm -f $ac_file
  11933. mv $tmp/config.h $ac_file
  11934. fi
  11935. else
  11936. cat $tmp/config.h
  11937. rm -f $tmp/config.h
  11938. fi
  11939. done
  11940. _ACEOF
  11941. cat >>$CONFIG_STATUS <<\_ACEOF
  11942. { (exit 0); exit 0; }
  11943. _ACEOF
  11944. chmod +x $CONFIG_STATUS
  11945. ac_clean_files=$ac_clean_files_save
  11946. # configure is writing to config.log, and then calls config.status.
  11947. # config.status does its own redirection, appending to config.log.
  11948. # Unfortunately, on DOS this fails, as config.log is still kept open
  11949. # by configure, so config.status won't be able to write to it; its
  11950. # output is simply discarded. So we exec the FD to /dev/null,
  11951. # effectively closing config.log, so it can be properly (re)opened and
  11952. # appended to by config.status. When coming back to configure, we
  11953. # need to make the FD available again.
  11954. if test "$no_create" != yes; then
  11955. ac_cs_success=:
  11956. ac_config_status_args=
  11957. test "$silent" = yes &&
  11958. ac_config_status_args="$ac_config_status_args --quiet"
  11959. exec 5>/dev/null
  11960. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11961. exec 5>>config.log
  11962. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11963. # would make configure fail if this is the last instruction.
  11964. $ac_cs_success || { (exit 1); exit 1; }
  11965. fi