configure 377 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.27 .
  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 GCC3 CCDEBUG SET_MAKE HEAD_1 AWK BASENAME OBJCOPY STRIP UNAME DISTCC RESLIB RESINCLUDE ZLIB LIBOBJS VERSION NUMVER PACKNAME CFG MOD_UPDIR LTLIBOBJS'
  281. ac_subst_files=''
  282. # Initialize some variables set by options.
  283. ac_init_help=
  284. ac_init_version=false
  285. # The variables have the same names as the options, with
  286. # dashes changed to underlines.
  287. cache_file=./config.cache
  288. exec_prefix=NONE
  289. no_create=
  290. no_recursion=
  291. prefix=NONE
  292. program_prefix=NONE
  293. program_suffix=NONE
  294. program_transform_name=s,x,x,
  295. silent=
  296. site=
  297. srcdir=
  298. verbose=
  299. x_includes=NONE
  300. x_libraries=NONE
  301. # Installation directory options.
  302. # These are left unexpanded so users can "make install exec_prefix=/foo"
  303. # and all the variables that are supposed to be based on exec_prefix
  304. # by default will actually change.
  305. # Use braces instead of parens because sh, perl, etc. also accept them.
  306. bindir='${exec_prefix}/bin'
  307. sbindir='${exec_prefix}/sbin'
  308. libexecdir='${exec_prefix}/libexec'
  309. datadir='${prefix}/share'
  310. sysconfdir='${prefix}/etc'
  311. sharedstatedir='${prefix}/com'
  312. localstatedir='${prefix}/var'
  313. libdir='${exec_prefix}/lib'
  314. includedir='${prefix}/include'
  315. oldincludedir='/usr/include'
  316. infodir='${prefix}/info'
  317. mandir='${prefix}/man'
  318. ac_prev=
  319. for ac_option
  320. do
  321. # If the previous option needs an argument, assign it.
  322. if test -n "$ac_prev"; then
  323. eval "$ac_prev=\$ac_option"
  324. ac_prev=
  325. continue
  326. fi
  327. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  328. # Accept the important Cygnus configure options, so we can diagnose typos.
  329. case $ac_option in
  330. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  331. ac_prev=bindir ;;
  332. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  333. bindir=$ac_optarg ;;
  334. -build | --build | --buil | --bui | --bu)
  335. ac_prev=build_alias ;;
  336. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  337. build_alias=$ac_optarg ;;
  338. -cache-file | --cache-file | --cache-fil | --cache-fi \
  339. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  340. ac_prev=cache_file ;;
  341. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  342. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  343. cache_file=$ac_optarg ;;
  344. --config-cache | -C)
  345. cache_file=config.cache ;;
  346. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  347. ac_prev=datadir ;;
  348. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  349. | --da=*)
  350. datadir=$ac_optarg ;;
  351. -disable-* | --disable-*)
  352. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  353. # Reject names that are not valid shell variable names.
  354. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  355. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  356. { (exit 1); exit 1; }; }
  357. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  358. eval "enable_$ac_feature=no" ;;
  359. -enable-* | --enable-*)
  360. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  361. # Reject names that are not valid shell variable names.
  362. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  363. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  364. { (exit 1); exit 1; }; }
  365. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  366. case $ac_option in
  367. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  368. *) ac_optarg=yes ;;
  369. esac
  370. eval "enable_$ac_feature='$ac_optarg'" ;;
  371. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  372. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  373. | --exec | --exe | --ex)
  374. ac_prev=exec_prefix ;;
  375. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  376. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  377. | --exec=* | --exe=* | --ex=*)
  378. exec_prefix=$ac_optarg ;;
  379. -gas | --gas | --ga | --g)
  380. # Obsolete; use --with-gas.
  381. with_gas=yes ;;
  382. -help | --help | --hel | --he | -h)
  383. ac_init_help=long ;;
  384. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  385. ac_init_help=recursive ;;
  386. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  387. ac_init_help=short ;;
  388. -host | --host | --hos | --ho)
  389. ac_prev=host_alias ;;
  390. -host=* | --host=* | --hos=* | --ho=*)
  391. host_alias=$ac_optarg ;;
  392. -includedir | --includedir | --includedi | --included | --include \
  393. | --includ | --inclu | --incl | --inc)
  394. ac_prev=includedir ;;
  395. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  396. | --includ=* | --inclu=* | --incl=* | --inc=*)
  397. includedir=$ac_optarg ;;
  398. -infodir | --infodir | --infodi | --infod | --info | --inf)
  399. ac_prev=infodir ;;
  400. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  401. infodir=$ac_optarg ;;
  402. -libdir | --libdir | --libdi | --libd)
  403. ac_prev=libdir ;;
  404. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  405. libdir=$ac_optarg ;;
  406. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  407. | --libexe | --libex | --libe)
  408. ac_prev=libexecdir ;;
  409. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  410. | --libexe=* | --libex=* | --libe=*)
  411. libexecdir=$ac_optarg ;;
  412. -localstatedir | --localstatedir | --localstatedi | --localstated \
  413. | --localstate | --localstat | --localsta | --localst \
  414. | --locals | --local | --loca | --loc | --lo)
  415. ac_prev=localstatedir ;;
  416. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  417. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  418. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  419. localstatedir=$ac_optarg ;;
  420. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  421. ac_prev=mandir ;;
  422. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  423. mandir=$ac_optarg ;;
  424. -nfp | --nfp | --nf)
  425. # Obsolete; use --without-fp.
  426. with_fp=no ;;
  427. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  428. | --no-cr | --no-c | -n)
  429. no_create=yes ;;
  430. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  431. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  432. no_recursion=yes ;;
  433. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  434. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  435. | --oldin | --oldi | --old | --ol | --o)
  436. ac_prev=oldincludedir ;;
  437. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  438. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  439. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  440. oldincludedir=$ac_optarg ;;
  441. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  442. ac_prev=prefix ;;
  443. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  444. prefix=$ac_optarg ;;
  445. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  446. | --program-pre | --program-pr | --program-p)
  447. ac_prev=program_prefix ;;
  448. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  449. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  450. program_prefix=$ac_optarg ;;
  451. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  452. | --program-suf | --program-su | --program-s)
  453. ac_prev=program_suffix ;;
  454. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  455. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  456. program_suffix=$ac_optarg ;;
  457. -program-transform-name | --program-transform-name \
  458. | --program-transform-nam | --program-transform-na \
  459. | --program-transform-n | --program-transform- \
  460. | --program-transform | --program-transfor \
  461. | --program-transfo | --program-transf \
  462. | --program-trans | --program-tran \
  463. | --progr-tra | --program-tr | --program-t)
  464. ac_prev=program_transform_name ;;
  465. -program-transform-name=* | --program-transform-name=* \
  466. | --program-transform-nam=* | --program-transform-na=* \
  467. | --program-transform-n=* | --program-transform-=* \
  468. | --program-transform=* | --program-transfor=* \
  469. | --program-transfo=* | --program-transf=* \
  470. | --program-trans=* | --program-tran=* \
  471. | --progr-tra=* | --program-tr=* | --program-t=*)
  472. program_transform_name=$ac_optarg ;;
  473. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  474. | -silent | --silent | --silen | --sile | --sil)
  475. silent=yes ;;
  476. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  477. ac_prev=sbindir ;;
  478. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  479. | --sbi=* | --sb=*)
  480. sbindir=$ac_optarg ;;
  481. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  482. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  483. | --sharedst | --shareds | --shared | --share | --shar \
  484. | --sha | --sh)
  485. ac_prev=sharedstatedir ;;
  486. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  487. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  488. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  489. | --sha=* | --sh=*)
  490. sharedstatedir=$ac_optarg ;;
  491. -site | --site | --sit)
  492. ac_prev=site ;;
  493. -site=* | --site=* | --sit=*)
  494. site=$ac_optarg ;;
  495. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  496. ac_prev=srcdir ;;
  497. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  498. srcdir=$ac_optarg ;;
  499. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  500. | --syscon | --sysco | --sysc | --sys | --sy)
  501. ac_prev=sysconfdir ;;
  502. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  503. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  504. sysconfdir=$ac_optarg ;;
  505. -target | --target | --targe | --targ | --tar | --ta | --t)
  506. ac_prev=target_alias ;;
  507. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  508. target_alias=$ac_optarg ;;
  509. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  510. verbose=yes ;;
  511. -version | --version | --versio | --versi | --vers | -V)
  512. ac_init_version=: ;;
  513. -with-* | --with-*)
  514. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  515. # Reject names that are not valid shell variable names.
  516. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  517. { echo "$as_me: error: invalid package name: $ac_package" >&2
  518. { (exit 1); exit 1; }; }
  519. ac_package=`echo $ac_package| sed 's/-/_/g'`
  520. case $ac_option in
  521. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  522. *) ac_optarg=yes ;;
  523. esac
  524. eval "with_$ac_package='$ac_optarg'" ;;
  525. -without-* | --without-*)
  526. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  527. # Reject names that are not valid shell variable names.
  528. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  529. { echo "$as_me: error: invalid package name: $ac_package" >&2
  530. { (exit 1); exit 1; }; }
  531. ac_package=`echo $ac_package | sed 's/-/_/g'`
  532. eval "with_$ac_package=no" ;;
  533. --x)
  534. # Obsolete; use --with-x.
  535. with_x=yes ;;
  536. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  537. | --x-incl | --x-inc | --x-in | --x-i)
  538. ac_prev=x_includes ;;
  539. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  540. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  541. x_includes=$ac_optarg ;;
  542. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  543. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  544. ac_prev=x_libraries ;;
  545. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  546. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  547. x_libraries=$ac_optarg ;;
  548. -*) { echo "$as_me: error: unrecognized option: $ac_option
  549. Try \`$0 --help' for more information." >&2
  550. { (exit 1); exit 1; }; }
  551. ;;
  552. *=*)
  553. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  554. # Reject names that are not valid shell variable names.
  555. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  556. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  557. { (exit 1); exit 1; }; }
  558. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  559. eval "$ac_envvar='$ac_optarg'"
  560. export $ac_envvar ;;
  561. *)
  562. # FIXME: should be removed in autoconf 3.0.
  563. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  564. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  565. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  566. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  567. ;;
  568. esac
  569. done
  570. if test -n "$ac_prev"; then
  571. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  572. { echo "$as_me: error: missing argument to $ac_option" >&2
  573. { (exit 1); exit 1; }; }
  574. fi
  575. # Be sure to have absolute paths.
  576. for ac_var in exec_prefix prefix
  577. do
  578. eval ac_val=$`echo $ac_var`
  579. case $ac_val in
  580. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  581. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  582. { (exit 1); exit 1; }; };;
  583. esac
  584. done
  585. # Be sure to have absolute paths.
  586. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  587. localstatedir libdir includedir oldincludedir infodir mandir
  588. do
  589. eval ac_val=$`echo $ac_var`
  590. case $ac_val in
  591. [\\/$]* | ?:[\\/]* ) ;;
  592. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  593. { (exit 1); exit 1; }; };;
  594. esac
  595. done
  596. # There might be people who depend on the old broken behavior: `$host'
  597. # used to hold the argument of --host etc.
  598. # FIXME: To remove some day.
  599. build=$build_alias
  600. host=$host_alias
  601. target=$target_alias
  602. # FIXME: To remove some day.
  603. if test "x$host_alias" != x; then
  604. if test "x$build_alias" = x; then
  605. cross_compiling=maybe
  606. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  607. If a cross compiler is detected then cross compile mode will be used." >&2
  608. elif test "x$build_alias" != "x$host_alias"; then
  609. cross_compiling=yes
  610. fi
  611. fi
  612. ac_tool_prefix=
  613. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  614. test "$silent" = yes && exec 6>/dev/null
  615. # Find the source files, if location was not specified.
  616. if test -z "$srcdir"; then
  617. ac_srcdir_defaulted=yes
  618. # Try the directory containing this script, then its parent.
  619. ac_confdir=`(dirname "$0") 2>/dev/null ||
  620. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  621. X"$0" : 'X\(//\)[^/]' \| \
  622. X"$0" : 'X\(//\)$' \| \
  623. X"$0" : 'X\(/\)' \| \
  624. . : '\(.\)' 2>/dev/null ||
  625. echo X"$0" |
  626. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  627. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  628. /^X\(\/\/\)$/{ s//\1/; q; }
  629. /^X\(\/\).*/{ s//\1/; q; }
  630. s/.*/./; q'`
  631. srcdir=$ac_confdir
  632. if test ! -r $srcdir/$ac_unique_file; then
  633. srcdir=..
  634. fi
  635. else
  636. ac_srcdir_defaulted=no
  637. fi
  638. if test ! -r $srcdir/$ac_unique_file; then
  639. if test "$ac_srcdir_defaulted" = yes; then
  640. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  641. { (exit 1); exit 1; }; }
  642. else
  643. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  644. { (exit 1); exit 1; }; }
  645. fi
  646. fi
  647. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  648. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  649. { (exit 1); exit 1; }; }
  650. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  651. ac_env_build_alias_set=${build_alias+set}
  652. ac_env_build_alias_value=$build_alias
  653. ac_cv_env_build_alias_set=${build_alias+set}
  654. ac_cv_env_build_alias_value=$build_alias
  655. ac_env_host_alias_set=${host_alias+set}
  656. ac_env_host_alias_value=$host_alias
  657. ac_cv_env_host_alias_set=${host_alias+set}
  658. ac_cv_env_host_alias_value=$host_alias
  659. ac_env_target_alias_set=${target_alias+set}
  660. ac_env_target_alias_value=$target_alias
  661. ac_cv_env_target_alias_set=${target_alias+set}
  662. ac_cv_env_target_alias_value=$target_alias
  663. ac_env_CC_set=${CC+set}
  664. ac_env_CC_value=$CC
  665. ac_cv_env_CC_set=${CC+set}
  666. ac_cv_env_CC_value=$CC
  667. ac_env_CFLAGS_set=${CFLAGS+set}
  668. ac_env_CFLAGS_value=$CFLAGS
  669. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  670. ac_cv_env_CFLAGS_value=$CFLAGS
  671. ac_env_LDFLAGS_set=${LDFLAGS+set}
  672. ac_env_LDFLAGS_value=$LDFLAGS
  673. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  674. ac_cv_env_LDFLAGS_value=$LDFLAGS
  675. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  676. ac_env_CPPFLAGS_value=$CPPFLAGS
  677. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  678. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  679. ac_env_CPP_set=${CPP+set}
  680. ac_env_CPP_value=$CPP
  681. ac_cv_env_CPP_set=${CPP+set}
  682. ac_cv_env_CPP_value=$CPP
  683. #
  684. # Report the --help message.
  685. #
  686. if test "$ac_init_help" = "long"; then
  687. # Omit some internal or obsolete options to make the list less imposing.
  688. # This message is too long to be a string in the A/UX 3.1 sh.
  689. cat <<_ACEOF
  690. \`configure' configures this package to adapt to many kinds of systems.
  691. Usage: $0 [OPTION]... [VAR=VALUE]...
  692. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  693. VAR=VALUE. See below for descriptions of some of the useful variables.
  694. Defaults for the options are specified in brackets.
  695. Configuration:
  696. -h, --help display this help and exit
  697. --help=short display options specific to this package
  698. --help=recursive display the short help of all the included packages
  699. -V, --version display version information and exit
  700. -q, --quiet, --silent do not print \`checking...' messages
  701. --cache-file=FILE cache test results in FILE [disabled]
  702. -C, --config-cache alias for \`--cache-file=config.cache'
  703. -n, --no-create do not create output files
  704. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  705. _ACEOF
  706. cat <<_ACEOF
  707. Installation directories:
  708. --prefix=PREFIX install architecture-independent files in PREFIX
  709. [$ac_default_prefix]
  710. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  711. [PREFIX]
  712. By default, \`make install' will install all the files in
  713. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  714. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  715. for instance \`--prefix=\$HOME'.
  716. For better control, use the options below.
  717. Fine tuning of the installation directories:
  718. --bindir=DIR user executables [EPREFIX/bin]
  719. --sbindir=DIR system admin executables [EPREFIX/sbin]
  720. --libexecdir=DIR program executables [EPREFIX/libexec]
  721. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  722. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  723. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  724. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  725. --libdir=DIR object code libraries [EPREFIX/lib]
  726. --includedir=DIR C header files [PREFIX/include]
  727. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  728. --infodir=DIR info documentation [PREFIX/info]
  729. --mandir=DIR man documentation [PREFIX/man]
  730. _ACEOF
  731. cat <<\_ACEOF
  732. _ACEOF
  733. fi
  734. if test -n "$ac_init_help"; then
  735. cat <<\_ACEOF
  736. Optional Features:
  737. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  738. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  739. --disable-ipv6 disable IPv6 support
  740. Optional Packages:
  741. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  742. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  743. --with-cfg=PATH full path to pack.cfg
  744. Some influential environment variables:
  745. CC C compiler command
  746. CFLAGS C compiler flags
  747. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  748. nonstandard directory <lib dir>
  749. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  750. headers in a nonstandard directory <include dir>
  751. CPP C preprocessor
  752. Use these variables to override the choices made by `configure' or to help
  753. it to find libraries and programs with nonstandard names/locations.
  754. _ACEOF
  755. fi
  756. if test "$ac_init_help" = "recursive"; then
  757. # If there are subdirs, report their specific --help.
  758. ac_popdir=`pwd`
  759. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  760. test -d $ac_dir || continue
  761. ac_builddir=.
  762. if test "$ac_dir" != .; then
  763. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  764. # A "../" for each directory in $ac_dir_suffix.
  765. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  766. else
  767. ac_dir_suffix= ac_top_builddir=
  768. fi
  769. case $srcdir in
  770. .) # No --srcdir option. We are building in place.
  771. ac_srcdir=.
  772. if test -z "$ac_top_builddir"; then
  773. ac_top_srcdir=.
  774. else
  775. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  776. fi ;;
  777. [\\/]* | ?:[\\/]* ) # Absolute path.
  778. ac_srcdir=$srcdir$ac_dir_suffix;
  779. ac_top_srcdir=$srcdir ;;
  780. *) # Relative path.
  781. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  782. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  783. esac
  784. # Do not use `cd foo && pwd` to compute absolute paths, because
  785. # the directories may not exist.
  786. case `pwd` in
  787. .) ac_abs_builddir="$ac_dir";;
  788. *)
  789. case "$ac_dir" in
  790. .) ac_abs_builddir=`pwd`;;
  791. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  792. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  793. esac;;
  794. esac
  795. case $ac_abs_builddir in
  796. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  797. *)
  798. case ${ac_top_builddir}. in
  799. .) ac_abs_top_builddir=$ac_abs_builddir;;
  800. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  801. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  802. esac;;
  803. esac
  804. case $ac_abs_builddir in
  805. .) ac_abs_srcdir=$ac_srcdir;;
  806. *)
  807. case $ac_srcdir in
  808. .) ac_abs_srcdir=$ac_abs_builddir;;
  809. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  810. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  811. esac;;
  812. esac
  813. case $ac_abs_builddir in
  814. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  815. *)
  816. case $ac_top_srcdir in
  817. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  818. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  819. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  820. esac;;
  821. esac
  822. cd $ac_dir
  823. # Check for guested configure; otherwise get Cygnus style configure.
  824. if test -f $ac_srcdir/configure.gnu; then
  825. echo
  826. $SHELL $ac_srcdir/configure.gnu --help=recursive
  827. elif test -f $ac_srcdir/configure; then
  828. echo
  829. $SHELL $ac_srcdir/configure --help=recursive
  830. elif test -f $ac_srcdir/configure.ac ||
  831. test -f $ac_srcdir/configure.in; then
  832. echo
  833. $ac_configure --help
  834. else
  835. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  836. fi
  837. cd $ac_popdir
  838. done
  839. fi
  840. test -n "$ac_init_help" && exit 0
  841. if $ac_init_version; then
  842. cat <<\_ACEOF
  843. Copyright (C) 2003 Free Software Foundation, Inc.
  844. This configure script is free software; the Free Software Foundation
  845. gives unlimited permission to copy, distribute and modify it.
  846. Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  847. _ACEOF
  848. exit 0
  849. fi
  850. exec 5>config.log
  851. cat >&5 <<_ACEOF
  852. This file contains any messages produced by compilers while
  853. running configure, to aid debugging if configure makes a mistake.
  854. It was created by $as_me, which was
  855. generated by GNU Autoconf 2.59. Invocation command line was
  856. $ $0 $@
  857. _ACEOF
  858. {
  859. cat <<_ASUNAME
  860. ## --------- ##
  861. ## Platform. ##
  862. ## --------- ##
  863. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  864. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  865. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  866. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  867. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  868. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  869. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  870. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  871. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  872. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  873. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  874. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  875. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  876. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  877. _ASUNAME
  878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  879. for as_dir in $PATH
  880. do
  881. IFS=$as_save_IFS
  882. test -z "$as_dir" && as_dir=.
  883. echo "PATH: $as_dir"
  884. done
  885. } >&5
  886. cat >&5 <<_ACEOF
  887. ## ----------- ##
  888. ## Core tests. ##
  889. ## ----------- ##
  890. _ACEOF
  891. # Keep a trace of the command line.
  892. # Strip out --no-create and --no-recursion so they do not pile up.
  893. # Strip out --silent because we don't want to record it for future runs.
  894. # Also quote any args containing shell meta-characters.
  895. # Make two passes to allow for proper duplicate-argument suppression.
  896. ac_configure_args=
  897. ac_configure_args0=
  898. ac_configure_args1=
  899. ac_sep=
  900. ac_must_keep_next=false
  901. for ac_pass in 1 2
  902. do
  903. for ac_arg
  904. do
  905. case $ac_arg in
  906. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  907. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  908. | -silent | --silent | --silen | --sile | --sil)
  909. continue ;;
  910. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  911. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  912. esac
  913. case $ac_pass in
  914. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  915. 2)
  916. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  917. if test $ac_must_keep_next = true; then
  918. ac_must_keep_next=false # Got value, back to normal.
  919. else
  920. case $ac_arg in
  921. *=* | --config-cache | -C | -disable-* | --disable-* \
  922. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  923. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  924. | -with-* | --with-* | -without-* | --without-* | --x)
  925. case "$ac_configure_args0 " in
  926. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  927. esac
  928. ;;
  929. -* ) ac_must_keep_next=true ;;
  930. esac
  931. fi
  932. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  933. # Get rid of the leading space.
  934. ac_sep=" "
  935. ;;
  936. esac
  937. done
  938. done
  939. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  940. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  941. # When interrupted or exit'd, cleanup temporary files, and complete
  942. # config.log. We remove comments because anyway the quotes in there
  943. # would cause problems or look ugly.
  944. # WARNING: Be sure not to use single quotes in there, as some shells,
  945. # such as our DU 5.0 friend, will then `close' the trap.
  946. trap 'exit_status=$?
  947. # Save into config.log some information that might help in debugging.
  948. {
  949. echo
  950. cat <<\_ASBOX
  951. ## ---------------- ##
  952. ## Cache variables. ##
  953. ## ---------------- ##
  954. _ASBOX
  955. echo
  956. # The following way of writing the cache mishandles newlines in values,
  957. {
  958. (set) 2>&1 |
  959. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  960. *ac_space=\ *)
  961. sed -n \
  962. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  963. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  964. ;;
  965. *)
  966. sed -n \
  967. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  968. ;;
  969. esac;
  970. }
  971. echo
  972. cat <<\_ASBOX
  973. ## ----------------- ##
  974. ## Output variables. ##
  975. ## ----------------- ##
  976. _ASBOX
  977. echo
  978. for ac_var in $ac_subst_vars
  979. do
  980. eval ac_val=$`echo $ac_var`
  981. echo "$ac_var='"'"'$ac_val'"'"'"
  982. done | sort
  983. echo
  984. if test -n "$ac_subst_files"; then
  985. cat <<\_ASBOX
  986. ## ------------- ##
  987. ## Output files. ##
  988. ## ------------- ##
  989. _ASBOX
  990. echo
  991. for ac_var in $ac_subst_files
  992. do
  993. eval ac_val=$`echo $ac_var`
  994. echo "$ac_var='"'"'$ac_val'"'"'"
  995. done | sort
  996. echo
  997. fi
  998. if test -s confdefs.h; then
  999. cat <<\_ASBOX
  1000. ## ----------- ##
  1001. ## confdefs.h. ##
  1002. ## ----------- ##
  1003. _ASBOX
  1004. echo
  1005. sed "/^$/d" confdefs.h | sort
  1006. echo
  1007. fi
  1008. test "$ac_signal" != 0 &&
  1009. echo "$as_me: caught signal $ac_signal"
  1010. echo "$as_me: exit $exit_status"
  1011. } >&5
  1012. rm -f core *.core &&
  1013. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1014. exit $exit_status
  1015. ' 0
  1016. for ac_signal in 1 2 13 15; do
  1017. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1018. done
  1019. ac_signal=0
  1020. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1021. rm -rf conftest* confdefs.h
  1022. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1023. echo >confdefs.h
  1024. # Predefined preprocessor variables.
  1025. cat >>confdefs.h <<_ACEOF
  1026. #define PACKAGE_NAME "$PACKAGE_NAME"
  1027. _ACEOF
  1028. cat >>confdefs.h <<_ACEOF
  1029. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1030. _ACEOF
  1031. cat >>confdefs.h <<_ACEOF
  1032. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1033. _ACEOF
  1034. cat >>confdefs.h <<_ACEOF
  1035. #define PACKAGE_STRING "$PACKAGE_STRING"
  1036. _ACEOF
  1037. cat >>confdefs.h <<_ACEOF
  1038. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1039. _ACEOF
  1040. # Let the site file select an alternate cache file if it wants to.
  1041. # Prefer explicitly selected file to automatically selected ones.
  1042. if test -z "$CONFIG_SITE"; then
  1043. if test "x$prefix" != xNONE; then
  1044. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1045. else
  1046. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1047. fi
  1048. fi
  1049. for ac_site_file in $CONFIG_SITE; do
  1050. if test -r "$ac_site_file"; then
  1051. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1052. echo "$as_me: loading site script $ac_site_file" >&6;}
  1053. sed 's/^/| /' "$ac_site_file" >&5
  1054. . "$ac_site_file"
  1055. fi
  1056. done
  1057. if test -r "$cache_file"; then
  1058. # Some versions of bash will fail to source /dev/null (special
  1059. # files actually), so we avoid doing that.
  1060. if test -f "$cache_file"; then
  1061. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1062. echo "$as_me: loading cache $cache_file" >&6;}
  1063. case $cache_file in
  1064. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1065. *) . ./$cache_file;;
  1066. esac
  1067. fi
  1068. else
  1069. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1070. echo "$as_me: creating cache $cache_file" >&6;}
  1071. >$cache_file
  1072. fi
  1073. # Check that the precious variables saved in the cache have kept the same
  1074. # value.
  1075. ac_cache_corrupted=false
  1076. for ac_var in `(set) 2>&1 |
  1077. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1078. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1079. eval ac_new_set=\$ac_env_${ac_var}_set
  1080. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1081. eval ac_new_val="\$ac_env_${ac_var}_value"
  1082. case $ac_old_set,$ac_new_set in
  1083. set,)
  1084. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1085. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1086. ac_cache_corrupted=: ;;
  1087. ,set)
  1088. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1089. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1090. ac_cache_corrupted=: ;;
  1091. ,);;
  1092. *)
  1093. if test "x$ac_old_val" != "x$ac_new_val"; then
  1094. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1095. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1096. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1097. echo "$as_me: former value: $ac_old_val" >&2;}
  1098. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1099. echo "$as_me: current value: $ac_new_val" >&2;}
  1100. ac_cache_corrupted=:
  1101. fi;;
  1102. esac
  1103. # Pass precious variables to config.status.
  1104. if test "$ac_new_set" = set; then
  1105. case $ac_new_val in
  1106. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1107. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1108. *) ac_arg=$ac_var=$ac_new_val ;;
  1109. esac
  1110. case " $ac_configure_args " in
  1111. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1112. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1113. esac
  1114. fi
  1115. done
  1116. if $ac_cache_corrupted; then
  1117. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1118. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1119. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1120. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1121. { (exit 1); exit 1; }; }
  1122. fi
  1123. ac_ext=c
  1124. ac_cpp='$CPP $CPPFLAGS'
  1125. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1126. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1127. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1128. ac_config_headers="$ac_config_headers config.h"
  1129. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1130. egg_ac_parameters=
  1131. ac_prev=
  1132. for ac_arg in $ac_configure_args; do
  1133. if test -n "$ac_prev"; then
  1134. ac_prev=
  1135. continue
  1136. fi
  1137. case $ac_arg in
  1138. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1139. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1140. ac_prev=cache_file ;;
  1141. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1142. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1143. | --c=*)
  1144. ;;
  1145. --config-cache | -C)
  1146. ;;
  1147. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1148. ac_prev=srcdir ;;
  1149. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1150. ;;
  1151. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1152. esac
  1153. done
  1154. cfg="pack/pack.cfg"
  1155. # Check whether --with-cfg or --without-cfg was given.
  1156. if test "${with_cfg+set}" = set; then
  1157. withval="$with_cfg"
  1158. cfg="$withval"
  1159. fi;
  1160. # Setup build environment
  1161. ac_ext=c
  1162. ac_cpp='$CPP $CPPFLAGS'
  1163. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1164. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1165. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1166. if test -n "$ac_tool_prefix"; then
  1167. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1168. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1169. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1170. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1171. if test "${ac_cv_prog_CC+set}" = set; then
  1172. echo $ECHO_N "(cached) $ECHO_C" >&6
  1173. else
  1174. if test -n "$CC"; then
  1175. ac_cv_prog_CC="$CC" # Let the user override the test.
  1176. else
  1177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1178. for as_dir in $PATH
  1179. do
  1180. IFS=$as_save_IFS
  1181. test -z "$as_dir" && as_dir=.
  1182. for ac_exec_ext in '' $ac_executable_extensions; do
  1183. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1184. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1185. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1186. break 2
  1187. fi
  1188. done
  1189. done
  1190. fi
  1191. fi
  1192. CC=$ac_cv_prog_CC
  1193. if test -n "$CC"; then
  1194. echo "$as_me:$LINENO: result: $CC" >&5
  1195. echo "${ECHO_T}$CC" >&6
  1196. else
  1197. echo "$as_me:$LINENO: result: no" >&5
  1198. echo "${ECHO_T}no" >&6
  1199. fi
  1200. fi
  1201. if test -z "$ac_cv_prog_CC"; then
  1202. ac_ct_CC=$CC
  1203. # Extract the first word of "gcc", so it can be a program name with args.
  1204. set dummy gcc; ac_word=$2
  1205. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1206. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1207. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1208. echo $ECHO_N "(cached) $ECHO_C" >&6
  1209. else
  1210. if test -n "$ac_ct_CC"; then
  1211. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1212. else
  1213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1214. for as_dir in $PATH
  1215. do
  1216. IFS=$as_save_IFS
  1217. test -z "$as_dir" && as_dir=.
  1218. for ac_exec_ext in '' $ac_executable_extensions; do
  1219. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1220. ac_cv_prog_ac_ct_CC="gcc"
  1221. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1222. break 2
  1223. fi
  1224. done
  1225. done
  1226. fi
  1227. fi
  1228. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1229. if test -n "$ac_ct_CC"; then
  1230. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1231. echo "${ECHO_T}$ac_ct_CC" >&6
  1232. else
  1233. echo "$as_me:$LINENO: result: no" >&5
  1234. echo "${ECHO_T}no" >&6
  1235. fi
  1236. CC=$ac_ct_CC
  1237. else
  1238. CC="$ac_cv_prog_CC"
  1239. fi
  1240. if test -z "$CC"; then
  1241. if test -n "$ac_tool_prefix"; then
  1242. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1243. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1244. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1245. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1246. if test "${ac_cv_prog_CC+set}" = set; then
  1247. echo $ECHO_N "(cached) $ECHO_C" >&6
  1248. else
  1249. if test -n "$CC"; then
  1250. ac_cv_prog_CC="$CC" # Let the user override the test.
  1251. else
  1252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1253. for as_dir in $PATH
  1254. do
  1255. IFS=$as_save_IFS
  1256. test -z "$as_dir" && as_dir=.
  1257. for ac_exec_ext in '' $ac_executable_extensions; do
  1258. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1259. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1260. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1261. break 2
  1262. fi
  1263. done
  1264. done
  1265. fi
  1266. fi
  1267. CC=$ac_cv_prog_CC
  1268. if test -n "$CC"; then
  1269. echo "$as_me:$LINENO: result: $CC" >&5
  1270. echo "${ECHO_T}$CC" >&6
  1271. else
  1272. echo "$as_me:$LINENO: result: no" >&5
  1273. echo "${ECHO_T}no" >&6
  1274. fi
  1275. fi
  1276. if test -z "$ac_cv_prog_CC"; then
  1277. ac_ct_CC=$CC
  1278. # Extract the first word of "cc", so it can be a program name with args.
  1279. set dummy cc; ac_word=$2
  1280. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1281. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1282. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1283. echo $ECHO_N "(cached) $ECHO_C" >&6
  1284. else
  1285. if test -n "$ac_ct_CC"; then
  1286. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1287. else
  1288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1289. for as_dir in $PATH
  1290. do
  1291. IFS=$as_save_IFS
  1292. test -z "$as_dir" && as_dir=.
  1293. for ac_exec_ext in '' $ac_executable_extensions; do
  1294. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1295. ac_cv_prog_ac_ct_CC="cc"
  1296. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1297. break 2
  1298. fi
  1299. done
  1300. done
  1301. fi
  1302. fi
  1303. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1304. if test -n "$ac_ct_CC"; then
  1305. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1306. echo "${ECHO_T}$ac_ct_CC" >&6
  1307. else
  1308. echo "$as_me:$LINENO: result: no" >&5
  1309. echo "${ECHO_T}no" >&6
  1310. fi
  1311. CC=$ac_ct_CC
  1312. else
  1313. CC="$ac_cv_prog_CC"
  1314. fi
  1315. fi
  1316. if test -z "$CC"; then
  1317. # Extract the first word of "cc", so it can be a program name with args.
  1318. set dummy cc; ac_word=$2
  1319. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1320. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1321. if test "${ac_cv_prog_CC+set}" = set; then
  1322. echo $ECHO_N "(cached) $ECHO_C" >&6
  1323. else
  1324. if test -n "$CC"; then
  1325. ac_cv_prog_CC="$CC" # Let the user override the test.
  1326. else
  1327. ac_prog_rejected=no
  1328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1329. for as_dir in $PATH
  1330. do
  1331. IFS=$as_save_IFS
  1332. test -z "$as_dir" && as_dir=.
  1333. for ac_exec_ext in '' $ac_executable_extensions; do
  1334. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1335. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1336. ac_prog_rejected=yes
  1337. continue
  1338. fi
  1339. ac_cv_prog_CC="cc"
  1340. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1341. break 2
  1342. fi
  1343. done
  1344. done
  1345. if test $ac_prog_rejected = yes; then
  1346. # We found a bogon in the path, so make sure we never use it.
  1347. set dummy $ac_cv_prog_CC
  1348. shift
  1349. if test $# != 0; then
  1350. # We chose a different compiler from the bogus one.
  1351. # However, it has the same basename, so the bogon will be chosen
  1352. # first if we set CC to just the basename; use the full file name.
  1353. shift
  1354. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1355. fi
  1356. fi
  1357. fi
  1358. fi
  1359. CC=$ac_cv_prog_CC
  1360. if test -n "$CC"; then
  1361. echo "$as_me:$LINENO: result: $CC" >&5
  1362. echo "${ECHO_T}$CC" >&6
  1363. else
  1364. echo "$as_me:$LINENO: result: no" >&5
  1365. echo "${ECHO_T}no" >&6
  1366. fi
  1367. fi
  1368. if test -z "$CC"; then
  1369. if test -n "$ac_tool_prefix"; then
  1370. for ac_prog in cl
  1371. do
  1372. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1373. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1374. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1375. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1376. if test "${ac_cv_prog_CC+set}" = set; then
  1377. echo $ECHO_N "(cached) $ECHO_C" >&6
  1378. else
  1379. if test -n "$CC"; then
  1380. ac_cv_prog_CC="$CC" # Let the user override the test.
  1381. else
  1382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1383. for as_dir in $PATH
  1384. do
  1385. IFS=$as_save_IFS
  1386. test -z "$as_dir" && as_dir=.
  1387. for ac_exec_ext in '' $ac_executable_extensions; do
  1388. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1389. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1390. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1391. break 2
  1392. fi
  1393. done
  1394. done
  1395. fi
  1396. fi
  1397. CC=$ac_cv_prog_CC
  1398. if test -n "$CC"; then
  1399. echo "$as_me:$LINENO: result: $CC" >&5
  1400. echo "${ECHO_T}$CC" >&6
  1401. else
  1402. echo "$as_me:$LINENO: result: no" >&5
  1403. echo "${ECHO_T}no" >&6
  1404. fi
  1405. test -n "$CC" && break
  1406. done
  1407. fi
  1408. if test -z "$CC"; then
  1409. ac_ct_CC=$CC
  1410. for ac_prog in cl
  1411. do
  1412. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1413. set dummy $ac_prog; ac_word=$2
  1414. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1415. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1416. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1417. echo $ECHO_N "(cached) $ECHO_C" >&6
  1418. else
  1419. if test -n "$ac_ct_CC"; then
  1420. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1421. else
  1422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1423. for as_dir in $PATH
  1424. do
  1425. IFS=$as_save_IFS
  1426. test -z "$as_dir" && as_dir=.
  1427. for ac_exec_ext in '' $ac_executable_extensions; do
  1428. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1429. ac_cv_prog_ac_ct_CC="$ac_prog"
  1430. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1431. break 2
  1432. fi
  1433. done
  1434. done
  1435. fi
  1436. fi
  1437. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1438. if test -n "$ac_ct_CC"; then
  1439. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1440. echo "${ECHO_T}$ac_ct_CC" >&6
  1441. else
  1442. echo "$as_me:$LINENO: result: no" >&5
  1443. echo "${ECHO_T}no" >&6
  1444. fi
  1445. test -n "$ac_ct_CC" && break
  1446. done
  1447. CC=$ac_ct_CC
  1448. fi
  1449. fi
  1450. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1451. See \`config.log' for more details." >&5
  1452. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1453. See \`config.log' for more details." >&2;}
  1454. { (exit 1); exit 1; }; }
  1455. # Provide some information about the compiler.
  1456. echo "$as_me:$LINENO:" \
  1457. "checking for C compiler version" >&5
  1458. ac_compiler=`set X $ac_compile; echo $2`
  1459. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1460. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1461. ac_status=$?
  1462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1463. (exit $ac_status); }
  1464. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1465. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1466. ac_status=$?
  1467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1468. (exit $ac_status); }
  1469. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1470. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1471. ac_status=$?
  1472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1473. (exit $ac_status); }
  1474. cat >conftest.$ac_ext <<_ACEOF
  1475. /* confdefs.h. */
  1476. _ACEOF
  1477. cat confdefs.h >>conftest.$ac_ext
  1478. cat >>conftest.$ac_ext <<_ACEOF
  1479. /* end confdefs.h. */
  1480. int
  1481. main ()
  1482. {
  1483. ;
  1484. return 0;
  1485. }
  1486. _ACEOF
  1487. ac_clean_files_save=$ac_clean_files
  1488. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1489. # Try to create an executable without -o first, disregard a.out.
  1490. # It will help us diagnose broken compilers, and finding out an intuition
  1491. # of exeext.
  1492. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1493. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1494. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1495. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1496. (eval $ac_link_default) 2>&5
  1497. ac_status=$?
  1498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1499. (exit $ac_status); }; then
  1500. # Find the output, starting from the most likely. This scheme is
  1501. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1502. # resort.
  1503. # Be careful to initialize this variable, since it used to be cached.
  1504. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1505. ac_cv_exeext=
  1506. # b.out is created by i960 compilers.
  1507. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1508. do
  1509. test -f "$ac_file" || continue
  1510. case $ac_file in
  1511. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1512. ;;
  1513. conftest.$ac_ext )
  1514. # This is the source file.
  1515. ;;
  1516. [ab].out )
  1517. # We found the default executable, but exeext='' is most
  1518. # certainly right.
  1519. break;;
  1520. *.* )
  1521. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1522. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1523. # but it would be cool to find out if it's true. Does anybody
  1524. # maintain Libtool? --akim.
  1525. export ac_cv_exeext
  1526. break;;
  1527. * )
  1528. break;;
  1529. esac
  1530. done
  1531. else
  1532. echo "$as_me: failed program was:" >&5
  1533. sed 's/^/| /' conftest.$ac_ext >&5
  1534. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1535. See \`config.log' for more details." >&5
  1536. echo "$as_me: error: C compiler cannot create executables
  1537. See \`config.log' for more details." >&2;}
  1538. { (exit 77); exit 77; }; }
  1539. fi
  1540. ac_exeext=$ac_cv_exeext
  1541. echo "$as_me:$LINENO: result: $ac_file" >&5
  1542. echo "${ECHO_T}$ac_file" >&6
  1543. # Check the compiler produces executables we can run. If not, either
  1544. # the compiler is broken, or we cross compile.
  1545. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1546. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1547. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1548. # If not cross compiling, check that we can run a simple program.
  1549. if test "$cross_compiling" != yes; then
  1550. if { ac_try='./$ac_file'
  1551. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1552. (eval $ac_try) 2>&5
  1553. ac_status=$?
  1554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1555. (exit $ac_status); }; }; then
  1556. cross_compiling=no
  1557. else
  1558. if test "$cross_compiling" = maybe; then
  1559. cross_compiling=yes
  1560. else
  1561. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1562. If you meant to cross compile, use \`--host'.
  1563. See \`config.log' for more details." >&5
  1564. echo "$as_me: error: cannot run C compiled programs.
  1565. If you meant to cross compile, use \`--host'.
  1566. See \`config.log' for more details." >&2;}
  1567. { (exit 1); exit 1; }; }
  1568. fi
  1569. fi
  1570. fi
  1571. echo "$as_me:$LINENO: result: yes" >&5
  1572. echo "${ECHO_T}yes" >&6
  1573. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1574. ac_clean_files=$ac_clean_files_save
  1575. # Check the compiler produces executables we can run. If not, either
  1576. # the compiler is broken, or we cross compile.
  1577. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1578. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1579. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1580. echo "${ECHO_T}$cross_compiling" >&6
  1581. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1582. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1583. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1584. (eval $ac_link) 2>&5
  1585. ac_status=$?
  1586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1587. (exit $ac_status); }; then
  1588. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1589. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1590. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1591. # `rm'.
  1592. for ac_file in conftest.exe conftest conftest.*; do
  1593. test -f "$ac_file" || continue
  1594. case $ac_file in
  1595. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1596. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1597. export ac_cv_exeext
  1598. break;;
  1599. * ) break;;
  1600. esac
  1601. done
  1602. else
  1603. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1604. See \`config.log' for more details." >&5
  1605. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1606. See \`config.log' for more details." >&2;}
  1607. { (exit 1); exit 1; }; }
  1608. fi
  1609. rm -f conftest$ac_cv_exeext
  1610. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1611. echo "${ECHO_T}$ac_cv_exeext" >&6
  1612. rm -f conftest.$ac_ext
  1613. EXEEXT=$ac_cv_exeext
  1614. ac_exeext=$EXEEXT
  1615. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1616. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1617. if test "${ac_cv_objext+set}" = set; then
  1618. echo $ECHO_N "(cached) $ECHO_C" >&6
  1619. else
  1620. cat >conftest.$ac_ext <<_ACEOF
  1621. /* confdefs.h. */
  1622. _ACEOF
  1623. cat confdefs.h >>conftest.$ac_ext
  1624. cat >>conftest.$ac_ext <<_ACEOF
  1625. /* end confdefs.h. */
  1626. int
  1627. main ()
  1628. {
  1629. ;
  1630. return 0;
  1631. }
  1632. _ACEOF
  1633. rm -f conftest.o conftest.obj
  1634. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1635. (eval $ac_compile) 2>&5
  1636. ac_status=$?
  1637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1638. (exit $ac_status); }; then
  1639. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1640. case $ac_file in
  1641. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1642. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1643. break;;
  1644. esac
  1645. done
  1646. else
  1647. echo "$as_me: failed program was:" >&5
  1648. sed 's/^/| /' conftest.$ac_ext >&5
  1649. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1650. See \`config.log' for more details." >&5
  1651. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1652. See \`config.log' for more details." >&2;}
  1653. { (exit 1); exit 1; }; }
  1654. fi
  1655. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1656. fi
  1657. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1658. echo "${ECHO_T}$ac_cv_objext" >&6
  1659. OBJEXT=$ac_cv_objext
  1660. ac_objext=$OBJEXT
  1661. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1662. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1663. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1664. echo $ECHO_N "(cached) $ECHO_C" >&6
  1665. else
  1666. cat >conftest.$ac_ext <<_ACEOF
  1667. /* confdefs.h. */
  1668. _ACEOF
  1669. cat confdefs.h >>conftest.$ac_ext
  1670. cat >>conftest.$ac_ext <<_ACEOF
  1671. /* end confdefs.h. */
  1672. int
  1673. main ()
  1674. {
  1675. #ifndef __GNUC__
  1676. choke me
  1677. #endif
  1678. ;
  1679. return 0;
  1680. }
  1681. _ACEOF
  1682. rm -f conftest.$ac_objext
  1683. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1684. (eval $ac_compile) 2>conftest.er1
  1685. ac_status=$?
  1686. grep -v '^ *+' conftest.er1 >conftest.err
  1687. rm -f conftest.er1
  1688. cat conftest.err >&5
  1689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1690. (exit $ac_status); } &&
  1691. { ac_try='test -z "$ac_c_werror_flag"
  1692. || test ! -s conftest.err'
  1693. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1694. (eval $ac_try) 2>&5
  1695. ac_status=$?
  1696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1697. (exit $ac_status); }; } &&
  1698. { ac_try='test -s conftest.$ac_objext'
  1699. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1700. (eval $ac_try) 2>&5
  1701. ac_status=$?
  1702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1703. (exit $ac_status); }; }; then
  1704. ac_compiler_gnu=yes
  1705. else
  1706. echo "$as_me: failed program was:" >&5
  1707. sed 's/^/| /' conftest.$ac_ext >&5
  1708. ac_compiler_gnu=no
  1709. fi
  1710. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1711. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1712. fi
  1713. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1714. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1715. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1716. ac_test_CFLAGS=${CFLAGS+set}
  1717. ac_save_CFLAGS=$CFLAGS
  1718. CFLAGS="-g"
  1719. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1720. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1721. if test "${ac_cv_prog_cc_g+set}" = set; then
  1722. echo $ECHO_N "(cached) $ECHO_C" >&6
  1723. else
  1724. cat >conftest.$ac_ext <<_ACEOF
  1725. /* confdefs.h. */
  1726. _ACEOF
  1727. cat confdefs.h >>conftest.$ac_ext
  1728. cat >>conftest.$ac_ext <<_ACEOF
  1729. /* end confdefs.h. */
  1730. int
  1731. main ()
  1732. {
  1733. ;
  1734. return 0;
  1735. }
  1736. _ACEOF
  1737. rm -f conftest.$ac_objext
  1738. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1739. (eval $ac_compile) 2>conftest.er1
  1740. ac_status=$?
  1741. grep -v '^ *+' conftest.er1 >conftest.err
  1742. rm -f conftest.er1
  1743. cat conftest.err >&5
  1744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1745. (exit $ac_status); } &&
  1746. { ac_try='test -z "$ac_c_werror_flag"
  1747. || test ! -s conftest.err'
  1748. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1749. (eval $ac_try) 2>&5
  1750. ac_status=$?
  1751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1752. (exit $ac_status); }; } &&
  1753. { ac_try='test -s conftest.$ac_objext'
  1754. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1755. (eval $ac_try) 2>&5
  1756. ac_status=$?
  1757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1758. (exit $ac_status); }; }; then
  1759. ac_cv_prog_cc_g=yes
  1760. else
  1761. echo "$as_me: failed program was:" >&5
  1762. sed 's/^/| /' conftest.$ac_ext >&5
  1763. ac_cv_prog_cc_g=no
  1764. fi
  1765. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1766. fi
  1767. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1768. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1769. if test "$ac_test_CFLAGS" = set; then
  1770. CFLAGS=$ac_save_CFLAGS
  1771. elif test $ac_cv_prog_cc_g = yes; then
  1772. if test "$GCC" = yes; then
  1773. CFLAGS="-g -O2"
  1774. else
  1775. CFLAGS="-g"
  1776. fi
  1777. else
  1778. if test "$GCC" = yes; then
  1779. CFLAGS="-O2"
  1780. else
  1781. CFLAGS=
  1782. fi
  1783. fi
  1784. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1785. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1786. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1787. echo $ECHO_N "(cached) $ECHO_C" >&6
  1788. else
  1789. ac_cv_prog_cc_stdc=no
  1790. ac_save_CC=$CC
  1791. cat >conftest.$ac_ext <<_ACEOF
  1792. /* confdefs.h. */
  1793. _ACEOF
  1794. cat confdefs.h >>conftest.$ac_ext
  1795. cat >>conftest.$ac_ext <<_ACEOF
  1796. /* end confdefs.h. */
  1797. #include <stdarg.h>
  1798. #include <stdio.h>
  1799. #include <sys/types.h>
  1800. #include <sys/stat.h>
  1801. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1802. struct buf { int x; };
  1803. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1804. static char *e (p, i)
  1805. char **p;
  1806. int i;
  1807. {
  1808. return p[i];
  1809. }
  1810. static char *f (char * (*g) (char **, int), char **p, ...)
  1811. {
  1812. char *s;
  1813. va_list v;
  1814. va_start (v,p);
  1815. s = g (p, va_arg (v,int));
  1816. va_end (v);
  1817. return s;
  1818. }
  1819. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1820. function prototypes and stuff, but not '\xHH' hex character constants.
  1821. These don't provoke an error unfortunately, instead are silently treated
  1822. as 'x'. The following induces an error, until -std1 is added to get
  1823. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  1824. array size at least. It's necessary to write '\x00'==0 to get something
  1825. that's true only with -std1. */
  1826. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1827. int test (int i, double x);
  1828. struct s1 {int (*f) (int a);};
  1829. struct s2 {int (*f) (double a);};
  1830. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1831. int argc;
  1832. char **argv;
  1833. int
  1834. main ()
  1835. {
  1836. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1837. ;
  1838. return 0;
  1839. }
  1840. _ACEOF
  1841. # Don't try gcc -ansi; that turns off useful extensions and
  1842. # breaks some systems' header files.
  1843. # AIX -qlanglvl=ansi
  1844. # Ultrix and OSF/1 -std1
  1845. # HP-UX 10.20 and later -Ae
  1846. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1847. # SVR4 -Xc -D__EXTENSIONS__
  1848. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1849. do
  1850. CC="$ac_save_CC $ac_arg"
  1851. rm -f conftest.$ac_objext
  1852. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1853. (eval $ac_compile) 2>conftest.er1
  1854. ac_status=$?
  1855. grep -v '^ *+' conftest.er1 >conftest.err
  1856. rm -f conftest.er1
  1857. cat conftest.err >&5
  1858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1859. (exit $ac_status); } &&
  1860. { ac_try='test -z "$ac_c_werror_flag"
  1861. || test ! -s conftest.err'
  1862. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1863. (eval $ac_try) 2>&5
  1864. ac_status=$?
  1865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1866. (exit $ac_status); }; } &&
  1867. { ac_try='test -s conftest.$ac_objext'
  1868. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1869. (eval $ac_try) 2>&5
  1870. ac_status=$?
  1871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1872. (exit $ac_status); }; }; then
  1873. ac_cv_prog_cc_stdc=$ac_arg
  1874. break
  1875. else
  1876. echo "$as_me: failed program was:" >&5
  1877. sed 's/^/| /' conftest.$ac_ext >&5
  1878. fi
  1879. rm -f conftest.err conftest.$ac_objext
  1880. done
  1881. rm -f conftest.$ac_ext conftest.$ac_objext
  1882. CC=$ac_save_CC
  1883. fi
  1884. case "x$ac_cv_prog_cc_stdc" in
  1885. x|xno)
  1886. echo "$as_me:$LINENO: result: none needed" >&5
  1887. echo "${ECHO_T}none needed" >&6 ;;
  1888. *)
  1889. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1890. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1891. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1892. esac
  1893. # Some people use a C++ compiler to compile C. Since we use `exit',
  1894. # in C++ we need to declare it. In case someone uses the same compiler
  1895. # for both compiling C and C++ we need to have the C++ compiler decide
  1896. # the declaration of exit, since it's the most demanding environment.
  1897. cat >conftest.$ac_ext <<_ACEOF
  1898. #ifndef __cplusplus
  1899. choke me
  1900. #endif
  1901. _ACEOF
  1902. rm -f conftest.$ac_objext
  1903. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1904. (eval $ac_compile) 2>conftest.er1
  1905. ac_status=$?
  1906. grep -v '^ *+' conftest.er1 >conftest.err
  1907. rm -f conftest.er1
  1908. cat conftest.err >&5
  1909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1910. (exit $ac_status); } &&
  1911. { ac_try='test -z "$ac_c_werror_flag"
  1912. || test ! -s conftest.err'
  1913. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1914. (eval $ac_try) 2>&5
  1915. ac_status=$?
  1916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1917. (exit $ac_status); }; } &&
  1918. { ac_try='test -s conftest.$ac_objext'
  1919. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1920. (eval $ac_try) 2>&5
  1921. ac_status=$?
  1922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1923. (exit $ac_status); }; }; then
  1924. for ac_declaration in \
  1925. '' \
  1926. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1927. 'extern "C" void std::exit (int); using std::exit;' \
  1928. 'extern "C" void exit (int) throw ();' \
  1929. 'extern "C" void exit (int);' \
  1930. 'void exit (int);'
  1931. do
  1932. cat >conftest.$ac_ext <<_ACEOF
  1933. /* confdefs.h. */
  1934. _ACEOF
  1935. cat confdefs.h >>conftest.$ac_ext
  1936. cat >>conftest.$ac_ext <<_ACEOF
  1937. /* end confdefs.h. */
  1938. $ac_declaration
  1939. #include <stdlib.h>
  1940. int
  1941. main ()
  1942. {
  1943. exit (42);
  1944. ;
  1945. return 0;
  1946. }
  1947. _ACEOF
  1948. rm -f conftest.$ac_objext
  1949. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1950. (eval $ac_compile) 2>conftest.er1
  1951. ac_status=$?
  1952. grep -v '^ *+' conftest.er1 >conftest.err
  1953. rm -f conftest.er1
  1954. cat conftest.err >&5
  1955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1956. (exit $ac_status); } &&
  1957. { ac_try='test -z "$ac_c_werror_flag"
  1958. || test ! -s conftest.err'
  1959. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1960. (eval $ac_try) 2>&5
  1961. ac_status=$?
  1962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1963. (exit $ac_status); }; } &&
  1964. { ac_try='test -s conftest.$ac_objext'
  1965. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1966. (eval $ac_try) 2>&5
  1967. ac_status=$?
  1968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1969. (exit $ac_status); }; }; then
  1970. :
  1971. else
  1972. echo "$as_me: failed program was:" >&5
  1973. sed 's/^/| /' conftest.$ac_ext >&5
  1974. continue
  1975. fi
  1976. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1977. cat >conftest.$ac_ext <<_ACEOF
  1978. /* confdefs.h. */
  1979. _ACEOF
  1980. cat confdefs.h >>conftest.$ac_ext
  1981. cat >>conftest.$ac_ext <<_ACEOF
  1982. /* end confdefs.h. */
  1983. $ac_declaration
  1984. int
  1985. main ()
  1986. {
  1987. exit (42);
  1988. ;
  1989. return 0;
  1990. }
  1991. _ACEOF
  1992. rm -f conftest.$ac_objext
  1993. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1994. (eval $ac_compile) 2>conftest.er1
  1995. ac_status=$?
  1996. grep -v '^ *+' conftest.er1 >conftest.err
  1997. rm -f conftest.er1
  1998. cat conftest.err >&5
  1999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2000. (exit $ac_status); } &&
  2001. { ac_try='test -z "$ac_c_werror_flag"
  2002. || test ! -s conftest.err'
  2003. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2004. (eval $ac_try) 2>&5
  2005. ac_status=$?
  2006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2007. (exit $ac_status); }; } &&
  2008. { ac_try='test -s conftest.$ac_objext'
  2009. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2010. (eval $ac_try) 2>&5
  2011. ac_status=$?
  2012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2013. (exit $ac_status); }; }; then
  2014. break
  2015. else
  2016. echo "$as_me: failed program was:" >&5
  2017. sed 's/^/| /' conftest.$ac_ext >&5
  2018. fi
  2019. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2020. done
  2021. rm -f conftest*
  2022. if test -n "$ac_declaration"; then
  2023. echo '#ifdef __cplusplus' >>confdefs.h
  2024. echo $ac_declaration >>confdefs.h
  2025. echo '#endif' >>confdefs.h
  2026. fi
  2027. else
  2028. echo "$as_me: failed program was:" >&5
  2029. sed 's/^/| /' conftest.$ac_ext >&5
  2030. fi
  2031. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2032. ac_ext=c
  2033. ac_cpp='$CPP $CPPFLAGS'
  2034. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2035. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2036. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2037. if test "${cross_compiling-x}" = "x"
  2038. then
  2039. cat << 'EOF' >&2
  2040. configure: error:
  2041. This system does not appear to have a working C compiler.
  2042. A working C compiler is required to compile Eggdrop.
  2043. EOF
  2044. exit 1
  2045. fi
  2046. # Crazy machines
  2047. ac_ext=c
  2048. ac_cpp='$CPP $CPPFLAGS'
  2049. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2050. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2051. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2052. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2053. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2054. # On Suns, sometimes $CPP names a directory.
  2055. if test -n "$CPP" && test -d "$CPP"; then
  2056. CPP=
  2057. fi
  2058. if test -z "$CPP"; then
  2059. if test "${ac_cv_prog_CPP+set}" = set; then
  2060. echo $ECHO_N "(cached) $ECHO_C" >&6
  2061. else
  2062. # Double quotes because CPP needs to be expanded
  2063. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2064. do
  2065. ac_preproc_ok=false
  2066. for ac_c_preproc_warn_flag in '' yes
  2067. do
  2068. # Use a header file that comes with gcc, so configuring glibc
  2069. # with a fresh cross-compiler works.
  2070. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2071. # <limits.h> exists even on freestanding compilers.
  2072. # On the NeXT, cc -E runs the code through the compiler's parser,
  2073. # not just through cpp. "Syntax error" is here to catch this case.
  2074. cat >conftest.$ac_ext <<_ACEOF
  2075. /* confdefs.h. */
  2076. _ACEOF
  2077. cat confdefs.h >>conftest.$ac_ext
  2078. cat >>conftest.$ac_ext <<_ACEOF
  2079. /* end confdefs.h. */
  2080. #ifdef __STDC__
  2081. # include <limits.h>
  2082. #else
  2083. # include <assert.h>
  2084. #endif
  2085. Syntax error
  2086. _ACEOF
  2087. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2088. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2089. ac_status=$?
  2090. grep -v '^ *+' conftest.er1 >conftest.err
  2091. rm -f conftest.er1
  2092. cat conftest.err >&5
  2093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2094. (exit $ac_status); } >/dev/null; then
  2095. if test -s conftest.err; then
  2096. ac_cpp_err=$ac_c_preproc_warn_flag
  2097. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2098. else
  2099. ac_cpp_err=
  2100. fi
  2101. else
  2102. ac_cpp_err=yes
  2103. fi
  2104. if test -z "$ac_cpp_err"; then
  2105. :
  2106. else
  2107. echo "$as_me: failed program was:" >&5
  2108. sed 's/^/| /' conftest.$ac_ext >&5
  2109. # Broken: fails on valid input.
  2110. continue
  2111. fi
  2112. rm -f conftest.err conftest.$ac_ext
  2113. # OK, works on sane cases. Now check whether non-existent headers
  2114. # can be detected and how.
  2115. cat >conftest.$ac_ext <<_ACEOF
  2116. /* confdefs.h. */
  2117. _ACEOF
  2118. cat confdefs.h >>conftest.$ac_ext
  2119. cat >>conftest.$ac_ext <<_ACEOF
  2120. /* end confdefs.h. */
  2121. #include <ac_nonexistent.h>
  2122. _ACEOF
  2123. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2124. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2125. ac_status=$?
  2126. grep -v '^ *+' conftest.er1 >conftest.err
  2127. rm -f conftest.er1
  2128. cat conftest.err >&5
  2129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2130. (exit $ac_status); } >/dev/null; then
  2131. if test -s conftest.err; then
  2132. ac_cpp_err=$ac_c_preproc_warn_flag
  2133. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2134. else
  2135. ac_cpp_err=
  2136. fi
  2137. else
  2138. ac_cpp_err=yes
  2139. fi
  2140. if test -z "$ac_cpp_err"; then
  2141. # Broken: success on invalid input.
  2142. continue
  2143. else
  2144. echo "$as_me: failed program was:" >&5
  2145. sed 's/^/| /' conftest.$ac_ext >&5
  2146. # Passes both tests.
  2147. ac_preproc_ok=:
  2148. break
  2149. fi
  2150. rm -f conftest.err conftest.$ac_ext
  2151. done
  2152. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2153. rm -f conftest.err conftest.$ac_ext
  2154. if $ac_preproc_ok; then
  2155. break
  2156. fi
  2157. done
  2158. ac_cv_prog_CPP=$CPP
  2159. fi
  2160. CPP=$ac_cv_prog_CPP
  2161. else
  2162. ac_cv_prog_CPP=$CPP
  2163. fi
  2164. echo "$as_me:$LINENO: result: $CPP" >&5
  2165. echo "${ECHO_T}$CPP" >&6
  2166. ac_preproc_ok=false
  2167. for ac_c_preproc_warn_flag in '' yes
  2168. do
  2169. # Use a header file that comes with gcc, so configuring glibc
  2170. # with a fresh cross-compiler works.
  2171. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2172. # <limits.h> exists even on freestanding compilers.
  2173. # On the NeXT, cc -E runs the code through the compiler's parser,
  2174. # not just through cpp. "Syntax error" is here to catch this case.
  2175. cat >conftest.$ac_ext <<_ACEOF
  2176. /* confdefs.h. */
  2177. _ACEOF
  2178. cat confdefs.h >>conftest.$ac_ext
  2179. cat >>conftest.$ac_ext <<_ACEOF
  2180. /* end confdefs.h. */
  2181. #ifdef __STDC__
  2182. # include <limits.h>
  2183. #else
  2184. # include <assert.h>
  2185. #endif
  2186. Syntax error
  2187. _ACEOF
  2188. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2189. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2190. ac_status=$?
  2191. grep -v '^ *+' conftest.er1 >conftest.err
  2192. rm -f conftest.er1
  2193. cat conftest.err >&5
  2194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2195. (exit $ac_status); } >/dev/null; then
  2196. if test -s conftest.err; then
  2197. ac_cpp_err=$ac_c_preproc_warn_flag
  2198. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2199. else
  2200. ac_cpp_err=
  2201. fi
  2202. else
  2203. ac_cpp_err=yes
  2204. fi
  2205. if test -z "$ac_cpp_err"; then
  2206. :
  2207. else
  2208. echo "$as_me: failed program was:" >&5
  2209. sed 's/^/| /' conftest.$ac_ext >&5
  2210. # Broken: fails on valid input.
  2211. continue
  2212. fi
  2213. rm -f conftest.err conftest.$ac_ext
  2214. # OK, works on sane cases. Now check whether non-existent headers
  2215. # can be detected and how.
  2216. cat >conftest.$ac_ext <<_ACEOF
  2217. /* confdefs.h. */
  2218. _ACEOF
  2219. cat confdefs.h >>conftest.$ac_ext
  2220. cat >>conftest.$ac_ext <<_ACEOF
  2221. /* end confdefs.h. */
  2222. #include <ac_nonexistent.h>
  2223. _ACEOF
  2224. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2225. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2226. ac_status=$?
  2227. grep -v '^ *+' conftest.er1 >conftest.err
  2228. rm -f conftest.er1
  2229. cat conftest.err >&5
  2230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2231. (exit $ac_status); } >/dev/null; then
  2232. if test -s conftest.err; then
  2233. ac_cpp_err=$ac_c_preproc_warn_flag
  2234. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2235. else
  2236. ac_cpp_err=
  2237. fi
  2238. else
  2239. ac_cpp_err=yes
  2240. fi
  2241. if test -z "$ac_cpp_err"; then
  2242. # Broken: success on invalid input.
  2243. continue
  2244. else
  2245. echo "$as_me: failed program was:" >&5
  2246. sed 's/^/| /' conftest.$ac_ext >&5
  2247. # Passes both tests.
  2248. ac_preproc_ok=:
  2249. break
  2250. fi
  2251. rm -f conftest.err conftest.$ac_ext
  2252. done
  2253. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2254. rm -f conftest.err conftest.$ac_ext
  2255. if $ac_preproc_ok; then
  2256. :
  2257. else
  2258. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2259. See \`config.log' for more details." >&5
  2260. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2261. See \`config.log' for more details." >&2;}
  2262. { (exit 1); exit 1; }; }
  2263. fi
  2264. ac_ext=c
  2265. ac_cpp='$CPP $CPPFLAGS'
  2266. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2267. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2268. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2269. echo "$as_me:$LINENO: checking for egrep" >&5
  2270. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2271. if test "${ac_cv_prog_egrep+set}" = set; then
  2272. echo $ECHO_N "(cached) $ECHO_C" >&6
  2273. else
  2274. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2275. then ac_cv_prog_egrep='grep -E'
  2276. else ac_cv_prog_egrep='egrep'
  2277. fi
  2278. fi
  2279. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2280. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2281. EGREP=$ac_cv_prog_egrep
  2282. echo "$as_me:$LINENO: checking for AIX" >&5
  2283. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  2284. cat >conftest.$ac_ext <<_ACEOF
  2285. /* confdefs.h. */
  2286. _ACEOF
  2287. cat confdefs.h >>conftest.$ac_ext
  2288. cat >>conftest.$ac_ext <<_ACEOF
  2289. /* end confdefs.h. */
  2290. #ifdef _AIX
  2291. yes
  2292. #endif
  2293. _ACEOF
  2294. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2295. $EGREP "yes" >/dev/null 2>&1; then
  2296. echo "$as_me:$LINENO: result: yes" >&5
  2297. echo "${ECHO_T}yes" >&6
  2298. cat >>confdefs.h <<\_ACEOF
  2299. #define _ALL_SOURCE 1
  2300. _ACEOF
  2301. else
  2302. echo "$as_me:$LINENO: result: no" >&5
  2303. echo "${ECHO_T}no" >&6
  2304. fi
  2305. rm -f conftest*
  2306. echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  2307. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
  2308. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  2309. echo $ECHO_N "(cached) $ECHO_C" >&6
  2310. else
  2311. ac_check_lib_save_LIBS=$LIBS
  2312. LIBS="-lcposix $LIBS"
  2313. cat >conftest.$ac_ext <<_ACEOF
  2314. /* confdefs.h. */
  2315. _ACEOF
  2316. cat confdefs.h >>conftest.$ac_ext
  2317. cat >>conftest.$ac_ext <<_ACEOF
  2318. /* end confdefs.h. */
  2319. /* Override any gcc2 internal prototype to avoid an error. */
  2320. #ifdef __cplusplus
  2321. extern "C"
  2322. #endif
  2323. /* We use char because int might match the return type of a gcc2
  2324. builtin and then its argument prototype would still apply. */
  2325. char strerror ();
  2326. int
  2327. main ()
  2328. {
  2329. strerror ();
  2330. ;
  2331. return 0;
  2332. }
  2333. _ACEOF
  2334. rm -f conftest.$ac_objext conftest$ac_exeext
  2335. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2336. (eval $ac_link) 2>conftest.er1
  2337. ac_status=$?
  2338. grep -v '^ *+' conftest.er1 >conftest.err
  2339. rm -f conftest.er1
  2340. cat conftest.err >&5
  2341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2342. (exit $ac_status); } &&
  2343. { ac_try='test -z "$ac_c_werror_flag"
  2344. || test ! -s conftest.err'
  2345. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2346. (eval $ac_try) 2>&5
  2347. ac_status=$?
  2348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2349. (exit $ac_status); }; } &&
  2350. { ac_try='test -s conftest$ac_exeext'
  2351. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2352. (eval $ac_try) 2>&5
  2353. ac_status=$?
  2354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2355. (exit $ac_status); }; }; then
  2356. ac_cv_lib_cposix_strerror=yes
  2357. else
  2358. echo "$as_me: failed program was:" >&5
  2359. sed 's/^/| /' conftest.$ac_ext >&5
  2360. ac_cv_lib_cposix_strerror=no
  2361. fi
  2362. rm -f conftest.err conftest.$ac_objext \
  2363. conftest$ac_exeext conftest.$ac_ext
  2364. LIBS=$ac_check_lib_save_LIBS
  2365. fi
  2366. echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  2367. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
  2368. if test $ac_cv_lib_cposix_strerror = yes; then
  2369. LIBS="$LIBS -lcposix"
  2370. fi
  2371. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2372. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2373. if test "${ac_cv_header_stdc+set}" = set; then
  2374. echo $ECHO_N "(cached) $ECHO_C" >&6
  2375. else
  2376. cat >conftest.$ac_ext <<_ACEOF
  2377. /* confdefs.h. */
  2378. _ACEOF
  2379. cat confdefs.h >>conftest.$ac_ext
  2380. cat >>conftest.$ac_ext <<_ACEOF
  2381. /* end confdefs.h. */
  2382. #include <stdlib.h>
  2383. #include <stdarg.h>
  2384. #include <string.h>
  2385. #include <float.h>
  2386. int
  2387. main ()
  2388. {
  2389. ;
  2390. return 0;
  2391. }
  2392. _ACEOF
  2393. rm -f conftest.$ac_objext
  2394. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2395. (eval $ac_compile) 2>conftest.er1
  2396. ac_status=$?
  2397. grep -v '^ *+' conftest.er1 >conftest.err
  2398. rm -f conftest.er1
  2399. cat conftest.err >&5
  2400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2401. (exit $ac_status); } &&
  2402. { ac_try='test -z "$ac_c_werror_flag"
  2403. || test ! -s conftest.err'
  2404. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2405. (eval $ac_try) 2>&5
  2406. ac_status=$?
  2407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2408. (exit $ac_status); }; } &&
  2409. { ac_try='test -s conftest.$ac_objext'
  2410. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2411. (eval $ac_try) 2>&5
  2412. ac_status=$?
  2413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2414. (exit $ac_status); }; }; then
  2415. ac_cv_header_stdc=yes
  2416. else
  2417. echo "$as_me: failed program was:" >&5
  2418. sed 's/^/| /' conftest.$ac_ext >&5
  2419. ac_cv_header_stdc=no
  2420. fi
  2421. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2422. if test $ac_cv_header_stdc = yes; then
  2423. # SunOS 4.x string.h does not declare mem*, 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 <string.h>
  2431. _ACEOF
  2432. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2433. $EGREP "memchr" >/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. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2442. cat >conftest.$ac_ext <<_ACEOF
  2443. /* confdefs.h. */
  2444. _ACEOF
  2445. cat confdefs.h >>conftest.$ac_ext
  2446. cat >>conftest.$ac_ext <<_ACEOF
  2447. /* end confdefs.h. */
  2448. #include <stdlib.h>
  2449. _ACEOF
  2450. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2451. $EGREP "free" >/dev/null 2>&1; then
  2452. :
  2453. else
  2454. ac_cv_header_stdc=no
  2455. fi
  2456. rm -f conftest*
  2457. fi
  2458. if test $ac_cv_header_stdc = yes; then
  2459. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2460. if test "$cross_compiling" = yes; then
  2461. :
  2462. else
  2463. cat >conftest.$ac_ext <<_ACEOF
  2464. /* confdefs.h. */
  2465. _ACEOF
  2466. cat confdefs.h >>conftest.$ac_ext
  2467. cat >>conftest.$ac_ext <<_ACEOF
  2468. /* end confdefs.h. */
  2469. #include <ctype.h>
  2470. #if ((' ' & 0x0FF) == 0x020)
  2471. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2472. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2473. #else
  2474. # define ISLOWER(c) \
  2475. (('a' <= (c) && (c) <= 'i') \
  2476. || ('j' <= (c) && (c) <= 'r') \
  2477. || ('s' <= (c) && (c) <= 'z'))
  2478. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2479. #endif
  2480. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2481. int
  2482. main ()
  2483. {
  2484. int i;
  2485. for (i = 0; i < 256; i++)
  2486. if (XOR (islower (i), ISLOWER (i))
  2487. || toupper (i) != TOUPPER (i))
  2488. exit(2);
  2489. exit (0);
  2490. }
  2491. _ACEOF
  2492. rm -f conftest$ac_exeext
  2493. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2494. (eval $ac_link) 2>&5
  2495. ac_status=$?
  2496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2497. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2498. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2499. (eval $ac_try) 2>&5
  2500. ac_status=$?
  2501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2502. (exit $ac_status); }; }; then
  2503. :
  2504. else
  2505. echo "$as_me: program exited with status $ac_status" >&5
  2506. echo "$as_me: failed program was:" >&5
  2507. sed 's/^/| /' conftest.$ac_ext >&5
  2508. ( exit $ac_status )
  2509. ac_cv_header_stdc=no
  2510. fi
  2511. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2512. fi
  2513. fi
  2514. fi
  2515. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2516. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2517. if test $ac_cv_header_stdc = yes; then
  2518. cat >>confdefs.h <<\_ACEOF
  2519. #define STDC_HEADERS 1
  2520. _ACEOF
  2521. fi
  2522. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2523. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2524. inttypes.h stdint.h unistd.h
  2525. do
  2526. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2527. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2528. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2529. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2530. echo $ECHO_N "(cached) $ECHO_C" >&6
  2531. else
  2532. cat >conftest.$ac_ext <<_ACEOF
  2533. /* confdefs.h. */
  2534. _ACEOF
  2535. cat confdefs.h >>conftest.$ac_ext
  2536. cat >>conftest.$ac_ext <<_ACEOF
  2537. /* end confdefs.h. */
  2538. $ac_includes_default
  2539. #include <$ac_header>
  2540. _ACEOF
  2541. rm -f conftest.$ac_objext
  2542. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2543. (eval $ac_compile) 2>conftest.er1
  2544. ac_status=$?
  2545. grep -v '^ *+' conftest.er1 >conftest.err
  2546. rm -f conftest.er1
  2547. cat conftest.err >&5
  2548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2549. (exit $ac_status); } &&
  2550. { ac_try='test -z "$ac_c_werror_flag"
  2551. || test ! -s conftest.err'
  2552. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2553. (eval $ac_try) 2>&5
  2554. ac_status=$?
  2555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2556. (exit $ac_status); }; } &&
  2557. { ac_try='test -s conftest.$ac_objext'
  2558. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2559. (eval $ac_try) 2>&5
  2560. ac_status=$?
  2561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2562. (exit $ac_status); }; }; then
  2563. eval "$as_ac_Header=yes"
  2564. else
  2565. echo "$as_me: failed program was:" >&5
  2566. sed 's/^/| /' conftest.$ac_ext >&5
  2567. eval "$as_ac_Header=no"
  2568. fi
  2569. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2570. fi
  2571. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2572. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2573. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2574. cat >>confdefs.h <<_ACEOF
  2575. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2576. _ACEOF
  2577. fi
  2578. done
  2579. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2580. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2581. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2582. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2583. echo $ECHO_N "(cached) $ECHO_C" >&6
  2584. fi
  2585. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2586. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2587. else
  2588. # Is the header compilable?
  2589. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2590. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2591. cat >conftest.$ac_ext <<_ACEOF
  2592. /* confdefs.h. */
  2593. _ACEOF
  2594. cat confdefs.h >>conftest.$ac_ext
  2595. cat >>conftest.$ac_ext <<_ACEOF
  2596. /* end confdefs.h. */
  2597. $ac_includes_default
  2598. #include <minix/config.h>
  2599. _ACEOF
  2600. rm -f conftest.$ac_objext
  2601. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2602. (eval $ac_compile) 2>conftest.er1
  2603. ac_status=$?
  2604. grep -v '^ *+' conftest.er1 >conftest.err
  2605. rm -f conftest.er1
  2606. cat conftest.err >&5
  2607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2608. (exit $ac_status); } &&
  2609. { ac_try='test -z "$ac_c_werror_flag"
  2610. || test ! -s conftest.err'
  2611. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2612. (eval $ac_try) 2>&5
  2613. ac_status=$?
  2614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2615. (exit $ac_status); }; } &&
  2616. { ac_try='test -s conftest.$ac_objext'
  2617. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2618. (eval $ac_try) 2>&5
  2619. ac_status=$?
  2620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2621. (exit $ac_status); }; }; then
  2622. ac_header_compiler=yes
  2623. else
  2624. echo "$as_me: failed program was:" >&5
  2625. sed 's/^/| /' conftest.$ac_ext >&5
  2626. ac_header_compiler=no
  2627. fi
  2628. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2629. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2630. echo "${ECHO_T}$ac_header_compiler" >&6
  2631. # Is the header present?
  2632. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2633. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2634. cat >conftest.$ac_ext <<_ACEOF
  2635. /* confdefs.h. */
  2636. _ACEOF
  2637. cat confdefs.h >>conftest.$ac_ext
  2638. cat >>conftest.$ac_ext <<_ACEOF
  2639. /* end confdefs.h. */
  2640. #include <minix/config.h>
  2641. _ACEOF
  2642. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2643. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2644. ac_status=$?
  2645. grep -v '^ *+' conftest.er1 >conftest.err
  2646. rm -f conftest.er1
  2647. cat conftest.err >&5
  2648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2649. (exit $ac_status); } >/dev/null; then
  2650. if test -s conftest.err; then
  2651. ac_cpp_err=$ac_c_preproc_warn_flag
  2652. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2653. else
  2654. ac_cpp_err=
  2655. fi
  2656. else
  2657. ac_cpp_err=yes
  2658. fi
  2659. if test -z "$ac_cpp_err"; then
  2660. ac_header_preproc=yes
  2661. else
  2662. echo "$as_me: failed program was:" >&5
  2663. sed 's/^/| /' conftest.$ac_ext >&5
  2664. ac_header_preproc=no
  2665. fi
  2666. rm -f conftest.err conftest.$ac_ext
  2667. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2668. echo "${ECHO_T}$ac_header_preproc" >&6
  2669. # So? What about this header?
  2670. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  2671. yes:no: )
  2672. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2673. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2674. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2675. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2676. ac_header_preproc=yes
  2677. ;;
  2678. no:yes:* )
  2679. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2680. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2681. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2682. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2683. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2684. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2685. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2686. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2687. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2688. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2689. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2690. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2691. (
  2692. cat <<\_ASBOX
  2693. ## ------------------------------------------ ##
  2694. ## Report this to the AC_PACKAGE_NAME lists. ##
  2695. ## ------------------------------------------ ##
  2696. _ASBOX
  2697. ) |
  2698. sed "s/^/$as_me: WARNING: /" >&2
  2699. ;;
  2700. esac
  2701. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2702. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2703. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2704. echo $ECHO_N "(cached) $ECHO_C" >&6
  2705. else
  2706. ac_cv_header_minix_config_h=$ac_header_preproc
  2707. fi
  2708. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2709. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2710. fi
  2711. if test $ac_cv_header_minix_config_h = yes; then
  2712. MINIX=yes
  2713. else
  2714. MINIX=
  2715. fi
  2716. if test "$MINIX" = yes; then
  2717. cat >>confdefs.h <<\_ACEOF
  2718. #define _POSIX_SOURCE 1
  2719. _ACEOF
  2720. cat >>confdefs.h <<\_ACEOF
  2721. #define _POSIX_1_SOURCE 2
  2722. _ACEOF
  2723. cat >>confdefs.h <<\_ACEOF
  2724. #define _MINIX 1
  2725. _ACEOF
  2726. fi
  2727. #checkpoint
  2728. cat >confcache <<\_ACEOF
  2729. # This file is a shell script that caches the results of configure
  2730. # tests run on this system so they can be shared between configure
  2731. # scripts and configure runs, see configure's option --config-cache.
  2732. # It is not useful on other systems. If it contains results you don't
  2733. # want to keep, you may remove or edit it.
  2734. #
  2735. # config.status only pays attention to the cache file if you give it
  2736. # the --recheck option to rerun configure.
  2737. #
  2738. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2739. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2740. # following values.
  2741. _ACEOF
  2742. # The following way of writing the cache mishandles newlines in values,
  2743. # but we know of no workaround that is simple, portable, and efficient.
  2744. # So, don't put newlines in cache variables' values.
  2745. # Ultrix sh set writes to stderr and can't be redirected directly,
  2746. # and sets the high bit in the cache file unless we assign to the vars.
  2747. {
  2748. (set) 2>&1 |
  2749. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2750. *ac_space=\ *)
  2751. # `set' does not quote correctly, so add quotes (double-quote
  2752. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2753. sed -n \
  2754. "s/'/'\\\\''/g;
  2755. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2756. ;;
  2757. *)
  2758. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2759. sed -n \
  2760. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2761. ;;
  2762. esac;
  2763. } |
  2764. sed '
  2765. t clear
  2766. : clear
  2767. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2768. t end
  2769. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2770. : end' >>confcache
  2771. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2772. if test -w $cache_file; then
  2773. test "x$cache_file" != "x/dev/null"
  2774. cat confcache >$cache_file
  2775. else
  2776. echo "not updating unwritable cache $cache_file"
  2777. fi
  2778. fi
  2779. rm -f confcache
  2780. # Speedup compile
  2781. if test -z "$no_pipe"
  2782. then
  2783. if test -n "$GCC"
  2784. then
  2785. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2786. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2787. if test "${egg_cv_var_ccpipe+set}" = set; then
  2788. echo $ECHO_N "(cached) $ECHO_C" >&6
  2789. else
  2790. ac_old_CC="$CC"
  2791. CC="$CC -pipe"
  2792. cat >conftest.$ac_ext <<_ACEOF
  2793. /* confdefs.h. */
  2794. _ACEOF
  2795. cat confdefs.h >>conftest.$ac_ext
  2796. cat >>conftest.$ac_ext <<_ACEOF
  2797. /* end confdefs.h. */
  2798. int
  2799. main ()
  2800. {
  2801. ;
  2802. return 0;
  2803. }
  2804. _ACEOF
  2805. rm -f conftest.$ac_objext
  2806. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2807. (eval $ac_compile) 2>conftest.er1
  2808. ac_status=$?
  2809. grep -v '^ *+' conftest.er1 >conftest.err
  2810. rm -f conftest.er1
  2811. cat conftest.err >&5
  2812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2813. (exit $ac_status); } &&
  2814. { ac_try='test -z "$ac_c_werror_flag"
  2815. || test ! -s conftest.err'
  2816. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2817. (eval $ac_try) 2>&5
  2818. ac_status=$?
  2819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2820. (exit $ac_status); }; } &&
  2821. { ac_try='test -s conftest.$ac_objext'
  2822. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2823. (eval $ac_try) 2>&5
  2824. ac_status=$?
  2825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2826. (exit $ac_status); }; }; then
  2827. egg_cv_var_ccpipe="yes"
  2828. else
  2829. echo "$as_me: failed program was:" >&5
  2830. sed 's/^/| /' conftest.$ac_ext >&5
  2831. egg_cv_var_ccpipe="no"
  2832. fi
  2833. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2834. CC="$ac_old_CC"
  2835. fi
  2836. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2837. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2838. if test "$egg_cv_var_ccpipe" = "yes"
  2839. then
  2840. CC="$CC -pipe"
  2841. fi
  2842. fi
  2843. fi
  2844. CCDEPMODE=gcc
  2845. num=`$CC -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  2846. if test $num = "3"; then
  2847. CCDEPMODE=gcc3
  2848. GCC3="-Wpacked -Wno-unused-parameter -Wmissing-format-attribute"
  2849. fi
  2850. # Create static binaries
  2851. if test -z "$no_static"
  2852. then
  2853. if test -n "$GCC"
  2854. then
  2855. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  2856. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  2857. if test "${egg_cv_var_ccstatic+set}" = set; then
  2858. echo $ECHO_N "(cached) $ECHO_C" >&6
  2859. else
  2860. ac_old_CC="$CC"
  2861. CC="$CC -static"
  2862. cat >conftest.$ac_ext <<_ACEOF
  2863. /* confdefs.h. */
  2864. _ACEOF
  2865. cat confdefs.h >>conftest.$ac_ext
  2866. cat >>conftest.$ac_ext <<_ACEOF
  2867. /* end confdefs.h. */
  2868. int
  2869. main ()
  2870. {
  2871. ;
  2872. return 0;
  2873. }
  2874. _ACEOF
  2875. rm -f conftest.$ac_objext
  2876. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2877. (eval $ac_compile) 2>conftest.er1
  2878. ac_status=$?
  2879. grep -v '^ *+' conftest.er1 >conftest.err
  2880. rm -f conftest.er1
  2881. cat conftest.err >&5
  2882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2883. (exit $ac_status); } &&
  2884. { ac_try='test -z "$ac_c_werror_flag"
  2885. || test ! -s conftest.err'
  2886. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2887. (eval $ac_try) 2>&5
  2888. ac_status=$?
  2889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2890. (exit $ac_status); }; } &&
  2891. { ac_try='test -s conftest.$ac_objext'
  2892. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2893. (eval $ac_try) 2>&5
  2894. ac_status=$?
  2895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2896. (exit $ac_status); }; }; then
  2897. egg_cv_var_ccstatic="yes"
  2898. else
  2899. echo "$as_me: failed program was:" >&5
  2900. sed 's/^/| /' conftest.$ac_ext >&5
  2901. egg_cv_var_ccstatic="no"
  2902. fi
  2903. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2904. CC="$ac_old_CC"
  2905. fi
  2906. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  2907. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  2908. if test "$egg_cv_var_ccstatic" = "yes"
  2909. then
  2910. CCDEBUG="$CC"
  2911. CC="$CC -static"
  2912. else
  2913. cat << 'EOF' >&2
  2914. configure: error:
  2915. Your C compiler does not support -static.
  2916. This compile flag is required for the botpack.
  2917. EOF
  2918. exit 1
  2919. fi
  2920. fi
  2921. fi
  2922. # Checks for programs
  2923. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2924. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2925. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2926. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2927. echo $ECHO_N "(cached) $ECHO_C" >&6
  2928. else
  2929. cat >conftest.make <<\_ACEOF
  2930. all:
  2931. @echo 'ac_maketemp="$(MAKE)"'
  2932. _ACEOF
  2933. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2934. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2935. if test -n "$ac_maketemp"; then
  2936. eval ac_cv_prog_make_${ac_make}_set=yes
  2937. else
  2938. eval ac_cv_prog_make_${ac_make}_set=no
  2939. fi
  2940. rm -f conftest.make
  2941. fi
  2942. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2943. echo "$as_me:$LINENO: result: yes" >&5
  2944. echo "${ECHO_T}yes" >&6
  2945. SET_MAKE=
  2946. else
  2947. echo "$as_me:$LINENO: result: no" >&5
  2948. echo "${ECHO_T}no" >&6
  2949. SET_MAKE="MAKE=${MAKE-make}"
  2950. fi
  2951. cat << 'EOF' > conftest.head
  2952. a
  2953. b
  2954. c
  2955. EOF
  2956. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  2957. do
  2958. echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  2959. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6
  2960. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  2961. echo $ECHO_N "(cached) $ECHO_C" >&6
  2962. else
  2963. if test -n "$HEAD_1"
  2964. then
  2965. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  2966. else
  2967. if test "`cat conftest.head | $ac_prog`" = "a";
  2968. then
  2969. echo "$as_me:$LINENO: result: yes" >&5
  2970. echo "${ECHO_T}yes" >&6
  2971. ac_cv_prog_HEAD_1=$ac_prog
  2972. else
  2973. echo "$as_me:$LINENO: result: no" >&5
  2974. echo "${ECHO_T}no" >&6
  2975. fi
  2976. fi
  2977. fi
  2978. test -n "$ac_cv_prog_HEAD_1" && break
  2979. done
  2980. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  2981. then
  2982. cat << 'EOF' >&2
  2983. configure: error:
  2984. This system seems to lack a working 'head -1' or 'head -n 1' command.
  2985. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  2986. EOF
  2987. exit 1
  2988. fi
  2989. rm -f conftest.head
  2990. HEAD_1=$ac_cv_prog_HEAD_1
  2991. # awk is needed for Tcl library and header checks, and eggdrop version subst
  2992. for ac_prog in gawk mawk nawk awk
  2993. do
  2994. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2995. set dummy $ac_prog; ac_word=$2
  2996. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2997. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2998. if test "${ac_cv_prog_AWK+set}" = set; then
  2999. echo $ECHO_N "(cached) $ECHO_C" >&6
  3000. else
  3001. if test -n "$AWK"; then
  3002. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3003. else
  3004. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3005. for as_dir in $PATH
  3006. do
  3007. IFS=$as_save_IFS
  3008. test -z "$as_dir" && as_dir=.
  3009. for ac_exec_ext in '' $ac_executable_extensions; do
  3010. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3011. ac_cv_prog_AWK="$ac_prog"
  3012. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3013. break 2
  3014. fi
  3015. done
  3016. done
  3017. fi
  3018. fi
  3019. AWK=$ac_cv_prog_AWK
  3020. if test -n "$AWK"; then
  3021. echo "$as_me:$LINENO: result: $AWK" >&5
  3022. echo "${ECHO_T}$AWK" >&6
  3023. else
  3024. echo "$as_me:$LINENO: result: no" >&5
  3025. echo "${ECHO_T}no" >&6
  3026. fi
  3027. test -n "$AWK" && break
  3028. done
  3029. if test "${AWK-x}" = "x"
  3030. then
  3031. cat << 'EOF' >&2
  3032. configure: error:
  3033. This system seems to lack a working 'awk' command.
  3034. A working 'awk' command is required to compile Eggdrop.
  3035. EOF
  3036. exit 1
  3037. fi
  3038. # basename is needed for Tcl library and header checks
  3039. # Extract the first word of "basename", so it can be a program name with args.
  3040. set dummy basename; ac_word=$2
  3041. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3042. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3043. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3044. echo $ECHO_N "(cached) $ECHO_C" >&6
  3045. else
  3046. if test -n "$BASENAME"; then
  3047. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3048. else
  3049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3050. for as_dir in $PATH
  3051. do
  3052. IFS=$as_save_IFS
  3053. test -z "$as_dir" && as_dir=.
  3054. for ac_exec_ext in '' $ac_executable_extensions; do
  3055. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3056. ac_cv_prog_BASENAME="basename"
  3057. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3058. break 2
  3059. fi
  3060. done
  3061. done
  3062. fi
  3063. fi
  3064. BASENAME=$ac_cv_prog_BASENAME
  3065. if test -n "$BASENAME"; then
  3066. echo "$as_me:$LINENO: result: $BASENAME" >&5
  3067. echo "${ECHO_T}$BASENAME" >&6
  3068. else
  3069. echo "$as_me:$LINENO: result: no" >&5
  3070. echo "${ECHO_T}no" >&6
  3071. fi
  3072. if test "${BASENAME-x}" = "x"
  3073. then
  3074. cat << 'EOF' >&2
  3075. configure: error:
  3076. This system seems to lack a working 'basename' command.
  3077. A working 'basename' command is required to compile Eggdrop.
  3078. EOF
  3079. exit 1
  3080. fi
  3081. # Extract the first word of "objcopy", so it can be a program name with args.
  3082. set dummy objcopy; ac_word=$2
  3083. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3084. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3085. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  3086. echo $ECHO_N "(cached) $ECHO_C" >&6
  3087. else
  3088. if test -n "$OBJCOPY"; then
  3089. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3090. else
  3091. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3092. for as_dir in $PATH
  3093. do
  3094. IFS=$as_save_IFS
  3095. test -z "$as_dir" && as_dir=.
  3096. for ac_exec_ext in '' $ac_executable_extensions; do
  3097. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3098. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3099. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3100. break 2
  3101. fi
  3102. done
  3103. done
  3104. fi
  3105. fi
  3106. OBJCOPY=$ac_cv_prog_OBJCOPY
  3107. if test -n "$OBJCOPY"; then
  3108. echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  3109. echo "${ECHO_T}$OBJCOPY" >&6
  3110. else
  3111. echo "$as_me:$LINENO: result: no" >&5
  3112. echo "${ECHO_T}no" >&6
  3113. fi
  3114. # Extract the first word of "strip", so it can be a program name with args.
  3115. set dummy strip; ac_word=$2
  3116. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3117. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3118. if test "${ac_cv_prog_STRIP+set}" = set; then
  3119. echo $ECHO_N "(cached) $ECHO_C" >&6
  3120. else
  3121. if test -n "$STRIP"; then
  3122. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3123. else
  3124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3125. for as_dir in $PATH
  3126. do
  3127. IFS=$as_save_IFS
  3128. test -z "$as_dir" && as_dir=.
  3129. for ac_exec_ext in '' $ac_executable_extensions; do
  3130. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3131. ac_cv_prog_STRIP="strip"
  3132. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3133. break 2
  3134. fi
  3135. done
  3136. done
  3137. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3138. fi
  3139. fi
  3140. STRIP=$ac_cv_prog_STRIP
  3141. if test -n "$STRIP"; then
  3142. echo "$as_me:$LINENO: result: $STRIP" >&5
  3143. echo "${ECHO_T}$STRIP" >&6
  3144. else
  3145. echo "$as_me:$LINENO: result: no" >&5
  3146. echo "${ECHO_T}no" >&6
  3147. fi
  3148. # Extract the first word of "uname", so it can be a program name with args.
  3149. set dummy uname; ac_word=$2
  3150. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3151. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3152. if test "${ac_cv_prog_UNAME+set}" = set; then
  3153. echo $ECHO_N "(cached) $ECHO_C" >&6
  3154. else
  3155. if test -n "$UNAME"; then
  3156. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3157. else
  3158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3159. for as_dir in $PATH
  3160. do
  3161. IFS=$as_save_IFS
  3162. test -z "$as_dir" && as_dir=.
  3163. for ac_exec_ext in '' $ac_executable_extensions; do
  3164. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3165. ac_cv_prog_UNAME="uname"
  3166. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3167. break 2
  3168. fi
  3169. done
  3170. done
  3171. fi
  3172. fi
  3173. UNAME=$ac_cv_prog_UNAME
  3174. if test -n "$UNAME"; then
  3175. echo "$as_me:$LINENO: result: $UNAME" >&5
  3176. echo "${ECHO_T}$UNAME" >&6
  3177. else
  3178. echo "$as_me:$LINENO: result: no" >&5
  3179. echo "${ECHO_T}no" >&6
  3180. fi
  3181. #AC_CHECK_PROG(CCACHE, ccache, ccache)
  3182. # Extract the first word of "distcc", so it can be a program name with args.
  3183. set dummy distcc; ac_word=$2
  3184. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3185. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3186. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3187. echo $ECHO_N "(cached) $ECHO_C" >&6
  3188. else
  3189. if test -n "$DISTCC"; then
  3190. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3191. else
  3192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3193. for as_dir in $PATH
  3194. do
  3195. IFS=$as_save_IFS
  3196. test -z "$as_dir" && as_dir=.
  3197. for ac_exec_ext in '' $ac_executable_extensions; do
  3198. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3199. ac_cv_prog_DISTCC="distcc"
  3200. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3201. break 2
  3202. fi
  3203. done
  3204. done
  3205. fi
  3206. fi
  3207. DISTCC=$ac_cv_prog_DISTCC
  3208. if test -n "$DISTCC"; then
  3209. echo "$as_me:$LINENO: result: $DISTCC" >&5
  3210. echo "${ECHO_T}$DISTCC" >&6
  3211. else
  3212. echo "$as_me:$LINENO: result: no" >&5
  3213. echo "${ECHO_T}no" >&6
  3214. fi
  3215. # Test the os and set the module linking settings
  3216. LINUX=no
  3217. IRIX=no
  3218. SUNOS=no
  3219. EGG_CYGWIN=no
  3220. echo "$as_me:$LINENO: checking system type" >&5
  3221. echo $ECHO_N "checking system type... $ECHO_C" >&6
  3222. if test "${egg_cv_var_system_type+set}" = set; then
  3223. echo $ECHO_N "(cached) $ECHO_C" >&6
  3224. else
  3225. egg_cv_var_system_type=`$UNAME -s`
  3226. fi
  3227. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3228. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3229. echo "$as_me:$LINENO: checking system release" >&5
  3230. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3231. if test "${egg_cv_var_system_release+set}" = set; then
  3232. echo $ECHO_N "(cached) $ECHO_C" >&6
  3233. else
  3234. egg_cv_var_system_release=`$UNAME -r`
  3235. fi
  3236. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3237. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3238. case "$egg_cv_var_system_type" in
  3239. BSD/OS)
  3240. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3241. 2)
  3242. ;;
  3243. *)
  3244. CFLAGS="$CFLAGS -Wall"
  3245. ;;
  3246. esac
  3247. ;;
  3248. CYGWI*)
  3249. case "`echo $egg_cv_var_system_release | cut -c 1-3`" in
  3250. 1.*)
  3251. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3252. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3253. WIN32FLAGS=
  3254. cat >conftest.$ac_ext <<_ACEOF
  3255. /* confdefs.h. */
  3256. _ACEOF
  3257. cat confdefs.h >>conftest.$ac_ext
  3258. cat >>conftest.$ac_ext <<_ACEOF
  3259. /* end confdefs.h. */
  3260. int
  3261. main ()
  3262. {
  3263. #ifndef WIN32
  3264. # ifndef _WIN32
  3265. # error WIN32 or _WIN32 not defined
  3266. # endif
  3267. #endif
  3268. ;
  3269. return 0;
  3270. }
  3271. _ACEOF
  3272. rm -f conftest.$ac_objext
  3273. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3274. (eval $ac_compile) 2>conftest.er1
  3275. ac_status=$?
  3276. grep -v '^ *+' conftest.er1 >conftest.err
  3277. rm -f conftest.er1
  3278. cat conftest.err >&5
  3279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3280. (exit $ac_status); } &&
  3281. { ac_try='test -z "$ac_c_werror_flag"
  3282. || test ! -s conftest.err'
  3283. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3284. (eval $ac_try) 2>&5
  3285. ac_status=$?
  3286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3287. (exit $ac_status); }; } &&
  3288. { ac_try='test -s conftest.$ac_objext'
  3289. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3290. (eval $ac_try) 2>&5
  3291. ac_status=$?
  3292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3293. (exit $ac_status); }; }; then
  3294. echo "$as_me:$LINENO: result: present by default" >&5
  3295. echo "${ECHO_T}present by default" >&6
  3296. else
  3297. echo "$as_me: failed program was:" >&5
  3298. sed 's/^/| /' conftest.$ac_ext >&5
  3299. ac_compile_save="$ac_compile"
  3300. save_CC="$CC"
  3301. ac_compile="$ac_compile -mwin32"
  3302. CC="$CC -mwin32"
  3303. cat >conftest.$ac_ext <<_ACEOF
  3304. /* confdefs.h. */
  3305. _ACEOF
  3306. cat confdefs.h >>conftest.$ac_ext
  3307. cat >>conftest.$ac_ext <<_ACEOF
  3308. /* end confdefs.h. */
  3309. int
  3310. main ()
  3311. {
  3312. #ifndef WIN32
  3313. # ifndef _WIN32
  3314. # error WIN32 or _WIN32 not defined
  3315. # endif
  3316. #endif
  3317. ;
  3318. return 0;
  3319. }
  3320. _ACEOF
  3321. rm -f conftest.$ac_objext
  3322. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3323. (eval $ac_compile) 2>conftest.er1
  3324. ac_status=$?
  3325. grep -v '^ *+' conftest.er1 >conftest.err
  3326. rm -f conftest.er1
  3327. cat conftest.err >&5
  3328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3329. (exit $ac_status); } &&
  3330. { ac_try='test -z "$ac_c_werror_flag"
  3331. || test ! -s conftest.err'
  3332. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3333. (eval $ac_try) 2>&5
  3334. ac_status=$?
  3335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3336. (exit $ac_status); }; } &&
  3337. { ac_try='test -s conftest.$ac_objext'
  3338. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3339. (eval $ac_try) 2>&5
  3340. ac_status=$?
  3341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3342. (exit $ac_status); }; }; then
  3343. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3344. echo "${ECHO_T}found via -mwin32" >&6
  3345. ac_compile="$ac_compile_save"
  3346. CC="$save_CC"
  3347. WIN32FLAGS="-mwin32"
  3348. else
  3349. echo "$as_me: failed program was:" >&5
  3350. sed 's/^/| /' conftest.$ac_ext >&5
  3351. ac_compile="$ac_compile_save"
  3352. CC="$save_CC"
  3353. echo "$as_me:$LINENO: result: not found" >&5
  3354. echo "${ECHO_T}not found" >&6
  3355. fi
  3356. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3357. fi
  3358. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3359. CC="$CC $WIN32FLAGS"
  3360. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3361. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3362. if test -r /usr/lib/binmode.o
  3363. then
  3364. echo "$as_me:$LINENO: result: yes" >&5
  3365. echo "${ECHO_T}yes" >&6
  3366. LIBS="$LIBS /usr/lib/binmode.o"
  3367. else
  3368. echo "$as_me:$LINENO: result: no" >&5
  3369. echo "${ECHO_T}no" >&6
  3370. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3371. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3372. fi
  3373. ;;
  3374. *)
  3375. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3376. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3377. ;;
  3378. esac
  3379. EGG_CYGWIN=yes
  3380. cat >>confdefs.h <<\_ACEOF
  3381. #define CYGWIN_HACKS 1
  3382. _ACEOF
  3383. cat >>confdefs.h <<\_ACEOF
  3384. #define WIN32_LEAN_AND_MEAN 1
  3385. _ACEOF
  3386. ;;
  3387. IRIX)
  3388. IRIX=yes
  3389. ;;
  3390. Ultrix)
  3391. SHELL=/bin/sh5
  3392. ;;
  3393. SINIX*)
  3394. ;;
  3395. BeOS)
  3396. ;;
  3397. Linux)
  3398. LINUX=yes
  3399. CFLAGS="$CFLAGS -Wall"
  3400. ;;
  3401. Lynx)
  3402. ;;
  3403. QNX)
  3404. ;;
  3405. OSF1)
  3406. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3407. V*)
  3408. if test "$AWK" = "gawk"
  3409. then
  3410. AWK=awk
  3411. fi
  3412. ;;
  3413. 1.0|1.1|1.2)
  3414. cat >>confdefs.h <<\_ACEOF
  3415. #define OSF1_HACKS 1
  3416. _ACEOF
  3417. ;;
  3418. 1.*)
  3419. cat >>confdefs.h <<\_ACEOF
  3420. #define OSF1_HACKS 1
  3421. _ACEOF
  3422. ;;
  3423. *)
  3424. ;;
  3425. esac
  3426. cat >>confdefs.h <<\_ACEOF
  3427. #define STOP_UAC 1
  3428. _ACEOF
  3429. cat >>confdefs.h <<\_ACEOF
  3430. #define BROKEN_SNPRINTF 1
  3431. _ACEOF
  3432. ;;
  3433. SunOS)
  3434. if ! test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"
  3435. then
  3436. # SunOS 4
  3437. SUNOS=yes
  3438. fi
  3439. ;;
  3440. *BSD)
  3441. # FreeBSD/OpenBSD/NetBSD
  3442. ;;
  3443. *)
  3444. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3445. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3446. if test -r /mach
  3447. then
  3448. echo "$as_me:$LINENO: result: yes" >&5
  3449. echo "${ECHO_T}yes" >&6
  3450. cat >>confdefs.h <<\_ACEOF
  3451. #define BORGCUBES 1
  3452. _ACEOF
  3453. else
  3454. echo "$as_me:$LINENO: result: no" >&5
  3455. echo "${ECHO_T}no" >&6
  3456. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3457. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3458. if test -r /cmds
  3459. then
  3460. echo "$as_me:$LINENO: result: yes" >&5
  3461. echo "${ECHO_T}yes" >&6
  3462. else
  3463. echo "$as_me:$LINENO: result: no" >&5
  3464. echo "${ECHO_T}no" >&6
  3465. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3466. echo "${ECHO_T}Something unknown!" >&6
  3467. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3468. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3469. fi
  3470. fi
  3471. ;;
  3472. esac
  3473. dns_reslib_avail="true"
  3474. echo "$as_me:$LINENO: checking for res_init" >&5
  3475. echo $ECHO_N "checking for res_init... $ECHO_C" >&6
  3476. if test "${ac_cv_func_res_init+set}" = set; then
  3477. echo $ECHO_N "(cached) $ECHO_C" >&6
  3478. else
  3479. cat >conftest.$ac_ext <<_ACEOF
  3480. /* confdefs.h. */
  3481. _ACEOF
  3482. cat confdefs.h >>conftest.$ac_ext
  3483. cat >>conftest.$ac_ext <<_ACEOF
  3484. /* end confdefs.h. */
  3485. /* Define res_init to an innocuous variant, in case <limits.h> declares res_init.
  3486. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3487. #define res_init innocuous_res_init
  3488. /* System header to define __stub macros and hopefully few prototypes,
  3489. which can conflict with char res_init (); below.
  3490. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3491. <limits.h> exists even on freestanding compilers. */
  3492. #ifdef __STDC__
  3493. # include <limits.h>
  3494. #else
  3495. # include <assert.h>
  3496. #endif
  3497. #undef res_init
  3498. /* Override any gcc2 internal prototype to avoid an error. */
  3499. #ifdef __cplusplus
  3500. extern "C"
  3501. {
  3502. #endif
  3503. /* We use char because int might match the return type of a gcc2
  3504. builtin and then its argument prototype would still apply. */
  3505. char res_init ();
  3506. /* The GNU C library defines this for functions which it implements
  3507. to always fail with ENOSYS. Some functions are actually named
  3508. something starting with __ and the normal name is an alias. */
  3509. #if defined (__stub_res_init) || defined (__stub___res_init)
  3510. choke me
  3511. #else
  3512. char (*f) () = res_init;
  3513. #endif
  3514. #ifdef __cplusplus
  3515. }
  3516. #endif
  3517. int
  3518. main ()
  3519. {
  3520. return f != res_init;
  3521. ;
  3522. return 0;
  3523. }
  3524. _ACEOF
  3525. rm -f conftest.$ac_objext conftest$ac_exeext
  3526. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3527. (eval $ac_link) 2>conftest.er1
  3528. ac_status=$?
  3529. grep -v '^ *+' conftest.er1 >conftest.err
  3530. rm -f conftest.er1
  3531. cat conftest.err >&5
  3532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3533. (exit $ac_status); } &&
  3534. { ac_try='test -z "$ac_c_werror_flag"
  3535. || test ! -s conftest.err'
  3536. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3537. (eval $ac_try) 2>&5
  3538. ac_status=$?
  3539. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3540. (exit $ac_status); }; } &&
  3541. { ac_try='test -s conftest$ac_exeext'
  3542. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3543. (eval $ac_try) 2>&5
  3544. ac_status=$?
  3545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3546. (exit $ac_status); }; }; then
  3547. ac_cv_func_res_init=yes
  3548. else
  3549. echo "$as_me: failed program was:" >&5
  3550. sed 's/^/| /' conftest.$ac_ext >&5
  3551. ac_cv_func_res_init=no
  3552. fi
  3553. rm -f conftest.err conftest.$ac_objext \
  3554. conftest$ac_exeext conftest.$ac_ext
  3555. fi
  3556. echo "$as_me:$LINENO: result: $ac_cv_func_res_init" >&5
  3557. echo "${ECHO_T}$ac_cv_func_res_init" >&6
  3558. if test $ac_cv_func_res_init = yes; then
  3559. :
  3560. else
  3561. echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
  3562. echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
  3563. if test "${ac_cv_lib_resolv_res_init+set}" = set; then
  3564. echo $ECHO_N "(cached) $ECHO_C" >&6
  3565. else
  3566. ac_check_lib_save_LIBS=$LIBS
  3567. LIBS="-lresolv $LIBS"
  3568. cat >conftest.$ac_ext <<_ACEOF
  3569. /* confdefs.h. */
  3570. _ACEOF
  3571. cat confdefs.h >>conftest.$ac_ext
  3572. cat >>conftest.$ac_ext <<_ACEOF
  3573. /* end confdefs.h. */
  3574. /* Override any gcc2 internal prototype to avoid an error. */
  3575. #ifdef __cplusplus
  3576. extern "C"
  3577. #endif
  3578. /* We use char because int might match the return type of a gcc2
  3579. builtin and then its argument prototype would still apply. */
  3580. char res_init ();
  3581. int
  3582. main ()
  3583. {
  3584. res_init ();
  3585. ;
  3586. return 0;
  3587. }
  3588. _ACEOF
  3589. rm -f conftest.$ac_objext conftest$ac_exeext
  3590. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3591. (eval $ac_link) 2>conftest.er1
  3592. ac_status=$?
  3593. grep -v '^ *+' conftest.er1 >conftest.err
  3594. rm -f conftest.er1
  3595. cat conftest.err >&5
  3596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3597. (exit $ac_status); } &&
  3598. { ac_try='test -z "$ac_c_werror_flag"
  3599. || test ! -s conftest.err'
  3600. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3601. (eval $ac_try) 2>&5
  3602. ac_status=$?
  3603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3604. (exit $ac_status); }; } &&
  3605. { ac_try='test -s conftest$ac_exeext'
  3606. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3607. (eval $ac_try) 2>&5
  3608. ac_status=$?
  3609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3610. (exit $ac_status); }; }; then
  3611. ac_cv_lib_resolv_res_init=yes
  3612. else
  3613. echo "$as_me: failed program was:" >&5
  3614. sed 's/^/| /' conftest.$ac_ext >&5
  3615. ac_cv_lib_resolv_res_init=no
  3616. fi
  3617. rm -f conftest.err conftest.$ac_objext \
  3618. conftest$ac_exeext conftest.$ac_ext
  3619. LIBS=$ac_check_lib_save_LIBS
  3620. fi
  3621. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
  3622. echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
  3623. if test $ac_cv_lib_resolv_res_init = yes; then
  3624. RESLIB="-lresolv"
  3625. else
  3626. echo "$as_me:$LINENO: checking for res_init in -lbind" >&5
  3627. echo $ECHO_N "checking for res_init in -lbind... $ECHO_C" >&6
  3628. if test "${ac_cv_lib_bind_res_init+set}" = set; then
  3629. echo $ECHO_N "(cached) $ECHO_C" >&6
  3630. else
  3631. ac_check_lib_save_LIBS=$LIBS
  3632. LIBS="-lbind $LIBS"
  3633. cat >conftest.$ac_ext <<_ACEOF
  3634. /* confdefs.h. */
  3635. _ACEOF
  3636. cat confdefs.h >>conftest.$ac_ext
  3637. cat >>conftest.$ac_ext <<_ACEOF
  3638. /* end confdefs.h. */
  3639. /* Override any gcc2 internal prototype to avoid an error. */
  3640. #ifdef __cplusplus
  3641. extern "C"
  3642. #endif
  3643. /* We use char because int might match the return type of a gcc2
  3644. builtin and then its argument prototype would still apply. */
  3645. char res_init ();
  3646. int
  3647. main ()
  3648. {
  3649. res_init ();
  3650. ;
  3651. return 0;
  3652. }
  3653. _ACEOF
  3654. rm -f conftest.$ac_objext conftest$ac_exeext
  3655. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3656. (eval $ac_link) 2>conftest.er1
  3657. ac_status=$?
  3658. grep -v '^ *+' conftest.er1 >conftest.err
  3659. rm -f conftest.er1
  3660. cat conftest.err >&5
  3661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3662. (exit $ac_status); } &&
  3663. { ac_try='test -z "$ac_c_werror_flag"
  3664. || test ! -s conftest.err'
  3665. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3666. (eval $ac_try) 2>&5
  3667. ac_status=$?
  3668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3669. (exit $ac_status); }; } &&
  3670. { ac_try='test -s conftest$ac_exeext'
  3671. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3672. (eval $ac_try) 2>&5
  3673. ac_status=$?
  3674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3675. (exit $ac_status); }; }; then
  3676. ac_cv_lib_bind_res_init=yes
  3677. else
  3678. echo "$as_me: failed program was:" >&5
  3679. sed 's/^/| /' conftest.$ac_ext >&5
  3680. ac_cv_lib_bind_res_init=no
  3681. fi
  3682. rm -f conftest.err conftest.$ac_objext \
  3683. conftest$ac_exeext conftest.$ac_ext
  3684. LIBS=$ac_check_lib_save_LIBS
  3685. fi
  3686. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_init" >&5
  3687. echo "${ECHO_T}$ac_cv_lib_bind_res_init" >&6
  3688. if test $ac_cv_lib_bind_res_init = yes; then
  3689. RESLIB="-lbind"
  3690. else
  3691. dns_reslib_avail="false";
  3692. fi
  3693. fi
  3694. fi
  3695. if test "${dns_reslib_avail}" = false; then
  3696. dns_reslib_avail="true"
  3697. echo "$as_me:$LINENO: checking for __res_init" >&5
  3698. echo $ECHO_N "checking for __res_init... $ECHO_C" >&6
  3699. if test "${ac_cv_func___res_init+set}" = set; then
  3700. echo $ECHO_N "(cached) $ECHO_C" >&6
  3701. else
  3702. cat >conftest.$ac_ext <<_ACEOF
  3703. /* confdefs.h. */
  3704. _ACEOF
  3705. cat confdefs.h >>conftest.$ac_ext
  3706. cat >>conftest.$ac_ext <<_ACEOF
  3707. /* end confdefs.h. */
  3708. /* Define __res_init to an innocuous variant, in case <limits.h> declares __res_init.
  3709. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3710. #define __res_init innocuous___res_init
  3711. /* System header to define __stub macros and hopefully few prototypes,
  3712. which can conflict with char __res_init (); below.
  3713. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3714. <limits.h> exists even on freestanding compilers. */
  3715. #ifdef __STDC__
  3716. # include <limits.h>
  3717. #else
  3718. # include <assert.h>
  3719. #endif
  3720. #undef __res_init
  3721. /* Override any gcc2 internal prototype to avoid an error. */
  3722. #ifdef __cplusplus
  3723. extern "C"
  3724. {
  3725. #endif
  3726. /* We use char because int might match the return type of a gcc2
  3727. builtin and then its argument prototype would still apply. */
  3728. char __res_init ();
  3729. /* The GNU C library defines this for functions which it implements
  3730. to always fail with ENOSYS. Some functions are actually named
  3731. something starting with __ and the normal name is an alias. */
  3732. #if defined (__stub___res_init) || defined (__stub_____res_init)
  3733. choke me
  3734. #else
  3735. char (*f) () = __res_init;
  3736. #endif
  3737. #ifdef __cplusplus
  3738. }
  3739. #endif
  3740. int
  3741. main ()
  3742. {
  3743. return f != __res_init;
  3744. ;
  3745. return 0;
  3746. }
  3747. _ACEOF
  3748. rm -f conftest.$ac_objext conftest$ac_exeext
  3749. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3750. (eval $ac_link) 2>conftest.er1
  3751. ac_status=$?
  3752. grep -v '^ *+' conftest.er1 >conftest.err
  3753. rm -f conftest.er1
  3754. cat conftest.err >&5
  3755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3756. (exit $ac_status); } &&
  3757. { ac_try='test -z "$ac_c_werror_flag"
  3758. || test ! -s conftest.err'
  3759. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3760. (eval $ac_try) 2>&5
  3761. ac_status=$?
  3762. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3763. (exit $ac_status); }; } &&
  3764. { ac_try='test -s conftest$ac_exeext'
  3765. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3766. (eval $ac_try) 2>&5
  3767. ac_status=$?
  3768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3769. (exit $ac_status); }; }; then
  3770. ac_cv_func___res_init=yes
  3771. else
  3772. echo "$as_me: failed program was:" >&5
  3773. sed 's/^/| /' conftest.$ac_ext >&5
  3774. ac_cv_func___res_init=no
  3775. fi
  3776. rm -f conftest.err conftest.$ac_objext \
  3777. conftest$ac_exeext conftest.$ac_ext
  3778. fi
  3779. echo "$as_me:$LINENO: result: $ac_cv_func___res_init" >&5
  3780. echo "${ECHO_T}$ac_cv_func___res_init" >&6
  3781. if test $ac_cv_func___res_init = yes; then
  3782. :
  3783. else
  3784. echo "$as_me:$LINENO: checking for __res_init in -lresolv" >&5
  3785. echo $ECHO_N "checking for __res_init in -lresolv... $ECHO_C" >&6
  3786. if test "${ac_cv_lib_resolv___res_init+set}" = set; then
  3787. echo $ECHO_N "(cached) $ECHO_C" >&6
  3788. else
  3789. ac_check_lib_save_LIBS=$LIBS
  3790. LIBS="-lresolv $LIBS"
  3791. cat >conftest.$ac_ext <<_ACEOF
  3792. /* confdefs.h. */
  3793. _ACEOF
  3794. cat confdefs.h >>conftest.$ac_ext
  3795. cat >>conftest.$ac_ext <<_ACEOF
  3796. /* end confdefs.h. */
  3797. /* Override any gcc2 internal prototype to avoid an error. */
  3798. #ifdef __cplusplus
  3799. extern "C"
  3800. #endif
  3801. /* We use char because int might match the return type of a gcc2
  3802. builtin and then its argument prototype would still apply. */
  3803. char __res_init ();
  3804. int
  3805. main ()
  3806. {
  3807. __res_init ();
  3808. ;
  3809. return 0;
  3810. }
  3811. _ACEOF
  3812. rm -f conftest.$ac_objext conftest$ac_exeext
  3813. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3814. (eval $ac_link) 2>conftest.er1
  3815. ac_status=$?
  3816. grep -v '^ *+' conftest.er1 >conftest.err
  3817. rm -f conftest.er1
  3818. cat conftest.err >&5
  3819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3820. (exit $ac_status); } &&
  3821. { ac_try='test -z "$ac_c_werror_flag"
  3822. || test ! -s conftest.err'
  3823. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3824. (eval $ac_try) 2>&5
  3825. ac_status=$?
  3826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3827. (exit $ac_status); }; } &&
  3828. { ac_try='test -s conftest$ac_exeext'
  3829. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3830. (eval $ac_try) 2>&5
  3831. ac_status=$?
  3832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3833. (exit $ac_status); }; }; then
  3834. ac_cv_lib_resolv___res_init=yes
  3835. else
  3836. echo "$as_me: failed program was:" >&5
  3837. sed 's/^/| /' conftest.$ac_ext >&5
  3838. ac_cv_lib_resolv___res_init=no
  3839. fi
  3840. rm -f conftest.err conftest.$ac_objext \
  3841. conftest$ac_exeext conftest.$ac_ext
  3842. LIBS=$ac_check_lib_save_LIBS
  3843. fi
  3844. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_init" >&5
  3845. echo "${ECHO_T}$ac_cv_lib_resolv___res_init" >&6
  3846. if test $ac_cv_lib_resolv___res_init = yes; then
  3847. RESLIB="-lresolv"
  3848. else
  3849. echo "$as_me:$LINENO: checking for __res_init in -lbind" >&5
  3850. echo $ECHO_N "checking for __res_init in -lbind... $ECHO_C" >&6
  3851. if test "${ac_cv_lib_bind___res_init+set}" = set; then
  3852. echo $ECHO_N "(cached) $ECHO_C" >&6
  3853. else
  3854. ac_check_lib_save_LIBS=$LIBS
  3855. LIBS="-lbind $LIBS"
  3856. cat >conftest.$ac_ext <<_ACEOF
  3857. /* confdefs.h. */
  3858. _ACEOF
  3859. cat confdefs.h >>conftest.$ac_ext
  3860. cat >>conftest.$ac_ext <<_ACEOF
  3861. /* end confdefs.h. */
  3862. /* Override any gcc2 internal prototype to avoid an error. */
  3863. #ifdef __cplusplus
  3864. extern "C"
  3865. #endif
  3866. /* We use char because int might match the return type of a gcc2
  3867. builtin and then its argument prototype would still apply. */
  3868. char __res_init ();
  3869. int
  3870. main ()
  3871. {
  3872. __res_init ();
  3873. ;
  3874. return 0;
  3875. }
  3876. _ACEOF
  3877. rm -f conftest.$ac_objext conftest$ac_exeext
  3878. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3879. (eval $ac_link) 2>conftest.er1
  3880. ac_status=$?
  3881. grep -v '^ *+' conftest.er1 >conftest.err
  3882. rm -f conftest.er1
  3883. cat conftest.err >&5
  3884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3885. (exit $ac_status); } &&
  3886. { ac_try='test -z "$ac_c_werror_flag"
  3887. || test ! -s conftest.err'
  3888. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3889. (eval $ac_try) 2>&5
  3890. ac_status=$?
  3891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3892. (exit $ac_status); }; } &&
  3893. { ac_try='test -s conftest$ac_exeext'
  3894. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3895. (eval $ac_try) 2>&5
  3896. ac_status=$?
  3897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3898. (exit $ac_status); }; }; then
  3899. ac_cv_lib_bind___res_init=yes
  3900. else
  3901. echo "$as_me: failed program was:" >&5
  3902. sed 's/^/| /' conftest.$ac_ext >&5
  3903. ac_cv_lib_bind___res_init=no
  3904. fi
  3905. rm -f conftest.err conftest.$ac_objext \
  3906. conftest$ac_exeext conftest.$ac_ext
  3907. LIBS=$ac_check_lib_save_LIBS
  3908. fi
  3909. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_init" >&5
  3910. echo "${ECHO_T}$ac_cv_lib_bind___res_init" >&6
  3911. if test $ac_cv_lib_bind___res_init = yes; then
  3912. RESLIB="-lbind"
  3913. else
  3914. dns_reslib_avail="false";
  3915. fi
  3916. fi
  3917. fi
  3918. fi
  3919. echo "$as_me:$LINENO: checking for res_mkquery" >&5
  3920. echo $ECHO_N "checking for res_mkquery... $ECHO_C" >&6
  3921. if test "${ac_cv_func_res_mkquery+set}" = set; then
  3922. echo $ECHO_N "(cached) $ECHO_C" >&6
  3923. else
  3924. cat >conftest.$ac_ext <<_ACEOF
  3925. /* confdefs.h. */
  3926. _ACEOF
  3927. cat confdefs.h >>conftest.$ac_ext
  3928. cat >>conftest.$ac_ext <<_ACEOF
  3929. /* end confdefs.h. */
  3930. /* Define res_mkquery to an innocuous variant, in case <limits.h> declares res_mkquery.
  3931. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3932. #define res_mkquery innocuous_res_mkquery
  3933. /* System header to define __stub macros and hopefully few prototypes,
  3934. which can conflict with char res_mkquery (); below.
  3935. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3936. <limits.h> exists even on freestanding compilers. */
  3937. #ifdef __STDC__
  3938. # include <limits.h>
  3939. #else
  3940. # include <assert.h>
  3941. #endif
  3942. #undef res_mkquery
  3943. /* Override any gcc2 internal prototype to avoid an error. */
  3944. #ifdef __cplusplus
  3945. extern "C"
  3946. {
  3947. #endif
  3948. /* We use char because int might match the return type of a gcc2
  3949. builtin and then its argument prototype would still apply. */
  3950. char res_mkquery ();
  3951. /* The GNU C library defines this for functions which it implements
  3952. to always fail with ENOSYS. Some functions are actually named
  3953. something starting with __ and the normal name is an alias. */
  3954. #if defined (__stub_res_mkquery) || defined (__stub___res_mkquery)
  3955. choke me
  3956. #else
  3957. char (*f) () = res_mkquery;
  3958. #endif
  3959. #ifdef __cplusplus
  3960. }
  3961. #endif
  3962. int
  3963. main ()
  3964. {
  3965. return f != res_mkquery;
  3966. ;
  3967. return 0;
  3968. }
  3969. _ACEOF
  3970. rm -f conftest.$ac_objext conftest$ac_exeext
  3971. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3972. (eval $ac_link) 2>conftest.er1
  3973. ac_status=$?
  3974. grep -v '^ *+' conftest.er1 >conftest.err
  3975. rm -f conftest.er1
  3976. cat conftest.err >&5
  3977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3978. (exit $ac_status); } &&
  3979. { ac_try='test -z "$ac_c_werror_flag"
  3980. || test ! -s conftest.err'
  3981. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3982. (eval $ac_try) 2>&5
  3983. ac_status=$?
  3984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3985. (exit $ac_status); }; } &&
  3986. { ac_try='test -s conftest$ac_exeext'
  3987. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3988. (eval $ac_try) 2>&5
  3989. ac_status=$?
  3990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3991. (exit $ac_status); }; }; then
  3992. ac_cv_func_res_mkquery=yes
  3993. else
  3994. echo "$as_me: failed program was:" >&5
  3995. sed 's/^/| /' conftest.$ac_ext >&5
  3996. ac_cv_func_res_mkquery=no
  3997. fi
  3998. rm -f conftest.err conftest.$ac_objext \
  3999. conftest$ac_exeext conftest.$ac_ext
  4000. fi
  4001. echo "$as_me:$LINENO: result: $ac_cv_func_res_mkquery" >&5
  4002. echo "${ECHO_T}$ac_cv_func_res_mkquery" >&6
  4003. if test $ac_cv_func_res_mkquery = yes; then
  4004. :
  4005. else
  4006. echo "$as_me:$LINENO: checking for res_mkquery in -lresolv" >&5
  4007. echo $ECHO_N "checking for res_mkquery in -lresolv... $ECHO_C" >&6
  4008. if test "${ac_cv_lib_resolv_res_mkquery+set}" = set; then
  4009. echo $ECHO_N "(cached) $ECHO_C" >&6
  4010. else
  4011. ac_check_lib_save_LIBS=$LIBS
  4012. LIBS="-lresolv $LIBS"
  4013. cat >conftest.$ac_ext <<_ACEOF
  4014. /* confdefs.h. */
  4015. _ACEOF
  4016. cat confdefs.h >>conftest.$ac_ext
  4017. cat >>conftest.$ac_ext <<_ACEOF
  4018. /* end confdefs.h. */
  4019. /* Override any gcc2 internal prototype to avoid an error. */
  4020. #ifdef __cplusplus
  4021. extern "C"
  4022. #endif
  4023. /* We use char because int might match the return type of a gcc2
  4024. builtin and then its argument prototype would still apply. */
  4025. char res_mkquery ();
  4026. int
  4027. main ()
  4028. {
  4029. res_mkquery ();
  4030. ;
  4031. return 0;
  4032. }
  4033. _ACEOF
  4034. rm -f conftest.$ac_objext conftest$ac_exeext
  4035. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4036. (eval $ac_link) 2>conftest.er1
  4037. ac_status=$?
  4038. grep -v '^ *+' conftest.er1 >conftest.err
  4039. rm -f conftest.er1
  4040. cat conftest.err >&5
  4041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4042. (exit $ac_status); } &&
  4043. { ac_try='test -z "$ac_c_werror_flag"
  4044. || test ! -s conftest.err'
  4045. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4046. (eval $ac_try) 2>&5
  4047. ac_status=$?
  4048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4049. (exit $ac_status); }; } &&
  4050. { ac_try='test -s conftest$ac_exeext'
  4051. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4052. (eval $ac_try) 2>&5
  4053. ac_status=$?
  4054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4055. (exit $ac_status); }; }; then
  4056. ac_cv_lib_resolv_res_mkquery=yes
  4057. else
  4058. echo "$as_me: failed program was:" >&5
  4059. sed 's/^/| /' conftest.$ac_ext >&5
  4060. ac_cv_lib_resolv_res_mkquery=no
  4061. fi
  4062. rm -f conftest.err conftest.$ac_objext \
  4063. conftest$ac_exeext conftest.$ac_ext
  4064. LIBS=$ac_check_lib_save_LIBS
  4065. fi
  4066. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_mkquery" >&5
  4067. echo "${ECHO_T}$ac_cv_lib_resolv_res_mkquery" >&6
  4068. if test $ac_cv_lib_resolv_res_mkquery = yes; then
  4069. if test "x${RESLIB}" != "x-lresolv"; then
  4070. RESLIB="${RESLIB} -lresolv"
  4071. fi
  4072. else
  4073. echo "$as_me:$LINENO: checking for res_mkquery in -lbind" >&5
  4074. echo $ECHO_N "checking for res_mkquery in -lbind... $ECHO_C" >&6
  4075. if test "${ac_cv_lib_bind_res_mkquery+set}" = set; then
  4076. echo $ECHO_N "(cached) $ECHO_C" >&6
  4077. else
  4078. ac_check_lib_save_LIBS=$LIBS
  4079. LIBS="-lbind $LIBS"
  4080. cat >conftest.$ac_ext <<_ACEOF
  4081. /* confdefs.h. */
  4082. _ACEOF
  4083. cat confdefs.h >>conftest.$ac_ext
  4084. cat >>conftest.$ac_ext <<_ACEOF
  4085. /* end confdefs.h. */
  4086. /* Override any gcc2 internal prototype to avoid an error. */
  4087. #ifdef __cplusplus
  4088. extern "C"
  4089. #endif
  4090. /* We use char because int might match the return type of a gcc2
  4091. builtin and then its argument prototype would still apply. */
  4092. char res_mkquery ();
  4093. int
  4094. main ()
  4095. {
  4096. res_mkquery ();
  4097. ;
  4098. return 0;
  4099. }
  4100. _ACEOF
  4101. rm -f conftest.$ac_objext conftest$ac_exeext
  4102. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4103. (eval $ac_link) 2>conftest.er1
  4104. ac_status=$?
  4105. grep -v '^ *+' conftest.er1 >conftest.err
  4106. rm -f conftest.er1
  4107. cat conftest.err >&5
  4108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4109. (exit $ac_status); } &&
  4110. { ac_try='test -z "$ac_c_werror_flag"
  4111. || test ! -s conftest.err'
  4112. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4113. (eval $ac_try) 2>&5
  4114. ac_status=$?
  4115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4116. (exit $ac_status); }; } &&
  4117. { ac_try='test -s conftest$ac_exeext'
  4118. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4119. (eval $ac_try) 2>&5
  4120. ac_status=$?
  4121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4122. (exit $ac_status); }; }; then
  4123. ac_cv_lib_bind_res_mkquery=yes
  4124. else
  4125. echo "$as_me: failed program was:" >&5
  4126. sed 's/^/| /' conftest.$ac_ext >&5
  4127. ac_cv_lib_bind_res_mkquery=no
  4128. fi
  4129. rm -f conftest.err conftest.$ac_objext \
  4130. conftest$ac_exeext conftest.$ac_ext
  4131. LIBS=$ac_check_lib_save_LIBS
  4132. fi
  4133. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_mkquery" >&5
  4134. echo "${ECHO_T}$ac_cv_lib_bind_res_mkquery" >&6
  4135. if test $ac_cv_lib_bind_res_mkquery = yes; then
  4136. if test "x${RESLIB}" != "x-lbind"; then
  4137. RESLIB="${RESLIB} -lbind"
  4138. fi
  4139. else
  4140. dns_reslib_avail="false";
  4141. fi
  4142. fi
  4143. fi
  4144. if test "${dns_reslib_avail}" = false; then
  4145. dns_reslib_avail="true"
  4146. echo "$as_me:$LINENO: checking for __res_mkquery" >&5
  4147. echo $ECHO_N "checking for __res_mkquery... $ECHO_C" >&6
  4148. if test "${ac_cv_func___res_mkquery+set}" = set; then
  4149. echo $ECHO_N "(cached) $ECHO_C" >&6
  4150. else
  4151. cat >conftest.$ac_ext <<_ACEOF
  4152. /* confdefs.h. */
  4153. _ACEOF
  4154. cat confdefs.h >>conftest.$ac_ext
  4155. cat >>conftest.$ac_ext <<_ACEOF
  4156. /* end confdefs.h. */
  4157. /* Define __res_mkquery to an innocuous variant, in case <limits.h> declares __res_mkquery.
  4158. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4159. #define __res_mkquery innocuous___res_mkquery
  4160. /* System header to define __stub macros and hopefully few prototypes,
  4161. which can conflict with char __res_mkquery (); below.
  4162. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4163. <limits.h> exists even on freestanding compilers. */
  4164. #ifdef __STDC__
  4165. # include <limits.h>
  4166. #else
  4167. # include <assert.h>
  4168. #endif
  4169. #undef __res_mkquery
  4170. /* Override any gcc2 internal prototype to avoid an error. */
  4171. #ifdef __cplusplus
  4172. extern "C"
  4173. {
  4174. #endif
  4175. /* We use char because int might match the return type of a gcc2
  4176. builtin and then its argument prototype would still apply. */
  4177. char __res_mkquery ();
  4178. /* The GNU C library defines this for functions which it implements
  4179. to always fail with ENOSYS. Some functions are actually named
  4180. something starting with __ and the normal name is an alias. */
  4181. #if defined (__stub___res_mkquery) || defined (__stub_____res_mkquery)
  4182. choke me
  4183. #else
  4184. char (*f) () = __res_mkquery;
  4185. #endif
  4186. #ifdef __cplusplus
  4187. }
  4188. #endif
  4189. int
  4190. main ()
  4191. {
  4192. return f != __res_mkquery;
  4193. ;
  4194. return 0;
  4195. }
  4196. _ACEOF
  4197. rm -f conftest.$ac_objext conftest$ac_exeext
  4198. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4199. (eval $ac_link) 2>conftest.er1
  4200. ac_status=$?
  4201. grep -v '^ *+' conftest.er1 >conftest.err
  4202. rm -f conftest.er1
  4203. cat conftest.err >&5
  4204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4205. (exit $ac_status); } &&
  4206. { ac_try='test -z "$ac_c_werror_flag"
  4207. || test ! -s conftest.err'
  4208. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4209. (eval $ac_try) 2>&5
  4210. ac_status=$?
  4211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4212. (exit $ac_status); }; } &&
  4213. { ac_try='test -s conftest$ac_exeext'
  4214. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4215. (eval $ac_try) 2>&5
  4216. ac_status=$?
  4217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4218. (exit $ac_status); }; }; then
  4219. ac_cv_func___res_mkquery=yes
  4220. else
  4221. echo "$as_me: failed program was:" >&5
  4222. sed 's/^/| /' conftest.$ac_ext >&5
  4223. ac_cv_func___res_mkquery=no
  4224. fi
  4225. rm -f conftest.err conftest.$ac_objext \
  4226. conftest$ac_exeext conftest.$ac_ext
  4227. fi
  4228. echo "$as_me:$LINENO: result: $ac_cv_func___res_mkquery" >&5
  4229. echo "${ECHO_T}$ac_cv_func___res_mkquery" >&6
  4230. if test $ac_cv_func___res_mkquery = yes; then
  4231. :
  4232. else
  4233. echo "$as_me:$LINENO: checking for __res_mkquery in -lresolv" >&5
  4234. echo $ECHO_N "checking for __res_mkquery in -lresolv... $ECHO_C" >&6
  4235. if test "${ac_cv_lib_resolv___res_mkquery+set}" = set; then
  4236. echo $ECHO_N "(cached) $ECHO_C" >&6
  4237. else
  4238. ac_check_lib_save_LIBS=$LIBS
  4239. LIBS="-lresolv $LIBS"
  4240. cat >conftest.$ac_ext <<_ACEOF
  4241. /* confdefs.h. */
  4242. _ACEOF
  4243. cat confdefs.h >>conftest.$ac_ext
  4244. cat >>conftest.$ac_ext <<_ACEOF
  4245. /* end confdefs.h. */
  4246. /* Override any gcc2 internal prototype to avoid an error. */
  4247. #ifdef __cplusplus
  4248. extern "C"
  4249. #endif
  4250. /* We use char because int might match the return type of a gcc2
  4251. builtin and then its argument prototype would still apply. */
  4252. char __res_mkquery ();
  4253. int
  4254. main ()
  4255. {
  4256. __res_mkquery ();
  4257. ;
  4258. return 0;
  4259. }
  4260. _ACEOF
  4261. rm -f conftest.$ac_objext conftest$ac_exeext
  4262. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4263. (eval $ac_link) 2>conftest.er1
  4264. ac_status=$?
  4265. grep -v '^ *+' conftest.er1 >conftest.err
  4266. rm -f conftest.er1
  4267. cat conftest.err >&5
  4268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4269. (exit $ac_status); } &&
  4270. { ac_try='test -z "$ac_c_werror_flag"
  4271. || test ! -s conftest.err'
  4272. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4273. (eval $ac_try) 2>&5
  4274. ac_status=$?
  4275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4276. (exit $ac_status); }; } &&
  4277. { ac_try='test -s conftest$ac_exeext'
  4278. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4279. (eval $ac_try) 2>&5
  4280. ac_status=$?
  4281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4282. (exit $ac_status); }; }; then
  4283. ac_cv_lib_resolv___res_mkquery=yes
  4284. else
  4285. echo "$as_me: failed program was:" >&5
  4286. sed 's/^/| /' conftest.$ac_ext >&5
  4287. ac_cv_lib_resolv___res_mkquery=no
  4288. fi
  4289. rm -f conftest.err conftest.$ac_objext \
  4290. conftest$ac_exeext conftest.$ac_ext
  4291. LIBS=$ac_check_lib_save_LIBS
  4292. fi
  4293. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_mkquery" >&5
  4294. echo "${ECHO_T}$ac_cv_lib_resolv___res_mkquery" >&6
  4295. if test $ac_cv_lib_resolv___res_mkquery = yes; then
  4296. if test "x${RESLIB}" != "x-lresolv"; then
  4297. RESLIB="${RESLIB} -lresolv"
  4298. fi
  4299. else
  4300. echo "$as_me:$LINENO: checking for __res_mkquery in -lbind" >&5
  4301. echo $ECHO_N "checking for __res_mkquery in -lbind... $ECHO_C" >&6
  4302. if test "${ac_cv_lib_bind___res_mkquery+set}" = set; then
  4303. echo $ECHO_N "(cached) $ECHO_C" >&6
  4304. else
  4305. ac_check_lib_save_LIBS=$LIBS
  4306. LIBS="-lbind $LIBS"
  4307. cat >conftest.$ac_ext <<_ACEOF
  4308. /* confdefs.h. */
  4309. _ACEOF
  4310. cat confdefs.h >>conftest.$ac_ext
  4311. cat >>conftest.$ac_ext <<_ACEOF
  4312. /* end confdefs.h. */
  4313. /* Override any gcc2 internal prototype to avoid an error. */
  4314. #ifdef __cplusplus
  4315. extern "C"
  4316. #endif
  4317. /* We use char because int might match the return type of a gcc2
  4318. builtin and then its argument prototype would still apply. */
  4319. char __res_mkquery ();
  4320. int
  4321. main ()
  4322. {
  4323. __res_mkquery ();
  4324. ;
  4325. return 0;
  4326. }
  4327. _ACEOF
  4328. rm -f conftest.$ac_objext conftest$ac_exeext
  4329. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4330. (eval $ac_link) 2>conftest.er1
  4331. ac_status=$?
  4332. grep -v '^ *+' conftest.er1 >conftest.err
  4333. rm -f conftest.er1
  4334. cat conftest.err >&5
  4335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4336. (exit $ac_status); } &&
  4337. { ac_try='test -z "$ac_c_werror_flag"
  4338. || test ! -s conftest.err'
  4339. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4340. (eval $ac_try) 2>&5
  4341. ac_status=$?
  4342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4343. (exit $ac_status); }; } &&
  4344. { ac_try='test -s conftest$ac_exeext'
  4345. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4346. (eval $ac_try) 2>&5
  4347. ac_status=$?
  4348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4349. (exit $ac_status); }; }; then
  4350. ac_cv_lib_bind___res_mkquery=yes
  4351. else
  4352. echo "$as_me: failed program was:" >&5
  4353. sed 's/^/| /' conftest.$ac_ext >&5
  4354. ac_cv_lib_bind___res_mkquery=no
  4355. fi
  4356. rm -f conftest.err conftest.$ac_objext \
  4357. conftest$ac_exeext conftest.$ac_ext
  4358. LIBS=$ac_check_lib_save_LIBS
  4359. fi
  4360. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_mkquery" >&5
  4361. echo "${ECHO_T}$ac_cv_lib_bind___res_mkquery" >&6
  4362. if test $ac_cv_lib_bind___res_mkquery = yes; then
  4363. if test "x${RESLIB}" != "x-lbind"; then
  4364. RESLIB="${RESLIB} -lbind"
  4365. fi
  4366. else
  4367. dns_reslib_avail="false";
  4368. fi
  4369. fi
  4370. fi
  4371. fi
  4372. if test "${dns_reslib_avail}" = false; then
  4373. if test "$ac_cv_cygwin" = "yes"; then
  4374. echo "$as_me:$LINENO: checking for /usr/local/bind/lib/libbind.a" >&5
  4375. echo $ECHO_N "checking for /usr/local/bind/lib/libbind.a... $ECHO_C" >&6
  4376. if test -r /usr/local/bind/lib/libbind.a; then
  4377. echo "$as_me:$LINENO: result: yes" >&5
  4378. echo "${ECHO_T}yes" >&6
  4379. RESLIB="${RESLIB} -L/usr/local/bind/lib -lbind"
  4380. RESINCLUDE="-I/usr/local/bind/include"
  4381. dns_reslib_avail="true"
  4382. else
  4383. echo "$as_me:$LINENO: result: no" >&5
  4384. echo "${ECHO_T}no" >&6
  4385. fi
  4386. fi
  4387. fi
  4388. if test "${dns_reslib_avail}" = false; then
  4389. cat >&2 <<EOF
  4390. configure: warning:
  4391. Your system provides no functional resolver library.
  4392. One is required for buld.
  4393. EOF
  4394. exit 1
  4395. fi
  4396. # Check for IPv6 support
  4397. #EGG_IPV6_SUPPORTED
  4398. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  4399. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  4400. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  4401. if test "${enable_ipv6+set}" = set; then
  4402. enableval="$enable_ipv6"
  4403. ac_cv_dipv6="yes"
  4404. echo "$as_me:$LINENO: result: yes" >&5
  4405. echo "${ECHO_T}yes" >&6
  4406. else
  4407. ac_cv_dipv6="no"
  4408. if test "$egg_cv_ipv6_supported" = "no"; then
  4409. ac_cv_dipv6="no"
  4410. fi
  4411. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  4412. echo "${ECHO_T}$ac_cv_dipv6" >&6
  4413. fi;
  4414. if ! test "$EGG_CYGWIN" = "yes"; then
  4415. if test "$ac_cv_dipv6" = "no"; then
  4416. cat >>confdefs.h <<\_ACEOF
  4417. #define USE_IPV6 1
  4418. _ACEOF
  4419. fi
  4420. fi
  4421. echo "$as_me:$LINENO: checking for socklen_t" >&5
  4422. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  4423. if test "${egg_cv_socklen_t+set}" = set; then
  4424. echo $ECHO_N "(cached) $ECHO_C" >&6
  4425. else
  4426. if test "$cross_compiling" = yes; then
  4427. egg_cv_socklen_t=no
  4428. else
  4429. cat >conftest.$ac_ext <<_ACEOF
  4430. /* confdefs.h. */
  4431. _ACEOF
  4432. cat confdefs.h >>conftest.$ac_ext
  4433. cat >>conftest.$ac_ext <<_ACEOF
  4434. /* end confdefs.h. */
  4435. #include <unistd.h>
  4436. #include <sys/types.h>
  4437. #include <sys/socket.h>
  4438. #include <netinet/in.h>
  4439. #include <arpa/inet.h>
  4440. int main()
  4441. {
  4442. socklen_t test = sizeof(int);
  4443. return 0;
  4444. }
  4445. _ACEOF
  4446. rm -f conftest$ac_exeext
  4447. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4448. (eval $ac_link) 2>&5
  4449. ac_status=$?
  4450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4451. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4452. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4453. (eval $ac_try) 2>&5
  4454. ac_status=$?
  4455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4456. (exit $ac_status); }; }; then
  4457. egg_cv_socklen_t=yes
  4458. else
  4459. echo "$as_me: program exited with status $ac_status" >&5
  4460. echo "$as_me: failed program was:" >&5
  4461. sed 's/^/| /' conftest.$ac_ext >&5
  4462. ( exit $ac_status )
  4463. egg_cv_socklen_t=no
  4464. fi
  4465. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4466. fi
  4467. fi
  4468. if test "$egg_cv_socklen_t" = "yes"; then
  4469. cat >>confdefs.h <<\_ACEOF
  4470. #define HAVE_SOCKLEN_T 1
  4471. _ACEOF
  4472. echo "$as_me:$LINENO: result: yes" >&5
  4473. echo "${ECHO_T}yes" >&6
  4474. else
  4475. echo "$as_me:$LINENO: result: no" >&5
  4476. echo "${ECHO_T}no" >&6
  4477. fi
  4478. #checkpoint
  4479. cat >confcache <<\_ACEOF
  4480. # This file is a shell script that caches the results of configure
  4481. # tests run on this system so they can be shared between configure
  4482. # scripts and configure runs, see configure's option --config-cache.
  4483. # It is not useful on other systems. If it contains results you don't
  4484. # want to keep, you may remove or edit it.
  4485. #
  4486. # config.status only pays attention to the cache file if you give it
  4487. # the --recheck option to rerun configure.
  4488. #
  4489. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4490. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4491. # following values.
  4492. _ACEOF
  4493. # The following way of writing the cache mishandles newlines in values,
  4494. # but we know of no workaround that is simple, portable, and efficient.
  4495. # So, don't put newlines in cache variables' values.
  4496. # Ultrix sh set writes to stderr and can't be redirected directly,
  4497. # and sets the high bit in the cache file unless we assign to the vars.
  4498. {
  4499. (set) 2>&1 |
  4500. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4501. *ac_space=\ *)
  4502. # `set' does not quote correctly, so add quotes (double-quote
  4503. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4504. sed -n \
  4505. "s/'/'\\\\''/g;
  4506. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4507. ;;
  4508. *)
  4509. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4510. sed -n \
  4511. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4512. ;;
  4513. esac;
  4514. } |
  4515. sed '
  4516. t clear
  4517. : clear
  4518. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4519. t end
  4520. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4521. : end' >>confcache
  4522. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4523. if test -w $cache_file; then
  4524. test "x$cache_file" != "x/dev/null"
  4525. cat confcache >$cache_file
  4526. else
  4527. echo "not updating unwritable cache $cache_file"
  4528. fi
  4529. fi
  4530. rm -f confcache
  4531. # Checks for system libraries
  4532. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4533. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  4534. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4535. echo $ECHO_N "(cached) $ECHO_C" >&6
  4536. else
  4537. ac_check_lib_save_LIBS=$LIBS
  4538. LIBS="-lsocket $LIBS"
  4539. cat >conftest.$ac_ext <<_ACEOF
  4540. /* confdefs.h. */
  4541. _ACEOF
  4542. cat confdefs.h >>conftest.$ac_ext
  4543. cat >>conftest.$ac_ext <<_ACEOF
  4544. /* end confdefs.h. */
  4545. /* Override any gcc2 internal prototype to avoid an error. */
  4546. #ifdef __cplusplus
  4547. extern "C"
  4548. #endif
  4549. /* We use char because int might match the return type of a gcc2
  4550. builtin and then its argument prototype would still apply. */
  4551. char socket ();
  4552. int
  4553. main ()
  4554. {
  4555. socket ();
  4556. ;
  4557. return 0;
  4558. }
  4559. _ACEOF
  4560. rm -f conftest.$ac_objext conftest$ac_exeext
  4561. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4562. (eval $ac_link) 2>conftest.er1
  4563. ac_status=$?
  4564. grep -v '^ *+' conftest.er1 >conftest.err
  4565. rm -f conftest.er1
  4566. cat conftest.err >&5
  4567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4568. (exit $ac_status); } &&
  4569. { ac_try='test -z "$ac_c_werror_flag"
  4570. || test ! -s conftest.err'
  4571. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4572. (eval $ac_try) 2>&5
  4573. ac_status=$?
  4574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4575. (exit $ac_status); }; } &&
  4576. { ac_try='test -s conftest$ac_exeext'
  4577. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4578. (eval $ac_try) 2>&5
  4579. ac_status=$?
  4580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4581. (exit $ac_status); }; }; then
  4582. ac_cv_lib_socket_socket=yes
  4583. else
  4584. echo "$as_me: failed program was:" >&5
  4585. sed 's/^/| /' conftest.$ac_ext >&5
  4586. ac_cv_lib_socket_socket=no
  4587. fi
  4588. rm -f conftest.err conftest.$ac_objext \
  4589. conftest$ac_exeext conftest.$ac_ext
  4590. LIBS=$ac_check_lib_save_LIBS
  4591. fi
  4592. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4593. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  4594. if test $ac_cv_lib_socket_socket = yes; then
  4595. cat >>confdefs.h <<_ACEOF
  4596. #define HAVE_LIBSOCKET 1
  4597. _ACEOF
  4598. LIBS="-lsocket $LIBS"
  4599. fi
  4600. # AC_CHECK_LIB(nsl, connect)
  4601. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  4602. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  4603. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  4604. echo $ECHO_N "(cached) $ECHO_C" >&6
  4605. else
  4606. ac_check_lib_save_LIBS=$LIBS
  4607. LIBS="-ldns $LIBS"
  4608. cat >conftest.$ac_ext <<_ACEOF
  4609. /* confdefs.h. */
  4610. _ACEOF
  4611. cat confdefs.h >>conftest.$ac_ext
  4612. cat >>conftest.$ac_ext <<_ACEOF
  4613. /* end confdefs.h. */
  4614. /* Override any gcc2 internal prototype to avoid an error. */
  4615. #ifdef __cplusplus
  4616. extern "C"
  4617. #endif
  4618. /* We use char because int might match the return type of a gcc2
  4619. builtin and then its argument prototype would still apply. */
  4620. char gethostbyname ();
  4621. int
  4622. main ()
  4623. {
  4624. gethostbyname ();
  4625. ;
  4626. return 0;
  4627. }
  4628. _ACEOF
  4629. rm -f conftest.$ac_objext conftest$ac_exeext
  4630. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4631. (eval $ac_link) 2>conftest.er1
  4632. ac_status=$?
  4633. grep -v '^ *+' conftest.er1 >conftest.err
  4634. rm -f conftest.er1
  4635. cat conftest.err >&5
  4636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4637. (exit $ac_status); } &&
  4638. { ac_try='test -z "$ac_c_werror_flag"
  4639. || test ! -s conftest.err'
  4640. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4641. (eval $ac_try) 2>&5
  4642. ac_status=$?
  4643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4644. (exit $ac_status); }; } &&
  4645. { ac_try='test -s conftest$ac_exeext'
  4646. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4647. (eval $ac_try) 2>&5
  4648. ac_status=$?
  4649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4650. (exit $ac_status); }; }; then
  4651. ac_cv_lib_dns_gethostbyname=yes
  4652. else
  4653. echo "$as_me: failed program was:" >&5
  4654. sed 's/^/| /' conftest.$ac_ext >&5
  4655. ac_cv_lib_dns_gethostbyname=no
  4656. fi
  4657. rm -f conftest.err conftest.$ac_objext \
  4658. conftest$ac_exeext conftest.$ac_ext
  4659. LIBS=$ac_check_lib_save_LIBS
  4660. fi
  4661. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  4662. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  4663. if test $ac_cv_lib_dns_gethostbyname = yes; then
  4664. cat >>confdefs.h <<_ACEOF
  4665. #define HAVE_LIBDNS 1
  4666. _ACEOF
  4667. LIBS="-ldns $LIBS"
  4668. fi
  4669. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4670. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
  4671. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lcrypto", SSL="", -lcrypto)
  4672. # This is needed for Tcl libraries compiled with thread support
  4673. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4674. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4675. # ac_cv_lib_pthread="-lpthread"], [dnl
  4676. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4677. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4678. # ac_cv_lib_pthread="-lpthread"], [dnl
  4679. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4680. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4681. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4682. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4683. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4684. # ac_cv_lib_pthread=""],
  4685. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4686. # Checks for header files
  4687. ac_header_dirent=no
  4688. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4689. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4690. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4691. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4692. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4693. echo $ECHO_N "(cached) $ECHO_C" >&6
  4694. else
  4695. cat >conftest.$ac_ext <<_ACEOF
  4696. /* confdefs.h. */
  4697. _ACEOF
  4698. cat confdefs.h >>conftest.$ac_ext
  4699. cat >>conftest.$ac_ext <<_ACEOF
  4700. /* end confdefs.h. */
  4701. #include <sys/types.h>
  4702. #include <$ac_hdr>
  4703. int
  4704. main ()
  4705. {
  4706. if ((DIR *) 0)
  4707. return 0;
  4708. ;
  4709. return 0;
  4710. }
  4711. _ACEOF
  4712. rm -f conftest.$ac_objext
  4713. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4714. (eval $ac_compile) 2>conftest.er1
  4715. ac_status=$?
  4716. grep -v '^ *+' conftest.er1 >conftest.err
  4717. rm -f conftest.er1
  4718. cat conftest.err >&5
  4719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4720. (exit $ac_status); } &&
  4721. { ac_try='test -z "$ac_c_werror_flag"
  4722. || test ! -s conftest.err'
  4723. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4724. (eval $ac_try) 2>&5
  4725. ac_status=$?
  4726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4727. (exit $ac_status); }; } &&
  4728. { ac_try='test -s conftest.$ac_objext'
  4729. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4730. (eval $ac_try) 2>&5
  4731. ac_status=$?
  4732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4733. (exit $ac_status); }; }; then
  4734. eval "$as_ac_Header=yes"
  4735. else
  4736. echo "$as_me: failed program was:" >&5
  4737. sed 's/^/| /' conftest.$ac_ext >&5
  4738. eval "$as_ac_Header=no"
  4739. fi
  4740. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4741. fi
  4742. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4743. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4744. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4745. cat >>confdefs.h <<_ACEOF
  4746. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4747. _ACEOF
  4748. ac_header_dirent=$ac_hdr; break
  4749. fi
  4750. done
  4751. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4752. if test $ac_header_dirent = dirent.h; then
  4753. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4754. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4755. if test "${ac_cv_search_opendir+set}" = set; then
  4756. echo $ECHO_N "(cached) $ECHO_C" >&6
  4757. else
  4758. ac_func_search_save_LIBS=$LIBS
  4759. ac_cv_search_opendir=no
  4760. cat >conftest.$ac_ext <<_ACEOF
  4761. /* confdefs.h. */
  4762. _ACEOF
  4763. cat confdefs.h >>conftest.$ac_ext
  4764. cat >>conftest.$ac_ext <<_ACEOF
  4765. /* end confdefs.h. */
  4766. /* Override any gcc2 internal prototype to avoid an error. */
  4767. #ifdef __cplusplus
  4768. extern "C"
  4769. #endif
  4770. /* We use char because int might match the return type of a gcc2
  4771. builtin and then its argument prototype would still apply. */
  4772. char opendir ();
  4773. int
  4774. main ()
  4775. {
  4776. opendir ();
  4777. ;
  4778. return 0;
  4779. }
  4780. _ACEOF
  4781. rm -f conftest.$ac_objext conftest$ac_exeext
  4782. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4783. (eval $ac_link) 2>conftest.er1
  4784. ac_status=$?
  4785. grep -v '^ *+' conftest.er1 >conftest.err
  4786. rm -f conftest.er1
  4787. cat conftest.err >&5
  4788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4789. (exit $ac_status); } &&
  4790. { ac_try='test -z "$ac_c_werror_flag"
  4791. || test ! -s conftest.err'
  4792. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4793. (eval $ac_try) 2>&5
  4794. ac_status=$?
  4795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4796. (exit $ac_status); }; } &&
  4797. { ac_try='test -s conftest$ac_exeext'
  4798. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4799. (eval $ac_try) 2>&5
  4800. ac_status=$?
  4801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4802. (exit $ac_status); }; }; then
  4803. ac_cv_search_opendir="none required"
  4804. else
  4805. echo "$as_me: failed program was:" >&5
  4806. sed 's/^/| /' conftest.$ac_ext >&5
  4807. fi
  4808. rm -f conftest.err conftest.$ac_objext \
  4809. conftest$ac_exeext conftest.$ac_ext
  4810. if test "$ac_cv_search_opendir" = no; then
  4811. for ac_lib in dir; do
  4812. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4813. cat >conftest.$ac_ext <<_ACEOF
  4814. /* confdefs.h. */
  4815. _ACEOF
  4816. cat confdefs.h >>conftest.$ac_ext
  4817. cat >>conftest.$ac_ext <<_ACEOF
  4818. /* end confdefs.h. */
  4819. /* Override any gcc2 internal prototype to avoid an error. */
  4820. #ifdef __cplusplus
  4821. extern "C"
  4822. #endif
  4823. /* We use char because int might match the return type of a gcc2
  4824. builtin and then its argument prototype would still apply. */
  4825. char opendir ();
  4826. int
  4827. main ()
  4828. {
  4829. opendir ();
  4830. ;
  4831. return 0;
  4832. }
  4833. _ACEOF
  4834. rm -f conftest.$ac_objext conftest$ac_exeext
  4835. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4836. (eval $ac_link) 2>conftest.er1
  4837. ac_status=$?
  4838. grep -v '^ *+' conftest.er1 >conftest.err
  4839. rm -f conftest.er1
  4840. cat conftest.err >&5
  4841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4842. (exit $ac_status); } &&
  4843. { ac_try='test -z "$ac_c_werror_flag"
  4844. || test ! -s conftest.err'
  4845. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4846. (eval $ac_try) 2>&5
  4847. ac_status=$?
  4848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4849. (exit $ac_status); }; } &&
  4850. { ac_try='test -s conftest$ac_exeext'
  4851. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4852. (eval $ac_try) 2>&5
  4853. ac_status=$?
  4854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4855. (exit $ac_status); }; }; then
  4856. ac_cv_search_opendir="-l$ac_lib"
  4857. break
  4858. else
  4859. echo "$as_me: failed program was:" >&5
  4860. sed 's/^/| /' conftest.$ac_ext >&5
  4861. fi
  4862. rm -f conftest.err conftest.$ac_objext \
  4863. conftest$ac_exeext conftest.$ac_ext
  4864. done
  4865. fi
  4866. LIBS=$ac_func_search_save_LIBS
  4867. fi
  4868. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4869. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4870. if test "$ac_cv_search_opendir" != no; then
  4871. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4872. fi
  4873. else
  4874. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4875. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4876. if test "${ac_cv_search_opendir+set}" = set; then
  4877. echo $ECHO_N "(cached) $ECHO_C" >&6
  4878. else
  4879. ac_func_search_save_LIBS=$LIBS
  4880. ac_cv_search_opendir=no
  4881. cat >conftest.$ac_ext <<_ACEOF
  4882. /* confdefs.h. */
  4883. _ACEOF
  4884. cat confdefs.h >>conftest.$ac_ext
  4885. cat >>conftest.$ac_ext <<_ACEOF
  4886. /* end confdefs.h. */
  4887. /* Override any gcc2 internal prototype to avoid an error. */
  4888. #ifdef __cplusplus
  4889. extern "C"
  4890. #endif
  4891. /* We use char because int might match the return type of a gcc2
  4892. builtin and then its argument prototype would still apply. */
  4893. char opendir ();
  4894. int
  4895. main ()
  4896. {
  4897. opendir ();
  4898. ;
  4899. return 0;
  4900. }
  4901. _ACEOF
  4902. rm -f conftest.$ac_objext conftest$ac_exeext
  4903. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4904. (eval $ac_link) 2>conftest.er1
  4905. ac_status=$?
  4906. grep -v '^ *+' conftest.er1 >conftest.err
  4907. rm -f conftest.er1
  4908. cat conftest.err >&5
  4909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4910. (exit $ac_status); } &&
  4911. { ac_try='test -z "$ac_c_werror_flag"
  4912. || test ! -s conftest.err'
  4913. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4914. (eval $ac_try) 2>&5
  4915. ac_status=$?
  4916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4917. (exit $ac_status); }; } &&
  4918. { ac_try='test -s conftest$ac_exeext'
  4919. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4920. (eval $ac_try) 2>&5
  4921. ac_status=$?
  4922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4923. (exit $ac_status); }; }; then
  4924. ac_cv_search_opendir="none required"
  4925. else
  4926. echo "$as_me: failed program was:" >&5
  4927. sed 's/^/| /' conftest.$ac_ext >&5
  4928. fi
  4929. rm -f conftest.err conftest.$ac_objext \
  4930. conftest$ac_exeext conftest.$ac_ext
  4931. if test "$ac_cv_search_opendir" = no; then
  4932. for ac_lib in x; do
  4933. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4934. cat >conftest.$ac_ext <<_ACEOF
  4935. /* confdefs.h. */
  4936. _ACEOF
  4937. cat confdefs.h >>conftest.$ac_ext
  4938. cat >>conftest.$ac_ext <<_ACEOF
  4939. /* end confdefs.h. */
  4940. /* Override any gcc2 internal prototype to avoid an error. */
  4941. #ifdef __cplusplus
  4942. extern "C"
  4943. #endif
  4944. /* We use char because int might match the return type of a gcc2
  4945. builtin and then its argument prototype would still apply. */
  4946. char opendir ();
  4947. int
  4948. main ()
  4949. {
  4950. opendir ();
  4951. ;
  4952. return 0;
  4953. }
  4954. _ACEOF
  4955. rm -f conftest.$ac_objext conftest$ac_exeext
  4956. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4957. (eval $ac_link) 2>conftest.er1
  4958. ac_status=$?
  4959. grep -v '^ *+' conftest.er1 >conftest.err
  4960. rm -f conftest.er1
  4961. cat conftest.err >&5
  4962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4963. (exit $ac_status); } &&
  4964. { ac_try='test -z "$ac_c_werror_flag"
  4965. || test ! -s conftest.err'
  4966. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4967. (eval $ac_try) 2>&5
  4968. ac_status=$?
  4969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4970. (exit $ac_status); }; } &&
  4971. { ac_try='test -s conftest$ac_exeext'
  4972. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4973. (eval $ac_try) 2>&5
  4974. ac_status=$?
  4975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4976. (exit $ac_status); }; }; then
  4977. ac_cv_search_opendir="-l$ac_lib"
  4978. break
  4979. else
  4980. echo "$as_me: failed program was:" >&5
  4981. sed 's/^/| /' conftest.$ac_ext >&5
  4982. fi
  4983. rm -f conftest.err conftest.$ac_objext \
  4984. conftest$ac_exeext conftest.$ac_ext
  4985. done
  4986. fi
  4987. LIBS=$ac_func_search_save_LIBS
  4988. fi
  4989. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4990. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4991. if test "$ac_cv_search_opendir" != no; then
  4992. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4993. fi
  4994. fi
  4995. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4996. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  4997. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4998. echo $ECHO_N "(cached) $ECHO_C" >&6
  4999. else
  5000. cat >conftest.$ac_ext <<_ACEOF
  5001. /* confdefs.h. */
  5002. _ACEOF
  5003. cat confdefs.h >>conftest.$ac_ext
  5004. cat >>conftest.$ac_ext <<_ACEOF
  5005. /* end confdefs.h. */
  5006. #include <sys/types.h>
  5007. #include <sys/wait.h>
  5008. #ifndef WEXITSTATUS
  5009. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  5010. #endif
  5011. #ifndef WIFEXITED
  5012. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  5013. #endif
  5014. int
  5015. main ()
  5016. {
  5017. int s;
  5018. wait (&s);
  5019. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  5020. ;
  5021. return 0;
  5022. }
  5023. _ACEOF
  5024. rm -f conftest.$ac_objext
  5025. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5026. (eval $ac_compile) 2>conftest.er1
  5027. ac_status=$?
  5028. grep -v '^ *+' conftest.er1 >conftest.err
  5029. rm -f conftest.er1
  5030. cat conftest.err >&5
  5031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5032. (exit $ac_status); } &&
  5033. { ac_try='test -z "$ac_c_werror_flag"
  5034. || test ! -s conftest.err'
  5035. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5036. (eval $ac_try) 2>&5
  5037. ac_status=$?
  5038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5039. (exit $ac_status); }; } &&
  5040. { ac_try='test -s conftest.$ac_objext'
  5041. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5042. (eval $ac_try) 2>&5
  5043. ac_status=$?
  5044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5045. (exit $ac_status); }; }; then
  5046. ac_cv_header_sys_wait_h=yes
  5047. else
  5048. echo "$as_me: failed program was:" >&5
  5049. sed 's/^/| /' conftest.$ac_ext >&5
  5050. ac_cv_header_sys_wait_h=no
  5051. fi
  5052. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5053. fi
  5054. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  5055. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  5056. if test $ac_cv_header_sys_wait_h = yes; then
  5057. cat >>confdefs.h <<\_ACEOF
  5058. #define HAVE_SYS_WAIT_H 1
  5059. _ACEOF
  5060. fi
  5061. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  5062. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  5063. if test "${ac_cv_header_time+set}" = set; then
  5064. echo $ECHO_N "(cached) $ECHO_C" >&6
  5065. else
  5066. cat >conftest.$ac_ext <<_ACEOF
  5067. /* confdefs.h. */
  5068. _ACEOF
  5069. cat confdefs.h >>conftest.$ac_ext
  5070. cat >>conftest.$ac_ext <<_ACEOF
  5071. /* end confdefs.h. */
  5072. #include <sys/types.h>
  5073. #include <sys/time.h>
  5074. #include <time.h>
  5075. int
  5076. main ()
  5077. {
  5078. if ((struct tm *) 0)
  5079. return 0;
  5080. ;
  5081. return 0;
  5082. }
  5083. _ACEOF
  5084. rm -f conftest.$ac_objext
  5085. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5086. (eval $ac_compile) 2>conftest.er1
  5087. ac_status=$?
  5088. grep -v '^ *+' conftest.er1 >conftest.err
  5089. rm -f conftest.er1
  5090. cat conftest.err >&5
  5091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5092. (exit $ac_status); } &&
  5093. { ac_try='test -z "$ac_c_werror_flag"
  5094. || test ! -s conftest.err'
  5095. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5096. (eval $ac_try) 2>&5
  5097. ac_status=$?
  5098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5099. (exit $ac_status); }; } &&
  5100. { ac_try='test -s conftest.$ac_objext'
  5101. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5102. (eval $ac_try) 2>&5
  5103. ac_status=$?
  5104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5105. (exit $ac_status); }; }; then
  5106. ac_cv_header_time=yes
  5107. else
  5108. echo "$as_me: failed program was:" >&5
  5109. sed 's/^/| /' conftest.$ac_ext >&5
  5110. ac_cv_header_time=no
  5111. fi
  5112. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5113. fi
  5114. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  5115. echo "${ECHO_T}$ac_cv_header_time" >&6
  5116. if test $ac_cv_header_time = yes; then
  5117. cat >>confdefs.h <<\_ACEOF
  5118. #define TIME_WITH_SYS_TIME 1
  5119. _ACEOF
  5120. fi
  5121. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  5122. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  5123. if test "${ac_cv_header_stat_broken+set}" = set; then
  5124. echo $ECHO_N "(cached) $ECHO_C" >&6
  5125. else
  5126. cat >conftest.$ac_ext <<_ACEOF
  5127. /* confdefs.h. */
  5128. _ACEOF
  5129. cat confdefs.h >>conftest.$ac_ext
  5130. cat >>conftest.$ac_ext <<_ACEOF
  5131. /* end confdefs.h. */
  5132. #include <sys/types.h>
  5133. #include <sys/stat.h>
  5134. #if defined(S_ISBLK) && defined(S_IFDIR)
  5135. # if S_ISBLK (S_IFDIR)
  5136. You lose.
  5137. # endif
  5138. #endif
  5139. #if defined(S_ISBLK) && defined(S_IFCHR)
  5140. # if S_ISBLK (S_IFCHR)
  5141. You lose.
  5142. # endif
  5143. #endif
  5144. #if defined(S_ISLNK) && defined(S_IFREG)
  5145. # if S_ISLNK (S_IFREG)
  5146. You lose.
  5147. # endif
  5148. #endif
  5149. #if defined(S_ISSOCK) && defined(S_IFREG)
  5150. # if S_ISSOCK (S_IFREG)
  5151. You lose.
  5152. # endif
  5153. #endif
  5154. _ACEOF
  5155. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5156. $EGREP "You lose" >/dev/null 2>&1; then
  5157. ac_cv_header_stat_broken=yes
  5158. else
  5159. ac_cv_header_stat_broken=no
  5160. fi
  5161. rm -f conftest*
  5162. fi
  5163. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  5164. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  5165. if test $ac_cv_header_stat_broken = yes; then
  5166. cat >>confdefs.h <<\_ACEOF
  5167. #define STAT_MACROS_BROKEN 1
  5168. _ACEOF
  5169. fi
  5170. #checkpoint
  5171. cat >confcache <<\_ACEOF
  5172. # This file is a shell script that caches the results of configure
  5173. # tests run on this system so they can be shared between configure
  5174. # scripts and configure runs, see configure's option --config-cache.
  5175. # It is not useful on other systems. If it contains results you don't
  5176. # want to keep, you may remove or edit it.
  5177. #
  5178. # config.status only pays attention to the cache file if you give it
  5179. # the --recheck option to rerun configure.
  5180. #
  5181. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5182. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5183. # following values.
  5184. _ACEOF
  5185. # The following way of writing the cache mishandles newlines in values,
  5186. # but we know of no workaround that is simple, portable, and efficient.
  5187. # So, don't put newlines in cache variables' values.
  5188. # Ultrix sh set writes to stderr and can't be redirected directly,
  5189. # and sets the high bit in the cache file unless we assign to the vars.
  5190. {
  5191. (set) 2>&1 |
  5192. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5193. *ac_space=\ *)
  5194. # `set' does not quote correctly, so add quotes (double-quote
  5195. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5196. sed -n \
  5197. "s/'/'\\\\''/g;
  5198. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5199. ;;
  5200. *)
  5201. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5202. sed -n \
  5203. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5204. ;;
  5205. esac;
  5206. } |
  5207. sed '
  5208. t clear
  5209. : clear
  5210. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5211. t end
  5212. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5213. : end' >>confcache
  5214. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5215. if test -w $cache_file; then
  5216. test "x$cache_file" != "x/dev/null"
  5217. cat confcache >$cache_file
  5218. else
  5219. echo "not updating unwritable cache $cache_file"
  5220. fi
  5221. fi
  5222. rm -f confcache
  5223. for ac_header in arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5224. do
  5225. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5226. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5227. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5228. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5229. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5230. echo $ECHO_N "(cached) $ECHO_C" >&6
  5231. fi
  5232. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5233. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5234. else
  5235. # Is the header compilable?
  5236. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5237. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5238. cat >conftest.$ac_ext <<_ACEOF
  5239. /* confdefs.h. */
  5240. _ACEOF
  5241. cat confdefs.h >>conftest.$ac_ext
  5242. cat >>conftest.$ac_ext <<_ACEOF
  5243. /* end confdefs.h. */
  5244. $ac_includes_default
  5245. #include <$ac_header>
  5246. _ACEOF
  5247. rm -f conftest.$ac_objext
  5248. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5249. (eval $ac_compile) 2>conftest.er1
  5250. ac_status=$?
  5251. grep -v '^ *+' conftest.er1 >conftest.err
  5252. rm -f conftest.er1
  5253. cat conftest.err >&5
  5254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5255. (exit $ac_status); } &&
  5256. { ac_try='test -z "$ac_c_werror_flag"
  5257. || test ! -s conftest.err'
  5258. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5259. (eval $ac_try) 2>&5
  5260. ac_status=$?
  5261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5262. (exit $ac_status); }; } &&
  5263. { ac_try='test -s conftest.$ac_objext'
  5264. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5265. (eval $ac_try) 2>&5
  5266. ac_status=$?
  5267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5268. (exit $ac_status); }; }; then
  5269. ac_header_compiler=yes
  5270. else
  5271. echo "$as_me: failed program was:" >&5
  5272. sed 's/^/| /' conftest.$ac_ext >&5
  5273. ac_header_compiler=no
  5274. fi
  5275. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5276. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5277. echo "${ECHO_T}$ac_header_compiler" >&6
  5278. # Is the header present?
  5279. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5280. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5281. cat >conftest.$ac_ext <<_ACEOF
  5282. /* confdefs.h. */
  5283. _ACEOF
  5284. cat confdefs.h >>conftest.$ac_ext
  5285. cat >>conftest.$ac_ext <<_ACEOF
  5286. /* end confdefs.h. */
  5287. #include <$ac_header>
  5288. _ACEOF
  5289. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5290. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5291. ac_status=$?
  5292. grep -v '^ *+' conftest.er1 >conftest.err
  5293. rm -f conftest.er1
  5294. cat conftest.err >&5
  5295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5296. (exit $ac_status); } >/dev/null; then
  5297. if test -s conftest.err; then
  5298. ac_cpp_err=$ac_c_preproc_warn_flag
  5299. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5300. else
  5301. ac_cpp_err=
  5302. fi
  5303. else
  5304. ac_cpp_err=yes
  5305. fi
  5306. if test -z "$ac_cpp_err"; then
  5307. ac_header_preproc=yes
  5308. else
  5309. echo "$as_me: failed program was:" >&5
  5310. sed 's/^/| /' conftest.$ac_ext >&5
  5311. ac_header_preproc=no
  5312. fi
  5313. rm -f conftest.err conftest.$ac_ext
  5314. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5315. echo "${ECHO_T}$ac_header_preproc" >&6
  5316. # So? What about this header?
  5317. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5318. yes:no: )
  5319. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5320. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5321. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5322. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5323. ac_header_preproc=yes
  5324. ;;
  5325. no:yes:* )
  5326. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5327. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5328. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5329. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5330. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5331. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5332. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5333. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5334. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5335. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5336. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5337. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5338. (
  5339. cat <<\_ASBOX
  5340. ## ------------------------------------------ ##
  5341. ## Report this to the AC_PACKAGE_NAME lists. ##
  5342. ## ------------------------------------------ ##
  5343. _ASBOX
  5344. ) |
  5345. sed "s/^/$as_me: WARNING: /" >&2
  5346. ;;
  5347. esac
  5348. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5349. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5350. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5351. echo $ECHO_N "(cached) $ECHO_C" >&6
  5352. else
  5353. eval "$as_ac_Header=\$ac_header_preproc"
  5354. fi
  5355. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5356. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5357. fi
  5358. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5359. cat >>confdefs.h <<_ACEOF
  5360. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5361. _ACEOF
  5362. fi
  5363. done
  5364. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5365. do
  5366. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5367. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5368. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5369. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5370. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5371. echo $ECHO_N "(cached) $ECHO_C" >&6
  5372. fi
  5373. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5374. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5375. else
  5376. # Is the header compilable?
  5377. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5378. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5379. cat >conftest.$ac_ext <<_ACEOF
  5380. /* confdefs.h. */
  5381. _ACEOF
  5382. cat confdefs.h >>conftest.$ac_ext
  5383. cat >>conftest.$ac_ext <<_ACEOF
  5384. /* end confdefs.h. */
  5385. $ac_includes_default
  5386. #include <$ac_header>
  5387. _ACEOF
  5388. rm -f conftest.$ac_objext
  5389. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5390. (eval $ac_compile) 2>conftest.er1
  5391. ac_status=$?
  5392. grep -v '^ *+' conftest.er1 >conftest.err
  5393. rm -f conftest.er1
  5394. cat conftest.err >&5
  5395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5396. (exit $ac_status); } &&
  5397. { ac_try='test -z "$ac_c_werror_flag"
  5398. || test ! -s conftest.err'
  5399. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5400. (eval $ac_try) 2>&5
  5401. ac_status=$?
  5402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5403. (exit $ac_status); }; } &&
  5404. { ac_try='test -s conftest.$ac_objext'
  5405. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5406. (eval $ac_try) 2>&5
  5407. ac_status=$?
  5408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5409. (exit $ac_status); }; }; then
  5410. ac_header_compiler=yes
  5411. else
  5412. echo "$as_me: failed program was:" >&5
  5413. sed 's/^/| /' conftest.$ac_ext >&5
  5414. ac_header_compiler=no
  5415. fi
  5416. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5417. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5418. echo "${ECHO_T}$ac_header_compiler" >&6
  5419. # Is the header present?
  5420. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5421. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5422. cat >conftest.$ac_ext <<_ACEOF
  5423. /* confdefs.h. */
  5424. _ACEOF
  5425. cat confdefs.h >>conftest.$ac_ext
  5426. cat >>conftest.$ac_ext <<_ACEOF
  5427. /* end confdefs.h. */
  5428. #include <$ac_header>
  5429. _ACEOF
  5430. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5431. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5432. ac_status=$?
  5433. grep -v '^ *+' conftest.er1 >conftest.err
  5434. rm -f conftest.er1
  5435. cat conftest.err >&5
  5436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5437. (exit $ac_status); } >/dev/null; then
  5438. if test -s conftest.err; then
  5439. ac_cpp_err=$ac_c_preproc_warn_flag
  5440. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5441. else
  5442. ac_cpp_err=
  5443. fi
  5444. else
  5445. ac_cpp_err=yes
  5446. fi
  5447. if test -z "$ac_cpp_err"; then
  5448. ac_header_preproc=yes
  5449. else
  5450. echo "$as_me: failed program was:" >&5
  5451. sed 's/^/| /' conftest.$ac_ext >&5
  5452. ac_header_preproc=no
  5453. fi
  5454. rm -f conftest.err conftest.$ac_ext
  5455. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5456. echo "${ECHO_T}$ac_header_preproc" >&6
  5457. # So? What about this header?
  5458. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5459. yes:no: )
  5460. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5461. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5462. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5463. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5464. ac_header_preproc=yes
  5465. ;;
  5466. no:yes:* )
  5467. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5468. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5469. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5470. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5471. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5472. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5473. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5474. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5475. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5476. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5477. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5478. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5479. (
  5480. cat <<\_ASBOX
  5481. ## ------------------------------------------ ##
  5482. ## Report this to the AC_PACKAGE_NAME lists. ##
  5483. ## ------------------------------------------ ##
  5484. _ASBOX
  5485. ) |
  5486. sed "s/^/$as_me: WARNING: /" >&2
  5487. ;;
  5488. esac
  5489. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5490. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5491. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5492. echo $ECHO_N "(cached) $ECHO_C" >&6
  5493. else
  5494. eval "$as_ac_Header=\$ac_header_preproc"
  5495. fi
  5496. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5497. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5498. fi
  5499. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5500. cat >>confdefs.h <<_ACEOF
  5501. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5502. _ACEOF
  5503. fi
  5504. done
  5505. #checkpoint
  5506. cat >confcache <<\_ACEOF
  5507. # This file is a shell script that caches the results of configure
  5508. # tests run on this system so they can be shared between configure
  5509. # scripts and configure runs, see configure's option --config-cache.
  5510. # It is not useful on other systems. If it contains results you don't
  5511. # want to keep, you may remove or edit it.
  5512. #
  5513. # config.status only pays attention to the cache file if you give it
  5514. # the --recheck option to rerun configure.
  5515. #
  5516. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5517. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5518. # following values.
  5519. _ACEOF
  5520. # The following way of writing the cache mishandles newlines in values,
  5521. # but we know of no workaround that is simple, portable, and efficient.
  5522. # So, don't put newlines in cache variables' values.
  5523. # Ultrix sh set writes to stderr and can't be redirected directly,
  5524. # and sets the high bit in the cache file unless we assign to the vars.
  5525. {
  5526. (set) 2>&1 |
  5527. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5528. *ac_space=\ *)
  5529. # `set' does not quote correctly, so add quotes (double-quote
  5530. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5531. sed -n \
  5532. "s/'/'\\\\''/g;
  5533. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5534. ;;
  5535. *)
  5536. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5537. sed -n \
  5538. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5539. ;;
  5540. esac;
  5541. } |
  5542. sed '
  5543. t clear
  5544. : clear
  5545. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5546. t end
  5547. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5548. : end' >>confcache
  5549. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5550. if test -w $cache_file; then
  5551. test "x$cache_file" != "x/dev/null"
  5552. cat confcache >$cache_file
  5553. else
  5554. echo "not updating unwritable cache $cache_file"
  5555. fi
  5556. fi
  5557. rm -f confcache
  5558. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5559. #AC_CHECK_HEADERS(zlib.h)
  5560. #EGG_CHECK_ZLIB
  5561. #EGG_CHECK_SSL
  5562. #AC_SUBST(SSL)dnl
  5563. # Checks for typedefs, structures, and compiler characteristics
  5564. echo "$as_me:$LINENO: checking for pid_t" >&5
  5565. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  5566. if test "${ac_cv_type_pid_t+set}" = set; then
  5567. echo $ECHO_N "(cached) $ECHO_C" >&6
  5568. else
  5569. cat >conftest.$ac_ext <<_ACEOF
  5570. /* confdefs.h. */
  5571. _ACEOF
  5572. cat confdefs.h >>conftest.$ac_ext
  5573. cat >>conftest.$ac_ext <<_ACEOF
  5574. /* end confdefs.h. */
  5575. $ac_includes_default
  5576. int
  5577. main ()
  5578. {
  5579. if ((pid_t *) 0)
  5580. return 0;
  5581. if (sizeof (pid_t))
  5582. return 0;
  5583. ;
  5584. return 0;
  5585. }
  5586. _ACEOF
  5587. rm -f conftest.$ac_objext
  5588. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5589. (eval $ac_compile) 2>conftest.er1
  5590. ac_status=$?
  5591. grep -v '^ *+' conftest.er1 >conftest.err
  5592. rm -f conftest.er1
  5593. cat conftest.err >&5
  5594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5595. (exit $ac_status); } &&
  5596. { ac_try='test -z "$ac_c_werror_flag"
  5597. || test ! -s conftest.err'
  5598. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5599. (eval $ac_try) 2>&5
  5600. ac_status=$?
  5601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5602. (exit $ac_status); }; } &&
  5603. { ac_try='test -s conftest.$ac_objext'
  5604. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5605. (eval $ac_try) 2>&5
  5606. ac_status=$?
  5607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5608. (exit $ac_status); }; }; then
  5609. ac_cv_type_pid_t=yes
  5610. else
  5611. echo "$as_me: failed program was:" >&5
  5612. sed 's/^/| /' conftest.$ac_ext >&5
  5613. ac_cv_type_pid_t=no
  5614. fi
  5615. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5616. fi
  5617. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5618. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  5619. if test $ac_cv_type_pid_t = yes; then
  5620. :
  5621. else
  5622. cat >>confdefs.h <<_ACEOF
  5623. #define pid_t int
  5624. _ACEOF
  5625. fi
  5626. echo "$as_me:$LINENO: checking for size_t" >&5
  5627. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5628. if test "${ac_cv_type_size_t+set}" = set; then
  5629. echo $ECHO_N "(cached) $ECHO_C" >&6
  5630. else
  5631. cat >conftest.$ac_ext <<_ACEOF
  5632. /* confdefs.h. */
  5633. _ACEOF
  5634. cat confdefs.h >>conftest.$ac_ext
  5635. cat >>conftest.$ac_ext <<_ACEOF
  5636. /* end confdefs.h. */
  5637. $ac_includes_default
  5638. int
  5639. main ()
  5640. {
  5641. if ((size_t *) 0)
  5642. return 0;
  5643. if (sizeof (size_t))
  5644. return 0;
  5645. ;
  5646. return 0;
  5647. }
  5648. _ACEOF
  5649. rm -f conftest.$ac_objext
  5650. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5651. (eval $ac_compile) 2>conftest.er1
  5652. ac_status=$?
  5653. grep -v '^ *+' conftest.er1 >conftest.err
  5654. rm -f conftest.er1
  5655. cat conftest.err >&5
  5656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5657. (exit $ac_status); } &&
  5658. { ac_try='test -z "$ac_c_werror_flag"
  5659. || test ! -s conftest.err'
  5660. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5661. (eval $ac_try) 2>&5
  5662. ac_status=$?
  5663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5664. (exit $ac_status); }; } &&
  5665. { ac_try='test -s conftest.$ac_objext'
  5666. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5667. (eval $ac_try) 2>&5
  5668. ac_status=$?
  5669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5670. (exit $ac_status); }; }; then
  5671. ac_cv_type_size_t=yes
  5672. else
  5673. echo "$as_me: failed program was:" >&5
  5674. sed 's/^/| /' conftest.$ac_ext >&5
  5675. ac_cv_type_size_t=no
  5676. fi
  5677. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5678. fi
  5679. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5680. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5681. if test $ac_cv_type_size_t = yes; then
  5682. :
  5683. else
  5684. cat >>confdefs.h <<_ACEOF
  5685. #define size_t unsigned
  5686. _ACEOF
  5687. fi
  5688. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5689. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  5690. if test "${ac_cv_type_uid_t+set}" = set; then
  5691. echo $ECHO_N "(cached) $ECHO_C" >&6
  5692. else
  5693. cat >conftest.$ac_ext <<_ACEOF
  5694. /* confdefs.h. */
  5695. _ACEOF
  5696. cat confdefs.h >>conftest.$ac_ext
  5697. cat >>conftest.$ac_ext <<_ACEOF
  5698. /* end confdefs.h. */
  5699. #include <sys/types.h>
  5700. _ACEOF
  5701. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5702. $EGREP "uid_t" >/dev/null 2>&1; then
  5703. ac_cv_type_uid_t=yes
  5704. else
  5705. ac_cv_type_uid_t=no
  5706. fi
  5707. rm -f conftest*
  5708. fi
  5709. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5710. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  5711. if test $ac_cv_type_uid_t = no; then
  5712. cat >>confdefs.h <<\_ACEOF
  5713. #define uid_t int
  5714. _ACEOF
  5715. cat >>confdefs.h <<\_ACEOF
  5716. #define gid_t int
  5717. _ACEOF
  5718. fi
  5719. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5720. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5721. if test "${ac_cv_c_const+set}" = set; then
  5722. echo $ECHO_N "(cached) $ECHO_C" >&6
  5723. else
  5724. cat >conftest.$ac_ext <<_ACEOF
  5725. /* confdefs.h. */
  5726. _ACEOF
  5727. cat confdefs.h >>conftest.$ac_ext
  5728. cat >>conftest.$ac_ext <<_ACEOF
  5729. /* end confdefs.h. */
  5730. int
  5731. main ()
  5732. {
  5733. /* FIXME: Include the comments suggested by Paul. */
  5734. #ifndef __cplusplus
  5735. /* Ultrix mips cc rejects this. */
  5736. typedef int charset[2];
  5737. const charset x;
  5738. /* SunOS 4.1.1 cc rejects this. */
  5739. char const *const *ccp;
  5740. char **p;
  5741. /* NEC SVR4.0.2 mips cc rejects this. */
  5742. struct point {int x, y;};
  5743. static struct point const zero = {0,0};
  5744. /* AIX XL C 1.02.0.0 rejects this.
  5745. It does not let you subtract one const X* pointer from another in
  5746. an arm of an if-expression whose if-part is not a constant
  5747. expression */
  5748. const char *g = "string";
  5749. ccp = &g + (g ? g-g : 0);
  5750. /* HPUX 7.0 cc rejects these. */
  5751. ++ccp;
  5752. p = (char**) ccp;
  5753. ccp = (char const *const *) p;
  5754. { /* SCO 3.2v4 cc rejects this. */
  5755. char *t;
  5756. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5757. *t++ = 0;
  5758. }
  5759. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5760. int x[] = {25, 17};
  5761. const int *foo = &x[0];
  5762. ++foo;
  5763. }
  5764. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5765. typedef const int *iptr;
  5766. iptr p = 0;
  5767. ++p;
  5768. }
  5769. { /* AIX XL C 1.02.0.0 rejects this saying
  5770. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5771. struct s { int j; const int *ap[3]; };
  5772. struct s *b; b->j = 5;
  5773. }
  5774. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5775. const int foo = 10;
  5776. }
  5777. #endif
  5778. ;
  5779. return 0;
  5780. }
  5781. _ACEOF
  5782. rm -f conftest.$ac_objext
  5783. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5784. (eval $ac_compile) 2>conftest.er1
  5785. ac_status=$?
  5786. grep -v '^ *+' conftest.er1 >conftest.err
  5787. rm -f conftest.er1
  5788. cat conftest.err >&5
  5789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5790. (exit $ac_status); } &&
  5791. { ac_try='test -z "$ac_c_werror_flag"
  5792. || test ! -s conftest.err'
  5793. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5794. (eval $ac_try) 2>&5
  5795. ac_status=$?
  5796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5797. (exit $ac_status); }; } &&
  5798. { ac_try='test -s conftest.$ac_objext'
  5799. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5800. (eval $ac_try) 2>&5
  5801. ac_status=$?
  5802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5803. (exit $ac_status); }; }; then
  5804. ac_cv_c_const=yes
  5805. else
  5806. echo "$as_me: failed program was:" >&5
  5807. sed 's/^/| /' conftest.$ac_ext >&5
  5808. ac_cv_c_const=no
  5809. fi
  5810. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5811. fi
  5812. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5813. echo "${ECHO_T}$ac_cv_c_const" >&6
  5814. if test $ac_cv_c_const = no; then
  5815. cat >>confdefs.h <<\_ACEOF
  5816. #define const
  5817. _ACEOF
  5818. fi
  5819. echo "$as_me:$LINENO: checking for working volatile" >&5
  5820. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  5821. if test "${ac_cv_c_volatile+set}" = set; then
  5822. echo $ECHO_N "(cached) $ECHO_C" >&6
  5823. else
  5824. cat >conftest.$ac_ext <<_ACEOF
  5825. /* confdefs.h. */
  5826. _ACEOF
  5827. cat confdefs.h >>conftest.$ac_ext
  5828. cat >>conftest.$ac_ext <<_ACEOF
  5829. /* end confdefs.h. */
  5830. int
  5831. main ()
  5832. {
  5833. volatile int x;
  5834. int * volatile y;
  5835. ;
  5836. return 0;
  5837. }
  5838. _ACEOF
  5839. rm -f conftest.$ac_objext
  5840. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5841. (eval $ac_compile) 2>conftest.er1
  5842. ac_status=$?
  5843. grep -v '^ *+' conftest.er1 >conftest.err
  5844. rm -f conftest.er1
  5845. cat conftest.err >&5
  5846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5847. (exit $ac_status); } &&
  5848. { ac_try='test -z "$ac_c_werror_flag"
  5849. || test ! -s conftest.err'
  5850. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5851. (eval $ac_try) 2>&5
  5852. ac_status=$?
  5853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5854. (exit $ac_status); }; } &&
  5855. { ac_try='test -s conftest.$ac_objext'
  5856. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5857. (eval $ac_try) 2>&5
  5858. ac_status=$?
  5859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5860. (exit $ac_status); }; }; then
  5861. ac_cv_c_volatile=yes
  5862. else
  5863. echo "$as_me: failed program was:" >&5
  5864. sed 's/^/| /' conftest.$ac_ext >&5
  5865. ac_cv_c_volatile=no
  5866. fi
  5867. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5868. fi
  5869. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5870. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  5871. if test $ac_cv_c_volatile = no; then
  5872. cat >>confdefs.h <<\_ACEOF
  5873. #define volatile
  5874. _ACEOF
  5875. fi
  5876. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5877. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  5878. if test "${ac_cv_c_bigendian+set}" = set; then
  5879. echo $ECHO_N "(cached) $ECHO_C" >&6
  5880. else
  5881. # See if sys/param.h defines the BYTE_ORDER macro.
  5882. cat >conftest.$ac_ext <<_ACEOF
  5883. /* confdefs.h. */
  5884. _ACEOF
  5885. cat confdefs.h >>conftest.$ac_ext
  5886. cat >>conftest.$ac_ext <<_ACEOF
  5887. /* end confdefs.h. */
  5888. #include <sys/types.h>
  5889. #include <sys/param.h>
  5890. int
  5891. main ()
  5892. {
  5893. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  5894. bogus endian macros
  5895. #endif
  5896. ;
  5897. return 0;
  5898. }
  5899. _ACEOF
  5900. rm -f conftest.$ac_objext
  5901. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5902. (eval $ac_compile) 2>conftest.er1
  5903. ac_status=$?
  5904. grep -v '^ *+' conftest.er1 >conftest.err
  5905. rm -f conftest.er1
  5906. cat conftest.err >&5
  5907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5908. (exit $ac_status); } &&
  5909. { ac_try='test -z "$ac_c_werror_flag"
  5910. || test ! -s conftest.err'
  5911. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5912. (eval $ac_try) 2>&5
  5913. ac_status=$?
  5914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5915. (exit $ac_status); }; } &&
  5916. { ac_try='test -s conftest.$ac_objext'
  5917. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5918. (eval $ac_try) 2>&5
  5919. ac_status=$?
  5920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5921. (exit $ac_status); }; }; then
  5922. # It does; now see whether it defined to BIG_ENDIAN or not.
  5923. cat >conftest.$ac_ext <<_ACEOF
  5924. /* confdefs.h. */
  5925. _ACEOF
  5926. cat confdefs.h >>conftest.$ac_ext
  5927. cat >>conftest.$ac_ext <<_ACEOF
  5928. /* end confdefs.h. */
  5929. #include <sys/types.h>
  5930. #include <sys/param.h>
  5931. int
  5932. main ()
  5933. {
  5934. #if BYTE_ORDER != BIG_ENDIAN
  5935. not big endian
  5936. #endif
  5937. ;
  5938. return 0;
  5939. }
  5940. _ACEOF
  5941. rm -f conftest.$ac_objext
  5942. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5943. (eval $ac_compile) 2>conftest.er1
  5944. ac_status=$?
  5945. grep -v '^ *+' conftest.er1 >conftest.err
  5946. rm -f conftest.er1
  5947. cat conftest.err >&5
  5948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5949. (exit $ac_status); } &&
  5950. { ac_try='test -z "$ac_c_werror_flag"
  5951. || test ! -s conftest.err'
  5952. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5953. (eval $ac_try) 2>&5
  5954. ac_status=$?
  5955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5956. (exit $ac_status); }; } &&
  5957. { ac_try='test -s conftest.$ac_objext'
  5958. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5959. (eval $ac_try) 2>&5
  5960. ac_status=$?
  5961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5962. (exit $ac_status); }; }; then
  5963. ac_cv_c_bigendian=yes
  5964. else
  5965. echo "$as_me: failed program was:" >&5
  5966. sed 's/^/| /' conftest.$ac_ext >&5
  5967. ac_cv_c_bigendian=no
  5968. fi
  5969. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5970. else
  5971. echo "$as_me: failed program was:" >&5
  5972. sed 's/^/| /' conftest.$ac_ext >&5
  5973. # It does not; compile a test program.
  5974. if test "$cross_compiling" = yes; then
  5975. # try to guess the endianness by grepping values into an object file
  5976. ac_cv_c_bigendian=unknown
  5977. cat >conftest.$ac_ext <<_ACEOF
  5978. /* confdefs.h. */
  5979. _ACEOF
  5980. cat confdefs.h >>conftest.$ac_ext
  5981. cat >>conftest.$ac_ext <<_ACEOF
  5982. /* end confdefs.h. */
  5983. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5984. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5985. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  5986. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5987. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5988. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  5989. int
  5990. main ()
  5991. {
  5992. _ascii (); _ebcdic ();
  5993. ;
  5994. return 0;
  5995. }
  5996. _ACEOF
  5997. rm -f conftest.$ac_objext
  5998. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5999. (eval $ac_compile) 2>conftest.er1
  6000. ac_status=$?
  6001. grep -v '^ *+' conftest.er1 >conftest.err
  6002. rm -f conftest.er1
  6003. cat conftest.err >&5
  6004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6005. (exit $ac_status); } &&
  6006. { ac_try='test -z "$ac_c_werror_flag"
  6007. || test ! -s conftest.err'
  6008. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6009. (eval $ac_try) 2>&5
  6010. ac_status=$?
  6011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6012. (exit $ac_status); }; } &&
  6013. { ac_try='test -s conftest.$ac_objext'
  6014. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6015. (eval $ac_try) 2>&5
  6016. ac_status=$?
  6017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6018. (exit $ac_status); }; }; then
  6019. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  6020. ac_cv_c_bigendian=yes
  6021. fi
  6022. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6023. if test "$ac_cv_c_bigendian" = unknown; then
  6024. ac_cv_c_bigendian=no
  6025. else
  6026. # finding both strings is unlikely to happen, but who knows?
  6027. ac_cv_c_bigendian=unknown
  6028. fi
  6029. fi
  6030. else
  6031. echo "$as_me: failed program was:" >&5
  6032. sed 's/^/| /' conftest.$ac_ext >&5
  6033. fi
  6034. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6035. else
  6036. cat >conftest.$ac_ext <<_ACEOF
  6037. /* confdefs.h. */
  6038. _ACEOF
  6039. cat confdefs.h >>conftest.$ac_ext
  6040. cat >>conftest.$ac_ext <<_ACEOF
  6041. /* end confdefs.h. */
  6042. int
  6043. main ()
  6044. {
  6045. /* Are we little or big endian? From Harbison&Steele. */
  6046. union
  6047. {
  6048. long l;
  6049. char c[sizeof (long)];
  6050. } u;
  6051. u.l = 1;
  6052. exit (u.c[sizeof (long) - 1] == 1);
  6053. }
  6054. _ACEOF
  6055. rm -f conftest$ac_exeext
  6056. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6057. (eval $ac_link) 2>&5
  6058. ac_status=$?
  6059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6060. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6061. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6062. (eval $ac_try) 2>&5
  6063. ac_status=$?
  6064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6065. (exit $ac_status); }; }; then
  6066. ac_cv_c_bigendian=no
  6067. else
  6068. echo "$as_me: program exited with status $ac_status" >&5
  6069. echo "$as_me: failed program was:" >&5
  6070. sed 's/^/| /' conftest.$ac_ext >&5
  6071. ( exit $ac_status )
  6072. ac_cv_c_bigendian=yes
  6073. fi
  6074. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6075. fi
  6076. fi
  6077. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6078. fi
  6079. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6080. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  6081. case $ac_cv_c_bigendian in
  6082. yes)
  6083. cat >>confdefs.h <<\_ACEOF
  6084. #define WORDS_BIGENDIAN 1
  6085. _ACEOF
  6086. ;;
  6087. no)
  6088. ;;
  6089. *)
  6090. { { echo "$as_me:$LINENO: error: unknown endianness
  6091. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6092. echo "$as_me: error: unknown endianness
  6093. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6094. { (exit 1); exit 1; }; } ;;
  6095. esac
  6096. echo "$as_me:$LINENO: checking for inline" >&5
  6097. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  6098. if test "${ac_cv_c_inline+set}" = set; then
  6099. echo $ECHO_N "(cached) $ECHO_C" >&6
  6100. else
  6101. ac_cv_c_inline=no
  6102. for ac_kw in inline __inline__ __inline; do
  6103. cat >conftest.$ac_ext <<_ACEOF
  6104. /* confdefs.h. */
  6105. _ACEOF
  6106. cat confdefs.h >>conftest.$ac_ext
  6107. cat >>conftest.$ac_ext <<_ACEOF
  6108. /* end confdefs.h. */
  6109. #ifndef __cplusplus
  6110. typedef int foo_t;
  6111. static $ac_kw foo_t static_foo () {return 0; }
  6112. $ac_kw foo_t foo () {return 0; }
  6113. #endif
  6114. _ACEOF
  6115. rm -f conftest.$ac_objext
  6116. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6117. (eval $ac_compile) 2>conftest.er1
  6118. ac_status=$?
  6119. grep -v '^ *+' conftest.er1 >conftest.err
  6120. rm -f conftest.er1
  6121. cat conftest.err >&5
  6122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6123. (exit $ac_status); } &&
  6124. { ac_try='test -z "$ac_c_werror_flag"
  6125. || test ! -s conftest.err'
  6126. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6127. (eval $ac_try) 2>&5
  6128. ac_status=$?
  6129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6130. (exit $ac_status); }; } &&
  6131. { ac_try='test -s conftest.$ac_objext'
  6132. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6133. (eval $ac_try) 2>&5
  6134. ac_status=$?
  6135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6136. (exit $ac_status); }; }; then
  6137. ac_cv_c_inline=$ac_kw; break
  6138. else
  6139. echo "$as_me: failed program was:" >&5
  6140. sed 's/^/| /' conftest.$ac_ext >&5
  6141. fi
  6142. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6143. done
  6144. fi
  6145. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6146. echo "${ECHO_T}$ac_cv_c_inline" >&6
  6147. case $ac_cv_c_inline in
  6148. inline | yes) ;;
  6149. *)
  6150. case $ac_cv_c_inline in
  6151. no) ac_val=;;
  6152. *) ac_val=$ac_cv_c_inline;;
  6153. esac
  6154. cat >>confdefs.h <<_ACEOF
  6155. #ifndef __cplusplus
  6156. #define inline $ac_val
  6157. #endif
  6158. _ACEOF
  6159. ;;
  6160. esac
  6161. echo "$as_me:$LINENO: checking whether char is unsigned" >&5
  6162. echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
  6163. if test "${ac_cv_c_char_unsigned+set}" = set; then
  6164. echo $ECHO_N "(cached) $ECHO_C" >&6
  6165. else
  6166. cat >conftest.$ac_ext <<_ACEOF
  6167. /* confdefs.h. */
  6168. _ACEOF
  6169. cat confdefs.h >>conftest.$ac_ext
  6170. cat >>conftest.$ac_ext <<_ACEOF
  6171. /* end confdefs.h. */
  6172. $ac_includes_default
  6173. int
  6174. main ()
  6175. {
  6176. static int test_array [1 - 2 * !(((char) -1) < 0)];
  6177. test_array [0] = 0
  6178. ;
  6179. return 0;
  6180. }
  6181. _ACEOF
  6182. rm -f conftest.$ac_objext
  6183. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6184. (eval $ac_compile) 2>conftest.er1
  6185. ac_status=$?
  6186. grep -v '^ *+' conftest.er1 >conftest.err
  6187. rm -f conftest.er1
  6188. cat conftest.err >&5
  6189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6190. (exit $ac_status); } &&
  6191. { ac_try='test -z "$ac_c_werror_flag"
  6192. || test ! -s conftest.err'
  6193. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6194. (eval $ac_try) 2>&5
  6195. ac_status=$?
  6196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6197. (exit $ac_status); }; } &&
  6198. { ac_try='test -s conftest.$ac_objext'
  6199. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6200. (eval $ac_try) 2>&5
  6201. ac_status=$?
  6202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6203. (exit $ac_status); }; }; then
  6204. ac_cv_c_char_unsigned=no
  6205. else
  6206. echo "$as_me: failed program was:" >&5
  6207. sed 's/^/| /' conftest.$ac_ext >&5
  6208. ac_cv_c_char_unsigned=yes
  6209. fi
  6210. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6211. fi
  6212. echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
  6213. echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
  6214. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  6215. cat >>confdefs.h <<\_ACEOF
  6216. #define __CHAR_UNSIGNED__ 1
  6217. _ACEOF
  6218. fi
  6219. echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
  6220. echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
  6221. if test "${ac_cv_c_stringize+set}" = set; then
  6222. echo $ECHO_N "(cached) $ECHO_C" >&6
  6223. else
  6224. cat >conftest.$ac_ext <<_ACEOF
  6225. /* confdefs.h. */
  6226. _ACEOF
  6227. cat confdefs.h >>conftest.$ac_ext
  6228. cat >>conftest.$ac_ext <<_ACEOF
  6229. /* end confdefs.h. */
  6230. #define x(y) #y
  6231. char *s = x(teststring);
  6232. _ACEOF
  6233. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6234. $EGREP "#teststring" >/dev/null 2>&1; then
  6235. ac_cv_c_stringize=no
  6236. else
  6237. ac_cv_c_stringize=yes
  6238. fi
  6239. rm -f conftest*
  6240. fi
  6241. echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
  6242. echo "${ECHO_T}$ac_cv_c_stringize" >&6
  6243. if test $ac_cv_c_stringize = yes; then
  6244. cat >>confdefs.h <<\_ACEOF
  6245. #define HAVE_STRINGIZE 1
  6246. _ACEOF
  6247. fi
  6248. echo "$as_me:$LINENO: checking for function prototypes" >&5
  6249. echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
  6250. if test "$ac_cv_prog_cc_stdc" != no; then
  6251. echo "$as_me:$LINENO: result: yes" >&5
  6252. echo "${ECHO_T}yes" >&6
  6253. cat >>confdefs.h <<\_ACEOF
  6254. #define PROTOTYPES 1
  6255. _ACEOF
  6256. cat >>confdefs.h <<\_ACEOF
  6257. #define __PROTOTYPES 1
  6258. _ACEOF
  6259. else
  6260. echo "$as_me:$LINENO: result: no" >&5
  6261. echo "${ECHO_T}no" >&6
  6262. fi
  6263. #checkpoint
  6264. cat >confcache <<\_ACEOF
  6265. # This file is a shell script that caches the results of configure
  6266. # tests run on this system so they can be shared between configure
  6267. # scripts and configure runs, see configure's option --config-cache.
  6268. # It is not useful on other systems. If it contains results you don't
  6269. # want to keep, you may remove or edit it.
  6270. #
  6271. # config.status only pays attention to the cache file if you give it
  6272. # the --recheck option to rerun configure.
  6273. #
  6274. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6275. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6276. # following values.
  6277. _ACEOF
  6278. # The following way of writing the cache mishandles newlines in values,
  6279. # but we know of no workaround that is simple, portable, and efficient.
  6280. # So, don't put newlines in cache variables' values.
  6281. # Ultrix sh set writes to stderr and can't be redirected directly,
  6282. # and sets the high bit in the cache file unless we assign to the vars.
  6283. {
  6284. (set) 2>&1 |
  6285. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6286. *ac_space=\ *)
  6287. # `set' does not quote correctly, so add quotes (double-quote
  6288. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6289. sed -n \
  6290. "s/'/'\\\\''/g;
  6291. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6292. ;;
  6293. *)
  6294. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6295. sed -n \
  6296. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  6297. ;;
  6298. esac;
  6299. } |
  6300. sed '
  6301. t clear
  6302. : clear
  6303. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6304. t end
  6305. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6306. : end' >>confcache
  6307. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  6308. if test -w $cache_file; then
  6309. test "x$cache_file" != "x/dev/null"
  6310. cat confcache >$cache_file
  6311. else
  6312. echo "not updating unwritable cache $cache_file"
  6313. fi
  6314. fi
  6315. rm -f confcache
  6316. echo "$as_me:$LINENO: checking for int" >&5
  6317. echo $ECHO_N "checking for int... $ECHO_C" >&6
  6318. if test "${ac_cv_type_int+set}" = set; then
  6319. echo $ECHO_N "(cached) $ECHO_C" >&6
  6320. else
  6321. cat >conftest.$ac_ext <<_ACEOF
  6322. /* confdefs.h. */
  6323. _ACEOF
  6324. cat confdefs.h >>conftest.$ac_ext
  6325. cat >>conftest.$ac_ext <<_ACEOF
  6326. /* end confdefs.h. */
  6327. $ac_includes_default
  6328. int
  6329. main ()
  6330. {
  6331. if ((int *) 0)
  6332. return 0;
  6333. if (sizeof (int))
  6334. return 0;
  6335. ;
  6336. return 0;
  6337. }
  6338. _ACEOF
  6339. rm -f conftest.$ac_objext
  6340. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6341. (eval $ac_compile) 2>conftest.er1
  6342. ac_status=$?
  6343. grep -v '^ *+' conftest.er1 >conftest.err
  6344. rm -f conftest.er1
  6345. cat conftest.err >&5
  6346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6347. (exit $ac_status); } &&
  6348. { ac_try='test -z "$ac_c_werror_flag"
  6349. || test ! -s conftest.err'
  6350. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6351. (eval $ac_try) 2>&5
  6352. ac_status=$?
  6353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6354. (exit $ac_status); }; } &&
  6355. { ac_try='test -s conftest.$ac_objext'
  6356. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6357. (eval $ac_try) 2>&5
  6358. ac_status=$?
  6359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6360. (exit $ac_status); }; }; then
  6361. ac_cv_type_int=yes
  6362. else
  6363. echo "$as_me: failed program was:" >&5
  6364. sed 's/^/| /' conftest.$ac_ext >&5
  6365. ac_cv_type_int=no
  6366. fi
  6367. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6368. fi
  6369. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  6370. echo "${ECHO_T}$ac_cv_type_int" >&6
  6371. echo "$as_me:$LINENO: checking size of int" >&5
  6372. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  6373. if test "${ac_cv_sizeof_int+set}" = set; then
  6374. echo $ECHO_N "(cached) $ECHO_C" >&6
  6375. else
  6376. if test "$ac_cv_type_int" = yes; then
  6377. # The cast to unsigned long works around a bug in the HP C Compiler
  6378. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6379. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6380. # This bug is HP SR number 8606223364.
  6381. if test "$cross_compiling" = yes; then
  6382. # Depending upon the size, compute the lo and hi bounds.
  6383. cat >conftest.$ac_ext <<_ACEOF
  6384. /* confdefs.h. */
  6385. _ACEOF
  6386. cat confdefs.h >>conftest.$ac_ext
  6387. cat >>conftest.$ac_ext <<_ACEOF
  6388. /* end confdefs.h. */
  6389. $ac_includes_default
  6390. int
  6391. main ()
  6392. {
  6393. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  6394. test_array [0] = 0
  6395. ;
  6396. return 0;
  6397. }
  6398. _ACEOF
  6399. rm -f conftest.$ac_objext
  6400. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6401. (eval $ac_compile) 2>conftest.er1
  6402. ac_status=$?
  6403. grep -v '^ *+' conftest.er1 >conftest.err
  6404. rm -f conftest.er1
  6405. cat conftest.err >&5
  6406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6407. (exit $ac_status); } &&
  6408. { ac_try='test -z "$ac_c_werror_flag"
  6409. || test ! -s conftest.err'
  6410. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6411. (eval $ac_try) 2>&5
  6412. ac_status=$?
  6413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6414. (exit $ac_status); }; } &&
  6415. { ac_try='test -s conftest.$ac_objext'
  6416. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6417. (eval $ac_try) 2>&5
  6418. ac_status=$?
  6419. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6420. (exit $ac_status); }; }; then
  6421. ac_lo=0 ac_mid=0
  6422. while :; do
  6423. cat >conftest.$ac_ext <<_ACEOF
  6424. /* confdefs.h. */
  6425. _ACEOF
  6426. cat confdefs.h >>conftest.$ac_ext
  6427. cat >>conftest.$ac_ext <<_ACEOF
  6428. /* end confdefs.h. */
  6429. $ac_includes_default
  6430. int
  6431. main ()
  6432. {
  6433. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6434. test_array [0] = 0
  6435. ;
  6436. return 0;
  6437. }
  6438. _ACEOF
  6439. rm -f conftest.$ac_objext
  6440. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6441. (eval $ac_compile) 2>conftest.er1
  6442. ac_status=$?
  6443. grep -v '^ *+' conftest.er1 >conftest.err
  6444. rm -f conftest.er1
  6445. cat conftest.err >&5
  6446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6447. (exit $ac_status); } &&
  6448. { ac_try='test -z "$ac_c_werror_flag"
  6449. || test ! -s conftest.err'
  6450. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6451. (eval $ac_try) 2>&5
  6452. ac_status=$?
  6453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6454. (exit $ac_status); }; } &&
  6455. { ac_try='test -s conftest.$ac_objext'
  6456. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6457. (eval $ac_try) 2>&5
  6458. ac_status=$?
  6459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6460. (exit $ac_status); }; }; then
  6461. ac_hi=$ac_mid; break
  6462. else
  6463. echo "$as_me: failed program was:" >&5
  6464. sed 's/^/| /' conftest.$ac_ext >&5
  6465. ac_lo=`expr $ac_mid + 1`
  6466. if test $ac_lo -le $ac_mid; then
  6467. ac_lo= ac_hi=
  6468. break
  6469. fi
  6470. ac_mid=`expr 2 '*' $ac_mid + 1`
  6471. fi
  6472. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6473. done
  6474. else
  6475. echo "$as_me: failed program was:" >&5
  6476. sed 's/^/| /' conftest.$ac_ext >&5
  6477. cat >conftest.$ac_ext <<_ACEOF
  6478. /* confdefs.h. */
  6479. _ACEOF
  6480. cat confdefs.h >>conftest.$ac_ext
  6481. cat >>conftest.$ac_ext <<_ACEOF
  6482. /* end confdefs.h. */
  6483. $ac_includes_default
  6484. int
  6485. main ()
  6486. {
  6487. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  6488. test_array [0] = 0
  6489. ;
  6490. return 0;
  6491. }
  6492. _ACEOF
  6493. rm -f conftest.$ac_objext
  6494. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6495. (eval $ac_compile) 2>conftest.er1
  6496. ac_status=$?
  6497. grep -v '^ *+' conftest.er1 >conftest.err
  6498. rm -f conftest.er1
  6499. cat conftest.err >&5
  6500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6501. (exit $ac_status); } &&
  6502. { ac_try='test -z "$ac_c_werror_flag"
  6503. || test ! -s conftest.err'
  6504. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6505. (eval $ac_try) 2>&5
  6506. ac_status=$?
  6507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6508. (exit $ac_status); }; } &&
  6509. { ac_try='test -s conftest.$ac_objext'
  6510. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6511. (eval $ac_try) 2>&5
  6512. ac_status=$?
  6513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6514. (exit $ac_status); }; }; then
  6515. ac_hi=-1 ac_mid=-1
  6516. while :; do
  6517. cat >conftest.$ac_ext <<_ACEOF
  6518. /* confdefs.h. */
  6519. _ACEOF
  6520. cat confdefs.h >>conftest.$ac_ext
  6521. cat >>conftest.$ac_ext <<_ACEOF
  6522. /* end confdefs.h. */
  6523. $ac_includes_default
  6524. int
  6525. main ()
  6526. {
  6527. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  6528. test_array [0] = 0
  6529. ;
  6530. return 0;
  6531. }
  6532. _ACEOF
  6533. rm -f conftest.$ac_objext
  6534. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6535. (eval $ac_compile) 2>conftest.er1
  6536. ac_status=$?
  6537. grep -v '^ *+' conftest.er1 >conftest.err
  6538. rm -f conftest.er1
  6539. cat conftest.err >&5
  6540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6541. (exit $ac_status); } &&
  6542. { ac_try='test -z "$ac_c_werror_flag"
  6543. || test ! -s conftest.err'
  6544. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6545. (eval $ac_try) 2>&5
  6546. ac_status=$?
  6547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6548. (exit $ac_status); }; } &&
  6549. { ac_try='test -s conftest.$ac_objext'
  6550. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6551. (eval $ac_try) 2>&5
  6552. ac_status=$?
  6553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6554. (exit $ac_status); }; }; then
  6555. ac_lo=$ac_mid; break
  6556. else
  6557. echo "$as_me: failed program was:" >&5
  6558. sed 's/^/| /' conftest.$ac_ext >&5
  6559. ac_hi=`expr '(' $ac_mid ')' - 1`
  6560. if test $ac_mid -le $ac_hi; then
  6561. ac_lo= ac_hi=
  6562. break
  6563. fi
  6564. ac_mid=`expr 2 '*' $ac_mid`
  6565. fi
  6566. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6567. done
  6568. else
  6569. echo "$as_me: failed program was:" >&5
  6570. sed 's/^/| /' conftest.$ac_ext >&5
  6571. ac_lo= ac_hi=
  6572. fi
  6573. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6574. fi
  6575. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6576. # Binary search between lo and hi bounds.
  6577. while test "x$ac_lo" != "x$ac_hi"; do
  6578. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6579. cat >conftest.$ac_ext <<_ACEOF
  6580. /* confdefs.h. */
  6581. _ACEOF
  6582. cat confdefs.h >>conftest.$ac_ext
  6583. cat >>conftest.$ac_ext <<_ACEOF
  6584. /* end confdefs.h. */
  6585. $ac_includes_default
  6586. int
  6587. main ()
  6588. {
  6589. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6590. test_array [0] = 0
  6591. ;
  6592. return 0;
  6593. }
  6594. _ACEOF
  6595. rm -f conftest.$ac_objext
  6596. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6597. (eval $ac_compile) 2>conftest.er1
  6598. ac_status=$?
  6599. grep -v '^ *+' conftest.er1 >conftest.err
  6600. rm -f conftest.er1
  6601. cat conftest.err >&5
  6602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6603. (exit $ac_status); } &&
  6604. { ac_try='test -z "$ac_c_werror_flag"
  6605. || test ! -s conftest.err'
  6606. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6607. (eval $ac_try) 2>&5
  6608. ac_status=$?
  6609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6610. (exit $ac_status); }; } &&
  6611. { ac_try='test -s conftest.$ac_objext'
  6612. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6613. (eval $ac_try) 2>&5
  6614. ac_status=$?
  6615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6616. (exit $ac_status); }; }; then
  6617. ac_hi=$ac_mid
  6618. else
  6619. echo "$as_me: failed program was:" >&5
  6620. sed 's/^/| /' conftest.$ac_ext >&5
  6621. ac_lo=`expr '(' $ac_mid ')' + 1`
  6622. fi
  6623. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6624. done
  6625. case $ac_lo in
  6626. ?*) ac_cv_sizeof_int=$ac_lo;;
  6627. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6628. See \`config.log' for more details." >&5
  6629. echo "$as_me: error: cannot compute sizeof (int), 77
  6630. See \`config.log' for more details." >&2;}
  6631. { (exit 1); exit 1; }; } ;;
  6632. esac
  6633. else
  6634. if test "$cross_compiling" = yes; then
  6635. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  6636. See \`config.log' for more details." >&5
  6637. echo "$as_me: error: cannot run test program while cross compiling
  6638. See \`config.log' for more details." >&2;}
  6639. { (exit 1); exit 1; }; }
  6640. else
  6641. cat >conftest.$ac_ext <<_ACEOF
  6642. /* confdefs.h. */
  6643. _ACEOF
  6644. cat confdefs.h >>conftest.$ac_ext
  6645. cat >>conftest.$ac_ext <<_ACEOF
  6646. /* end confdefs.h. */
  6647. $ac_includes_default
  6648. long longval () { return (long) (sizeof (int)); }
  6649. unsigned long ulongval () { return (long) (sizeof (int)); }
  6650. #include <stdio.h>
  6651. #include <stdlib.h>
  6652. int
  6653. main ()
  6654. {
  6655. FILE *f = fopen ("conftest.val", "w");
  6656. if (! f)
  6657. exit (1);
  6658. if (((long) (sizeof (int))) < 0)
  6659. {
  6660. long i = longval ();
  6661. if (i != ((long) (sizeof (int))))
  6662. exit (1);
  6663. fprintf (f, "%ld\n", i);
  6664. }
  6665. else
  6666. {
  6667. unsigned long i = ulongval ();
  6668. if (i != ((long) (sizeof (int))))
  6669. exit (1);
  6670. fprintf (f, "%lu\n", i);
  6671. }
  6672. exit (ferror (f) || fclose (f) != 0);
  6673. ;
  6674. return 0;
  6675. }
  6676. _ACEOF
  6677. rm -f conftest$ac_exeext
  6678. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6679. (eval $ac_link) 2>&5
  6680. ac_status=$?
  6681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6682. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  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_cv_sizeof_int=`cat conftest.val`
  6689. else
  6690. echo "$as_me: program exited with status $ac_status" >&5
  6691. echo "$as_me: failed program was:" >&5
  6692. sed 's/^/| /' conftest.$ac_ext >&5
  6693. ( exit $ac_status )
  6694. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6695. See \`config.log' for more details." >&5
  6696. echo "$as_me: error: cannot compute sizeof (int), 77
  6697. See \`config.log' for more details." >&2;}
  6698. { (exit 1); exit 1; }; }
  6699. fi
  6700. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6701. fi
  6702. fi
  6703. rm -f conftest.val
  6704. else
  6705. ac_cv_sizeof_int=0
  6706. fi
  6707. fi
  6708. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  6709. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  6710. cat >>confdefs.h <<_ACEOF
  6711. #define SIZEOF_INT $ac_cv_sizeof_int
  6712. _ACEOF
  6713. echo "$as_me:$LINENO: checking for short" >&5
  6714. echo $ECHO_N "checking for short... $ECHO_C" >&6
  6715. if test "${ac_cv_type_short+set}" = set; then
  6716. echo $ECHO_N "(cached) $ECHO_C" >&6
  6717. else
  6718. cat >conftest.$ac_ext <<_ACEOF
  6719. /* confdefs.h. */
  6720. _ACEOF
  6721. cat confdefs.h >>conftest.$ac_ext
  6722. cat >>conftest.$ac_ext <<_ACEOF
  6723. /* end confdefs.h. */
  6724. $ac_includes_default
  6725. int
  6726. main ()
  6727. {
  6728. if ((short *) 0)
  6729. return 0;
  6730. if (sizeof (short))
  6731. return 0;
  6732. ;
  6733. return 0;
  6734. }
  6735. _ACEOF
  6736. rm -f conftest.$ac_objext
  6737. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6738. (eval $ac_compile) 2>conftest.er1
  6739. ac_status=$?
  6740. grep -v '^ *+' conftest.er1 >conftest.err
  6741. rm -f conftest.er1
  6742. cat conftest.err >&5
  6743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6744. (exit $ac_status); } &&
  6745. { ac_try='test -z "$ac_c_werror_flag"
  6746. || test ! -s conftest.err'
  6747. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6748. (eval $ac_try) 2>&5
  6749. ac_status=$?
  6750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6751. (exit $ac_status); }; } &&
  6752. { ac_try='test -s conftest.$ac_objext'
  6753. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6754. (eval $ac_try) 2>&5
  6755. ac_status=$?
  6756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6757. (exit $ac_status); }; }; then
  6758. ac_cv_type_short=yes
  6759. else
  6760. echo "$as_me: failed program was:" >&5
  6761. sed 's/^/| /' conftest.$ac_ext >&5
  6762. ac_cv_type_short=no
  6763. fi
  6764. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6765. fi
  6766. echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  6767. echo "${ECHO_T}$ac_cv_type_short" >&6
  6768. echo "$as_me:$LINENO: checking size of short" >&5
  6769. echo $ECHO_N "checking size of short... $ECHO_C" >&6
  6770. if test "${ac_cv_sizeof_short+set}" = set; then
  6771. echo $ECHO_N "(cached) $ECHO_C" >&6
  6772. else
  6773. if test "$ac_cv_type_short" = yes; then
  6774. # The cast to unsigned long works around a bug in the HP C Compiler
  6775. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6776. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6777. # This bug is HP SR number 8606223364.
  6778. if test "$cross_compiling" = yes; then
  6779. # Depending upon the size, compute the lo and hi bounds.
  6780. cat >conftest.$ac_ext <<_ACEOF
  6781. /* confdefs.h. */
  6782. _ACEOF
  6783. cat confdefs.h >>conftest.$ac_ext
  6784. cat >>conftest.$ac_ext <<_ACEOF
  6785. /* end confdefs.h. */
  6786. $ac_includes_default
  6787. int
  6788. main ()
  6789. {
  6790. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
  6791. test_array [0] = 0
  6792. ;
  6793. return 0;
  6794. }
  6795. _ACEOF
  6796. rm -f conftest.$ac_objext
  6797. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6798. (eval $ac_compile) 2>conftest.er1
  6799. ac_status=$?
  6800. grep -v '^ *+' conftest.er1 >conftest.err
  6801. rm -f conftest.er1
  6802. cat conftest.err >&5
  6803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6804. (exit $ac_status); } &&
  6805. { ac_try='test -z "$ac_c_werror_flag"
  6806. || test ! -s conftest.err'
  6807. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6808. (eval $ac_try) 2>&5
  6809. ac_status=$?
  6810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6811. (exit $ac_status); }; } &&
  6812. { ac_try='test -s conftest.$ac_objext'
  6813. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6814. (eval $ac_try) 2>&5
  6815. ac_status=$?
  6816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6817. (exit $ac_status); }; }; then
  6818. ac_lo=0 ac_mid=0
  6819. while :; do
  6820. cat >conftest.$ac_ext <<_ACEOF
  6821. /* confdefs.h. */
  6822. _ACEOF
  6823. cat confdefs.h >>conftest.$ac_ext
  6824. cat >>conftest.$ac_ext <<_ACEOF
  6825. /* end confdefs.h. */
  6826. $ac_includes_default
  6827. int
  6828. main ()
  6829. {
  6830. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  6831. test_array [0] = 0
  6832. ;
  6833. return 0;
  6834. }
  6835. _ACEOF
  6836. rm -f conftest.$ac_objext
  6837. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6838. (eval $ac_compile) 2>conftest.er1
  6839. ac_status=$?
  6840. grep -v '^ *+' conftest.er1 >conftest.err
  6841. rm -f conftest.er1
  6842. cat conftest.err >&5
  6843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6844. (exit $ac_status); } &&
  6845. { ac_try='test -z "$ac_c_werror_flag"
  6846. || test ! -s conftest.err'
  6847. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6848. (eval $ac_try) 2>&5
  6849. ac_status=$?
  6850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6851. (exit $ac_status); }; } &&
  6852. { ac_try='test -s conftest.$ac_objext'
  6853. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6854. (eval $ac_try) 2>&5
  6855. ac_status=$?
  6856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6857. (exit $ac_status); }; }; then
  6858. ac_hi=$ac_mid; break
  6859. else
  6860. echo "$as_me: failed program was:" >&5
  6861. sed 's/^/| /' conftest.$ac_ext >&5
  6862. ac_lo=`expr $ac_mid + 1`
  6863. if test $ac_lo -le $ac_mid; then
  6864. ac_lo= ac_hi=
  6865. break
  6866. fi
  6867. ac_mid=`expr 2 '*' $ac_mid + 1`
  6868. fi
  6869. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6870. done
  6871. else
  6872. echo "$as_me: failed program was:" >&5
  6873. sed 's/^/| /' conftest.$ac_ext >&5
  6874. cat >conftest.$ac_ext <<_ACEOF
  6875. /* confdefs.h. */
  6876. _ACEOF
  6877. cat confdefs.h >>conftest.$ac_ext
  6878. cat >>conftest.$ac_ext <<_ACEOF
  6879. /* end confdefs.h. */
  6880. $ac_includes_default
  6881. int
  6882. main ()
  6883. {
  6884. static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
  6885. test_array [0] = 0
  6886. ;
  6887. return 0;
  6888. }
  6889. _ACEOF
  6890. rm -f conftest.$ac_objext
  6891. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6892. (eval $ac_compile) 2>conftest.er1
  6893. ac_status=$?
  6894. grep -v '^ *+' conftest.er1 >conftest.err
  6895. rm -f conftest.er1
  6896. cat conftest.err >&5
  6897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6898. (exit $ac_status); } &&
  6899. { ac_try='test -z "$ac_c_werror_flag"
  6900. || test ! -s conftest.err'
  6901. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6902. (eval $ac_try) 2>&5
  6903. ac_status=$?
  6904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6905. (exit $ac_status); }; } &&
  6906. { ac_try='test -s conftest.$ac_objext'
  6907. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6908. (eval $ac_try) 2>&5
  6909. ac_status=$?
  6910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6911. (exit $ac_status); }; }; then
  6912. ac_hi=-1 ac_mid=-1
  6913. while :; do
  6914. cat >conftest.$ac_ext <<_ACEOF
  6915. /* confdefs.h. */
  6916. _ACEOF
  6917. cat confdefs.h >>conftest.$ac_ext
  6918. cat >>conftest.$ac_ext <<_ACEOF
  6919. /* end confdefs.h. */
  6920. $ac_includes_default
  6921. int
  6922. main ()
  6923. {
  6924. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
  6925. test_array [0] = 0
  6926. ;
  6927. return 0;
  6928. }
  6929. _ACEOF
  6930. rm -f conftest.$ac_objext
  6931. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6932. (eval $ac_compile) 2>conftest.er1
  6933. ac_status=$?
  6934. grep -v '^ *+' conftest.er1 >conftest.err
  6935. rm -f conftest.er1
  6936. cat conftest.err >&5
  6937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6938. (exit $ac_status); } &&
  6939. { ac_try='test -z "$ac_c_werror_flag"
  6940. || test ! -s conftest.err'
  6941. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6942. (eval $ac_try) 2>&5
  6943. ac_status=$?
  6944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6945. (exit $ac_status); }; } &&
  6946. { ac_try='test -s conftest.$ac_objext'
  6947. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6948. (eval $ac_try) 2>&5
  6949. ac_status=$?
  6950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6951. (exit $ac_status); }; }; then
  6952. ac_lo=$ac_mid; break
  6953. else
  6954. echo "$as_me: failed program was:" >&5
  6955. sed 's/^/| /' conftest.$ac_ext >&5
  6956. ac_hi=`expr '(' $ac_mid ')' - 1`
  6957. if test $ac_mid -le $ac_hi; then
  6958. ac_lo= ac_hi=
  6959. break
  6960. fi
  6961. ac_mid=`expr 2 '*' $ac_mid`
  6962. fi
  6963. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6964. done
  6965. else
  6966. echo "$as_me: failed program was:" >&5
  6967. sed 's/^/| /' conftest.$ac_ext >&5
  6968. ac_lo= ac_hi=
  6969. fi
  6970. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6971. fi
  6972. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6973. # Binary search between lo and hi bounds.
  6974. while test "x$ac_lo" != "x$ac_hi"; do
  6975. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6976. cat >conftest.$ac_ext <<_ACEOF
  6977. /* confdefs.h. */
  6978. _ACEOF
  6979. cat confdefs.h >>conftest.$ac_ext
  6980. cat >>conftest.$ac_ext <<_ACEOF
  6981. /* end confdefs.h. */
  6982. $ac_includes_default
  6983. int
  6984. main ()
  6985. {
  6986. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  6987. test_array [0] = 0
  6988. ;
  6989. return 0;
  6990. }
  6991. _ACEOF
  6992. rm -f conftest.$ac_objext
  6993. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6994. (eval $ac_compile) 2>conftest.er1
  6995. ac_status=$?
  6996. grep -v '^ *+' conftest.er1 >conftest.err
  6997. rm -f conftest.er1
  6998. cat conftest.err >&5
  6999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7000. (exit $ac_status); } &&
  7001. { ac_try='test -z "$ac_c_werror_flag"
  7002. || test ! -s conftest.err'
  7003. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7004. (eval $ac_try) 2>&5
  7005. ac_status=$?
  7006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7007. (exit $ac_status); }; } &&
  7008. { ac_try='test -s conftest.$ac_objext'
  7009. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7010. (eval $ac_try) 2>&5
  7011. ac_status=$?
  7012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7013. (exit $ac_status); }; }; then
  7014. ac_hi=$ac_mid
  7015. else
  7016. echo "$as_me: failed program was:" >&5
  7017. sed 's/^/| /' conftest.$ac_ext >&5
  7018. ac_lo=`expr '(' $ac_mid ')' + 1`
  7019. fi
  7020. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7021. done
  7022. case $ac_lo in
  7023. ?*) ac_cv_sizeof_short=$ac_lo;;
  7024. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  7025. See \`config.log' for more details." >&5
  7026. echo "$as_me: error: cannot compute sizeof (short), 77
  7027. See \`config.log' for more details." >&2;}
  7028. { (exit 1); exit 1; }; } ;;
  7029. esac
  7030. else
  7031. if test "$cross_compiling" = yes; then
  7032. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  7033. See \`config.log' for more details." >&5
  7034. echo "$as_me: error: cannot run test program while cross compiling
  7035. See \`config.log' for more details." >&2;}
  7036. { (exit 1); exit 1; }; }
  7037. else
  7038. cat >conftest.$ac_ext <<_ACEOF
  7039. /* confdefs.h. */
  7040. _ACEOF
  7041. cat confdefs.h >>conftest.$ac_ext
  7042. cat >>conftest.$ac_ext <<_ACEOF
  7043. /* end confdefs.h. */
  7044. $ac_includes_default
  7045. long longval () { return (long) (sizeof (short)); }
  7046. unsigned long ulongval () { return (long) (sizeof (short)); }
  7047. #include <stdio.h>
  7048. #include <stdlib.h>
  7049. int
  7050. main ()
  7051. {
  7052. FILE *f = fopen ("conftest.val", "w");
  7053. if (! f)
  7054. exit (1);
  7055. if (((long) (sizeof (short))) < 0)
  7056. {
  7057. long i = longval ();
  7058. if (i != ((long) (sizeof (short))))
  7059. exit (1);
  7060. fprintf (f, "%ld\n", i);
  7061. }
  7062. else
  7063. {
  7064. unsigned long i = ulongval ();
  7065. if (i != ((long) (sizeof (short))))
  7066. exit (1);
  7067. fprintf (f, "%lu\n", i);
  7068. }
  7069. exit (ferror (f) || fclose (f) != 0);
  7070. ;
  7071. return 0;
  7072. }
  7073. _ACEOF
  7074. rm -f conftest$ac_exeext
  7075. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7076. (eval $ac_link) 2>&5
  7077. ac_status=$?
  7078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7079. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7080. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7081. (eval $ac_try) 2>&5
  7082. ac_status=$?
  7083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7084. (exit $ac_status); }; }; then
  7085. ac_cv_sizeof_short=`cat conftest.val`
  7086. else
  7087. echo "$as_me: program exited with status $ac_status" >&5
  7088. echo "$as_me: failed program was:" >&5
  7089. sed 's/^/| /' conftest.$ac_ext >&5
  7090. ( exit $ac_status )
  7091. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  7092. See \`config.log' for more details." >&5
  7093. echo "$as_me: error: cannot compute sizeof (short), 77
  7094. See \`config.log' for more details." >&2;}
  7095. { (exit 1); exit 1; }; }
  7096. fi
  7097. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7098. fi
  7099. fi
  7100. rm -f conftest.val
  7101. else
  7102. ac_cv_sizeof_short=0
  7103. fi
  7104. fi
  7105. echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  7106. echo "${ECHO_T}$ac_cv_sizeof_short" >&6
  7107. cat >>confdefs.h <<_ACEOF
  7108. #define SIZEOF_SHORT $ac_cv_sizeof_short
  7109. _ACEOF
  7110. echo "$as_me:$LINENO: checking for long" >&5
  7111. echo $ECHO_N "checking for long... $ECHO_C" >&6
  7112. if test "${ac_cv_type_long+set}" = set; then
  7113. echo $ECHO_N "(cached) $ECHO_C" >&6
  7114. else
  7115. cat >conftest.$ac_ext <<_ACEOF
  7116. /* confdefs.h. */
  7117. _ACEOF
  7118. cat confdefs.h >>conftest.$ac_ext
  7119. cat >>conftest.$ac_ext <<_ACEOF
  7120. /* end confdefs.h. */
  7121. $ac_includes_default
  7122. int
  7123. main ()
  7124. {
  7125. if ((long *) 0)
  7126. return 0;
  7127. if (sizeof (long))
  7128. return 0;
  7129. ;
  7130. return 0;
  7131. }
  7132. _ACEOF
  7133. rm -f conftest.$ac_objext
  7134. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7135. (eval $ac_compile) 2>conftest.er1
  7136. ac_status=$?
  7137. grep -v '^ *+' conftest.er1 >conftest.err
  7138. rm -f conftest.er1
  7139. cat conftest.err >&5
  7140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7141. (exit $ac_status); } &&
  7142. { ac_try='test -z "$ac_c_werror_flag"
  7143. || test ! -s conftest.err'
  7144. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7145. (eval $ac_try) 2>&5
  7146. ac_status=$?
  7147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7148. (exit $ac_status); }; } &&
  7149. { ac_try='test -s conftest.$ac_objext'
  7150. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7151. (eval $ac_try) 2>&5
  7152. ac_status=$?
  7153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7154. (exit $ac_status); }; }; then
  7155. ac_cv_type_long=yes
  7156. else
  7157. echo "$as_me: failed program was:" >&5
  7158. sed 's/^/| /' conftest.$ac_ext >&5
  7159. ac_cv_type_long=no
  7160. fi
  7161. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7162. fi
  7163. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  7164. echo "${ECHO_T}$ac_cv_type_long" >&6
  7165. echo "$as_me:$LINENO: checking size of long" >&5
  7166. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  7167. if test "${ac_cv_sizeof_long+set}" = set; then
  7168. echo $ECHO_N "(cached) $ECHO_C" >&6
  7169. else
  7170. if test "$ac_cv_type_long" = yes; then
  7171. # The cast to unsigned long works around a bug in the HP C Compiler
  7172. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7173. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7174. # This bug is HP SR number 8606223364.
  7175. if test "$cross_compiling" = yes; then
  7176. # Depending upon the size, compute the lo and hi bounds.
  7177. cat >conftest.$ac_ext <<_ACEOF
  7178. /* confdefs.h. */
  7179. _ACEOF
  7180. cat confdefs.h >>conftest.$ac_ext
  7181. cat >>conftest.$ac_ext <<_ACEOF
  7182. /* end confdefs.h. */
  7183. $ac_includes_default
  7184. int
  7185. main ()
  7186. {
  7187. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  7188. test_array [0] = 0
  7189. ;
  7190. return 0;
  7191. }
  7192. _ACEOF
  7193. rm -f conftest.$ac_objext
  7194. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7195. (eval $ac_compile) 2>conftest.er1
  7196. ac_status=$?
  7197. grep -v '^ *+' conftest.er1 >conftest.err
  7198. rm -f conftest.er1
  7199. cat conftest.err >&5
  7200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7201. (exit $ac_status); } &&
  7202. { ac_try='test -z "$ac_c_werror_flag"
  7203. || test ! -s conftest.err'
  7204. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7205. (eval $ac_try) 2>&5
  7206. ac_status=$?
  7207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7208. (exit $ac_status); }; } &&
  7209. { ac_try='test -s conftest.$ac_objext'
  7210. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7211. (eval $ac_try) 2>&5
  7212. ac_status=$?
  7213. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7214. (exit $ac_status); }; }; then
  7215. ac_lo=0 ac_mid=0
  7216. while :; do
  7217. cat >conftest.$ac_ext <<_ACEOF
  7218. /* confdefs.h. */
  7219. _ACEOF
  7220. cat confdefs.h >>conftest.$ac_ext
  7221. cat >>conftest.$ac_ext <<_ACEOF
  7222. /* end confdefs.h. */
  7223. $ac_includes_default
  7224. int
  7225. main ()
  7226. {
  7227. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  7228. test_array [0] = 0
  7229. ;
  7230. return 0;
  7231. }
  7232. _ACEOF
  7233. rm -f conftest.$ac_objext
  7234. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7235. (eval $ac_compile) 2>conftest.er1
  7236. ac_status=$?
  7237. grep -v '^ *+' conftest.er1 >conftest.err
  7238. rm -f conftest.er1
  7239. cat conftest.err >&5
  7240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7241. (exit $ac_status); } &&
  7242. { ac_try='test -z "$ac_c_werror_flag"
  7243. || test ! -s conftest.err'
  7244. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7245. (eval $ac_try) 2>&5
  7246. ac_status=$?
  7247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7248. (exit $ac_status); }; } &&
  7249. { ac_try='test -s conftest.$ac_objext'
  7250. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7251. (eval $ac_try) 2>&5
  7252. ac_status=$?
  7253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7254. (exit $ac_status); }; }; then
  7255. ac_hi=$ac_mid; break
  7256. else
  7257. echo "$as_me: failed program was:" >&5
  7258. sed 's/^/| /' conftest.$ac_ext >&5
  7259. ac_lo=`expr $ac_mid + 1`
  7260. if test $ac_lo -le $ac_mid; then
  7261. ac_lo= ac_hi=
  7262. break
  7263. fi
  7264. ac_mid=`expr 2 '*' $ac_mid + 1`
  7265. fi
  7266. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7267. done
  7268. else
  7269. echo "$as_me: failed program was:" >&5
  7270. sed 's/^/| /' conftest.$ac_ext >&5
  7271. cat >conftest.$ac_ext <<_ACEOF
  7272. /* confdefs.h. */
  7273. _ACEOF
  7274. cat confdefs.h >>conftest.$ac_ext
  7275. cat >>conftest.$ac_ext <<_ACEOF
  7276. /* end confdefs.h. */
  7277. $ac_includes_default
  7278. int
  7279. main ()
  7280. {
  7281. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  7282. test_array [0] = 0
  7283. ;
  7284. return 0;
  7285. }
  7286. _ACEOF
  7287. rm -f conftest.$ac_objext
  7288. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7289. (eval $ac_compile) 2>conftest.er1
  7290. ac_status=$?
  7291. grep -v '^ *+' conftest.er1 >conftest.err
  7292. rm -f conftest.er1
  7293. cat conftest.err >&5
  7294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7295. (exit $ac_status); } &&
  7296. { ac_try='test -z "$ac_c_werror_flag"
  7297. || test ! -s conftest.err'
  7298. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7299. (eval $ac_try) 2>&5
  7300. ac_status=$?
  7301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7302. (exit $ac_status); }; } &&
  7303. { ac_try='test -s conftest.$ac_objext'
  7304. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7305. (eval $ac_try) 2>&5
  7306. ac_status=$?
  7307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7308. (exit $ac_status); }; }; then
  7309. ac_hi=-1 ac_mid=-1
  7310. while :; do
  7311. cat >conftest.$ac_ext <<_ACEOF
  7312. /* confdefs.h. */
  7313. _ACEOF
  7314. cat confdefs.h >>conftest.$ac_ext
  7315. cat >>conftest.$ac_ext <<_ACEOF
  7316. /* end confdefs.h. */
  7317. $ac_includes_default
  7318. int
  7319. main ()
  7320. {
  7321. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  7322. test_array [0] = 0
  7323. ;
  7324. return 0;
  7325. }
  7326. _ACEOF
  7327. rm -f conftest.$ac_objext
  7328. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7329. (eval $ac_compile) 2>conftest.er1
  7330. ac_status=$?
  7331. grep -v '^ *+' conftest.er1 >conftest.err
  7332. rm -f conftest.er1
  7333. cat conftest.err >&5
  7334. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7335. (exit $ac_status); } &&
  7336. { ac_try='test -z "$ac_c_werror_flag"
  7337. || test ! -s conftest.err'
  7338. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7339. (eval $ac_try) 2>&5
  7340. ac_status=$?
  7341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7342. (exit $ac_status); }; } &&
  7343. { ac_try='test -s conftest.$ac_objext'
  7344. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7345. (eval $ac_try) 2>&5
  7346. ac_status=$?
  7347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7348. (exit $ac_status); }; }; then
  7349. ac_lo=$ac_mid; break
  7350. else
  7351. echo "$as_me: failed program was:" >&5
  7352. sed 's/^/| /' conftest.$ac_ext >&5
  7353. ac_hi=`expr '(' $ac_mid ')' - 1`
  7354. if test $ac_mid -le $ac_hi; then
  7355. ac_lo= ac_hi=
  7356. break
  7357. fi
  7358. ac_mid=`expr 2 '*' $ac_mid`
  7359. fi
  7360. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7361. done
  7362. else
  7363. echo "$as_me: failed program was:" >&5
  7364. sed 's/^/| /' conftest.$ac_ext >&5
  7365. ac_lo= ac_hi=
  7366. fi
  7367. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7368. fi
  7369. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7370. # Binary search between lo and hi bounds.
  7371. while test "x$ac_lo" != "x$ac_hi"; do
  7372. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7373. cat >conftest.$ac_ext <<_ACEOF
  7374. /* confdefs.h. */
  7375. _ACEOF
  7376. cat confdefs.h >>conftest.$ac_ext
  7377. cat >>conftest.$ac_ext <<_ACEOF
  7378. /* end confdefs.h. */
  7379. $ac_includes_default
  7380. int
  7381. main ()
  7382. {
  7383. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  7384. test_array [0] = 0
  7385. ;
  7386. return 0;
  7387. }
  7388. _ACEOF
  7389. rm -f conftest.$ac_objext
  7390. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7391. (eval $ac_compile) 2>conftest.er1
  7392. ac_status=$?
  7393. grep -v '^ *+' conftest.er1 >conftest.err
  7394. rm -f conftest.er1
  7395. cat conftest.err >&5
  7396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7397. (exit $ac_status); } &&
  7398. { ac_try='test -z "$ac_c_werror_flag"
  7399. || test ! -s conftest.err'
  7400. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7401. (eval $ac_try) 2>&5
  7402. ac_status=$?
  7403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7404. (exit $ac_status); }; } &&
  7405. { ac_try='test -s conftest.$ac_objext'
  7406. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7407. (eval $ac_try) 2>&5
  7408. ac_status=$?
  7409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7410. (exit $ac_status); }; }; then
  7411. ac_hi=$ac_mid
  7412. else
  7413. echo "$as_me: failed program was:" >&5
  7414. sed 's/^/| /' conftest.$ac_ext >&5
  7415. ac_lo=`expr '(' $ac_mid ')' + 1`
  7416. fi
  7417. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7418. done
  7419. case $ac_lo in
  7420. ?*) ac_cv_sizeof_long=$ac_lo;;
  7421. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  7422. See \`config.log' for more details." >&5
  7423. echo "$as_me: error: cannot compute sizeof (long), 77
  7424. See \`config.log' for more details." >&2;}
  7425. { (exit 1); exit 1; }; } ;;
  7426. esac
  7427. else
  7428. if test "$cross_compiling" = yes; then
  7429. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  7430. See \`config.log' for more details." >&5
  7431. echo "$as_me: error: cannot run test program while cross compiling
  7432. See \`config.log' for more details." >&2;}
  7433. { (exit 1); exit 1; }; }
  7434. else
  7435. cat >conftest.$ac_ext <<_ACEOF
  7436. /* confdefs.h. */
  7437. _ACEOF
  7438. cat confdefs.h >>conftest.$ac_ext
  7439. cat >>conftest.$ac_ext <<_ACEOF
  7440. /* end confdefs.h. */
  7441. $ac_includes_default
  7442. long longval () { return (long) (sizeof (long)); }
  7443. unsigned long ulongval () { return (long) (sizeof (long)); }
  7444. #include <stdio.h>
  7445. #include <stdlib.h>
  7446. int
  7447. main ()
  7448. {
  7449. FILE *f = fopen ("conftest.val", "w");
  7450. if (! f)
  7451. exit (1);
  7452. if (((long) (sizeof (long))) < 0)
  7453. {
  7454. long i = longval ();
  7455. if (i != ((long) (sizeof (long))))
  7456. exit (1);
  7457. fprintf (f, "%ld\n", i);
  7458. }
  7459. else
  7460. {
  7461. unsigned long i = ulongval ();
  7462. if (i != ((long) (sizeof (long))))
  7463. exit (1);
  7464. fprintf (f, "%lu\n", i);
  7465. }
  7466. exit (ferror (f) || fclose (f) != 0);
  7467. ;
  7468. return 0;
  7469. }
  7470. _ACEOF
  7471. rm -f conftest$ac_exeext
  7472. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7473. (eval $ac_link) 2>&5
  7474. ac_status=$?
  7475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7476. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7477. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7478. (eval $ac_try) 2>&5
  7479. ac_status=$?
  7480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7481. (exit $ac_status); }; }; then
  7482. ac_cv_sizeof_long=`cat conftest.val`
  7483. else
  7484. echo "$as_me: program exited with status $ac_status" >&5
  7485. echo "$as_me: failed program was:" >&5
  7486. sed 's/^/| /' conftest.$ac_ext >&5
  7487. ( exit $ac_status )
  7488. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  7489. See \`config.log' for more details." >&5
  7490. echo "$as_me: error: cannot compute sizeof (long), 77
  7491. See \`config.log' for more details." >&2;}
  7492. { (exit 1); exit 1; }; }
  7493. fi
  7494. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7495. fi
  7496. fi
  7497. rm -f conftest.val
  7498. else
  7499. ac_cv_sizeof_long=0
  7500. fi
  7501. fi
  7502. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  7503. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  7504. cat >>confdefs.h <<_ACEOF
  7505. #define SIZEOF_LONG $ac_cv_sizeof_long
  7506. _ACEOF
  7507. echo "$as_me:$LINENO: checking for long long" >&5
  7508. echo $ECHO_N "checking for long long... $ECHO_C" >&6
  7509. if test "${ac_cv_type_long_long+set}" = set; then
  7510. echo $ECHO_N "(cached) $ECHO_C" >&6
  7511. else
  7512. cat >conftest.$ac_ext <<_ACEOF
  7513. /* confdefs.h. */
  7514. _ACEOF
  7515. cat confdefs.h >>conftest.$ac_ext
  7516. cat >>conftest.$ac_ext <<_ACEOF
  7517. /* end confdefs.h. */
  7518. $ac_includes_default
  7519. int
  7520. main ()
  7521. {
  7522. if ((long long *) 0)
  7523. return 0;
  7524. if (sizeof (long long))
  7525. return 0;
  7526. ;
  7527. return 0;
  7528. }
  7529. _ACEOF
  7530. rm -f conftest.$ac_objext
  7531. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7532. (eval $ac_compile) 2>conftest.er1
  7533. ac_status=$?
  7534. grep -v '^ *+' conftest.er1 >conftest.err
  7535. rm -f conftest.er1
  7536. cat conftest.err >&5
  7537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7538. (exit $ac_status); } &&
  7539. { ac_try='test -z "$ac_c_werror_flag"
  7540. || test ! -s conftest.err'
  7541. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7542. (eval $ac_try) 2>&5
  7543. ac_status=$?
  7544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7545. (exit $ac_status); }; } &&
  7546. { ac_try='test -s conftest.$ac_objext'
  7547. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7548. (eval $ac_try) 2>&5
  7549. ac_status=$?
  7550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7551. (exit $ac_status); }; }; then
  7552. ac_cv_type_long_long=yes
  7553. else
  7554. echo "$as_me: failed program was:" >&5
  7555. sed 's/^/| /' conftest.$ac_ext >&5
  7556. ac_cv_type_long_long=no
  7557. fi
  7558. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7559. fi
  7560. echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  7561. echo "${ECHO_T}$ac_cv_type_long_long" >&6
  7562. echo "$as_me:$LINENO: checking size of long long" >&5
  7563. echo $ECHO_N "checking size of long long... $ECHO_C" >&6
  7564. if test "${ac_cv_sizeof_long_long+set}" = set; then
  7565. echo $ECHO_N "(cached) $ECHO_C" >&6
  7566. else
  7567. if test "$ac_cv_type_long_long" = yes; then
  7568. # The cast to unsigned long works around a bug in the HP C Compiler
  7569. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7570. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7571. # This bug is HP SR number 8606223364.
  7572. if test "$cross_compiling" = yes; then
  7573. # Depending upon the size, compute the lo and hi bounds.
  7574. cat >conftest.$ac_ext <<_ACEOF
  7575. /* confdefs.h. */
  7576. _ACEOF
  7577. cat confdefs.h >>conftest.$ac_ext
  7578. cat >>conftest.$ac_ext <<_ACEOF
  7579. /* end confdefs.h. */
  7580. $ac_includes_default
  7581. int
  7582. main ()
  7583. {
  7584. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
  7585. test_array [0] = 0
  7586. ;
  7587. return 0;
  7588. }
  7589. _ACEOF
  7590. rm -f conftest.$ac_objext
  7591. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7592. (eval $ac_compile) 2>conftest.er1
  7593. ac_status=$?
  7594. grep -v '^ *+' conftest.er1 >conftest.err
  7595. rm -f conftest.er1
  7596. cat conftest.err >&5
  7597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7598. (exit $ac_status); } &&
  7599. { ac_try='test -z "$ac_c_werror_flag"
  7600. || test ! -s conftest.err'
  7601. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7602. (eval $ac_try) 2>&5
  7603. ac_status=$?
  7604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7605. (exit $ac_status); }; } &&
  7606. { ac_try='test -s conftest.$ac_objext'
  7607. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7608. (eval $ac_try) 2>&5
  7609. ac_status=$?
  7610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7611. (exit $ac_status); }; }; then
  7612. ac_lo=0 ac_mid=0
  7613. while :; do
  7614. cat >conftest.$ac_ext <<_ACEOF
  7615. /* confdefs.h. */
  7616. _ACEOF
  7617. cat confdefs.h >>conftest.$ac_ext
  7618. cat >>conftest.$ac_ext <<_ACEOF
  7619. /* end confdefs.h. */
  7620. $ac_includes_default
  7621. int
  7622. main ()
  7623. {
  7624. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  7625. test_array [0] = 0
  7626. ;
  7627. return 0;
  7628. }
  7629. _ACEOF
  7630. rm -f conftest.$ac_objext
  7631. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7632. (eval $ac_compile) 2>conftest.er1
  7633. ac_status=$?
  7634. grep -v '^ *+' conftest.er1 >conftest.err
  7635. rm -f conftest.er1
  7636. cat conftest.err >&5
  7637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7638. (exit $ac_status); } &&
  7639. { ac_try='test -z "$ac_c_werror_flag"
  7640. || test ! -s conftest.err'
  7641. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7642. (eval $ac_try) 2>&5
  7643. ac_status=$?
  7644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7645. (exit $ac_status); }; } &&
  7646. { ac_try='test -s conftest.$ac_objext'
  7647. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7648. (eval $ac_try) 2>&5
  7649. ac_status=$?
  7650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7651. (exit $ac_status); }; }; then
  7652. ac_hi=$ac_mid; break
  7653. else
  7654. echo "$as_me: failed program was:" >&5
  7655. sed 's/^/| /' conftest.$ac_ext >&5
  7656. ac_lo=`expr $ac_mid + 1`
  7657. if test $ac_lo -le $ac_mid; then
  7658. ac_lo= ac_hi=
  7659. break
  7660. fi
  7661. ac_mid=`expr 2 '*' $ac_mid + 1`
  7662. fi
  7663. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7664. done
  7665. else
  7666. echo "$as_me: failed program was:" >&5
  7667. sed 's/^/| /' conftest.$ac_ext >&5
  7668. cat >conftest.$ac_ext <<_ACEOF
  7669. /* confdefs.h. */
  7670. _ACEOF
  7671. cat confdefs.h >>conftest.$ac_ext
  7672. cat >>conftest.$ac_ext <<_ACEOF
  7673. /* end confdefs.h. */
  7674. $ac_includes_default
  7675. int
  7676. main ()
  7677. {
  7678. static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
  7679. test_array [0] = 0
  7680. ;
  7681. return 0;
  7682. }
  7683. _ACEOF
  7684. rm -f conftest.$ac_objext
  7685. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7686. (eval $ac_compile) 2>conftest.er1
  7687. ac_status=$?
  7688. grep -v '^ *+' conftest.er1 >conftest.err
  7689. rm -f conftest.er1
  7690. cat conftest.err >&5
  7691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7692. (exit $ac_status); } &&
  7693. { ac_try='test -z "$ac_c_werror_flag"
  7694. || test ! -s conftest.err'
  7695. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7696. (eval $ac_try) 2>&5
  7697. ac_status=$?
  7698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7699. (exit $ac_status); }; } &&
  7700. { ac_try='test -s conftest.$ac_objext'
  7701. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7702. (eval $ac_try) 2>&5
  7703. ac_status=$?
  7704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7705. (exit $ac_status); }; }; then
  7706. ac_hi=-1 ac_mid=-1
  7707. while :; do
  7708. cat >conftest.$ac_ext <<_ACEOF
  7709. /* confdefs.h. */
  7710. _ACEOF
  7711. cat confdefs.h >>conftest.$ac_ext
  7712. cat >>conftest.$ac_ext <<_ACEOF
  7713. /* end confdefs.h. */
  7714. $ac_includes_default
  7715. int
  7716. main ()
  7717. {
  7718. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
  7719. test_array [0] = 0
  7720. ;
  7721. return 0;
  7722. }
  7723. _ACEOF
  7724. rm -f conftest.$ac_objext
  7725. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7726. (eval $ac_compile) 2>conftest.er1
  7727. ac_status=$?
  7728. grep -v '^ *+' conftest.er1 >conftest.err
  7729. rm -f conftest.er1
  7730. cat conftest.err >&5
  7731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7732. (exit $ac_status); } &&
  7733. { ac_try='test -z "$ac_c_werror_flag"
  7734. || test ! -s conftest.err'
  7735. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7736. (eval $ac_try) 2>&5
  7737. ac_status=$?
  7738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7739. (exit $ac_status); }; } &&
  7740. { ac_try='test -s conftest.$ac_objext'
  7741. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7742. (eval $ac_try) 2>&5
  7743. ac_status=$?
  7744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7745. (exit $ac_status); }; }; then
  7746. ac_lo=$ac_mid; break
  7747. else
  7748. echo "$as_me: failed program was:" >&5
  7749. sed 's/^/| /' conftest.$ac_ext >&5
  7750. ac_hi=`expr '(' $ac_mid ')' - 1`
  7751. if test $ac_mid -le $ac_hi; then
  7752. ac_lo= ac_hi=
  7753. break
  7754. fi
  7755. ac_mid=`expr 2 '*' $ac_mid`
  7756. fi
  7757. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7758. done
  7759. else
  7760. echo "$as_me: failed program was:" >&5
  7761. sed 's/^/| /' conftest.$ac_ext >&5
  7762. ac_lo= ac_hi=
  7763. fi
  7764. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7765. fi
  7766. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7767. # Binary search between lo and hi bounds.
  7768. while test "x$ac_lo" != "x$ac_hi"; do
  7769. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7770. cat >conftest.$ac_ext <<_ACEOF
  7771. /* confdefs.h. */
  7772. _ACEOF
  7773. cat confdefs.h >>conftest.$ac_ext
  7774. cat >>conftest.$ac_ext <<_ACEOF
  7775. /* end confdefs.h. */
  7776. $ac_includes_default
  7777. int
  7778. main ()
  7779. {
  7780. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  7781. test_array [0] = 0
  7782. ;
  7783. return 0;
  7784. }
  7785. _ACEOF
  7786. rm -f conftest.$ac_objext
  7787. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7788. (eval $ac_compile) 2>conftest.er1
  7789. ac_status=$?
  7790. grep -v '^ *+' conftest.er1 >conftest.err
  7791. rm -f conftest.er1
  7792. cat conftest.err >&5
  7793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7794. (exit $ac_status); } &&
  7795. { ac_try='test -z "$ac_c_werror_flag"
  7796. || test ! -s conftest.err'
  7797. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7798. (eval $ac_try) 2>&5
  7799. ac_status=$?
  7800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7801. (exit $ac_status); }; } &&
  7802. { ac_try='test -s conftest.$ac_objext'
  7803. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7804. (eval $ac_try) 2>&5
  7805. ac_status=$?
  7806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7807. (exit $ac_status); }; }; then
  7808. ac_hi=$ac_mid
  7809. else
  7810. echo "$as_me: failed program was:" >&5
  7811. sed 's/^/| /' conftest.$ac_ext >&5
  7812. ac_lo=`expr '(' $ac_mid ')' + 1`
  7813. fi
  7814. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7815. done
  7816. case $ac_lo in
  7817. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  7818. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  7819. See \`config.log' for more details." >&5
  7820. echo "$as_me: error: cannot compute sizeof (long long), 77
  7821. See \`config.log' for more details." >&2;}
  7822. { (exit 1); exit 1; }; } ;;
  7823. esac
  7824. else
  7825. if test "$cross_compiling" = yes; then
  7826. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  7827. See \`config.log' for more details." >&5
  7828. echo "$as_me: error: cannot run test program while cross compiling
  7829. See \`config.log' for more details." >&2;}
  7830. { (exit 1); exit 1; }; }
  7831. else
  7832. cat >conftest.$ac_ext <<_ACEOF
  7833. /* confdefs.h. */
  7834. _ACEOF
  7835. cat confdefs.h >>conftest.$ac_ext
  7836. cat >>conftest.$ac_ext <<_ACEOF
  7837. /* end confdefs.h. */
  7838. $ac_includes_default
  7839. long longval () { return (long) (sizeof (long long)); }
  7840. unsigned long ulongval () { return (long) (sizeof (long long)); }
  7841. #include <stdio.h>
  7842. #include <stdlib.h>
  7843. int
  7844. main ()
  7845. {
  7846. FILE *f = fopen ("conftest.val", "w");
  7847. if (! f)
  7848. exit (1);
  7849. if (((long) (sizeof (long long))) < 0)
  7850. {
  7851. long i = longval ();
  7852. if (i != ((long) (sizeof (long long))))
  7853. exit (1);
  7854. fprintf (f, "%ld\n", i);
  7855. }
  7856. else
  7857. {
  7858. unsigned long i = ulongval ();
  7859. if (i != ((long) (sizeof (long long))))
  7860. exit (1);
  7861. fprintf (f, "%lu\n", i);
  7862. }
  7863. exit (ferror (f) || fclose (f) != 0);
  7864. ;
  7865. return 0;
  7866. }
  7867. _ACEOF
  7868. rm -f conftest$ac_exeext
  7869. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7870. (eval $ac_link) 2>&5
  7871. ac_status=$?
  7872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7873. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7874. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7875. (eval $ac_try) 2>&5
  7876. ac_status=$?
  7877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7878. (exit $ac_status); }; }; then
  7879. ac_cv_sizeof_long_long=`cat conftest.val`
  7880. else
  7881. echo "$as_me: program exited with status $ac_status" >&5
  7882. echo "$as_me: failed program was:" >&5
  7883. sed 's/^/| /' conftest.$ac_ext >&5
  7884. ( exit $ac_status )
  7885. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  7886. See \`config.log' for more details." >&5
  7887. echo "$as_me: error: cannot compute sizeof (long long), 77
  7888. See \`config.log' for more details." >&2;}
  7889. { (exit 1); exit 1; }; }
  7890. fi
  7891. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7892. fi
  7893. fi
  7894. rm -f conftest.val
  7895. else
  7896. ac_cv_sizeof_long_long=0
  7897. fi
  7898. fi
  7899. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  7900. echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
  7901. cat >>confdefs.h <<_ACEOF
  7902. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  7903. _ACEOF
  7904. if test $ac_cv_c_compiler_gnu = yes; then
  7905. echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  7906. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  7907. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  7908. echo $ECHO_N "(cached) $ECHO_C" >&6
  7909. else
  7910. ac_pattern="Autoconf.*'x'"
  7911. cat >conftest.$ac_ext <<_ACEOF
  7912. /* confdefs.h. */
  7913. _ACEOF
  7914. cat confdefs.h >>conftest.$ac_ext
  7915. cat >>conftest.$ac_ext <<_ACEOF
  7916. /* end confdefs.h. */
  7917. #include <sgtty.h>
  7918. Autoconf TIOCGETP
  7919. _ACEOF
  7920. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7921. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7922. ac_cv_prog_gcc_traditional=yes
  7923. else
  7924. ac_cv_prog_gcc_traditional=no
  7925. fi
  7926. rm -f conftest*
  7927. if test $ac_cv_prog_gcc_traditional = no; then
  7928. cat >conftest.$ac_ext <<_ACEOF
  7929. /* confdefs.h. */
  7930. _ACEOF
  7931. cat confdefs.h >>conftest.$ac_ext
  7932. cat >>conftest.$ac_ext <<_ACEOF
  7933. /* end confdefs.h. */
  7934. #include <termio.h>
  7935. Autoconf TCGETA
  7936. _ACEOF
  7937. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7938. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7939. ac_cv_prog_gcc_traditional=yes
  7940. fi
  7941. rm -f conftest*
  7942. fi
  7943. fi
  7944. echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  7945. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  7946. if test $ac_cv_prog_gcc_traditional = yes; then
  7947. CC="$CC -traditional"
  7948. fi
  7949. fi
  7950. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7951. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7952. if test "${ac_cv_struct_tm+set}" = set; then
  7953. echo $ECHO_N "(cached) $ECHO_C" >&6
  7954. else
  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 <sys/types.h>
  7962. #include <time.h>
  7963. int
  7964. main ()
  7965. {
  7966. struct tm *tp; tp->tm_sec;
  7967. ;
  7968. return 0;
  7969. }
  7970. _ACEOF
  7971. rm -f conftest.$ac_objext
  7972. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7973. (eval $ac_compile) 2>conftest.er1
  7974. ac_status=$?
  7975. grep -v '^ *+' conftest.er1 >conftest.err
  7976. rm -f conftest.er1
  7977. cat conftest.err >&5
  7978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7979. (exit $ac_status); } &&
  7980. { ac_try='test -z "$ac_c_werror_flag"
  7981. || test ! -s conftest.err'
  7982. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7983. (eval $ac_try) 2>&5
  7984. ac_status=$?
  7985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7986. (exit $ac_status); }; } &&
  7987. { ac_try='test -s conftest.$ac_objext'
  7988. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7989. (eval $ac_try) 2>&5
  7990. ac_status=$?
  7991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7992. (exit $ac_status); }; }; then
  7993. ac_cv_struct_tm=time.h
  7994. else
  7995. echo "$as_me: failed program was:" >&5
  7996. sed 's/^/| /' conftest.$ac_ext >&5
  7997. ac_cv_struct_tm=sys/time.h
  7998. fi
  7999. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8000. fi
  8001. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8002. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  8003. if test $ac_cv_struct_tm = sys/time.h; then
  8004. cat >>confdefs.h <<\_ACEOF
  8005. #define TM_IN_SYS_TIME 1
  8006. _ACEOF
  8007. fi
  8008. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  8009. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  8010. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  8011. echo $ECHO_N "(cached) $ECHO_C" >&6
  8012. else
  8013. cat >conftest.$ac_ext <<_ACEOF
  8014. /* confdefs.h. */
  8015. _ACEOF
  8016. cat confdefs.h >>conftest.$ac_ext
  8017. cat >>conftest.$ac_ext <<_ACEOF
  8018. /* end confdefs.h. */
  8019. #include <sys/types.h>
  8020. #include <$ac_cv_struct_tm>
  8021. int
  8022. main ()
  8023. {
  8024. static struct tm ac_aggr;
  8025. if (ac_aggr.tm_zone)
  8026. return 0;
  8027. ;
  8028. return 0;
  8029. }
  8030. _ACEOF
  8031. rm -f conftest.$ac_objext
  8032. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8033. (eval $ac_compile) 2>conftest.er1
  8034. ac_status=$?
  8035. grep -v '^ *+' conftest.er1 >conftest.err
  8036. rm -f conftest.er1
  8037. cat conftest.err >&5
  8038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8039. (exit $ac_status); } &&
  8040. { ac_try='test -z "$ac_c_werror_flag"
  8041. || test ! -s conftest.err'
  8042. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8043. (eval $ac_try) 2>&5
  8044. ac_status=$?
  8045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8046. (exit $ac_status); }; } &&
  8047. { ac_try='test -s conftest.$ac_objext'
  8048. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8049. (eval $ac_try) 2>&5
  8050. ac_status=$?
  8051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8052. (exit $ac_status); }; }; then
  8053. ac_cv_member_struct_tm_tm_zone=yes
  8054. else
  8055. echo "$as_me: failed program was:" >&5
  8056. sed 's/^/| /' conftest.$ac_ext >&5
  8057. cat >conftest.$ac_ext <<_ACEOF
  8058. /* confdefs.h. */
  8059. _ACEOF
  8060. cat confdefs.h >>conftest.$ac_ext
  8061. cat >>conftest.$ac_ext <<_ACEOF
  8062. /* end confdefs.h. */
  8063. #include <sys/types.h>
  8064. #include <$ac_cv_struct_tm>
  8065. int
  8066. main ()
  8067. {
  8068. static struct tm ac_aggr;
  8069. if (sizeof ac_aggr.tm_zone)
  8070. return 0;
  8071. ;
  8072. return 0;
  8073. }
  8074. _ACEOF
  8075. rm -f conftest.$ac_objext
  8076. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8077. (eval $ac_compile) 2>conftest.er1
  8078. ac_status=$?
  8079. grep -v '^ *+' conftest.er1 >conftest.err
  8080. rm -f conftest.er1
  8081. cat conftest.err >&5
  8082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8083. (exit $ac_status); } &&
  8084. { ac_try='test -z "$ac_c_werror_flag"
  8085. || test ! -s conftest.err'
  8086. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8087. (eval $ac_try) 2>&5
  8088. ac_status=$?
  8089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8090. (exit $ac_status); }; } &&
  8091. { ac_try='test -s conftest.$ac_objext'
  8092. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8093. (eval $ac_try) 2>&5
  8094. ac_status=$?
  8095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8096. (exit $ac_status); }; }; then
  8097. ac_cv_member_struct_tm_tm_zone=yes
  8098. else
  8099. echo "$as_me: failed program was:" >&5
  8100. sed 's/^/| /' conftest.$ac_ext >&5
  8101. ac_cv_member_struct_tm_tm_zone=no
  8102. fi
  8103. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8104. fi
  8105. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8106. fi
  8107. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  8108. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  8109. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  8110. cat >>confdefs.h <<_ACEOF
  8111. #define HAVE_STRUCT_TM_TM_ZONE 1
  8112. _ACEOF
  8113. fi
  8114. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  8115. cat >>confdefs.h <<\_ACEOF
  8116. #define HAVE_TM_ZONE 1
  8117. _ACEOF
  8118. else
  8119. echo "$as_me:$LINENO: checking for tzname" >&5
  8120. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  8121. if test "${ac_cv_var_tzname+set}" = set; then
  8122. echo $ECHO_N "(cached) $ECHO_C" >&6
  8123. else
  8124. cat >conftest.$ac_ext <<_ACEOF
  8125. /* confdefs.h. */
  8126. _ACEOF
  8127. cat confdefs.h >>conftest.$ac_ext
  8128. cat >>conftest.$ac_ext <<_ACEOF
  8129. /* end confdefs.h. */
  8130. #include <time.h>
  8131. #ifndef tzname /* For SGI. */
  8132. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  8133. #endif
  8134. int
  8135. main ()
  8136. {
  8137. atoi(*tzname);
  8138. ;
  8139. return 0;
  8140. }
  8141. _ACEOF
  8142. rm -f conftest.$ac_objext conftest$ac_exeext
  8143. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8144. (eval $ac_link) 2>conftest.er1
  8145. ac_status=$?
  8146. grep -v '^ *+' conftest.er1 >conftest.err
  8147. rm -f conftest.er1
  8148. cat conftest.err >&5
  8149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8150. (exit $ac_status); } &&
  8151. { ac_try='test -z "$ac_c_werror_flag"
  8152. || test ! -s conftest.err'
  8153. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8154. (eval $ac_try) 2>&5
  8155. ac_status=$?
  8156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8157. (exit $ac_status); }; } &&
  8158. { ac_try='test -s 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_var_tzname=yes
  8165. else
  8166. echo "$as_me: failed program was:" >&5
  8167. sed 's/^/| /' conftest.$ac_ext >&5
  8168. ac_cv_var_tzname=no
  8169. fi
  8170. rm -f conftest.err conftest.$ac_objext \
  8171. conftest$ac_exeext conftest.$ac_ext
  8172. fi
  8173. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  8174. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  8175. if test $ac_cv_var_tzname = yes; then
  8176. cat >>confdefs.h <<\_ACEOF
  8177. #define HAVE_TZNAME 1
  8178. _ACEOF
  8179. fi
  8180. fi
  8181. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8182. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  8183. if test "${ac_cv_struct_tm+set}" = set; then
  8184. echo $ECHO_N "(cached) $ECHO_C" >&6
  8185. else
  8186. cat >conftest.$ac_ext <<_ACEOF
  8187. /* confdefs.h. */
  8188. _ACEOF
  8189. cat confdefs.h >>conftest.$ac_ext
  8190. cat >>conftest.$ac_ext <<_ACEOF
  8191. /* end confdefs.h. */
  8192. #include <sys/types.h>
  8193. #include <time.h>
  8194. int
  8195. main ()
  8196. {
  8197. struct tm *tp; tp->tm_sec;
  8198. ;
  8199. return 0;
  8200. }
  8201. _ACEOF
  8202. rm -f conftest.$ac_objext
  8203. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8204. (eval $ac_compile) 2>conftest.er1
  8205. ac_status=$?
  8206. grep -v '^ *+' conftest.er1 >conftest.err
  8207. rm -f conftest.er1
  8208. cat conftest.err >&5
  8209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8210. (exit $ac_status); } &&
  8211. { ac_try='test -z "$ac_c_werror_flag"
  8212. || test ! -s conftest.err'
  8213. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8214. (eval $ac_try) 2>&5
  8215. ac_status=$?
  8216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8217. (exit $ac_status); }; } &&
  8218. { ac_try='test -s conftest.$ac_objext'
  8219. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8220. (eval $ac_try) 2>&5
  8221. ac_status=$?
  8222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8223. (exit $ac_status); }; }; then
  8224. ac_cv_struct_tm=time.h
  8225. else
  8226. echo "$as_me: failed program was:" >&5
  8227. sed 's/^/| /' conftest.$ac_ext >&5
  8228. ac_cv_struct_tm=sys/time.h
  8229. fi
  8230. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8231. fi
  8232. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8233. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  8234. if test $ac_cv_struct_tm = sys/time.h; then
  8235. cat >>confdefs.h <<\_ACEOF
  8236. #define TM_IN_SYS_TIME 1
  8237. _ACEOF
  8238. fi
  8239. #checkpoint
  8240. cat >confcache <<\_ACEOF
  8241. # This file is a shell script that caches the results of configure
  8242. # tests run on this system so they can be shared between configure
  8243. # scripts and configure runs, see configure's option --config-cache.
  8244. # It is not useful on other systems. If it contains results you don't
  8245. # want to keep, you may remove or edit it.
  8246. #
  8247. # config.status only pays attention to the cache file if you give it
  8248. # the --recheck option to rerun configure.
  8249. #
  8250. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8251. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8252. # following values.
  8253. _ACEOF
  8254. # The following way of writing the cache mishandles newlines in values,
  8255. # but we know of no workaround that is simple, portable, and efficient.
  8256. # So, don't put newlines in cache variables' values.
  8257. # Ultrix sh set writes to stderr and can't be redirected directly,
  8258. # and sets the high bit in the cache file unless we assign to the vars.
  8259. {
  8260. (set) 2>&1 |
  8261. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8262. *ac_space=\ *)
  8263. # `set' does not quote correctly, so add quotes (double-quote
  8264. # substitution turns \\\\ into \\, and sed turns \\ into \).
  8265. sed -n \
  8266. "s/'/'\\\\''/g;
  8267. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8268. ;;
  8269. *)
  8270. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8271. sed -n \
  8272. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8273. ;;
  8274. esac;
  8275. } |
  8276. sed '
  8277. t clear
  8278. : clear
  8279. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8280. t end
  8281. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8282. : end' >>confcache
  8283. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  8284. if test -w $cache_file; then
  8285. test "x$cache_file" != "x/dev/null"
  8286. cat confcache >$cache_file
  8287. else
  8288. echo "not updating unwritable cache $cache_file"
  8289. fi
  8290. fi
  8291. rm -f confcache
  8292. # Checks for library functions
  8293. for ac_header in unistd.h vfork.h
  8294. do
  8295. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8296. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8297. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8298. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8299. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8300. echo $ECHO_N "(cached) $ECHO_C" >&6
  8301. fi
  8302. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8303. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8304. else
  8305. # Is the header compilable?
  8306. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8307. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8308. cat >conftest.$ac_ext <<_ACEOF
  8309. /* confdefs.h. */
  8310. _ACEOF
  8311. cat confdefs.h >>conftest.$ac_ext
  8312. cat >>conftest.$ac_ext <<_ACEOF
  8313. /* end confdefs.h. */
  8314. $ac_includes_default
  8315. #include <$ac_header>
  8316. _ACEOF
  8317. rm -f conftest.$ac_objext
  8318. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8319. (eval $ac_compile) 2>conftest.er1
  8320. ac_status=$?
  8321. grep -v '^ *+' conftest.er1 >conftest.err
  8322. rm -f conftest.er1
  8323. cat conftest.err >&5
  8324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8325. (exit $ac_status); } &&
  8326. { ac_try='test -z "$ac_c_werror_flag"
  8327. || test ! -s conftest.err'
  8328. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8329. (eval $ac_try) 2>&5
  8330. ac_status=$?
  8331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8332. (exit $ac_status); }; } &&
  8333. { ac_try='test -s conftest.$ac_objext'
  8334. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8335. (eval $ac_try) 2>&5
  8336. ac_status=$?
  8337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8338. (exit $ac_status); }; }; then
  8339. ac_header_compiler=yes
  8340. else
  8341. echo "$as_me: failed program was:" >&5
  8342. sed 's/^/| /' conftest.$ac_ext >&5
  8343. ac_header_compiler=no
  8344. fi
  8345. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8346. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8347. echo "${ECHO_T}$ac_header_compiler" >&6
  8348. # Is the header present?
  8349. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8350. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  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. #include <$ac_header>
  8358. _ACEOF
  8359. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8360. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8361. ac_status=$?
  8362. grep -v '^ *+' conftest.er1 >conftest.err
  8363. rm -f conftest.er1
  8364. cat conftest.err >&5
  8365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8366. (exit $ac_status); } >/dev/null; then
  8367. if test -s conftest.err; then
  8368. ac_cpp_err=$ac_c_preproc_warn_flag
  8369. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8370. else
  8371. ac_cpp_err=
  8372. fi
  8373. else
  8374. ac_cpp_err=yes
  8375. fi
  8376. if test -z "$ac_cpp_err"; then
  8377. ac_header_preproc=yes
  8378. else
  8379. echo "$as_me: failed program was:" >&5
  8380. sed 's/^/| /' conftest.$ac_ext >&5
  8381. ac_header_preproc=no
  8382. fi
  8383. rm -f conftest.err conftest.$ac_ext
  8384. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8385. echo "${ECHO_T}$ac_header_preproc" >&6
  8386. # So? What about this header?
  8387. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8388. yes:no: )
  8389. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8390. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8391. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8392. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8393. ac_header_preproc=yes
  8394. ;;
  8395. no:yes:* )
  8396. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8397. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8398. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8399. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8400. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8401. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8402. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8403. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8404. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8405. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8406. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8407. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8408. (
  8409. cat <<\_ASBOX
  8410. ## ------------------------------------------ ##
  8411. ## Report this to the AC_PACKAGE_NAME lists. ##
  8412. ## ------------------------------------------ ##
  8413. _ASBOX
  8414. ) |
  8415. sed "s/^/$as_me: WARNING: /" >&2
  8416. ;;
  8417. esac
  8418. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8419. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8420. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8421. echo $ECHO_N "(cached) $ECHO_C" >&6
  8422. else
  8423. eval "$as_ac_Header=\$ac_header_preproc"
  8424. fi
  8425. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8426. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8427. fi
  8428. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8429. cat >>confdefs.h <<_ACEOF
  8430. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8431. _ACEOF
  8432. fi
  8433. done
  8434. for ac_func in fork vfork
  8435. do
  8436. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8437. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8438. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8439. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8440. echo $ECHO_N "(cached) $ECHO_C" >&6
  8441. else
  8442. cat >conftest.$ac_ext <<_ACEOF
  8443. /* confdefs.h. */
  8444. _ACEOF
  8445. cat confdefs.h >>conftest.$ac_ext
  8446. cat >>conftest.$ac_ext <<_ACEOF
  8447. /* end confdefs.h. */
  8448. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8449. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8450. #define $ac_func innocuous_$ac_func
  8451. /* System header to define __stub macros and hopefully few prototypes,
  8452. which can conflict with char $ac_func (); below.
  8453. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8454. <limits.h> exists even on freestanding compilers. */
  8455. #ifdef __STDC__
  8456. # include <limits.h>
  8457. #else
  8458. # include <assert.h>
  8459. #endif
  8460. #undef $ac_func
  8461. /* Override any gcc2 internal prototype to avoid an error. */
  8462. #ifdef __cplusplus
  8463. extern "C"
  8464. {
  8465. #endif
  8466. /* We use char because int might match the return type of a gcc2
  8467. builtin and then its argument prototype would still apply. */
  8468. char $ac_func ();
  8469. /* The GNU C library defines this for functions which it implements
  8470. to always fail with ENOSYS. Some functions are actually named
  8471. something starting with __ and the normal name is an alias. */
  8472. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8473. choke me
  8474. #else
  8475. char (*f) () = $ac_func;
  8476. #endif
  8477. #ifdef __cplusplus
  8478. }
  8479. #endif
  8480. int
  8481. main ()
  8482. {
  8483. return f != $ac_func;
  8484. ;
  8485. return 0;
  8486. }
  8487. _ACEOF
  8488. rm -f conftest.$ac_objext conftest$ac_exeext
  8489. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8490. (eval $ac_link) 2>conftest.er1
  8491. ac_status=$?
  8492. grep -v '^ *+' conftest.er1 >conftest.err
  8493. rm -f conftest.er1
  8494. cat conftest.err >&5
  8495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8496. (exit $ac_status); } &&
  8497. { ac_try='test -z "$ac_c_werror_flag"
  8498. || test ! -s conftest.err'
  8499. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8500. (eval $ac_try) 2>&5
  8501. ac_status=$?
  8502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8503. (exit $ac_status); }; } &&
  8504. { ac_try='test -s conftest$ac_exeext'
  8505. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8506. (eval $ac_try) 2>&5
  8507. ac_status=$?
  8508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8509. (exit $ac_status); }; }; then
  8510. eval "$as_ac_var=yes"
  8511. else
  8512. echo "$as_me: failed program was:" >&5
  8513. sed 's/^/| /' conftest.$ac_ext >&5
  8514. eval "$as_ac_var=no"
  8515. fi
  8516. rm -f conftest.err conftest.$ac_objext \
  8517. conftest$ac_exeext conftest.$ac_ext
  8518. fi
  8519. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8520. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8521. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8522. cat >>confdefs.h <<_ACEOF
  8523. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8524. _ACEOF
  8525. fi
  8526. done
  8527. if test "x$ac_cv_func_fork" = xyes; then
  8528. echo "$as_me:$LINENO: checking for working fork" >&5
  8529. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  8530. if test "${ac_cv_func_fork_works+set}" = set; then
  8531. echo $ECHO_N "(cached) $ECHO_C" >&6
  8532. else
  8533. if test "$cross_compiling" = yes; then
  8534. ac_cv_func_fork_works=cross
  8535. else
  8536. cat >conftest.$ac_ext <<_ACEOF
  8537. /* By Ruediger Kuhlmann. */
  8538. #include <sys/types.h>
  8539. #if HAVE_UNISTD_H
  8540. # include <unistd.h>
  8541. #endif
  8542. /* Some systems only have a dummy stub for fork() */
  8543. int main ()
  8544. {
  8545. if (fork() < 0)
  8546. exit (1);
  8547. exit (0);
  8548. }
  8549. _ACEOF
  8550. rm -f conftest$ac_exeext
  8551. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8552. (eval $ac_link) 2>&5
  8553. ac_status=$?
  8554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8555. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8556. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8557. (eval $ac_try) 2>&5
  8558. ac_status=$?
  8559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8560. (exit $ac_status); }; }; then
  8561. ac_cv_func_fork_works=yes
  8562. else
  8563. echo "$as_me: program exited with status $ac_status" >&5
  8564. echo "$as_me: failed program was:" >&5
  8565. sed 's/^/| /' conftest.$ac_ext >&5
  8566. ( exit $ac_status )
  8567. ac_cv_func_fork_works=no
  8568. fi
  8569. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8570. fi
  8571. fi
  8572. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  8573. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  8574. else
  8575. ac_cv_func_fork_works=$ac_cv_func_fork
  8576. fi
  8577. if test "x$ac_cv_func_fork_works" = xcross; then
  8578. case $host in
  8579. *-*-amigaos* | *-*-msdosdjgpp*)
  8580. # Override, as these systems have only a dummy fork() stub
  8581. ac_cv_func_fork_works=no
  8582. ;;
  8583. *)
  8584. ac_cv_func_fork_works=yes
  8585. ;;
  8586. esac
  8587. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  8588. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  8589. fi
  8590. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8591. if test "x$ac_cv_func_vfork" = xyes; then
  8592. echo "$as_me:$LINENO: checking for working vfork" >&5
  8593. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  8594. if test "${ac_cv_func_vfork_works+set}" = set; then
  8595. echo $ECHO_N "(cached) $ECHO_C" >&6
  8596. else
  8597. if test "$cross_compiling" = yes; then
  8598. ac_cv_func_vfork_works=cross
  8599. else
  8600. cat >conftest.$ac_ext <<_ACEOF
  8601. /* confdefs.h. */
  8602. _ACEOF
  8603. cat confdefs.h >>conftest.$ac_ext
  8604. cat >>conftest.$ac_ext <<_ACEOF
  8605. /* end confdefs.h. */
  8606. /* Thanks to Paul Eggert for this test. */
  8607. #include <stdio.h>
  8608. #include <stdlib.h>
  8609. #include <sys/types.h>
  8610. #include <sys/stat.h>
  8611. #include <sys/wait.h>
  8612. #if HAVE_UNISTD_H
  8613. # include <unistd.h>
  8614. #endif
  8615. #if HAVE_VFORK_H
  8616. # include <vfork.h>
  8617. #endif
  8618. /* On some sparc systems, changes by the child to local and incoming
  8619. argument registers are propagated back to the parent. The compiler
  8620. is told about this with #include <vfork.h>, but some compilers
  8621. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  8622. static variable whose address is put into a register that is
  8623. clobbered by the vfork. */
  8624. static void
  8625. #ifdef __cplusplus
  8626. sparc_address_test (int arg)
  8627. # else
  8628. sparc_address_test (arg) int arg;
  8629. #endif
  8630. {
  8631. static pid_t child;
  8632. if (!child) {
  8633. child = vfork ();
  8634. if (child < 0) {
  8635. perror ("vfork");
  8636. _exit(2);
  8637. }
  8638. if (!child) {
  8639. arg = getpid();
  8640. write(-1, "", 0);
  8641. _exit (arg);
  8642. }
  8643. }
  8644. }
  8645. int
  8646. main ()
  8647. {
  8648. pid_t parent = getpid ();
  8649. pid_t child;
  8650. sparc_address_test (0);
  8651. child = vfork ();
  8652. if (child == 0) {
  8653. /* Here is another test for sparc vfork register problems. This
  8654. test uses lots of local variables, at least as many local
  8655. variables as main has allocated so far including compiler
  8656. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  8657. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  8658. reuse the register of parent for one of the local variables,
  8659. since it will think that parent can't possibly be used any more
  8660. in this routine. Assigning to the local variable will thus
  8661. munge parent in the parent process. */
  8662. pid_t
  8663. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  8664. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  8665. /* Convince the compiler that p..p7 are live; otherwise, it might
  8666. use the same hardware register for all 8 local variables. */
  8667. if (p != p1 || p != p2 || p != p3 || p != p4
  8668. || p != p5 || p != p6 || p != p7)
  8669. _exit(1);
  8670. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  8671. from child file descriptors. If the child closes a descriptor
  8672. before it execs or exits, this munges the parent's descriptor
  8673. as well. Test for this by closing stdout in the child. */
  8674. _exit(close(fileno(stdout)) != 0);
  8675. } else {
  8676. int status;
  8677. struct stat st;
  8678. while (wait(&status) != child)
  8679. ;
  8680. exit(
  8681. /* Was there some problem with vforking? */
  8682. child < 0
  8683. /* Did the child fail? (This shouldn't happen.) */
  8684. || status
  8685. /* Did the vfork/compiler bug occur? */
  8686. || parent != getpid()
  8687. /* Did the file descriptor bug occur? */
  8688. || fstat(fileno(stdout), &st) != 0
  8689. );
  8690. }
  8691. }
  8692. _ACEOF
  8693. rm -f conftest$ac_exeext
  8694. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8695. (eval $ac_link) 2>&5
  8696. ac_status=$?
  8697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8698. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8699. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8700. (eval $ac_try) 2>&5
  8701. ac_status=$?
  8702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8703. (exit $ac_status); }; }; then
  8704. ac_cv_func_vfork_works=yes
  8705. else
  8706. echo "$as_me: program exited with status $ac_status" >&5
  8707. echo "$as_me: failed program was:" >&5
  8708. sed 's/^/| /' conftest.$ac_ext >&5
  8709. ( exit $ac_status )
  8710. ac_cv_func_vfork_works=no
  8711. fi
  8712. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8713. fi
  8714. fi
  8715. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  8716. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  8717. fi;
  8718. if test "x$ac_cv_func_fork_works" = xcross; then
  8719. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8720. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  8721. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  8722. fi
  8723. if test "x$ac_cv_func_vfork_works" = xyes; then
  8724. cat >>confdefs.h <<\_ACEOF
  8725. #define HAVE_WORKING_VFORK 1
  8726. _ACEOF
  8727. else
  8728. cat >>confdefs.h <<\_ACEOF
  8729. #define vfork fork
  8730. _ACEOF
  8731. fi
  8732. if test "x$ac_cv_func_fork_works" = xyes; then
  8733. cat >>confdefs.h <<\_ACEOF
  8734. #define HAVE_WORKING_FORK 1
  8735. _ACEOF
  8736. fi
  8737. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8738. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8739. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8740. echo $ECHO_N "(cached) $ECHO_C" >&6
  8741. else
  8742. rm -f conftest.sym conftest.file
  8743. echo >conftest.file
  8744. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8745. if test "$cross_compiling" = yes; then
  8746. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8747. else
  8748. cat >conftest.$ac_ext <<_ACEOF
  8749. /* confdefs.h. */
  8750. _ACEOF
  8751. cat confdefs.h >>conftest.$ac_ext
  8752. cat >>conftest.$ac_ext <<_ACEOF
  8753. /* end confdefs.h. */
  8754. $ac_includes_default
  8755. int
  8756. main ()
  8757. {
  8758. struct stat sbuf;
  8759. /* Linux will dereference the symlink and fail.
  8760. That is better in the sense that it means we will not
  8761. have to compile and use the lstat wrapper. */
  8762. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8763. ;
  8764. return 0;
  8765. }
  8766. _ACEOF
  8767. rm -f conftest$ac_exeext
  8768. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8769. (eval $ac_link) 2>&5
  8770. ac_status=$?
  8771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8772. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8773. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8774. (eval $ac_try) 2>&5
  8775. ac_status=$?
  8776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8777. (exit $ac_status); }; }; then
  8778. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8779. else
  8780. echo "$as_me: program exited with status $ac_status" >&5
  8781. echo "$as_me: failed program was:" >&5
  8782. sed 's/^/| /' conftest.$ac_ext >&5
  8783. ( exit $ac_status )
  8784. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8785. fi
  8786. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8787. fi
  8788. else
  8789. # If the `ln -s' command failed, then we probably don't even
  8790. # have an lstat function.
  8791. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8792. fi
  8793. rm -f conftest.sym conftest.file
  8794. fi
  8795. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8796. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8797. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8798. cat >>confdefs.h <<_ACEOF
  8799. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8800. _ACEOF
  8801. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8802. case $LIBOBJS in
  8803. "lstat.$ac_objext" | \
  8804. *" lstat.$ac_objext" | \
  8805. "lstat.$ac_objext "* | \
  8806. *" lstat.$ac_objext "* ) ;;
  8807. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8808. esac
  8809. fi
  8810. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8811. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  8812. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8813. echo $ECHO_N "(cached) $ECHO_C" >&6
  8814. else
  8815. if test "$cross_compiling" = yes; then
  8816. ac_cv_func_lstat_empty_string_bug=yes
  8817. else
  8818. cat >conftest.$ac_ext <<_ACEOF
  8819. /* confdefs.h. */
  8820. _ACEOF
  8821. cat confdefs.h >>conftest.$ac_ext
  8822. cat >>conftest.$ac_ext <<_ACEOF
  8823. /* end confdefs.h. */
  8824. $ac_includes_default
  8825. int
  8826. main ()
  8827. {
  8828. struct stat sbuf;
  8829. exit (lstat ("", &sbuf) ? 1 : 0);
  8830. ;
  8831. return 0;
  8832. }
  8833. _ACEOF
  8834. rm -f conftest$ac_exeext
  8835. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8836. (eval $ac_link) 2>&5
  8837. ac_status=$?
  8838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8839. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8840. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8841. (eval $ac_try) 2>&5
  8842. ac_status=$?
  8843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8844. (exit $ac_status); }; }; then
  8845. ac_cv_func_lstat_empty_string_bug=yes
  8846. else
  8847. echo "$as_me: program exited with status $ac_status" >&5
  8848. echo "$as_me: failed program was:" >&5
  8849. sed 's/^/| /' conftest.$ac_ext >&5
  8850. ( exit $ac_status )
  8851. ac_cv_func_lstat_empty_string_bug=no
  8852. fi
  8853. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8854. fi
  8855. fi
  8856. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  8857. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  8858. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  8859. case $LIBOBJS in
  8860. "lstat.$ac_objext" | \
  8861. *" lstat.$ac_objext" | \
  8862. "lstat.$ac_objext "* | \
  8863. *" lstat.$ac_objext "* ) ;;
  8864. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8865. esac
  8866. cat >>confdefs.h <<_ACEOF
  8867. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  8868. _ACEOF
  8869. fi
  8870. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8871. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8872. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8873. echo $ECHO_N "(cached) $ECHO_C" >&6
  8874. else
  8875. rm -f conftest.sym conftest.file
  8876. echo >conftest.file
  8877. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8878. if test "$cross_compiling" = yes; then
  8879. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8880. else
  8881. cat >conftest.$ac_ext <<_ACEOF
  8882. /* confdefs.h. */
  8883. _ACEOF
  8884. cat confdefs.h >>conftest.$ac_ext
  8885. cat >>conftest.$ac_ext <<_ACEOF
  8886. /* end confdefs.h. */
  8887. $ac_includes_default
  8888. int
  8889. main ()
  8890. {
  8891. struct stat sbuf;
  8892. /* Linux will dereference the symlink and fail.
  8893. That is better in the sense that it means we will not
  8894. have to compile and use the lstat wrapper. */
  8895. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8896. ;
  8897. return 0;
  8898. }
  8899. _ACEOF
  8900. rm -f conftest$ac_exeext
  8901. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8902. (eval $ac_link) 2>&5
  8903. ac_status=$?
  8904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8905. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8906. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8907. (eval $ac_try) 2>&5
  8908. ac_status=$?
  8909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8910. (exit $ac_status); }; }; then
  8911. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8912. else
  8913. echo "$as_me: program exited with status $ac_status" >&5
  8914. echo "$as_me: failed program was:" >&5
  8915. sed 's/^/| /' conftest.$ac_ext >&5
  8916. ( exit $ac_status )
  8917. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8918. fi
  8919. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8920. fi
  8921. else
  8922. # If the `ln -s' command failed, then we probably don't even
  8923. # have an lstat function.
  8924. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8925. fi
  8926. rm -f conftest.sym conftest.file
  8927. fi
  8928. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8929. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8930. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8931. cat >>confdefs.h <<_ACEOF
  8932. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8933. _ACEOF
  8934. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8935. case $LIBOBJS in
  8936. "lstat.$ac_objext" | \
  8937. *" lstat.$ac_objext" | \
  8938. "lstat.$ac_objext "* | \
  8939. *" lstat.$ac_objext "* ) ;;
  8940. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8941. esac
  8942. fi
  8943. for ac_header in stdlib.h
  8944. do
  8945. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8946. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8947. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8948. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8949. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8950. echo $ECHO_N "(cached) $ECHO_C" >&6
  8951. fi
  8952. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8953. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8954. else
  8955. # Is the header compilable?
  8956. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8957. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8958. cat >conftest.$ac_ext <<_ACEOF
  8959. /* confdefs.h. */
  8960. _ACEOF
  8961. cat confdefs.h >>conftest.$ac_ext
  8962. cat >>conftest.$ac_ext <<_ACEOF
  8963. /* end confdefs.h. */
  8964. $ac_includes_default
  8965. #include <$ac_header>
  8966. _ACEOF
  8967. rm -f conftest.$ac_objext
  8968. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8969. (eval $ac_compile) 2>conftest.er1
  8970. ac_status=$?
  8971. grep -v '^ *+' conftest.er1 >conftest.err
  8972. rm -f conftest.er1
  8973. cat conftest.err >&5
  8974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8975. (exit $ac_status); } &&
  8976. { ac_try='test -z "$ac_c_werror_flag"
  8977. || test ! -s conftest.err'
  8978. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8979. (eval $ac_try) 2>&5
  8980. ac_status=$?
  8981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8982. (exit $ac_status); }; } &&
  8983. { ac_try='test -s conftest.$ac_objext'
  8984. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8985. (eval $ac_try) 2>&5
  8986. ac_status=$?
  8987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8988. (exit $ac_status); }; }; then
  8989. ac_header_compiler=yes
  8990. else
  8991. echo "$as_me: failed program was:" >&5
  8992. sed 's/^/| /' conftest.$ac_ext >&5
  8993. ac_header_compiler=no
  8994. fi
  8995. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8996. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8997. echo "${ECHO_T}$ac_header_compiler" >&6
  8998. # Is the header present?
  8999. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9000. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9001. cat >conftest.$ac_ext <<_ACEOF
  9002. /* confdefs.h. */
  9003. _ACEOF
  9004. cat confdefs.h >>conftest.$ac_ext
  9005. cat >>conftest.$ac_ext <<_ACEOF
  9006. /* end confdefs.h. */
  9007. #include <$ac_header>
  9008. _ACEOF
  9009. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9010. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9011. ac_status=$?
  9012. grep -v '^ *+' conftest.er1 >conftest.err
  9013. rm -f conftest.er1
  9014. cat conftest.err >&5
  9015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9016. (exit $ac_status); } >/dev/null; then
  9017. if test -s conftest.err; then
  9018. ac_cpp_err=$ac_c_preproc_warn_flag
  9019. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9020. else
  9021. ac_cpp_err=
  9022. fi
  9023. else
  9024. ac_cpp_err=yes
  9025. fi
  9026. if test -z "$ac_cpp_err"; then
  9027. ac_header_preproc=yes
  9028. else
  9029. echo "$as_me: failed program was:" >&5
  9030. sed 's/^/| /' conftest.$ac_ext >&5
  9031. ac_header_preproc=no
  9032. fi
  9033. rm -f conftest.err conftest.$ac_ext
  9034. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9035. echo "${ECHO_T}$ac_header_preproc" >&6
  9036. # So? What about this header?
  9037. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9038. yes:no: )
  9039. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9040. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9041. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9042. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9043. ac_header_preproc=yes
  9044. ;;
  9045. no:yes:* )
  9046. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9047. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9048. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9049. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9050. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9051. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9052. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9053. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9054. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9055. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9056. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9057. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9058. (
  9059. cat <<\_ASBOX
  9060. ## ------------------------------------------ ##
  9061. ## Report this to the AC_PACKAGE_NAME lists. ##
  9062. ## ------------------------------------------ ##
  9063. _ASBOX
  9064. ) |
  9065. sed "s/^/$as_me: WARNING: /" >&2
  9066. ;;
  9067. esac
  9068. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9069. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9070. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9071. echo $ECHO_N "(cached) $ECHO_C" >&6
  9072. else
  9073. eval "$as_ac_Header=\$ac_header_preproc"
  9074. fi
  9075. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9076. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9077. fi
  9078. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9079. cat >>confdefs.h <<_ACEOF
  9080. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9081. _ACEOF
  9082. fi
  9083. done
  9084. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  9085. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  9086. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  9087. echo $ECHO_N "(cached) $ECHO_C" >&6
  9088. else
  9089. if test "$cross_compiling" = yes; then
  9090. ac_cv_func_malloc_0_nonnull=no
  9091. else
  9092. cat >conftest.$ac_ext <<_ACEOF
  9093. /* confdefs.h. */
  9094. _ACEOF
  9095. cat confdefs.h >>conftest.$ac_ext
  9096. cat >>conftest.$ac_ext <<_ACEOF
  9097. /* end confdefs.h. */
  9098. #if STDC_HEADERS || HAVE_STDLIB_H
  9099. # include <stdlib.h>
  9100. #else
  9101. char *malloc ();
  9102. #endif
  9103. int
  9104. main ()
  9105. {
  9106. exit (malloc (0) ? 0 : 1);
  9107. ;
  9108. return 0;
  9109. }
  9110. _ACEOF
  9111. rm -f conftest$ac_exeext
  9112. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9113. (eval $ac_link) 2>&5
  9114. ac_status=$?
  9115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9116. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9117. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9118. (eval $ac_try) 2>&5
  9119. ac_status=$?
  9120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9121. (exit $ac_status); }; }; then
  9122. ac_cv_func_malloc_0_nonnull=yes
  9123. else
  9124. echo "$as_me: program exited with status $ac_status" >&5
  9125. echo "$as_me: failed program was:" >&5
  9126. sed 's/^/| /' conftest.$ac_ext >&5
  9127. ( exit $ac_status )
  9128. ac_cv_func_malloc_0_nonnull=no
  9129. fi
  9130. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9131. fi
  9132. fi
  9133. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9134. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  9135. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9136. cat >>confdefs.h <<\_ACEOF
  9137. #define HAVE_MALLOC 1
  9138. _ACEOF
  9139. else
  9140. cat >>confdefs.h <<\_ACEOF
  9141. #define HAVE_MALLOC 0
  9142. _ACEOF
  9143. case $LIBOBJS in
  9144. "malloc.$ac_objext" | \
  9145. *" malloc.$ac_objext" | \
  9146. "malloc.$ac_objext "* | \
  9147. *" malloc.$ac_objext "* ) ;;
  9148. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  9149. esac
  9150. cat >>confdefs.h <<\_ACEOF
  9151. #define malloc rpl_malloc
  9152. _ACEOF
  9153. fi
  9154. for ac_header in stdlib.h sys/time.h unistd.h
  9155. do
  9156. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9157. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9158. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9159. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9160. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9161. echo $ECHO_N "(cached) $ECHO_C" >&6
  9162. fi
  9163. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9164. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9165. else
  9166. # Is the header compilable?
  9167. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9168. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9169. cat >conftest.$ac_ext <<_ACEOF
  9170. /* confdefs.h. */
  9171. _ACEOF
  9172. cat confdefs.h >>conftest.$ac_ext
  9173. cat >>conftest.$ac_ext <<_ACEOF
  9174. /* end confdefs.h. */
  9175. $ac_includes_default
  9176. #include <$ac_header>
  9177. _ACEOF
  9178. rm -f conftest.$ac_objext
  9179. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9180. (eval $ac_compile) 2>conftest.er1
  9181. ac_status=$?
  9182. grep -v '^ *+' conftest.er1 >conftest.err
  9183. rm -f conftest.er1
  9184. cat conftest.err >&5
  9185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9186. (exit $ac_status); } &&
  9187. { ac_try='test -z "$ac_c_werror_flag"
  9188. || test ! -s conftest.err'
  9189. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9190. (eval $ac_try) 2>&5
  9191. ac_status=$?
  9192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9193. (exit $ac_status); }; } &&
  9194. { ac_try='test -s conftest.$ac_objext'
  9195. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9196. (eval $ac_try) 2>&5
  9197. ac_status=$?
  9198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9199. (exit $ac_status); }; }; then
  9200. ac_header_compiler=yes
  9201. else
  9202. echo "$as_me: failed program was:" >&5
  9203. sed 's/^/| /' conftest.$ac_ext >&5
  9204. ac_header_compiler=no
  9205. fi
  9206. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9207. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9208. echo "${ECHO_T}$ac_header_compiler" >&6
  9209. # Is the header present?
  9210. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9211. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9212. cat >conftest.$ac_ext <<_ACEOF
  9213. /* confdefs.h. */
  9214. _ACEOF
  9215. cat confdefs.h >>conftest.$ac_ext
  9216. cat >>conftest.$ac_ext <<_ACEOF
  9217. /* end confdefs.h. */
  9218. #include <$ac_header>
  9219. _ACEOF
  9220. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9221. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9222. ac_status=$?
  9223. grep -v '^ *+' conftest.er1 >conftest.err
  9224. rm -f conftest.er1
  9225. cat conftest.err >&5
  9226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9227. (exit $ac_status); } >/dev/null; then
  9228. if test -s conftest.err; then
  9229. ac_cpp_err=$ac_c_preproc_warn_flag
  9230. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9231. else
  9232. ac_cpp_err=
  9233. fi
  9234. else
  9235. ac_cpp_err=yes
  9236. fi
  9237. if test -z "$ac_cpp_err"; then
  9238. ac_header_preproc=yes
  9239. else
  9240. echo "$as_me: failed program was:" >&5
  9241. sed 's/^/| /' conftest.$ac_ext >&5
  9242. ac_header_preproc=no
  9243. fi
  9244. rm -f conftest.err conftest.$ac_ext
  9245. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9246. echo "${ECHO_T}$ac_header_preproc" >&6
  9247. # So? What about this header?
  9248. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9249. yes:no: )
  9250. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9251. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9252. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9253. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9254. ac_header_preproc=yes
  9255. ;;
  9256. no:yes:* )
  9257. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9258. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9259. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9260. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9261. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9262. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9263. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9264. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9265. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9266. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9267. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9268. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9269. (
  9270. cat <<\_ASBOX
  9271. ## ------------------------------------------ ##
  9272. ## Report this to the AC_PACKAGE_NAME lists. ##
  9273. ## ------------------------------------------ ##
  9274. _ASBOX
  9275. ) |
  9276. sed "s/^/$as_me: WARNING: /" >&2
  9277. ;;
  9278. esac
  9279. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9280. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9281. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9282. echo $ECHO_N "(cached) $ECHO_C" >&6
  9283. else
  9284. eval "$as_ac_Header=\$ac_header_preproc"
  9285. fi
  9286. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9287. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9288. fi
  9289. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9290. cat >>confdefs.h <<_ACEOF
  9291. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9292. _ACEOF
  9293. fi
  9294. done
  9295. for ac_func in alarm
  9296. do
  9297. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9298. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9299. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9300. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9301. echo $ECHO_N "(cached) $ECHO_C" >&6
  9302. else
  9303. cat >conftest.$ac_ext <<_ACEOF
  9304. /* confdefs.h. */
  9305. _ACEOF
  9306. cat confdefs.h >>conftest.$ac_ext
  9307. cat >>conftest.$ac_ext <<_ACEOF
  9308. /* end confdefs.h. */
  9309. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9310. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9311. #define $ac_func innocuous_$ac_func
  9312. /* System header to define __stub macros and hopefully few prototypes,
  9313. which can conflict with char $ac_func (); below.
  9314. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9315. <limits.h> exists even on freestanding compilers. */
  9316. #ifdef __STDC__
  9317. # include <limits.h>
  9318. #else
  9319. # include <assert.h>
  9320. #endif
  9321. #undef $ac_func
  9322. /* Override any gcc2 internal prototype to avoid an error. */
  9323. #ifdef __cplusplus
  9324. extern "C"
  9325. {
  9326. #endif
  9327. /* We use char because int might match the return type of a gcc2
  9328. builtin and then its argument prototype would still apply. */
  9329. char $ac_func ();
  9330. /* The GNU C library defines this for functions which it implements
  9331. to always fail with ENOSYS. Some functions are actually named
  9332. something starting with __ and the normal name is an alias. */
  9333. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9334. choke me
  9335. #else
  9336. char (*f) () = $ac_func;
  9337. #endif
  9338. #ifdef __cplusplus
  9339. }
  9340. #endif
  9341. int
  9342. main ()
  9343. {
  9344. return f != $ac_func;
  9345. ;
  9346. return 0;
  9347. }
  9348. _ACEOF
  9349. rm -f conftest.$ac_objext conftest$ac_exeext
  9350. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9351. (eval $ac_link) 2>conftest.er1
  9352. ac_status=$?
  9353. grep -v '^ *+' conftest.er1 >conftest.err
  9354. rm -f conftest.er1
  9355. cat conftest.err >&5
  9356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9357. (exit $ac_status); } &&
  9358. { ac_try='test -z "$ac_c_werror_flag"
  9359. || test ! -s conftest.err'
  9360. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9361. (eval $ac_try) 2>&5
  9362. ac_status=$?
  9363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9364. (exit $ac_status); }; } &&
  9365. { ac_try='test -s conftest$ac_exeext'
  9366. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9367. (eval $ac_try) 2>&5
  9368. ac_status=$?
  9369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9370. (exit $ac_status); }; }; then
  9371. eval "$as_ac_var=yes"
  9372. else
  9373. echo "$as_me: failed program was:" >&5
  9374. sed 's/^/| /' conftest.$ac_ext >&5
  9375. eval "$as_ac_var=no"
  9376. fi
  9377. rm -f conftest.err conftest.$ac_objext \
  9378. conftest$ac_exeext conftest.$ac_ext
  9379. fi
  9380. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9381. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9382. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9383. cat >>confdefs.h <<_ACEOF
  9384. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9385. _ACEOF
  9386. fi
  9387. done
  9388. echo "$as_me:$LINENO: checking for working mktime" >&5
  9389. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  9390. if test "${ac_cv_func_working_mktime+set}" = set; then
  9391. echo $ECHO_N "(cached) $ECHO_C" >&6
  9392. else
  9393. if test "$cross_compiling" = yes; then
  9394. ac_cv_func_working_mktime=no
  9395. else
  9396. cat >conftest.$ac_ext <<_ACEOF
  9397. /* confdefs.h. */
  9398. _ACEOF
  9399. cat confdefs.h >>conftest.$ac_ext
  9400. cat >>conftest.$ac_ext <<_ACEOF
  9401. /* end confdefs.h. */
  9402. /* Test program from Paul Eggert and Tony Leneis. */
  9403. #if TIME_WITH_SYS_TIME
  9404. # include <sys/time.h>
  9405. # include <time.h>
  9406. #else
  9407. # if HAVE_SYS_TIME_H
  9408. # include <sys/time.h>
  9409. # else
  9410. # include <time.h>
  9411. # endif
  9412. #endif
  9413. #if HAVE_STDLIB_H
  9414. # include <stdlib.h>
  9415. #endif
  9416. #if HAVE_UNISTD_H
  9417. # include <unistd.h>
  9418. #endif
  9419. #if !HAVE_ALARM
  9420. # define alarm(X) /* empty */
  9421. #endif
  9422. /* Work around redefinition to rpl_putenv by other config tests. */
  9423. #undef putenv
  9424. static time_t time_t_max;
  9425. static time_t time_t_min;
  9426. /* Values we'll use to set the TZ environment variable. */
  9427. static char *tz_strings[] = {
  9428. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  9429. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  9430. };
  9431. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  9432. /* Fail if mktime fails to convert a date in the spring-forward gap.
  9433. Based on a problem report from Andreas Jaeger. */
  9434. static void
  9435. spring_forward_gap ()
  9436. {
  9437. /* glibc (up to about 1998-10-07) failed this test. */
  9438. struct tm tm;
  9439. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  9440. instead of "TZ=America/Vancouver" in order to detect the bug even
  9441. on systems that don't support the Olson extension, or don't have the
  9442. full zoneinfo tables installed. */
  9443. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  9444. tm.tm_year = 98;
  9445. tm.tm_mon = 3;
  9446. tm.tm_mday = 5;
  9447. tm.tm_hour = 2;
  9448. tm.tm_min = 0;
  9449. tm.tm_sec = 0;
  9450. tm.tm_isdst = -1;
  9451. if (mktime (&tm) == (time_t)-1)
  9452. exit (1);
  9453. }
  9454. static void
  9455. mktime_test1 (now)
  9456. time_t now;
  9457. {
  9458. struct tm *lt;
  9459. if ((lt = localtime (&now)) && mktime (lt) != now)
  9460. exit (1);
  9461. }
  9462. static void
  9463. mktime_test (now)
  9464. time_t now;
  9465. {
  9466. mktime_test1 (now);
  9467. mktime_test1 ((time_t) (time_t_max - now));
  9468. mktime_test1 ((time_t) (time_t_min + now));
  9469. }
  9470. static void
  9471. irix_6_4_bug ()
  9472. {
  9473. /* Based on code from Ariel Faigon. */
  9474. struct tm tm;
  9475. tm.tm_year = 96;
  9476. tm.tm_mon = 3;
  9477. tm.tm_mday = 0;
  9478. tm.tm_hour = 0;
  9479. tm.tm_min = 0;
  9480. tm.tm_sec = 0;
  9481. tm.tm_isdst = -1;
  9482. mktime (&tm);
  9483. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  9484. exit (1);
  9485. }
  9486. static void
  9487. bigtime_test (j)
  9488. int j;
  9489. {
  9490. struct tm tm;
  9491. time_t now;
  9492. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  9493. now = mktime (&tm);
  9494. if (now != (time_t) -1)
  9495. {
  9496. struct tm *lt = localtime (&now);
  9497. if (! (lt
  9498. && lt->tm_year == tm.tm_year
  9499. && lt->tm_mon == tm.tm_mon
  9500. && lt->tm_mday == tm.tm_mday
  9501. && lt->tm_hour == tm.tm_hour
  9502. && lt->tm_min == tm.tm_min
  9503. && lt->tm_sec == tm.tm_sec
  9504. && lt->tm_yday == tm.tm_yday
  9505. && lt->tm_wday == tm.tm_wday
  9506. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  9507. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  9508. exit (1);
  9509. }
  9510. }
  9511. int
  9512. main ()
  9513. {
  9514. time_t t, delta;
  9515. int i, j;
  9516. /* This test makes some buggy mktime implementations loop.
  9517. Give up after 60 seconds; a mktime slower than that
  9518. isn't worth using anyway. */
  9519. alarm (60);
  9520. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  9521. continue;
  9522. time_t_max--;
  9523. if ((time_t) -1 < 0)
  9524. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  9525. continue;
  9526. delta = time_t_max / 997; /* a suitable prime number */
  9527. for (i = 0; i < N_STRINGS; i++)
  9528. {
  9529. if (tz_strings[i])
  9530. putenv (tz_strings[i]);
  9531. for (t = 0; t <= time_t_max - delta; t += delta)
  9532. mktime_test (t);
  9533. mktime_test ((time_t) 1);
  9534. mktime_test ((time_t) (60 * 60));
  9535. mktime_test ((time_t) (60 * 60 * 24));
  9536. for (j = 1; 0 < j; j *= 2)
  9537. bigtime_test (j);
  9538. bigtime_test (j - 1);
  9539. }
  9540. irix_6_4_bug ();
  9541. spring_forward_gap ();
  9542. exit (0);
  9543. }
  9544. _ACEOF
  9545. rm -f conftest$ac_exeext
  9546. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9547. (eval $ac_link) 2>&5
  9548. ac_status=$?
  9549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9550. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9551. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9552. (eval $ac_try) 2>&5
  9553. ac_status=$?
  9554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9555. (exit $ac_status); }; }; then
  9556. ac_cv_func_working_mktime=yes
  9557. else
  9558. echo "$as_me: program exited with status $ac_status" >&5
  9559. echo "$as_me: failed program was:" >&5
  9560. sed 's/^/| /' conftest.$ac_ext >&5
  9561. ( exit $ac_status )
  9562. ac_cv_func_working_mktime=no
  9563. fi
  9564. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9565. fi
  9566. fi
  9567. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  9568. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  9569. if test $ac_cv_func_working_mktime = no; then
  9570. case $LIBOBJS in
  9571. "mktime.$ac_objext" | \
  9572. *" mktime.$ac_objext" | \
  9573. "mktime.$ac_objext "* | \
  9574. *" mktime.$ac_objext "* ) ;;
  9575. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  9576. esac
  9577. fi
  9578. for ac_header in stdlib.h unistd.h
  9579. do
  9580. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9581. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9582. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9583. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9584. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9585. echo $ECHO_N "(cached) $ECHO_C" >&6
  9586. fi
  9587. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9588. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9589. else
  9590. # Is the header compilable?
  9591. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9592. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9593. cat >conftest.$ac_ext <<_ACEOF
  9594. /* confdefs.h. */
  9595. _ACEOF
  9596. cat confdefs.h >>conftest.$ac_ext
  9597. cat >>conftest.$ac_ext <<_ACEOF
  9598. /* end confdefs.h. */
  9599. $ac_includes_default
  9600. #include <$ac_header>
  9601. _ACEOF
  9602. rm -f conftest.$ac_objext
  9603. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9604. (eval $ac_compile) 2>conftest.er1
  9605. ac_status=$?
  9606. grep -v '^ *+' conftest.er1 >conftest.err
  9607. rm -f conftest.er1
  9608. cat conftest.err >&5
  9609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9610. (exit $ac_status); } &&
  9611. { ac_try='test -z "$ac_c_werror_flag"
  9612. || test ! -s conftest.err'
  9613. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9614. (eval $ac_try) 2>&5
  9615. ac_status=$?
  9616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9617. (exit $ac_status); }; } &&
  9618. { ac_try='test -s conftest.$ac_objext'
  9619. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9620. (eval $ac_try) 2>&5
  9621. ac_status=$?
  9622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9623. (exit $ac_status); }; }; then
  9624. ac_header_compiler=yes
  9625. else
  9626. echo "$as_me: failed program was:" >&5
  9627. sed 's/^/| /' conftest.$ac_ext >&5
  9628. ac_header_compiler=no
  9629. fi
  9630. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9631. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9632. echo "${ECHO_T}$ac_header_compiler" >&6
  9633. # Is the header present?
  9634. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9635. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9636. cat >conftest.$ac_ext <<_ACEOF
  9637. /* confdefs.h. */
  9638. _ACEOF
  9639. cat confdefs.h >>conftest.$ac_ext
  9640. cat >>conftest.$ac_ext <<_ACEOF
  9641. /* end confdefs.h. */
  9642. #include <$ac_header>
  9643. _ACEOF
  9644. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9645. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9646. ac_status=$?
  9647. grep -v '^ *+' conftest.er1 >conftest.err
  9648. rm -f conftest.er1
  9649. cat conftest.err >&5
  9650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9651. (exit $ac_status); } >/dev/null; then
  9652. if test -s conftest.err; then
  9653. ac_cpp_err=$ac_c_preproc_warn_flag
  9654. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9655. else
  9656. ac_cpp_err=
  9657. fi
  9658. else
  9659. ac_cpp_err=yes
  9660. fi
  9661. if test -z "$ac_cpp_err"; then
  9662. ac_header_preproc=yes
  9663. else
  9664. echo "$as_me: failed program was:" >&5
  9665. sed 's/^/| /' conftest.$ac_ext >&5
  9666. ac_header_preproc=no
  9667. fi
  9668. rm -f conftest.err conftest.$ac_ext
  9669. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9670. echo "${ECHO_T}$ac_header_preproc" >&6
  9671. # So? What about this header?
  9672. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9673. yes:no: )
  9674. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9675. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9676. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9677. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9678. ac_header_preproc=yes
  9679. ;;
  9680. no:yes:* )
  9681. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9682. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9683. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9684. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9685. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9686. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9687. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9688. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9689. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9690. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9691. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9692. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9693. (
  9694. cat <<\_ASBOX
  9695. ## ------------------------------------------ ##
  9696. ## Report this to the AC_PACKAGE_NAME lists. ##
  9697. ## ------------------------------------------ ##
  9698. _ASBOX
  9699. ) |
  9700. sed "s/^/$as_me: WARNING: /" >&2
  9701. ;;
  9702. esac
  9703. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9704. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9705. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9706. echo $ECHO_N "(cached) $ECHO_C" >&6
  9707. else
  9708. eval "$as_ac_Header=\$ac_header_preproc"
  9709. fi
  9710. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9711. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9712. fi
  9713. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9714. cat >>confdefs.h <<_ACEOF
  9715. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9716. _ACEOF
  9717. fi
  9718. done
  9719. for ac_func in getpagesize
  9720. do
  9721. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9722. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9723. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9724. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9725. echo $ECHO_N "(cached) $ECHO_C" >&6
  9726. else
  9727. cat >conftest.$ac_ext <<_ACEOF
  9728. /* confdefs.h. */
  9729. _ACEOF
  9730. cat confdefs.h >>conftest.$ac_ext
  9731. cat >>conftest.$ac_ext <<_ACEOF
  9732. /* end confdefs.h. */
  9733. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9734. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9735. #define $ac_func innocuous_$ac_func
  9736. /* System header to define __stub macros and hopefully few prototypes,
  9737. which can conflict with char $ac_func (); below.
  9738. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9739. <limits.h> exists even on freestanding compilers. */
  9740. #ifdef __STDC__
  9741. # include <limits.h>
  9742. #else
  9743. # include <assert.h>
  9744. #endif
  9745. #undef $ac_func
  9746. /* Override any gcc2 internal prototype to avoid an error. */
  9747. #ifdef __cplusplus
  9748. extern "C"
  9749. {
  9750. #endif
  9751. /* We use char because int might match the return type of a gcc2
  9752. builtin and then its argument prototype would still apply. */
  9753. char $ac_func ();
  9754. /* The GNU C library defines this for functions which it implements
  9755. to always fail with ENOSYS. Some functions are actually named
  9756. something starting with __ and the normal name is an alias. */
  9757. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9758. choke me
  9759. #else
  9760. char (*f) () = $ac_func;
  9761. #endif
  9762. #ifdef __cplusplus
  9763. }
  9764. #endif
  9765. int
  9766. main ()
  9767. {
  9768. return f != $ac_func;
  9769. ;
  9770. return 0;
  9771. }
  9772. _ACEOF
  9773. rm -f conftest.$ac_objext conftest$ac_exeext
  9774. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9775. (eval $ac_link) 2>conftest.er1
  9776. ac_status=$?
  9777. grep -v '^ *+' conftest.er1 >conftest.err
  9778. rm -f conftest.er1
  9779. cat conftest.err >&5
  9780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9781. (exit $ac_status); } &&
  9782. { ac_try='test -z "$ac_c_werror_flag"
  9783. || test ! -s conftest.err'
  9784. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9785. (eval $ac_try) 2>&5
  9786. ac_status=$?
  9787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9788. (exit $ac_status); }; } &&
  9789. { ac_try='test -s conftest$ac_exeext'
  9790. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9791. (eval $ac_try) 2>&5
  9792. ac_status=$?
  9793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9794. (exit $ac_status); }; }; then
  9795. eval "$as_ac_var=yes"
  9796. else
  9797. echo "$as_me: failed program was:" >&5
  9798. sed 's/^/| /' conftest.$ac_ext >&5
  9799. eval "$as_ac_var=no"
  9800. fi
  9801. rm -f conftest.err conftest.$ac_objext \
  9802. conftest$ac_exeext conftest.$ac_ext
  9803. fi
  9804. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9805. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9806. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9807. cat >>confdefs.h <<_ACEOF
  9808. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9809. _ACEOF
  9810. fi
  9811. done
  9812. echo "$as_me:$LINENO: checking for working mmap" >&5
  9813. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9814. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9815. echo $ECHO_N "(cached) $ECHO_C" >&6
  9816. else
  9817. if test "$cross_compiling" = yes; then
  9818. ac_cv_func_mmap_fixed_mapped=no
  9819. else
  9820. cat >conftest.$ac_ext <<_ACEOF
  9821. /* confdefs.h. */
  9822. _ACEOF
  9823. cat confdefs.h >>conftest.$ac_ext
  9824. cat >>conftest.$ac_ext <<_ACEOF
  9825. /* end confdefs.h. */
  9826. $ac_includes_default
  9827. /* malloc might have been renamed as rpl_malloc. */
  9828. #undef malloc
  9829. /* Thanks to Mike Haertel and Jim Avera for this test.
  9830. Here is a matrix of mmap possibilities:
  9831. mmap private not fixed
  9832. mmap private fixed at somewhere currently unmapped
  9833. mmap private fixed at somewhere already mapped
  9834. mmap shared not fixed
  9835. mmap shared fixed at somewhere currently unmapped
  9836. mmap shared fixed at somewhere already mapped
  9837. For private mappings, we should verify that changes cannot be read()
  9838. back from the file, nor mmap's back from the file at a different
  9839. address. (There have been systems where private was not correctly
  9840. implemented like the infamous i386 svr4.0, and systems where the
  9841. VM page cache was not coherent with the file system buffer cache
  9842. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9843. For shared mappings, we should conversely verify that changes get
  9844. propagated back to all the places they're supposed to be.
  9845. Grep wants private fixed already mapped.
  9846. The main things grep needs to know about mmap are:
  9847. * does it exist and is it safe to write into the mmap'd area
  9848. * how to use it (BSD variants) */
  9849. #include <fcntl.h>
  9850. #include <sys/mman.h>
  9851. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9852. char *malloc ();
  9853. #endif
  9854. /* This mess was copied from the GNU getpagesize.h. */
  9855. #if !HAVE_GETPAGESIZE
  9856. /* Assume that all systems that can run configure have sys/param.h. */
  9857. # if !HAVE_SYS_PARAM_H
  9858. # define HAVE_SYS_PARAM_H 1
  9859. # endif
  9860. # ifdef _SC_PAGESIZE
  9861. # define getpagesize() sysconf(_SC_PAGESIZE)
  9862. # else /* no _SC_PAGESIZE */
  9863. # if HAVE_SYS_PARAM_H
  9864. # include <sys/param.h>
  9865. # ifdef EXEC_PAGESIZE
  9866. # define getpagesize() EXEC_PAGESIZE
  9867. # else /* no EXEC_PAGESIZE */
  9868. # ifdef NBPG
  9869. # define getpagesize() NBPG * CLSIZE
  9870. # ifndef CLSIZE
  9871. # define CLSIZE 1
  9872. # endif /* no CLSIZE */
  9873. # else /* no NBPG */
  9874. # ifdef NBPC
  9875. # define getpagesize() NBPC
  9876. # else /* no NBPC */
  9877. # ifdef PAGESIZE
  9878. # define getpagesize() PAGESIZE
  9879. # endif /* PAGESIZE */
  9880. # endif /* no NBPC */
  9881. # endif /* no NBPG */
  9882. # endif /* no EXEC_PAGESIZE */
  9883. # else /* no HAVE_SYS_PARAM_H */
  9884. # define getpagesize() 8192 /* punt totally */
  9885. # endif /* no HAVE_SYS_PARAM_H */
  9886. # endif /* no _SC_PAGESIZE */
  9887. #endif /* no HAVE_GETPAGESIZE */
  9888. int
  9889. main ()
  9890. {
  9891. char *data, *data2, *data3;
  9892. int i, pagesize;
  9893. int fd;
  9894. pagesize = getpagesize ();
  9895. /* First, make a file with some known garbage in it. */
  9896. data = (char *) malloc (pagesize);
  9897. if (!data)
  9898. exit (1);
  9899. for (i = 0; i < pagesize; ++i)
  9900. *(data + i) = rand ();
  9901. umask (0);
  9902. fd = creat ("conftest.mmap", 0600);
  9903. if (fd < 0)
  9904. exit (1);
  9905. if (write (fd, data, pagesize) != pagesize)
  9906. exit (1);
  9907. close (fd);
  9908. /* Next, try to mmap the file at a fixed address which already has
  9909. something else allocated at it. If we can, also make sure that
  9910. we see the same garbage. */
  9911. fd = open ("conftest.mmap", O_RDWR);
  9912. if (fd < 0)
  9913. exit (1);
  9914. data2 = (char *) malloc (2 * pagesize);
  9915. if (!data2)
  9916. exit (1);
  9917. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9918. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9919. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9920. exit (1);
  9921. for (i = 0; i < pagesize; ++i)
  9922. if (*(data + i) != *(data2 + i))
  9923. exit (1);
  9924. /* Finally, make sure that changes to the mapped area do not
  9925. percolate back to the file as seen by read(). (This is a bug on
  9926. some variants of i386 svr4.0.) */
  9927. for (i = 0; i < pagesize; ++i)
  9928. *(data2 + i) = *(data2 + i) + 1;
  9929. data3 = (char *) malloc (pagesize);
  9930. if (!data3)
  9931. exit (1);
  9932. if (read (fd, data3, pagesize) != pagesize)
  9933. exit (1);
  9934. for (i = 0; i < pagesize; ++i)
  9935. if (*(data + i) != *(data3 + i))
  9936. exit (1);
  9937. close (fd);
  9938. exit (0);
  9939. }
  9940. _ACEOF
  9941. rm -f conftest$ac_exeext
  9942. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9943. (eval $ac_link) 2>&5
  9944. ac_status=$?
  9945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9946. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9947. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9948. (eval $ac_try) 2>&5
  9949. ac_status=$?
  9950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9951. (exit $ac_status); }; }; then
  9952. ac_cv_func_mmap_fixed_mapped=yes
  9953. else
  9954. echo "$as_me: program exited with status $ac_status" >&5
  9955. echo "$as_me: failed program was:" >&5
  9956. sed 's/^/| /' conftest.$ac_ext >&5
  9957. ( exit $ac_status )
  9958. ac_cv_func_mmap_fixed_mapped=no
  9959. fi
  9960. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9961. fi
  9962. fi
  9963. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9964. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9965. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9966. cat >>confdefs.h <<\_ACEOF
  9967. #define HAVE_MMAP 1
  9968. _ACEOF
  9969. fi
  9970. rm -f conftest.mmap
  9971. for ac_header in stdlib.h
  9972. do
  9973. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9974. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9975. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9976. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9977. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9978. echo $ECHO_N "(cached) $ECHO_C" >&6
  9979. fi
  9980. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9981. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9982. else
  9983. # Is the header compilable?
  9984. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9985. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9986. cat >conftest.$ac_ext <<_ACEOF
  9987. /* confdefs.h. */
  9988. _ACEOF
  9989. cat confdefs.h >>conftest.$ac_ext
  9990. cat >>conftest.$ac_ext <<_ACEOF
  9991. /* end confdefs.h. */
  9992. $ac_includes_default
  9993. #include <$ac_header>
  9994. _ACEOF
  9995. rm -f conftest.$ac_objext
  9996. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9997. (eval $ac_compile) 2>conftest.er1
  9998. ac_status=$?
  9999. grep -v '^ *+' conftest.er1 >conftest.err
  10000. rm -f conftest.er1
  10001. cat conftest.err >&5
  10002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10003. (exit $ac_status); } &&
  10004. { ac_try='test -z "$ac_c_werror_flag"
  10005. || test ! -s conftest.err'
  10006. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10007. (eval $ac_try) 2>&5
  10008. ac_status=$?
  10009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10010. (exit $ac_status); }; } &&
  10011. { ac_try='test -s conftest.$ac_objext'
  10012. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10013. (eval $ac_try) 2>&5
  10014. ac_status=$?
  10015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10016. (exit $ac_status); }; }; then
  10017. ac_header_compiler=yes
  10018. else
  10019. echo "$as_me: failed program was:" >&5
  10020. sed 's/^/| /' conftest.$ac_ext >&5
  10021. ac_header_compiler=no
  10022. fi
  10023. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10024. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10025. echo "${ECHO_T}$ac_header_compiler" >&6
  10026. # Is the header present?
  10027. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10028. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  10029. cat >conftest.$ac_ext <<_ACEOF
  10030. /* confdefs.h. */
  10031. _ACEOF
  10032. cat confdefs.h >>conftest.$ac_ext
  10033. cat >>conftest.$ac_ext <<_ACEOF
  10034. /* end confdefs.h. */
  10035. #include <$ac_header>
  10036. _ACEOF
  10037. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  10038. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10039. ac_status=$?
  10040. grep -v '^ *+' conftest.er1 >conftest.err
  10041. rm -f conftest.er1
  10042. cat conftest.err >&5
  10043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10044. (exit $ac_status); } >/dev/null; then
  10045. if test -s conftest.err; then
  10046. ac_cpp_err=$ac_c_preproc_warn_flag
  10047. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10048. else
  10049. ac_cpp_err=
  10050. fi
  10051. else
  10052. ac_cpp_err=yes
  10053. fi
  10054. if test -z "$ac_cpp_err"; then
  10055. ac_header_preproc=yes
  10056. else
  10057. echo "$as_me: failed program was:" >&5
  10058. sed 's/^/| /' conftest.$ac_ext >&5
  10059. ac_header_preproc=no
  10060. fi
  10061. rm -f conftest.err conftest.$ac_ext
  10062. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10063. echo "${ECHO_T}$ac_header_preproc" >&6
  10064. # So? What about this header?
  10065. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10066. yes:no: )
  10067. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10068. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10069. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10070. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10071. ac_header_preproc=yes
  10072. ;;
  10073. no:yes:* )
  10074. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10075. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10076. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10077. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10078. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10079. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10080. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10081. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10082. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10083. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10084. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10085. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10086. (
  10087. cat <<\_ASBOX
  10088. ## ------------------------------------------ ##
  10089. ## Report this to the AC_PACKAGE_NAME lists. ##
  10090. ## ------------------------------------------ ##
  10091. _ASBOX
  10092. ) |
  10093. sed "s/^/$as_me: WARNING: /" >&2
  10094. ;;
  10095. esac
  10096. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10097. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10098. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10099. echo $ECHO_N "(cached) $ECHO_C" >&6
  10100. else
  10101. eval "$as_ac_Header=\$ac_header_preproc"
  10102. fi
  10103. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10104. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10105. fi
  10106. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10107. cat >>confdefs.h <<_ACEOF
  10108. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10109. _ACEOF
  10110. fi
  10111. done
  10112. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  10113. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  10114. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  10115. echo $ECHO_N "(cached) $ECHO_C" >&6
  10116. else
  10117. if test "$cross_compiling" = yes; then
  10118. ac_cv_func_realloc_0_nonnull=no
  10119. else
  10120. cat >conftest.$ac_ext <<_ACEOF
  10121. /* confdefs.h. */
  10122. _ACEOF
  10123. cat confdefs.h >>conftest.$ac_ext
  10124. cat >>conftest.$ac_ext <<_ACEOF
  10125. /* end confdefs.h. */
  10126. #if STDC_HEADERS || HAVE_STDLIB_H
  10127. # include <stdlib.h>
  10128. #else
  10129. char *realloc ();
  10130. #endif
  10131. int
  10132. main ()
  10133. {
  10134. exit (realloc (0, 0) ? 0 : 1);
  10135. ;
  10136. return 0;
  10137. }
  10138. _ACEOF
  10139. rm -f conftest$ac_exeext
  10140. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10141. (eval $ac_link) 2>&5
  10142. ac_status=$?
  10143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10144. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10145. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10146. (eval $ac_try) 2>&5
  10147. ac_status=$?
  10148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10149. (exit $ac_status); }; }; then
  10150. ac_cv_func_realloc_0_nonnull=yes
  10151. else
  10152. echo "$as_me: program exited with status $ac_status" >&5
  10153. echo "$as_me: failed program was:" >&5
  10154. sed 's/^/| /' conftest.$ac_ext >&5
  10155. ( exit $ac_status )
  10156. ac_cv_func_realloc_0_nonnull=no
  10157. fi
  10158. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10159. fi
  10160. fi
  10161. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  10162. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  10163. if test $ac_cv_func_realloc_0_nonnull = yes; then
  10164. cat >>confdefs.h <<\_ACEOF
  10165. #define HAVE_REALLOC 1
  10166. _ACEOF
  10167. else
  10168. cat >>confdefs.h <<\_ACEOF
  10169. #define HAVE_REALLOC 0
  10170. _ACEOF
  10171. case $LIBOBJS in
  10172. "realloc.$ac_objext" | \
  10173. *" realloc.$ac_objext" | \
  10174. "realloc.$ac_objext "* | \
  10175. *" realloc.$ac_objext "* ) ;;
  10176. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  10177. esac
  10178. cat >>confdefs.h <<\_ACEOF
  10179. #define realloc rpl_realloc
  10180. _ACEOF
  10181. fi
  10182. for ac_header in sys/select.h sys/socket.h
  10183. do
  10184. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10185. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10186. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10187. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10188. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10189. echo $ECHO_N "(cached) $ECHO_C" >&6
  10190. fi
  10191. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10192. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10193. else
  10194. # Is the header compilable?
  10195. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10196. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  10197. cat >conftest.$ac_ext <<_ACEOF
  10198. /* confdefs.h. */
  10199. _ACEOF
  10200. cat confdefs.h >>conftest.$ac_ext
  10201. cat >>conftest.$ac_ext <<_ACEOF
  10202. /* end confdefs.h. */
  10203. $ac_includes_default
  10204. #include <$ac_header>
  10205. _ACEOF
  10206. rm -f conftest.$ac_objext
  10207. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10208. (eval $ac_compile) 2>conftest.er1
  10209. ac_status=$?
  10210. grep -v '^ *+' conftest.er1 >conftest.err
  10211. rm -f conftest.er1
  10212. cat conftest.err >&5
  10213. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10214. (exit $ac_status); } &&
  10215. { ac_try='test -z "$ac_c_werror_flag"
  10216. || test ! -s conftest.err'
  10217. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10218. (eval $ac_try) 2>&5
  10219. ac_status=$?
  10220. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10221. (exit $ac_status); }; } &&
  10222. { ac_try='test -s conftest.$ac_objext'
  10223. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10224. (eval $ac_try) 2>&5
  10225. ac_status=$?
  10226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10227. (exit $ac_status); }; }; then
  10228. ac_header_compiler=yes
  10229. else
  10230. echo "$as_me: failed program was:" >&5
  10231. sed 's/^/| /' conftest.$ac_ext >&5
  10232. ac_header_compiler=no
  10233. fi
  10234. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10235. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10236. echo "${ECHO_T}$ac_header_compiler" >&6
  10237. # Is the header present?
  10238. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10239. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  10240. cat >conftest.$ac_ext <<_ACEOF
  10241. /* confdefs.h. */
  10242. _ACEOF
  10243. cat confdefs.h >>conftest.$ac_ext
  10244. cat >>conftest.$ac_ext <<_ACEOF
  10245. /* end confdefs.h. */
  10246. #include <$ac_header>
  10247. _ACEOF
  10248. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  10249. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10250. ac_status=$?
  10251. grep -v '^ *+' conftest.er1 >conftest.err
  10252. rm -f conftest.er1
  10253. cat conftest.err >&5
  10254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10255. (exit $ac_status); } >/dev/null; then
  10256. if test -s conftest.err; then
  10257. ac_cpp_err=$ac_c_preproc_warn_flag
  10258. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10259. else
  10260. ac_cpp_err=
  10261. fi
  10262. else
  10263. ac_cpp_err=yes
  10264. fi
  10265. if test -z "$ac_cpp_err"; then
  10266. ac_header_preproc=yes
  10267. else
  10268. echo "$as_me: failed program was:" >&5
  10269. sed 's/^/| /' conftest.$ac_ext >&5
  10270. ac_header_preproc=no
  10271. fi
  10272. rm -f conftest.err conftest.$ac_ext
  10273. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10274. echo "${ECHO_T}$ac_header_preproc" >&6
  10275. # So? What about this header?
  10276. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10277. yes:no: )
  10278. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10279. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10280. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10281. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10282. ac_header_preproc=yes
  10283. ;;
  10284. no:yes:* )
  10285. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10286. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10287. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10288. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10289. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10290. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10291. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10292. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10293. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10294. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10295. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10296. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10297. (
  10298. cat <<\_ASBOX
  10299. ## ------------------------------------------ ##
  10300. ## Report this to the AC_PACKAGE_NAME lists. ##
  10301. ## ------------------------------------------ ##
  10302. _ASBOX
  10303. ) |
  10304. sed "s/^/$as_me: WARNING: /" >&2
  10305. ;;
  10306. esac
  10307. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10308. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10309. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10310. echo $ECHO_N "(cached) $ECHO_C" >&6
  10311. else
  10312. eval "$as_ac_Header=\$ac_header_preproc"
  10313. fi
  10314. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10315. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10316. fi
  10317. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10318. cat >>confdefs.h <<_ACEOF
  10319. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10320. _ACEOF
  10321. fi
  10322. done
  10323. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  10324. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  10325. if test "${ac_cv_func_select_args+set}" = set; then
  10326. echo $ECHO_N "(cached) $ECHO_C" >&6
  10327. else
  10328. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  10329. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  10330. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  10331. cat >conftest.$ac_ext <<_ACEOF
  10332. /* confdefs.h. */
  10333. _ACEOF
  10334. cat confdefs.h >>conftest.$ac_ext
  10335. cat >>conftest.$ac_ext <<_ACEOF
  10336. /* end confdefs.h. */
  10337. $ac_includes_default
  10338. #if HAVE_SYS_SELECT_H
  10339. # include <sys/select.h>
  10340. #endif
  10341. #if HAVE_SYS_SOCKET_H
  10342. # include <sys/socket.h>
  10343. #endif
  10344. int
  10345. main ()
  10346. {
  10347. extern int select ($ac_arg1,
  10348. $ac_arg234, $ac_arg234, $ac_arg234,
  10349. $ac_arg5);
  10350. ;
  10351. return 0;
  10352. }
  10353. _ACEOF
  10354. rm -f conftest.$ac_objext
  10355. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10356. (eval $ac_compile) 2>conftest.er1
  10357. ac_status=$?
  10358. grep -v '^ *+' conftest.er1 >conftest.err
  10359. rm -f conftest.er1
  10360. cat conftest.err >&5
  10361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10362. (exit $ac_status); } &&
  10363. { ac_try='test -z "$ac_c_werror_flag"
  10364. || test ! -s conftest.err'
  10365. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10366. (eval $ac_try) 2>&5
  10367. ac_status=$?
  10368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10369. (exit $ac_status); }; } &&
  10370. { ac_try='test -s conftest.$ac_objext'
  10371. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10372. (eval $ac_try) 2>&5
  10373. ac_status=$?
  10374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10375. (exit $ac_status); }; }; then
  10376. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  10377. else
  10378. echo "$as_me: failed program was:" >&5
  10379. sed 's/^/| /' conftest.$ac_ext >&5
  10380. fi
  10381. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10382. done
  10383. done
  10384. done
  10385. # Provide a safe default value.
  10386. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  10387. fi
  10388. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  10389. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  10390. ac_save_IFS=$IFS; IFS=','
  10391. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  10392. IFS=$ac_save_IFS
  10393. shift
  10394. cat >>confdefs.h <<_ACEOF
  10395. #define SELECT_TYPE_ARG1 $1
  10396. _ACEOF
  10397. cat >>confdefs.h <<_ACEOF
  10398. #define SELECT_TYPE_ARG234 ($2)
  10399. _ACEOF
  10400. cat >>confdefs.h <<_ACEOF
  10401. #define SELECT_TYPE_ARG5 ($3)
  10402. _ACEOF
  10403. rm -f conftest*
  10404. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  10405. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  10406. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  10407. echo $ECHO_N "(cached) $ECHO_C" >&6
  10408. else
  10409. if test "$cross_compiling" = yes; then
  10410. ac_cv_func_stat_empty_string_bug=yes
  10411. else
  10412. cat >conftest.$ac_ext <<_ACEOF
  10413. /* confdefs.h. */
  10414. _ACEOF
  10415. cat confdefs.h >>conftest.$ac_ext
  10416. cat >>conftest.$ac_ext <<_ACEOF
  10417. /* end confdefs.h. */
  10418. $ac_includes_default
  10419. int
  10420. main ()
  10421. {
  10422. struct stat sbuf;
  10423. exit (stat ("", &sbuf) ? 1 : 0);
  10424. ;
  10425. return 0;
  10426. }
  10427. _ACEOF
  10428. rm -f conftest$ac_exeext
  10429. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10430. (eval $ac_link) 2>&5
  10431. ac_status=$?
  10432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10433. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10434. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10435. (eval $ac_try) 2>&5
  10436. ac_status=$?
  10437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10438. (exit $ac_status); }; }; then
  10439. ac_cv_func_stat_empty_string_bug=yes
  10440. else
  10441. echo "$as_me: program exited with status $ac_status" >&5
  10442. echo "$as_me: failed program was:" >&5
  10443. sed 's/^/| /' conftest.$ac_ext >&5
  10444. ( exit $ac_status )
  10445. ac_cv_func_stat_empty_string_bug=no
  10446. fi
  10447. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10448. fi
  10449. fi
  10450. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  10451. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  10452. if test $ac_cv_func_stat_empty_string_bug = yes; then
  10453. case $LIBOBJS in
  10454. "stat.$ac_objext" | \
  10455. *" stat.$ac_objext" | \
  10456. "stat.$ac_objext "* | \
  10457. *" stat.$ac_objext "* ) ;;
  10458. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  10459. esac
  10460. cat >>confdefs.h <<_ACEOF
  10461. #define HAVE_STAT_EMPTY_STRING_BUG 1
  10462. _ACEOF
  10463. fi
  10464. for ac_func in strftime
  10465. do
  10466. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10467. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10468. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10469. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10470. echo $ECHO_N "(cached) $ECHO_C" >&6
  10471. else
  10472. cat >conftest.$ac_ext <<_ACEOF
  10473. /* confdefs.h. */
  10474. _ACEOF
  10475. cat confdefs.h >>conftest.$ac_ext
  10476. cat >>conftest.$ac_ext <<_ACEOF
  10477. /* end confdefs.h. */
  10478. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10479. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10480. #define $ac_func innocuous_$ac_func
  10481. /* System header to define __stub macros and hopefully few prototypes,
  10482. which can conflict with char $ac_func (); below.
  10483. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10484. <limits.h> exists even on freestanding compilers. */
  10485. #ifdef __STDC__
  10486. # include <limits.h>
  10487. #else
  10488. # include <assert.h>
  10489. #endif
  10490. #undef $ac_func
  10491. /* Override any gcc2 internal prototype to avoid an error. */
  10492. #ifdef __cplusplus
  10493. extern "C"
  10494. {
  10495. #endif
  10496. /* We use char because int might match the return type of a gcc2
  10497. builtin and then its argument prototype would still apply. */
  10498. char $ac_func ();
  10499. /* The GNU C library defines this for functions which it implements
  10500. to always fail with ENOSYS. Some functions are actually named
  10501. something starting with __ and the normal name is an alias. */
  10502. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10503. choke me
  10504. #else
  10505. char (*f) () = $ac_func;
  10506. #endif
  10507. #ifdef __cplusplus
  10508. }
  10509. #endif
  10510. int
  10511. main ()
  10512. {
  10513. return f != $ac_func;
  10514. ;
  10515. return 0;
  10516. }
  10517. _ACEOF
  10518. rm -f conftest.$ac_objext conftest$ac_exeext
  10519. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10520. (eval $ac_link) 2>conftest.er1
  10521. ac_status=$?
  10522. grep -v '^ *+' conftest.er1 >conftest.err
  10523. rm -f conftest.er1
  10524. cat conftest.err >&5
  10525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10526. (exit $ac_status); } &&
  10527. { ac_try='test -z "$ac_c_werror_flag"
  10528. || test ! -s conftest.err'
  10529. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10530. (eval $ac_try) 2>&5
  10531. ac_status=$?
  10532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10533. (exit $ac_status); }; } &&
  10534. { ac_try='test -s conftest$ac_exeext'
  10535. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10536. (eval $ac_try) 2>&5
  10537. ac_status=$?
  10538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10539. (exit $ac_status); }; }; then
  10540. eval "$as_ac_var=yes"
  10541. else
  10542. echo "$as_me: failed program was:" >&5
  10543. sed 's/^/| /' conftest.$ac_ext >&5
  10544. eval "$as_ac_var=no"
  10545. fi
  10546. rm -f conftest.err conftest.$ac_objext \
  10547. conftest$ac_exeext conftest.$ac_ext
  10548. fi
  10549. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10550. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10551. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10552. cat >>confdefs.h <<_ACEOF
  10553. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10554. _ACEOF
  10555. else
  10556. # strftime is in -lintl on SCO UNIX.
  10557. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  10558. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  10559. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  10560. echo $ECHO_N "(cached) $ECHO_C" >&6
  10561. else
  10562. ac_check_lib_save_LIBS=$LIBS
  10563. LIBS="-lintl $LIBS"
  10564. cat >conftest.$ac_ext <<_ACEOF
  10565. /* confdefs.h. */
  10566. _ACEOF
  10567. cat confdefs.h >>conftest.$ac_ext
  10568. cat >>conftest.$ac_ext <<_ACEOF
  10569. /* end confdefs.h. */
  10570. /* Override any gcc2 internal prototype to avoid an error. */
  10571. #ifdef __cplusplus
  10572. extern "C"
  10573. #endif
  10574. /* We use char because int might match the return type of a gcc2
  10575. builtin and then its argument prototype would still apply. */
  10576. char strftime ();
  10577. int
  10578. main ()
  10579. {
  10580. strftime ();
  10581. ;
  10582. return 0;
  10583. }
  10584. _ACEOF
  10585. rm -f conftest.$ac_objext conftest$ac_exeext
  10586. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10587. (eval $ac_link) 2>conftest.er1
  10588. ac_status=$?
  10589. grep -v '^ *+' conftest.er1 >conftest.err
  10590. rm -f conftest.er1
  10591. cat conftest.err >&5
  10592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10593. (exit $ac_status); } &&
  10594. { ac_try='test -z "$ac_c_werror_flag"
  10595. || test ! -s conftest.err'
  10596. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10597. (eval $ac_try) 2>&5
  10598. ac_status=$?
  10599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10600. (exit $ac_status); }; } &&
  10601. { ac_try='test -s conftest$ac_exeext'
  10602. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10603. (eval $ac_try) 2>&5
  10604. ac_status=$?
  10605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10606. (exit $ac_status); }; }; then
  10607. ac_cv_lib_intl_strftime=yes
  10608. else
  10609. echo "$as_me: failed program was:" >&5
  10610. sed 's/^/| /' conftest.$ac_ext >&5
  10611. ac_cv_lib_intl_strftime=no
  10612. fi
  10613. rm -f conftest.err conftest.$ac_objext \
  10614. conftest$ac_exeext conftest.$ac_ext
  10615. LIBS=$ac_check_lib_save_LIBS
  10616. fi
  10617. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  10618. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  10619. if test $ac_cv_lib_intl_strftime = yes; then
  10620. cat >>confdefs.h <<\_ACEOF
  10621. #define HAVE_STRFTIME 1
  10622. _ACEOF
  10623. LIBS="-lintl $LIBS"
  10624. fi
  10625. fi
  10626. done
  10627. #checkpoint
  10628. cat >confcache <<\_ACEOF
  10629. # This file is a shell script that caches the results of configure
  10630. # tests run on this system so they can be shared between configure
  10631. # scripts and configure runs, see configure's option --config-cache.
  10632. # It is not useful on other systems. If it contains results you don't
  10633. # want to keep, you may remove or edit it.
  10634. #
  10635. # config.status only pays attention to the cache file if you give it
  10636. # the --recheck option to rerun configure.
  10637. #
  10638. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10639. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10640. # following values.
  10641. _ACEOF
  10642. # The following way of writing the cache mishandles newlines in values,
  10643. # but we know of no workaround that is simple, portable, and efficient.
  10644. # So, don't put newlines in cache variables' values.
  10645. # Ultrix sh set writes to stderr and can't be redirected directly,
  10646. # and sets the high bit in the cache file unless we assign to the vars.
  10647. {
  10648. (set) 2>&1 |
  10649. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10650. *ac_space=\ *)
  10651. # `set' does not quote correctly, so add quotes (double-quote
  10652. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10653. sed -n \
  10654. "s/'/'\\\\''/g;
  10655. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10656. ;;
  10657. *)
  10658. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10659. sed -n \
  10660. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10661. ;;
  10662. esac;
  10663. } |
  10664. sed '
  10665. t clear
  10666. : clear
  10667. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10668. t end
  10669. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10670. : end' >>confcache
  10671. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10672. if test -w $cache_file; then
  10673. test "x$cache_file" != "x/dev/null"
  10674. cat confcache >$cache_file
  10675. else
  10676. echo "not updating unwritable cache $cache_file"
  10677. fi
  10678. fi
  10679. rm -f confcache
  10680. for ac_func in clock fsync getrusage inet_aton isascii gethostbyname2
  10681. do
  10682. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10683. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10684. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10685. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10686. echo $ECHO_N "(cached) $ECHO_C" >&6
  10687. else
  10688. cat >conftest.$ac_ext <<_ACEOF
  10689. /* confdefs.h. */
  10690. _ACEOF
  10691. cat confdefs.h >>conftest.$ac_ext
  10692. cat >>conftest.$ac_ext <<_ACEOF
  10693. /* end confdefs.h. */
  10694. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10695. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10696. #define $ac_func innocuous_$ac_func
  10697. /* System header to define __stub macros and hopefully few prototypes,
  10698. which can conflict with char $ac_func (); below.
  10699. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10700. <limits.h> exists even on freestanding compilers. */
  10701. #ifdef __STDC__
  10702. # include <limits.h>
  10703. #else
  10704. # include <assert.h>
  10705. #endif
  10706. #undef $ac_func
  10707. /* Override any gcc2 internal prototype to avoid an error. */
  10708. #ifdef __cplusplus
  10709. extern "C"
  10710. {
  10711. #endif
  10712. /* We use char because int might match the return type of a gcc2
  10713. builtin and then its argument prototype would still apply. */
  10714. char $ac_func ();
  10715. /* The GNU C library defines this for functions which it implements
  10716. to always fail with ENOSYS. Some functions are actually named
  10717. something starting with __ and the normal name is an alias. */
  10718. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10719. choke me
  10720. #else
  10721. char (*f) () = $ac_func;
  10722. #endif
  10723. #ifdef __cplusplus
  10724. }
  10725. #endif
  10726. int
  10727. main ()
  10728. {
  10729. return f != $ac_func;
  10730. ;
  10731. return 0;
  10732. }
  10733. _ACEOF
  10734. rm -f conftest.$ac_objext conftest$ac_exeext
  10735. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10736. (eval $ac_link) 2>conftest.er1
  10737. ac_status=$?
  10738. grep -v '^ *+' conftest.er1 >conftest.err
  10739. rm -f conftest.er1
  10740. cat conftest.err >&5
  10741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10742. (exit $ac_status); } &&
  10743. { ac_try='test -z "$ac_c_werror_flag"
  10744. || test ! -s conftest.err'
  10745. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10746. (eval $ac_try) 2>&5
  10747. ac_status=$?
  10748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10749. (exit $ac_status); }; } &&
  10750. { ac_try='test -s conftest$ac_exeext'
  10751. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10752. (eval $ac_try) 2>&5
  10753. ac_status=$?
  10754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10755. (exit $ac_status); }; }; then
  10756. eval "$as_ac_var=yes"
  10757. else
  10758. echo "$as_me: failed program was:" >&5
  10759. sed 's/^/| /' conftest.$ac_ext >&5
  10760. eval "$as_ac_var=no"
  10761. fi
  10762. rm -f conftest.err conftest.$ac_objext \
  10763. conftest$ac_exeext conftest.$ac_ext
  10764. fi
  10765. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10766. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10767. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10768. cat >>confdefs.h <<_ACEOF
  10769. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10770. _ACEOF
  10771. fi
  10772. done
  10773. for ac_func in getipnodebyname memcpy memset random rename setpgid sigaction sigemptyset snprintf srandom
  10774. do
  10775. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10776. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10777. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10778. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10779. echo $ECHO_N "(cached) $ECHO_C" >&6
  10780. else
  10781. cat >conftest.$ac_ext <<_ACEOF
  10782. /* confdefs.h. */
  10783. _ACEOF
  10784. cat confdefs.h >>conftest.$ac_ext
  10785. cat >>conftest.$ac_ext <<_ACEOF
  10786. /* end confdefs.h. */
  10787. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10788. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10789. #define $ac_func innocuous_$ac_func
  10790. /* System header to define __stub macros and hopefully few prototypes,
  10791. which can conflict with char $ac_func (); below.
  10792. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10793. <limits.h> exists even on freestanding compilers. */
  10794. #ifdef __STDC__
  10795. # include <limits.h>
  10796. #else
  10797. # include <assert.h>
  10798. #endif
  10799. #undef $ac_func
  10800. /* Override any gcc2 internal prototype to avoid an error. */
  10801. #ifdef __cplusplus
  10802. extern "C"
  10803. {
  10804. #endif
  10805. /* We use char because int might match the return type of a gcc2
  10806. builtin and then its argument prototype would still apply. */
  10807. char $ac_func ();
  10808. /* The GNU C library defines this for functions which it implements
  10809. to always fail with ENOSYS. Some functions are actually named
  10810. something starting with __ and the normal name is an alias. */
  10811. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10812. choke me
  10813. #else
  10814. char (*f) () = $ac_func;
  10815. #endif
  10816. #ifdef __cplusplus
  10817. }
  10818. #endif
  10819. int
  10820. main ()
  10821. {
  10822. return f != $ac_func;
  10823. ;
  10824. return 0;
  10825. }
  10826. _ACEOF
  10827. rm -f conftest.$ac_objext conftest$ac_exeext
  10828. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10829. (eval $ac_link) 2>conftest.er1
  10830. ac_status=$?
  10831. grep -v '^ *+' conftest.er1 >conftest.err
  10832. rm -f conftest.er1
  10833. cat conftest.err >&5
  10834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10835. (exit $ac_status); } &&
  10836. { ac_try='test -z "$ac_c_werror_flag"
  10837. || test ! -s conftest.err'
  10838. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10839. (eval $ac_try) 2>&5
  10840. ac_status=$?
  10841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10842. (exit $ac_status); }; } &&
  10843. { ac_try='test -s conftest$ac_exeext'
  10844. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10845. (eval $ac_try) 2>&5
  10846. ac_status=$?
  10847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10848. (exit $ac_status); }; }; then
  10849. eval "$as_ac_var=yes"
  10850. else
  10851. echo "$as_me: failed program was:" >&5
  10852. sed 's/^/| /' conftest.$ac_ext >&5
  10853. eval "$as_ac_var=no"
  10854. fi
  10855. rm -f conftest.err conftest.$ac_objext \
  10856. conftest$ac_exeext conftest.$ac_ext
  10857. fi
  10858. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10859. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10860. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10861. cat >>confdefs.h <<_ACEOF
  10862. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10863. _ACEOF
  10864. fi
  10865. done
  10866. #checkpoint
  10867. cat >confcache <<\_ACEOF
  10868. # This file is a shell script that caches the results of configure
  10869. # tests run on this system so they can be shared between configure
  10870. # scripts and configure runs, see configure's option --config-cache.
  10871. # It is not useful on other systems. If it contains results you don't
  10872. # want to keep, you may remove or edit it.
  10873. #
  10874. # config.status only pays attention to the cache file if you give it
  10875. # the --recheck option to rerun configure.
  10876. #
  10877. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10878. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10879. # following values.
  10880. _ACEOF
  10881. # The following way of writing the cache mishandles newlines in values,
  10882. # but we know of no workaround that is simple, portable, and efficient.
  10883. # So, don't put newlines in cache variables' values.
  10884. # Ultrix sh set writes to stderr and can't be redirected directly,
  10885. # and sets the high bit in the cache file unless we assign to the vars.
  10886. {
  10887. (set) 2>&1 |
  10888. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10889. *ac_space=\ *)
  10890. # `set' does not quote correctly, so add quotes (double-quote
  10891. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10892. sed -n \
  10893. "s/'/'\\\\''/g;
  10894. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10895. ;;
  10896. *)
  10897. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10898. sed -n \
  10899. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10900. ;;
  10901. esac;
  10902. } |
  10903. sed '
  10904. t clear
  10905. : clear
  10906. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10907. t end
  10908. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10909. : end' >>confcache
  10910. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10911. if test -w $cache_file; then
  10912. test "x$cache_file" != "x/dev/null"
  10913. cat confcache >$cache_file
  10914. else
  10915. echo "not updating unwritable cache $cache_file"
  10916. fi
  10917. fi
  10918. rm -f confcache
  10919. for ac_func in strcasecmp strncasecmp vsnprintf
  10920. do
  10921. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10922. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10923. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10924. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10925. echo $ECHO_N "(cached) $ECHO_C" >&6
  10926. else
  10927. cat >conftest.$ac_ext <<_ACEOF
  10928. /* confdefs.h. */
  10929. _ACEOF
  10930. cat confdefs.h >>conftest.$ac_ext
  10931. cat >>conftest.$ac_ext <<_ACEOF
  10932. /* end confdefs.h. */
  10933. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10934. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10935. #define $ac_func innocuous_$ac_func
  10936. /* System header to define __stub macros and hopefully few prototypes,
  10937. which can conflict with char $ac_func (); below.
  10938. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10939. <limits.h> exists even on freestanding compilers. */
  10940. #ifdef __STDC__
  10941. # include <limits.h>
  10942. #else
  10943. # include <assert.h>
  10944. #endif
  10945. #undef $ac_func
  10946. /* Override any gcc2 internal prototype to avoid an error. */
  10947. #ifdef __cplusplus
  10948. extern "C"
  10949. {
  10950. #endif
  10951. /* We use char because int might match the return type of a gcc2
  10952. builtin and then its argument prototype would still apply. */
  10953. char $ac_func ();
  10954. /* The GNU C library defines this for functions which it implements
  10955. to always fail with ENOSYS. Some functions are actually named
  10956. something starting with __ and the normal name is an alias. */
  10957. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10958. choke me
  10959. #else
  10960. char (*f) () = $ac_func;
  10961. #endif
  10962. #ifdef __cplusplus
  10963. }
  10964. #endif
  10965. int
  10966. main ()
  10967. {
  10968. return f != $ac_func;
  10969. ;
  10970. return 0;
  10971. }
  10972. _ACEOF
  10973. rm -f conftest.$ac_objext conftest$ac_exeext
  10974. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10975. (eval $ac_link) 2>conftest.er1
  10976. ac_status=$?
  10977. grep -v '^ *+' conftest.er1 >conftest.err
  10978. rm -f conftest.er1
  10979. cat conftest.err >&5
  10980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10981. (exit $ac_status); } &&
  10982. { ac_try='test -z "$ac_c_werror_flag"
  10983. || test ! -s conftest.err'
  10984. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10985. (eval $ac_try) 2>&5
  10986. ac_status=$?
  10987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10988. (exit $ac_status); }; } &&
  10989. { ac_try='test -s conftest$ac_exeext'
  10990. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10991. (eval $ac_try) 2>&5
  10992. ac_status=$?
  10993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10994. (exit $ac_status); }; }; then
  10995. eval "$as_ac_var=yes"
  10996. else
  10997. echo "$as_me: failed program was:" >&5
  10998. sed 's/^/| /' conftest.$ac_ext >&5
  10999. eval "$as_ac_var=no"
  11000. fi
  11001. rm -f conftest.err conftest.$ac_objext \
  11002. conftest$ac_exeext conftest.$ac_ext
  11003. fi
  11004. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  11005. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  11006. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11007. cat >>confdefs.h <<_ACEOF
  11008. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11009. _ACEOF
  11010. fi
  11011. done
  11012. #autoscan suggested this....
  11013. #These are recommended by autoscan, but no code supports it currently
  11014. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  11015. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  11016. for ac_func in vsprintf
  11017. do
  11018. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11019. echo "$as_me:$LINENO: checking for $ac_func" >&5
  11020. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  11021. if eval "test \"\${$as_ac_var+set}\" = set"; then
  11022. echo $ECHO_N "(cached) $ECHO_C" >&6
  11023. else
  11024. cat >conftest.$ac_ext <<_ACEOF
  11025. /* confdefs.h. */
  11026. _ACEOF
  11027. cat confdefs.h >>conftest.$ac_ext
  11028. cat >>conftest.$ac_ext <<_ACEOF
  11029. /* end confdefs.h. */
  11030. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11031. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11032. #define $ac_func innocuous_$ac_func
  11033. /* System header to define __stub macros and hopefully few prototypes,
  11034. which can conflict with char $ac_func (); below.
  11035. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11036. <limits.h> exists even on freestanding compilers. */
  11037. #ifdef __STDC__
  11038. # include <limits.h>
  11039. #else
  11040. # include <assert.h>
  11041. #endif
  11042. #undef $ac_func
  11043. /* Override any gcc2 internal prototype to avoid an error. */
  11044. #ifdef __cplusplus
  11045. extern "C"
  11046. {
  11047. #endif
  11048. /* We use char because int might match the return type of a gcc2
  11049. builtin and then its argument prototype would still apply. */
  11050. char $ac_func ();
  11051. /* The GNU C library defines this for functions which it implements
  11052. to always fail with ENOSYS. Some functions are actually named
  11053. something starting with __ and the normal name is an alias. */
  11054. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  11055. choke me
  11056. #else
  11057. char (*f) () = $ac_func;
  11058. #endif
  11059. #ifdef __cplusplus
  11060. }
  11061. #endif
  11062. int
  11063. main ()
  11064. {
  11065. return f != $ac_func;
  11066. ;
  11067. return 0;
  11068. }
  11069. _ACEOF
  11070. rm -f conftest.$ac_objext conftest$ac_exeext
  11071. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11072. (eval $ac_link) 2>conftest.er1
  11073. ac_status=$?
  11074. grep -v '^ *+' conftest.er1 >conftest.err
  11075. rm -f conftest.er1
  11076. cat conftest.err >&5
  11077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11078. (exit $ac_status); } &&
  11079. { ac_try='test -z "$ac_c_werror_flag"
  11080. || test ! -s conftest.err'
  11081. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11082. (eval $ac_try) 2>&5
  11083. ac_status=$?
  11084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11085. (exit $ac_status); }; } &&
  11086. { ac_try='test -s conftest$ac_exeext'
  11087. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11088. (eval $ac_try) 2>&5
  11089. ac_status=$?
  11090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11091. (exit $ac_status); }; }; then
  11092. eval "$as_ac_var=yes"
  11093. else
  11094. echo "$as_me: failed program was:" >&5
  11095. sed 's/^/| /' conftest.$ac_ext >&5
  11096. eval "$as_ac_var=no"
  11097. fi
  11098. rm -f conftest.err conftest.$ac_objext \
  11099. conftest$ac_exeext conftest.$ac_ext
  11100. fi
  11101. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  11102. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  11103. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11104. cat >>confdefs.h <<_ACEOF
  11105. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11106. _ACEOF
  11107. fi
  11108. done
  11109. if test "$ac_cv_func_vsprintf" = "no"
  11110. then
  11111. cat << 'EOF' >&2
  11112. configure: error:
  11113. Your system does not have the sprintf/vsprintf libraries.
  11114. These are required to compile almost anything. Sorry.
  11115. EOF
  11116. exit 1
  11117. fi
  11118. for ac_func in uname
  11119. do
  11120. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11121. echo "$as_me:$LINENO: checking for $ac_func" >&5
  11122. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  11123. if eval "test \"\${$as_ac_var+set}\" = set"; then
  11124. echo $ECHO_N "(cached) $ECHO_C" >&6
  11125. else
  11126. cat >conftest.$ac_ext <<_ACEOF
  11127. /* confdefs.h. */
  11128. _ACEOF
  11129. cat confdefs.h >>conftest.$ac_ext
  11130. cat >>conftest.$ac_ext <<_ACEOF
  11131. /* end confdefs.h. */
  11132. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11133. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11134. #define $ac_func innocuous_$ac_func
  11135. /* System header to define __stub macros and hopefully few prototypes,
  11136. which can conflict with char $ac_func (); below.
  11137. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11138. <limits.h> exists even on freestanding compilers. */
  11139. #ifdef __STDC__
  11140. # include <limits.h>
  11141. #else
  11142. # include <assert.h>
  11143. #endif
  11144. #undef $ac_func
  11145. /* Override any gcc2 internal prototype to avoid an error. */
  11146. #ifdef __cplusplus
  11147. extern "C"
  11148. {
  11149. #endif
  11150. /* We use char because int might match the return type of a gcc2
  11151. builtin and then its argument prototype would still apply. */
  11152. char $ac_func ();
  11153. /* The GNU C library defines this for functions which it implements
  11154. to always fail with ENOSYS. Some functions are actually named
  11155. something starting with __ and the normal name is an alias. */
  11156. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  11157. choke me
  11158. #else
  11159. char (*f) () = $ac_func;
  11160. #endif
  11161. #ifdef __cplusplus
  11162. }
  11163. #endif
  11164. int
  11165. main ()
  11166. {
  11167. return f != $ac_func;
  11168. ;
  11169. return 0;
  11170. }
  11171. _ACEOF
  11172. rm -f conftest.$ac_objext conftest$ac_exeext
  11173. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11174. (eval $ac_link) 2>conftest.er1
  11175. ac_status=$?
  11176. grep -v '^ *+' conftest.er1 >conftest.err
  11177. rm -f conftest.er1
  11178. cat conftest.err >&5
  11179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11180. (exit $ac_status); } &&
  11181. { ac_try='test -z "$ac_c_werror_flag"
  11182. || test ! -s conftest.err'
  11183. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11184. (eval $ac_try) 2>&5
  11185. ac_status=$?
  11186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11187. (exit $ac_status); }; } &&
  11188. { ac_try='test -s conftest$ac_exeext'
  11189. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11190. (eval $ac_try) 2>&5
  11191. ac_status=$?
  11192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11193. (exit $ac_status); }; }; then
  11194. eval "$as_ac_var=yes"
  11195. else
  11196. echo "$as_me: failed program was:" >&5
  11197. sed 's/^/| /' conftest.$ac_ext >&5
  11198. eval "$as_ac_var=no"
  11199. fi
  11200. rm -f conftest.err conftest.$ac_objext \
  11201. conftest$ac_exeext conftest.$ac_ext
  11202. fi
  11203. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  11204. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  11205. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11206. cat >>confdefs.h <<_ACEOF
  11207. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11208. _ACEOF
  11209. fi
  11210. done
  11211. if test "$ac_cv_func_uname" = "no"
  11212. then
  11213. cat << 'EOF' >&2
  11214. configure: error:
  11215. Your system does not have the uname() function.
  11216. This is required for the botpack.
  11217. EOF
  11218. exit 1
  11219. fi
  11220. # Make sure we have stdc headers, since we can't compile without them
  11221. if test "$ac_cv_header_stdc" = "no"
  11222. then
  11223. cat << 'EOF' >&2
  11224. configure: error:
  11225. Your system must support ANSI C Header files.
  11226. These are required for the language support. Sorry.
  11227. EOF
  11228. exit 1
  11229. fi
  11230. #checkpoint
  11231. cat >confcache <<\_ACEOF
  11232. # This file is a shell script that caches the results of configure
  11233. # tests run on this system so they can be shared between configure
  11234. # scripts and configure runs, see configure's option --config-cache.
  11235. # It is not useful on other systems. If it contains results you don't
  11236. # want to keep, you may remove or edit it.
  11237. #
  11238. # config.status only pays attention to the cache file if you give it
  11239. # the --recheck option to rerun configure.
  11240. #
  11241. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11242. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11243. # following values.
  11244. _ACEOF
  11245. # The following way of writing the cache mishandles newlines in values,
  11246. # but we know of no workaround that is simple, portable, and efficient.
  11247. # So, don't put newlines in cache variables' values.
  11248. # Ultrix sh set writes to stderr and can't be redirected directly,
  11249. # and sets the high bit in the cache file unless we assign to the vars.
  11250. {
  11251. (set) 2>&1 |
  11252. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11253. *ac_space=\ *)
  11254. # `set' does not quote correctly, so add quotes (double-quote
  11255. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11256. sed -n \
  11257. "s/'/'\\\\''/g;
  11258. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11259. ;;
  11260. *)
  11261. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11262. sed -n \
  11263. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11264. ;;
  11265. esac;
  11266. } |
  11267. sed '
  11268. t clear
  11269. : clear
  11270. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11271. t end
  11272. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11273. : end' >>confcache
  11274. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11275. if test -w $cache_file; then
  11276. test "x$cache_file" != "x/dev/null"
  11277. cat confcache >$cache_file
  11278. else
  11279. echo "not updating unwritable cache $cache_file"
  11280. fi
  11281. fi
  11282. rm -f confcache
  11283. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  11284. if ! test -f $cfg; then
  11285. cat << EOF >&2
  11286. configure: error:
  11287. Your pack cfg is missing, please copy it to $srcdir/$cfg
  11288. Or specify the path to it with: --with-cfg=
  11289. EOF
  11290. exit 1
  11291. fi
  11292. PACKNAME=`grep "PACKNAME " $cfg | $AWK '/PACKNAME/ {print $2}'`
  11293. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  11294. cat >>confdefs.h <<_ACEOF
  11295. #define EGG_VERSION $version_num
  11296. _ACEOF
  11297. for define in `sed -n -e 's/^+ \([^ ]*\) .*/\1/ p' $cfg`; do
  11298. u_define="S_$define"
  11299. cat >>confdefs.h <<_ACEOF
  11300. #define $u_define 1
  11301. _ACEOF
  11302. CFG="$cfg"
  11303. done
  11304. case "$srcdir" in
  11305. [\\/]* | ?:[\\/]*)
  11306. MOD_UPDIR=""
  11307. ;;
  11308. *)
  11309. MOD_UPDIR="../"
  11310. ;;
  11311. esac
  11312. 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"
  11313. for mf in $files; do
  11314. # Strip MF so we end up with the name of the file.
  11315. # echo "MF: $mf"
  11316. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11317. dirpart=`(dirname "$mf") 2>/dev/null ||
  11318. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11319. X"$mf" : 'X\(//\)[^/]' \| \
  11320. X"$mf" : 'X\(//\)$' \| \
  11321. X"$mf" : 'X\(/\)' \| \
  11322. . : '\(.\)' 2>/dev/null ||
  11323. echo X"$mf" |
  11324. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11325. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11326. /^X\(\/\/\)$/{ s//\1/; q; }
  11327. /^X\(\/\).*/{ s//\1/; q; }
  11328. s/.*/./; q'`
  11329. # echo "dirpart: $dirpart mf: $mf"
  11330. # rm -rf "$dirpart/.deps/"
  11331. rm -f "$dirpart/.deps/includes"
  11332. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  11333. for file in `sed -n -e '
  11334. /^OBJS = .*\\\\$/ {
  11335. s/^OBJS = //
  11336. :loop
  11337. s/\\\\$//
  11338. p
  11339. n
  11340. /\\\\$/ b loop
  11341. p
  11342. }
  11343. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  11344. do
  11345. base=`basename $file .o`
  11346. test -f "$dirpart/$base.c" || continue
  11347. if ! test -f "$dirpart/.deps/$base.Po"; then
  11348. echo '# dummy' > "$dirpart/.deps/$base.Po"
  11349. #Remove the .o file, because it needs to be recompiled for its dependancies.
  11350. if test -f "$dirpart/$base.o"; then
  11351. rm -f "$dirpart/$base.o"
  11352. fi
  11353. fi
  11354. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  11355. echo "_$base.c:" >> "$dirpart/.deps/includes"
  11356. done
  11357. done
  11358. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/mod/dns.mod/Makefile"
  11359. cat >confcache <<\_ACEOF
  11360. # This file is a shell script that caches the results of configure
  11361. # tests run on this system so they can be shared between configure
  11362. # scripts and configure runs, see configure's option --config-cache.
  11363. # It is not useful on other systems. If it contains results you don't
  11364. # want to keep, you may remove or edit it.
  11365. #
  11366. # config.status only pays attention to the cache file if you give it
  11367. # the --recheck option to rerun configure.
  11368. #
  11369. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11370. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11371. # following values.
  11372. _ACEOF
  11373. # The following way of writing the cache mishandles newlines in values,
  11374. # but we know of no workaround that is simple, portable, and efficient.
  11375. # So, don't put newlines in cache variables' values.
  11376. # Ultrix sh set writes to stderr and can't be redirected directly,
  11377. # and sets the high bit in the cache file unless we assign to the vars.
  11378. {
  11379. (set) 2>&1 |
  11380. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11381. *ac_space=\ *)
  11382. # `set' does not quote correctly, so add quotes (double-quote
  11383. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11384. sed -n \
  11385. "s/'/'\\\\''/g;
  11386. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11387. ;;
  11388. *)
  11389. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11390. sed -n \
  11391. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11392. ;;
  11393. esac;
  11394. } |
  11395. sed '
  11396. t clear
  11397. : clear
  11398. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11399. t end
  11400. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11401. : end' >>confcache
  11402. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11403. if test -w $cache_file; then
  11404. test "x$cache_file" != "x/dev/null"
  11405. cat confcache >$cache_file
  11406. else
  11407. echo "not updating unwritable cache $cache_file"
  11408. fi
  11409. fi
  11410. rm -f confcache
  11411. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11412. # Let make expand exec_prefix.
  11413. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11414. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11415. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11416. # trailing colons and then remove the whole line if VPATH becomes empty
  11417. # (actually we leave an empty line to preserve line numbers).
  11418. if test "x$srcdir" = x.; then
  11419. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11420. s/:*\$(srcdir):*/:/;
  11421. s/:*\${srcdir}:*/:/;
  11422. s/:*@srcdir@:*/:/;
  11423. s/^\([^=]*=[ ]*\):*/\1/;
  11424. s/:*$//;
  11425. s/^[^=]*=[ ]*$//;
  11426. }'
  11427. fi
  11428. DEFS=-DHAVE_CONFIG_H
  11429. ac_libobjs=
  11430. ac_ltlibobjs=
  11431. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11432. # 1. Remove the extension, and $U if already installed.
  11433. ac_i=`echo "$ac_i" |
  11434. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  11435. # 2. Add them.
  11436. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  11437. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  11438. done
  11439. LIBOBJS=$ac_libobjs
  11440. LTLIBOBJS=$ac_ltlibobjs
  11441. : ${CONFIG_STATUS=./config.status}
  11442. ac_clean_files_save=$ac_clean_files
  11443. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11444. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  11445. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11446. cat >$CONFIG_STATUS <<_ACEOF
  11447. #! $SHELL
  11448. # Generated by $as_me.
  11449. # Run this file to recreate the current configuration.
  11450. # Compiler output produced by configure, useful for debugging
  11451. # configure, is in config.log if it exists.
  11452. debug=false
  11453. ac_cs_recheck=false
  11454. ac_cs_silent=false
  11455. SHELL=\${CONFIG_SHELL-$SHELL}
  11456. _ACEOF
  11457. cat >>$CONFIG_STATUS <<\_ACEOF
  11458. ## --------------------- ##
  11459. ## M4sh Initialization. ##
  11460. ## --------------------- ##
  11461. # Be Bourne compatible
  11462. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  11463. emulate sh
  11464. NULLCMD=:
  11465. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  11466. # is contrary to our usage. Disable this feature.
  11467. alias -g '${1+"$@"}'='"$@"'
  11468. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  11469. set -o posix
  11470. fi
  11471. DUALCASE=1; export DUALCASE # for MKS sh
  11472. # Support unset when possible.
  11473. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11474. as_unset=unset
  11475. else
  11476. as_unset=false
  11477. fi
  11478. # Work around bugs in pre-3.0 UWIN ksh.
  11479. $as_unset ENV MAIL MAILPATH
  11480. PS1='$ '
  11481. PS2='> '
  11482. PS4='+ '
  11483. # NLS nuisances.
  11484. for as_var in \
  11485. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  11486. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  11487. LC_TELEPHONE LC_TIME
  11488. do
  11489. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  11490. eval $as_var=C; export $as_var
  11491. else
  11492. $as_unset $as_var
  11493. fi
  11494. done
  11495. # Required to use basename.
  11496. if expr a : '\(a\)' >/dev/null 2>&1; then
  11497. as_expr=expr
  11498. else
  11499. as_expr=false
  11500. fi
  11501. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  11502. as_basename=basename
  11503. else
  11504. as_basename=false
  11505. fi
  11506. # Name of the executable.
  11507. as_me=`$as_basename "$0" ||
  11508. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11509. X"$0" : 'X\(//\)$' \| \
  11510. X"$0" : 'X\(/\)$' \| \
  11511. . : '\(.\)' 2>/dev/null ||
  11512. echo X/"$0" |
  11513. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  11514. /^X\/\(\/\/\)$/{ s//\1/; q; }
  11515. /^X\/\(\/\).*/{ s//\1/; q; }
  11516. s/.*/./; q'`
  11517. # PATH needs CR, and LINENO needs CR and PATH.
  11518. # Avoid depending upon Character Ranges.
  11519. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11520. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11521. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11522. as_cr_digits='0123456789'
  11523. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11524. # The user is always right.
  11525. if test "${PATH_SEPARATOR+set}" != set; then
  11526. echo "#! /bin/sh" >conf$$.sh
  11527. echo "exit 0" >>conf$$.sh
  11528. chmod +x conf$$.sh
  11529. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11530. PATH_SEPARATOR=';'
  11531. else
  11532. PATH_SEPARATOR=:
  11533. fi
  11534. rm -f conf$$.sh
  11535. fi
  11536. as_lineno_1=$LINENO
  11537. as_lineno_2=$LINENO
  11538. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11539. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11540. test "x$as_lineno_3" = "x$as_lineno_2" || {
  11541. # Find who we are. Look in the path if we contain no path at all
  11542. # relative or not.
  11543. case $0 in
  11544. *[\\/]* ) as_myself=$0 ;;
  11545. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11546. for as_dir in $PATH
  11547. do
  11548. IFS=$as_save_IFS
  11549. test -z "$as_dir" && as_dir=.
  11550. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11551. done
  11552. ;;
  11553. esac
  11554. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11555. # in which case we are not to be found in the path.
  11556. if test "x$as_myself" = x; then
  11557. as_myself=$0
  11558. fi
  11559. if test ! -f "$as_myself"; then
  11560. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  11561. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  11562. { (exit 1); exit 1; }; }
  11563. fi
  11564. case $CONFIG_SHELL in
  11565. '')
  11566. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11567. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  11568. do
  11569. IFS=$as_save_IFS
  11570. test -z "$as_dir" && as_dir=.
  11571. for as_base in sh bash ksh sh5; do
  11572. case $as_dir in
  11573. /*)
  11574. if ("$as_dir/$as_base" -c '
  11575. as_lineno_1=$LINENO
  11576. as_lineno_2=$LINENO
  11577. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11578. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11579. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  11580. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  11581. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  11582. CONFIG_SHELL=$as_dir/$as_base
  11583. export CONFIG_SHELL
  11584. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  11585. fi;;
  11586. esac
  11587. done
  11588. done
  11589. ;;
  11590. esac
  11591. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11592. # uniformly replaced by the line number. The first 'sed' inserts a
  11593. # line-number line before each line; the second 'sed' does the real
  11594. # work. The second script uses 'N' to pair each line-number line
  11595. # with the numbered line, and appends trailing '-' during
  11596. # substitution so that $LINENO is not a special case at line end.
  11597. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11598. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  11599. sed '=' <$as_myself |
  11600. sed '
  11601. N
  11602. s,$,-,
  11603. : loop
  11604. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  11605. t loop
  11606. s,-$,,
  11607. s,^['$as_cr_digits']*\n,,
  11608. ' >$as_me.lineno &&
  11609. chmod +x $as_me.lineno ||
  11610. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  11611. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  11612. { (exit 1); exit 1; }; }
  11613. # Don't try to exec as it changes $[0], causing all sort of problems
  11614. # (the dirname of $[0] is not the place where we might find the
  11615. # original and so on. Autoconf is especially sensible to this).
  11616. . ./$as_me.lineno
  11617. # Exit status is that of the last command.
  11618. exit
  11619. }
  11620. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  11621. *c*,-n*) ECHO_N= ECHO_C='
  11622. ' ECHO_T=' ' ;;
  11623. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  11624. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  11625. esac
  11626. if expr a : '\(a\)' >/dev/null 2>&1; then
  11627. as_expr=expr
  11628. else
  11629. as_expr=false
  11630. fi
  11631. rm -f conf$$ conf$$.exe conf$$.file
  11632. echo >conf$$.file
  11633. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11634. # We could just check for DJGPP; but this test a) works b) is more generic
  11635. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  11636. if test -f conf$$.exe; then
  11637. # Don't use ln at all; we don't have any links
  11638. as_ln_s='cp -p'
  11639. else
  11640. as_ln_s='ln -s'
  11641. fi
  11642. elif ln conf$$.file conf$$ 2>/dev/null; then
  11643. as_ln_s=ln
  11644. else
  11645. as_ln_s='cp -p'
  11646. fi
  11647. rm -f conf$$ conf$$.exe conf$$.file
  11648. if mkdir -p . 2>/dev/null; then
  11649. as_mkdir_p=:
  11650. else
  11651. test -d ./-p && rmdir ./-p
  11652. as_mkdir_p=false
  11653. fi
  11654. as_executable_p="test -f"
  11655. # Sed expression to map a string onto a valid CPP name.
  11656. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11657. # Sed expression to map a string onto a valid variable name.
  11658. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11659. # IFS
  11660. # We need space, tab and new line, in precisely that order.
  11661. as_nl='
  11662. '
  11663. IFS=" $as_nl"
  11664. # CDPATH.
  11665. $as_unset CDPATH
  11666. exec 6>&1
  11667. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  11668. # report actual input values of CONFIG_FILES etc. instead of their
  11669. # values after options handling. Logging --version etc. is OK.
  11670. exec 5>>config.log
  11671. {
  11672. echo
  11673. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11674. ## Running $as_me. ##
  11675. _ASBOX
  11676. } >&5
  11677. cat >&5 <<_CSEOF
  11678. This file was extended by $as_me, which was
  11679. generated by GNU Autoconf 2.59. Invocation command line was
  11680. CONFIG_FILES = $CONFIG_FILES
  11681. CONFIG_HEADERS = $CONFIG_HEADERS
  11682. CONFIG_LINKS = $CONFIG_LINKS
  11683. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11684. $ $0 $@
  11685. _CSEOF
  11686. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  11687. echo >&5
  11688. _ACEOF
  11689. # Files that config.status was made for.
  11690. if test -n "$ac_config_files"; then
  11691. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  11692. fi
  11693. if test -n "$ac_config_headers"; then
  11694. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  11695. fi
  11696. if test -n "$ac_config_links"; then
  11697. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  11698. fi
  11699. if test -n "$ac_config_commands"; then
  11700. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  11701. fi
  11702. cat >>$CONFIG_STATUS <<\_ACEOF
  11703. ac_cs_usage="\
  11704. \`$as_me' instantiates files from templates according to the
  11705. current configuration.
  11706. Usage: $0 [OPTIONS] [FILE]...
  11707. -h, --help print this help, then exit
  11708. -V, --version print version number, then exit
  11709. -q, --quiet do not print progress messages
  11710. -d, --debug don't remove temporary files
  11711. --recheck update $as_me by reconfiguring in the same conditions
  11712. --file=FILE[:TEMPLATE]
  11713. instantiate the configuration file FILE
  11714. --header=FILE[:TEMPLATE]
  11715. instantiate the configuration header FILE
  11716. Configuration files:
  11717. $config_files
  11718. Configuration headers:
  11719. $config_headers
  11720. Report bugs to <bug-autoconf@gnu.org>."
  11721. _ACEOF
  11722. cat >>$CONFIG_STATUS <<_ACEOF
  11723. ac_cs_version="\\
  11724. config.status
  11725. configured by $0, generated by GNU Autoconf 2.59,
  11726. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  11727. Copyright (C) 2003 Free Software Foundation, Inc.
  11728. This config.status script is free software; the Free Software Foundation
  11729. gives unlimited permission to copy, distribute and modify it."
  11730. srcdir=$srcdir
  11731. _ACEOF
  11732. cat >>$CONFIG_STATUS <<\_ACEOF
  11733. # If no file are specified by the user, then we need to provide default
  11734. # value. By we need to know if files were specified by the user.
  11735. ac_need_defaults=:
  11736. while test $# != 0
  11737. do
  11738. case $1 in
  11739. --*=*)
  11740. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  11741. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  11742. ac_shift=:
  11743. ;;
  11744. -*)
  11745. ac_option=$1
  11746. ac_optarg=$2
  11747. ac_shift=shift
  11748. ;;
  11749. *) # This is not an option, so the user has probably given explicit
  11750. # arguments.
  11751. ac_option=$1
  11752. ac_need_defaults=false;;
  11753. esac
  11754. case $ac_option in
  11755. # Handling of the options.
  11756. _ACEOF
  11757. cat >>$CONFIG_STATUS <<\_ACEOF
  11758. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11759. ac_cs_recheck=: ;;
  11760. --version | --vers* | -V )
  11761. echo "$ac_cs_version"; exit 0 ;;
  11762. --he | --h)
  11763. # Conflict between --help and --header
  11764. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  11765. Try \`$0 --help' for more information." >&5
  11766. echo "$as_me: error: ambiguous option: $1
  11767. Try \`$0 --help' for more information." >&2;}
  11768. { (exit 1); exit 1; }; };;
  11769. --help | --hel | -h )
  11770. echo "$ac_cs_usage"; exit 0 ;;
  11771. --debug | --d* | -d )
  11772. debug=: ;;
  11773. --file | --fil | --fi | --f )
  11774. $ac_shift
  11775. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11776. ac_need_defaults=false;;
  11777. --header | --heade | --head | --hea )
  11778. $ac_shift
  11779. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11780. ac_need_defaults=false;;
  11781. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11782. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11783. ac_cs_silent=: ;;
  11784. # This is an error.
  11785. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  11786. Try \`$0 --help' for more information." >&5
  11787. echo "$as_me: error: unrecognized option: $1
  11788. Try \`$0 --help' for more information." >&2;}
  11789. { (exit 1); exit 1; }; } ;;
  11790. *) ac_config_targets="$ac_config_targets $1" ;;
  11791. esac
  11792. shift
  11793. done
  11794. ac_configure_extra_args=
  11795. if $ac_cs_silent; then
  11796. exec 6>/dev/null
  11797. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11798. fi
  11799. _ACEOF
  11800. cat >>$CONFIG_STATUS <<_ACEOF
  11801. if \$ac_cs_recheck; then
  11802. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11803. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11804. fi
  11805. _ACEOF
  11806. cat >>$CONFIG_STATUS <<\_ACEOF
  11807. for ac_config_target in $ac_config_targets
  11808. do
  11809. case "$ac_config_target" in
  11810. # Handling of arguments.
  11811. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11812. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11813. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  11814. "src/crypto/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  11815. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  11816. "src/mod/dns.mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/dns.mod/Makefile" ;;
  11817. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11818. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11819. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11820. { (exit 1); exit 1; }; };;
  11821. esac
  11822. done
  11823. # If the user did not use the arguments to specify the items to instantiate,
  11824. # then the envvar interface is used. Set only those that are not.
  11825. # We use the long form for the default assignment because of an extremely
  11826. # bizarre bug on SunOS 4.1.3.
  11827. if $ac_need_defaults; then
  11828. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11829. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11830. fi
  11831. # Have a temporary directory for convenience. Make it in the build tree
  11832. # simply because there is no reason to put it here, and in addition,
  11833. # creating and moving files from /tmp can sometimes cause problems.
  11834. # Create a temporary directory, and hook for its removal unless debugging.
  11835. $debug ||
  11836. {
  11837. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11838. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11839. }
  11840. # Create a (secure) tmp directory for tmp files.
  11841. {
  11842. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11843. test -n "$tmp" && test -d "$tmp"
  11844. } ||
  11845. {
  11846. tmp=./confstat$$-$RANDOM
  11847. (umask 077 && mkdir $tmp)
  11848. } ||
  11849. {
  11850. echo "$me: cannot create a temporary directory in ." >&2
  11851. { (exit 1); exit 1; }
  11852. }
  11853. _ACEOF
  11854. cat >>$CONFIG_STATUS <<_ACEOF
  11855. #
  11856. # CONFIG_FILES section.
  11857. #
  11858. # No need to generate the scripts if there are no CONFIG_FILES.
  11859. # This happens for instance when ./config.status config.h
  11860. if test -n "\$CONFIG_FILES"; then
  11861. # Protect against being on the right side of a sed subst in config.status.
  11862. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11863. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11864. s,@SHELL@,$SHELL,;t t
  11865. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11866. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11867. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11868. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11869. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11870. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11871. s,@exec_prefix@,$exec_prefix,;t t
  11872. s,@prefix@,$prefix,;t t
  11873. s,@program_transform_name@,$program_transform_name,;t t
  11874. s,@bindir@,$bindir,;t t
  11875. s,@sbindir@,$sbindir,;t t
  11876. s,@libexecdir@,$libexecdir,;t t
  11877. s,@datadir@,$datadir,;t t
  11878. s,@sysconfdir@,$sysconfdir,;t t
  11879. s,@sharedstatedir@,$sharedstatedir,;t t
  11880. s,@localstatedir@,$localstatedir,;t t
  11881. s,@libdir@,$libdir,;t t
  11882. s,@includedir@,$includedir,;t t
  11883. s,@oldincludedir@,$oldincludedir,;t t
  11884. s,@infodir@,$infodir,;t t
  11885. s,@mandir@,$mandir,;t t
  11886. s,@build_alias@,$build_alias,;t t
  11887. s,@host_alias@,$host_alias,;t t
  11888. s,@target_alias@,$target_alias,;t t
  11889. s,@DEFS@,$DEFS,;t t
  11890. s,@ECHO_C@,$ECHO_C,;t t
  11891. s,@ECHO_N@,$ECHO_N,;t t
  11892. s,@ECHO_T@,$ECHO_T,;t t
  11893. s,@LIBS@,$LIBS,;t t
  11894. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  11895. s,@CC@,$CC,;t t
  11896. s,@CFLAGS@,$CFLAGS,;t t
  11897. s,@LDFLAGS@,$LDFLAGS,;t t
  11898. s,@CPPFLAGS@,$CPPFLAGS,;t t
  11899. s,@ac_ct_CC@,$ac_ct_CC,;t t
  11900. s,@EXEEXT@,$EXEEXT,;t t
  11901. s,@OBJEXT@,$OBJEXT,;t t
  11902. s,@CPP@,$CPP,;t t
  11903. s,@EGREP@,$EGREP,;t t
  11904. s,@CCDEPMODE@,$CCDEPMODE,;t t
  11905. s,@GCC3@,$GCC3,;t t
  11906. s,@CCDEBUG@,$CCDEBUG,;t t
  11907. s,@SET_MAKE@,$SET_MAKE,;t t
  11908. s,@HEAD_1@,$HEAD_1,;t t
  11909. s,@AWK@,$AWK,;t t
  11910. s,@BASENAME@,$BASENAME,;t t
  11911. s,@OBJCOPY@,$OBJCOPY,;t t
  11912. s,@STRIP@,$STRIP,;t t
  11913. s,@UNAME@,$UNAME,;t t
  11914. s,@DISTCC@,$DISTCC,;t t
  11915. s,@RESLIB@,$RESLIB,;t t
  11916. s,@RESINCLUDE@,$RESINCLUDE,;t t
  11917. s,@ZLIB@,$ZLIB,;t t
  11918. s,@LIBOBJS@,$LIBOBJS,;t t
  11919. s,@VERSION@,$VERSION,;t t
  11920. s,@NUMVER@,$NUMVER,;t t
  11921. s,@PACKNAME@,$PACKNAME,;t t
  11922. s,@CFG@,$CFG,;t t
  11923. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  11924. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11925. CEOF
  11926. _ACEOF
  11927. cat >>$CONFIG_STATUS <<\_ACEOF
  11928. # Split the substitutions into bite-sized pieces for seds with
  11929. # small command number limits, like on Digital OSF/1 and HP-UX.
  11930. ac_max_sed_lines=48
  11931. ac_sed_frag=1 # Number of current file.
  11932. ac_beg=1 # First line for current file.
  11933. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11934. ac_more_lines=:
  11935. ac_sed_cmds=
  11936. while $ac_more_lines; do
  11937. if test $ac_beg -gt 1; then
  11938. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11939. else
  11940. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11941. fi
  11942. if test ! -s $tmp/subs.frag; then
  11943. ac_more_lines=false
  11944. else
  11945. # The purpose of the label and of the branching condition is to
  11946. # speed up the sed processing (if there are no `@' at all, there
  11947. # is no need to browse any of the substitutions).
  11948. # These are the two extra sed commands mentioned above.
  11949. (echo ':t
  11950. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11951. if test -z "$ac_sed_cmds"; then
  11952. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11953. else
  11954. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11955. fi
  11956. ac_sed_frag=`expr $ac_sed_frag + 1`
  11957. ac_beg=$ac_end
  11958. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11959. fi
  11960. done
  11961. if test -z "$ac_sed_cmds"; then
  11962. ac_sed_cmds=cat
  11963. fi
  11964. fi # test -n "$CONFIG_FILES"
  11965. _ACEOF
  11966. cat >>$CONFIG_STATUS <<\_ACEOF
  11967. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11968. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11969. case $ac_file in
  11970. - | *:- | *:-:* ) # input from stdin
  11971. cat >$tmp/stdin
  11972. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11973. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11974. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11975. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11976. * ) ac_file_in=$ac_file.in ;;
  11977. esac
  11978. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11979. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11980. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11981. X"$ac_file" : 'X\(//\)[^/]' \| \
  11982. X"$ac_file" : 'X\(//\)$' \| \
  11983. X"$ac_file" : 'X\(/\)' \| \
  11984. . : '\(.\)' 2>/dev/null ||
  11985. echo X"$ac_file" |
  11986. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11987. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11988. /^X\(\/\/\)$/{ s//\1/; q; }
  11989. /^X\(\/\).*/{ s//\1/; q; }
  11990. s/.*/./; q'`
  11991. { if $as_mkdir_p; then
  11992. mkdir -p "$ac_dir"
  11993. else
  11994. as_dir="$ac_dir"
  11995. as_dirs=
  11996. while test ! -d "$as_dir"; do
  11997. as_dirs="$as_dir $as_dirs"
  11998. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11999. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12000. X"$as_dir" : 'X\(//\)[^/]' \| \
  12001. X"$as_dir" : 'X\(//\)$' \| \
  12002. X"$as_dir" : 'X\(/\)' \| \
  12003. . : '\(.\)' 2>/dev/null ||
  12004. echo X"$as_dir" |
  12005. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12006. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12007. /^X\(\/\/\)$/{ s//\1/; q; }
  12008. /^X\(\/\).*/{ s//\1/; q; }
  12009. s/.*/./; q'`
  12010. done
  12011. test ! -n "$as_dirs" || mkdir $as_dirs
  12012. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12013. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12014. { (exit 1); exit 1; }; }; }
  12015. ac_builddir=.
  12016. if test "$ac_dir" != .; then
  12017. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  12018. # A "../" for each directory in $ac_dir_suffix.
  12019. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  12020. else
  12021. ac_dir_suffix= ac_top_builddir=
  12022. fi
  12023. case $srcdir in
  12024. .) # No --srcdir option. We are building in place.
  12025. ac_srcdir=.
  12026. if test -z "$ac_top_builddir"; then
  12027. ac_top_srcdir=.
  12028. else
  12029. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  12030. fi ;;
  12031. [\\/]* | ?:[\\/]* ) # Absolute path.
  12032. ac_srcdir=$srcdir$ac_dir_suffix;
  12033. ac_top_srcdir=$srcdir ;;
  12034. *) # Relative path.
  12035. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  12036. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  12037. esac
  12038. # Do not use `cd foo && pwd` to compute absolute paths, because
  12039. # the directories may not exist.
  12040. case `pwd` in
  12041. .) ac_abs_builddir="$ac_dir";;
  12042. *)
  12043. case "$ac_dir" in
  12044. .) ac_abs_builddir=`pwd`;;
  12045. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  12046. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  12047. esac;;
  12048. esac
  12049. case $ac_abs_builddir in
  12050. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  12051. *)
  12052. case ${ac_top_builddir}. in
  12053. .) ac_abs_top_builddir=$ac_abs_builddir;;
  12054. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  12055. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  12056. esac;;
  12057. esac
  12058. case $ac_abs_builddir in
  12059. .) ac_abs_srcdir=$ac_srcdir;;
  12060. *)
  12061. case $ac_srcdir in
  12062. .) ac_abs_srcdir=$ac_abs_builddir;;
  12063. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  12064. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  12065. esac;;
  12066. esac
  12067. case $ac_abs_builddir in
  12068. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  12069. *)
  12070. case $ac_top_srcdir in
  12071. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  12072. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  12073. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  12074. esac;;
  12075. esac
  12076. if test x"$ac_file" != x-; then
  12077. { echo "$as_me:$LINENO: creating $ac_file" >&5
  12078. echo "$as_me: creating $ac_file" >&6;}
  12079. rm -f "$ac_file"
  12080. fi
  12081. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12082. # use $as_me), people would be surprised to read:
  12083. # /* config.h. Generated by config.status. */
  12084. if test x"$ac_file" = x-; then
  12085. configure_input=
  12086. else
  12087. configure_input="$ac_file. "
  12088. fi
  12089. configure_input=$configure_input"Generated from `echo $ac_file_in |
  12090. sed 's,.*/,,'` by configure."
  12091. # First look for the input files in the build tree, otherwise in the
  12092. # src tree.
  12093. ac_file_inputs=`IFS=:
  12094. for f in $ac_file_in; do
  12095. case $f in
  12096. -) echo $tmp/stdin ;;
  12097. [\\/$]*)
  12098. # Absolute (can't be DOS-style, as IFS=:)
  12099. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12100. echo "$as_me: error: cannot find input file: $f" >&2;}
  12101. { (exit 1); exit 1; }; }
  12102. echo "$f";;
  12103. *) # Relative
  12104. if test -f "$f"; then
  12105. # Build tree
  12106. echo "$f"
  12107. elif test -f "$srcdir/$f"; then
  12108. # Source tree
  12109. echo "$srcdir/$f"
  12110. else
  12111. # /dev/null tree
  12112. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12113. echo "$as_me: error: cannot find input file: $f" >&2;}
  12114. { (exit 1); exit 1; }; }
  12115. fi;;
  12116. esac
  12117. done` || { (exit 1); exit 1; }
  12118. _ACEOF
  12119. cat >>$CONFIG_STATUS <<_ACEOF
  12120. sed "$ac_vpsub
  12121. $extrasub
  12122. _ACEOF
  12123. cat >>$CONFIG_STATUS <<\_ACEOF
  12124. :t
  12125. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12126. s,@configure_input@,$configure_input,;t t
  12127. s,@srcdir@,$ac_srcdir,;t t
  12128. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  12129. s,@top_srcdir@,$ac_top_srcdir,;t t
  12130. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  12131. s,@builddir@,$ac_builddir,;t t
  12132. s,@abs_builddir@,$ac_abs_builddir,;t t
  12133. s,@top_builddir@,$ac_top_builddir,;t t
  12134. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  12135. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  12136. rm -f $tmp/stdin
  12137. if test x"$ac_file" != x-; then
  12138. mv $tmp/out $ac_file
  12139. else
  12140. cat $tmp/out
  12141. rm -f $tmp/out
  12142. fi
  12143. done
  12144. _ACEOF
  12145. cat >>$CONFIG_STATUS <<\_ACEOF
  12146. #
  12147. # CONFIG_HEADER section.
  12148. #
  12149. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  12150. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  12151. #
  12152. # ac_d sets the value in "#define NAME VALUE" lines.
  12153. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  12154. ac_dB='[ ].*$,\1#\2'
  12155. ac_dC=' '
  12156. ac_dD=',;t'
  12157. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  12158. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  12159. ac_uB='$,\1#\2define\3'
  12160. ac_uC=' '
  12161. ac_uD=',;t'
  12162. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  12163. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  12164. case $ac_file in
  12165. - | *:- | *:-:* ) # input from stdin
  12166. cat >$tmp/stdin
  12167. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12168. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12169. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12170. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12171. * ) ac_file_in=$ac_file.in ;;
  12172. esac
  12173. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  12174. echo "$as_me: creating $ac_file" >&6;}
  12175. # First look for the input files in the build tree, otherwise in the
  12176. # src tree.
  12177. ac_file_inputs=`IFS=:
  12178. for f in $ac_file_in; do
  12179. case $f in
  12180. -) echo $tmp/stdin ;;
  12181. [\\/$]*)
  12182. # Absolute (can't be DOS-style, as IFS=:)
  12183. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12184. echo "$as_me: error: cannot find input file: $f" >&2;}
  12185. { (exit 1); exit 1; }; }
  12186. # Do quote $f, to prevent DOS paths from being IFS'd.
  12187. echo "$f";;
  12188. *) # Relative
  12189. if test -f "$f"; then
  12190. # Build tree
  12191. echo "$f"
  12192. elif test -f "$srcdir/$f"; then
  12193. # Source tree
  12194. echo "$srcdir/$f"
  12195. else
  12196. # /dev/null tree
  12197. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12198. echo "$as_me: error: cannot find input file: $f" >&2;}
  12199. { (exit 1); exit 1; }; }
  12200. fi;;
  12201. esac
  12202. done` || { (exit 1); exit 1; }
  12203. # Remove the trailing spaces.
  12204. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  12205. _ACEOF
  12206. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  12207. # `conftest.undefs', that substitutes the proper values into
  12208. # config.h.in to produce config.h. The first handles `#define'
  12209. # templates, and the second `#undef' templates.
  12210. # And first: Protect against being on the right side of a sed subst in
  12211. # config.status. Protect against being in an unquoted here document
  12212. # in config.status.
  12213. rm -f conftest.defines conftest.undefs
  12214. # Using a here document instead of a string reduces the quoting nightmare.
  12215. # Putting comments in sed scripts is not portable.
  12216. #
  12217. # `end' is used to avoid that the second main sed command (meant for
  12218. # 0-ary CPP macros) applies to n-ary macro definitions.
  12219. # See the Autoconf documentation for `clear'.
  12220. cat >confdef2sed.sed <<\_ACEOF
  12221. s/[\\&,]/\\&/g
  12222. s,[\\$`],\\&,g
  12223. t clear
  12224. : clear
  12225. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  12226. t end
  12227. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  12228. : end
  12229. _ACEOF
  12230. # If some macros were called several times there might be several times
  12231. # the same #defines, which is useless. Nevertheless, we may not want to
  12232. # sort them, since we want the *last* AC-DEFINE to be honored.
  12233. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  12234. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  12235. rm -f confdef2sed.sed
  12236. # This sed command replaces #undef with comments. This is necessary, for
  12237. # example, in the case of _POSIX_SOURCE, which is predefined and required
  12238. # on some systems where configure will not decide to define it.
  12239. cat >>conftest.undefs <<\_ACEOF
  12240. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  12241. _ACEOF
  12242. # Break up conftest.defines because some shells have a limit on the size
  12243. # of here documents, and old seds have small limits too (100 cmds).
  12244. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  12245. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  12246. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  12247. echo ' :' >>$CONFIG_STATUS
  12248. rm -f conftest.tail
  12249. while grep . conftest.defines >/dev/null
  12250. do
  12251. # Write a limited-size here document to $tmp/defines.sed.
  12252. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  12253. # Speed up: don't consider the non `#define' lines.
  12254. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  12255. # Work around the forget-to-reset-the-flag bug.
  12256. echo 't clr' >>$CONFIG_STATUS
  12257. echo ': clr' >>$CONFIG_STATUS
  12258. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  12259. echo 'CEOF
  12260. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  12261. rm -f $tmp/in
  12262. mv $tmp/out $tmp/in
  12263. ' >>$CONFIG_STATUS
  12264. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  12265. rm -f conftest.defines
  12266. mv conftest.tail conftest.defines
  12267. done
  12268. rm -f conftest.defines
  12269. echo ' fi # grep' >>$CONFIG_STATUS
  12270. echo >>$CONFIG_STATUS
  12271. # Break up conftest.undefs because some shells have a limit on the size
  12272. # of here documents, and old seds have small limits too (100 cmds).
  12273. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  12274. rm -f conftest.tail
  12275. while grep . conftest.undefs >/dev/null
  12276. do
  12277. # Write a limited-size here document to $tmp/undefs.sed.
  12278. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  12279. # Speed up: don't consider the non `#undef'
  12280. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  12281. # Work around the forget-to-reset-the-flag bug.
  12282. echo 't clr' >>$CONFIG_STATUS
  12283. echo ': clr' >>$CONFIG_STATUS
  12284. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  12285. echo 'CEOF
  12286. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  12287. rm -f $tmp/in
  12288. mv $tmp/out $tmp/in
  12289. ' >>$CONFIG_STATUS
  12290. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  12291. rm -f conftest.undefs
  12292. mv conftest.tail conftest.undefs
  12293. done
  12294. rm -f conftest.undefs
  12295. cat >>$CONFIG_STATUS <<\_ACEOF
  12296. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12297. # use $as_me), people would be surprised to read:
  12298. # /* config.h. Generated by config.status. */
  12299. if test x"$ac_file" = x-; then
  12300. echo "/* Generated by configure. */" >$tmp/config.h
  12301. else
  12302. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  12303. fi
  12304. cat $tmp/in >>$tmp/config.h
  12305. rm -f $tmp/in
  12306. if test x"$ac_file" != x-; then
  12307. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  12308. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  12309. echo "$as_me: $ac_file is unchanged" >&6;}
  12310. else
  12311. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  12312. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12313. X"$ac_file" : 'X\(//\)[^/]' \| \
  12314. X"$ac_file" : 'X\(//\)$' \| \
  12315. X"$ac_file" : 'X\(/\)' \| \
  12316. . : '\(.\)' 2>/dev/null ||
  12317. echo X"$ac_file" |
  12318. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12319. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12320. /^X\(\/\/\)$/{ s//\1/; q; }
  12321. /^X\(\/\).*/{ s//\1/; q; }
  12322. s/.*/./; q'`
  12323. { if $as_mkdir_p; then
  12324. mkdir -p "$ac_dir"
  12325. else
  12326. as_dir="$ac_dir"
  12327. as_dirs=
  12328. while test ! -d "$as_dir"; do
  12329. as_dirs="$as_dir $as_dirs"
  12330. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12331. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12332. X"$as_dir" : 'X\(//\)[^/]' \| \
  12333. X"$as_dir" : 'X\(//\)$' \| \
  12334. X"$as_dir" : 'X\(/\)' \| \
  12335. . : '\(.\)' 2>/dev/null ||
  12336. echo X"$as_dir" |
  12337. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12338. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12339. /^X\(\/\/\)$/{ s//\1/; q; }
  12340. /^X\(\/\).*/{ s//\1/; q; }
  12341. s/.*/./; q'`
  12342. done
  12343. test ! -n "$as_dirs" || mkdir $as_dirs
  12344. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12345. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12346. { (exit 1); exit 1; }; }; }
  12347. rm -f $ac_file
  12348. mv $tmp/config.h $ac_file
  12349. fi
  12350. else
  12351. cat $tmp/config.h
  12352. rm -f $tmp/config.h
  12353. fi
  12354. done
  12355. _ACEOF
  12356. cat >>$CONFIG_STATUS <<\_ACEOF
  12357. { (exit 0); exit 0; }
  12358. _ACEOF
  12359. chmod +x $CONFIG_STATUS
  12360. ac_clean_files=$ac_clean_files_save
  12361. # configure is writing to config.log, and then calls config.status.
  12362. # config.status does its own redirection, appending to config.log.
  12363. # Unfortunately, on DOS this fails, as config.log is still kept open
  12364. # by configure, so config.status won't be able to write to it; its
  12365. # output is simply discarded. So we exec the FD to /dev/null,
  12366. # effectively closing config.log, so it can be properly (re)opened and
  12367. # appended to by config.status. When coming back to configure, we
  12368. # need to make the FD available again.
  12369. if test "$no_create" != yes; then
  12370. ac_cs_success=:
  12371. ac_config_status_args=
  12372. test "$silent" = yes &&
  12373. ac_config_status_args="$ac_config_status_args --quiet"
  12374. exec 5>/dev/null
  12375. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12376. exec 5>>config.log
  12377. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12378. # would make configure fail if this is the last instruction.
  12379. $ac_cs_success || { (exit 1); exit 1; }
  12380. fi