1
0

configure 365 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.32 .
  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 WRAP 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. for ac_prog in gcc34 gcc33 gcc3 gcc-3.4 gcc-3.3 gcc cc c1
  1168. do
  1169. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1170. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1171. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1172. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1173. if test "${ac_cv_prog_CC+set}" = set; then
  1174. echo $ECHO_N "(cached) $ECHO_C" >&6
  1175. else
  1176. if test -n "$CC"; then
  1177. ac_cv_prog_CC="$CC" # Let the user override the test.
  1178. else
  1179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1180. for as_dir in $PATH
  1181. do
  1182. IFS=$as_save_IFS
  1183. test -z "$as_dir" && as_dir=.
  1184. for ac_exec_ext in '' $ac_executable_extensions; do
  1185. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1186. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1187. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1188. break 2
  1189. fi
  1190. done
  1191. done
  1192. fi
  1193. fi
  1194. CC=$ac_cv_prog_CC
  1195. if test -n "$CC"; then
  1196. echo "$as_me:$LINENO: result: $CC" >&5
  1197. echo "${ECHO_T}$CC" >&6
  1198. else
  1199. echo "$as_me:$LINENO: result: no" >&5
  1200. echo "${ECHO_T}no" >&6
  1201. fi
  1202. test -n "$CC" && break
  1203. done
  1204. fi
  1205. if test -z "$CC"; then
  1206. ac_ct_CC=$CC
  1207. for ac_prog in gcc34 gcc33 gcc3 gcc-3.4 gcc-3.3 gcc cc c1
  1208. do
  1209. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1210. set dummy $ac_prog; ac_word=$2
  1211. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1212. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1213. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1214. echo $ECHO_N "(cached) $ECHO_C" >&6
  1215. else
  1216. if test -n "$ac_ct_CC"; then
  1217. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1218. else
  1219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1220. for as_dir in $PATH
  1221. do
  1222. IFS=$as_save_IFS
  1223. test -z "$as_dir" && as_dir=.
  1224. for ac_exec_ext in '' $ac_executable_extensions; do
  1225. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1226. ac_cv_prog_ac_ct_CC="$ac_prog"
  1227. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1228. break 2
  1229. fi
  1230. done
  1231. done
  1232. fi
  1233. fi
  1234. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1235. if test -n "$ac_ct_CC"; then
  1236. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1237. echo "${ECHO_T}$ac_ct_CC" >&6
  1238. else
  1239. echo "$as_me:$LINENO: result: no" >&5
  1240. echo "${ECHO_T}no" >&6
  1241. fi
  1242. test -n "$ac_ct_CC" && break
  1243. done
  1244. CC=$ac_ct_CC
  1245. fi
  1246. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1247. See \`config.log' for more details." >&5
  1248. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1249. See \`config.log' for more details." >&2;}
  1250. { (exit 1); exit 1; }; }
  1251. # Provide some information about the compiler.
  1252. echo "$as_me:$LINENO:" \
  1253. "checking for C compiler version" >&5
  1254. ac_compiler=`set X $ac_compile; echo $2`
  1255. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1256. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1257. ac_status=$?
  1258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1259. (exit $ac_status); }
  1260. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1261. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1262. ac_status=$?
  1263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1264. (exit $ac_status); }
  1265. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1266. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1267. ac_status=$?
  1268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1269. (exit $ac_status); }
  1270. cat >conftest.$ac_ext <<_ACEOF
  1271. /* confdefs.h. */
  1272. _ACEOF
  1273. cat confdefs.h >>conftest.$ac_ext
  1274. cat >>conftest.$ac_ext <<_ACEOF
  1275. /* end confdefs.h. */
  1276. int
  1277. main ()
  1278. {
  1279. ;
  1280. return 0;
  1281. }
  1282. _ACEOF
  1283. ac_clean_files_save=$ac_clean_files
  1284. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1285. # Try to create an executable without -o first, disregard a.out.
  1286. # It will help us diagnose broken compilers, and finding out an intuition
  1287. # of exeext.
  1288. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1289. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1290. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1291. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1292. (eval $ac_link_default) 2>&5
  1293. ac_status=$?
  1294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1295. (exit $ac_status); }; then
  1296. # Find the output, starting from the most likely. This scheme is
  1297. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1298. # resort.
  1299. # Be careful to initialize this variable, since it used to be cached.
  1300. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1301. ac_cv_exeext=
  1302. # b.out is created by i960 compilers.
  1303. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1304. do
  1305. test -f "$ac_file" || continue
  1306. case $ac_file in
  1307. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1308. ;;
  1309. conftest.$ac_ext )
  1310. # This is the source file.
  1311. ;;
  1312. [ab].out )
  1313. # We found the default executable, but exeext='' is most
  1314. # certainly right.
  1315. break;;
  1316. *.* )
  1317. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1318. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1319. # but it would be cool to find out if it's true. Does anybody
  1320. # maintain Libtool? --akim.
  1321. export ac_cv_exeext
  1322. break;;
  1323. * )
  1324. break;;
  1325. esac
  1326. done
  1327. else
  1328. echo "$as_me: failed program was:" >&5
  1329. sed 's/^/| /' conftest.$ac_ext >&5
  1330. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1331. See \`config.log' for more details." >&5
  1332. echo "$as_me: error: C compiler cannot create executables
  1333. See \`config.log' for more details." >&2;}
  1334. { (exit 77); exit 77; }; }
  1335. fi
  1336. ac_exeext=$ac_cv_exeext
  1337. echo "$as_me:$LINENO: result: $ac_file" >&5
  1338. echo "${ECHO_T}$ac_file" >&6
  1339. # Check the compiler produces executables we can run. If not, either
  1340. # the compiler is broken, or we cross compile.
  1341. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1342. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1343. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1344. # If not cross compiling, check that we can run a simple program.
  1345. if test "$cross_compiling" != yes; then
  1346. if { ac_try='./$ac_file'
  1347. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1348. (eval $ac_try) 2>&5
  1349. ac_status=$?
  1350. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1351. (exit $ac_status); }; }; then
  1352. cross_compiling=no
  1353. else
  1354. if test "$cross_compiling" = maybe; then
  1355. cross_compiling=yes
  1356. else
  1357. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1358. If you meant to cross compile, use \`--host'.
  1359. See \`config.log' for more details." >&5
  1360. echo "$as_me: error: cannot run C compiled programs.
  1361. If you meant to cross compile, use \`--host'.
  1362. See \`config.log' for more details." >&2;}
  1363. { (exit 1); exit 1; }; }
  1364. fi
  1365. fi
  1366. fi
  1367. echo "$as_me:$LINENO: result: yes" >&5
  1368. echo "${ECHO_T}yes" >&6
  1369. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1370. ac_clean_files=$ac_clean_files_save
  1371. # Check the compiler produces executables we can run. If not, either
  1372. # the compiler is broken, or we cross compile.
  1373. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1374. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1375. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1376. echo "${ECHO_T}$cross_compiling" >&6
  1377. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1378. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1379. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1380. (eval $ac_link) 2>&5
  1381. ac_status=$?
  1382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1383. (exit $ac_status); }; then
  1384. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1385. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1386. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1387. # `rm'.
  1388. for ac_file in conftest.exe conftest conftest.*; do
  1389. test -f "$ac_file" || continue
  1390. case $ac_file in
  1391. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1392. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1393. export ac_cv_exeext
  1394. break;;
  1395. * ) break;;
  1396. esac
  1397. done
  1398. else
  1399. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1400. See \`config.log' for more details." >&5
  1401. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1402. See \`config.log' for more details." >&2;}
  1403. { (exit 1); exit 1; }; }
  1404. fi
  1405. rm -f conftest$ac_cv_exeext
  1406. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1407. echo "${ECHO_T}$ac_cv_exeext" >&6
  1408. rm -f conftest.$ac_ext
  1409. EXEEXT=$ac_cv_exeext
  1410. ac_exeext=$EXEEXT
  1411. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1412. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1413. if test "${ac_cv_objext+set}" = set; then
  1414. echo $ECHO_N "(cached) $ECHO_C" >&6
  1415. else
  1416. cat >conftest.$ac_ext <<_ACEOF
  1417. /* confdefs.h. */
  1418. _ACEOF
  1419. cat confdefs.h >>conftest.$ac_ext
  1420. cat >>conftest.$ac_ext <<_ACEOF
  1421. /* end confdefs.h. */
  1422. int
  1423. main ()
  1424. {
  1425. ;
  1426. return 0;
  1427. }
  1428. _ACEOF
  1429. rm -f conftest.o conftest.obj
  1430. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1431. (eval $ac_compile) 2>&5
  1432. ac_status=$?
  1433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1434. (exit $ac_status); }; then
  1435. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1436. case $ac_file in
  1437. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1438. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1439. break;;
  1440. esac
  1441. done
  1442. else
  1443. echo "$as_me: failed program was:" >&5
  1444. sed 's/^/| /' conftest.$ac_ext >&5
  1445. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1446. See \`config.log' for more details." >&5
  1447. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1448. See \`config.log' for more details." >&2;}
  1449. { (exit 1); exit 1; }; }
  1450. fi
  1451. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1452. fi
  1453. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1454. echo "${ECHO_T}$ac_cv_objext" >&6
  1455. OBJEXT=$ac_cv_objext
  1456. ac_objext=$OBJEXT
  1457. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1458. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1459. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1460. echo $ECHO_N "(cached) $ECHO_C" >&6
  1461. else
  1462. cat >conftest.$ac_ext <<_ACEOF
  1463. /* confdefs.h. */
  1464. _ACEOF
  1465. cat confdefs.h >>conftest.$ac_ext
  1466. cat >>conftest.$ac_ext <<_ACEOF
  1467. /* end confdefs.h. */
  1468. int
  1469. main ()
  1470. {
  1471. #ifndef __GNUC__
  1472. choke me
  1473. #endif
  1474. ;
  1475. return 0;
  1476. }
  1477. _ACEOF
  1478. rm -f conftest.$ac_objext
  1479. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1480. (eval $ac_compile) 2>conftest.er1
  1481. ac_status=$?
  1482. grep -v '^ *+' conftest.er1 >conftest.err
  1483. rm -f conftest.er1
  1484. cat conftest.err >&5
  1485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1486. (exit $ac_status); } &&
  1487. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1488. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1489. (eval $ac_try) 2>&5
  1490. ac_status=$?
  1491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1492. (exit $ac_status); }; } &&
  1493. { ac_try='test -s conftest.$ac_objext'
  1494. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1495. (eval $ac_try) 2>&5
  1496. ac_status=$?
  1497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1498. (exit $ac_status); }; }; then
  1499. ac_compiler_gnu=yes
  1500. else
  1501. echo "$as_me: failed program was:" >&5
  1502. sed 's/^/| /' conftest.$ac_ext >&5
  1503. ac_compiler_gnu=no
  1504. fi
  1505. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1506. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1507. fi
  1508. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1509. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1510. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1511. ac_test_CFLAGS=${CFLAGS+set}
  1512. ac_save_CFLAGS=$CFLAGS
  1513. CFLAGS="-g"
  1514. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1515. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1516. if test "${ac_cv_prog_cc_g+set}" = set; then
  1517. echo $ECHO_N "(cached) $ECHO_C" >&6
  1518. else
  1519. cat >conftest.$ac_ext <<_ACEOF
  1520. /* confdefs.h. */
  1521. _ACEOF
  1522. cat confdefs.h >>conftest.$ac_ext
  1523. cat >>conftest.$ac_ext <<_ACEOF
  1524. /* end confdefs.h. */
  1525. int
  1526. main ()
  1527. {
  1528. ;
  1529. return 0;
  1530. }
  1531. _ACEOF
  1532. rm -f conftest.$ac_objext
  1533. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1534. (eval $ac_compile) 2>conftest.er1
  1535. ac_status=$?
  1536. grep -v '^ *+' conftest.er1 >conftest.err
  1537. rm -f conftest.er1
  1538. cat conftest.err >&5
  1539. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1540. (exit $ac_status); } &&
  1541. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1542. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1543. (eval $ac_try) 2>&5
  1544. ac_status=$?
  1545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1546. (exit $ac_status); }; } &&
  1547. { ac_try='test -s conftest.$ac_objext'
  1548. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1549. (eval $ac_try) 2>&5
  1550. ac_status=$?
  1551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1552. (exit $ac_status); }; }; then
  1553. ac_cv_prog_cc_g=yes
  1554. else
  1555. echo "$as_me: failed program was:" >&5
  1556. sed 's/^/| /' conftest.$ac_ext >&5
  1557. ac_cv_prog_cc_g=no
  1558. fi
  1559. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1560. fi
  1561. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1562. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1563. if test "$ac_test_CFLAGS" = set; then
  1564. CFLAGS=$ac_save_CFLAGS
  1565. elif test $ac_cv_prog_cc_g = yes; then
  1566. if test "$GCC" = yes; then
  1567. CFLAGS="-g -O2"
  1568. else
  1569. CFLAGS="-g"
  1570. fi
  1571. else
  1572. if test "$GCC" = yes; then
  1573. CFLAGS="-O2"
  1574. else
  1575. CFLAGS=
  1576. fi
  1577. fi
  1578. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1579. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1580. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1581. echo $ECHO_N "(cached) $ECHO_C" >&6
  1582. else
  1583. ac_cv_prog_cc_stdc=no
  1584. ac_save_CC=$CC
  1585. cat >conftest.$ac_ext <<_ACEOF
  1586. /* confdefs.h. */
  1587. _ACEOF
  1588. cat confdefs.h >>conftest.$ac_ext
  1589. cat >>conftest.$ac_ext <<_ACEOF
  1590. /* end confdefs.h. */
  1591. #include <stdarg.h>
  1592. #include <stdio.h>
  1593. #include <sys/types.h>
  1594. #include <sys/stat.h>
  1595. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1596. struct buf { int x; };
  1597. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1598. static char *e (p, i)
  1599. char **p;
  1600. int i;
  1601. {
  1602. return p[i];
  1603. }
  1604. static char *f (char * (*g) (char **, int), char **p, ...)
  1605. {
  1606. char *s;
  1607. va_list v;
  1608. va_start (v,p);
  1609. s = g (p, va_arg (v,int));
  1610. va_end (v);
  1611. return s;
  1612. }
  1613. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1614. function prototypes and stuff, but not '\xHH' hex character constants.
  1615. These don't provoke an error unfortunately, instead are silently treated
  1616. as 'x'. The following induces an error, until -std1 is added to get
  1617. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  1618. array size at least. It's necessary to write '\x00'==0 to get something
  1619. that's true only with -std1. */
  1620. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1621. int test (int i, double x);
  1622. struct s1 {int (*f) (int a);};
  1623. struct s2 {int (*f) (double a);};
  1624. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1625. int argc;
  1626. char **argv;
  1627. int
  1628. main ()
  1629. {
  1630. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1631. ;
  1632. return 0;
  1633. }
  1634. _ACEOF
  1635. # Don't try gcc -ansi; that turns off useful extensions and
  1636. # breaks some systems' header files.
  1637. # AIX -qlanglvl=ansi
  1638. # Ultrix and OSF/1 -std1
  1639. # HP-UX 10.20 and later -Ae
  1640. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1641. # SVR4 -Xc -D__EXTENSIONS__
  1642. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1643. do
  1644. CC="$ac_save_CC $ac_arg"
  1645. rm -f conftest.$ac_objext
  1646. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1647. (eval $ac_compile) 2>conftest.er1
  1648. ac_status=$?
  1649. grep -v '^ *+' conftest.er1 >conftest.err
  1650. rm -f conftest.er1
  1651. cat conftest.err >&5
  1652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1653. (exit $ac_status); } &&
  1654. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1655. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1656. (eval $ac_try) 2>&5
  1657. ac_status=$?
  1658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1659. (exit $ac_status); }; } &&
  1660. { ac_try='test -s conftest.$ac_objext'
  1661. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1662. (eval $ac_try) 2>&5
  1663. ac_status=$?
  1664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1665. (exit $ac_status); }; }; then
  1666. ac_cv_prog_cc_stdc=$ac_arg
  1667. break
  1668. else
  1669. echo "$as_me: failed program was:" >&5
  1670. sed 's/^/| /' conftest.$ac_ext >&5
  1671. fi
  1672. rm -f conftest.err conftest.$ac_objext
  1673. done
  1674. rm -f conftest.$ac_ext conftest.$ac_objext
  1675. CC=$ac_save_CC
  1676. fi
  1677. case "x$ac_cv_prog_cc_stdc" in
  1678. x|xno)
  1679. echo "$as_me:$LINENO: result: none needed" >&5
  1680. echo "${ECHO_T}none needed" >&6 ;;
  1681. *)
  1682. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1683. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1684. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1685. esac
  1686. # Some people use a C++ compiler to compile C. Since we use `exit',
  1687. # in C++ we need to declare it. In case someone uses the same compiler
  1688. # for both compiling C and C++ we need to have the C++ compiler decide
  1689. # the declaration of exit, since it's the most demanding environment.
  1690. cat >conftest.$ac_ext <<_ACEOF
  1691. #ifndef __cplusplus
  1692. choke me
  1693. #endif
  1694. _ACEOF
  1695. rm -f conftest.$ac_objext
  1696. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1697. (eval $ac_compile) 2>conftest.er1
  1698. ac_status=$?
  1699. grep -v '^ *+' conftest.er1 >conftest.err
  1700. rm -f conftest.er1
  1701. cat conftest.err >&5
  1702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1703. (exit $ac_status); } &&
  1704. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1705. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1706. (eval $ac_try) 2>&5
  1707. ac_status=$?
  1708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1709. (exit $ac_status); }; } &&
  1710. { ac_try='test -s conftest.$ac_objext'
  1711. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1712. (eval $ac_try) 2>&5
  1713. ac_status=$?
  1714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1715. (exit $ac_status); }; }; then
  1716. for ac_declaration in \
  1717. '' \
  1718. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1719. 'extern "C" void std::exit (int); using std::exit;' \
  1720. 'extern "C" void exit (int) throw ();' \
  1721. 'extern "C" void exit (int);' \
  1722. 'void exit (int);'
  1723. do
  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. $ac_declaration
  1731. #include <stdlib.h>
  1732. int
  1733. main ()
  1734. {
  1735. exit (42);
  1736. ;
  1737. return 0;
  1738. }
  1739. _ACEOF
  1740. rm -f conftest.$ac_objext
  1741. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1742. (eval $ac_compile) 2>conftest.er1
  1743. ac_status=$?
  1744. grep -v '^ *+' conftest.er1 >conftest.err
  1745. rm -f conftest.er1
  1746. cat conftest.err >&5
  1747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1748. (exit $ac_status); } &&
  1749. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1750. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1751. (eval $ac_try) 2>&5
  1752. ac_status=$?
  1753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1754. (exit $ac_status); }; } &&
  1755. { ac_try='test -s conftest.$ac_objext'
  1756. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1757. (eval $ac_try) 2>&5
  1758. ac_status=$?
  1759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1760. (exit $ac_status); }; }; then
  1761. :
  1762. else
  1763. echo "$as_me: failed program was:" >&5
  1764. sed 's/^/| /' conftest.$ac_ext >&5
  1765. continue
  1766. fi
  1767. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1768. cat >conftest.$ac_ext <<_ACEOF
  1769. /* confdefs.h. */
  1770. _ACEOF
  1771. cat confdefs.h >>conftest.$ac_ext
  1772. cat >>conftest.$ac_ext <<_ACEOF
  1773. /* end confdefs.h. */
  1774. $ac_declaration
  1775. int
  1776. main ()
  1777. {
  1778. exit (42);
  1779. ;
  1780. return 0;
  1781. }
  1782. _ACEOF
  1783. rm -f conftest.$ac_objext
  1784. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1785. (eval $ac_compile) 2>conftest.er1
  1786. ac_status=$?
  1787. grep -v '^ *+' conftest.er1 >conftest.err
  1788. rm -f conftest.er1
  1789. cat conftest.err >&5
  1790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1791. (exit $ac_status); } &&
  1792. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1793. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1794. (eval $ac_try) 2>&5
  1795. ac_status=$?
  1796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1797. (exit $ac_status); }; } &&
  1798. { ac_try='test -s conftest.$ac_objext'
  1799. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1800. (eval $ac_try) 2>&5
  1801. ac_status=$?
  1802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1803. (exit $ac_status); }; }; then
  1804. break
  1805. else
  1806. echo "$as_me: failed program was:" >&5
  1807. sed 's/^/| /' conftest.$ac_ext >&5
  1808. fi
  1809. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1810. done
  1811. rm -f conftest*
  1812. if test -n "$ac_declaration"; then
  1813. echo '#ifdef __cplusplus' >>confdefs.h
  1814. echo $ac_declaration >>confdefs.h
  1815. echo '#endif' >>confdefs.h
  1816. fi
  1817. else
  1818. echo "$as_me: failed program was:" >&5
  1819. sed 's/^/| /' conftest.$ac_ext >&5
  1820. fi
  1821. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1822. ac_ext=c
  1823. ac_cpp='$CPP $CPPFLAGS'
  1824. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1825. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1826. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1827. if test "${cross_compiling-x}" = "x"
  1828. then
  1829. cat << 'EOF' >&2
  1830. configure: error:
  1831. This system does not appear to have a working C compiler.
  1832. A working C compiler is required to compile Eggdrop.
  1833. EOF
  1834. exit 1
  1835. fi
  1836. if test -n "$GCC"; then
  1837. CFLAGS="$CFLAGS -O3"
  1838. fi
  1839. # Crazy machines
  1840. ac_ext=c
  1841. ac_cpp='$CPP $CPPFLAGS'
  1842. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1843. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1844. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1845. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  1846. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  1847. # On Suns, sometimes $CPP names a directory.
  1848. if test -n "$CPP" && test -d "$CPP"; then
  1849. CPP=
  1850. fi
  1851. if test -z "$CPP"; then
  1852. if test "${ac_cv_prog_CPP+set}" = set; then
  1853. echo $ECHO_N "(cached) $ECHO_C" >&6
  1854. else
  1855. # Double quotes because CPP needs to be expanded
  1856. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  1857. do
  1858. ac_preproc_ok=false
  1859. for ac_c_preproc_warn_flag in '' yes
  1860. do
  1861. # Use a header file that comes with gcc, so configuring glibc
  1862. # with a fresh cross-compiler works.
  1863. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1864. # <limits.h> exists even on freestanding compilers.
  1865. # On the NeXT, cc -E runs the code through the compiler's parser,
  1866. # not just through cpp. "Syntax error" is here to catch this case.
  1867. cat >conftest.$ac_ext <<_ACEOF
  1868. /* confdefs.h. */
  1869. _ACEOF
  1870. cat confdefs.h >>conftest.$ac_ext
  1871. cat >>conftest.$ac_ext <<_ACEOF
  1872. /* end confdefs.h. */
  1873. #ifdef __STDC__
  1874. # include <limits.h>
  1875. #else
  1876. # include <assert.h>
  1877. #endif
  1878. Syntax error
  1879. _ACEOF
  1880. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1881. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1882. ac_status=$?
  1883. grep -v '^ *+' conftest.er1 >conftest.err
  1884. rm -f conftest.er1
  1885. cat conftest.err >&5
  1886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1887. (exit $ac_status); } >/dev/null; then
  1888. if test -s conftest.err; then
  1889. ac_cpp_err=$ac_c_preproc_warn_flag
  1890. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  1891. else
  1892. ac_cpp_err=
  1893. fi
  1894. else
  1895. ac_cpp_err=yes
  1896. fi
  1897. if test -z "$ac_cpp_err"; then
  1898. :
  1899. else
  1900. echo "$as_me: failed program was:" >&5
  1901. sed 's/^/| /' conftest.$ac_ext >&5
  1902. # Broken: fails on valid input.
  1903. continue
  1904. fi
  1905. rm -f conftest.err conftest.$ac_ext
  1906. # OK, works on sane cases. Now check whether non-existent headers
  1907. # can be detected and how.
  1908. cat >conftest.$ac_ext <<_ACEOF
  1909. /* confdefs.h. */
  1910. _ACEOF
  1911. cat confdefs.h >>conftest.$ac_ext
  1912. cat >>conftest.$ac_ext <<_ACEOF
  1913. /* end confdefs.h. */
  1914. #include <ac_nonexistent.h>
  1915. _ACEOF
  1916. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1917. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1918. ac_status=$?
  1919. grep -v '^ *+' conftest.er1 >conftest.err
  1920. rm -f conftest.er1
  1921. cat conftest.err >&5
  1922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1923. (exit $ac_status); } >/dev/null; then
  1924. if test -s conftest.err; then
  1925. ac_cpp_err=$ac_c_preproc_warn_flag
  1926. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  1927. else
  1928. ac_cpp_err=
  1929. fi
  1930. else
  1931. ac_cpp_err=yes
  1932. fi
  1933. if test -z "$ac_cpp_err"; then
  1934. # Broken: success on invalid input.
  1935. continue
  1936. else
  1937. echo "$as_me: failed program was:" >&5
  1938. sed 's/^/| /' conftest.$ac_ext >&5
  1939. # Passes both tests.
  1940. ac_preproc_ok=:
  1941. break
  1942. fi
  1943. rm -f conftest.err conftest.$ac_ext
  1944. done
  1945. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  1946. rm -f conftest.err conftest.$ac_ext
  1947. if $ac_preproc_ok; then
  1948. break
  1949. fi
  1950. done
  1951. ac_cv_prog_CPP=$CPP
  1952. fi
  1953. CPP=$ac_cv_prog_CPP
  1954. else
  1955. ac_cv_prog_CPP=$CPP
  1956. fi
  1957. echo "$as_me:$LINENO: result: $CPP" >&5
  1958. echo "${ECHO_T}$CPP" >&6
  1959. ac_preproc_ok=false
  1960. for ac_c_preproc_warn_flag in '' yes
  1961. do
  1962. # Use a header file that comes with gcc, so configuring glibc
  1963. # with a fresh cross-compiler works.
  1964. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1965. # <limits.h> exists even on freestanding compilers.
  1966. # On the NeXT, cc -E runs the code through the compiler's parser,
  1967. # not just through cpp. "Syntax error" is here to catch this case.
  1968. cat >conftest.$ac_ext <<_ACEOF
  1969. /* confdefs.h. */
  1970. _ACEOF
  1971. cat confdefs.h >>conftest.$ac_ext
  1972. cat >>conftest.$ac_ext <<_ACEOF
  1973. /* end confdefs.h. */
  1974. #ifdef __STDC__
  1975. # include <limits.h>
  1976. #else
  1977. # include <assert.h>
  1978. #endif
  1979. Syntax error
  1980. _ACEOF
  1981. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1982. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1983. ac_status=$?
  1984. grep -v '^ *+' conftest.er1 >conftest.err
  1985. rm -f conftest.er1
  1986. cat conftest.err >&5
  1987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1988. (exit $ac_status); } >/dev/null; then
  1989. if test -s conftest.err; then
  1990. ac_cpp_err=$ac_c_preproc_warn_flag
  1991. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  1992. else
  1993. ac_cpp_err=
  1994. fi
  1995. else
  1996. ac_cpp_err=yes
  1997. fi
  1998. if test -z "$ac_cpp_err"; then
  1999. :
  2000. else
  2001. echo "$as_me: failed program was:" >&5
  2002. sed 's/^/| /' conftest.$ac_ext >&5
  2003. # Broken: fails on valid input.
  2004. continue
  2005. fi
  2006. rm -f conftest.err conftest.$ac_ext
  2007. # OK, works on sane cases. Now check whether non-existent headers
  2008. # can be detected and how.
  2009. cat >conftest.$ac_ext <<_ACEOF
  2010. /* confdefs.h. */
  2011. _ACEOF
  2012. cat confdefs.h >>conftest.$ac_ext
  2013. cat >>conftest.$ac_ext <<_ACEOF
  2014. /* end confdefs.h. */
  2015. #include <ac_nonexistent.h>
  2016. _ACEOF
  2017. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2018. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2019. ac_status=$?
  2020. grep -v '^ *+' conftest.er1 >conftest.err
  2021. rm -f conftest.er1
  2022. cat conftest.err >&5
  2023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2024. (exit $ac_status); } >/dev/null; then
  2025. if test -s conftest.err; then
  2026. ac_cpp_err=$ac_c_preproc_warn_flag
  2027. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2028. else
  2029. ac_cpp_err=
  2030. fi
  2031. else
  2032. ac_cpp_err=yes
  2033. fi
  2034. if test -z "$ac_cpp_err"; then
  2035. # Broken: success on invalid input.
  2036. continue
  2037. else
  2038. echo "$as_me: failed program was:" >&5
  2039. sed 's/^/| /' conftest.$ac_ext >&5
  2040. # Passes both tests.
  2041. ac_preproc_ok=:
  2042. break
  2043. fi
  2044. rm -f conftest.err conftest.$ac_ext
  2045. done
  2046. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2047. rm -f conftest.err conftest.$ac_ext
  2048. if $ac_preproc_ok; then
  2049. :
  2050. else
  2051. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2052. See \`config.log' for more details." >&5
  2053. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2054. See \`config.log' for more details." >&2;}
  2055. { (exit 1); exit 1; }; }
  2056. fi
  2057. ac_ext=c
  2058. ac_cpp='$CPP $CPPFLAGS'
  2059. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2060. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2061. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2062. echo "$as_me:$LINENO: checking for egrep" >&5
  2063. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2064. if test "${ac_cv_prog_egrep+set}" = set; then
  2065. echo $ECHO_N "(cached) $ECHO_C" >&6
  2066. else
  2067. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2068. then ac_cv_prog_egrep='grep -E'
  2069. else ac_cv_prog_egrep='egrep'
  2070. fi
  2071. fi
  2072. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2073. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2074. EGREP=$ac_cv_prog_egrep
  2075. echo "$as_me:$LINENO: checking for AIX" >&5
  2076. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  2077. cat >conftest.$ac_ext <<_ACEOF
  2078. /* confdefs.h. */
  2079. _ACEOF
  2080. cat confdefs.h >>conftest.$ac_ext
  2081. cat >>conftest.$ac_ext <<_ACEOF
  2082. /* end confdefs.h. */
  2083. #ifdef _AIX
  2084. yes
  2085. #endif
  2086. _ACEOF
  2087. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2088. $EGREP "yes" >/dev/null 2>&1; then
  2089. echo "$as_me:$LINENO: result: yes" >&5
  2090. echo "${ECHO_T}yes" >&6
  2091. cat >>confdefs.h <<\_ACEOF
  2092. #define _ALL_SOURCE 1
  2093. _ACEOF
  2094. else
  2095. echo "$as_me:$LINENO: result: no" >&5
  2096. echo "${ECHO_T}no" >&6
  2097. fi
  2098. rm -f conftest*
  2099. echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  2100. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
  2101. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  2102. echo $ECHO_N "(cached) $ECHO_C" >&6
  2103. else
  2104. ac_check_lib_save_LIBS=$LIBS
  2105. LIBS="-lcposix $LIBS"
  2106. cat >conftest.$ac_ext <<_ACEOF
  2107. /* confdefs.h. */
  2108. _ACEOF
  2109. cat confdefs.h >>conftest.$ac_ext
  2110. cat >>conftest.$ac_ext <<_ACEOF
  2111. /* end confdefs.h. */
  2112. /* Override any gcc2 internal prototype to avoid an error. */
  2113. #ifdef __cplusplus
  2114. extern "C"
  2115. #endif
  2116. /* We use char because int might match the return type of a gcc2
  2117. builtin and then its argument prototype would still apply. */
  2118. char strerror ();
  2119. int
  2120. main ()
  2121. {
  2122. strerror ();
  2123. ;
  2124. return 0;
  2125. }
  2126. _ACEOF
  2127. rm -f conftest.$ac_objext conftest$ac_exeext
  2128. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2129. (eval $ac_link) 2>conftest.er1
  2130. ac_status=$?
  2131. grep -v '^ *+' conftest.er1 >conftest.err
  2132. rm -f conftest.er1
  2133. cat conftest.err >&5
  2134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2135. (exit $ac_status); } &&
  2136. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2137. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2138. (eval $ac_try) 2>&5
  2139. ac_status=$?
  2140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2141. (exit $ac_status); }; } &&
  2142. { ac_try='test -s conftest$ac_exeext'
  2143. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2144. (eval $ac_try) 2>&5
  2145. ac_status=$?
  2146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2147. (exit $ac_status); }; }; then
  2148. ac_cv_lib_cposix_strerror=yes
  2149. else
  2150. echo "$as_me: failed program was:" >&5
  2151. sed 's/^/| /' conftest.$ac_ext >&5
  2152. ac_cv_lib_cposix_strerror=no
  2153. fi
  2154. rm -f conftest.err conftest.$ac_objext \
  2155. conftest$ac_exeext conftest.$ac_ext
  2156. LIBS=$ac_check_lib_save_LIBS
  2157. fi
  2158. echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  2159. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
  2160. if test $ac_cv_lib_cposix_strerror = yes; then
  2161. LIBS="$LIBS -lcposix"
  2162. fi
  2163. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2164. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2165. if test "${ac_cv_header_stdc+set}" = set; then
  2166. echo $ECHO_N "(cached) $ECHO_C" >&6
  2167. else
  2168. cat >conftest.$ac_ext <<_ACEOF
  2169. /* confdefs.h. */
  2170. _ACEOF
  2171. cat confdefs.h >>conftest.$ac_ext
  2172. cat >>conftest.$ac_ext <<_ACEOF
  2173. /* end confdefs.h. */
  2174. #include <stdlib.h>
  2175. #include <stdarg.h>
  2176. #include <string.h>
  2177. #include <float.h>
  2178. int
  2179. main ()
  2180. {
  2181. ;
  2182. return 0;
  2183. }
  2184. _ACEOF
  2185. rm -f conftest.$ac_objext
  2186. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2187. (eval $ac_compile) 2>conftest.er1
  2188. ac_status=$?
  2189. grep -v '^ *+' conftest.er1 >conftest.err
  2190. rm -f conftest.er1
  2191. cat conftest.err >&5
  2192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2193. (exit $ac_status); } &&
  2194. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2195. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2196. (eval $ac_try) 2>&5
  2197. ac_status=$?
  2198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2199. (exit $ac_status); }; } &&
  2200. { ac_try='test -s conftest.$ac_objext'
  2201. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2202. (eval $ac_try) 2>&5
  2203. ac_status=$?
  2204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2205. (exit $ac_status); }; }; then
  2206. ac_cv_header_stdc=yes
  2207. else
  2208. echo "$as_me: failed program was:" >&5
  2209. sed 's/^/| /' conftest.$ac_ext >&5
  2210. ac_cv_header_stdc=no
  2211. fi
  2212. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2213. if test $ac_cv_header_stdc = yes; then
  2214. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2215. cat >conftest.$ac_ext <<_ACEOF
  2216. /* confdefs.h. */
  2217. _ACEOF
  2218. cat confdefs.h >>conftest.$ac_ext
  2219. cat >>conftest.$ac_ext <<_ACEOF
  2220. /* end confdefs.h. */
  2221. #include <string.h>
  2222. _ACEOF
  2223. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2224. $EGREP "memchr" >/dev/null 2>&1; then
  2225. :
  2226. else
  2227. ac_cv_header_stdc=no
  2228. fi
  2229. rm -f conftest*
  2230. fi
  2231. if test $ac_cv_header_stdc = yes; then
  2232. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2233. cat >conftest.$ac_ext <<_ACEOF
  2234. /* confdefs.h. */
  2235. _ACEOF
  2236. cat confdefs.h >>conftest.$ac_ext
  2237. cat >>conftest.$ac_ext <<_ACEOF
  2238. /* end confdefs.h. */
  2239. #include <stdlib.h>
  2240. _ACEOF
  2241. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2242. $EGREP "free" >/dev/null 2>&1; then
  2243. :
  2244. else
  2245. ac_cv_header_stdc=no
  2246. fi
  2247. rm -f conftest*
  2248. fi
  2249. if test $ac_cv_header_stdc = yes; then
  2250. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2251. if test "$cross_compiling" = yes; then
  2252. :
  2253. else
  2254. cat >conftest.$ac_ext <<_ACEOF
  2255. /* confdefs.h. */
  2256. _ACEOF
  2257. cat confdefs.h >>conftest.$ac_ext
  2258. cat >>conftest.$ac_ext <<_ACEOF
  2259. /* end confdefs.h. */
  2260. #include <ctype.h>
  2261. #if ((' ' & 0x0FF) == 0x020)
  2262. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2263. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2264. #else
  2265. # define ISLOWER(c) \
  2266. (('a' <= (c) && (c) <= 'i') \
  2267. || ('j' <= (c) && (c) <= 'r') \
  2268. || ('s' <= (c) && (c) <= 'z'))
  2269. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2270. #endif
  2271. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2272. int
  2273. main ()
  2274. {
  2275. int i;
  2276. for (i = 0; i < 256; i++)
  2277. if (XOR (islower (i), ISLOWER (i))
  2278. || toupper (i) != TOUPPER (i))
  2279. exit(2);
  2280. exit (0);
  2281. }
  2282. _ACEOF
  2283. rm -f conftest$ac_exeext
  2284. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2285. (eval $ac_link) 2>&5
  2286. ac_status=$?
  2287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2288. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2289. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2290. (eval $ac_try) 2>&5
  2291. ac_status=$?
  2292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2293. (exit $ac_status); }; }; then
  2294. :
  2295. else
  2296. echo "$as_me: program exited with status $ac_status" >&5
  2297. echo "$as_me: failed program was:" >&5
  2298. sed 's/^/| /' conftest.$ac_ext >&5
  2299. ( exit $ac_status )
  2300. ac_cv_header_stdc=no
  2301. fi
  2302. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2303. fi
  2304. fi
  2305. fi
  2306. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2307. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2308. if test $ac_cv_header_stdc = yes; then
  2309. cat >>confdefs.h <<\_ACEOF
  2310. #define STDC_HEADERS 1
  2311. _ACEOF
  2312. fi
  2313. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2314. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2315. inttypes.h stdint.h unistd.h
  2316. do
  2317. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2318. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2319. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2320. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2321. echo $ECHO_N "(cached) $ECHO_C" >&6
  2322. else
  2323. cat >conftest.$ac_ext <<_ACEOF
  2324. /* confdefs.h. */
  2325. _ACEOF
  2326. cat confdefs.h >>conftest.$ac_ext
  2327. cat >>conftest.$ac_ext <<_ACEOF
  2328. /* end confdefs.h. */
  2329. $ac_includes_default
  2330. #include <$ac_header>
  2331. _ACEOF
  2332. rm -f conftest.$ac_objext
  2333. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2334. (eval $ac_compile) 2>conftest.er1
  2335. ac_status=$?
  2336. grep -v '^ *+' conftest.er1 >conftest.err
  2337. rm -f conftest.er1
  2338. cat conftest.err >&5
  2339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2340. (exit $ac_status); } &&
  2341. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2342. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2343. (eval $ac_try) 2>&5
  2344. ac_status=$?
  2345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2346. (exit $ac_status); }; } &&
  2347. { ac_try='test -s conftest.$ac_objext'
  2348. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2349. (eval $ac_try) 2>&5
  2350. ac_status=$?
  2351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2352. (exit $ac_status); }; }; then
  2353. eval "$as_ac_Header=yes"
  2354. else
  2355. echo "$as_me: failed program was:" >&5
  2356. sed 's/^/| /' conftest.$ac_ext >&5
  2357. eval "$as_ac_Header=no"
  2358. fi
  2359. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2360. fi
  2361. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2362. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2363. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2364. cat >>confdefs.h <<_ACEOF
  2365. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2366. _ACEOF
  2367. fi
  2368. done
  2369. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2370. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2371. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2372. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2373. echo $ECHO_N "(cached) $ECHO_C" >&6
  2374. fi
  2375. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2376. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2377. else
  2378. # Is the header compilable?
  2379. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2380. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2381. cat >conftest.$ac_ext <<_ACEOF
  2382. /* confdefs.h. */
  2383. _ACEOF
  2384. cat confdefs.h >>conftest.$ac_ext
  2385. cat >>conftest.$ac_ext <<_ACEOF
  2386. /* end confdefs.h. */
  2387. $ac_includes_default
  2388. #include <minix/config.h>
  2389. _ACEOF
  2390. rm -f conftest.$ac_objext
  2391. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2392. (eval $ac_compile) 2>conftest.er1
  2393. ac_status=$?
  2394. grep -v '^ *+' conftest.er1 >conftest.err
  2395. rm -f conftest.er1
  2396. cat conftest.err >&5
  2397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2398. (exit $ac_status); } &&
  2399. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2400. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2401. (eval $ac_try) 2>&5
  2402. ac_status=$?
  2403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2404. (exit $ac_status); }; } &&
  2405. { ac_try='test -s conftest.$ac_objext'
  2406. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2407. (eval $ac_try) 2>&5
  2408. ac_status=$?
  2409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2410. (exit $ac_status); }; }; then
  2411. ac_header_compiler=yes
  2412. else
  2413. echo "$as_me: failed program was:" >&5
  2414. sed 's/^/| /' conftest.$ac_ext >&5
  2415. ac_header_compiler=no
  2416. fi
  2417. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2418. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2419. echo "${ECHO_T}$ac_header_compiler" >&6
  2420. # Is the header present?
  2421. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2422. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2423. cat >conftest.$ac_ext <<_ACEOF
  2424. /* confdefs.h. */
  2425. _ACEOF
  2426. cat confdefs.h >>conftest.$ac_ext
  2427. cat >>conftest.$ac_ext <<_ACEOF
  2428. /* end confdefs.h. */
  2429. #include <minix/config.h>
  2430. _ACEOF
  2431. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2432. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2433. ac_status=$?
  2434. grep -v '^ *+' conftest.er1 >conftest.err
  2435. rm -f conftest.er1
  2436. cat conftest.err >&5
  2437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2438. (exit $ac_status); } >/dev/null; then
  2439. if test -s conftest.err; then
  2440. ac_cpp_err=$ac_c_preproc_warn_flag
  2441. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2442. else
  2443. ac_cpp_err=
  2444. fi
  2445. else
  2446. ac_cpp_err=yes
  2447. fi
  2448. if test -z "$ac_cpp_err"; then
  2449. ac_header_preproc=yes
  2450. else
  2451. echo "$as_me: failed program was:" >&5
  2452. sed 's/^/| /' conftest.$ac_ext >&5
  2453. ac_header_preproc=no
  2454. fi
  2455. rm -f conftest.err conftest.$ac_ext
  2456. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2457. echo "${ECHO_T}$ac_header_preproc" >&6
  2458. # So? What about this header?
  2459. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  2460. yes:no: )
  2461. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2462. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2463. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2464. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2465. ac_header_preproc=yes
  2466. ;;
  2467. no:yes:* )
  2468. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2469. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2470. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2471. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2472. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2473. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2474. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2475. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2476. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2477. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2478. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2479. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2480. (
  2481. cat <<\_ASBOX
  2482. ## ------------------------------------------ ##
  2483. ## Report this to the AC_PACKAGE_NAME lists. ##
  2484. ## ------------------------------------------ ##
  2485. _ASBOX
  2486. ) |
  2487. sed "s/^/$as_me: WARNING: /" >&2
  2488. ;;
  2489. esac
  2490. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2491. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2492. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2493. echo $ECHO_N "(cached) $ECHO_C" >&6
  2494. else
  2495. ac_cv_header_minix_config_h=$ac_header_preproc
  2496. fi
  2497. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2498. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2499. fi
  2500. if test $ac_cv_header_minix_config_h = yes; then
  2501. MINIX=yes
  2502. else
  2503. MINIX=
  2504. fi
  2505. if test "$MINIX" = yes; then
  2506. cat >>confdefs.h <<\_ACEOF
  2507. #define _POSIX_SOURCE 1
  2508. _ACEOF
  2509. cat >>confdefs.h <<\_ACEOF
  2510. #define _POSIX_1_SOURCE 2
  2511. _ACEOF
  2512. cat >>confdefs.h <<\_ACEOF
  2513. #define _MINIX 1
  2514. _ACEOF
  2515. fi
  2516. #checkpoint
  2517. cat >confcache <<\_ACEOF
  2518. # This file is a shell script that caches the results of configure
  2519. # tests run on this system so they can be shared between configure
  2520. # scripts and configure runs, see configure's option --config-cache.
  2521. # It is not useful on other systems. If it contains results you don't
  2522. # want to keep, you may remove or edit it.
  2523. #
  2524. # config.status only pays attention to the cache file if you give it
  2525. # the --recheck option to rerun configure.
  2526. #
  2527. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2528. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2529. # following values.
  2530. _ACEOF
  2531. # The following way of writing the cache mishandles newlines in values,
  2532. # but we know of no workaround that is simple, portable, and efficient.
  2533. # So, don't put newlines in cache variables' values.
  2534. # Ultrix sh set writes to stderr and can't be redirected directly,
  2535. # and sets the high bit in the cache file unless we assign to the vars.
  2536. {
  2537. (set) 2>&1 |
  2538. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2539. *ac_space=\ *)
  2540. # `set' does not quote correctly, so add quotes (double-quote
  2541. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2542. sed -n \
  2543. "s/'/'\\\\''/g;
  2544. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2545. ;;
  2546. *)
  2547. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2548. sed -n \
  2549. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2550. ;;
  2551. esac;
  2552. } |
  2553. sed '
  2554. t clear
  2555. : clear
  2556. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2557. t end
  2558. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2559. : end' >>confcache
  2560. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2561. if test -w $cache_file; then
  2562. test "x$cache_file" != "x/dev/null"
  2563. cat confcache >$cache_file
  2564. else
  2565. echo "not updating unwritable cache $cache_file"
  2566. fi
  2567. fi
  2568. rm -f confcache
  2569. # Speedup compile
  2570. if test -n "$GCC" && test -z "$no_wall"; then
  2571. echo "$as_me:$LINENO: checking whether the compiler understands -Wall" >&5
  2572. echo $ECHO_N "checking whether the compiler understands -Wall... $ECHO_C" >&6
  2573. if test "${egg_cv_var_ccwall+set}" = set; then
  2574. echo $ECHO_N "(cached) $ECHO_C" >&6
  2575. else
  2576. ac_old_CFLAGS="$CFLAGS"
  2577. CFLAGS="$CFLAGS -Wall"
  2578. cat >conftest.$ac_ext <<_ACEOF
  2579. int main ()
  2580. {
  2581. return(0);
  2582. }
  2583. _ACEOF
  2584. rm -f conftest.$ac_objext
  2585. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2586. (eval $ac_compile) 2>conftest.er1
  2587. ac_status=$?
  2588. grep -v '^ *+' conftest.er1 >conftest.err
  2589. rm -f conftest.er1
  2590. cat conftest.err >&5
  2591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2592. (exit $ac_status); } &&
  2593. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2594. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2595. (eval $ac_try) 2>&5
  2596. ac_status=$?
  2597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2598. (exit $ac_status); }; } &&
  2599. { ac_try='test -s conftest.$ac_objext'
  2600. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2601. (eval $ac_try) 2>&5
  2602. ac_status=$?
  2603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2604. (exit $ac_status); }; }; then
  2605. egg_cv_var_ccwall="yes"
  2606. else
  2607. echo "$as_me: failed program was:" >&5
  2608. sed 's/^/| /' conftest.$ac_ext >&5
  2609. egg_cv_var_ccwall="no"
  2610. fi
  2611. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2612. CFLAGS="$ac_old_CFLAGS"
  2613. fi
  2614. echo "$as_me:$LINENO: result: $egg_cv_var_ccwall" >&5
  2615. echo "${ECHO_T}$egg_cv_var_ccwall" >&6
  2616. if test "$egg_cv_var_ccwall" = "yes"; then
  2617. CFLAGS="$CFLAGS -Wall"
  2618. fi
  2619. fi
  2620. if test -n "$GCC" && test -z "$no_pipe"; then
  2621. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2622. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2623. if test "${egg_cv_var_ccpipe+set}" = set; then
  2624. echo $ECHO_N "(cached) $ECHO_C" >&6
  2625. else
  2626. ac_old_CC="$CC"
  2627. CC="$CC -pipe"
  2628. cat >conftest.$ac_ext <<_ACEOF
  2629. int main ()
  2630. {
  2631. return(0);
  2632. }
  2633. _ACEOF
  2634. rm -f conftest.$ac_objext
  2635. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2636. (eval $ac_compile) 2>conftest.er1
  2637. ac_status=$?
  2638. grep -v '^ *+' conftest.er1 >conftest.err
  2639. rm -f conftest.er1
  2640. cat conftest.err >&5
  2641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2642. (exit $ac_status); } &&
  2643. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2644. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2645. (eval $ac_try) 2>&5
  2646. ac_status=$?
  2647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2648. (exit $ac_status); }; } &&
  2649. { ac_try='test -s conftest.$ac_objext'
  2650. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2651. (eval $ac_try) 2>&5
  2652. ac_status=$?
  2653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2654. (exit $ac_status); }; }; then
  2655. egg_cv_var_ccpipe="yes"
  2656. else
  2657. echo "$as_me: failed program was:" >&5
  2658. sed 's/^/| /' conftest.$ac_ext >&5
  2659. egg_cv_var_ccpipe="no"
  2660. fi
  2661. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2662. CC="$ac_old_CC"
  2663. fi
  2664. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2665. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2666. if test "$egg_cv_var_ccpipe" = "yes"; then
  2667. CC="$CC -pipe"
  2668. fi
  2669. fi
  2670. CCDEPMODE=gcc
  2671. num=`$CC -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  2672. if test $num = "3"; then
  2673. CCDEPMODE=gcc3
  2674. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  2675. GCC3="-Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  2676. fi
  2677. # Create static binaries
  2678. if test -z "$no_static"
  2679. then
  2680. if test -n "$GCC"
  2681. then
  2682. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  2683. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  2684. if test "${egg_cv_var_ccstatic+set}" = set; then
  2685. echo $ECHO_N "(cached) $ECHO_C" >&6
  2686. else
  2687. ac_old_CC="$CC"
  2688. CC="$CC -static"
  2689. cat >conftest.$ac_ext <<_ACEOF
  2690. /* confdefs.h. */
  2691. _ACEOF
  2692. cat confdefs.h >>conftest.$ac_ext
  2693. cat >>conftest.$ac_ext <<_ACEOF
  2694. /* end confdefs.h. */
  2695. int
  2696. main ()
  2697. {
  2698. ;
  2699. return 0;
  2700. }
  2701. _ACEOF
  2702. rm -f conftest.$ac_objext
  2703. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2704. (eval $ac_compile) 2>conftest.er1
  2705. ac_status=$?
  2706. grep -v '^ *+' conftest.er1 >conftest.err
  2707. rm -f conftest.er1
  2708. cat conftest.err >&5
  2709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2710. (exit $ac_status); } &&
  2711. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2712. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2713. (eval $ac_try) 2>&5
  2714. ac_status=$?
  2715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2716. (exit $ac_status); }; } &&
  2717. { ac_try='test -s conftest.$ac_objext'
  2718. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2719. (eval $ac_try) 2>&5
  2720. ac_status=$?
  2721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2722. (exit $ac_status); }; }; then
  2723. egg_cv_var_ccstatic="yes"
  2724. else
  2725. echo "$as_me: failed program was:" >&5
  2726. sed 's/^/| /' conftest.$ac_ext >&5
  2727. egg_cv_var_ccstatic="no"
  2728. fi
  2729. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2730. CC="$ac_old_CC"
  2731. fi
  2732. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  2733. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  2734. if test "$egg_cv_var_ccstatic" = "yes"
  2735. then
  2736. CCDEBUG="$CC"
  2737. CC="$CC -static"
  2738. else
  2739. cat << 'EOF' >&2
  2740. configure: error:
  2741. Your C compiler does not support -static.
  2742. This compile flag is required for the botpack.
  2743. EOF
  2744. exit 1
  2745. fi
  2746. fi
  2747. fi
  2748. # Checks for programs
  2749. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2750. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2751. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2752. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2753. echo $ECHO_N "(cached) $ECHO_C" >&6
  2754. else
  2755. cat >conftest.make <<\_ACEOF
  2756. all:
  2757. @echo 'ac_maketemp="$(MAKE)"'
  2758. _ACEOF
  2759. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2760. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2761. if test -n "$ac_maketemp"; then
  2762. eval ac_cv_prog_make_${ac_make}_set=yes
  2763. else
  2764. eval ac_cv_prog_make_${ac_make}_set=no
  2765. fi
  2766. rm -f conftest.make
  2767. fi
  2768. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2769. echo "$as_me:$LINENO: result: yes" >&5
  2770. echo "${ECHO_T}yes" >&6
  2771. SET_MAKE=
  2772. else
  2773. echo "$as_me:$LINENO: result: no" >&5
  2774. echo "${ECHO_T}no" >&6
  2775. SET_MAKE="MAKE=${MAKE-make}"
  2776. fi
  2777. cat << 'EOF' > conftest.head
  2778. a
  2779. b
  2780. c
  2781. EOF
  2782. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  2783. do
  2784. echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  2785. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6
  2786. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  2787. echo $ECHO_N "(cached) $ECHO_C" >&6
  2788. else
  2789. if test -n "$HEAD_1"
  2790. then
  2791. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  2792. else
  2793. if test "`cat conftest.head | $ac_prog`" = "a";
  2794. then
  2795. echo "$as_me:$LINENO: result: yes" >&5
  2796. echo "${ECHO_T}yes" >&6
  2797. ac_cv_prog_HEAD_1=$ac_prog
  2798. else
  2799. echo "$as_me:$LINENO: result: no" >&5
  2800. echo "${ECHO_T}no" >&6
  2801. fi
  2802. fi
  2803. fi
  2804. test -n "$ac_cv_prog_HEAD_1" && break
  2805. done
  2806. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  2807. then
  2808. cat << 'EOF' >&2
  2809. configure: error:
  2810. This system seems to lack a working 'head -1' or 'head -n 1' command.
  2811. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  2812. EOF
  2813. exit 1
  2814. fi
  2815. rm -f conftest.head
  2816. HEAD_1=$ac_cv_prog_HEAD_1
  2817. # awk is needed for Tcl library and header checks, and eggdrop version subst
  2818. for ac_prog in gawk mawk nawk awk
  2819. do
  2820. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2821. set dummy $ac_prog; ac_word=$2
  2822. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2823. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2824. if test "${ac_cv_prog_AWK+set}" = set; then
  2825. echo $ECHO_N "(cached) $ECHO_C" >&6
  2826. else
  2827. if test -n "$AWK"; then
  2828. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2829. else
  2830. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2831. for as_dir in $PATH
  2832. do
  2833. IFS=$as_save_IFS
  2834. test -z "$as_dir" && as_dir=.
  2835. for ac_exec_ext in '' $ac_executable_extensions; do
  2836. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2837. ac_cv_prog_AWK="$ac_prog"
  2838. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2839. break 2
  2840. fi
  2841. done
  2842. done
  2843. fi
  2844. fi
  2845. AWK=$ac_cv_prog_AWK
  2846. if test -n "$AWK"; then
  2847. echo "$as_me:$LINENO: result: $AWK" >&5
  2848. echo "${ECHO_T}$AWK" >&6
  2849. else
  2850. echo "$as_me:$LINENO: result: no" >&5
  2851. echo "${ECHO_T}no" >&6
  2852. fi
  2853. test -n "$AWK" && break
  2854. done
  2855. if test "${AWK-x}" = "x"
  2856. then
  2857. cat << 'EOF' >&2
  2858. configure: error:
  2859. This system seems to lack a working 'awk' command.
  2860. A working 'awk' command is required to compile Eggdrop.
  2861. EOF
  2862. exit 1
  2863. fi
  2864. # basename is needed for Tcl library and header checks
  2865. # Extract the first word of "basename", so it can be a program name with args.
  2866. set dummy basename; ac_word=$2
  2867. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2868. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2869. if test "${ac_cv_prog_BASENAME+set}" = set; then
  2870. echo $ECHO_N "(cached) $ECHO_C" >&6
  2871. else
  2872. if test -n "$BASENAME"; then
  2873. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  2874. else
  2875. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2876. for as_dir in $PATH
  2877. do
  2878. IFS=$as_save_IFS
  2879. test -z "$as_dir" && as_dir=.
  2880. for ac_exec_ext in '' $ac_executable_extensions; do
  2881. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2882. ac_cv_prog_BASENAME="basename"
  2883. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2884. break 2
  2885. fi
  2886. done
  2887. done
  2888. fi
  2889. fi
  2890. BASENAME=$ac_cv_prog_BASENAME
  2891. if test -n "$BASENAME"; then
  2892. echo "$as_me:$LINENO: result: $BASENAME" >&5
  2893. echo "${ECHO_T}$BASENAME" >&6
  2894. else
  2895. echo "$as_me:$LINENO: result: no" >&5
  2896. echo "${ECHO_T}no" >&6
  2897. fi
  2898. if test "${BASENAME-x}" = "x"
  2899. then
  2900. cat << 'EOF' >&2
  2901. configure: error:
  2902. This system seems to lack a working 'basename' command.
  2903. A working 'basename' command is required to compile Eggdrop.
  2904. EOF
  2905. exit 1
  2906. fi
  2907. # Extract the first word of "objcopy", so it can be a program name with args.
  2908. set dummy objcopy; ac_word=$2
  2909. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2910. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2911. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  2912. echo $ECHO_N "(cached) $ECHO_C" >&6
  2913. else
  2914. if test -n "$OBJCOPY"; then
  2915. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  2916. else
  2917. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2918. for as_dir in $PATH
  2919. do
  2920. IFS=$as_save_IFS
  2921. test -z "$as_dir" && as_dir=.
  2922. for ac_exec_ext in '' $ac_executable_extensions; do
  2923. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2924. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  2925. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2926. break 2
  2927. fi
  2928. done
  2929. done
  2930. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  2931. fi
  2932. fi
  2933. OBJCOPY=$ac_cv_prog_OBJCOPY
  2934. if test -n "$OBJCOPY"; then
  2935. echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  2936. echo "${ECHO_T}$OBJCOPY" >&6
  2937. else
  2938. echo "$as_me:$LINENO: result: no" >&5
  2939. echo "${ECHO_T}no" >&6
  2940. fi
  2941. # Extract the first word of "strip", so it can be a program name with args.
  2942. set dummy strip; ac_word=$2
  2943. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2944. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2945. if test "${ac_cv_prog_STRIP+set}" = set; then
  2946. echo $ECHO_N "(cached) $ECHO_C" >&6
  2947. else
  2948. if test -n "$STRIP"; then
  2949. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2950. else
  2951. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2952. for as_dir in $PATH
  2953. do
  2954. IFS=$as_save_IFS
  2955. test -z "$as_dir" && as_dir=.
  2956. for ac_exec_ext in '' $ac_executable_extensions; do
  2957. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2958. ac_cv_prog_STRIP="strip"
  2959. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2960. break 2
  2961. fi
  2962. done
  2963. done
  2964. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  2965. fi
  2966. fi
  2967. STRIP=$ac_cv_prog_STRIP
  2968. if test -n "$STRIP"; then
  2969. echo "$as_me:$LINENO: result: $STRIP" >&5
  2970. echo "${ECHO_T}$STRIP" >&6
  2971. else
  2972. echo "$as_me:$LINENO: result: no" >&5
  2973. echo "${ECHO_T}no" >&6
  2974. fi
  2975. # Extract the first word of "uname", so it can be a program name with args.
  2976. set dummy uname; ac_word=$2
  2977. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2978. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2979. if test "${ac_cv_prog_UNAME+set}" = set; then
  2980. echo $ECHO_N "(cached) $ECHO_C" >&6
  2981. else
  2982. if test -n "$UNAME"; then
  2983. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  2984. else
  2985. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2986. for as_dir in $PATH
  2987. do
  2988. IFS=$as_save_IFS
  2989. test -z "$as_dir" && as_dir=.
  2990. for ac_exec_ext in '' $ac_executable_extensions; do
  2991. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2992. ac_cv_prog_UNAME="uname"
  2993. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2994. break 2
  2995. fi
  2996. done
  2997. done
  2998. fi
  2999. fi
  3000. UNAME=$ac_cv_prog_UNAME
  3001. if test -n "$UNAME"; then
  3002. echo "$as_me:$LINENO: result: $UNAME" >&5
  3003. echo "${ECHO_T}$UNAME" >&6
  3004. else
  3005. echo "$as_me:$LINENO: result: no" >&5
  3006. echo "${ECHO_T}no" >&6
  3007. fi
  3008. #AC_CHECK_PROG(CCACHE, ccache, ccache)
  3009. # Extract the first word of "distcc", so it can be a program name with args.
  3010. set dummy distcc; ac_word=$2
  3011. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3012. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3013. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3014. echo $ECHO_N "(cached) $ECHO_C" >&6
  3015. else
  3016. if test -n "$DISTCC"; then
  3017. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3018. else
  3019. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3020. for as_dir in $PATH
  3021. do
  3022. IFS=$as_save_IFS
  3023. test -z "$as_dir" && as_dir=.
  3024. for ac_exec_ext in '' $ac_executable_extensions; do
  3025. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3026. ac_cv_prog_DISTCC="distcc"
  3027. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3028. break 2
  3029. fi
  3030. done
  3031. done
  3032. fi
  3033. fi
  3034. DISTCC=$ac_cv_prog_DISTCC
  3035. if test -n "$DISTCC"; then
  3036. echo "$as_me:$LINENO: result: $DISTCC" >&5
  3037. echo "${ECHO_T}$DISTCC" >&6
  3038. else
  3039. echo "$as_me:$LINENO: result: no" >&5
  3040. echo "${ECHO_T}no" >&6
  3041. fi
  3042. # Test the os and set the module linking settings
  3043. EGG_CYGWIN=no
  3044. echo "$as_me:$LINENO: checking system type" >&5
  3045. echo $ECHO_N "checking system type... $ECHO_C" >&6
  3046. if test "${egg_cv_var_system_type+set}" = set; then
  3047. echo $ECHO_N "(cached) $ECHO_C" >&6
  3048. else
  3049. egg_cv_var_system_type=`$UNAME -s`
  3050. fi
  3051. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3052. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3053. echo "$as_me:$LINENO: checking system release" >&5
  3054. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3055. if test "${egg_cv_var_system_release+set}" = set; then
  3056. echo $ECHO_N "(cached) $ECHO_C" >&6
  3057. else
  3058. egg_cv_var_system_release=`$UNAME -r`
  3059. fi
  3060. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3061. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3062. case "$egg_cv_var_system_type" in
  3063. BSD/OS)
  3064. ;;
  3065. CYGWI*)
  3066. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3067. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3068. WIN32FLAGS=
  3069. cat >conftest.$ac_ext <<_ACEOF
  3070. /* confdefs.h. */
  3071. _ACEOF
  3072. cat confdefs.h >>conftest.$ac_ext
  3073. cat >>conftest.$ac_ext <<_ACEOF
  3074. /* end confdefs.h. */
  3075. int
  3076. main ()
  3077. {
  3078. #ifndef WIN32
  3079. # ifndef _WIN32
  3080. # error WIN32 or _WIN32 not defined
  3081. # endif
  3082. #endif
  3083. ;
  3084. return 0;
  3085. }
  3086. _ACEOF
  3087. rm -f conftest.$ac_objext
  3088. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3089. (eval $ac_compile) 2>conftest.er1
  3090. ac_status=$?
  3091. grep -v '^ *+' conftest.er1 >conftest.err
  3092. rm -f conftest.er1
  3093. cat conftest.err >&5
  3094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3095. (exit $ac_status); } &&
  3096. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3097. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3098. (eval $ac_try) 2>&5
  3099. ac_status=$?
  3100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3101. (exit $ac_status); }; } &&
  3102. { ac_try='test -s conftest.$ac_objext'
  3103. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3104. (eval $ac_try) 2>&5
  3105. ac_status=$?
  3106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3107. (exit $ac_status); }; }; then
  3108. echo "$as_me:$LINENO: result: present by default" >&5
  3109. echo "${ECHO_T}present by default" >&6
  3110. else
  3111. echo "$as_me: failed program was:" >&5
  3112. sed 's/^/| /' conftest.$ac_ext >&5
  3113. ac_compile_save="$ac_compile"
  3114. save_CC="$CC"
  3115. ac_compile="$ac_compile -mwin32"
  3116. CC="$CC -mwin32"
  3117. cat >conftest.$ac_ext <<_ACEOF
  3118. /* confdefs.h. */
  3119. _ACEOF
  3120. cat confdefs.h >>conftest.$ac_ext
  3121. cat >>conftest.$ac_ext <<_ACEOF
  3122. /* end confdefs.h. */
  3123. int
  3124. main ()
  3125. {
  3126. #ifndef WIN32
  3127. # ifndef _WIN32
  3128. # error WIN32 or _WIN32 not defined
  3129. # endif
  3130. #endif
  3131. ;
  3132. return 0;
  3133. }
  3134. _ACEOF
  3135. rm -f conftest.$ac_objext
  3136. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3137. (eval $ac_compile) 2>conftest.er1
  3138. ac_status=$?
  3139. grep -v '^ *+' conftest.er1 >conftest.err
  3140. rm -f conftest.er1
  3141. cat conftest.err >&5
  3142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3143. (exit $ac_status); } &&
  3144. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3145. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3146. (eval $ac_try) 2>&5
  3147. ac_status=$?
  3148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3149. (exit $ac_status); }; } &&
  3150. { ac_try='test -s conftest.$ac_objext'
  3151. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3152. (eval $ac_try) 2>&5
  3153. ac_status=$?
  3154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3155. (exit $ac_status); }; }; then
  3156. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3157. echo "${ECHO_T}found via -mwin32" >&6
  3158. ac_compile="$ac_compile_save"
  3159. CC="$save_CC"
  3160. WIN32FLAGS="-mwin32"
  3161. else
  3162. echo "$as_me: failed program was:" >&5
  3163. sed 's/^/| /' conftest.$ac_ext >&5
  3164. ac_compile="$ac_compile_save"
  3165. CC="$save_CC"
  3166. echo "$as_me:$LINENO: result: not found" >&5
  3167. echo "${ECHO_T}not found" >&6
  3168. fi
  3169. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3170. fi
  3171. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3172. CC="$CC $WIN32FLAGS"
  3173. EGG_CYGWIN="yes"
  3174. if test $EGG_CYGWIN = "yes"; then
  3175. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3176. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3177. if test -r /usr/lib/binmode.o; then
  3178. echo "$as_me:$LINENO: result: yes" >&5
  3179. echo "${ECHO_T}yes" >&6
  3180. LIBS="$LIBS /usr/lib/binmode.o"
  3181. else
  3182. echo "$as_me:$LINENO: result: no" >&5
  3183. echo "${ECHO_T}no" >&6
  3184. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3185. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3186. fi
  3187. fi
  3188. cat >>confdefs.h <<\_ACEOF
  3189. #define CYGWIN_HACKS 1
  3190. _ACEOF
  3191. cat >>confdefs.h <<\_ACEOF
  3192. #define WIN32_LEAN_AND_MEAN 1
  3193. _ACEOF
  3194. ;;
  3195. IRIX)
  3196. ;;
  3197. Ultrix)
  3198. SHELL=/bin/sh5
  3199. ;;
  3200. SINIX*)
  3201. ;;
  3202. BeOS)
  3203. ;;
  3204. Linux)
  3205. ;;
  3206. Lynx)
  3207. ;;
  3208. QNX)
  3209. ;;
  3210. OSF1)
  3211. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3212. V*)
  3213. if test "$AWK" = "gawk"
  3214. then
  3215. AWK=awk
  3216. fi
  3217. ;;
  3218. 1.0|1.1|1.2)
  3219. cat >>confdefs.h <<\_ACEOF
  3220. #define OSF1_HACKS 1
  3221. _ACEOF
  3222. ;;
  3223. 1.*)
  3224. cat >>confdefs.h <<\_ACEOF
  3225. #define OSF1_HACKS 1
  3226. _ACEOF
  3227. ;;
  3228. *)
  3229. ;;
  3230. esac
  3231. cat >>confdefs.h <<\_ACEOF
  3232. #define STOP_UAC 1
  3233. _ACEOF
  3234. cat >>confdefs.h <<\_ACEOF
  3235. #define BROKEN_SNPRINTF 1
  3236. _ACEOF
  3237. ;;
  3238. SunOS)
  3239. ;;
  3240. *BSD)
  3241. # FreeBSD/OpenBSD/NetBSD
  3242. ;;
  3243. *)
  3244. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3245. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3246. if test -r /mach
  3247. then
  3248. echo "$as_me:$LINENO: result: yes" >&5
  3249. echo "${ECHO_T}yes" >&6
  3250. cat >>confdefs.h <<\_ACEOF
  3251. #define BORGCUBES 1
  3252. _ACEOF
  3253. else
  3254. echo "$as_me:$LINENO: result: no" >&5
  3255. echo "${ECHO_T}no" >&6
  3256. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3257. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3258. if test -r /cmds
  3259. then
  3260. echo "$as_me:$LINENO: result: yes" >&5
  3261. echo "${ECHO_T}yes" >&6
  3262. else
  3263. echo "$as_me:$LINENO: result: no" >&5
  3264. echo "${ECHO_T}no" >&6
  3265. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3266. echo "${ECHO_T}Something unknown!" >&6
  3267. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3268. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3269. fi
  3270. fi
  3271. ;;
  3272. esac
  3273. dns_reslib_avail="true"
  3274. echo "$as_me:$LINENO: checking for res_init" >&5
  3275. echo $ECHO_N "checking for res_init... $ECHO_C" >&6
  3276. if test "${ac_cv_func_res_init+set}" = set; then
  3277. echo $ECHO_N "(cached) $ECHO_C" >&6
  3278. else
  3279. cat >conftest.$ac_ext <<_ACEOF
  3280. /* confdefs.h. */
  3281. _ACEOF
  3282. cat confdefs.h >>conftest.$ac_ext
  3283. cat >>conftest.$ac_ext <<_ACEOF
  3284. /* end confdefs.h. */
  3285. /* Define res_init to an innocuous variant, in case <limits.h> declares res_init.
  3286. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3287. #define res_init innocuous_res_init
  3288. /* System header to define __stub macros and hopefully few prototypes,
  3289. which can conflict with char res_init (); below.
  3290. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3291. <limits.h> exists even on freestanding compilers. */
  3292. #ifdef __STDC__
  3293. # include <limits.h>
  3294. #else
  3295. # include <assert.h>
  3296. #endif
  3297. #undef res_init
  3298. /* Override any gcc2 internal prototype to avoid an error. */
  3299. #ifdef __cplusplus
  3300. extern "C"
  3301. {
  3302. #endif
  3303. /* We use char because int might match the return type of a gcc2
  3304. builtin and then its argument prototype would still apply. */
  3305. char res_init ();
  3306. /* The GNU C library defines this for functions which it implements
  3307. to always fail with ENOSYS. Some functions are actually named
  3308. something starting with __ and the normal name is an alias. */
  3309. #if defined (__stub_res_init) || defined (__stub___res_init)
  3310. choke me
  3311. #else
  3312. char (*f) () = res_init;
  3313. #endif
  3314. #ifdef __cplusplus
  3315. }
  3316. #endif
  3317. int
  3318. main ()
  3319. {
  3320. return f != res_init;
  3321. ;
  3322. return 0;
  3323. }
  3324. _ACEOF
  3325. rm -f conftest.$ac_objext conftest$ac_exeext
  3326. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3327. (eval $ac_link) 2>conftest.er1
  3328. ac_status=$?
  3329. grep -v '^ *+' conftest.er1 >conftest.err
  3330. rm -f conftest.er1
  3331. cat conftest.err >&5
  3332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3333. (exit $ac_status); } &&
  3334. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3335. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3336. (eval $ac_try) 2>&5
  3337. ac_status=$?
  3338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3339. (exit $ac_status); }; } &&
  3340. { ac_try='test -s conftest$ac_exeext'
  3341. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3342. (eval $ac_try) 2>&5
  3343. ac_status=$?
  3344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3345. (exit $ac_status); }; }; then
  3346. ac_cv_func_res_init=yes
  3347. else
  3348. echo "$as_me: failed program was:" >&5
  3349. sed 's/^/| /' conftest.$ac_ext >&5
  3350. ac_cv_func_res_init=no
  3351. fi
  3352. rm -f conftest.err conftest.$ac_objext \
  3353. conftest$ac_exeext conftest.$ac_ext
  3354. fi
  3355. echo "$as_me:$LINENO: result: $ac_cv_func_res_init" >&5
  3356. echo "${ECHO_T}$ac_cv_func_res_init" >&6
  3357. if test $ac_cv_func_res_init = yes; then
  3358. :
  3359. else
  3360. echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
  3361. echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
  3362. if test "${ac_cv_lib_resolv_res_init+set}" = set; then
  3363. echo $ECHO_N "(cached) $ECHO_C" >&6
  3364. else
  3365. ac_check_lib_save_LIBS=$LIBS
  3366. LIBS="-lresolv $LIBS"
  3367. cat >conftest.$ac_ext <<_ACEOF
  3368. /* confdefs.h. */
  3369. _ACEOF
  3370. cat confdefs.h >>conftest.$ac_ext
  3371. cat >>conftest.$ac_ext <<_ACEOF
  3372. /* end confdefs.h. */
  3373. /* Override any gcc2 internal prototype to avoid an error. */
  3374. #ifdef __cplusplus
  3375. extern "C"
  3376. #endif
  3377. /* We use char because int might match the return type of a gcc2
  3378. builtin and then its argument prototype would still apply. */
  3379. char res_init ();
  3380. int
  3381. main ()
  3382. {
  3383. res_init ();
  3384. ;
  3385. return 0;
  3386. }
  3387. _ACEOF
  3388. rm -f conftest.$ac_objext conftest$ac_exeext
  3389. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3390. (eval $ac_link) 2>conftest.er1
  3391. ac_status=$?
  3392. grep -v '^ *+' conftest.er1 >conftest.err
  3393. rm -f conftest.er1
  3394. cat conftest.err >&5
  3395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3396. (exit $ac_status); } &&
  3397. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3398. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3399. (eval $ac_try) 2>&5
  3400. ac_status=$?
  3401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3402. (exit $ac_status); }; } &&
  3403. { ac_try='test -s conftest$ac_exeext'
  3404. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3405. (eval $ac_try) 2>&5
  3406. ac_status=$?
  3407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3408. (exit $ac_status); }; }; then
  3409. ac_cv_lib_resolv_res_init=yes
  3410. else
  3411. echo "$as_me: failed program was:" >&5
  3412. sed 's/^/| /' conftest.$ac_ext >&5
  3413. ac_cv_lib_resolv_res_init=no
  3414. fi
  3415. rm -f conftest.err conftest.$ac_objext \
  3416. conftest$ac_exeext conftest.$ac_ext
  3417. LIBS=$ac_check_lib_save_LIBS
  3418. fi
  3419. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
  3420. echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
  3421. if test $ac_cv_lib_resolv_res_init = yes; then
  3422. RESLIB="-lresolv"
  3423. else
  3424. echo "$as_me:$LINENO: checking for res_init in -lbind" >&5
  3425. echo $ECHO_N "checking for res_init in -lbind... $ECHO_C" >&6
  3426. if test "${ac_cv_lib_bind_res_init+set}" = set; then
  3427. echo $ECHO_N "(cached) $ECHO_C" >&6
  3428. else
  3429. ac_check_lib_save_LIBS=$LIBS
  3430. LIBS="-lbind $LIBS"
  3431. cat >conftest.$ac_ext <<_ACEOF
  3432. /* confdefs.h. */
  3433. _ACEOF
  3434. cat confdefs.h >>conftest.$ac_ext
  3435. cat >>conftest.$ac_ext <<_ACEOF
  3436. /* end confdefs.h. */
  3437. /* Override any gcc2 internal prototype to avoid an error. */
  3438. #ifdef __cplusplus
  3439. extern "C"
  3440. #endif
  3441. /* We use char because int might match the return type of a gcc2
  3442. builtin and then its argument prototype would still apply. */
  3443. char res_init ();
  3444. int
  3445. main ()
  3446. {
  3447. res_init ();
  3448. ;
  3449. return 0;
  3450. }
  3451. _ACEOF
  3452. rm -f conftest.$ac_objext conftest$ac_exeext
  3453. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3454. (eval $ac_link) 2>conftest.er1
  3455. ac_status=$?
  3456. grep -v '^ *+' conftest.er1 >conftest.err
  3457. rm -f conftest.er1
  3458. cat conftest.err >&5
  3459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3460. (exit $ac_status); } &&
  3461. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3462. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3463. (eval $ac_try) 2>&5
  3464. ac_status=$?
  3465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3466. (exit $ac_status); }; } &&
  3467. { ac_try='test -s conftest$ac_exeext'
  3468. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3469. (eval $ac_try) 2>&5
  3470. ac_status=$?
  3471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3472. (exit $ac_status); }; }; then
  3473. ac_cv_lib_bind_res_init=yes
  3474. else
  3475. echo "$as_me: failed program was:" >&5
  3476. sed 's/^/| /' conftest.$ac_ext >&5
  3477. ac_cv_lib_bind_res_init=no
  3478. fi
  3479. rm -f conftest.err conftest.$ac_objext \
  3480. conftest$ac_exeext conftest.$ac_ext
  3481. LIBS=$ac_check_lib_save_LIBS
  3482. fi
  3483. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_init" >&5
  3484. echo "${ECHO_T}$ac_cv_lib_bind_res_init" >&6
  3485. if test $ac_cv_lib_bind_res_init = yes; then
  3486. RESLIB="-lbind"
  3487. else
  3488. dns_reslib_avail="false";
  3489. fi
  3490. fi
  3491. fi
  3492. if test "${dns_reslib_avail}" = false; then
  3493. dns_reslib_avail="true"
  3494. echo "$as_me:$LINENO: checking for __res_init" >&5
  3495. echo $ECHO_N "checking for __res_init... $ECHO_C" >&6
  3496. if test "${ac_cv_func___res_init+set}" = set; then
  3497. echo $ECHO_N "(cached) $ECHO_C" >&6
  3498. else
  3499. cat >conftest.$ac_ext <<_ACEOF
  3500. /* confdefs.h. */
  3501. _ACEOF
  3502. cat confdefs.h >>conftest.$ac_ext
  3503. cat >>conftest.$ac_ext <<_ACEOF
  3504. /* end confdefs.h. */
  3505. /* Define __res_init to an innocuous variant, in case <limits.h> declares __res_init.
  3506. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3507. #define __res_init innocuous___res_init
  3508. /* System header to define __stub macros and hopefully few prototypes,
  3509. which can conflict with char __res_init (); below.
  3510. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3511. <limits.h> exists even on freestanding compilers. */
  3512. #ifdef __STDC__
  3513. # include <limits.h>
  3514. #else
  3515. # include <assert.h>
  3516. #endif
  3517. #undef __res_init
  3518. /* Override any gcc2 internal prototype to avoid an error. */
  3519. #ifdef __cplusplus
  3520. extern "C"
  3521. {
  3522. #endif
  3523. /* We use char because int might match the return type of a gcc2
  3524. builtin and then its argument prototype would still apply. */
  3525. char __res_init ();
  3526. /* The GNU C library defines this for functions which it implements
  3527. to always fail with ENOSYS. Some functions are actually named
  3528. something starting with __ and the normal name is an alias. */
  3529. #if defined (__stub___res_init) || defined (__stub_____res_init)
  3530. choke me
  3531. #else
  3532. char (*f) () = __res_init;
  3533. #endif
  3534. #ifdef __cplusplus
  3535. }
  3536. #endif
  3537. int
  3538. main ()
  3539. {
  3540. return f != __res_init;
  3541. ;
  3542. return 0;
  3543. }
  3544. _ACEOF
  3545. rm -f conftest.$ac_objext conftest$ac_exeext
  3546. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3547. (eval $ac_link) 2>conftest.er1
  3548. ac_status=$?
  3549. grep -v '^ *+' conftest.er1 >conftest.err
  3550. rm -f conftest.er1
  3551. cat conftest.err >&5
  3552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3553. (exit $ac_status); } &&
  3554. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3555. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3556. (eval $ac_try) 2>&5
  3557. ac_status=$?
  3558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3559. (exit $ac_status); }; } &&
  3560. { ac_try='test -s conftest$ac_exeext'
  3561. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3562. (eval $ac_try) 2>&5
  3563. ac_status=$?
  3564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3565. (exit $ac_status); }; }; then
  3566. ac_cv_func___res_init=yes
  3567. else
  3568. echo "$as_me: failed program was:" >&5
  3569. sed 's/^/| /' conftest.$ac_ext >&5
  3570. ac_cv_func___res_init=no
  3571. fi
  3572. rm -f conftest.err conftest.$ac_objext \
  3573. conftest$ac_exeext conftest.$ac_ext
  3574. fi
  3575. echo "$as_me:$LINENO: result: $ac_cv_func___res_init" >&5
  3576. echo "${ECHO_T}$ac_cv_func___res_init" >&6
  3577. if test $ac_cv_func___res_init = yes; then
  3578. :
  3579. else
  3580. echo "$as_me:$LINENO: checking for __res_init in -lresolv" >&5
  3581. echo $ECHO_N "checking for __res_init in -lresolv... $ECHO_C" >&6
  3582. if test "${ac_cv_lib_resolv___res_init+set}" = set; then
  3583. echo $ECHO_N "(cached) $ECHO_C" >&6
  3584. else
  3585. ac_check_lib_save_LIBS=$LIBS
  3586. LIBS="-lresolv $LIBS"
  3587. cat >conftest.$ac_ext <<_ACEOF
  3588. /* confdefs.h. */
  3589. _ACEOF
  3590. cat confdefs.h >>conftest.$ac_ext
  3591. cat >>conftest.$ac_ext <<_ACEOF
  3592. /* end confdefs.h. */
  3593. /* Override any gcc2 internal prototype to avoid an error. */
  3594. #ifdef __cplusplus
  3595. extern "C"
  3596. #endif
  3597. /* We use char because int might match the return type of a gcc2
  3598. builtin and then its argument prototype would still apply. */
  3599. char __res_init ();
  3600. int
  3601. main ()
  3602. {
  3603. __res_init ();
  3604. ;
  3605. return 0;
  3606. }
  3607. _ACEOF
  3608. rm -f conftest.$ac_objext conftest$ac_exeext
  3609. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3610. (eval $ac_link) 2>conftest.er1
  3611. ac_status=$?
  3612. grep -v '^ *+' conftest.er1 >conftest.err
  3613. rm -f conftest.er1
  3614. cat conftest.err >&5
  3615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3616. (exit $ac_status); } &&
  3617. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3618. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3619. (eval $ac_try) 2>&5
  3620. ac_status=$?
  3621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3622. (exit $ac_status); }; } &&
  3623. { ac_try='test -s conftest$ac_exeext'
  3624. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3625. (eval $ac_try) 2>&5
  3626. ac_status=$?
  3627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3628. (exit $ac_status); }; }; then
  3629. ac_cv_lib_resolv___res_init=yes
  3630. else
  3631. echo "$as_me: failed program was:" >&5
  3632. sed 's/^/| /' conftest.$ac_ext >&5
  3633. ac_cv_lib_resolv___res_init=no
  3634. fi
  3635. rm -f conftest.err conftest.$ac_objext \
  3636. conftest$ac_exeext conftest.$ac_ext
  3637. LIBS=$ac_check_lib_save_LIBS
  3638. fi
  3639. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_init" >&5
  3640. echo "${ECHO_T}$ac_cv_lib_resolv___res_init" >&6
  3641. if test $ac_cv_lib_resolv___res_init = yes; then
  3642. RESLIB="-lresolv"
  3643. else
  3644. echo "$as_me:$LINENO: checking for __res_init in -lbind" >&5
  3645. echo $ECHO_N "checking for __res_init in -lbind... $ECHO_C" >&6
  3646. if test "${ac_cv_lib_bind___res_init+set}" = set; then
  3647. echo $ECHO_N "(cached) $ECHO_C" >&6
  3648. else
  3649. ac_check_lib_save_LIBS=$LIBS
  3650. LIBS="-lbind $LIBS"
  3651. cat >conftest.$ac_ext <<_ACEOF
  3652. /* confdefs.h. */
  3653. _ACEOF
  3654. cat confdefs.h >>conftest.$ac_ext
  3655. cat >>conftest.$ac_ext <<_ACEOF
  3656. /* end confdefs.h. */
  3657. /* Override any gcc2 internal prototype to avoid an error. */
  3658. #ifdef __cplusplus
  3659. extern "C"
  3660. #endif
  3661. /* We use char because int might match the return type of a gcc2
  3662. builtin and then its argument prototype would still apply. */
  3663. char __res_init ();
  3664. int
  3665. main ()
  3666. {
  3667. __res_init ();
  3668. ;
  3669. return 0;
  3670. }
  3671. _ACEOF
  3672. rm -f conftest.$ac_objext conftest$ac_exeext
  3673. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3674. (eval $ac_link) 2>conftest.er1
  3675. ac_status=$?
  3676. grep -v '^ *+' conftest.er1 >conftest.err
  3677. rm -f conftest.er1
  3678. cat conftest.err >&5
  3679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3680. (exit $ac_status); } &&
  3681. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3682. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3683. (eval $ac_try) 2>&5
  3684. ac_status=$?
  3685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3686. (exit $ac_status); }; } &&
  3687. { ac_try='test -s conftest$ac_exeext'
  3688. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3689. (eval $ac_try) 2>&5
  3690. ac_status=$?
  3691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3692. (exit $ac_status); }; }; then
  3693. ac_cv_lib_bind___res_init=yes
  3694. else
  3695. echo "$as_me: failed program was:" >&5
  3696. sed 's/^/| /' conftest.$ac_ext >&5
  3697. ac_cv_lib_bind___res_init=no
  3698. fi
  3699. rm -f conftest.err conftest.$ac_objext \
  3700. conftest$ac_exeext conftest.$ac_ext
  3701. LIBS=$ac_check_lib_save_LIBS
  3702. fi
  3703. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_init" >&5
  3704. echo "${ECHO_T}$ac_cv_lib_bind___res_init" >&6
  3705. if test $ac_cv_lib_bind___res_init = yes; then
  3706. RESLIB="-lbind"
  3707. else
  3708. dns_reslib_avail="false";
  3709. fi
  3710. fi
  3711. fi
  3712. fi
  3713. echo "$as_me:$LINENO: checking for res_mkquery" >&5
  3714. echo $ECHO_N "checking for res_mkquery... $ECHO_C" >&6
  3715. if test "${ac_cv_func_res_mkquery+set}" = set; then
  3716. echo $ECHO_N "(cached) $ECHO_C" >&6
  3717. else
  3718. cat >conftest.$ac_ext <<_ACEOF
  3719. /* confdefs.h. */
  3720. _ACEOF
  3721. cat confdefs.h >>conftest.$ac_ext
  3722. cat >>conftest.$ac_ext <<_ACEOF
  3723. /* end confdefs.h. */
  3724. /* Define res_mkquery to an innocuous variant, in case <limits.h> declares res_mkquery.
  3725. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3726. #define res_mkquery innocuous_res_mkquery
  3727. /* System header to define __stub macros and hopefully few prototypes,
  3728. which can conflict with char res_mkquery (); below.
  3729. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3730. <limits.h> exists even on freestanding compilers. */
  3731. #ifdef __STDC__
  3732. # include <limits.h>
  3733. #else
  3734. # include <assert.h>
  3735. #endif
  3736. #undef res_mkquery
  3737. /* Override any gcc2 internal prototype to avoid an error. */
  3738. #ifdef __cplusplus
  3739. extern "C"
  3740. {
  3741. #endif
  3742. /* We use char because int might match the return type of a gcc2
  3743. builtin and then its argument prototype would still apply. */
  3744. char res_mkquery ();
  3745. /* The GNU C library defines this for functions which it implements
  3746. to always fail with ENOSYS. Some functions are actually named
  3747. something starting with __ and the normal name is an alias. */
  3748. #if defined (__stub_res_mkquery) || defined (__stub___res_mkquery)
  3749. choke me
  3750. #else
  3751. char (*f) () = res_mkquery;
  3752. #endif
  3753. #ifdef __cplusplus
  3754. }
  3755. #endif
  3756. int
  3757. main ()
  3758. {
  3759. return f != res_mkquery;
  3760. ;
  3761. return 0;
  3762. }
  3763. _ACEOF
  3764. rm -f conftest.$ac_objext conftest$ac_exeext
  3765. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3766. (eval $ac_link) 2>conftest.er1
  3767. ac_status=$?
  3768. grep -v '^ *+' conftest.er1 >conftest.err
  3769. rm -f conftest.er1
  3770. cat conftest.err >&5
  3771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3772. (exit $ac_status); } &&
  3773. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3774. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3775. (eval $ac_try) 2>&5
  3776. ac_status=$?
  3777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3778. (exit $ac_status); }; } &&
  3779. { ac_try='test -s conftest$ac_exeext'
  3780. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3781. (eval $ac_try) 2>&5
  3782. ac_status=$?
  3783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3784. (exit $ac_status); }; }; then
  3785. ac_cv_func_res_mkquery=yes
  3786. else
  3787. echo "$as_me: failed program was:" >&5
  3788. sed 's/^/| /' conftest.$ac_ext >&5
  3789. ac_cv_func_res_mkquery=no
  3790. fi
  3791. rm -f conftest.err conftest.$ac_objext \
  3792. conftest$ac_exeext conftest.$ac_ext
  3793. fi
  3794. echo "$as_me:$LINENO: result: $ac_cv_func_res_mkquery" >&5
  3795. echo "${ECHO_T}$ac_cv_func_res_mkquery" >&6
  3796. if test $ac_cv_func_res_mkquery = yes; then
  3797. :
  3798. else
  3799. echo "$as_me:$LINENO: checking for res_mkquery in -lresolv" >&5
  3800. echo $ECHO_N "checking for res_mkquery in -lresolv... $ECHO_C" >&6
  3801. if test "${ac_cv_lib_resolv_res_mkquery+set}" = set; then
  3802. echo $ECHO_N "(cached) $ECHO_C" >&6
  3803. else
  3804. ac_check_lib_save_LIBS=$LIBS
  3805. LIBS="-lresolv $LIBS"
  3806. cat >conftest.$ac_ext <<_ACEOF
  3807. /* confdefs.h. */
  3808. _ACEOF
  3809. cat confdefs.h >>conftest.$ac_ext
  3810. cat >>conftest.$ac_ext <<_ACEOF
  3811. /* end confdefs.h. */
  3812. /* Override any gcc2 internal prototype to avoid an error. */
  3813. #ifdef __cplusplus
  3814. extern "C"
  3815. #endif
  3816. /* We use char because int might match the return type of a gcc2
  3817. builtin and then its argument prototype would still apply. */
  3818. char res_mkquery ();
  3819. int
  3820. main ()
  3821. {
  3822. res_mkquery ();
  3823. ;
  3824. return 0;
  3825. }
  3826. _ACEOF
  3827. rm -f conftest.$ac_objext conftest$ac_exeext
  3828. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3829. (eval $ac_link) 2>conftest.er1
  3830. ac_status=$?
  3831. grep -v '^ *+' conftest.er1 >conftest.err
  3832. rm -f conftest.er1
  3833. cat conftest.err >&5
  3834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3835. (exit $ac_status); } &&
  3836. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3837. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3838. (eval $ac_try) 2>&5
  3839. ac_status=$?
  3840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3841. (exit $ac_status); }; } &&
  3842. { ac_try='test -s conftest$ac_exeext'
  3843. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3844. (eval $ac_try) 2>&5
  3845. ac_status=$?
  3846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3847. (exit $ac_status); }; }; then
  3848. ac_cv_lib_resolv_res_mkquery=yes
  3849. else
  3850. echo "$as_me: failed program was:" >&5
  3851. sed 's/^/| /' conftest.$ac_ext >&5
  3852. ac_cv_lib_resolv_res_mkquery=no
  3853. fi
  3854. rm -f conftest.err conftest.$ac_objext \
  3855. conftest$ac_exeext conftest.$ac_ext
  3856. LIBS=$ac_check_lib_save_LIBS
  3857. fi
  3858. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_mkquery" >&5
  3859. echo "${ECHO_T}$ac_cv_lib_resolv_res_mkquery" >&6
  3860. if test $ac_cv_lib_resolv_res_mkquery = yes; then
  3861. if test "x${RESLIB}" != "x-lresolv"; then
  3862. RESLIB="${RESLIB} -lresolv"
  3863. fi
  3864. else
  3865. echo "$as_me:$LINENO: checking for res_mkquery in -lbind" >&5
  3866. echo $ECHO_N "checking for res_mkquery in -lbind... $ECHO_C" >&6
  3867. if test "${ac_cv_lib_bind_res_mkquery+set}" = set; then
  3868. echo $ECHO_N "(cached) $ECHO_C" >&6
  3869. else
  3870. ac_check_lib_save_LIBS=$LIBS
  3871. LIBS="-lbind $LIBS"
  3872. cat >conftest.$ac_ext <<_ACEOF
  3873. /* confdefs.h. */
  3874. _ACEOF
  3875. cat confdefs.h >>conftest.$ac_ext
  3876. cat >>conftest.$ac_ext <<_ACEOF
  3877. /* end confdefs.h. */
  3878. /* Override any gcc2 internal prototype to avoid an error. */
  3879. #ifdef __cplusplus
  3880. extern "C"
  3881. #endif
  3882. /* We use char because int might match the return type of a gcc2
  3883. builtin and then its argument prototype would still apply. */
  3884. char res_mkquery ();
  3885. int
  3886. main ()
  3887. {
  3888. res_mkquery ();
  3889. ;
  3890. return 0;
  3891. }
  3892. _ACEOF
  3893. rm -f conftest.$ac_objext conftest$ac_exeext
  3894. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3895. (eval $ac_link) 2>conftest.er1
  3896. ac_status=$?
  3897. grep -v '^ *+' conftest.er1 >conftest.err
  3898. rm -f conftest.er1
  3899. cat conftest.err >&5
  3900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3901. (exit $ac_status); } &&
  3902. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3903. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3904. (eval $ac_try) 2>&5
  3905. ac_status=$?
  3906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3907. (exit $ac_status); }; } &&
  3908. { ac_try='test -s conftest$ac_exeext'
  3909. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3910. (eval $ac_try) 2>&5
  3911. ac_status=$?
  3912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3913. (exit $ac_status); }; }; then
  3914. ac_cv_lib_bind_res_mkquery=yes
  3915. else
  3916. echo "$as_me: failed program was:" >&5
  3917. sed 's/^/| /' conftest.$ac_ext >&5
  3918. ac_cv_lib_bind_res_mkquery=no
  3919. fi
  3920. rm -f conftest.err conftest.$ac_objext \
  3921. conftest$ac_exeext conftest.$ac_ext
  3922. LIBS=$ac_check_lib_save_LIBS
  3923. fi
  3924. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_mkquery" >&5
  3925. echo "${ECHO_T}$ac_cv_lib_bind_res_mkquery" >&6
  3926. if test $ac_cv_lib_bind_res_mkquery = yes; then
  3927. if test "x${RESLIB}" != "x-lbind"; then
  3928. RESLIB="${RESLIB} -lbind"
  3929. fi
  3930. else
  3931. dns_reslib_avail="false";
  3932. fi
  3933. fi
  3934. fi
  3935. if test "${dns_reslib_avail}" = false; then
  3936. dns_reslib_avail="true"
  3937. echo "$as_me:$LINENO: checking for __res_mkquery" >&5
  3938. echo $ECHO_N "checking for __res_mkquery... $ECHO_C" >&6
  3939. if test "${ac_cv_func___res_mkquery+set}" = set; then
  3940. echo $ECHO_N "(cached) $ECHO_C" >&6
  3941. else
  3942. cat >conftest.$ac_ext <<_ACEOF
  3943. /* confdefs.h. */
  3944. _ACEOF
  3945. cat confdefs.h >>conftest.$ac_ext
  3946. cat >>conftest.$ac_ext <<_ACEOF
  3947. /* end confdefs.h. */
  3948. /* Define __res_mkquery to an innocuous variant, in case <limits.h> declares __res_mkquery.
  3949. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3950. #define __res_mkquery innocuous___res_mkquery
  3951. /* System header to define __stub macros and hopefully few prototypes,
  3952. which can conflict with char __res_mkquery (); below.
  3953. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3954. <limits.h> exists even on freestanding compilers. */
  3955. #ifdef __STDC__
  3956. # include <limits.h>
  3957. #else
  3958. # include <assert.h>
  3959. #endif
  3960. #undef __res_mkquery
  3961. /* Override any gcc2 internal prototype to avoid an error. */
  3962. #ifdef __cplusplus
  3963. extern "C"
  3964. {
  3965. #endif
  3966. /* We use char because int might match the return type of a gcc2
  3967. builtin and then its argument prototype would still apply. */
  3968. char __res_mkquery ();
  3969. /* The GNU C library defines this for functions which it implements
  3970. to always fail with ENOSYS. Some functions are actually named
  3971. something starting with __ and the normal name is an alias. */
  3972. #if defined (__stub___res_mkquery) || defined (__stub_____res_mkquery)
  3973. choke me
  3974. #else
  3975. char (*f) () = __res_mkquery;
  3976. #endif
  3977. #ifdef __cplusplus
  3978. }
  3979. #endif
  3980. int
  3981. main ()
  3982. {
  3983. return f != __res_mkquery;
  3984. ;
  3985. return 0;
  3986. }
  3987. _ACEOF
  3988. rm -f conftest.$ac_objext conftest$ac_exeext
  3989. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3990. (eval $ac_link) 2>conftest.er1
  3991. ac_status=$?
  3992. grep -v '^ *+' conftest.er1 >conftest.err
  3993. rm -f conftest.er1
  3994. cat conftest.err >&5
  3995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3996. (exit $ac_status); } &&
  3997. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3998. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3999. (eval $ac_try) 2>&5
  4000. ac_status=$?
  4001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4002. (exit $ac_status); }; } &&
  4003. { ac_try='test -s conftest$ac_exeext'
  4004. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4005. (eval $ac_try) 2>&5
  4006. ac_status=$?
  4007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4008. (exit $ac_status); }; }; then
  4009. ac_cv_func___res_mkquery=yes
  4010. else
  4011. echo "$as_me: failed program was:" >&5
  4012. sed 's/^/| /' conftest.$ac_ext >&5
  4013. ac_cv_func___res_mkquery=no
  4014. fi
  4015. rm -f conftest.err conftest.$ac_objext \
  4016. conftest$ac_exeext conftest.$ac_ext
  4017. fi
  4018. echo "$as_me:$LINENO: result: $ac_cv_func___res_mkquery" >&5
  4019. echo "${ECHO_T}$ac_cv_func___res_mkquery" >&6
  4020. if test $ac_cv_func___res_mkquery = yes; then
  4021. :
  4022. else
  4023. echo "$as_me:$LINENO: checking for __res_mkquery in -lresolv" >&5
  4024. echo $ECHO_N "checking for __res_mkquery in -lresolv... $ECHO_C" >&6
  4025. if test "${ac_cv_lib_resolv___res_mkquery+set}" = set; then
  4026. echo $ECHO_N "(cached) $ECHO_C" >&6
  4027. else
  4028. ac_check_lib_save_LIBS=$LIBS
  4029. LIBS="-lresolv $LIBS"
  4030. cat >conftest.$ac_ext <<_ACEOF
  4031. /* confdefs.h. */
  4032. _ACEOF
  4033. cat confdefs.h >>conftest.$ac_ext
  4034. cat >>conftest.$ac_ext <<_ACEOF
  4035. /* end confdefs.h. */
  4036. /* Override any gcc2 internal prototype to avoid an error. */
  4037. #ifdef __cplusplus
  4038. extern "C"
  4039. #endif
  4040. /* We use char because int might match the return type of a gcc2
  4041. builtin and then its argument prototype would still apply. */
  4042. char __res_mkquery ();
  4043. int
  4044. main ()
  4045. {
  4046. __res_mkquery ();
  4047. ;
  4048. return 0;
  4049. }
  4050. _ACEOF
  4051. rm -f conftest.$ac_objext conftest$ac_exeext
  4052. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4053. (eval $ac_link) 2>conftest.er1
  4054. ac_status=$?
  4055. grep -v '^ *+' conftest.er1 >conftest.err
  4056. rm -f conftest.er1
  4057. cat conftest.err >&5
  4058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4059. (exit $ac_status); } &&
  4060. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4061. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4062. (eval $ac_try) 2>&5
  4063. ac_status=$?
  4064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4065. (exit $ac_status); }; } &&
  4066. { ac_try='test -s conftest$ac_exeext'
  4067. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4068. (eval $ac_try) 2>&5
  4069. ac_status=$?
  4070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4071. (exit $ac_status); }; }; then
  4072. ac_cv_lib_resolv___res_mkquery=yes
  4073. else
  4074. echo "$as_me: failed program was:" >&5
  4075. sed 's/^/| /' conftest.$ac_ext >&5
  4076. ac_cv_lib_resolv___res_mkquery=no
  4077. fi
  4078. rm -f conftest.err conftest.$ac_objext \
  4079. conftest$ac_exeext conftest.$ac_ext
  4080. LIBS=$ac_check_lib_save_LIBS
  4081. fi
  4082. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_mkquery" >&5
  4083. echo "${ECHO_T}$ac_cv_lib_resolv___res_mkquery" >&6
  4084. if test $ac_cv_lib_resolv___res_mkquery = yes; then
  4085. if test "x${RESLIB}" != "x-lresolv"; then
  4086. RESLIB="${RESLIB} -lresolv"
  4087. fi
  4088. else
  4089. echo "$as_me:$LINENO: checking for __res_mkquery in -lbind" >&5
  4090. echo $ECHO_N "checking for __res_mkquery in -lbind... $ECHO_C" >&6
  4091. if test "${ac_cv_lib_bind___res_mkquery+set}" = set; then
  4092. echo $ECHO_N "(cached) $ECHO_C" >&6
  4093. else
  4094. ac_check_lib_save_LIBS=$LIBS
  4095. LIBS="-lbind $LIBS"
  4096. cat >conftest.$ac_ext <<_ACEOF
  4097. /* confdefs.h. */
  4098. _ACEOF
  4099. cat confdefs.h >>conftest.$ac_ext
  4100. cat >>conftest.$ac_ext <<_ACEOF
  4101. /* end confdefs.h. */
  4102. /* Override any gcc2 internal prototype to avoid an error. */
  4103. #ifdef __cplusplus
  4104. extern "C"
  4105. #endif
  4106. /* We use char because int might match the return type of a gcc2
  4107. builtin and then its argument prototype would still apply. */
  4108. char __res_mkquery ();
  4109. int
  4110. main ()
  4111. {
  4112. __res_mkquery ();
  4113. ;
  4114. return 0;
  4115. }
  4116. _ACEOF
  4117. rm -f conftest.$ac_objext conftest$ac_exeext
  4118. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4119. (eval $ac_link) 2>conftest.er1
  4120. ac_status=$?
  4121. grep -v '^ *+' conftest.er1 >conftest.err
  4122. rm -f conftest.er1
  4123. cat conftest.err >&5
  4124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4125. (exit $ac_status); } &&
  4126. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4127. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4128. (eval $ac_try) 2>&5
  4129. ac_status=$?
  4130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4131. (exit $ac_status); }; } &&
  4132. { ac_try='test -s conftest$ac_exeext'
  4133. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4134. (eval $ac_try) 2>&5
  4135. ac_status=$?
  4136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4137. (exit $ac_status); }; }; then
  4138. ac_cv_lib_bind___res_mkquery=yes
  4139. else
  4140. echo "$as_me: failed program was:" >&5
  4141. sed 's/^/| /' conftest.$ac_ext >&5
  4142. ac_cv_lib_bind___res_mkquery=no
  4143. fi
  4144. rm -f conftest.err conftest.$ac_objext \
  4145. conftest$ac_exeext conftest.$ac_ext
  4146. LIBS=$ac_check_lib_save_LIBS
  4147. fi
  4148. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_mkquery" >&5
  4149. echo "${ECHO_T}$ac_cv_lib_bind___res_mkquery" >&6
  4150. if test $ac_cv_lib_bind___res_mkquery = yes; then
  4151. if test "x${RESLIB}" != "x-lbind"; then
  4152. RESLIB="${RESLIB} -lbind"
  4153. fi
  4154. else
  4155. dns_reslib_avail="false";
  4156. fi
  4157. fi
  4158. fi
  4159. fi
  4160. if test "${dns_reslib_avail}" = false; then
  4161. if test "$ac_cv_cygwin" = "yes"; then
  4162. echo "$as_me:$LINENO: checking for /usr/local/bind/lib/libbind.a" >&5
  4163. echo $ECHO_N "checking for /usr/local/bind/lib/libbind.a... $ECHO_C" >&6
  4164. if test -r /usr/local/bind/lib/libbind.a; then
  4165. echo "$as_me:$LINENO: result: yes" >&5
  4166. echo "${ECHO_T}yes" >&6
  4167. RESLIB="${RESLIB} -L/usr/local/bind/lib -lbind"
  4168. RESINCLUDE="-I/usr/local/bind/include"
  4169. dns_reslib_avail="true"
  4170. else
  4171. echo "$as_me:$LINENO: result: no" >&5
  4172. echo "${ECHO_T}no" >&6
  4173. fi
  4174. fi
  4175. fi
  4176. if test "${dns_reslib_avail}" = false; then
  4177. cat >&2 <<EOF
  4178. configure: warning:
  4179. Your system provides no functional resolver library.
  4180. One is required for buld.
  4181. EOF
  4182. exit 1
  4183. fi
  4184. # Check for IPv6 support
  4185. #EGG_IPV6_SUPPORTED
  4186. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  4187. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  4188. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  4189. if test "${enable_ipv6+set}" = set; then
  4190. enableval="$enable_ipv6"
  4191. ac_cv_dipv6="yes"
  4192. echo "$as_me:$LINENO: result: yes" >&5
  4193. echo "${ECHO_T}yes" >&6
  4194. else
  4195. ac_cv_dipv6="no"
  4196. if test "$egg_cv_ipv6_supported" = "no"; then
  4197. ac_cv_dipv6="no"
  4198. fi
  4199. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  4200. echo "${ECHO_T}$ac_cv_dipv6" >&6
  4201. fi;
  4202. if ! test "$EGG_CYGWIN" = "yes"; then
  4203. if test "$ac_cv_dipv6" = "no"; then
  4204. cat >>confdefs.h <<\_ACEOF
  4205. #define USE_IPV6 1
  4206. _ACEOF
  4207. fi
  4208. fi
  4209. echo "$as_me:$LINENO: checking for socklen_t" >&5
  4210. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  4211. if test "${egg_cv_socklen_t+set}" = set; then
  4212. echo $ECHO_N "(cached) $ECHO_C" >&6
  4213. else
  4214. if test "$cross_compiling" = yes; then
  4215. egg_cv_socklen_t=no
  4216. else
  4217. cat >conftest.$ac_ext <<_ACEOF
  4218. /* confdefs.h. */
  4219. _ACEOF
  4220. cat confdefs.h >>conftest.$ac_ext
  4221. cat >>conftest.$ac_ext <<_ACEOF
  4222. /* end confdefs.h. */
  4223. #include <unistd.h>
  4224. #include <sys/types.h>
  4225. #include <sys/socket.h>
  4226. #include <netinet/in.h>
  4227. #include <arpa/inet.h>
  4228. int main()
  4229. {
  4230. socklen_t test = sizeof(int);
  4231. return 0;
  4232. }
  4233. _ACEOF
  4234. rm -f conftest$ac_exeext
  4235. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4236. (eval $ac_link) 2>&5
  4237. ac_status=$?
  4238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4239. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4240. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4241. (eval $ac_try) 2>&5
  4242. ac_status=$?
  4243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4244. (exit $ac_status); }; }; then
  4245. egg_cv_socklen_t=yes
  4246. else
  4247. echo "$as_me: program exited with status $ac_status" >&5
  4248. echo "$as_me: failed program was:" >&5
  4249. sed 's/^/| /' conftest.$ac_ext >&5
  4250. ( exit $ac_status )
  4251. egg_cv_socklen_t=no
  4252. fi
  4253. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4254. fi
  4255. fi
  4256. if test "$egg_cv_socklen_t" = "yes"; then
  4257. cat >>confdefs.h <<\_ACEOF
  4258. #define HAVE_SOCKLEN_T 1
  4259. _ACEOF
  4260. echo "$as_me:$LINENO: result: yes" >&5
  4261. echo "${ECHO_T}yes" >&6
  4262. else
  4263. echo "$as_me:$LINENO: result: no" >&5
  4264. echo "${ECHO_T}no" >&6
  4265. fi
  4266. #checkpoint
  4267. cat >confcache <<\_ACEOF
  4268. # This file is a shell script that caches the results of configure
  4269. # tests run on this system so they can be shared between configure
  4270. # scripts and configure runs, see configure's option --config-cache.
  4271. # It is not useful on other systems. If it contains results you don't
  4272. # want to keep, you may remove or edit it.
  4273. #
  4274. # config.status only pays attention to the cache file if you give it
  4275. # the --recheck option to rerun configure.
  4276. #
  4277. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4278. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4279. # following values.
  4280. _ACEOF
  4281. # The following way of writing the cache mishandles newlines in values,
  4282. # but we know of no workaround that is simple, portable, and efficient.
  4283. # So, don't put newlines in cache variables' values.
  4284. # Ultrix sh set writes to stderr and can't be redirected directly,
  4285. # and sets the high bit in the cache file unless we assign to the vars.
  4286. {
  4287. (set) 2>&1 |
  4288. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4289. *ac_space=\ *)
  4290. # `set' does not quote correctly, so add quotes (double-quote
  4291. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4292. sed -n \
  4293. "s/'/'\\\\''/g;
  4294. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4295. ;;
  4296. *)
  4297. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4298. sed -n \
  4299. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4300. ;;
  4301. esac;
  4302. } |
  4303. sed '
  4304. t clear
  4305. : clear
  4306. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4307. t end
  4308. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4309. : end' >>confcache
  4310. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4311. if test -w $cache_file; then
  4312. test "x$cache_file" != "x/dev/null"
  4313. cat confcache >$cache_file
  4314. else
  4315. echo "not updating unwritable cache $cache_file"
  4316. fi
  4317. fi
  4318. rm -f confcache
  4319. # Checks for system libraries
  4320. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4321. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  4322. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4323. echo $ECHO_N "(cached) $ECHO_C" >&6
  4324. else
  4325. ac_check_lib_save_LIBS=$LIBS
  4326. LIBS="-lsocket $LIBS"
  4327. cat >conftest.$ac_ext <<_ACEOF
  4328. /* confdefs.h. */
  4329. _ACEOF
  4330. cat confdefs.h >>conftest.$ac_ext
  4331. cat >>conftest.$ac_ext <<_ACEOF
  4332. /* end confdefs.h. */
  4333. /* Override any gcc2 internal prototype to avoid an error. */
  4334. #ifdef __cplusplus
  4335. extern "C"
  4336. #endif
  4337. /* We use char because int might match the return type of a gcc2
  4338. builtin and then its argument prototype would still apply. */
  4339. char socket ();
  4340. int
  4341. main ()
  4342. {
  4343. socket ();
  4344. ;
  4345. return 0;
  4346. }
  4347. _ACEOF
  4348. rm -f conftest.$ac_objext conftest$ac_exeext
  4349. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4350. (eval $ac_link) 2>conftest.er1
  4351. ac_status=$?
  4352. grep -v '^ *+' conftest.er1 >conftest.err
  4353. rm -f conftest.er1
  4354. cat conftest.err >&5
  4355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4356. (exit $ac_status); } &&
  4357. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4358. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4359. (eval $ac_try) 2>&5
  4360. ac_status=$?
  4361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4362. (exit $ac_status); }; } &&
  4363. { ac_try='test -s conftest$ac_exeext'
  4364. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4365. (eval $ac_try) 2>&5
  4366. ac_status=$?
  4367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4368. (exit $ac_status); }; }; then
  4369. ac_cv_lib_socket_socket=yes
  4370. else
  4371. echo "$as_me: failed program was:" >&5
  4372. sed 's/^/| /' conftest.$ac_ext >&5
  4373. ac_cv_lib_socket_socket=no
  4374. fi
  4375. rm -f conftest.err conftest.$ac_objext \
  4376. conftest$ac_exeext conftest.$ac_ext
  4377. LIBS=$ac_check_lib_save_LIBS
  4378. fi
  4379. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4380. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  4381. if test $ac_cv_lib_socket_socket = yes; then
  4382. cat >>confdefs.h <<_ACEOF
  4383. #define HAVE_LIBSOCKET 1
  4384. _ACEOF
  4385. LIBS="-lsocket $LIBS"
  4386. fi
  4387. # AC_CHECK_LIB(nsl, connect)
  4388. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  4389. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  4390. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  4391. echo $ECHO_N "(cached) $ECHO_C" >&6
  4392. else
  4393. ac_check_lib_save_LIBS=$LIBS
  4394. LIBS="-ldns $LIBS"
  4395. cat >conftest.$ac_ext <<_ACEOF
  4396. /* confdefs.h. */
  4397. _ACEOF
  4398. cat confdefs.h >>conftest.$ac_ext
  4399. cat >>conftest.$ac_ext <<_ACEOF
  4400. /* end confdefs.h. */
  4401. /* Override any gcc2 internal prototype to avoid an error. */
  4402. #ifdef __cplusplus
  4403. extern "C"
  4404. #endif
  4405. /* We use char because int might match the return type of a gcc2
  4406. builtin and then its argument prototype would still apply. */
  4407. char gethostbyname ();
  4408. int
  4409. main ()
  4410. {
  4411. gethostbyname ();
  4412. ;
  4413. return 0;
  4414. }
  4415. _ACEOF
  4416. rm -f conftest.$ac_objext conftest$ac_exeext
  4417. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4418. (eval $ac_link) 2>conftest.er1
  4419. ac_status=$?
  4420. grep -v '^ *+' conftest.er1 >conftest.err
  4421. rm -f conftest.er1
  4422. cat conftest.err >&5
  4423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4424. (exit $ac_status); } &&
  4425. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4426. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4427. (eval $ac_try) 2>&5
  4428. ac_status=$?
  4429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4430. (exit $ac_status); }; } &&
  4431. { ac_try='test -s conftest$ac_exeext'
  4432. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4433. (eval $ac_try) 2>&5
  4434. ac_status=$?
  4435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4436. (exit $ac_status); }; }; then
  4437. ac_cv_lib_dns_gethostbyname=yes
  4438. else
  4439. echo "$as_me: failed program was:" >&5
  4440. sed 's/^/| /' conftest.$ac_ext >&5
  4441. ac_cv_lib_dns_gethostbyname=no
  4442. fi
  4443. rm -f conftest.err conftest.$ac_objext \
  4444. conftest$ac_exeext conftest.$ac_ext
  4445. LIBS=$ac_check_lib_save_LIBS
  4446. fi
  4447. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  4448. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  4449. if test $ac_cv_lib_dns_gethostbyname = yes; then
  4450. cat >>confdefs.h <<_ACEOF
  4451. #define HAVE_LIBDNS 1
  4452. _ACEOF
  4453. LIBS="-ldns $LIBS"
  4454. fi
  4455. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4456. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
  4457. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lcrypto", SSL="", -lcrypto)
  4458. # This is needed for Tcl libraries compiled with thread support
  4459. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4460. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4461. # ac_cv_lib_pthread="-lpthread"], [dnl
  4462. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4463. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4464. # ac_cv_lib_pthread="-lpthread"], [dnl
  4465. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4466. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4467. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4468. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4469. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4470. # ac_cv_lib_pthread=""],
  4471. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4472. # Checks for header files
  4473. ac_header_dirent=no
  4474. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4475. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4476. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4477. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4478. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4479. echo $ECHO_N "(cached) $ECHO_C" >&6
  4480. else
  4481. cat >conftest.$ac_ext <<_ACEOF
  4482. /* confdefs.h. */
  4483. _ACEOF
  4484. cat confdefs.h >>conftest.$ac_ext
  4485. cat >>conftest.$ac_ext <<_ACEOF
  4486. /* end confdefs.h. */
  4487. #include <sys/types.h>
  4488. #include <$ac_hdr>
  4489. int
  4490. main ()
  4491. {
  4492. if ((DIR *) 0)
  4493. return 0;
  4494. ;
  4495. return 0;
  4496. }
  4497. _ACEOF
  4498. rm -f conftest.$ac_objext
  4499. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4500. (eval $ac_compile) 2>conftest.er1
  4501. ac_status=$?
  4502. grep -v '^ *+' conftest.er1 >conftest.err
  4503. rm -f conftest.er1
  4504. cat conftest.err >&5
  4505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4506. (exit $ac_status); } &&
  4507. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4508. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4509. (eval $ac_try) 2>&5
  4510. ac_status=$?
  4511. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4512. (exit $ac_status); }; } &&
  4513. { ac_try='test -s conftest.$ac_objext'
  4514. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4515. (eval $ac_try) 2>&5
  4516. ac_status=$?
  4517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4518. (exit $ac_status); }; }; then
  4519. eval "$as_ac_Header=yes"
  4520. else
  4521. echo "$as_me: failed program was:" >&5
  4522. sed 's/^/| /' conftest.$ac_ext >&5
  4523. eval "$as_ac_Header=no"
  4524. fi
  4525. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4526. fi
  4527. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4528. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4529. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4530. cat >>confdefs.h <<_ACEOF
  4531. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4532. _ACEOF
  4533. ac_header_dirent=$ac_hdr; break
  4534. fi
  4535. done
  4536. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4537. if test $ac_header_dirent = dirent.h; then
  4538. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4539. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4540. if test "${ac_cv_search_opendir+set}" = set; then
  4541. echo $ECHO_N "(cached) $ECHO_C" >&6
  4542. else
  4543. ac_func_search_save_LIBS=$LIBS
  4544. ac_cv_search_opendir=no
  4545. cat >conftest.$ac_ext <<_ACEOF
  4546. /* confdefs.h. */
  4547. _ACEOF
  4548. cat confdefs.h >>conftest.$ac_ext
  4549. cat >>conftest.$ac_ext <<_ACEOF
  4550. /* end confdefs.h. */
  4551. /* Override any gcc2 internal prototype to avoid an error. */
  4552. #ifdef __cplusplus
  4553. extern "C"
  4554. #endif
  4555. /* We use char because int might match the return type of a gcc2
  4556. builtin and then its argument prototype would still apply. */
  4557. char opendir ();
  4558. int
  4559. main ()
  4560. {
  4561. opendir ();
  4562. ;
  4563. return 0;
  4564. }
  4565. _ACEOF
  4566. rm -f conftest.$ac_objext conftest$ac_exeext
  4567. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4568. (eval $ac_link) 2>conftest.er1
  4569. ac_status=$?
  4570. grep -v '^ *+' conftest.er1 >conftest.err
  4571. rm -f conftest.er1
  4572. cat conftest.err >&5
  4573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4574. (exit $ac_status); } &&
  4575. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4576. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4577. (eval $ac_try) 2>&5
  4578. ac_status=$?
  4579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4580. (exit $ac_status); }; } &&
  4581. { ac_try='test -s conftest$ac_exeext'
  4582. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4583. (eval $ac_try) 2>&5
  4584. ac_status=$?
  4585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4586. (exit $ac_status); }; }; then
  4587. ac_cv_search_opendir="none required"
  4588. else
  4589. echo "$as_me: failed program was:" >&5
  4590. sed 's/^/| /' conftest.$ac_ext >&5
  4591. fi
  4592. rm -f conftest.err conftest.$ac_objext \
  4593. conftest$ac_exeext conftest.$ac_ext
  4594. if test "$ac_cv_search_opendir" = no; then
  4595. for ac_lib in dir; do
  4596. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4597. cat >conftest.$ac_ext <<_ACEOF
  4598. /* confdefs.h. */
  4599. _ACEOF
  4600. cat confdefs.h >>conftest.$ac_ext
  4601. cat >>conftest.$ac_ext <<_ACEOF
  4602. /* end confdefs.h. */
  4603. /* Override any gcc2 internal prototype to avoid an error. */
  4604. #ifdef __cplusplus
  4605. extern "C"
  4606. #endif
  4607. /* We use char because int might match the return type of a gcc2
  4608. builtin and then its argument prototype would still apply. */
  4609. char opendir ();
  4610. int
  4611. main ()
  4612. {
  4613. opendir ();
  4614. ;
  4615. return 0;
  4616. }
  4617. _ACEOF
  4618. rm -f conftest.$ac_objext conftest$ac_exeext
  4619. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4620. (eval $ac_link) 2>conftest.er1
  4621. ac_status=$?
  4622. grep -v '^ *+' conftest.er1 >conftest.err
  4623. rm -f conftest.er1
  4624. cat conftest.err >&5
  4625. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4626. (exit $ac_status); } &&
  4627. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4628. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4629. (eval $ac_try) 2>&5
  4630. ac_status=$?
  4631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4632. (exit $ac_status); }; } &&
  4633. { ac_try='test -s conftest$ac_exeext'
  4634. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4635. (eval $ac_try) 2>&5
  4636. ac_status=$?
  4637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4638. (exit $ac_status); }; }; then
  4639. ac_cv_search_opendir="-l$ac_lib"
  4640. break
  4641. else
  4642. echo "$as_me: failed program was:" >&5
  4643. sed 's/^/| /' conftest.$ac_ext >&5
  4644. fi
  4645. rm -f conftest.err conftest.$ac_objext \
  4646. conftest$ac_exeext conftest.$ac_ext
  4647. done
  4648. fi
  4649. LIBS=$ac_func_search_save_LIBS
  4650. fi
  4651. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4652. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4653. if test "$ac_cv_search_opendir" != no; then
  4654. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4655. fi
  4656. else
  4657. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4658. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4659. if test "${ac_cv_search_opendir+set}" = set; then
  4660. echo $ECHO_N "(cached) $ECHO_C" >&6
  4661. else
  4662. ac_func_search_save_LIBS=$LIBS
  4663. ac_cv_search_opendir=no
  4664. cat >conftest.$ac_ext <<_ACEOF
  4665. /* confdefs.h. */
  4666. _ACEOF
  4667. cat confdefs.h >>conftest.$ac_ext
  4668. cat >>conftest.$ac_ext <<_ACEOF
  4669. /* end confdefs.h. */
  4670. /* Override any gcc2 internal prototype to avoid an error. */
  4671. #ifdef __cplusplus
  4672. extern "C"
  4673. #endif
  4674. /* We use char because int might match the return type of a gcc2
  4675. builtin and then its argument prototype would still apply. */
  4676. char opendir ();
  4677. int
  4678. main ()
  4679. {
  4680. opendir ();
  4681. ;
  4682. return 0;
  4683. }
  4684. _ACEOF
  4685. rm -f conftest.$ac_objext conftest$ac_exeext
  4686. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4687. (eval $ac_link) 2>conftest.er1
  4688. ac_status=$?
  4689. grep -v '^ *+' conftest.er1 >conftest.err
  4690. rm -f conftest.er1
  4691. cat conftest.err >&5
  4692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4693. (exit $ac_status); } &&
  4694. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4695. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4696. (eval $ac_try) 2>&5
  4697. ac_status=$?
  4698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4699. (exit $ac_status); }; } &&
  4700. { ac_try='test -s conftest$ac_exeext'
  4701. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4702. (eval $ac_try) 2>&5
  4703. ac_status=$?
  4704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4705. (exit $ac_status); }; }; then
  4706. ac_cv_search_opendir="none required"
  4707. else
  4708. echo "$as_me: failed program was:" >&5
  4709. sed 's/^/| /' conftest.$ac_ext >&5
  4710. fi
  4711. rm -f conftest.err conftest.$ac_objext \
  4712. conftest$ac_exeext conftest.$ac_ext
  4713. if test "$ac_cv_search_opendir" = no; then
  4714. for ac_lib in x; do
  4715. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4716. cat >conftest.$ac_ext <<_ACEOF
  4717. /* confdefs.h. */
  4718. _ACEOF
  4719. cat confdefs.h >>conftest.$ac_ext
  4720. cat >>conftest.$ac_ext <<_ACEOF
  4721. /* end confdefs.h. */
  4722. /* Override any gcc2 internal prototype to avoid an error. */
  4723. #ifdef __cplusplus
  4724. extern "C"
  4725. #endif
  4726. /* We use char because int might match the return type of a gcc2
  4727. builtin and then its argument prototype would still apply. */
  4728. char opendir ();
  4729. int
  4730. main ()
  4731. {
  4732. opendir ();
  4733. ;
  4734. return 0;
  4735. }
  4736. _ACEOF
  4737. rm -f conftest.$ac_objext conftest$ac_exeext
  4738. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4739. (eval $ac_link) 2>conftest.er1
  4740. ac_status=$?
  4741. grep -v '^ *+' conftest.er1 >conftest.err
  4742. rm -f conftest.er1
  4743. cat conftest.err >&5
  4744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4745. (exit $ac_status); } &&
  4746. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4747. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4748. (eval $ac_try) 2>&5
  4749. ac_status=$?
  4750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4751. (exit $ac_status); }; } &&
  4752. { ac_try='test -s conftest$ac_exeext'
  4753. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4754. (eval $ac_try) 2>&5
  4755. ac_status=$?
  4756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4757. (exit $ac_status); }; }; then
  4758. ac_cv_search_opendir="-l$ac_lib"
  4759. break
  4760. else
  4761. echo "$as_me: failed program was:" >&5
  4762. sed 's/^/| /' conftest.$ac_ext >&5
  4763. fi
  4764. rm -f conftest.err conftest.$ac_objext \
  4765. conftest$ac_exeext conftest.$ac_ext
  4766. done
  4767. fi
  4768. LIBS=$ac_func_search_save_LIBS
  4769. fi
  4770. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4771. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4772. if test "$ac_cv_search_opendir" != no; then
  4773. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4774. fi
  4775. fi
  4776. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4777. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  4778. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4779. echo $ECHO_N "(cached) $ECHO_C" >&6
  4780. else
  4781. cat >conftest.$ac_ext <<_ACEOF
  4782. /* confdefs.h. */
  4783. _ACEOF
  4784. cat confdefs.h >>conftest.$ac_ext
  4785. cat >>conftest.$ac_ext <<_ACEOF
  4786. /* end confdefs.h. */
  4787. #include <sys/types.h>
  4788. #include <sys/wait.h>
  4789. #ifndef WEXITSTATUS
  4790. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  4791. #endif
  4792. #ifndef WIFEXITED
  4793. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4794. #endif
  4795. int
  4796. main ()
  4797. {
  4798. int s;
  4799. wait (&s);
  4800. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4801. ;
  4802. return 0;
  4803. }
  4804. _ACEOF
  4805. rm -f conftest.$ac_objext
  4806. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4807. (eval $ac_compile) 2>conftest.er1
  4808. ac_status=$?
  4809. grep -v '^ *+' conftest.er1 >conftest.err
  4810. rm -f conftest.er1
  4811. cat conftest.err >&5
  4812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4813. (exit $ac_status); } &&
  4814. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4815. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4816. (eval $ac_try) 2>&5
  4817. ac_status=$?
  4818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4819. (exit $ac_status); }; } &&
  4820. { ac_try='test -s conftest.$ac_objext'
  4821. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4822. (eval $ac_try) 2>&5
  4823. ac_status=$?
  4824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4825. (exit $ac_status); }; }; then
  4826. ac_cv_header_sys_wait_h=yes
  4827. else
  4828. echo "$as_me: failed program was:" >&5
  4829. sed 's/^/| /' conftest.$ac_ext >&5
  4830. ac_cv_header_sys_wait_h=no
  4831. fi
  4832. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4833. fi
  4834. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  4835. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  4836. if test $ac_cv_header_sys_wait_h = yes; then
  4837. cat >>confdefs.h <<\_ACEOF
  4838. #define HAVE_SYS_WAIT_H 1
  4839. _ACEOF
  4840. fi
  4841. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4842. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  4843. if test "${ac_cv_header_time+set}" = set; then
  4844. echo $ECHO_N "(cached) $ECHO_C" >&6
  4845. else
  4846. cat >conftest.$ac_ext <<_ACEOF
  4847. /* confdefs.h. */
  4848. _ACEOF
  4849. cat confdefs.h >>conftest.$ac_ext
  4850. cat >>conftest.$ac_ext <<_ACEOF
  4851. /* end confdefs.h. */
  4852. #include <sys/types.h>
  4853. #include <sys/time.h>
  4854. #include <time.h>
  4855. int
  4856. main ()
  4857. {
  4858. if ((struct tm *) 0)
  4859. return 0;
  4860. ;
  4861. return 0;
  4862. }
  4863. _ACEOF
  4864. rm -f conftest.$ac_objext
  4865. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4866. (eval $ac_compile) 2>conftest.er1
  4867. ac_status=$?
  4868. grep -v '^ *+' conftest.er1 >conftest.err
  4869. rm -f conftest.er1
  4870. cat conftest.err >&5
  4871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4872. (exit $ac_status); } &&
  4873. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4874. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4875. (eval $ac_try) 2>&5
  4876. ac_status=$?
  4877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4878. (exit $ac_status); }; } &&
  4879. { ac_try='test -s conftest.$ac_objext'
  4880. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4881. (eval $ac_try) 2>&5
  4882. ac_status=$?
  4883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4884. (exit $ac_status); }; }; then
  4885. ac_cv_header_time=yes
  4886. else
  4887. echo "$as_me: failed program was:" >&5
  4888. sed 's/^/| /' conftest.$ac_ext >&5
  4889. ac_cv_header_time=no
  4890. fi
  4891. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4892. fi
  4893. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4894. echo "${ECHO_T}$ac_cv_header_time" >&6
  4895. if test $ac_cv_header_time = yes; then
  4896. cat >>confdefs.h <<\_ACEOF
  4897. #define TIME_WITH_SYS_TIME 1
  4898. _ACEOF
  4899. fi
  4900. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  4901. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  4902. if test "${ac_cv_header_stat_broken+set}" = set; then
  4903. echo $ECHO_N "(cached) $ECHO_C" >&6
  4904. else
  4905. cat >conftest.$ac_ext <<_ACEOF
  4906. /* confdefs.h. */
  4907. _ACEOF
  4908. cat confdefs.h >>conftest.$ac_ext
  4909. cat >>conftest.$ac_ext <<_ACEOF
  4910. /* end confdefs.h. */
  4911. #include <sys/types.h>
  4912. #include <sys/stat.h>
  4913. #if defined(S_ISBLK) && defined(S_IFDIR)
  4914. # if S_ISBLK (S_IFDIR)
  4915. You lose.
  4916. # endif
  4917. #endif
  4918. #if defined(S_ISBLK) && defined(S_IFCHR)
  4919. # if S_ISBLK (S_IFCHR)
  4920. You lose.
  4921. # endif
  4922. #endif
  4923. #if defined(S_ISLNK) && defined(S_IFREG)
  4924. # if S_ISLNK (S_IFREG)
  4925. You lose.
  4926. # endif
  4927. #endif
  4928. #if defined(S_ISSOCK) && defined(S_IFREG)
  4929. # if S_ISSOCK (S_IFREG)
  4930. You lose.
  4931. # endif
  4932. #endif
  4933. _ACEOF
  4934. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4935. $EGREP "You lose" >/dev/null 2>&1; then
  4936. ac_cv_header_stat_broken=yes
  4937. else
  4938. ac_cv_header_stat_broken=no
  4939. fi
  4940. rm -f conftest*
  4941. fi
  4942. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  4943. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  4944. if test $ac_cv_header_stat_broken = yes; then
  4945. cat >>confdefs.h <<\_ACEOF
  4946. #define STAT_MACROS_BROKEN 1
  4947. _ACEOF
  4948. fi
  4949. #checkpoint
  4950. cat >confcache <<\_ACEOF
  4951. # This file is a shell script that caches the results of configure
  4952. # tests run on this system so they can be shared between configure
  4953. # scripts and configure runs, see configure's option --config-cache.
  4954. # It is not useful on other systems. If it contains results you don't
  4955. # want to keep, you may remove or edit it.
  4956. #
  4957. # config.status only pays attention to the cache file if you give it
  4958. # the --recheck option to rerun configure.
  4959. #
  4960. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4961. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4962. # following values.
  4963. _ACEOF
  4964. # The following way of writing the cache mishandles newlines in values,
  4965. # but we know of no workaround that is simple, portable, and efficient.
  4966. # So, don't put newlines in cache variables' values.
  4967. # Ultrix sh set writes to stderr and can't be redirected directly,
  4968. # and sets the high bit in the cache file unless we assign to the vars.
  4969. {
  4970. (set) 2>&1 |
  4971. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4972. *ac_space=\ *)
  4973. # `set' does not quote correctly, so add quotes (double-quote
  4974. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4975. sed -n \
  4976. "s/'/'\\\\''/g;
  4977. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4978. ;;
  4979. *)
  4980. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4981. sed -n \
  4982. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4983. ;;
  4984. esac;
  4985. } |
  4986. sed '
  4987. t clear
  4988. : clear
  4989. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4990. t end
  4991. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4992. : end' >>confcache
  4993. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4994. if test -w $cache_file; then
  4995. test "x$cache_file" != "x/dev/null"
  4996. cat confcache >$cache_file
  4997. else
  4998. echo "not updating unwritable cache $cache_file"
  4999. fi
  5000. fi
  5001. rm -f confcache
  5002. for ac_header in arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5003. do
  5004. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5005. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5006. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5007. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5008. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5009. echo $ECHO_N "(cached) $ECHO_C" >&6
  5010. fi
  5011. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5012. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5013. else
  5014. # Is the header compilable?
  5015. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5016. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5017. cat >conftest.$ac_ext <<_ACEOF
  5018. /* confdefs.h. */
  5019. _ACEOF
  5020. cat confdefs.h >>conftest.$ac_ext
  5021. cat >>conftest.$ac_ext <<_ACEOF
  5022. /* end confdefs.h. */
  5023. $ac_includes_default
  5024. #include <$ac_header>
  5025. _ACEOF
  5026. rm -f conftest.$ac_objext
  5027. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5028. (eval $ac_compile) 2>conftest.er1
  5029. ac_status=$?
  5030. grep -v '^ *+' conftest.er1 >conftest.err
  5031. rm -f conftest.er1
  5032. cat conftest.err >&5
  5033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5034. (exit $ac_status); } &&
  5035. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5036. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5037. (eval $ac_try) 2>&5
  5038. ac_status=$?
  5039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5040. (exit $ac_status); }; } &&
  5041. { ac_try='test -s conftest.$ac_objext'
  5042. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5043. (eval $ac_try) 2>&5
  5044. ac_status=$?
  5045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5046. (exit $ac_status); }; }; then
  5047. ac_header_compiler=yes
  5048. else
  5049. echo "$as_me: failed program was:" >&5
  5050. sed 's/^/| /' conftest.$ac_ext >&5
  5051. ac_header_compiler=no
  5052. fi
  5053. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5054. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5055. echo "${ECHO_T}$ac_header_compiler" >&6
  5056. # Is the header present?
  5057. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5058. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5059. cat >conftest.$ac_ext <<_ACEOF
  5060. /* confdefs.h. */
  5061. _ACEOF
  5062. cat confdefs.h >>conftest.$ac_ext
  5063. cat >>conftest.$ac_ext <<_ACEOF
  5064. /* end confdefs.h. */
  5065. #include <$ac_header>
  5066. _ACEOF
  5067. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5068. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5069. ac_status=$?
  5070. grep -v '^ *+' conftest.er1 >conftest.err
  5071. rm -f conftest.er1
  5072. cat conftest.err >&5
  5073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5074. (exit $ac_status); } >/dev/null; then
  5075. if test -s conftest.err; then
  5076. ac_cpp_err=$ac_c_preproc_warn_flag
  5077. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5078. else
  5079. ac_cpp_err=
  5080. fi
  5081. else
  5082. ac_cpp_err=yes
  5083. fi
  5084. if test -z "$ac_cpp_err"; then
  5085. ac_header_preproc=yes
  5086. else
  5087. echo "$as_me: failed program was:" >&5
  5088. sed 's/^/| /' conftest.$ac_ext >&5
  5089. ac_header_preproc=no
  5090. fi
  5091. rm -f conftest.err conftest.$ac_ext
  5092. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5093. echo "${ECHO_T}$ac_header_preproc" >&6
  5094. # So? What about this header?
  5095. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5096. yes:no: )
  5097. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5098. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5099. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5100. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5101. ac_header_preproc=yes
  5102. ;;
  5103. no:yes:* )
  5104. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5105. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5106. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5107. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5108. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5109. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5110. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5111. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5112. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5113. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5114. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5115. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5116. (
  5117. cat <<\_ASBOX
  5118. ## ------------------------------------------ ##
  5119. ## Report this to the AC_PACKAGE_NAME lists. ##
  5120. ## ------------------------------------------ ##
  5121. _ASBOX
  5122. ) |
  5123. sed "s/^/$as_me: WARNING: /" >&2
  5124. ;;
  5125. esac
  5126. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5127. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5128. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5129. echo $ECHO_N "(cached) $ECHO_C" >&6
  5130. else
  5131. eval "$as_ac_Header=\$ac_header_preproc"
  5132. fi
  5133. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5134. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5135. fi
  5136. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5137. cat >>confdefs.h <<_ACEOF
  5138. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5139. _ACEOF
  5140. fi
  5141. done
  5142. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5143. do
  5144. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5145. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5146. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5147. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5148. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5149. echo $ECHO_N "(cached) $ECHO_C" >&6
  5150. fi
  5151. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5152. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5153. else
  5154. # Is the header compilable?
  5155. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5156. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5157. cat >conftest.$ac_ext <<_ACEOF
  5158. /* confdefs.h. */
  5159. _ACEOF
  5160. cat confdefs.h >>conftest.$ac_ext
  5161. cat >>conftest.$ac_ext <<_ACEOF
  5162. /* end confdefs.h. */
  5163. $ac_includes_default
  5164. #include <$ac_header>
  5165. _ACEOF
  5166. rm -f conftest.$ac_objext
  5167. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5168. (eval $ac_compile) 2>conftest.er1
  5169. ac_status=$?
  5170. grep -v '^ *+' conftest.er1 >conftest.err
  5171. rm -f conftest.er1
  5172. cat conftest.err >&5
  5173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5174. (exit $ac_status); } &&
  5175. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5176. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5177. (eval $ac_try) 2>&5
  5178. ac_status=$?
  5179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5180. (exit $ac_status); }; } &&
  5181. { ac_try='test -s conftest.$ac_objext'
  5182. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5183. (eval $ac_try) 2>&5
  5184. ac_status=$?
  5185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5186. (exit $ac_status); }; }; then
  5187. ac_header_compiler=yes
  5188. else
  5189. echo "$as_me: failed program was:" >&5
  5190. sed 's/^/| /' conftest.$ac_ext >&5
  5191. ac_header_compiler=no
  5192. fi
  5193. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5194. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5195. echo "${ECHO_T}$ac_header_compiler" >&6
  5196. # Is the header present?
  5197. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5198. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5199. cat >conftest.$ac_ext <<_ACEOF
  5200. /* confdefs.h. */
  5201. _ACEOF
  5202. cat confdefs.h >>conftest.$ac_ext
  5203. cat >>conftest.$ac_ext <<_ACEOF
  5204. /* end confdefs.h. */
  5205. #include <$ac_header>
  5206. _ACEOF
  5207. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5208. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5209. ac_status=$?
  5210. grep -v '^ *+' conftest.er1 >conftest.err
  5211. rm -f conftest.er1
  5212. cat conftest.err >&5
  5213. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5214. (exit $ac_status); } >/dev/null; then
  5215. if test -s conftest.err; then
  5216. ac_cpp_err=$ac_c_preproc_warn_flag
  5217. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5218. else
  5219. ac_cpp_err=
  5220. fi
  5221. else
  5222. ac_cpp_err=yes
  5223. fi
  5224. if test -z "$ac_cpp_err"; then
  5225. ac_header_preproc=yes
  5226. else
  5227. echo "$as_me: failed program was:" >&5
  5228. sed 's/^/| /' conftest.$ac_ext >&5
  5229. ac_header_preproc=no
  5230. fi
  5231. rm -f conftest.err conftest.$ac_ext
  5232. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5233. echo "${ECHO_T}$ac_header_preproc" >&6
  5234. # So? What about this header?
  5235. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5236. yes:no: )
  5237. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5238. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5239. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5240. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5241. ac_header_preproc=yes
  5242. ;;
  5243. no:yes:* )
  5244. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5245. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5246. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5247. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5248. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5249. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5250. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5251. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5252. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5253. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5254. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5255. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5256. (
  5257. cat <<\_ASBOX
  5258. ## ------------------------------------------ ##
  5259. ## Report this to the AC_PACKAGE_NAME lists. ##
  5260. ## ------------------------------------------ ##
  5261. _ASBOX
  5262. ) |
  5263. sed "s/^/$as_me: WARNING: /" >&2
  5264. ;;
  5265. esac
  5266. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5267. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5268. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5269. echo $ECHO_N "(cached) $ECHO_C" >&6
  5270. else
  5271. eval "$as_ac_Header=\$ac_header_preproc"
  5272. fi
  5273. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5274. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5275. fi
  5276. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5277. cat >>confdefs.h <<_ACEOF
  5278. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5279. _ACEOF
  5280. fi
  5281. done
  5282. #checkpoint
  5283. cat >confcache <<\_ACEOF
  5284. # This file is a shell script that caches the results of configure
  5285. # tests run on this system so they can be shared between configure
  5286. # scripts and configure runs, see configure's option --config-cache.
  5287. # It is not useful on other systems. If it contains results you don't
  5288. # want to keep, you may remove or edit it.
  5289. #
  5290. # config.status only pays attention to the cache file if you give it
  5291. # the --recheck option to rerun configure.
  5292. #
  5293. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5294. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5295. # following values.
  5296. _ACEOF
  5297. # The following way of writing the cache mishandles newlines in values,
  5298. # but we know of no workaround that is simple, portable, and efficient.
  5299. # So, don't put newlines in cache variables' values.
  5300. # Ultrix sh set writes to stderr and can't be redirected directly,
  5301. # and sets the high bit in the cache file unless we assign to the vars.
  5302. {
  5303. (set) 2>&1 |
  5304. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5305. *ac_space=\ *)
  5306. # `set' does not quote correctly, so add quotes (double-quote
  5307. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5308. sed -n \
  5309. "s/'/'\\\\''/g;
  5310. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5311. ;;
  5312. *)
  5313. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5314. sed -n \
  5315. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5316. ;;
  5317. esac;
  5318. } |
  5319. sed '
  5320. t clear
  5321. : clear
  5322. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5323. t end
  5324. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5325. : end' >>confcache
  5326. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5327. if test -w $cache_file; then
  5328. test "x$cache_file" != "x/dev/null"
  5329. cat confcache >$cache_file
  5330. else
  5331. echo "not updating unwritable cache $cache_file"
  5332. fi
  5333. fi
  5334. rm -f confcache
  5335. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5336. #AC_CHECK_HEADERS(zlib.h)
  5337. #EGG_CHECK_ZLIB
  5338. #EGG_CHECK_SSL
  5339. #AC_SUBST(SSL)dnl
  5340. # Checks for typedefs, structures, and compiler characteristics
  5341. echo "$as_me:$LINENO: checking for pid_t" >&5
  5342. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  5343. if test "${ac_cv_type_pid_t+set}" = set; then
  5344. echo $ECHO_N "(cached) $ECHO_C" >&6
  5345. else
  5346. cat >conftest.$ac_ext <<_ACEOF
  5347. /* confdefs.h. */
  5348. _ACEOF
  5349. cat confdefs.h >>conftest.$ac_ext
  5350. cat >>conftest.$ac_ext <<_ACEOF
  5351. /* end confdefs.h. */
  5352. $ac_includes_default
  5353. int
  5354. main ()
  5355. {
  5356. if ((pid_t *) 0)
  5357. return 0;
  5358. if (sizeof (pid_t))
  5359. return 0;
  5360. ;
  5361. return 0;
  5362. }
  5363. _ACEOF
  5364. rm -f conftest.$ac_objext
  5365. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5366. (eval $ac_compile) 2>conftest.er1
  5367. ac_status=$?
  5368. grep -v '^ *+' conftest.er1 >conftest.err
  5369. rm -f conftest.er1
  5370. cat conftest.err >&5
  5371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5372. (exit $ac_status); } &&
  5373. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5374. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5375. (eval $ac_try) 2>&5
  5376. ac_status=$?
  5377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5378. (exit $ac_status); }; } &&
  5379. { ac_try='test -s conftest.$ac_objext'
  5380. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5381. (eval $ac_try) 2>&5
  5382. ac_status=$?
  5383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5384. (exit $ac_status); }; }; then
  5385. ac_cv_type_pid_t=yes
  5386. else
  5387. echo "$as_me: failed program was:" >&5
  5388. sed 's/^/| /' conftest.$ac_ext >&5
  5389. ac_cv_type_pid_t=no
  5390. fi
  5391. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5392. fi
  5393. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5394. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  5395. if test $ac_cv_type_pid_t = yes; then
  5396. :
  5397. else
  5398. cat >>confdefs.h <<_ACEOF
  5399. #define pid_t int
  5400. _ACEOF
  5401. fi
  5402. echo "$as_me:$LINENO: checking for size_t" >&5
  5403. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5404. if test "${ac_cv_type_size_t+set}" = set; then
  5405. echo $ECHO_N "(cached) $ECHO_C" >&6
  5406. else
  5407. cat >conftest.$ac_ext <<_ACEOF
  5408. /* confdefs.h. */
  5409. _ACEOF
  5410. cat confdefs.h >>conftest.$ac_ext
  5411. cat >>conftest.$ac_ext <<_ACEOF
  5412. /* end confdefs.h. */
  5413. $ac_includes_default
  5414. int
  5415. main ()
  5416. {
  5417. if ((size_t *) 0)
  5418. return 0;
  5419. if (sizeof (size_t))
  5420. return 0;
  5421. ;
  5422. return 0;
  5423. }
  5424. _ACEOF
  5425. rm -f conftest.$ac_objext
  5426. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5427. (eval $ac_compile) 2>conftest.er1
  5428. ac_status=$?
  5429. grep -v '^ *+' conftest.er1 >conftest.err
  5430. rm -f conftest.er1
  5431. cat conftest.err >&5
  5432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5433. (exit $ac_status); } &&
  5434. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5435. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5436. (eval $ac_try) 2>&5
  5437. ac_status=$?
  5438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5439. (exit $ac_status); }; } &&
  5440. { ac_try='test -s conftest.$ac_objext'
  5441. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5442. (eval $ac_try) 2>&5
  5443. ac_status=$?
  5444. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5445. (exit $ac_status); }; }; then
  5446. ac_cv_type_size_t=yes
  5447. else
  5448. echo "$as_me: failed program was:" >&5
  5449. sed 's/^/| /' conftest.$ac_ext >&5
  5450. ac_cv_type_size_t=no
  5451. fi
  5452. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5453. fi
  5454. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5455. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5456. if test $ac_cv_type_size_t = yes; then
  5457. :
  5458. else
  5459. cat >>confdefs.h <<_ACEOF
  5460. #define size_t unsigned
  5461. _ACEOF
  5462. fi
  5463. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5464. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  5465. if test "${ac_cv_type_uid_t+set}" = set; then
  5466. echo $ECHO_N "(cached) $ECHO_C" >&6
  5467. else
  5468. cat >conftest.$ac_ext <<_ACEOF
  5469. /* confdefs.h. */
  5470. _ACEOF
  5471. cat confdefs.h >>conftest.$ac_ext
  5472. cat >>conftest.$ac_ext <<_ACEOF
  5473. /* end confdefs.h. */
  5474. #include <sys/types.h>
  5475. _ACEOF
  5476. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5477. $EGREP "uid_t" >/dev/null 2>&1; then
  5478. ac_cv_type_uid_t=yes
  5479. else
  5480. ac_cv_type_uid_t=no
  5481. fi
  5482. rm -f conftest*
  5483. fi
  5484. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5485. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  5486. if test $ac_cv_type_uid_t = no; then
  5487. cat >>confdefs.h <<\_ACEOF
  5488. #define uid_t int
  5489. _ACEOF
  5490. cat >>confdefs.h <<\_ACEOF
  5491. #define gid_t int
  5492. _ACEOF
  5493. fi
  5494. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5495. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5496. if test "${ac_cv_c_const+set}" = set; then
  5497. echo $ECHO_N "(cached) $ECHO_C" >&6
  5498. else
  5499. cat >conftest.$ac_ext <<_ACEOF
  5500. /* confdefs.h. */
  5501. _ACEOF
  5502. cat confdefs.h >>conftest.$ac_ext
  5503. cat >>conftest.$ac_ext <<_ACEOF
  5504. /* end confdefs.h. */
  5505. int
  5506. main ()
  5507. {
  5508. /* FIXME: Include the comments suggested by Paul. */
  5509. #ifndef __cplusplus
  5510. /* Ultrix mips cc rejects this. */
  5511. typedef int charset[2];
  5512. const charset x;
  5513. /* SunOS 4.1.1 cc rejects this. */
  5514. char const *const *ccp;
  5515. char **p;
  5516. /* NEC SVR4.0.2 mips cc rejects this. */
  5517. struct point {int x, y;};
  5518. static struct point const zero = {0,0};
  5519. /* AIX XL C 1.02.0.0 rejects this.
  5520. It does not let you subtract one const X* pointer from another in
  5521. an arm of an if-expression whose if-part is not a constant
  5522. expression */
  5523. const char *g = "string";
  5524. ccp = &g + (g ? g-g : 0);
  5525. /* HPUX 7.0 cc rejects these. */
  5526. ++ccp;
  5527. p = (char**) ccp;
  5528. ccp = (char const *const *) p;
  5529. { /* SCO 3.2v4 cc rejects this. */
  5530. char *t;
  5531. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5532. *t++ = 0;
  5533. }
  5534. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5535. int x[] = {25, 17};
  5536. const int *foo = &x[0];
  5537. ++foo;
  5538. }
  5539. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5540. typedef const int *iptr;
  5541. iptr p = 0;
  5542. ++p;
  5543. }
  5544. { /* AIX XL C 1.02.0.0 rejects this saying
  5545. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5546. struct s { int j; const int *ap[3]; };
  5547. struct s *b; b->j = 5;
  5548. }
  5549. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5550. const int foo = 10;
  5551. }
  5552. #endif
  5553. ;
  5554. return 0;
  5555. }
  5556. _ACEOF
  5557. rm -f conftest.$ac_objext
  5558. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5559. (eval $ac_compile) 2>conftest.er1
  5560. ac_status=$?
  5561. grep -v '^ *+' conftest.er1 >conftest.err
  5562. rm -f conftest.er1
  5563. cat conftest.err >&5
  5564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5565. (exit $ac_status); } &&
  5566. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5567. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5568. (eval $ac_try) 2>&5
  5569. ac_status=$?
  5570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5571. (exit $ac_status); }; } &&
  5572. { ac_try='test -s conftest.$ac_objext'
  5573. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5574. (eval $ac_try) 2>&5
  5575. ac_status=$?
  5576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5577. (exit $ac_status); }; }; then
  5578. ac_cv_c_const=yes
  5579. else
  5580. echo "$as_me: failed program was:" >&5
  5581. sed 's/^/| /' conftest.$ac_ext >&5
  5582. ac_cv_c_const=no
  5583. fi
  5584. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5585. fi
  5586. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5587. echo "${ECHO_T}$ac_cv_c_const" >&6
  5588. if test $ac_cv_c_const = no; then
  5589. cat >>confdefs.h <<\_ACEOF
  5590. #define const
  5591. _ACEOF
  5592. fi
  5593. echo "$as_me:$LINENO: checking for working volatile" >&5
  5594. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  5595. if test "${ac_cv_c_volatile+set}" = set; then
  5596. echo $ECHO_N "(cached) $ECHO_C" >&6
  5597. else
  5598. cat >conftest.$ac_ext <<_ACEOF
  5599. /* confdefs.h. */
  5600. _ACEOF
  5601. cat confdefs.h >>conftest.$ac_ext
  5602. cat >>conftest.$ac_ext <<_ACEOF
  5603. /* end confdefs.h. */
  5604. int
  5605. main ()
  5606. {
  5607. volatile int x;
  5608. int * volatile y;
  5609. ;
  5610. return 0;
  5611. }
  5612. _ACEOF
  5613. rm -f conftest.$ac_objext
  5614. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5615. (eval $ac_compile) 2>conftest.er1
  5616. ac_status=$?
  5617. grep -v '^ *+' conftest.er1 >conftest.err
  5618. rm -f conftest.er1
  5619. cat conftest.err >&5
  5620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5621. (exit $ac_status); } &&
  5622. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5623. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5624. (eval $ac_try) 2>&5
  5625. ac_status=$?
  5626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5627. (exit $ac_status); }; } &&
  5628. { ac_try='test -s conftest.$ac_objext'
  5629. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5630. (eval $ac_try) 2>&5
  5631. ac_status=$?
  5632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5633. (exit $ac_status); }; }; then
  5634. ac_cv_c_volatile=yes
  5635. else
  5636. echo "$as_me: failed program was:" >&5
  5637. sed 's/^/| /' conftest.$ac_ext >&5
  5638. ac_cv_c_volatile=no
  5639. fi
  5640. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5641. fi
  5642. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5643. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  5644. if test $ac_cv_c_volatile = no; then
  5645. cat >>confdefs.h <<\_ACEOF
  5646. #define volatile
  5647. _ACEOF
  5648. fi
  5649. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5650. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  5651. if test "${ac_cv_c_bigendian+set}" = set; then
  5652. echo $ECHO_N "(cached) $ECHO_C" >&6
  5653. else
  5654. # See if sys/param.h defines the BYTE_ORDER macro.
  5655. cat >conftest.$ac_ext <<_ACEOF
  5656. /* confdefs.h. */
  5657. _ACEOF
  5658. cat confdefs.h >>conftest.$ac_ext
  5659. cat >>conftest.$ac_ext <<_ACEOF
  5660. /* end confdefs.h. */
  5661. #include <sys/types.h>
  5662. #include <sys/param.h>
  5663. int
  5664. main ()
  5665. {
  5666. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  5667. bogus endian macros
  5668. #endif
  5669. ;
  5670. return 0;
  5671. }
  5672. _ACEOF
  5673. rm -f conftest.$ac_objext
  5674. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5675. (eval $ac_compile) 2>conftest.er1
  5676. ac_status=$?
  5677. grep -v '^ *+' conftest.er1 >conftest.err
  5678. rm -f conftest.er1
  5679. cat conftest.err >&5
  5680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5681. (exit $ac_status); } &&
  5682. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5683. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5684. (eval $ac_try) 2>&5
  5685. ac_status=$?
  5686. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5687. (exit $ac_status); }; } &&
  5688. { ac_try='test -s conftest.$ac_objext'
  5689. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5690. (eval $ac_try) 2>&5
  5691. ac_status=$?
  5692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5693. (exit $ac_status); }; }; then
  5694. # It does; now see whether it defined to BIG_ENDIAN or not.
  5695. cat >conftest.$ac_ext <<_ACEOF
  5696. /* confdefs.h. */
  5697. _ACEOF
  5698. cat confdefs.h >>conftest.$ac_ext
  5699. cat >>conftest.$ac_ext <<_ACEOF
  5700. /* end confdefs.h. */
  5701. #include <sys/types.h>
  5702. #include <sys/param.h>
  5703. int
  5704. main ()
  5705. {
  5706. #if BYTE_ORDER != BIG_ENDIAN
  5707. not big endian
  5708. #endif
  5709. ;
  5710. return 0;
  5711. }
  5712. _ACEOF
  5713. rm -f conftest.$ac_objext
  5714. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5715. (eval $ac_compile) 2>conftest.er1
  5716. ac_status=$?
  5717. grep -v '^ *+' conftest.er1 >conftest.err
  5718. rm -f conftest.er1
  5719. cat conftest.err >&5
  5720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5721. (exit $ac_status); } &&
  5722. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5723. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5724. (eval $ac_try) 2>&5
  5725. ac_status=$?
  5726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5727. (exit $ac_status); }; } &&
  5728. { ac_try='test -s conftest.$ac_objext'
  5729. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5730. (eval $ac_try) 2>&5
  5731. ac_status=$?
  5732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5733. (exit $ac_status); }; }; then
  5734. ac_cv_c_bigendian=yes
  5735. else
  5736. echo "$as_me: failed program was:" >&5
  5737. sed 's/^/| /' conftest.$ac_ext >&5
  5738. ac_cv_c_bigendian=no
  5739. fi
  5740. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5741. else
  5742. echo "$as_me: failed program was:" >&5
  5743. sed 's/^/| /' conftest.$ac_ext >&5
  5744. # It does not; compile a test program.
  5745. if test "$cross_compiling" = yes; then
  5746. # try to guess the endianness by grepping values into an object file
  5747. ac_cv_c_bigendian=unknown
  5748. cat >conftest.$ac_ext <<_ACEOF
  5749. /* confdefs.h. */
  5750. _ACEOF
  5751. cat confdefs.h >>conftest.$ac_ext
  5752. cat >>conftest.$ac_ext <<_ACEOF
  5753. /* end confdefs.h. */
  5754. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5755. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5756. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  5757. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5758. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5759. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  5760. int
  5761. main ()
  5762. {
  5763. _ascii (); _ebcdic ();
  5764. ;
  5765. return 0;
  5766. }
  5767. _ACEOF
  5768. rm -f conftest.$ac_objext
  5769. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5770. (eval $ac_compile) 2>conftest.er1
  5771. ac_status=$?
  5772. grep -v '^ *+' conftest.er1 >conftest.err
  5773. rm -f conftest.er1
  5774. cat conftest.err >&5
  5775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5776. (exit $ac_status); } &&
  5777. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5778. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5779. (eval $ac_try) 2>&5
  5780. ac_status=$?
  5781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5782. (exit $ac_status); }; } &&
  5783. { ac_try='test -s conftest.$ac_objext'
  5784. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5785. (eval $ac_try) 2>&5
  5786. ac_status=$?
  5787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5788. (exit $ac_status); }; }; then
  5789. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  5790. ac_cv_c_bigendian=yes
  5791. fi
  5792. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5793. if test "$ac_cv_c_bigendian" = unknown; then
  5794. ac_cv_c_bigendian=no
  5795. else
  5796. # finding both strings is unlikely to happen, but who knows?
  5797. ac_cv_c_bigendian=unknown
  5798. fi
  5799. fi
  5800. else
  5801. echo "$as_me: failed program was:" >&5
  5802. sed 's/^/| /' conftest.$ac_ext >&5
  5803. fi
  5804. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5805. else
  5806. cat >conftest.$ac_ext <<_ACEOF
  5807. /* confdefs.h. */
  5808. _ACEOF
  5809. cat confdefs.h >>conftest.$ac_ext
  5810. cat >>conftest.$ac_ext <<_ACEOF
  5811. /* end confdefs.h. */
  5812. int
  5813. main ()
  5814. {
  5815. /* Are we little or big endian? From Harbison&Steele. */
  5816. union
  5817. {
  5818. long l;
  5819. char c[sizeof (long)];
  5820. } u;
  5821. u.l = 1;
  5822. exit (u.c[sizeof (long) - 1] == 1);
  5823. }
  5824. _ACEOF
  5825. rm -f conftest$ac_exeext
  5826. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5827. (eval $ac_link) 2>&5
  5828. ac_status=$?
  5829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5830. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5831. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5832. (eval $ac_try) 2>&5
  5833. ac_status=$?
  5834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5835. (exit $ac_status); }; }; then
  5836. ac_cv_c_bigendian=no
  5837. else
  5838. echo "$as_me: program exited with status $ac_status" >&5
  5839. echo "$as_me: failed program was:" >&5
  5840. sed 's/^/| /' conftest.$ac_ext >&5
  5841. ( exit $ac_status )
  5842. ac_cv_c_bigendian=yes
  5843. fi
  5844. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5845. fi
  5846. fi
  5847. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5848. fi
  5849. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  5850. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  5851. case $ac_cv_c_bigendian in
  5852. yes)
  5853. cat >>confdefs.h <<\_ACEOF
  5854. #define WORDS_BIGENDIAN 1
  5855. _ACEOF
  5856. ;;
  5857. no)
  5858. ;;
  5859. *)
  5860. { { echo "$as_me:$LINENO: error: unknown endianness
  5861. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  5862. echo "$as_me: error: unknown endianness
  5863. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  5864. { (exit 1); exit 1; }; } ;;
  5865. esac
  5866. echo "$as_me:$LINENO: checking for inline" >&5
  5867. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  5868. if test "${ac_cv_c_inline+set}" = set; then
  5869. echo $ECHO_N "(cached) $ECHO_C" >&6
  5870. else
  5871. ac_cv_c_inline=no
  5872. for ac_kw in inline __inline__ __inline; do
  5873. cat >conftest.$ac_ext <<_ACEOF
  5874. /* confdefs.h. */
  5875. _ACEOF
  5876. cat confdefs.h >>conftest.$ac_ext
  5877. cat >>conftest.$ac_ext <<_ACEOF
  5878. /* end confdefs.h. */
  5879. #ifndef __cplusplus
  5880. typedef int foo_t;
  5881. static $ac_kw foo_t static_foo () {return 0; }
  5882. $ac_kw foo_t foo () {return 0; }
  5883. #endif
  5884. _ACEOF
  5885. rm -f conftest.$ac_objext
  5886. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5887. (eval $ac_compile) 2>conftest.er1
  5888. ac_status=$?
  5889. grep -v '^ *+' conftest.er1 >conftest.err
  5890. rm -f conftest.er1
  5891. cat conftest.err >&5
  5892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5893. (exit $ac_status); } &&
  5894. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5895. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5896. (eval $ac_try) 2>&5
  5897. ac_status=$?
  5898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5899. (exit $ac_status); }; } &&
  5900. { ac_try='test -s conftest.$ac_objext'
  5901. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5902. (eval $ac_try) 2>&5
  5903. ac_status=$?
  5904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5905. (exit $ac_status); }; }; then
  5906. ac_cv_c_inline=$ac_kw; break
  5907. else
  5908. echo "$as_me: failed program was:" >&5
  5909. sed 's/^/| /' conftest.$ac_ext >&5
  5910. fi
  5911. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5912. done
  5913. fi
  5914. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  5915. echo "${ECHO_T}$ac_cv_c_inline" >&6
  5916. case $ac_cv_c_inline in
  5917. inline | yes) ;;
  5918. *)
  5919. case $ac_cv_c_inline in
  5920. no) ac_val=;;
  5921. *) ac_val=$ac_cv_c_inline;;
  5922. esac
  5923. cat >>confdefs.h <<_ACEOF
  5924. #ifndef __cplusplus
  5925. #define inline $ac_val
  5926. #endif
  5927. _ACEOF
  5928. ;;
  5929. esac
  5930. echo "$as_me:$LINENO: checking whether char is unsigned" >&5
  5931. echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
  5932. if test "${ac_cv_c_char_unsigned+set}" = set; then
  5933. echo $ECHO_N "(cached) $ECHO_C" >&6
  5934. else
  5935. cat >conftest.$ac_ext <<_ACEOF
  5936. /* confdefs.h. */
  5937. _ACEOF
  5938. cat confdefs.h >>conftest.$ac_ext
  5939. cat >>conftest.$ac_ext <<_ACEOF
  5940. /* end confdefs.h. */
  5941. $ac_includes_default
  5942. int
  5943. main ()
  5944. {
  5945. static int test_array [1 - 2 * !(((char) -1) < 0)];
  5946. test_array [0] = 0
  5947. ;
  5948. return 0;
  5949. }
  5950. _ACEOF
  5951. rm -f conftest.$ac_objext
  5952. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5953. (eval $ac_compile) 2>conftest.er1
  5954. ac_status=$?
  5955. grep -v '^ *+' conftest.er1 >conftest.err
  5956. rm -f conftest.er1
  5957. cat conftest.err >&5
  5958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5959. (exit $ac_status); } &&
  5960. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5961. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5962. (eval $ac_try) 2>&5
  5963. ac_status=$?
  5964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5965. (exit $ac_status); }; } &&
  5966. { ac_try='test -s conftest.$ac_objext'
  5967. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5968. (eval $ac_try) 2>&5
  5969. ac_status=$?
  5970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5971. (exit $ac_status); }; }; then
  5972. ac_cv_c_char_unsigned=no
  5973. else
  5974. echo "$as_me: failed program was:" >&5
  5975. sed 's/^/| /' conftest.$ac_ext >&5
  5976. ac_cv_c_char_unsigned=yes
  5977. fi
  5978. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5979. fi
  5980. echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
  5981. echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
  5982. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  5983. cat >>confdefs.h <<\_ACEOF
  5984. #define __CHAR_UNSIGNED__ 1
  5985. _ACEOF
  5986. fi
  5987. echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
  5988. echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
  5989. if test "${ac_cv_c_stringize+set}" = set; then
  5990. echo $ECHO_N "(cached) $ECHO_C" >&6
  5991. else
  5992. cat >conftest.$ac_ext <<_ACEOF
  5993. /* confdefs.h. */
  5994. _ACEOF
  5995. cat confdefs.h >>conftest.$ac_ext
  5996. cat >>conftest.$ac_ext <<_ACEOF
  5997. /* end confdefs.h. */
  5998. #define x(y) #y
  5999. char *s = x(teststring);
  6000. _ACEOF
  6001. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6002. $EGREP "#teststring" >/dev/null 2>&1; then
  6003. ac_cv_c_stringize=no
  6004. else
  6005. ac_cv_c_stringize=yes
  6006. fi
  6007. rm -f conftest*
  6008. fi
  6009. echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
  6010. echo "${ECHO_T}$ac_cv_c_stringize" >&6
  6011. if test $ac_cv_c_stringize = yes; then
  6012. cat >>confdefs.h <<\_ACEOF
  6013. #define HAVE_STRINGIZE 1
  6014. _ACEOF
  6015. fi
  6016. echo "$as_me:$LINENO: checking for function prototypes" >&5
  6017. echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
  6018. if test "$ac_cv_prog_cc_stdc" != no; then
  6019. echo "$as_me:$LINENO: result: yes" >&5
  6020. echo "${ECHO_T}yes" >&6
  6021. cat >>confdefs.h <<\_ACEOF
  6022. #define PROTOTYPES 1
  6023. _ACEOF
  6024. cat >>confdefs.h <<\_ACEOF
  6025. #define __PROTOTYPES 1
  6026. _ACEOF
  6027. else
  6028. echo "$as_me:$LINENO: result: no" >&5
  6029. echo "${ECHO_T}no" >&6
  6030. fi
  6031. #checkpoint
  6032. cat >confcache <<\_ACEOF
  6033. # This file is a shell script that caches the results of configure
  6034. # tests run on this system so they can be shared between configure
  6035. # scripts and configure runs, see configure's option --config-cache.
  6036. # It is not useful on other systems. If it contains results you don't
  6037. # want to keep, you may remove or edit it.
  6038. #
  6039. # config.status only pays attention to the cache file if you give it
  6040. # the --recheck option to rerun configure.
  6041. #
  6042. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6043. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6044. # following values.
  6045. _ACEOF
  6046. # The following way of writing the cache mishandles newlines in values,
  6047. # but we know of no workaround that is simple, portable, and efficient.
  6048. # So, don't put newlines in cache variables' values.
  6049. # Ultrix sh set writes to stderr and can't be redirected directly,
  6050. # and sets the high bit in the cache file unless we assign to the vars.
  6051. {
  6052. (set) 2>&1 |
  6053. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6054. *ac_space=\ *)
  6055. # `set' does not quote correctly, so add quotes (double-quote
  6056. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6057. sed -n \
  6058. "s/'/'\\\\''/g;
  6059. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6060. ;;
  6061. *)
  6062. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6063. sed -n \
  6064. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  6065. ;;
  6066. esac;
  6067. } |
  6068. sed '
  6069. t clear
  6070. : clear
  6071. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6072. t end
  6073. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6074. : end' >>confcache
  6075. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  6076. if test -w $cache_file; then
  6077. test "x$cache_file" != "x/dev/null"
  6078. cat confcache >$cache_file
  6079. else
  6080. echo "not updating unwritable cache $cache_file"
  6081. fi
  6082. fi
  6083. rm -f confcache
  6084. echo "$as_me:$LINENO: checking for int" >&5
  6085. echo $ECHO_N "checking for int... $ECHO_C" >&6
  6086. if test "${ac_cv_type_int+set}" = set; then
  6087. echo $ECHO_N "(cached) $ECHO_C" >&6
  6088. else
  6089. cat >conftest.$ac_ext <<_ACEOF
  6090. /* confdefs.h. */
  6091. _ACEOF
  6092. cat confdefs.h >>conftest.$ac_ext
  6093. cat >>conftest.$ac_ext <<_ACEOF
  6094. /* end confdefs.h. */
  6095. $ac_includes_default
  6096. int
  6097. main ()
  6098. {
  6099. if ((int *) 0)
  6100. return 0;
  6101. if (sizeof (int))
  6102. return 0;
  6103. ;
  6104. return 0;
  6105. }
  6106. _ACEOF
  6107. rm -f conftest.$ac_objext
  6108. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6109. (eval $ac_compile) 2>conftest.er1
  6110. ac_status=$?
  6111. grep -v '^ *+' conftest.er1 >conftest.err
  6112. rm -f conftest.er1
  6113. cat conftest.err >&5
  6114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6115. (exit $ac_status); } &&
  6116. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6117. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6118. (eval $ac_try) 2>&5
  6119. ac_status=$?
  6120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6121. (exit $ac_status); }; } &&
  6122. { ac_try='test -s conftest.$ac_objext'
  6123. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6124. (eval $ac_try) 2>&5
  6125. ac_status=$?
  6126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6127. (exit $ac_status); }; }; then
  6128. ac_cv_type_int=yes
  6129. else
  6130. echo "$as_me: failed program was:" >&5
  6131. sed 's/^/| /' conftest.$ac_ext >&5
  6132. ac_cv_type_int=no
  6133. fi
  6134. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6135. fi
  6136. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  6137. echo "${ECHO_T}$ac_cv_type_int" >&6
  6138. echo "$as_me:$LINENO: checking size of int" >&5
  6139. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  6140. if test "${ac_cv_sizeof_int+set}" = set; then
  6141. echo $ECHO_N "(cached) $ECHO_C" >&6
  6142. else
  6143. if test "$ac_cv_type_int" = yes; then
  6144. # The cast to unsigned long works around a bug in the HP C Compiler
  6145. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6146. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6147. # This bug is HP SR number 8606223364.
  6148. if test "$cross_compiling" = yes; then
  6149. # Depending upon the size, compute the lo and hi bounds.
  6150. cat >conftest.$ac_ext <<_ACEOF
  6151. /* confdefs.h. */
  6152. _ACEOF
  6153. cat confdefs.h >>conftest.$ac_ext
  6154. cat >>conftest.$ac_ext <<_ACEOF
  6155. /* end confdefs.h. */
  6156. $ac_includes_default
  6157. int
  6158. main ()
  6159. {
  6160. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  6161. test_array [0] = 0
  6162. ;
  6163. return 0;
  6164. }
  6165. _ACEOF
  6166. rm -f conftest.$ac_objext
  6167. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6168. (eval $ac_compile) 2>conftest.er1
  6169. ac_status=$?
  6170. grep -v '^ *+' conftest.er1 >conftest.err
  6171. rm -f conftest.er1
  6172. cat conftest.err >&5
  6173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6174. (exit $ac_status); } &&
  6175. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6176. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6177. (eval $ac_try) 2>&5
  6178. ac_status=$?
  6179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6180. (exit $ac_status); }; } &&
  6181. { ac_try='test -s conftest.$ac_objext'
  6182. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6183. (eval $ac_try) 2>&5
  6184. ac_status=$?
  6185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6186. (exit $ac_status); }; }; then
  6187. ac_lo=0 ac_mid=0
  6188. while :; do
  6189. cat >conftest.$ac_ext <<_ACEOF
  6190. /* confdefs.h. */
  6191. _ACEOF
  6192. cat confdefs.h >>conftest.$ac_ext
  6193. cat >>conftest.$ac_ext <<_ACEOF
  6194. /* end confdefs.h. */
  6195. $ac_includes_default
  6196. int
  6197. main ()
  6198. {
  6199. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6200. test_array [0] = 0
  6201. ;
  6202. return 0;
  6203. }
  6204. _ACEOF
  6205. rm -f conftest.$ac_objext
  6206. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6207. (eval $ac_compile) 2>conftest.er1
  6208. ac_status=$?
  6209. grep -v '^ *+' conftest.er1 >conftest.err
  6210. rm -f conftest.er1
  6211. cat conftest.err >&5
  6212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6213. (exit $ac_status); } &&
  6214. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6215. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6216. (eval $ac_try) 2>&5
  6217. ac_status=$?
  6218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6219. (exit $ac_status); }; } &&
  6220. { ac_try='test -s conftest.$ac_objext'
  6221. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6222. (eval $ac_try) 2>&5
  6223. ac_status=$?
  6224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6225. (exit $ac_status); }; }; then
  6226. ac_hi=$ac_mid; break
  6227. else
  6228. echo "$as_me: failed program was:" >&5
  6229. sed 's/^/| /' conftest.$ac_ext >&5
  6230. ac_lo=`expr $ac_mid + 1`
  6231. if test $ac_lo -le $ac_mid; then
  6232. ac_lo= ac_hi=
  6233. break
  6234. fi
  6235. ac_mid=`expr 2 '*' $ac_mid + 1`
  6236. fi
  6237. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6238. done
  6239. else
  6240. echo "$as_me: failed program was:" >&5
  6241. sed 's/^/| /' conftest.$ac_ext >&5
  6242. cat >conftest.$ac_ext <<_ACEOF
  6243. /* confdefs.h. */
  6244. _ACEOF
  6245. cat confdefs.h >>conftest.$ac_ext
  6246. cat >>conftest.$ac_ext <<_ACEOF
  6247. /* end confdefs.h. */
  6248. $ac_includes_default
  6249. int
  6250. main ()
  6251. {
  6252. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  6253. test_array [0] = 0
  6254. ;
  6255. return 0;
  6256. }
  6257. _ACEOF
  6258. rm -f conftest.$ac_objext
  6259. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6260. (eval $ac_compile) 2>conftest.er1
  6261. ac_status=$?
  6262. grep -v '^ *+' conftest.er1 >conftest.err
  6263. rm -f conftest.er1
  6264. cat conftest.err >&5
  6265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6266. (exit $ac_status); } &&
  6267. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6268. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6269. (eval $ac_try) 2>&5
  6270. ac_status=$?
  6271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6272. (exit $ac_status); }; } &&
  6273. { ac_try='test -s conftest.$ac_objext'
  6274. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6275. (eval $ac_try) 2>&5
  6276. ac_status=$?
  6277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6278. (exit $ac_status); }; }; then
  6279. ac_hi=-1 ac_mid=-1
  6280. while :; do
  6281. cat >conftest.$ac_ext <<_ACEOF
  6282. /* confdefs.h. */
  6283. _ACEOF
  6284. cat confdefs.h >>conftest.$ac_ext
  6285. cat >>conftest.$ac_ext <<_ACEOF
  6286. /* end confdefs.h. */
  6287. $ac_includes_default
  6288. int
  6289. main ()
  6290. {
  6291. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  6292. test_array [0] = 0
  6293. ;
  6294. return 0;
  6295. }
  6296. _ACEOF
  6297. rm -f conftest.$ac_objext
  6298. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6299. (eval $ac_compile) 2>conftest.er1
  6300. ac_status=$?
  6301. grep -v '^ *+' conftest.er1 >conftest.err
  6302. rm -f conftest.er1
  6303. cat conftest.err >&5
  6304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6305. (exit $ac_status); } &&
  6306. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6307. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6308. (eval $ac_try) 2>&5
  6309. ac_status=$?
  6310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6311. (exit $ac_status); }; } &&
  6312. { ac_try='test -s conftest.$ac_objext'
  6313. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6314. (eval $ac_try) 2>&5
  6315. ac_status=$?
  6316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6317. (exit $ac_status); }; }; then
  6318. ac_lo=$ac_mid; break
  6319. else
  6320. echo "$as_me: failed program was:" >&5
  6321. sed 's/^/| /' conftest.$ac_ext >&5
  6322. ac_hi=`expr '(' $ac_mid ')' - 1`
  6323. if test $ac_mid -le $ac_hi; then
  6324. ac_lo= ac_hi=
  6325. break
  6326. fi
  6327. ac_mid=`expr 2 '*' $ac_mid`
  6328. fi
  6329. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6330. done
  6331. else
  6332. echo "$as_me: failed program was:" >&5
  6333. sed 's/^/| /' conftest.$ac_ext >&5
  6334. ac_lo= ac_hi=
  6335. fi
  6336. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6337. fi
  6338. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6339. # Binary search between lo and hi bounds.
  6340. while test "x$ac_lo" != "x$ac_hi"; do
  6341. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6342. cat >conftest.$ac_ext <<_ACEOF
  6343. /* confdefs.h. */
  6344. _ACEOF
  6345. cat confdefs.h >>conftest.$ac_ext
  6346. cat >>conftest.$ac_ext <<_ACEOF
  6347. /* end confdefs.h. */
  6348. $ac_includes_default
  6349. int
  6350. main ()
  6351. {
  6352. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6353. test_array [0] = 0
  6354. ;
  6355. return 0;
  6356. }
  6357. _ACEOF
  6358. rm -f conftest.$ac_objext
  6359. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6360. (eval $ac_compile) 2>conftest.er1
  6361. ac_status=$?
  6362. grep -v '^ *+' conftest.er1 >conftest.err
  6363. rm -f conftest.er1
  6364. cat conftest.err >&5
  6365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6366. (exit $ac_status); } &&
  6367. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6368. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6369. (eval $ac_try) 2>&5
  6370. ac_status=$?
  6371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6372. (exit $ac_status); }; } &&
  6373. { ac_try='test -s conftest.$ac_objext'
  6374. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6375. (eval $ac_try) 2>&5
  6376. ac_status=$?
  6377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6378. (exit $ac_status); }; }; then
  6379. ac_hi=$ac_mid
  6380. else
  6381. echo "$as_me: failed program was:" >&5
  6382. sed 's/^/| /' conftest.$ac_ext >&5
  6383. ac_lo=`expr '(' $ac_mid ')' + 1`
  6384. fi
  6385. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6386. done
  6387. case $ac_lo in
  6388. ?*) ac_cv_sizeof_int=$ac_lo;;
  6389. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6390. See \`config.log' for more details." >&5
  6391. echo "$as_me: error: cannot compute sizeof (int), 77
  6392. See \`config.log' for more details." >&2;}
  6393. { (exit 1); exit 1; }; } ;;
  6394. esac
  6395. else
  6396. if test "$cross_compiling" = yes; then
  6397. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6398. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6399. { (exit 1); exit 1; }; }
  6400. else
  6401. cat >conftest.$ac_ext <<_ACEOF
  6402. /* confdefs.h. */
  6403. _ACEOF
  6404. cat confdefs.h >>conftest.$ac_ext
  6405. cat >>conftest.$ac_ext <<_ACEOF
  6406. /* end confdefs.h. */
  6407. $ac_includes_default
  6408. long longval () { return (long) (sizeof (int)); }
  6409. unsigned long ulongval () { return (long) (sizeof (int)); }
  6410. #include <stdio.h>
  6411. #include <stdlib.h>
  6412. int
  6413. main ()
  6414. {
  6415. FILE *f = fopen ("conftest.val", "w");
  6416. if (! f)
  6417. exit (1);
  6418. if (((long) (sizeof (int))) < 0)
  6419. {
  6420. long i = longval ();
  6421. if (i != ((long) (sizeof (int))))
  6422. exit (1);
  6423. fprintf (f, "%ld\n", i);
  6424. }
  6425. else
  6426. {
  6427. unsigned long i = ulongval ();
  6428. if (i != ((long) (sizeof (int))))
  6429. exit (1);
  6430. fprintf (f, "%lu\n", i);
  6431. }
  6432. exit (ferror (f) || fclose (f) != 0);
  6433. ;
  6434. return 0;
  6435. }
  6436. _ACEOF
  6437. rm -f conftest$ac_exeext
  6438. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6439. (eval $ac_link) 2>&5
  6440. ac_status=$?
  6441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6442. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6443. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6444. (eval $ac_try) 2>&5
  6445. ac_status=$?
  6446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6447. (exit $ac_status); }; }; then
  6448. ac_cv_sizeof_int=`cat conftest.val`
  6449. else
  6450. echo "$as_me: program exited with status $ac_status" >&5
  6451. echo "$as_me: failed program was:" >&5
  6452. sed 's/^/| /' conftest.$ac_ext >&5
  6453. ( exit $ac_status )
  6454. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6455. See \`config.log' for more details." >&5
  6456. echo "$as_me: error: cannot compute sizeof (int), 77
  6457. See \`config.log' for more details." >&2;}
  6458. { (exit 1); exit 1; }; }
  6459. fi
  6460. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6461. fi
  6462. fi
  6463. rm -f conftest.val
  6464. else
  6465. ac_cv_sizeof_int=0
  6466. fi
  6467. fi
  6468. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  6469. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  6470. cat >>confdefs.h <<_ACEOF
  6471. #define SIZEOF_INT $ac_cv_sizeof_int
  6472. _ACEOF
  6473. echo "$as_me:$LINENO: checking for short" >&5
  6474. echo $ECHO_N "checking for short... $ECHO_C" >&6
  6475. if test "${ac_cv_type_short+set}" = set; then
  6476. echo $ECHO_N "(cached) $ECHO_C" >&6
  6477. else
  6478. cat >conftest.$ac_ext <<_ACEOF
  6479. /* confdefs.h. */
  6480. _ACEOF
  6481. cat confdefs.h >>conftest.$ac_ext
  6482. cat >>conftest.$ac_ext <<_ACEOF
  6483. /* end confdefs.h. */
  6484. $ac_includes_default
  6485. int
  6486. main ()
  6487. {
  6488. if ((short *) 0)
  6489. return 0;
  6490. if (sizeof (short))
  6491. return 0;
  6492. ;
  6493. return 0;
  6494. }
  6495. _ACEOF
  6496. rm -f conftest.$ac_objext
  6497. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6498. (eval $ac_compile) 2>conftest.er1
  6499. ac_status=$?
  6500. grep -v '^ *+' conftest.er1 >conftest.err
  6501. rm -f conftest.er1
  6502. cat conftest.err >&5
  6503. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6504. (exit $ac_status); } &&
  6505. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6506. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6507. (eval $ac_try) 2>&5
  6508. ac_status=$?
  6509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6510. (exit $ac_status); }; } &&
  6511. { ac_try='test -s conftest.$ac_objext'
  6512. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6513. (eval $ac_try) 2>&5
  6514. ac_status=$?
  6515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6516. (exit $ac_status); }; }; then
  6517. ac_cv_type_short=yes
  6518. else
  6519. echo "$as_me: failed program was:" >&5
  6520. sed 's/^/| /' conftest.$ac_ext >&5
  6521. ac_cv_type_short=no
  6522. fi
  6523. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6524. fi
  6525. echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  6526. echo "${ECHO_T}$ac_cv_type_short" >&6
  6527. echo "$as_me:$LINENO: checking size of short" >&5
  6528. echo $ECHO_N "checking size of short... $ECHO_C" >&6
  6529. if test "${ac_cv_sizeof_short+set}" = set; then
  6530. echo $ECHO_N "(cached) $ECHO_C" >&6
  6531. else
  6532. if test "$ac_cv_type_short" = yes; then
  6533. # The cast to unsigned long works around a bug in the HP C Compiler
  6534. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6535. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6536. # This bug is HP SR number 8606223364.
  6537. if test "$cross_compiling" = yes; then
  6538. # Depending upon the size, compute the lo and hi bounds.
  6539. cat >conftest.$ac_ext <<_ACEOF
  6540. /* confdefs.h. */
  6541. _ACEOF
  6542. cat confdefs.h >>conftest.$ac_ext
  6543. cat >>conftest.$ac_ext <<_ACEOF
  6544. /* end confdefs.h. */
  6545. $ac_includes_default
  6546. int
  6547. main ()
  6548. {
  6549. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
  6550. test_array [0] = 0
  6551. ;
  6552. return 0;
  6553. }
  6554. _ACEOF
  6555. rm -f conftest.$ac_objext
  6556. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6557. (eval $ac_compile) 2>conftest.er1
  6558. ac_status=$?
  6559. grep -v '^ *+' conftest.er1 >conftest.err
  6560. rm -f conftest.er1
  6561. cat conftest.err >&5
  6562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6563. (exit $ac_status); } &&
  6564. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6565. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6566. (eval $ac_try) 2>&5
  6567. ac_status=$?
  6568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6569. (exit $ac_status); }; } &&
  6570. { ac_try='test -s conftest.$ac_objext'
  6571. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6572. (eval $ac_try) 2>&5
  6573. ac_status=$?
  6574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6575. (exit $ac_status); }; }; then
  6576. ac_lo=0 ac_mid=0
  6577. while :; do
  6578. cat >conftest.$ac_ext <<_ACEOF
  6579. /* confdefs.h. */
  6580. _ACEOF
  6581. cat confdefs.h >>conftest.$ac_ext
  6582. cat >>conftest.$ac_ext <<_ACEOF
  6583. /* end confdefs.h. */
  6584. $ac_includes_default
  6585. int
  6586. main ()
  6587. {
  6588. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  6589. test_array [0] = 0
  6590. ;
  6591. return 0;
  6592. }
  6593. _ACEOF
  6594. rm -f conftest.$ac_objext
  6595. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6596. (eval $ac_compile) 2>conftest.er1
  6597. ac_status=$?
  6598. grep -v '^ *+' conftest.er1 >conftest.err
  6599. rm -f conftest.er1
  6600. cat conftest.err >&5
  6601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6602. (exit $ac_status); } &&
  6603. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6604. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6605. (eval $ac_try) 2>&5
  6606. ac_status=$?
  6607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6608. (exit $ac_status); }; } &&
  6609. { ac_try='test -s conftest.$ac_objext'
  6610. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6611. (eval $ac_try) 2>&5
  6612. ac_status=$?
  6613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6614. (exit $ac_status); }; }; then
  6615. ac_hi=$ac_mid; break
  6616. else
  6617. echo "$as_me: failed program was:" >&5
  6618. sed 's/^/| /' conftest.$ac_ext >&5
  6619. ac_lo=`expr $ac_mid + 1`
  6620. if test $ac_lo -le $ac_mid; then
  6621. ac_lo= ac_hi=
  6622. break
  6623. fi
  6624. ac_mid=`expr 2 '*' $ac_mid + 1`
  6625. fi
  6626. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6627. done
  6628. else
  6629. echo "$as_me: failed program was:" >&5
  6630. sed 's/^/| /' conftest.$ac_ext >&5
  6631. cat >conftest.$ac_ext <<_ACEOF
  6632. /* confdefs.h. */
  6633. _ACEOF
  6634. cat confdefs.h >>conftest.$ac_ext
  6635. cat >>conftest.$ac_ext <<_ACEOF
  6636. /* end confdefs.h. */
  6637. $ac_includes_default
  6638. int
  6639. main ()
  6640. {
  6641. static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
  6642. test_array [0] = 0
  6643. ;
  6644. return 0;
  6645. }
  6646. _ACEOF
  6647. rm -f conftest.$ac_objext
  6648. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6649. (eval $ac_compile) 2>conftest.er1
  6650. ac_status=$?
  6651. grep -v '^ *+' conftest.er1 >conftest.err
  6652. rm -f conftest.er1
  6653. cat conftest.err >&5
  6654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6655. (exit $ac_status); } &&
  6656. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6657. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6658. (eval $ac_try) 2>&5
  6659. ac_status=$?
  6660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6661. (exit $ac_status); }; } &&
  6662. { ac_try='test -s conftest.$ac_objext'
  6663. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6664. (eval $ac_try) 2>&5
  6665. ac_status=$?
  6666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6667. (exit $ac_status); }; }; then
  6668. ac_hi=-1 ac_mid=-1
  6669. while :; do
  6670. cat >conftest.$ac_ext <<_ACEOF
  6671. /* confdefs.h. */
  6672. _ACEOF
  6673. cat confdefs.h >>conftest.$ac_ext
  6674. cat >>conftest.$ac_ext <<_ACEOF
  6675. /* end confdefs.h. */
  6676. $ac_includes_default
  6677. int
  6678. main ()
  6679. {
  6680. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
  6681. test_array [0] = 0
  6682. ;
  6683. return 0;
  6684. }
  6685. _ACEOF
  6686. rm -f conftest.$ac_objext
  6687. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6688. (eval $ac_compile) 2>conftest.er1
  6689. ac_status=$?
  6690. grep -v '^ *+' conftest.er1 >conftest.err
  6691. rm -f conftest.er1
  6692. cat conftest.err >&5
  6693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6694. (exit $ac_status); } &&
  6695. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6696. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6697. (eval $ac_try) 2>&5
  6698. ac_status=$?
  6699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6700. (exit $ac_status); }; } &&
  6701. { ac_try='test -s conftest.$ac_objext'
  6702. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6703. (eval $ac_try) 2>&5
  6704. ac_status=$?
  6705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6706. (exit $ac_status); }; }; then
  6707. ac_lo=$ac_mid; break
  6708. else
  6709. echo "$as_me: failed program was:" >&5
  6710. sed 's/^/| /' conftest.$ac_ext >&5
  6711. ac_hi=`expr '(' $ac_mid ')' - 1`
  6712. if test $ac_mid -le $ac_hi; then
  6713. ac_lo= ac_hi=
  6714. break
  6715. fi
  6716. ac_mid=`expr 2 '*' $ac_mid`
  6717. fi
  6718. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6719. done
  6720. else
  6721. echo "$as_me: failed program was:" >&5
  6722. sed 's/^/| /' conftest.$ac_ext >&5
  6723. ac_lo= ac_hi=
  6724. fi
  6725. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6726. fi
  6727. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6728. # Binary search between lo and hi bounds.
  6729. while test "x$ac_lo" != "x$ac_hi"; do
  6730. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6731. cat >conftest.$ac_ext <<_ACEOF
  6732. /* confdefs.h. */
  6733. _ACEOF
  6734. cat confdefs.h >>conftest.$ac_ext
  6735. cat >>conftest.$ac_ext <<_ACEOF
  6736. /* end confdefs.h. */
  6737. $ac_includes_default
  6738. int
  6739. main ()
  6740. {
  6741. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  6742. test_array [0] = 0
  6743. ;
  6744. return 0;
  6745. }
  6746. _ACEOF
  6747. rm -f conftest.$ac_objext
  6748. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6749. (eval $ac_compile) 2>conftest.er1
  6750. ac_status=$?
  6751. grep -v '^ *+' conftest.er1 >conftest.err
  6752. rm -f conftest.er1
  6753. cat conftest.err >&5
  6754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6755. (exit $ac_status); } &&
  6756. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6757. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6758. (eval $ac_try) 2>&5
  6759. ac_status=$?
  6760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6761. (exit $ac_status); }; } &&
  6762. { ac_try='test -s conftest.$ac_objext'
  6763. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6764. (eval $ac_try) 2>&5
  6765. ac_status=$?
  6766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6767. (exit $ac_status); }; }; then
  6768. ac_hi=$ac_mid
  6769. else
  6770. echo "$as_me: failed program was:" >&5
  6771. sed 's/^/| /' conftest.$ac_ext >&5
  6772. ac_lo=`expr '(' $ac_mid ')' + 1`
  6773. fi
  6774. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6775. done
  6776. case $ac_lo in
  6777. ?*) ac_cv_sizeof_short=$ac_lo;;
  6778. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  6779. See \`config.log' for more details." >&5
  6780. echo "$as_me: error: cannot compute sizeof (short), 77
  6781. See \`config.log' for more details." >&2;}
  6782. { (exit 1); exit 1; }; } ;;
  6783. esac
  6784. else
  6785. if test "$cross_compiling" = yes; then
  6786. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6787. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6788. { (exit 1); exit 1; }; }
  6789. else
  6790. cat >conftest.$ac_ext <<_ACEOF
  6791. /* confdefs.h. */
  6792. _ACEOF
  6793. cat confdefs.h >>conftest.$ac_ext
  6794. cat >>conftest.$ac_ext <<_ACEOF
  6795. /* end confdefs.h. */
  6796. $ac_includes_default
  6797. long longval () { return (long) (sizeof (short)); }
  6798. unsigned long ulongval () { return (long) (sizeof (short)); }
  6799. #include <stdio.h>
  6800. #include <stdlib.h>
  6801. int
  6802. main ()
  6803. {
  6804. FILE *f = fopen ("conftest.val", "w");
  6805. if (! f)
  6806. exit (1);
  6807. if (((long) (sizeof (short))) < 0)
  6808. {
  6809. long i = longval ();
  6810. if (i != ((long) (sizeof (short))))
  6811. exit (1);
  6812. fprintf (f, "%ld\n", i);
  6813. }
  6814. else
  6815. {
  6816. unsigned long i = ulongval ();
  6817. if (i != ((long) (sizeof (short))))
  6818. exit (1);
  6819. fprintf (f, "%lu\n", i);
  6820. }
  6821. exit (ferror (f) || fclose (f) != 0);
  6822. ;
  6823. return 0;
  6824. }
  6825. _ACEOF
  6826. rm -f conftest$ac_exeext
  6827. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6828. (eval $ac_link) 2>&5
  6829. ac_status=$?
  6830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6831. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6832. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6833. (eval $ac_try) 2>&5
  6834. ac_status=$?
  6835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6836. (exit $ac_status); }; }; then
  6837. ac_cv_sizeof_short=`cat conftest.val`
  6838. else
  6839. echo "$as_me: program exited with status $ac_status" >&5
  6840. echo "$as_me: failed program was:" >&5
  6841. sed 's/^/| /' conftest.$ac_ext >&5
  6842. ( exit $ac_status )
  6843. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  6844. See \`config.log' for more details." >&5
  6845. echo "$as_me: error: cannot compute sizeof (short), 77
  6846. See \`config.log' for more details." >&2;}
  6847. { (exit 1); exit 1; }; }
  6848. fi
  6849. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6850. fi
  6851. fi
  6852. rm -f conftest.val
  6853. else
  6854. ac_cv_sizeof_short=0
  6855. fi
  6856. fi
  6857. echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  6858. echo "${ECHO_T}$ac_cv_sizeof_short" >&6
  6859. cat >>confdefs.h <<_ACEOF
  6860. #define SIZEOF_SHORT $ac_cv_sizeof_short
  6861. _ACEOF
  6862. echo "$as_me:$LINENO: checking for long" >&5
  6863. echo $ECHO_N "checking for long... $ECHO_C" >&6
  6864. if test "${ac_cv_type_long+set}" = set; then
  6865. echo $ECHO_N "(cached) $ECHO_C" >&6
  6866. else
  6867. cat >conftest.$ac_ext <<_ACEOF
  6868. /* confdefs.h. */
  6869. _ACEOF
  6870. cat confdefs.h >>conftest.$ac_ext
  6871. cat >>conftest.$ac_ext <<_ACEOF
  6872. /* end confdefs.h. */
  6873. $ac_includes_default
  6874. int
  6875. main ()
  6876. {
  6877. if ((long *) 0)
  6878. return 0;
  6879. if (sizeof (long))
  6880. return 0;
  6881. ;
  6882. return 0;
  6883. }
  6884. _ACEOF
  6885. rm -f conftest.$ac_objext
  6886. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6887. (eval $ac_compile) 2>conftest.er1
  6888. ac_status=$?
  6889. grep -v '^ *+' conftest.er1 >conftest.err
  6890. rm -f conftest.er1
  6891. cat conftest.err >&5
  6892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6893. (exit $ac_status); } &&
  6894. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6895. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6896. (eval $ac_try) 2>&5
  6897. ac_status=$?
  6898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6899. (exit $ac_status); }; } &&
  6900. { ac_try='test -s conftest.$ac_objext'
  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); }; }; then
  6906. ac_cv_type_long=yes
  6907. else
  6908. echo "$as_me: failed program was:" >&5
  6909. sed 's/^/| /' conftest.$ac_ext >&5
  6910. ac_cv_type_long=no
  6911. fi
  6912. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6913. fi
  6914. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  6915. echo "${ECHO_T}$ac_cv_type_long" >&6
  6916. echo "$as_me:$LINENO: checking size of long" >&5
  6917. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  6918. if test "${ac_cv_sizeof_long+set}" = set; then
  6919. echo $ECHO_N "(cached) $ECHO_C" >&6
  6920. else
  6921. if test "$ac_cv_type_long" = yes; then
  6922. # The cast to unsigned long works around a bug in the HP C Compiler
  6923. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6924. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6925. # This bug is HP SR number 8606223364.
  6926. if test "$cross_compiling" = yes; then
  6927. # Depending upon the size, compute the lo and hi bounds.
  6928. cat >conftest.$ac_ext <<_ACEOF
  6929. /* confdefs.h. */
  6930. _ACEOF
  6931. cat confdefs.h >>conftest.$ac_ext
  6932. cat >>conftest.$ac_ext <<_ACEOF
  6933. /* end confdefs.h. */
  6934. $ac_includes_default
  6935. int
  6936. main ()
  6937. {
  6938. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  6939. test_array [0] = 0
  6940. ;
  6941. return 0;
  6942. }
  6943. _ACEOF
  6944. rm -f conftest.$ac_objext
  6945. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6946. (eval $ac_compile) 2>conftest.er1
  6947. ac_status=$?
  6948. grep -v '^ *+' conftest.er1 >conftest.err
  6949. rm -f conftest.er1
  6950. cat conftest.err >&5
  6951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6952. (exit $ac_status); } &&
  6953. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6954. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6955. (eval $ac_try) 2>&5
  6956. ac_status=$?
  6957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6958. (exit $ac_status); }; } &&
  6959. { ac_try='test -s conftest.$ac_objext'
  6960. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6961. (eval $ac_try) 2>&5
  6962. ac_status=$?
  6963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6964. (exit $ac_status); }; }; then
  6965. ac_lo=0 ac_mid=0
  6966. while :; do
  6967. cat >conftest.$ac_ext <<_ACEOF
  6968. /* confdefs.h. */
  6969. _ACEOF
  6970. cat confdefs.h >>conftest.$ac_ext
  6971. cat >>conftest.$ac_ext <<_ACEOF
  6972. /* end confdefs.h. */
  6973. $ac_includes_default
  6974. int
  6975. main ()
  6976. {
  6977. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6978. test_array [0] = 0
  6979. ;
  6980. return 0;
  6981. }
  6982. _ACEOF
  6983. rm -f conftest.$ac_objext
  6984. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6985. (eval $ac_compile) 2>conftest.er1
  6986. ac_status=$?
  6987. grep -v '^ *+' conftest.er1 >conftest.err
  6988. rm -f conftest.er1
  6989. cat conftest.err >&5
  6990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6991. (exit $ac_status); } &&
  6992. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6993. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6994. (eval $ac_try) 2>&5
  6995. ac_status=$?
  6996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6997. (exit $ac_status); }; } &&
  6998. { ac_try='test -s conftest.$ac_objext'
  6999. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7000. (eval $ac_try) 2>&5
  7001. ac_status=$?
  7002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7003. (exit $ac_status); }; }; then
  7004. ac_hi=$ac_mid; break
  7005. else
  7006. echo "$as_me: failed program was:" >&5
  7007. sed 's/^/| /' conftest.$ac_ext >&5
  7008. ac_lo=`expr $ac_mid + 1`
  7009. if test $ac_lo -le $ac_mid; then
  7010. ac_lo= ac_hi=
  7011. break
  7012. fi
  7013. ac_mid=`expr 2 '*' $ac_mid + 1`
  7014. fi
  7015. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7016. done
  7017. else
  7018. echo "$as_me: failed program was:" >&5
  7019. sed 's/^/| /' conftest.$ac_ext >&5
  7020. cat >conftest.$ac_ext <<_ACEOF
  7021. /* confdefs.h. */
  7022. _ACEOF
  7023. cat confdefs.h >>conftest.$ac_ext
  7024. cat >>conftest.$ac_ext <<_ACEOF
  7025. /* end confdefs.h. */
  7026. $ac_includes_default
  7027. int
  7028. main ()
  7029. {
  7030. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  7031. test_array [0] = 0
  7032. ;
  7033. return 0;
  7034. }
  7035. _ACEOF
  7036. rm -f conftest.$ac_objext
  7037. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7038. (eval $ac_compile) 2>conftest.er1
  7039. ac_status=$?
  7040. grep -v '^ *+' conftest.er1 >conftest.err
  7041. rm -f conftest.er1
  7042. cat conftest.err >&5
  7043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7044. (exit $ac_status); } &&
  7045. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7046. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7047. (eval $ac_try) 2>&5
  7048. ac_status=$?
  7049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7050. (exit $ac_status); }; } &&
  7051. { ac_try='test -s conftest.$ac_objext'
  7052. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7053. (eval $ac_try) 2>&5
  7054. ac_status=$?
  7055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7056. (exit $ac_status); }; }; then
  7057. ac_hi=-1 ac_mid=-1
  7058. while :; do
  7059. cat >conftest.$ac_ext <<_ACEOF
  7060. /* confdefs.h. */
  7061. _ACEOF
  7062. cat confdefs.h >>conftest.$ac_ext
  7063. cat >>conftest.$ac_ext <<_ACEOF
  7064. /* end confdefs.h. */
  7065. $ac_includes_default
  7066. int
  7067. main ()
  7068. {
  7069. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  7070. test_array [0] = 0
  7071. ;
  7072. return 0;
  7073. }
  7074. _ACEOF
  7075. rm -f conftest.$ac_objext
  7076. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7077. (eval $ac_compile) 2>conftest.er1
  7078. ac_status=$?
  7079. grep -v '^ *+' conftest.er1 >conftest.err
  7080. rm -f conftest.er1
  7081. cat conftest.err >&5
  7082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7083. (exit $ac_status); } &&
  7084. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7085. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7086. (eval $ac_try) 2>&5
  7087. ac_status=$?
  7088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7089. (exit $ac_status); }; } &&
  7090. { ac_try='test -s conftest.$ac_objext'
  7091. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7092. (eval $ac_try) 2>&5
  7093. ac_status=$?
  7094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7095. (exit $ac_status); }; }; then
  7096. ac_lo=$ac_mid; break
  7097. else
  7098. echo "$as_me: failed program was:" >&5
  7099. sed 's/^/| /' conftest.$ac_ext >&5
  7100. ac_hi=`expr '(' $ac_mid ')' - 1`
  7101. if test $ac_mid -le $ac_hi; then
  7102. ac_lo= ac_hi=
  7103. break
  7104. fi
  7105. ac_mid=`expr 2 '*' $ac_mid`
  7106. fi
  7107. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7108. done
  7109. else
  7110. echo "$as_me: failed program was:" >&5
  7111. sed 's/^/| /' conftest.$ac_ext >&5
  7112. ac_lo= ac_hi=
  7113. fi
  7114. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7115. fi
  7116. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7117. # Binary search between lo and hi bounds.
  7118. while test "x$ac_lo" != "x$ac_hi"; do
  7119. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7120. cat >conftest.$ac_ext <<_ACEOF
  7121. /* confdefs.h. */
  7122. _ACEOF
  7123. cat confdefs.h >>conftest.$ac_ext
  7124. cat >>conftest.$ac_ext <<_ACEOF
  7125. /* end confdefs.h. */
  7126. $ac_includes_default
  7127. int
  7128. main ()
  7129. {
  7130. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  7131. test_array [0] = 0
  7132. ;
  7133. return 0;
  7134. }
  7135. _ACEOF
  7136. rm -f conftest.$ac_objext
  7137. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7138. (eval $ac_compile) 2>conftest.er1
  7139. ac_status=$?
  7140. grep -v '^ *+' conftest.er1 >conftest.err
  7141. rm -f conftest.er1
  7142. cat conftest.err >&5
  7143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7144. (exit $ac_status); } &&
  7145. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7146. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7147. (eval $ac_try) 2>&5
  7148. ac_status=$?
  7149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7150. (exit $ac_status); }; } &&
  7151. { ac_try='test -s conftest.$ac_objext'
  7152. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7153. (eval $ac_try) 2>&5
  7154. ac_status=$?
  7155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7156. (exit $ac_status); }; }; then
  7157. ac_hi=$ac_mid
  7158. else
  7159. echo "$as_me: failed program was:" >&5
  7160. sed 's/^/| /' conftest.$ac_ext >&5
  7161. ac_lo=`expr '(' $ac_mid ')' + 1`
  7162. fi
  7163. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7164. done
  7165. case $ac_lo in
  7166. ?*) ac_cv_sizeof_long=$ac_lo;;
  7167. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  7168. See \`config.log' for more details." >&5
  7169. echo "$as_me: error: cannot compute sizeof (long), 77
  7170. See \`config.log' for more details." >&2;}
  7171. { (exit 1); exit 1; }; } ;;
  7172. esac
  7173. else
  7174. if test "$cross_compiling" = yes; then
  7175. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7176. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7177. { (exit 1); exit 1; }; }
  7178. else
  7179. cat >conftest.$ac_ext <<_ACEOF
  7180. /* confdefs.h. */
  7181. _ACEOF
  7182. cat confdefs.h >>conftest.$ac_ext
  7183. cat >>conftest.$ac_ext <<_ACEOF
  7184. /* end confdefs.h. */
  7185. $ac_includes_default
  7186. long longval () { return (long) (sizeof (long)); }
  7187. unsigned long ulongval () { return (long) (sizeof (long)); }
  7188. #include <stdio.h>
  7189. #include <stdlib.h>
  7190. int
  7191. main ()
  7192. {
  7193. FILE *f = fopen ("conftest.val", "w");
  7194. if (! f)
  7195. exit (1);
  7196. if (((long) (sizeof (long))) < 0)
  7197. {
  7198. long i = longval ();
  7199. if (i != ((long) (sizeof (long))))
  7200. exit (1);
  7201. fprintf (f, "%ld\n", i);
  7202. }
  7203. else
  7204. {
  7205. unsigned long i = ulongval ();
  7206. if (i != ((long) (sizeof (long))))
  7207. exit (1);
  7208. fprintf (f, "%lu\n", i);
  7209. }
  7210. exit (ferror (f) || fclose (f) != 0);
  7211. ;
  7212. return 0;
  7213. }
  7214. _ACEOF
  7215. rm -f conftest$ac_exeext
  7216. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7217. (eval $ac_link) 2>&5
  7218. ac_status=$?
  7219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7220. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7221. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7222. (eval $ac_try) 2>&5
  7223. ac_status=$?
  7224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7225. (exit $ac_status); }; }; then
  7226. ac_cv_sizeof_long=`cat conftest.val`
  7227. else
  7228. echo "$as_me: program exited with status $ac_status" >&5
  7229. echo "$as_me: failed program was:" >&5
  7230. sed 's/^/| /' conftest.$ac_ext >&5
  7231. ( exit $ac_status )
  7232. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  7233. See \`config.log' for more details." >&5
  7234. echo "$as_me: error: cannot compute sizeof (long), 77
  7235. See \`config.log' for more details." >&2;}
  7236. { (exit 1); exit 1; }; }
  7237. fi
  7238. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7239. fi
  7240. fi
  7241. rm -f conftest.val
  7242. else
  7243. ac_cv_sizeof_long=0
  7244. fi
  7245. fi
  7246. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  7247. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  7248. cat >>confdefs.h <<_ACEOF
  7249. #define SIZEOF_LONG $ac_cv_sizeof_long
  7250. _ACEOF
  7251. echo "$as_me:$LINENO: checking for long long" >&5
  7252. echo $ECHO_N "checking for long long... $ECHO_C" >&6
  7253. if test "${ac_cv_type_long_long+set}" = set; then
  7254. echo $ECHO_N "(cached) $ECHO_C" >&6
  7255. else
  7256. cat >conftest.$ac_ext <<_ACEOF
  7257. /* confdefs.h. */
  7258. _ACEOF
  7259. cat confdefs.h >>conftest.$ac_ext
  7260. cat >>conftest.$ac_ext <<_ACEOF
  7261. /* end confdefs.h. */
  7262. $ac_includes_default
  7263. int
  7264. main ()
  7265. {
  7266. if ((long long *) 0)
  7267. return 0;
  7268. if (sizeof (long long))
  7269. return 0;
  7270. ;
  7271. return 0;
  7272. }
  7273. _ACEOF
  7274. rm -f conftest.$ac_objext
  7275. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7276. (eval $ac_compile) 2>conftest.er1
  7277. ac_status=$?
  7278. grep -v '^ *+' conftest.er1 >conftest.err
  7279. rm -f conftest.er1
  7280. cat conftest.err >&5
  7281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7282. (exit $ac_status); } &&
  7283. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7284. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7285. (eval $ac_try) 2>&5
  7286. ac_status=$?
  7287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7288. (exit $ac_status); }; } &&
  7289. { ac_try='test -s conftest.$ac_objext'
  7290. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7291. (eval $ac_try) 2>&5
  7292. ac_status=$?
  7293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7294. (exit $ac_status); }; }; then
  7295. ac_cv_type_long_long=yes
  7296. else
  7297. echo "$as_me: failed program was:" >&5
  7298. sed 's/^/| /' conftest.$ac_ext >&5
  7299. ac_cv_type_long_long=no
  7300. fi
  7301. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7302. fi
  7303. echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  7304. echo "${ECHO_T}$ac_cv_type_long_long" >&6
  7305. echo "$as_me:$LINENO: checking size of long long" >&5
  7306. echo $ECHO_N "checking size of long long... $ECHO_C" >&6
  7307. if test "${ac_cv_sizeof_long_long+set}" = set; then
  7308. echo $ECHO_N "(cached) $ECHO_C" >&6
  7309. else
  7310. if test "$ac_cv_type_long_long" = yes; then
  7311. # The cast to unsigned long works around a bug in the HP C Compiler
  7312. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7313. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7314. # This bug is HP SR number 8606223364.
  7315. if test "$cross_compiling" = yes; then
  7316. # Depending upon the size, compute the lo and hi bounds.
  7317. cat >conftest.$ac_ext <<_ACEOF
  7318. /* confdefs.h. */
  7319. _ACEOF
  7320. cat confdefs.h >>conftest.$ac_ext
  7321. cat >>conftest.$ac_ext <<_ACEOF
  7322. /* end confdefs.h. */
  7323. $ac_includes_default
  7324. int
  7325. main ()
  7326. {
  7327. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
  7328. test_array [0] = 0
  7329. ;
  7330. return 0;
  7331. }
  7332. _ACEOF
  7333. rm -f conftest.$ac_objext
  7334. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7335. (eval $ac_compile) 2>conftest.er1
  7336. ac_status=$?
  7337. grep -v '^ *+' conftest.er1 >conftest.err
  7338. rm -f conftest.er1
  7339. cat conftest.err >&5
  7340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7341. (exit $ac_status); } &&
  7342. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7343. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7344. (eval $ac_try) 2>&5
  7345. ac_status=$?
  7346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7347. (exit $ac_status); }; } &&
  7348. { ac_try='test -s conftest.$ac_objext'
  7349. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7350. (eval $ac_try) 2>&5
  7351. ac_status=$?
  7352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7353. (exit $ac_status); }; }; then
  7354. ac_lo=0 ac_mid=0
  7355. while :; do
  7356. cat >conftest.$ac_ext <<_ACEOF
  7357. /* confdefs.h. */
  7358. _ACEOF
  7359. cat confdefs.h >>conftest.$ac_ext
  7360. cat >>conftest.$ac_ext <<_ACEOF
  7361. /* end confdefs.h. */
  7362. $ac_includes_default
  7363. int
  7364. main ()
  7365. {
  7366. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  7367. test_array [0] = 0
  7368. ;
  7369. return 0;
  7370. }
  7371. _ACEOF
  7372. rm -f conftest.$ac_objext
  7373. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7374. (eval $ac_compile) 2>conftest.er1
  7375. ac_status=$?
  7376. grep -v '^ *+' conftest.er1 >conftest.err
  7377. rm -f conftest.er1
  7378. cat conftest.err >&5
  7379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7380. (exit $ac_status); } &&
  7381. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7382. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7383. (eval $ac_try) 2>&5
  7384. ac_status=$?
  7385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7386. (exit $ac_status); }; } &&
  7387. { ac_try='test -s conftest.$ac_objext'
  7388. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7389. (eval $ac_try) 2>&5
  7390. ac_status=$?
  7391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7392. (exit $ac_status); }; }; then
  7393. ac_hi=$ac_mid; break
  7394. else
  7395. echo "$as_me: failed program was:" >&5
  7396. sed 's/^/| /' conftest.$ac_ext >&5
  7397. ac_lo=`expr $ac_mid + 1`
  7398. if test $ac_lo -le $ac_mid; then
  7399. ac_lo= ac_hi=
  7400. break
  7401. fi
  7402. ac_mid=`expr 2 '*' $ac_mid + 1`
  7403. fi
  7404. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7405. done
  7406. else
  7407. echo "$as_me: failed program was:" >&5
  7408. sed 's/^/| /' conftest.$ac_ext >&5
  7409. cat >conftest.$ac_ext <<_ACEOF
  7410. /* confdefs.h. */
  7411. _ACEOF
  7412. cat confdefs.h >>conftest.$ac_ext
  7413. cat >>conftest.$ac_ext <<_ACEOF
  7414. /* end confdefs.h. */
  7415. $ac_includes_default
  7416. int
  7417. main ()
  7418. {
  7419. static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
  7420. test_array [0] = 0
  7421. ;
  7422. return 0;
  7423. }
  7424. _ACEOF
  7425. rm -f conftest.$ac_objext
  7426. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7427. (eval $ac_compile) 2>conftest.er1
  7428. ac_status=$?
  7429. grep -v '^ *+' conftest.er1 >conftest.err
  7430. rm -f conftest.er1
  7431. cat conftest.err >&5
  7432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7433. (exit $ac_status); } &&
  7434. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7435. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7436. (eval $ac_try) 2>&5
  7437. ac_status=$?
  7438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7439. (exit $ac_status); }; } &&
  7440. { ac_try='test -s conftest.$ac_objext'
  7441. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7442. (eval $ac_try) 2>&5
  7443. ac_status=$?
  7444. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7445. (exit $ac_status); }; }; then
  7446. ac_hi=-1 ac_mid=-1
  7447. while :; do
  7448. cat >conftest.$ac_ext <<_ACEOF
  7449. /* confdefs.h. */
  7450. _ACEOF
  7451. cat confdefs.h >>conftest.$ac_ext
  7452. cat >>conftest.$ac_ext <<_ACEOF
  7453. /* end confdefs.h. */
  7454. $ac_includes_default
  7455. int
  7456. main ()
  7457. {
  7458. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
  7459. test_array [0] = 0
  7460. ;
  7461. return 0;
  7462. }
  7463. _ACEOF
  7464. rm -f conftest.$ac_objext
  7465. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7466. (eval $ac_compile) 2>conftest.er1
  7467. ac_status=$?
  7468. grep -v '^ *+' conftest.er1 >conftest.err
  7469. rm -f conftest.er1
  7470. cat conftest.err >&5
  7471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7472. (exit $ac_status); } &&
  7473. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7474. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7475. (eval $ac_try) 2>&5
  7476. ac_status=$?
  7477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7478. (exit $ac_status); }; } &&
  7479. { ac_try='test -s conftest.$ac_objext'
  7480. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7481. (eval $ac_try) 2>&5
  7482. ac_status=$?
  7483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7484. (exit $ac_status); }; }; then
  7485. ac_lo=$ac_mid; break
  7486. else
  7487. echo "$as_me: failed program was:" >&5
  7488. sed 's/^/| /' conftest.$ac_ext >&5
  7489. ac_hi=`expr '(' $ac_mid ')' - 1`
  7490. if test $ac_mid -le $ac_hi; then
  7491. ac_lo= ac_hi=
  7492. break
  7493. fi
  7494. ac_mid=`expr 2 '*' $ac_mid`
  7495. fi
  7496. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7497. done
  7498. else
  7499. echo "$as_me: failed program was:" >&5
  7500. sed 's/^/| /' conftest.$ac_ext >&5
  7501. ac_lo= ac_hi=
  7502. fi
  7503. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7504. fi
  7505. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7506. # Binary search between lo and hi bounds.
  7507. while test "x$ac_lo" != "x$ac_hi"; do
  7508. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7509. cat >conftest.$ac_ext <<_ACEOF
  7510. /* confdefs.h. */
  7511. _ACEOF
  7512. cat confdefs.h >>conftest.$ac_ext
  7513. cat >>conftest.$ac_ext <<_ACEOF
  7514. /* end confdefs.h. */
  7515. $ac_includes_default
  7516. int
  7517. main ()
  7518. {
  7519. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  7520. test_array [0] = 0
  7521. ;
  7522. return 0;
  7523. }
  7524. _ACEOF
  7525. rm -f conftest.$ac_objext
  7526. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7527. (eval $ac_compile) 2>conftest.er1
  7528. ac_status=$?
  7529. grep -v '^ *+' conftest.er1 >conftest.err
  7530. rm -f conftest.er1
  7531. cat conftest.err >&5
  7532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7533. (exit $ac_status); } &&
  7534. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7535. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7536. (eval $ac_try) 2>&5
  7537. ac_status=$?
  7538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7539. (exit $ac_status); }; } &&
  7540. { ac_try='test -s conftest.$ac_objext'
  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); }; }; then
  7546. ac_hi=$ac_mid
  7547. else
  7548. echo "$as_me: failed program was:" >&5
  7549. sed 's/^/| /' conftest.$ac_ext >&5
  7550. ac_lo=`expr '(' $ac_mid ')' + 1`
  7551. fi
  7552. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7553. done
  7554. case $ac_lo in
  7555. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  7556. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  7557. See \`config.log' for more details." >&5
  7558. echo "$as_me: error: cannot compute sizeof (long long), 77
  7559. See \`config.log' for more details." >&2;}
  7560. { (exit 1); exit 1; }; } ;;
  7561. esac
  7562. else
  7563. if test "$cross_compiling" = yes; then
  7564. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7565. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7566. { (exit 1); exit 1; }; }
  7567. else
  7568. cat >conftest.$ac_ext <<_ACEOF
  7569. /* confdefs.h. */
  7570. _ACEOF
  7571. cat confdefs.h >>conftest.$ac_ext
  7572. cat >>conftest.$ac_ext <<_ACEOF
  7573. /* end confdefs.h. */
  7574. $ac_includes_default
  7575. long longval () { return (long) (sizeof (long long)); }
  7576. unsigned long ulongval () { return (long) (sizeof (long long)); }
  7577. #include <stdio.h>
  7578. #include <stdlib.h>
  7579. int
  7580. main ()
  7581. {
  7582. FILE *f = fopen ("conftest.val", "w");
  7583. if (! f)
  7584. exit (1);
  7585. if (((long) (sizeof (long long))) < 0)
  7586. {
  7587. long i = longval ();
  7588. if (i != ((long) (sizeof (long long))))
  7589. exit (1);
  7590. fprintf (f, "%ld\n", i);
  7591. }
  7592. else
  7593. {
  7594. unsigned long i = ulongval ();
  7595. if (i != ((long) (sizeof (long long))))
  7596. exit (1);
  7597. fprintf (f, "%lu\n", i);
  7598. }
  7599. exit (ferror (f) || fclose (f) != 0);
  7600. ;
  7601. return 0;
  7602. }
  7603. _ACEOF
  7604. rm -f conftest$ac_exeext
  7605. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7606. (eval $ac_link) 2>&5
  7607. ac_status=$?
  7608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7609. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7610. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7611. (eval $ac_try) 2>&5
  7612. ac_status=$?
  7613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7614. (exit $ac_status); }; }; then
  7615. ac_cv_sizeof_long_long=`cat conftest.val`
  7616. else
  7617. echo "$as_me: program exited with status $ac_status" >&5
  7618. echo "$as_me: failed program was:" >&5
  7619. sed 's/^/| /' conftest.$ac_ext >&5
  7620. ( exit $ac_status )
  7621. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  7622. See \`config.log' for more details." >&5
  7623. echo "$as_me: error: cannot compute sizeof (long long), 77
  7624. See \`config.log' for more details." >&2;}
  7625. { (exit 1); exit 1; }; }
  7626. fi
  7627. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7628. fi
  7629. fi
  7630. rm -f conftest.val
  7631. else
  7632. ac_cv_sizeof_long_long=0
  7633. fi
  7634. fi
  7635. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  7636. echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
  7637. cat >>confdefs.h <<_ACEOF
  7638. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  7639. _ACEOF
  7640. if test $ac_cv_c_compiler_gnu = yes; then
  7641. echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  7642. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  7643. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  7644. echo $ECHO_N "(cached) $ECHO_C" >&6
  7645. else
  7646. ac_pattern="Autoconf.*'x'"
  7647. cat >conftest.$ac_ext <<_ACEOF
  7648. /* confdefs.h. */
  7649. _ACEOF
  7650. cat confdefs.h >>conftest.$ac_ext
  7651. cat >>conftest.$ac_ext <<_ACEOF
  7652. /* end confdefs.h. */
  7653. #include <sgtty.h>
  7654. Autoconf TIOCGETP
  7655. _ACEOF
  7656. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7657. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7658. ac_cv_prog_gcc_traditional=yes
  7659. else
  7660. ac_cv_prog_gcc_traditional=no
  7661. fi
  7662. rm -f conftest*
  7663. if test $ac_cv_prog_gcc_traditional = no; then
  7664. cat >conftest.$ac_ext <<_ACEOF
  7665. /* confdefs.h. */
  7666. _ACEOF
  7667. cat confdefs.h >>conftest.$ac_ext
  7668. cat >>conftest.$ac_ext <<_ACEOF
  7669. /* end confdefs.h. */
  7670. #include <termio.h>
  7671. Autoconf TCGETA
  7672. _ACEOF
  7673. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7674. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7675. ac_cv_prog_gcc_traditional=yes
  7676. fi
  7677. rm -f conftest*
  7678. fi
  7679. fi
  7680. echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  7681. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  7682. if test $ac_cv_prog_gcc_traditional = yes; then
  7683. CC="$CC -traditional"
  7684. fi
  7685. fi
  7686. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7687. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7688. if test "${ac_cv_struct_tm+set}" = set; then
  7689. echo $ECHO_N "(cached) $ECHO_C" >&6
  7690. else
  7691. cat >conftest.$ac_ext <<_ACEOF
  7692. /* confdefs.h. */
  7693. _ACEOF
  7694. cat confdefs.h >>conftest.$ac_ext
  7695. cat >>conftest.$ac_ext <<_ACEOF
  7696. /* end confdefs.h. */
  7697. #include <sys/types.h>
  7698. #include <time.h>
  7699. int
  7700. main ()
  7701. {
  7702. struct tm *tp; tp->tm_sec;
  7703. ;
  7704. return 0;
  7705. }
  7706. _ACEOF
  7707. rm -f conftest.$ac_objext
  7708. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7709. (eval $ac_compile) 2>conftest.er1
  7710. ac_status=$?
  7711. grep -v '^ *+' conftest.er1 >conftest.err
  7712. rm -f conftest.er1
  7713. cat conftest.err >&5
  7714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7715. (exit $ac_status); } &&
  7716. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7717. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7718. (eval $ac_try) 2>&5
  7719. ac_status=$?
  7720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7721. (exit $ac_status); }; } &&
  7722. { ac_try='test -s conftest.$ac_objext'
  7723. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7724. (eval $ac_try) 2>&5
  7725. ac_status=$?
  7726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7727. (exit $ac_status); }; }; then
  7728. ac_cv_struct_tm=time.h
  7729. else
  7730. echo "$as_me: failed program was:" >&5
  7731. sed 's/^/| /' conftest.$ac_ext >&5
  7732. ac_cv_struct_tm=sys/time.h
  7733. fi
  7734. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7735. fi
  7736. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7737. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7738. if test $ac_cv_struct_tm = sys/time.h; then
  7739. cat >>confdefs.h <<\_ACEOF
  7740. #define TM_IN_SYS_TIME 1
  7741. _ACEOF
  7742. fi
  7743. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  7744. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  7745. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  7746. echo $ECHO_N "(cached) $ECHO_C" >&6
  7747. else
  7748. cat >conftest.$ac_ext <<_ACEOF
  7749. /* confdefs.h. */
  7750. _ACEOF
  7751. cat confdefs.h >>conftest.$ac_ext
  7752. cat >>conftest.$ac_ext <<_ACEOF
  7753. /* end confdefs.h. */
  7754. #include <sys/types.h>
  7755. #include <$ac_cv_struct_tm>
  7756. int
  7757. main ()
  7758. {
  7759. static struct tm ac_aggr;
  7760. if (ac_aggr.tm_zone)
  7761. return 0;
  7762. ;
  7763. return 0;
  7764. }
  7765. _ACEOF
  7766. rm -f conftest.$ac_objext
  7767. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7768. (eval $ac_compile) 2>conftest.er1
  7769. ac_status=$?
  7770. grep -v '^ *+' conftest.er1 >conftest.err
  7771. rm -f conftest.er1
  7772. cat conftest.err >&5
  7773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7774. (exit $ac_status); } &&
  7775. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7776. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7777. (eval $ac_try) 2>&5
  7778. ac_status=$?
  7779. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7780. (exit $ac_status); }; } &&
  7781. { ac_try='test -s conftest.$ac_objext'
  7782. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7783. (eval $ac_try) 2>&5
  7784. ac_status=$?
  7785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7786. (exit $ac_status); }; }; then
  7787. ac_cv_member_struct_tm_tm_zone=yes
  7788. else
  7789. echo "$as_me: failed program was:" >&5
  7790. sed 's/^/| /' conftest.$ac_ext >&5
  7791. cat >conftest.$ac_ext <<_ACEOF
  7792. /* confdefs.h. */
  7793. _ACEOF
  7794. cat confdefs.h >>conftest.$ac_ext
  7795. cat >>conftest.$ac_ext <<_ACEOF
  7796. /* end confdefs.h. */
  7797. #include <sys/types.h>
  7798. #include <$ac_cv_struct_tm>
  7799. int
  7800. main ()
  7801. {
  7802. static struct tm ac_aggr;
  7803. if (sizeof ac_aggr.tm_zone)
  7804. return 0;
  7805. ;
  7806. return 0;
  7807. }
  7808. _ACEOF
  7809. rm -f conftest.$ac_objext
  7810. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7811. (eval $ac_compile) 2>conftest.er1
  7812. ac_status=$?
  7813. grep -v '^ *+' conftest.er1 >conftest.err
  7814. rm -f conftest.er1
  7815. cat conftest.err >&5
  7816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7817. (exit $ac_status); } &&
  7818. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7819. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7820. (eval $ac_try) 2>&5
  7821. ac_status=$?
  7822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7823. (exit $ac_status); }; } &&
  7824. { ac_try='test -s conftest.$ac_objext'
  7825. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7826. (eval $ac_try) 2>&5
  7827. ac_status=$?
  7828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7829. (exit $ac_status); }; }; then
  7830. ac_cv_member_struct_tm_tm_zone=yes
  7831. else
  7832. echo "$as_me: failed program was:" >&5
  7833. sed 's/^/| /' conftest.$ac_ext >&5
  7834. ac_cv_member_struct_tm_tm_zone=no
  7835. fi
  7836. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7837. fi
  7838. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7839. fi
  7840. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  7841. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  7842. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  7843. cat >>confdefs.h <<_ACEOF
  7844. #define HAVE_STRUCT_TM_TM_ZONE 1
  7845. _ACEOF
  7846. fi
  7847. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  7848. cat >>confdefs.h <<\_ACEOF
  7849. #define HAVE_TM_ZONE 1
  7850. _ACEOF
  7851. else
  7852. echo "$as_me:$LINENO: checking for tzname" >&5
  7853. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  7854. if test "${ac_cv_var_tzname+set}" = set; then
  7855. echo $ECHO_N "(cached) $ECHO_C" >&6
  7856. else
  7857. cat >conftest.$ac_ext <<_ACEOF
  7858. /* confdefs.h. */
  7859. _ACEOF
  7860. cat confdefs.h >>conftest.$ac_ext
  7861. cat >>conftest.$ac_ext <<_ACEOF
  7862. /* end confdefs.h. */
  7863. #include <time.h>
  7864. #ifndef tzname /* For SGI. */
  7865. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  7866. #endif
  7867. int
  7868. main ()
  7869. {
  7870. atoi(*tzname);
  7871. ;
  7872. return 0;
  7873. }
  7874. _ACEOF
  7875. rm -f conftest.$ac_objext conftest$ac_exeext
  7876. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7877. (eval $ac_link) 2>conftest.er1
  7878. ac_status=$?
  7879. grep -v '^ *+' conftest.er1 >conftest.err
  7880. rm -f conftest.er1
  7881. cat conftest.err >&5
  7882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7883. (exit $ac_status); } &&
  7884. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7885. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7886. (eval $ac_try) 2>&5
  7887. ac_status=$?
  7888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7889. (exit $ac_status); }; } &&
  7890. { ac_try='test -s conftest$ac_exeext'
  7891. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7892. (eval $ac_try) 2>&5
  7893. ac_status=$?
  7894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7895. (exit $ac_status); }; }; then
  7896. ac_cv_var_tzname=yes
  7897. else
  7898. echo "$as_me: failed program was:" >&5
  7899. sed 's/^/| /' conftest.$ac_ext >&5
  7900. ac_cv_var_tzname=no
  7901. fi
  7902. rm -f conftest.err conftest.$ac_objext \
  7903. conftest$ac_exeext conftest.$ac_ext
  7904. fi
  7905. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  7906. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  7907. if test $ac_cv_var_tzname = yes; then
  7908. cat >>confdefs.h <<\_ACEOF
  7909. #define HAVE_TZNAME 1
  7910. _ACEOF
  7911. fi
  7912. fi
  7913. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7914. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7915. if test "${ac_cv_struct_tm+set}" = set; then
  7916. echo $ECHO_N "(cached) $ECHO_C" >&6
  7917. else
  7918. cat >conftest.$ac_ext <<_ACEOF
  7919. /* confdefs.h. */
  7920. _ACEOF
  7921. cat confdefs.h >>conftest.$ac_ext
  7922. cat >>conftest.$ac_ext <<_ACEOF
  7923. /* end confdefs.h. */
  7924. #include <sys/types.h>
  7925. #include <time.h>
  7926. int
  7927. main ()
  7928. {
  7929. struct tm *tp; tp->tm_sec;
  7930. ;
  7931. return 0;
  7932. }
  7933. _ACEOF
  7934. rm -f conftest.$ac_objext
  7935. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7936. (eval $ac_compile) 2>conftest.er1
  7937. ac_status=$?
  7938. grep -v '^ *+' conftest.er1 >conftest.err
  7939. rm -f conftest.er1
  7940. cat conftest.err >&5
  7941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7942. (exit $ac_status); } &&
  7943. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7944. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7945. (eval $ac_try) 2>&5
  7946. ac_status=$?
  7947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7948. (exit $ac_status); }; } &&
  7949. { ac_try='test -s conftest.$ac_objext'
  7950. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7951. (eval $ac_try) 2>&5
  7952. ac_status=$?
  7953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7954. (exit $ac_status); }; }; then
  7955. ac_cv_struct_tm=time.h
  7956. else
  7957. echo "$as_me: failed program was:" >&5
  7958. sed 's/^/| /' conftest.$ac_ext >&5
  7959. ac_cv_struct_tm=sys/time.h
  7960. fi
  7961. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7962. fi
  7963. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7964. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7965. if test $ac_cv_struct_tm = sys/time.h; then
  7966. cat >>confdefs.h <<\_ACEOF
  7967. #define TM_IN_SYS_TIME 1
  7968. _ACEOF
  7969. fi
  7970. #checkpoint
  7971. cat >confcache <<\_ACEOF
  7972. # This file is a shell script that caches the results of configure
  7973. # tests run on this system so they can be shared between configure
  7974. # scripts and configure runs, see configure's option --config-cache.
  7975. # It is not useful on other systems. If it contains results you don't
  7976. # want to keep, you may remove or edit it.
  7977. #
  7978. # config.status only pays attention to the cache file if you give it
  7979. # the --recheck option to rerun configure.
  7980. #
  7981. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7982. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7983. # following values.
  7984. _ACEOF
  7985. # The following way of writing the cache mishandles newlines in values,
  7986. # but we know of no workaround that is simple, portable, and efficient.
  7987. # So, don't put newlines in cache variables' values.
  7988. # Ultrix sh set writes to stderr and can't be redirected directly,
  7989. # and sets the high bit in the cache file unless we assign to the vars.
  7990. {
  7991. (set) 2>&1 |
  7992. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7993. *ac_space=\ *)
  7994. # `set' does not quote correctly, so add quotes (double-quote
  7995. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7996. sed -n \
  7997. "s/'/'\\\\''/g;
  7998. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7999. ;;
  8000. *)
  8001. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8002. sed -n \
  8003. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8004. ;;
  8005. esac;
  8006. } |
  8007. sed '
  8008. t clear
  8009. : clear
  8010. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8011. t end
  8012. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8013. : end' >>confcache
  8014. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  8015. if test -w $cache_file; then
  8016. test "x$cache_file" != "x/dev/null"
  8017. cat confcache >$cache_file
  8018. else
  8019. echo "not updating unwritable cache $cache_file"
  8020. fi
  8021. fi
  8022. rm -f confcache
  8023. # Checks for library functions
  8024. for ac_header in unistd.h vfork.h
  8025. do
  8026. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8027. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8028. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8029. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8030. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8031. echo $ECHO_N "(cached) $ECHO_C" >&6
  8032. fi
  8033. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8034. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8035. else
  8036. # Is the header compilable?
  8037. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8038. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8039. cat >conftest.$ac_ext <<_ACEOF
  8040. /* confdefs.h. */
  8041. _ACEOF
  8042. cat confdefs.h >>conftest.$ac_ext
  8043. cat >>conftest.$ac_ext <<_ACEOF
  8044. /* end confdefs.h. */
  8045. $ac_includes_default
  8046. #include <$ac_header>
  8047. _ACEOF
  8048. rm -f conftest.$ac_objext
  8049. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8050. (eval $ac_compile) 2>conftest.er1
  8051. ac_status=$?
  8052. grep -v '^ *+' conftest.er1 >conftest.err
  8053. rm -f conftest.er1
  8054. cat conftest.err >&5
  8055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8056. (exit $ac_status); } &&
  8057. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8058. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8059. (eval $ac_try) 2>&5
  8060. ac_status=$?
  8061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8062. (exit $ac_status); }; } &&
  8063. { ac_try='test -s conftest.$ac_objext'
  8064. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8065. (eval $ac_try) 2>&5
  8066. ac_status=$?
  8067. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8068. (exit $ac_status); }; }; then
  8069. ac_header_compiler=yes
  8070. else
  8071. echo "$as_me: failed program was:" >&5
  8072. sed 's/^/| /' conftest.$ac_ext >&5
  8073. ac_header_compiler=no
  8074. fi
  8075. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8076. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8077. echo "${ECHO_T}$ac_header_compiler" >&6
  8078. # Is the header present?
  8079. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8080. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8081. cat >conftest.$ac_ext <<_ACEOF
  8082. /* confdefs.h. */
  8083. _ACEOF
  8084. cat confdefs.h >>conftest.$ac_ext
  8085. cat >>conftest.$ac_ext <<_ACEOF
  8086. /* end confdefs.h. */
  8087. #include <$ac_header>
  8088. _ACEOF
  8089. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8090. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8091. ac_status=$?
  8092. grep -v '^ *+' conftest.er1 >conftest.err
  8093. rm -f conftest.er1
  8094. cat conftest.err >&5
  8095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8096. (exit $ac_status); } >/dev/null; then
  8097. if test -s conftest.err; then
  8098. ac_cpp_err=$ac_c_preproc_warn_flag
  8099. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8100. else
  8101. ac_cpp_err=
  8102. fi
  8103. else
  8104. ac_cpp_err=yes
  8105. fi
  8106. if test -z "$ac_cpp_err"; then
  8107. ac_header_preproc=yes
  8108. else
  8109. echo "$as_me: failed program was:" >&5
  8110. sed 's/^/| /' conftest.$ac_ext >&5
  8111. ac_header_preproc=no
  8112. fi
  8113. rm -f conftest.err conftest.$ac_ext
  8114. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8115. echo "${ECHO_T}$ac_header_preproc" >&6
  8116. # So? What about this header?
  8117. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8118. yes:no: )
  8119. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8120. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8121. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8122. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8123. ac_header_preproc=yes
  8124. ;;
  8125. no:yes:* )
  8126. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8127. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8128. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8129. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8130. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8131. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8132. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8133. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8134. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8135. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8136. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8137. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8138. (
  8139. cat <<\_ASBOX
  8140. ## ------------------------------------------ ##
  8141. ## Report this to the AC_PACKAGE_NAME lists. ##
  8142. ## ------------------------------------------ ##
  8143. _ASBOX
  8144. ) |
  8145. sed "s/^/$as_me: WARNING: /" >&2
  8146. ;;
  8147. esac
  8148. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8149. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8150. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8151. echo $ECHO_N "(cached) $ECHO_C" >&6
  8152. else
  8153. eval "$as_ac_Header=\$ac_header_preproc"
  8154. fi
  8155. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8156. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8157. fi
  8158. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8159. cat >>confdefs.h <<_ACEOF
  8160. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8161. _ACEOF
  8162. fi
  8163. done
  8164. for ac_func in fork vfork
  8165. do
  8166. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8167. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8168. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8169. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8170. echo $ECHO_N "(cached) $ECHO_C" >&6
  8171. else
  8172. cat >conftest.$ac_ext <<_ACEOF
  8173. /* confdefs.h. */
  8174. _ACEOF
  8175. cat confdefs.h >>conftest.$ac_ext
  8176. cat >>conftest.$ac_ext <<_ACEOF
  8177. /* end confdefs.h. */
  8178. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8179. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8180. #define $ac_func innocuous_$ac_func
  8181. /* System header to define __stub macros and hopefully few prototypes,
  8182. which can conflict with char $ac_func (); below.
  8183. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8184. <limits.h> exists even on freestanding compilers. */
  8185. #ifdef __STDC__
  8186. # include <limits.h>
  8187. #else
  8188. # include <assert.h>
  8189. #endif
  8190. #undef $ac_func
  8191. /* Override any gcc2 internal prototype to avoid an error. */
  8192. #ifdef __cplusplus
  8193. extern "C"
  8194. {
  8195. #endif
  8196. /* We use char because int might match the return type of a gcc2
  8197. builtin and then its argument prototype would still apply. */
  8198. char $ac_func ();
  8199. /* The GNU C library defines this for functions which it implements
  8200. to always fail with ENOSYS. Some functions are actually named
  8201. something starting with __ and the normal name is an alias. */
  8202. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8203. choke me
  8204. #else
  8205. char (*f) () = $ac_func;
  8206. #endif
  8207. #ifdef __cplusplus
  8208. }
  8209. #endif
  8210. int
  8211. main ()
  8212. {
  8213. return f != $ac_func;
  8214. ;
  8215. return 0;
  8216. }
  8217. _ACEOF
  8218. rm -f conftest.$ac_objext conftest$ac_exeext
  8219. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8220. (eval $ac_link) 2>conftest.er1
  8221. ac_status=$?
  8222. grep -v '^ *+' conftest.er1 >conftest.err
  8223. rm -f conftest.er1
  8224. cat conftest.err >&5
  8225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8226. (exit $ac_status); } &&
  8227. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8228. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8229. (eval $ac_try) 2>&5
  8230. ac_status=$?
  8231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8232. (exit $ac_status); }; } &&
  8233. { ac_try='test -s conftest$ac_exeext'
  8234. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8235. (eval $ac_try) 2>&5
  8236. ac_status=$?
  8237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8238. (exit $ac_status); }; }; then
  8239. eval "$as_ac_var=yes"
  8240. else
  8241. echo "$as_me: failed program was:" >&5
  8242. sed 's/^/| /' conftest.$ac_ext >&5
  8243. eval "$as_ac_var=no"
  8244. fi
  8245. rm -f conftest.err conftest.$ac_objext \
  8246. conftest$ac_exeext conftest.$ac_ext
  8247. fi
  8248. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8249. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8250. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8251. cat >>confdefs.h <<_ACEOF
  8252. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8253. _ACEOF
  8254. fi
  8255. done
  8256. if test "x$ac_cv_func_fork" = xyes; then
  8257. echo "$as_me:$LINENO: checking for working fork" >&5
  8258. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  8259. if test "${ac_cv_func_fork_works+set}" = set; then
  8260. echo $ECHO_N "(cached) $ECHO_C" >&6
  8261. else
  8262. if test "$cross_compiling" = yes; then
  8263. ac_cv_func_fork_works=cross
  8264. else
  8265. cat >conftest.$ac_ext <<_ACEOF
  8266. /* By Ruediger Kuhlmann. */
  8267. #include <sys/types.h>
  8268. #if HAVE_UNISTD_H
  8269. # include <unistd.h>
  8270. #endif
  8271. /* Some systems only have a dummy stub for fork() */
  8272. int main ()
  8273. {
  8274. if (fork() < 0)
  8275. exit (1);
  8276. exit (0);
  8277. }
  8278. _ACEOF
  8279. rm -f conftest$ac_exeext
  8280. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8281. (eval $ac_link) 2>&5
  8282. ac_status=$?
  8283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8284. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8285. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8286. (eval $ac_try) 2>&5
  8287. ac_status=$?
  8288. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8289. (exit $ac_status); }; }; then
  8290. ac_cv_func_fork_works=yes
  8291. else
  8292. echo "$as_me: program exited with status $ac_status" >&5
  8293. echo "$as_me: failed program was:" >&5
  8294. sed 's/^/| /' conftest.$ac_ext >&5
  8295. ( exit $ac_status )
  8296. ac_cv_func_fork_works=no
  8297. fi
  8298. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8299. fi
  8300. fi
  8301. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  8302. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  8303. else
  8304. ac_cv_func_fork_works=$ac_cv_func_fork
  8305. fi
  8306. if test "x$ac_cv_func_fork_works" = xcross; then
  8307. case $host in
  8308. *-*-amigaos* | *-*-msdosdjgpp*)
  8309. # Override, as these systems have only a dummy fork() stub
  8310. ac_cv_func_fork_works=no
  8311. ;;
  8312. *)
  8313. ac_cv_func_fork_works=yes
  8314. ;;
  8315. esac
  8316. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  8317. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  8318. fi
  8319. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8320. if test "x$ac_cv_func_vfork" = xyes; then
  8321. echo "$as_me:$LINENO: checking for working vfork" >&5
  8322. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  8323. if test "${ac_cv_func_vfork_works+set}" = set; then
  8324. echo $ECHO_N "(cached) $ECHO_C" >&6
  8325. else
  8326. if test "$cross_compiling" = yes; then
  8327. ac_cv_func_vfork_works=cross
  8328. else
  8329. cat >conftest.$ac_ext <<_ACEOF
  8330. /* confdefs.h. */
  8331. _ACEOF
  8332. cat confdefs.h >>conftest.$ac_ext
  8333. cat >>conftest.$ac_ext <<_ACEOF
  8334. /* end confdefs.h. */
  8335. /* Thanks to Paul Eggert for this test. */
  8336. #include <stdio.h>
  8337. #include <stdlib.h>
  8338. #include <sys/types.h>
  8339. #include <sys/stat.h>
  8340. #include <sys/wait.h>
  8341. #if HAVE_UNISTD_H
  8342. # include <unistd.h>
  8343. #endif
  8344. #if HAVE_VFORK_H
  8345. # include <vfork.h>
  8346. #endif
  8347. /* On some sparc systems, changes by the child to local and incoming
  8348. argument registers are propagated back to the parent. The compiler
  8349. is told about this with #include <vfork.h>, but some compilers
  8350. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  8351. static variable whose address is put into a register that is
  8352. clobbered by the vfork. */
  8353. static void
  8354. #ifdef __cplusplus
  8355. sparc_address_test (int arg)
  8356. # else
  8357. sparc_address_test (arg) int arg;
  8358. #endif
  8359. {
  8360. static pid_t child;
  8361. if (!child) {
  8362. child = vfork ();
  8363. if (child < 0) {
  8364. perror ("vfork");
  8365. _exit(2);
  8366. }
  8367. if (!child) {
  8368. arg = getpid();
  8369. write(-1, "", 0);
  8370. _exit (arg);
  8371. }
  8372. }
  8373. }
  8374. int
  8375. main ()
  8376. {
  8377. pid_t parent = getpid ();
  8378. pid_t child;
  8379. sparc_address_test (0);
  8380. child = vfork ();
  8381. if (child == 0) {
  8382. /* Here is another test for sparc vfork register problems. This
  8383. test uses lots of local variables, at least as many local
  8384. variables as main has allocated so far including compiler
  8385. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  8386. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  8387. reuse the register of parent for one of the local variables,
  8388. since it will think that parent can't possibly be used any more
  8389. in this routine. Assigning to the local variable will thus
  8390. munge parent in the parent process. */
  8391. pid_t
  8392. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  8393. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  8394. /* Convince the compiler that p..p7 are live; otherwise, it might
  8395. use the same hardware register for all 8 local variables. */
  8396. if (p != p1 || p != p2 || p != p3 || p != p4
  8397. || p != p5 || p != p6 || p != p7)
  8398. _exit(1);
  8399. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  8400. from child file descriptors. If the child closes a descriptor
  8401. before it execs or exits, this munges the parent's descriptor
  8402. as well. Test for this by closing stdout in the child. */
  8403. _exit(close(fileno(stdout)) != 0);
  8404. } else {
  8405. int status;
  8406. struct stat st;
  8407. while (wait(&status) != child)
  8408. ;
  8409. exit(
  8410. /* Was there some problem with vforking? */
  8411. child < 0
  8412. /* Did the child fail? (This shouldn't happen.) */
  8413. || status
  8414. /* Did the vfork/compiler bug occur? */
  8415. || parent != getpid()
  8416. /* Did the file descriptor bug occur? */
  8417. || fstat(fileno(stdout), &st) != 0
  8418. );
  8419. }
  8420. }
  8421. _ACEOF
  8422. rm -f conftest$ac_exeext
  8423. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8424. (eval $ac_link) 2>&5
  8425. ac_status=$?
  8426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8427. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8428. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8429. (eval $ac_try) 2>&5
  8430. ac_status=$?
  8431. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8432. (exit $ac_status); }; }; then
  8433. ac_cv_func_vfork_works=yes
  8434. else
  8435. echo "$as_me: program exited with status $ac_status" >&5
  8436. echo "$as_me: failed program was:" >&5
  8437. sed 's/^/| /' conftest.$ac_ext >&5
  8438. ( exit $ac_status )
  8439. ac_cv_func_vfork_works=no
  8440. fi
  8441. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8442. fi
  8443. fi
  8444. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  8445. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  8446. fi;
  8447. if test "x$ac_cv_func_fork_works" = xcross; then
  8448. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8449. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  8450. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  8451. fi
  8452. if test "x$ac_cv_func_vfork_works" = xyes; then
  8453. cat >>confdefs.h <<\_ACEOF
  8454. #define HAVE_WORKING_VFORK 1
  8455. _ACEOF
  8456. else
  8457. cat >>confdefs.h <<\_ACEOF
  8458. #define vfork fork
  8459. _ACEOF
  8460. fi
  8461. if test "x$ac_cv_func_fork_works" = xyes; then
  8462. cat >>confdefs.h <<\_ACEOF
  8463. #define HAVE_WORKING_FORK 1
  8464. _ACEOF
  8465. fi
  8466. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8467. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8468. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8469. echo $ECHO_N "(cached) $ECHO_C" >&6
  8470. else
  8471. rm -f conftest.sym conftest.file
  8472. echo >conftest.file
  8473. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8474. if test "$cross_compiling" = yes; then
  8475. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8476. else
  8477. cat >conftest.$ac_ext <<_ACEOF
  8478. /* confdefs.h. */
  8479. _ACEOF
  8480. cat confdefs.h >>conftest.$ac_ext
  8481. cat >>conftest.$ac_ext <<_ACEOF
  8482. /* end confdefs.h. */
  8483. $ac_includes_default
  8484. int
  8485. main ()
  8486. {
  8487. struct stat sbuf;
  8488. /* Linux will dereference the symlink and fail.
  8489. That is better in the sense that it means we will not
  8490. have to compile and use the lstat wrapper. */
  8491. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8492. ;
  8493. return 0;
  8494. }
  8495. _ACEOF
  8496. rm -f conftest$ac_exeext
  8497. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8498. (eval $ac_link) 2>&5
  8499. ac_status=$?
  8500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8501. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8502. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8503. (eval $ac_try) 2>&5
  8504. ac_status=$?
  8505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8506. (exit $ac_status); }; }; then
  8507. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8508. else
  8509. echo "$as_me: program exited with status $ac_status" >&5
  8510. echo "$as_me: failed program was:" >&5
  8511. sed 's/^/| /' conftest.$ac_ext >&5
  8512. ( exit $ac_status )
  8513. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8514. fi
  8515. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8516. fi
  8517. else
  8518. # If the `ln -s' command failed, then we probably don't even
  8519. # have an lstat function.
  8520. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8521. fi
  8522. rm -f conftest.sym conftest.file
  8523. fi
  8524. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8525. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8526. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8527. cat >>confdefs.h <<_ACEOF
  8528. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8529. _ACEOF
  8530. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8531. case $LIBOBJS in
  8532. "lstat.$ac_objext" | \
  8533. *" lstat.$ac_objext" | \
  8534. "lstat.$ac_objext "* | \
  8535. *" lstat.$ac_objext "* ) ;;
  8536. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8537. esac
  8538. fi
  8539. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8540. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  8541. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8542. echo $ECHO_N "(cached) $ECHO_C" >&6
  8543. else
  8544. if test "$cross_compiling" = yes; then
  8545. ac_cv_func_lstat_empty_string_bug=yes
  8546. else
  8547. cat >conftest.$ac_ext <<_ACEOF
  8548. /* confdefs.h. */
  8549. _ACEOF
  8550. cat confdefs.h >>conftest.$ac_ext
  8551. cat >>conftest.$ac_ext <<_ACEOF
  8552. /* end confdefs.h. */
  8553. $ac_includes_default
  8554. int
  8555. main ()
  8556. {
  8557. struct stat sbuf;
  8558. exit (lstat ("", &sbuf) ? 1 : 0);
  8559. ;
  8560. return 0;
  8561. }
  8562. _ACEOF
  8563. rm -f conftest$ac_exeext
  8564. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8565. (eval $ac_link) 2>&5
  8566. ac_status=$?
  8567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8568. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8569. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8570. (eval $ac_try) 2>&5
  8571. ac_status=$?
  8572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8573. (exit $ac_status); }; }; then
  8574. ac_cv_func_lstat_empty_string_bug=yes
  8575. else
  8576. echo "$as_me: program exited with status $ac_status" >&5
  8577. echo "$as_me: failed program was:" >&5
  8578. sed 's/^/| /' conftest.$ac_ext >&5
  8579. ( exit $ac_status )
  8580. ac_cv_func_lstat_empty_string_bug=no
  8581. fi
  8582. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8583. fi
  8584. fi
  8585. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  8586. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  8587. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  8588. case $LIBOBJS in
  8589. "lstat.$ac_objext" | \
  8590. *" lstat.$ac_objext" | \
  8591. "lstat.$ac_objext "* | \
  8592. *" lstat.$ac_objext "* ) ;;
  8593. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8594. esac
  8595. cat >>confdefs.h <<_ACEOF
  8596. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  8597. _ACEOF
  8598. fi
  8599. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8600. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8601. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8602. echo $ECHO_N "(cached) $ECHO_C" >&6
  8603. else
  8604. rm -f conftest.sym conftest.file
  8605. echo >conftest.file
  8606. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8607. if test "$cross_compiling" = yes; then
  8608. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8609. else
  8610. cat >conftest.$ac_ext <<_ACEOF
  8611. /* confdefs.h. */
  8612. _ACEOF
  8613. cat confdefs.h >>conftest.$ac_ext
  8614. cat >>conftest.$ac_ext <<_ACEOF
  8615. /* end confdefs.h. */
  8616. $ac_includes_default
  8617. int
  8618. main ()
  8619. {
  8620. struct stat sbuf;
  8621. /* Linux will dereference the symlink and fail.
  8622. That is better in the sense that it means we will not
  8623. have to compile and use the lstat wrapper. */
  8624. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8625. ;
  8626. return 0;
  8627. }
  8628. _ACEOF
  8629. rm -f conftest$ac_exeext
  8630. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8631. (eval $ac_link) 2>&5
  8632. ac_status=$?
  8633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8634. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8635. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8636. (eval $ac_try) 2>&5
  8637. ac_status=$?
  8638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8639. (exit $ac_status); }; }; then
  8640. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8641. else
  8642. echo "$as_me: program exited with status $ac_status" >&5
  8643. echo "$as_me: failed program was:" >&5
  8644. sed 's/^/| /' conftest.$ac_ext >&5
  8645. ( exit $ac_status )
  8646. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8647. fi
  8648. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8649. fi
  8650. else
  8651. # If the `ln -s' command failed, then we probably don't even
  8652. # have an lstat function.
  8653. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8654. fi
  8655. rm -f conftest.sym conftest.file
  8656. fi
  8657. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8658. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8659. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8660. cat >>confdefs.h <<_ACEOF
  8661. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8662. _ACEOF
  8663. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8664. case $LIBOBJS in
  8665. "lstat.$ac_objext" | \
  8666. *" lstat.$ac_objext" | \
  8667. "lstat.$ac_objext "* | \
  8668. *" lstat.$ac_objext "* ) ;;
  8669. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8670. esac
  8671. fi
  8672. for ac_header in stdlib.h
  8673. do
  8674. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8675. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8676. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8677. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8678. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8679. echo $ECHO_N "(cached) $ECHO_C" >&6
  8680. fi
  8681. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8682. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8683. else
  8684. # Is the header compilable?
  8685. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8686. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8687. cat >conftest.$ac_ext <<_ACEOF
  8688. /* confdefs.h. */
  8689. _ACEOF
  8690. cat confdefs.h >>conftest.$ac_ext
  8691. cat >>conftest.$ac_ext <<_ACEOF
  8692. /* end confdefs.h. */
  8693. $ac_includes_default
  8694. #include <$ac_header>
  8695. _ACEOF
  8696. rm -f conftest.$ac_objext
  8697. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8698. (eval $ac_compile) 2>conftest.er1
  8699. ac_status=$?
  8700. grep -v '^ *+' conftest.er1 >conftest.err
  8701. rm -f conftest.er1
  8702. cat conftest.err >&5
  8703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8704. (exit $ac_status); } &&
  8705. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8706. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8707. (eval $ac_try) 2>&5
  8708. ac_status=$?
  8709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8710. (exit $ac_status); }; } &&
  8711. { ac_try='test -s conftest.$ac_objext'
  8712. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8713. (eval $ac_try) 2>&5
  8714. ac_status=$?
  8715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8716. (exit $ac_status); }; }; then
  8717. ac_header_compiler=yes
  8718. else
  8719. echo "$as_me: failed program was:" >&5
  8720. sed 's/^/| /' conftest.$ac_ext >&5
  8721. ac_header_compiler=no
  8722. fi
  8723. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8724. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8725. echo "${ECHO_T}$ac_header_compiler" >&6
  8726. # Is the header present?
  8727. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8728. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8729. cat >conftest.$ac_ext <<_ACEOF
  8730. /* confdefs.h. */
  8731. _ACEOF
  8732. cat confdefs.h >>conftest.$ac_ext
  8733. cat >>conftest.$ac_ext <<_ACEOF
  8734. /* end confdefs.h. */
  8735. #include <$ac_header>
  8736. _ACEOF
  8737. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8738. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8739. ac_status=$?
  8740. grep -v '^ *+' conftest.er1 >conftest.err
  8741. rm -f conftest.er1
  8742. cat conftest.err >&5
  8743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8744. (exit $ac_status); } >/dev/null; then
  8745. if test -s conftest.err; then
  8746. ac_cpp_err=$ac_c_preproc_warn_flag
  8747. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8748. else
  8749. ac_cpp_err=
  8750. fi
  8751. else
  8752. ac_cpp_err=yes
  8753. fi
  8754. if test -z "$ac_cpp_err"; then
  8755. ac_header_preproc=yes
  8756. else
  8757. echo "$as_me: failed program was:" >&5
  8758. sed 's/^/| /' conftest.$ac_ext >&5
  8759. ac_header_preproc=no
  8760. fi
  8761. rm -f conftest.err conftest.$ac_ext
  8762. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8763. echo "${ECHO_T}$ac_header_preproc" >&6
  8764. # So? What about this header?
  8765. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8766. yes:no: )
  8767. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8768. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8769. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8770. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8771. ac_header_preproc=yes
  8772. ;;
  8773. no:yes:* )
  8774. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8775. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8776. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8777. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8778. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8779. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8780. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8781. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8782. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8783. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8784. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8785. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8786. (
  8787. cat <<\_ASBOX
  8788. ## ------------------------------------------ ##
  8789. ## Report this to the AC_PACKAGE_NAME lists. ##
  8790. ## ------------------------------------------ ##
  8791. _ASBOX
  8792. ) |
  8793. sed "s/^/$as_me: WARNING: /" >&2
  8794. ;;
  8795. esac
  8796. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8797. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8798. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8799. echo $ECHO_N "(cached) $ECHO_C" >&6
  8800. else
  8801. eval "$as_ac_Header=\$ac_header_preproc"
  8802. fi
  8803. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8804. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8805. fi
  8806. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8807. cat >>confdefs.h <<_ACEOF
  8808. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8809. _ACEOF
  8810. fi
  8811. done
  8812. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8813. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  8814. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8815. echo $ECHO_N "(cached) $ECHO_C" >&6
  8816. else
  8817. if test "$cross_compiling" = yes; then
  8818. ac_cv_func_malloc_0_nonnull=no
  8819. else
  8820. cat >conftest.$ac_ext <<_ACEOF
  8821. /* confdefs.h. */
  8822. _ACEOF
  8823. cat confdefs.h >>conftest.$ac_ext
  8824. cat >>conftest.$ac_ext <<_ACEOF
  8825. /* end confdefs.h. */
  8826. #if STDC_HEADERS || HAVE_STDLIB_H
  8827. # include <stdlib.h>
  8828. #else
  8829. char *malloc ();
  8830. #endif
  8831. int
  8832. main ()
  8833. {
  8834. exit (malloc (0) ? 0 : 1);
  8835. ;
  8836. return 0;
  8837. }
  8838. _ACEOF
  8839. rm -f conftest$ac_exeext
  8840. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8841. (eval $ac_link) 2>&5
  8842. ac_status=$?
  8843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8844. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8845. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8846. (eval $ac_try) 2>&5
  8847. ac_status=$?
  8848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8849. (exit $ac_status); }; }; then
  8850. ac_cv_func_malloc_0_nonnull=yes
  8851. else
  8852. echo "$as_me: program exited with status $ac_status" >&5
  8853. echo "$as_me: failed program was:" >&5
  8854. sed 's/^/| /' conftest.$ac_ext >&5
  8855. ( exit $ac_status )
  8856. ac_cv_func_malloc_0_nonnull=no
  8857. fi
  8858. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8859. fi
  8860. fi
  8861. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  8862. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  8863. if test $ac_cv_func_malloc_0_nonnull = yes; then
  8864. cat >>confdefs.h <<\_ACEOF
  8865. #define HAVE_MALLOC 1
  8866. _ACEOF
  8867. else
  8868. cat >>confdefs.h <<\_ACEOF
  8869. #define HAVE_MALLOC 0
  8870. _ACEOF
  8871. case $LIBOBJS in
  8872. "malloc.$ac_objext" | \
  8873. *" malloc.$ac_objext" | \
  8874. "malloc.$ac_objext "* | \
  8875. *" malloc.$ac_objext "* ) ;;
  8876. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  8877. esac
  8878. cat >>confdefs.h <<\_ACEOF
  8879. #define malloc rpl_malloc
  8880. _ACEOF
  8881. fi
  8882. for ac_header in stdlib.h sys/time.h unistd.h
  8883. do
  8884. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8885. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8886. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8887. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8888. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8889. echo $ECHO_N "(cached) $ECHO_C" >&6
  8890. fi
  8891. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8892. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8893. else
  8894. # Is the header compilable?
  8895. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8896. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8897. cat >conftest.$ac_ext <<_ACEOF
  8898. /* confdefs.h. */
  8899. _ACEOF
  8900. cat confdefs.h >>conftest.$ac_ext
  8901. cat >>conftest.$ac_ext <<_ACEOF
  8902. /* end confdefs.h. */
  8903. $ac_includes_default
  8904. #include <$ac_header>
  8905. _ACEOF
  8906. rm -f conftest.$ac_objext
  8907. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8908. (eval $ac_compile) 2>conftest.er1
  8909. ac_status=$?
  8910. grep -v '^ *+' conftest.er1 >conftest.err
  8911. rm -f conftest.er1
  8912. cat conftest.err >&5
  8913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8914. (exit $ac_status); } &&
  8915. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8916. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8917. (eval $ac_try) 2>&5
  8918. ac_status=$?
  8919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8920. (exit $ac_status); }; } &&
  8921. { ac_try='test -s conftest.$ac_objext'
  8922. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8923. (eval $ac_try) 2>&5
  8924. ac_status=$?
  8925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8926. (exit $ac_status); }; }; then
  8927. ac_header_compiler=yes
  8928. else
  8929. echo "$as_me: failed program was:" >&5
  8930. sed 's/^/| /' conftest.$ac_ext >&5
  8931. ac_header_compiler=no
  8932. fi
  8933. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8934. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8935. echo "${ECHO_T}$ac_header_compiler" >&6
  8936. # Is the header present?
  8937. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8938. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8939. cat >conftest.$ac_ext <<_ACEOF
  8940. /* confdefs.h. */
  8941. _ACEOF
  8942. cat confdefs.h >>conftest.$ac_ext
  8943. cat >>conftest.$ac_ext <<_ACEOF
  8944. /* end confdefs.h. */
  8945. #include <$ac_header>
  8946. _ACEOF
  8947. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8948. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8949. ac_status=$?
  8950. grep -v '^ *+' conftest.er1 >conftest.err
  8951. rm -f conftest.er1
  8952. cat conftest.err >&5
  8953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8954. (exit $ac_status); } >/dev/null; then
  8955. if test -s conftest.err; then
  8956. ac_cpp_err=$ac_c_preproc_warn_flag
  8957. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8958. else
  8959. ac_cpp_err=
  8960. fi
  8961. else
  8962. ac_cpp_err=yes
  8963. fi
  8964. if test -z "$ac_cpp_err"; then
  8965. ac_header_preproc=yes
  8966. else
  8967. echo "$as_me: failed program was:" >&5
  8968. sed 's/^/| /' conftest.$ac_ext >&5
  8969. ac_header_preproc=no
  8970. fi
  8971. rm -f conftest.err conftest.$ac_ext
  8972. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8973. echo "${ECHO_T}$ac_header_preproc" >&6
  8974. # So? What about this header?
  8975. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8976. yes:no: )
  8977. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8978. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8979. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8980. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8981. ac_header_preproc=yes
  8982. ;;
  8983. no:yes:* )
  8984. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8985. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8986. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8987. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8988. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8989. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8990. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8991. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8992. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8993. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8994. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8995. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8996. (
  8997. cat <<\_ASBOX
  8998. ## ------------------------------------------ ##
  8999. ## Report this to the AC_PACKAGE_NAME lists. ##
  9000. ## ------------------------------------------ ##
  9001. _ASBOX
  9002. ) |
  9003. sed "s/^/$as_me: WARNING: /" >&2
  9004. ;;
  9005. esac
  9006. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9007. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9008. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9009. echo $ECHO_N "(cached) $ECHO_C" >&6
  9010. else
  9011. eval "$as_ac_Header=\$ac_header_preproc"
  9012. fi
  9013. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9014. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9015. fi
  9016. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9017. cat >>confdefs.h <<_ACEOF
  9018. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9019. _ACEOF
  9020. fi
  9021. done
  9022. for ac_func in alarm
  9023. do
  9024. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9025. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9026. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9027. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9028. echo $ECHO_N "(cached) $ECHO_C" >&6
  9029. else
  9030. cat >conftest.$ac_ext <<_ACEOF
  9031. /* confdefs.h. */
  9032. _ACEOF
  9033. cat confdefs.h >>conftest.$ac_ext
  9034. cat >>conftest.$ac_ext <<_ACEOF
  9035. /* end confdefs.h. */
  9036. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9037. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9038. #define $ac_func innocuous_$ac_func
  9039. /* System header to define __stub macros and hopefully few prototypes,
  9040. which can conflict with char $ac_func (); below.
  9041. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9042. <limits.h> exists even on freestanding compilers. */
  9043. #ifdef __STDC__
  9044. # include <limits.h>
  9045. #else
  9046. # include <assert.h>
  9047. #endif
  9048. #undef $ac_func
  9049. /* Override any gcc2 internal prototype to avoid an error. */
  9050. #ifdef __cplusplus
  9051. extern "C"
  9052. {
  9053. #endif
  9054. /* We use char because int might match the return type of a gcc2
  9055. builtin and then its argument prototype would still apply. */
  9056. char $ac_func ();
  9057. /* The GNU C library defines this for functions which it implements
  9058. to always fail with ENOSYS. Some functions are actually named
  9059. something starting with __ and the normal name is an alias. */
  9060. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9061. choke me
  9062. #else
  9063. char (*f) () = $ac_func;
  9064. #endif
  9065. #ifdef __cplusplus
  9066. }
  9067. #endif
  9068. int
  9069. main ()
  9070. {
  9071. return f != $ac_func;
  9072. ;
  9073. return 0;
  9074. }
  9075. _ACEOF
  9076. rm -f conftest.$ac_objext conftest$ac_exeext
  9077. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9078. (eval $ac_link) 2>conftest.er1
  9079. ac_status=$?
  9080. grep -v '^ *+' conftest.er1 >conftest.err
  9081. rm -f conftest.er1
  9082. cat conftest.err >&5
  9083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9084. (exit $ac_status); } &&
  9085. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9086. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9087. (eval $ac_try) 2>&5
  9088. ac_status=$?
  9089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9090. (exit $ac_status); }; } &&
  9091. { ac_try='test -s conftest$ac_exeext'
  9092. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9093. (eval $ac_try) 2>&5
  9094. ac_status=$?
  9095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9096. (exit $ac_status); }; }; then
  9097. eval "$as_ac_var=yes"
  9098. else
  9099. echo "$as_me: failed program was:" >&5
  9100. sed 's/^/| /' conftest.$ac_ext >&5
  9101. eval "$as_ac_var=no"
  9102. fi
  9103. rm -f conftest.err conftest.$ac_objext \
  9104. conftest$ac_exeext conftest.$ac_ext
  9105. fi
  9106. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9107. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9108. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9109. cat >>confdefs.h <<_ACEOF
  9110. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9111. _ACEOF
  9112. fi
  9113. done
  9114. echo "$as_me:$LINENO: checking for working mktime" >&5
  9115. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  9116. if test "${ac_cv_func_working_mktime+set}" = set; then
  9117. echo $ECHO_N "(cached) $ECHO_C" >&6
  9118. else
  9119. if test "$cross_compiling" = yes; then
  9120. ac_cv_func_working_mktime=no
  9121. else
  9122. cat >conftest.$ac_ext <<_ACEOF
  9123. /* confdefs.h. */
  9124. _ACEOF
  9125. cat confdefs.h >>conftest.$ac_ext
  9126. cat >>conftest.$ac_ext <<_ACEOF
  9127. /* end confdefs.h. */
  9128. /* Test program from Paul Eggert and Tony Leneis. */
  9129. #if TIME_WITH_SYS_TIME
  9130. # include <sys/time.h>
  9131. # include <time.h>
  9132. #else
  9133. # if HAVE_SYS_TIME_H
  9134. # include <sys/time.h>
  9135. # else
  9136. # include <time.h>
  9137. # endif
  9138. #endif
  9139. #if HAVE_STDLIB_H
  9140. # include <stdlib.h>
  9141. #endif
  9142. #if HAVE_UNISTD_H
  9143. # include <unistd.h>
  9144. #endif
  9145. #if !HAVE_ALARM
  9146. # define alarm(X) /* empty */
  9147. #endif
  9148. /* Work around redefinition to rpl_putenv by other config tests. */
  9149. #undef putenv
  9150. static time_t time_t_max;
  9151. static time_t time_t_min;
  9152. /* Values we'll use to set the TZ environment variable. */
  9153. static char *tz_strings[] = {
  9154. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  9155. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  9156. };
  9157. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  9158. /* Fail if mktime fails to convert a date in the spring-forward gap.
  9159. Based on a problem report from Andreas Jaeger. */
  9160. static void
  9161. spring_forward_gap ()
  9162. {
  9163. /* glibc (up to about 1998-10-07) failed this test. */
  9164. struct tm tm;
  9165. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  9166. instead of "TZ=America/Vancouver" in order to detect the bug even
  9167. on systems that don't support the Olson extension, or don't have the
  9168. full zoneinfo tables installed. */
  9169. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  9170. tm.tm_year = 98;
  9171. tm.tm_mon = 3;
  9172. tm.tm_mday = 5;
  9173. tm.tm_hour = 2;
  9174. tm.tm_min = 0;
  9175. tm.tm_sec = 0;
  9176. tm.tm_isdst = -1;
  9177. if (mktime (&tm) == (time_t)-1)
  9178. exit (1);
  9179. }
  9180. static void
  9181. mktime_test1 (now)
  9182. time_t now;
  9183. {
  9184. struct tm *lt;
  9185. if ((lt = localtime (&now)) && mktime (lt) != now)
  9186. exit (1);
  9187. }
  9188. static void
  9189. mktime_test (now)
  9190. time_t now;
  9191. {
  9192. mktime_test1 (now);
  9193. mktime_test1 ((time_t) (time_t_max - now));
  9194. mktime_test1 ((time_t) (time_t_min + now));
  9195. }
  9196. static void
  9197. irix_6_4_bug ()
  9198. {
  9199. /* Based on code from Ariel Faigon. */
  9200. struct tm tm;
  9201. tm.tm_year = 96;
  9202. tm.tm_mon = 3;
  9203. tm.tm_mday = 0;
  9204. tm.tm_hour = 0;
  9205. tm.tm_min = 0;
  9206. tm.tm_sec = 0;
  9207. tm.tm_isdst = -1;
  9208. mktime (&tm);
  9209. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  9210. exit (1);
  9211. }
  9212. static void
  9213. bigtime_test (j)
  9214. int j;
  9215. {
  9216. struct tm tm;
  9217. time_t now;
  9218. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  9219. now = mktime (&tm);
  9220. if (now != (time_t) -1)
  9221. {
  9222. struct tm *lt = localtime (&now);
  9223. if (! (lt
  9224. && lt->tm_year == tm.tm_year
  9225. && lt->tm_mon == tm.tm_mon
  9226. && lt->tm_mday == tm.tm_mday
  9227. && lt->tm_hour == tm.tm_hour
  9228. && lt->tm_min == tm.tm_min
  9229. && lt->tm_sec == tm.tm_sec
  9230. && lt->tm_yday == tm.tm_yday
  9231. && lt->tm_wday == tm.tm_wday
  9232. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  9233. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  9234. exit (1);
  9235. }
  9236. }
  9237. int
  9238. main ()
  9239. {
  9240. time_t t, delta;
  9241. int i, j;
  9242. /* This test makes some buggy mktime implementations loop.
  9243. Give up after 60 seconds; a mktime slower than that
  9244. isn't worth using anyway. */
  9245. alarm (60);
  9246. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  9247. continue;
  9248. time_t_max--;
  9249. if ((time_t) -1 < 0)
  9250. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  9251. continue;
  9252. delta = time_t_max / 997; /* a suitable prime number */
  9253. for (i = 0; i < N_STRINGS; i++)
  9254. {
  9255. if (tz_strings[i])
  9256. putenv (tz_strings[i]);
  9257. for (t = 0; t <= time_t_max - delta; t += delta)
  9258. mktime_test (t);
  9259. mktime_test ((time_t) 1);
  9260. mktime_test ((time_t) (60 * 60));
  9261. mktime_test ((time_t) (60 * 60 * 24));
  9262. for (j = 1; 0 < j; j *= 2)
  9263. bigtime_test (j);
  9264. bigtime_test (j - 1);
  9265. }
  9266. irix_6_4_bug ();
  9267. spring_forward_gap ();
  9268. exit (0);
  9269. }
  9270. _ACEOF
  9271. rm -f conftest$ac_exeext
  9272. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9273. (eval $ac_link) 2>&5
  9274. ac_status=$?
  9275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9276. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9277. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9278. (eval $ac_try) 2>&5
  9279. ac_status=$?
  9280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9281. (exit $ac_status); }; }; then
  9282. ac_cv_func_working_mktime=yes
  9283. else
  9284. echo "$as_me: program exited with status $ac_status" >&5
  9285. echo "$as_me: failed program was:" >&5
  9286. sed 's/^/| /' conftest.$ac_ext >&5
  9287. ( exit $ac_status )
  9288. ac_cv_func_working_mktime=no
  9289. fi
  9290. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9291. fi
  9292. fi
  9293. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  9294. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  9295. if test $ac_cv_func_working_mktime = no; then
  9296. case $LIBOBJS in
  9297. "mktime.$ac_objext" | \
  9298. *" mktime.$ac_objext" | \
  9299. "mktime.$ac_objext "* | \
  9300. *" mktime.$ac_objext "* ) ;;
  9301. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  9302. esac
  9303. fi
  9304. for ac_header in stdlib.h unistd.h
  9305. do
  9306. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9307. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9308. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9309. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9310. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9311. echo $ECHO_N "(cached) $ECHO_C" >&6
  9312. fi
  9313. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9314. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9315. else
  9316. # Is the header compilable?
  9317. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9318. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9319. cat >conftest.$ac_ext <<_ACEOF
  9320. /* confdefs.h. */
  9321. _ACEOF
  9322. cat confdefs.h >>conftest.$ac_ext
  9323. cat >>conftest.$ac_ext <<_ACEOF
  9324. /* end confdefs.h. */
  9325. $ac_includes_default
  9326. #include <$ac_header>
  9327. _ACEOF
  9328. rm -f conftest.$ac_objext
  9329. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9330. (eval $ac_compile) 2>conftest.er1
  9331. ac_status=$?
  9332. grep -v '^ *+' conftest.er1 >conftest.err
  9333. rm -f conftest.er1
  9334. cat conftest.err >&5
  9335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9336. (exit $ac_status); } &&
  9337. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9338. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9339. (eval $ac_try) 2>&5
  9340. ac_status=$?
  9341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9342. (exit $ac_status); }; } &&
  9343. { ac_try='test -s conftest.$ac_objext'
  9344. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9345. (eval $ac_try) 2>&5
  9346. ac_status=$?
  9347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9348. (exit $ac_status); }; }; then
  9349. ac_header_compiler=yes
  9350. else
  9351. echo "$as_me: failed program was:" >&5
  9352. sed 's/^/| /' conftest.$ac_ext >&5
  9353. ac_header_compiler=no
  9354. fi
  9355. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9356. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9357. echo "${ECHO_T}$ac_header_compiler" >&6
  9358. # Is the header present?
  9359. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9360. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9361. cat >conftest.$ac_ext <<_ACEOF
  9362. /* confdefs.h. */
  9363. _ACEOF
  9364. cat confdefs.h >>conftest.$ac_ext
  9365. cat >>conftest.$ac_ext <<_ACEOF
  9366. /* end confdefs.h. */
  9367. #include <$ac_header>
  9368. _ACEOF
  9369. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9370. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9371. ac_status=$?
  9372. grep -v '^ *+' conftest.er1 >conftest.err
  9373. rm -f conftest.er1
  9374. cat conftest.err >&5
  9375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9376. (exit $ac_status); } >/dev/null; then
  9377. if test -s conftest.err; then
  9378. ac_cpp_err=$ac_c_preproc_warn_flag
  9379. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9380. else
  9381. ac_cpp_err=
  9382. fi
  9383. else
  9384. ac_cpp_err=yes
  9385. fi
  9386. if test -z "$ac_cpp_err"; then
  9387. ac_header_preproc=yes
  9388. else
  9389. echo "$as_me: failed program was:" >&5
  9390. sed 's/^/| /' conftest.$ac_ext >&5
  9391. ac_header_preproc=no
  9392. fi
  9393. rm -f conftest.err conftest.$ac_ext
  9394. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9395. echo "${ECHO_T}$ac_header_preproc" >&6
  9396. # So? What about this header?
  9397. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9398. yes:no: )
  9399. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9400. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9401. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9402. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9403. ac_header_preproc=yes
  9404. ;;
  9405. no:yes:* )
  9406. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9407. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9408. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9409. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9410. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9411. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9412. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9413. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9414. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9415. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9416. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9417. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9418. (
  9419. cat <<\_ASBOX
  9420. ## ------------------------------------------ ##
  9421. ## Report this to the AC_PACKAGE_NAME lists. ##
  9422. ## ------------------------------------------ ##
  9423. _ASBOX
  9424. ) |
  9425. sed "s/^/$as_me: WARNING: /" >&2
  9426. ;;
  9427. esac
  9428. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9429. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9430. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9431. echo $ECHO_N "(cached) $ECHO_C" >&6
  9432. else
  9433. eval "$as_ac_Header=\$ac_header_preproc"
  9434. fi
  9435. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9436. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9437. fi
  9438. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9439. cat >>confdefs.h <<_ACEOF
  9440. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9441. _ACEOF
  9442. fi
  9443. done
  9444. for ac_func in getpagesize
  9445. do
  9446. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9447. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9448. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9449. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9450. echo $ECHO_N "(cached) $ECHO_C" >&6
  9451. else
  9452. cat >conftest.$ac_ext <<_ACEOF
  9453. /* confdefs.h. */
  9454. _ACEOF
  9455. cat confdefs.h >>conftest.$ac_ext
  9456. cat >>conftest.$ac_ext <<_ACEOF
  9457. /* end confdefs.h. */
  9458. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9459. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9460. #define $ac_func innocuous_$ac_func
  9461. /* System header to define __stub macros and hopefully few prototypes,
  9462. which can conflict with char $ac_func (); below.
  9463. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9464. <limits.h> exists even on freestanding compilers. */
  9465. #ifdef __STDC__
  9466. # include <limits.h>
  9467. #else
  9468. # include <assert.h>
  9469. #endif
  9470. #undef $ac_func
  9471. /* Override any gcc2 internal prototype to avoid an error. */
  9472. #ifdef __cplusplus
  9473. extern "C"
  9474. {
  9475. #endif
  9476. /* We use char because int might match the return type of a gcc2
  9477. builtin and then its argument prototype would still apply. */
  9478. char $ac_func ();
  9479. /* The GNU C library defines this for functions which it implements
  9480. to always fail with ENOSYS. Some functions are actually named
  9481. something starting with __ and the normal name is an alias. */
  9482. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9483. choke me
  9484. #else
  9485. char (*f) () = $ac_func;
  9486. #endif
  9487. #ifdef __cplusplus
  9488. }
  9489. #endif
  9490. int
  9491. main ()
  9492. {
  9493. return f != $ac_func;
  9494. ;
  9495. return 0;
  9496. }
  9497. _ACEOF
  9498. rm -f conftest.$ac_objext conftest$ac_exeext
  9499. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9500. (eval $ac_link) 2>conftest.er1
  9501. ac_status=$?
  9502. grep -v '^ *+' conftest.er1 >conftest.err
  9503. rm -f conftest.er1
  9504. cat conftest.err >&5
  9505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9506. (exit $ac_status); } &&
  9507. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9508. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9509. (eval $ac_try) 2>&5
  9510. ac_status=$?
  9511. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9512. (exit $ac_status); }; } &&
  9513. { ac_try='test -s conftest$ac_exeext'
  9514. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9515. (eval $ac_try) 2>&5
  9516. ac_status=$?
  9517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9518. (exit $ac_status); }; }; then
  9519. eval "$as_ac_var=yes"
  9520. else
  9521. echo "$as_me: failed program was:" >&5
  9522. sed 's/^/| /' conftest.$ac_ext >&5
  9523. eval "$as_ac_var=no"
  9524. fi
  9525. rm -f conftest.err conftest.$ac_objext \
  9526. conftest$ac_exeext conftest.$ac_ext
  9527. fi
  9528. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9529. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9530. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9531. cat >>confdefs.h <<_ACEOF
  9532. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9533. _ACEOF
  9534. fi
  9535. done
  9536. echo "$as_me:$LINENO: checking for working mmap" >&5
  9537. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9538. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9539. echo $ECHO_N "(cached) $ECHO_C" >&6
  9540. else
  9541. if test "$cross_compiling" = yes; then
  9542. ac_cv_func_mmap_fixed_mapped=no
  9543. else
  9544. cat >conftest.$ac_ext <<_ACEOF
  9545. /* confdefs.h. */
  9546. _ACEOF
  9547. cat confdefs.h >>conftest.$ac_ext
  9548. cat >>conftest.$ac_ext <<_ACEOF
  9549. /* end confdefs.h. */
  9550. $ac_includes_default
  9551. /* malloc might have been renamed as rpl_malloc. */
  9552. #undef malloc
  9553. /* Thanks to Mike Haertel and Jim Avera for this test.
  9554. Here is a matrix of mmap possibilities:
  9555. mmap private not fixed
  9556. mmap private fixed at somewhere currently unmapped
  9557. mmap private fixed at somewhere already mapped
  9558. mmap shared not fixed
  9559. mmap shared fixed at somewhere currently unmapped
  9560. mmap shared fixed at somewhere already mapped
  9561. For private mappings, we should verify that changes cannot be read()
  9562. back from the file, nor mmap's back from the file at a different
  9563. address. (There have been systems where private was not correctly
  9564. implemented like the infamous i386 svr4.0, and systems where the
  9565. VM page cache was not coherent with the file system buffer cache
  9566. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9567. For shared mappings, we should conversely verify that changes get
  9568. propagated back to all the places they're supposed to be.
  9569. Grep wants private fixed already mapped.
  9570. The main things grep needs to know about mmap are:
  9571. * does it exist and is it safe to write into the mmap'd area
  9572. * how to use it (BSD variants) */
  9573. #include <fcntl.h>
  9574. #include <sys/mman.h>
  9575. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9576. char *malloc ();
  9577. #endif
  9578. /* This mess was copied from the GNU getpagesize.h. */
  9579. #if !HAVE_GETPAGESIZE
  9580. /* Assume that all systems that can run configure have sys/param.h. */
  9581. # if !HAVE_SYS_PARAM_H
  9582. # define HAVE_SYS_PARAM_H 1
  9583. # endif
  9584. # ifdef _SC_PAGESIZE
  9585. # define getpagesize() sysconf(_SC_PAGESIZE)
  9586. # else /* no _SC_PAGESIZE */
  9587. # if HAVE_SYS_PARAM_H
  9588. # include <sys/param.h>
  9589. # ifdef EXEC_PAGESIZE
  9590. # define getpagesize() EXEC_PAGESIZE
  9591. # else /* no EXEC_PAGESIZE */
  9592. # ifdef NBPG
  9593. # define getpagesize() NBPG * CLSIZE
  9594. # ifndef CLSIZE
  9595. # define CLSIZE 1
  9596. # endif /* no CLSIZE */
  9597. # else /* no NBPG */
  9598. # ifdef NBPC
  9599. # define getpagesize() NBPC
  9600. # else /* no NBPC */
  9601. # ifdef PAGESIZE
  9602. # define getpagesize() PAGESIZE
  9603. # endif /* PAGESIZE */
  9604. # endif /* no NBPC */
  9605. # endif /* no NBPG */
  9606. # endif /* no EXEC_PAGESIZE */
  9607. # else /* no HAVE_SYS_PARAM_H */
  9608. # define getpagesize() 8192 /* punt totally */
  9609. # endif /* no HAVE_SYS_PARAM_H */
  9610. # endif /* no _SC_PAGESIZE */
  9611. #endif /* no HAVE_GETPAGESIZE */
  9612. int
  9613. main ()
  9614. {
  9615. char *data, *data2, *data3;
  9616. int i, pagesize;
  9617. int fd;
  9618. pagesize = getpagesize ();
  9619. /* First, make a file with some known garbage in it. */
  9620. data = (char *) malloc (pagesize);
  9621. if (!data)
  9622. exit (1);
  9623. for (i = 0; i < pagesize; ++i)
  9624. *(data + i) = rand ();
  9625. umask (0);
  9626. fd = creat ("conftest.mmap", 0600);
  9627. if (fd < 0)
  9628. exit (1);
  9629. if (write (fd, data, pagesize) != pagesize)
  9630. exit (1);
  9631. close (fd);
  9632. /* Next, try to mmap the file at a fixed address which already has
  9633. something else allocated at it. If we can, also make sure that
  9634. we see the same garbage. */
  9635. fd = open ("conftest.mmap", O_RDWR);
  9636. if (fd < 0)
  9637. exit (1);
  9638. data2 = (char *) malloc (2 * pagesize);
  9639. if (!data2)
  9640. exit (1);
  9641. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9642. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9643. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9644. exit (1);
  9645. for (i = 0; i < pagesize; ++i)
  9646. if (*(data + i) != *(data2 + i))
  9647. exit (1);
  9648. /* Finally, make sure that changes to the mapped area do not
  9649. percolate back to the file as seen by read(). (This is a bug on
  9650. some variants of i386 svr4.0.) */
  9651. for (i = 0; i < pagesize; ++i)
  9652. *(data2 + i) = *(data2 + i) + 1;
  9653. data3 = (char *) malloc (pagesize);
  9654. if (!data3)
  9655. exit (1);
  9656. if (read (fd, data3, pagesize) != pagesize)
  9657. exit (1);
  9658. for (i = 0; i < pagesize; ++i)
  9659. if (*(data + i) != *(data3 + i))
  9660. exit (1);
  9661. close (fd);
  9662. exit (0);
  9663. }
  9664. _ACEOF
  9665. rm -f conftest$ac_exeext
  9666. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9667. (eval $ac_link) 2>&5
  9668. ac_status=$?
  9669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9670. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9671. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9672. (eval $ac_try) 2>&5
  9673. ac_status=$?
  9674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9675. (exit $ac_status); }; }; then
  9676. ac_cv_func_mmap_fixed_mapped=yes
  9677. else
  9678. echo "$as_me: program exited with status $ac_status" >&5
  9679. echo "$as_me: failed program was:" >&5
  9680. sed 's/^/| /' conftest.$ac_ext >&5
  9681. ( exit $ac_status )
  9682. ac_cv_func_mmap_fixed_mapped=no
  9683. fi
  9684. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9685. fi
  9686. fi
  9687. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9688. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9689. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9690. cat >>confdefs.h <<\_ACEOF
  9691. #define HAVE_MMAP 1
  9692. _ACEOF
  9693. fi
  9694. rm -f conftest.mmap
  9695. for ac_header in stdlib.h
  9696. do
  9697. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9698. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9699. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9700. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9701. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9702. echo $ECHO_N "(cached) $ECHO_C" >&6
  9703. fi
  9704. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9705. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9706. else
  9707. # Is the header compilable?
  9708. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9709. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9710. cat >conftest.$ac_ext <<_ACEOF
  9711. /* confdefs.h. */
  9712. _ACEOF
  9713. cat confdefs.h >>conftest.$ac_ext
  9714. cat >>conftest.$ac_ext <<_ACEOF
  9715. /* end confdefs.h. */
  9716. $ac_includes_default
  9717. #include <$ac_header>
  9718. _ACEOF
  9719. rm -f conftest.$ac_objext
  9720. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9721. (eval $ac_compile) 2>conftest.er1
  9722. ac_status=$?
  9723. grep -v '^ *+' conftest.er1 >conftest.err
  9724. rm -f conftest.er1
  9725. cat conftest.err >&5
  9726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9727. (exit $ac_status); } &&
  9728. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9729. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9730. (eval $ac_try) 2>&5
  9731. ac_status=$?
  9732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9733. (exit $ac_status); }; } &&
  9734. { ac_try='test -s conftest.$ac_objext'
  9735. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9736. (eval $ac_try) 2>&5
  9737. ac_status=$?
  9738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9739. (exit $ac_status); }; }; then
  9740. ac_header_compiler=yes
  9741. else
  9742. echo "$as_me: failed program was:" >&5
  9743. sed 's/^/| /' conftest.$ac_ext >&5
  9744. ac_header_compiler=no
  9745. fi
  9746. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9747. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9748. echo "${ECHO_T}$ac_header_compiler" >&6
  9749. # Is the header present?
  9750. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9751. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9752. cat >conftest.$ac_ext <<_ACEOF
  9753. /* confdefs.h. */
  9754. _ACEOF
  9755. cat confdefs.h >>conftest.$ac_ext
  9756. cat >>conftest.$ac_ext <<_ACEOF
  9757. /* end confdefs.h. */
  9758. #include <$ac_header>
  9759. _ACEOF
  9760. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9761. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9762. ac_status=$?
  9763. grep -v '^ *+' conftest.er1 >conftest.err
  9764. rm -f conftest.er1
  9765. cat conftest.err >&5
  9766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9767. (exit $ac_status); } >/dev/null; then
  9768. if test -s conftest.err; then
  9769. ac_cpp_err=$ac_c_preproc_warn_flag
  9770. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9771. else
  9772. ac_cpp_err=
  9773. fi
  9774. else
  9775. ac_cpp_err=yes
  9776. fi
  9777. if test -z "$ac_cpp_err"; then
  9778. ac_header_preproc=yes
  9779. else
  9780. echo "$as_me: failed program was:" >&5
  9781. sed 's/^/| /' conftest.$ac_ext >&5
  9782. ac_header_preproc=no
  9783. fi
  9784. rm -f conftest.err conftest.$ac_ext
  9785. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9786. echo "${ECHO_T}$ac_header_preproc" >&6
  9787. # So? What about this header?
  9788. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9789. yes:no: )
  9790. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9791. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9792. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9793. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9794. ac_header_preproc=yes
  9795. ;;
  9796. no:yes:* )
  9797. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9798. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9799. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9800. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9801. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9802. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9803. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9804. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9805. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9806. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9807. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9808. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9809. (
  9810. cat <<\_ASBOX
  9811. ## ------------------------------------------ ##
  9812. ## Report this to the AC_PACKAGE_NAME lists. ##
  9813. ## ------------------------------------------ ##
  9814. _ASBOX
  9815. ) |
  9816. sed "s/^/$as_me: WARNING: /" >&2
  9817. ;;
  9818. esac
  9819. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9820. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9821. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9822. echo $ECHO_N "(cached) $ECHO_C" >&6
  9823. else
  9824. eval "$as_ac_Header=\$ac_header_preproc"
  9825. fi
  9826. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9827. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9828. fi
  9829. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9830. cat >>confdefs.h <<_ACEOF
  9831. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9832. _ACEOF
  9833. fi
  9834. done
  9835. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9836. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  9837. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9838. echo $ECHO_N "(cached) $ECHO_C" >&6
  9839. else
  9840. if test "$cross_compiling" = yes; then
  9841. ac_cv_func_realloc_0_nonnull=no
  9842. else
  9843. cat >conftest.$ac_ext <<_ACEOF
  9844. /* confdefs.h. */
  9845. _ACEOF
  9846. cat confdefs.h >>conftest.$ac_ext
  9847. cat >>conftest.$ac_ext <<_ACEOF
  9848. /* end confdefs.h. */
  9849. #if STDC_HEADERS || HAVE_STDLIB_H
  9850. # include <stdlib.h>
  9851. #else
  9852. char *realloc ();
  9853. #endif
  9854. int
  9855. main ()
  9856. {
  9857. exit (realloc (0, 0) ? 0 : 1);
  9858. ;
  9859. return 0;
  9860. }
  9861. _ACEOF
  9862. rm -f conftest$ac_exeext
  9863. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9864. (eval $ac_link) 2>&5
  9865. ac_status=$?
  9866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9867. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9868. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9869. (eval $ac_try) 2>&5
  9870. ac_status=$?
  9871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9872. (exit $ac_status); }; }; then
  9873. ac_cv_func_realloc_0_nonnull=yes
  9874. else
  9875. echo "$as_me: program exited with status $ac_status" >&5
  9876. echo "$as_me: failed program was:" >&5
  9877. sed 's/^/| /' conftest.$ac_ext >&5
  9878. ( exit $ac_status )
  9879. ac_cv_func_realloc_0_nonnull=no
  9880. fi
  9881. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9882. fi
  9883. fi
  9884. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9885. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  9886. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9887. cat >>confdefs.h <<\_ACEOF
  9888. #define HAVE_REALLOC 1
  9889. _ACEOF
  9890. else
  9891. cat >>confdefs.h <<\_ACEOF
  9892. #define HAVE_REALLOC 0
  9893. _ACEOF
  9894. case $LIBOBJS in
  9895. "realloc.$ac_objext" | \
  9896. *" realloc.$ac_objext" | \
  9897. "realloc.$ac_objext "* | \
  9898. *" realloc.$ac_objext "* ) ;;
  9899. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  9900. esac
  9901. cat >>confdefs.h <<\_ACEOF
  9902. #define realloc rpl_realloc
  9903. _ACEOF
  9904. fi
  9905. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  9906. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  9907. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  9908. echo $ECHO_N "(cached) $ECHO_C" >&6
  9909. else
  9910. if test "$cross_compiling" = yes; then
  9911. ac_cv_func_stat_empty_string_bug=yes
  9912. else
  9913. cat >conftest.$ac_ext <<_ACEOF
  9914. /* confdefs.h. */
  9915. _ACEOF
  9916. cat confdefs.h >>conftest.$ac_ext
  9917. cat >>conftest.$ac_ext <<_ACEOF
  9918. /* end confdefs.h. */
  9919. $ac_includes_default
  9920. int
  9921. main ()
  9922. {
  9923. struct stat sbuf;
  9924. exit (stat ("", &sbuf) ? 1 : 0);
  9925. ;
  9926. return 0;
  9927. }
  9928. _ACEOF
  9929. rm -f conftest$ac_exeext
  9930. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9931. (eval $ac_link) 2>&5
  9932. ac_status=$?
  9933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9934. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9935. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9936. (eval $ac_try) 2>&5
  9937. ac_status=$?
  9938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9939. (exit $ac_status); }; }; then
  9940. ac_cv_func_stat_empty_string_bug=yes
  9941. else
  9942. echo "$as_me: program exited with status $ac_status" >&5
  9943. echo "$as_me: failed program was:" >&5
  9944. sed 's/^/| /' conftest.$ac_ext >&5
  9945. ( exit $ac_status )
  9946. ac_cv_func_stat_empty_string_bug=no
  9947. fi
  9948. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9949. fi
  9950. fi
  9951. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  9952. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  9953. if test $ac_cv_func_stat_empty_string_bug = yes; then
  9954. case $LIBOBJS in
  9955. "stat.$ac_objext" | \
  9956. *" stat.$ac_objext" | \
  9957. "stat.$ac_objext "* | \
  9958. *" stat.$ac_objext "* ) ;;
  9959. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  9960. esac
  9961. cat >>confdefs.h <<_ACEOF
  9962. #define HAVE_STAT_EMPTY_STRING_BUG 1
  9963. _ACEOF
  9964. fi
  9965. for ac_func in strftime
  9966. do
  9967. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9968. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9969. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9970. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9971. echo $ECHO_N "(cached) $ECHO_C" >&6
  9972. else
  9973. cat >conftest.$ac_ext <<_ACEOF
  9974. /* confdefs.h. */
  9975. _ACEOF
  9976. cat confdefs.h >>conftest.$ac_ext
  9977. cat >>conftest.$ac_ext <<_ACEOF
  9978. /* end confdefs.h. */
  9979. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9980. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9981. #define $ac_func innocuous_$ac_func
  9982. /* System header to define __stub macros and hopefully few prototypes,
  9983. which can conflict with char $ac_func (); below.
  9984. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9985. <limits.h> exists even on freestanding compilers. */
  9986. #ifdef __STDC__
  9987. # include <limits.h>
  9988. #else
  9989. # include <assert.h>
  9990. #endif
  9991. #undef $ac_func
  9992. /* Override any gcc2 internal prototype to avoid an error. */
  9993. #ifdef __cplusplus
  9994. extern "C"
  9995. {
  9996. #endif
  9997. /* We use char because int might match the return type of a gcc2
  9998. builtin and then its argument prototype would still apply. */
  9999. char $ac_func ();
  10000. /* The GNU C library defines this for functions which it implements
  10001. to always fail with ENOSYS. Some functions are actually named
  10002. something starting with __ and the normal name is an alias. */
  10003. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10004. choke me
  10005. #else
  10006. char (*f) () = $ac_func;
  10007. #endif
  10008. #ifdef __cplusplus
  10009. }
  10010. #endif
  10011. int
  10012. main ()
  10013. {
  10014. return f != $ac_func;
  10015. ;
  10016. return 0;
  10017. }
  10018. _ACEOF
  10019. rm -f conftest.$ac_objext conftest$ac_exeext
  10020. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10021. (eval $ac_link) 2>conftest.er1
  10022. ac_status=$?
  10023. grep -v '^ *+' conftest.er1 >conftest.err
  10024. rm -f conftest.er1
  10025. cat conftest.err >&5
  10026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10027. (exit $ac_status); } &&
  10028. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10029. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10030. (eval $ac_try) 2>&5
  10031. ac_status=$?
  10032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10033. (exit $ac_status); }; } &&
  10034. { ac_try='test -s conftest$ac_exeext'
  10035. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10036. (eval $ac_try) 2>&5
  10037. ac_status=$?
  10038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10039. (exit $ac_status); }; }; then
  10040. eval "$as_ac_var=yes"
  10041. else
  10042. echo "$as_me: failed program was:" >&5
  10043. sed 's/^/| /' conftest.$ac_ext >&5
  10044. eval "$as_ac_var=no"
  10045. fi
  10046. rm -f conftest.err conftest.$ac_objext \
  10047. conftest$ac_exeext conftest.$ac_ext
  10048. fi
  10049. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10050. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10051. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10052. cat >>confdefs.h <<_ACEOF
  10053. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10054. _ACEOF
  10055. else
  10056. # strftime is in -lintl on SCO UNIX.
  10057. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  10058. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  10059. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  10060. echo $ECHO_N "(cached) $ECHO_C" >&6
  10061. else
  10062. ac_check_lib_save_LIBS=$LIBS
  10063. LIBS="-lintl $LIBS"
  10064. cat >conftest.$ac_ext <<_ACEOF
  10065. /* confdefs.h. */
  10066. _ACEOF
  10067. cat confdefs.h >>conftest.$ac_ext
  10068. cat >>conftest.$ac_ext <<_ACEOF
  10069. /* end confdefs.h. */
  10070. /* Override any gcc2 internal prototype to avoid an error. */
  10071. #ifdef __cplusplus
  10072. extern "C"
  10073. #endif
  10074. /* We use char because int might match the return type of a gcc2
  10075. builtin and then its argument prototype would still apply. */
  10076. char strftime ();
  10077. int
  10078. main ()
  10079. {
  10080. strftime ();
  10081. ;
  10082. return 0;
  10083. }
  10084. _ACEOF
  10085. rm -f conftest.$ac_objext conftest$ac_exeext
  10086. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10087. (eval $ac_link) 2>conftest.er1
  10088. ac_status=$?
  10089. grep -v '^ *+' conftest.er1 >conftest.err
  10090. rm -f conftest.er1
  10091. cat conftest.err >&5
  10092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10093. (exit $ac_status); } &&
  10094. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10095. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10096. (eval $ac_try) 2>&5
  10097. ac_status=$?
  10098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10099. (exit $ac_status); }; } &&
  10100. { ac_try='test -s conftest$ac_exeext'
  10101. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10102. (eval $ac_try) 2>&5
  10103. ac_status=$?
  10104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10105. (exit $ac_status); }; }; then
  10106. ac_cv_lib_intl_strftime=yes
  10107. else
  10108. echo "$as_me: failed program was:" >&5
  10109. sed 's/^/| /' conftest.$ac_ext >&5
  10110. ac_cv_lib_intl_strftime=no
  10111. fi
  10112. rm -f conftest.err conftest.$ac_objext \
  10113. conftest$ac_exeext conftest.$ac_ext
  10114. LIBS=$ac_check_lib_save_LIBS
  10115. fi
  10116. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  10117. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  10118. if test $ac_cv_lib_intl_strftime = yes; then
  10119. cat >>confdefs.h <<\_ACEOF
  10120. #define HAVE_STRFTIME 1
  10121. _ACEOF
  10122. LIBS="-lintl $LIBS"
  10123. fi
  10124. fi
  10125. done
  10126. #checkpoint
  10127. cat >confcache <<\_ACEOF
  10128. # This file is a shell script that caches the results of configure
  10129. # tests run on this system so they can be shared between configure
  10130. # scripts and configure runs, see configure's option --config-cache.
  10131. # It is not useful on other systems. If it contains results you don't
  10132. # want to keep, you may remove or edit it.
  10133. #
  10134. # config.status only pays attention to the cache file if you give it
  10135. # the --recheck option to rerun configure.
  10136. #
  10137. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10138. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10139. # following values.
  10140. _ACEOF
  10141. # The following way of writing the cache mishandles newlines in values,
  10142. # but we know of no workaround that is simple, portable, and efficient.
  10143. # So, don't put newlines in cache variables' values.
  10144. # Ultrix sh set writes to stderr and can't be redirected directly,
  10145. # and sets the high bit in the cache file unless we assign to the vars.
  10146. {
  10147. (set) 2>&1 |
  10148. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10149. *ac_space=\ *)
  10150. # `set' does not quote correctly, so add quotes (double-quote
  10151. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10152. sed -n \
  10153. "s/'/'\\\\''/g;
  10154. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10155. ;;
  10156. *)
  10157. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10158. sed -n \
  10159. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10160. ;;
  10161. esac;
  10162. } |
  10163. sed '
  10164. t clear
  10165. : clear
  10166. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10167. t end
  10168. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10169. : end' >>confcache
  10170. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10171. if test -w $cache_file; then
  10172. test "x$cache_file" != "x/dev/null"
  10173. cat confcache >$cache_file
  10174. else
  10175. echo "not updating unwritable cache $cache_file"
  10176. fi
  10177. fi
  10178. rm -f confcache
  10179. for ac_func in clock fsync getrusage isascii inet_aton gethostbyname2
  10180. do
  10181. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10182. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10183. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10184. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10185. echo $ECHO_N "(cached) $ECHO_C" >&6
  10186. else
  10187. cat >conftest.$ac_ext <<_ACEOF
  10188. /* confdefs.h. */
  10189. _ACEOF
  10190. cat confdefs.h >>conftest.$ac_ext
  10191. cat >>conftest.$ac_ext <<_ACEOF
  10192. /* end confdefs.h. */
  10193. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10194. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10195. #define $ac_func innocuous_$ac_func
  10196. /* System header to define __stub macros and hopefully few prototypes,
  10197. which can conflict with char $ac_func (); below.
  10198. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10199. <limits.h> exists even on freestanding compilers. */
  10200. #ifdef __STDC__
  10201. # include <limits.h>
  10202. #else
  10203. # include <assert.h>
  10204. #endif
  10205. #undef $ac_func
  10206. /* Override any gcc2 internal prototype to avoid an error. */
  10207. #ifdef __cplusplus
  10208. extern "C"
  10209. {
  10210. #endif
  10211. /* We use char because int might match the return type of a gcc2
  10212. builtin and then its argument prototype would still apply. */
  10213. char $ac_func ();
  10214. /* The GNU C library defines this for functions which it implements
  10215. to always fail with ENOSYS. Some functions are actually named
  10216. something starting with __ and the normal name is an alias. */
  10217. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10218. choke me
  10219. #else
  10220. char (*f) () = $ac_func;
  10221. #endif
  10222. #ifdef __cplusplus
  10223. }
  10224. #endif
  10225. int
  10226. main ()
  10227. {
  10228. return f != $ac_func;
  10229. ;
  10230. return 0;
  10231. }
  10232. _ACEOF
  10233. rm -f conftest.$ac_objext conftest$ac_exeext
  10234. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10235. (eval $ac_link) 2>conftest.er1
  10236. ac_status=$?
  10237. grep -v '^ *+' conftest.er1 >conftest.err
  10238. rm -f conftest.er1
  10239. cat conftest.err >&5
  10240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10241. (exit $ac_status); } &&
  10242. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10243. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10244. (eval $ac_try) 2>&5
  10245. ac_status=$?
  10246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10247. (exit $ac_status); }; } &&
  10248. { ac_try='test -s conftest$ac_exeext'
  10249. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10250. (eval $ac_try) 2>&5
  10251. ac_status=$?
  10252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10253. (exit $ac_status); }; }; then
  10254. eval "$as_ac_var=yes"
  10255. else
  10256. echo "$as_me: failed program was:" >&5
  10257. sed 's/^/| /' conftest.$ac_ext >&5
  10258. eval "$as_ac_var=no"
  10259. fi
  10260. rm -f conftest.err conftest.$ac_objext \
  10261. conftest$ac_exeext conftest.$ac_ext
  10262. fi
  10263. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10264. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10265. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10266. cat >>confdefs.h <<_ACEOF
  10267. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10268. _ACEOF
  10269. fi
  10270. done
  10271. for ac_func in getipnodebyname memcpy memset random rename snprintf srandom
  10272. do
  10273. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10274. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10275. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10276. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10277. echo $ECHO_N "(cached) $ECHO_C" >&6
  10278. else
  10279. cat >conftest.$ac_ext <<_ACEOF
  10280. /* confdefs.h. */
  10281. _ACEOF
  10282. cat confdefs.h >>conftest.$ac_ext
  10283. cat >>conftest.$ac_ext <<_ACEOF
  10284. /* end confdefs.h. */
  10285. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10286. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10287. #define $ac_func innocuous_$ac_func
  10288. /* System header to define __stub macros and hopefully few prototypes,
  10289. which can conflict with char $ac_func (); below.
  10290. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10291. <limits.h> exists even on freestanding compilers. */
  10292. #ifdef __STDC__
  10293. # include <limits.h>
  10294. #else
  10295. # include <assert.h>
  10296. #endif
  10297. #undef $ac_func
  10298. /* Override any gcc2 internal prototype to avoid an error. */
  10299. #ifdef __cplusplus
  10300. extern "C"
  10301. {
  10302. #endif
  10303. /* We use char because int might match the return type of a gcc2
  10304. builtin and then its argument prototype would still apply. */
  10305. char $ac_func ();
  10306. /* The GNU C library defines this for functions which it implements
  10307. to always fail with ENOSYS. Some functions are actually named
  10308. something starting with __ and the normal name is an alias. */
  10309. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10310. choke me
  10311. #else
  10312. char (*f) () = $ac_func;
  10313. #endif
  10314. #ifdef __cplusplus
  10315. }
  10316. #endif
  10317. int
  10318. main ()
  10319. {
  10320. return f != $ac_func;
  10321. ;
  10322. return 0;
  10323. }
  10324. _ACEOF
  10325. rm -f conftest.$ac_objext conftest$ac_exeext
  10326. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10327. (eval $ac_link) 2>conftest.er1
  10328. ac_status=$?
  10329. grep -v '^ *+' conftest.er1 >conftest.err
  10330. rm -f conftest.er1
  10331. cat conftest.err >&5
  10332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10333. (exit $ac_status); } &&
  10334. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10335. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10336. (eval $ac_try) 2>&5
  10337. ac_status=$?
  10338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10339. (exit $ac_status); }; } &&
  10340. { ac_try='test -s conftest$ac_exeext'
  10341. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10342. (eval $ac_try) 2>&5
  10343. ac_status=$?
  10344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10345. (exit $ac_status); }; }; then
  10346. eval "$as_ac_var=yes"
  10347. else
  10348. echo "$as_me: failed program was:" >&5
  10349. sed 's/^/| /' conftest.$ac_ext >&5
  10350. eval "$as_ac_var=no"
  10351. fi
  10352. rm -f conftest.err conftest.$ac_objext \
  10353. conftest$ac_exeext conftest.$ac_ext
  10354. fi
  10355. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10356. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10357. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10358. cat >>confdefs.h <<_ACEOF
  10359. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10360. _ACEOF
  10361. fi
  10362. done
  10363. #checkpoint
  10364. cat >confcache <<\_ACEOF
  10365. # This file is a shell script that caches the results of configure
  10366. # tests run on this system so they can be shared between configure
  10367. # scripts and configure runs, see configure's option --config-cache.
  10368. # It is not useful on other systems. If it contains results you don't
  10369. # want to keep, you may remove or edit it.
  10370. #
  10371. # config.status only pays attention to the cache file if you give it
  10372. # the --recheck option to rerun configure.
  10373. #
  10374. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10375. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10376. # following values.
  10377. _ACEOF
  10378. # The following way of writing the cache mishandles newlines in values,
  10379. # but we know of no workaround that is simple, portable, and efficient.
  10380. # So, don't put newlines in cache variables' values.
  10381. # Ultrix sh set writes to stderr and can't be redirected directly,
  10382. # and sets the high bit in the cache file unless we assign to the vars.
  10383. {
  10384. (set) 2>&1 |
  10385. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10386. *ac_space=\ *)
  10387. # `set' does not quote correctly, so add quotes (double-quote
  10388. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10389. sed -n \
  10390. "s/'/'\\\\''/g;
  10391. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10392. ;;
  10393. *)
  10394. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10395. sed -n \
  10396. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10397. ;;
  10398. esac;
  10399. } |
  10400. sed '
  10401. t clear
  10402. : clear
  10403. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10404. t end
  10405. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10406. : end' >>confcache
  10407. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10408. if test -w $cache_file; then
  10409. test "x$cache_file" != "x/dev/null"
  10410. cat confcache >$cache_file
  10411. else
  10412. echo "not updating unwritable cache $cache_file"
  10413. fi
  10414. fi
  10415. rm -f confcache
  10416. for ac_func in strcasecmp strncasecmp vsnprintf
  10417. do
  10418. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10419. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10420. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10421. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10422. echo $ECHO_N "(cached) $ECHO_C" >&6
  10423. else
  10424. cat >conftest.$ac_ext <<_ACEOF
  10425. /* confdefs.h. */
  10426. _ACEOF
  10427. cat confdefs.h >>conftest.$ac_ext
  10428. cat >>conftest.$ac_ext <<_ACEOF
  10429. /* end confdefs.h. */
  10430. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10431. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10432. #define $ac_func innocuous_$ac_func
  10433. /* System header to define __stub macros and hopefully few prototypes,
  10434. which can conflict with char $ac_func (); below.
  10435. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10436. <limits.h> exists even on freestanding compilers. */
  10437. #ifdef __STDC__
  10438. # include <limits.h>
  10439. #else
  10440. # include <assert.h>
  10441. #endif
  10442. #undef $ac_func
  10443. /* Override any gcc2 internal prototype to avoid an error. */
  10444. #ifdef __cplusplus
  10445. extern "C"
  10446. {
  10447. #endif
  10448. /* We use char because int might match the return type of a gcc2
  10449. builtin and then its argument prototype would still apply. */
  10450. char $ac_func ();
  10451. /* The GNU C library defines this for functions which it implements
  10452. to always fail with ENOSYS. Some functions are actually named
  10453. something starting with __ and the normal name is an alias. */
  10454. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10455. choke me
  10456. #else
  10457. char (*f) () = $ac_func;
  10458. #endif
  10459. #ifdef __cplusplus
  10460. }
  10461. #endif
  10462. int
  10463. main ()
  10464. {
  10465. return f != $ac_func;
  10466. ;
  10467. return 0;
  10468. }
  10469. _ACEOF
  10470. rm -f conftest.$ac_objext conftest$ac_exeext
  10471. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10472. (eval $ac_link) 2>conftest.er1
  10473. ac_status=$?
  10474. grep -v '^ *+' conftest.er1 >conftest.err
  10475. rm -f conftest.er1
  10476. cat conftest.err >&5
  10477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10478. (exit $ac_status); } &&
  10479. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10480. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10481. (eval $ac_try) 2>&5
  10482. ac_status=$?
  10483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10484. (exit $ac_status); }; } &&
  10485. { ac_try='test -s conftest$ac_exeext'
  10486. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10487. (eval $ac_try) 2>&5
  10488. ac_status=$?
  10489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10490. (exit $ac_status); }; }; then
  10491. eval "$as_ac_var=yes"
  10492. else
  10493. echo "$as_me: failed program was:" >&5
  10494. sed 's/^/| /' conftest.$ac_ext >&5
  10495. eval "$as_ac_var=no"
  10496. fi
  10497. rm -f conftest.err conftest.$ac_objext \
  10498. conftest$ac_exeext conftest.$ac_ext
  10499. fi
  10500. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10501. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10502. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10503. cat >>confdefs.h <<_ACEOF
  10504. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10505. _ACEOF
  10506. fi
  10507. done
  10508. #autoscan suggested this....
  10509. #These are recommended by autoscan, but no code supports it currently
  10510. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  10511. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  10512. for ac_func in vsprintf
  10513. do
  10514. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10515. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10516. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10517. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10518. echo $ECHO_N "(cached) $ECHO_C" >&6
  10519. else
  10520. cat >conftest.$ac_ext <<_ACEOF
  10521. /* confdefs.h. */
  10522. _ACEOF
  10523. cat confdefs.h >>conftest.$ac_ext
  10524. cat >>conftest.$ac_ext <<_ACEOF
  10525. /* end confdefs.h. */
  10526. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10527. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10528. #define $ac_func innocuous_$ac_func
  10529. /* System header to define __stub macros and hopefully few prototypes,
  10530. which can conflict with char $ac_func (); below.
  10531. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10532. <limits.h> exists even on freestanding compilers. */
  10533. #ifdef __STDC__
  10534. # include <limits.h>
  10535. #else
  10536. # include <assert.h>
  10537. #endif
  10538. #undef $ac_func
  10539. /* Override any gcc2 internal prototype to avoid an error. */
  10540. #ifdef __cplusplus
  10541. extern "C"
  10542. {
  10543. #endif
  10544. /* We use char because int might match the return type of a gcc2
  10545. builtin and then its argument prototype would still apply. */
  10546. char $ac_func ();
  10547. /* The GNU C library defines this for functions which it implements
  10548. to always fail with ENOSYS. Some functions are actually named
  10549. something starting with __ and the normal name is an alias. */
  10550. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10551. choke me
  10552. #else
  10553. char (*f) () = $ac_func;
  10554. #endif
  10555. #ifdef __cplusplus
  10556. }
  10557. #endif
  10558. int
  10559. main ()
  10560. {
  10561. return f != $ac_func;
  10562. ;
  10563. return 0;
  10564. }
  10565. _ACEOF
  10566. rm -f conftest.$ac_objext conftest$ac_exeext
  10567. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10568. (eval $ac_link) 2>conftest.er1
  10569. ac_status=$?
  10570. grep -v '^ *+' conftest.er1 >conftest.err
  10571. rm -f conftest.er1
  10572. cat conftest.err >&5
  10573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10574. (exit $ac_status); } &&
  10575. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10576. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10577. (eval $ac_try) 2>&5
  10578. ac_status=$?
  10579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10580. (exit $ac_status); }; } &&
  10581. { ac_try='test -s conftest$ac_exeext'
  10582. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10583. (eval $ac_try) 2>&5
  10584. ac_status=$?
  10585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10586. (exit $ac_status); }; }; then
  10587. eval "$as_ac_var=yes"
  10588. else
  10589. echo "$as_me: failed program was:" >&5
  10590. sed 's/^/| /' conftest.$ac_ext >&5
  10591. eval "$as_ac_var=no"
  10592. fi
  10593. rm -f conftest.err conftest.$ac_objext \
  10594. conftest$ac_exeext conftest.$ac_ext
  10595. fi
  10596. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10597. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10598. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10599. cat >>confdefs.h <<_ACEOF
  10600. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10601. _ACEOF
  10602. fi
  10603. done
  10604. if test "$ac_cv_func_vsprintf" = "no"
  10605. then
  10606. cat << 'EOF' >&2
  10607. configure: error:
  10608. Your system does not have the sprintf/vsprintf libraries.
  10609. These are required to compile almost anything. Sorry.
  10610. EOF
  10611. exit 1
  10612. fi
  10613. for ac_func in uname
  10614. do
  10615. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10616. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10617. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10618. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10619. echo $ECHO_N "(cached) $ECHO_C" >&6
  10620. else
  10621. cat >conftest.$ac_ext <<_ACEOF
  10622. /* confdefs.h. */
  10623. _ACEOF
  10624. cat confdefs.h >>conftest.$ac_ext
  10625. cat >>conftest.$ac_ext <<_ACEOF
  10626. /* end confdefs.h. */
  10627. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10628. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10629. #define $ac_func innocuous_$ac_func
  10630. /* System header to define __stub macros and hopefully few prototypes,
  10631. which can conflict with char $ac_func (); below.
  10632. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10633. <limits.h> exists even on freestanding compilers. */
  10634. #ifdef __STDC__
  10635. # include <limits.h>
  10636. #else
  10637. # include <assert.h>
  10638. #endif
  10639. #undef $ac_func
  10640. /* Override any gcc2 internal prototype to avoid an error. */
  10641. #ifdef __cplusplus
  10642. extern "C"
  10643. {
  10644. #endif
  10645. /* We use char because int might match the return type of a gcc2
  10646. builtin and then its argument prototype would still apply. */
  10647. char $ac_func ();
  10648. /* The GNU C library defines this for functions which it implements
  10649. to always fail with ENOSYS. Some functions are actually named
  10650. something starting with __ and the normal name is an alias. */
  10651. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10652. choke me
  10653. #else
  10654. char (*f) () = $ac_func;
  10655. #endif
  10656. #ifdef __cplusplus
  10657. }
  10658. #endif
  10659. int
  10660. main ()
  10661. {
  10662. return f != $ac_func;
  10663. ;
  10664. return 0;
  10665. }
  10666. _ACEOF
  10667. rm -f conftest.$ac_objext conftest$ac_exeext
  10668. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10669. (eval $ac_link) 2>conftest.er1
  10670. ac_status=$?
  10671. grep -v '^ *+' conftest.er1 >conftest.err
  10672. rm -f conftest.er1
  10673. cat conftest.err >&5
  10674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10675. (exit $ac_status); } &&
  10676. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10677. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10678. (eval $ac_try) 2>&5
  10679. ac_status=$?
  10680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10681. (exit $ac_status); }; } &&
  10682. { ac_try='test -s conftest$ac_exeext'
  10683. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10684. (eval $ac_try) 2>&5
  10685. ac_status=$?
  10686. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10687. (exit $ac_status); }; }; then
  10688. eval "$as_ac_var=yes"
  10689. else
  10690. echo "$as_me: failed program was:" >&5
  10691. sed 's/^/| /' conftest.$ac_ext >&5
  10692. eval "$as_ac_var=no"
  10693. fi
  10694. rm -f conftest.err conftest.$ac_objext \
  10695. conftest$ac_exeext conftest.$ac_ext
  10696. fi
  10697. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10698. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10699. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10700. cat >>confdefs.h <<_ACEOF
  10701. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10702. _ACEOF
  10703. fi
  10704. done
  10705. if test "$ac_cv_func_uname" = "no"
  10706. then
  10707. cat << 'EOF' >&2
  10708. configure: error:
  10709. Your system does not have the uname() function.
  10710. This is required for the botpack.
  10711. EOF
  10712. exit 1
  10713. fi
  10714. # Make sure we have stdc headers, since we can't compile without them
  10715. if test "$ac_cv_header_stdc" = "no"
  10716. then
  10717. cat << 'EOF' >&2
  10718. configure: error:
  10719. Your system must support ANSI C Header files.
  10720. These are required for the language support. Sorry.
  10721. EOF
  10722. exit 1
  10723. fi
  10724. #checkpoint
  10725. cat >confcache <<\_ACEOF
  10726. # This file is a shell script that caches the results of configure
  10727. # tests run on this system so they can be shared between configure
  10728. # scripts and configure runs, see configure's option --config-cache.
  10729. # It is not useful on other systems. If it contains results you don't
  10730. # want to keep, you may remove or edit it.
  10731. #
  10732. # config.status only pays attention to the cache file if you give it
  10733. # the --recheck option to rerun configure.
  10734. #
  10735. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10736. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10737. # following values.
  10738. _ACEOF
  10739. # The following way of writing the cache mishandles newlines in values,
  10740. # but we know of no workaround that is simple, portable, and efficient.
  10741. # So, don't put newlines in cache variables' values.
  10742. # Ultrix sh set writes to stderr and can't be redirected directly,
  10743. # and sets the high bit in the cache file unless we assign to the vars.
  10744. {
  10745. (set) 2>&1 |
  10746. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10747. *ac_space=\ *)
  10748. # `set' does not quote correctly, so add quotes (double-quote
  10749. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10750. sed -n \
  10751. "s/'/'\\\\''/g;
  10752. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10753. ;;
  10754. *)
  10755. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10756. sed -n \
  10757. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10758. ;;
  10759. esac;
  10760. } |
  10761. sed '
  10762. t clear
  10763. : clear
  10764. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10765. t end
  10766. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10767. : end' >>confcache
  10768. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10769. if test -w $cache_file; then
  10770. test "x$cache_file" != "x/dev/null"
  10771. cat confcache >$cache_file
  10772. else
  10773. echo "not updating unwritable cache $cache_file"
  10774. fi
  10775. fi
  10776. rm -f confcache
  10777. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  10778. if ! test -f $cfg; then
  10779. cat << EOF >&2
  10780. configure: error:
  10781. Your pack cfg is missing, please copy it to $srcdir/$cfg
  10782. Or specify the path to it with: --with-cfg=
  10783. EOF
  10784. exit 1
  10785. fi
  10786. PACKNAME=`grep "PACKNAME " $cfg | $AWK '/PACKNAME/ {print $2}'`
  10787. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  10788. cat >>confdefs.h <<_ACEOF
  10789. #define EGG_VERSION $version_num
  10790. _ACEOF
  10791. CFG="$cfg"
  10792. #for define in `sed -n -e '[s/^+ \([^ ]*\) .*/\1/ p]' $cfg`; do
  10793. # u_define="S_$define"
  10794. # AC_DEFINE_UNQUOTED($u_define)
  10795. #done
  10796. ld_line="-Wl"
  10797. for func in `grep -hrsI __wrap_ src/compat/* | sed -e 's/^__wrap_\(.*\)(.*/\1/'`; do
  10798. ld_line="${ld_line},--wrap,${func}";
  10799. # echo "FUNC: $func :: $ld_line";
  10800. WRAP="$ld_line"
  10801. done
  10802. case "$srcdir" in
  10803. [\\/]* | ?:[\\/]*)
  10804. MOD_UPDIR=""
  10805. ;;
  10806. *)
  10807. MOD_UPDIR="../"
  10808. ;;
  10809. esac
  10810. 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"
  10811. for mf in $files; do
  10812. # Strip MF so we end up with the name of the file.
  10813. # echo "MF: $mf"
  10814. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10815. dirpart=`(dirname "$mf") 2>/dev/null ||
  10816. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10817. X"$mf" : 'X\(//\)[^/]' \| \
  10818. X"$mf" : 'X\(//\)$' \| \
  10819. X"$mf" : 'X\(/\)' \| \
  10820. . : '\(.\)' 2>/dev/null ||
  10821. echo X"$mf" |
  10822. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10823. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10824. /^X\(\/\/\)$/{ s//\1/; q; }
  10825. /^X\(\/\).*/{ s//\1/; q; }
  10826. s/.*/./; q'`
  10827. # echo "dirpart: $dirpart mf: $mf"
  10828. # rm -rf "$dirpart/.deps/"
  10829. rm -f "$dirpart/.deps/includes"
  10830. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  10831. for file in `sed -n -e '
  10832. /^OBJS = .*\\\\$/ {
  10833. s/^OBJS = //
  10834. :loop
  10835. s/\\\\$//
  10836. p
  10837. n
  10838. /\\\\$/ b loop
  10839. p
  10840. }
  10841. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  10842. do
  10843. base=`basename $file .o`
  10844. test -f "$dirpart/$base.c" || continue
  10845. if ! test -f "$dirpart/.deps/$base.Po"; then
  10846. echo '# dummy' > "$dirpart/.deps/$base.Po"
  10847. #Remove the .o file, because it needs to be recompiled for its dependancies.
  10848. if test -f "$dirpart/$base.o"; then
  10849. rm -f "$dirpart/$base.o"
  10850. fi
  10851. fi
  10852. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  10853. echo "_$base.c:" >> "$dirpart/.deps/includes"
  10854. done
  10855. done
  10856. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/mod/dns.mod/Makefile"
  10857. cat >confcache <<\_ACEOF
  10858. # This file is a shell script that caches the results of configure
  10859. # tests run on this system so they can be shared between configure
  10860. # scripts and configure runs, see configure's option --config-cache.
  10861. # It is not useful on other systems. If it contains results you don't
  10862. # want to keep, you may remove or edit it.
  10863. #
  10864. # config.status only pays attention to the cache file if you give it
  10865. # the --recheck option to rerun configure.
  10866. #
  10867. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10868. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10869. # following values.
  10870. _ACEOF
  10871. # The following way of writing the cache mishandles newlines in values,
  10872. # but we know of no workaround that is simple, portable, and efficient.
  10873. # So, don't put newlines in cache variables' values.
  10874. # Ultrix sh set writes to stderr and can't be redirected directly,
  10875. # and sets the high bit in the cache file unless we assign to the vars.
  10876. {
  10877. (set) 2>&1 |
  10878. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10879. *ac_space=\ *)
  10880. # `set' does not quote correctly, so add quotes (double-quote
  10881. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10882. sed -n \
  10883. "s/'/'\\\\''/g;
  10884. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10885. ;;
  10886. *)
  10887. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10888. sed -n \
  10889. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10890. ;;
  10891. esac;
  10892. } |
  10893. sed '
  10894. t clear
  10895. : clear
  10896. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10897. t end
  10898. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10899. : end' >>confcache
  10900. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10901. if test -w $cache_file; then
  10902. test "x$cache_file" != "x/dev/null"
  10903. cat confcache >$cache_file
  10904. else
  10905. echo "not updating unwritable cache $cache_file"
  10906. fi
  10907. fi
  10908. rm -f confcache
  10909. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10910. # Let make expand exec_prefix.
  10911. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10912. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10913. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10914. # trailing colons and then remove the whole line if VPATH becomes empty
  10915. # (actually we leave an empty line to preserve line numbers).
  10916. if test "x$srcdir" = x.; then
  10917. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10918. s/:*\$(srcdir):*/:/;
  10919. s/:*\${srcdir}:*/:/;
  10920. s/:*@srcdir@:*/:/;
  10921. s/^\([^=]*=[ ]*\):*/\1/;
  10922. s/:*$//;
  10923. s/^[^=]*=[ ]*$//;
  10924. }'
  10925. fi
  10926. DEFS=-DHAVE_CONFIG_H
  10927. ac_libobjs=
  10928. ac_ltlibobjs=
  10929. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10930. # 1. Remove the extension, and $U if already installed.
  10931. ac_i=`echo "$ac_i" |
  10932. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  10933. # 2. Add them.
  10934. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  10935. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  10936. done
  10937. LIBOBJS=$ac_libobjs
  10938. LTLIBOBJS=$ac_ltlibobjs
  10939. : ${CONFIG_STATUS=./config.status}
  10940. ac_clean_files_save=$ac_clean_files
  10941. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10942. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  10943. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10944. cat >$CONFIG_STATUS <<_ACEOF
  10945. #! $SHELL
  10946. # Generated by $as_me.
  10947. # Run this file to recreate the current configuration.
  10948. # Compiler output produced by configure, useful for debugging
  10949. # configure, is in config.log if it exists.
  10950. debug=false
  10951. ac_cs_recheck=false
  10952. ac_cs_silent=false
  10953. SHELL=\${CONFIG_SHELL-$SHELL}
  10954. _ACEOF
  10955. cat >>$CONFIG_STATUS <<\_ACEOF
  10956. ## --------------------- ##
  10957. ## M4sh Initialization. ##
  10958. ## --------------------- ##
  10959. # Be Bourne compatible
  10960. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10961. emulate sh
  10962. NULLCMD=:
  10963. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10964. # is contrary to our usage. Disable this feature.
  10965. alias -g '${1+"$@"}'='"$@"'
  10966. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  10967. set -o posix
  10968. fi
  10969. DUALCASE=1; export DUALCASE # for MKS sh
  10970. # Support unset when possible.
  10971. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10972. as_unset=unset
  10973. else
  10974. as_unset=false
  10975. fi
  10976. # Work around bugs in pre-3.0 UWIN ksh.
  10977. $as_unset ENV MAIL MAILPATH
  10978. PS1='$ '
  10979. PS2='> '
  10980. PS4='+ '
  10981. # NLS nuisances.
  10982. for as_var in \
  10983. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  10984. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  10985. LC_TELEPHONE LC_TIME
  10986. do
  10987. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  10988. eval $as_var=C; export $as_var
  10989. else
  10990. $as_unset $as_var
  10991. fi
  10992. done
  10993. # Required to use basename.
  10994. if expr a : '\(a\)' >/dev/null 2>&1; then
  10995. as_expr=expr
  10996. else
  10997. as_expr=false
  10998. fi
  10999. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  11000. as_basename=basename
  11001. else
  11002. as_basename=false
  11003. fi
  11004. # Name of the executable.
  11005. as_me=`$as_basename "$0" ||
  11006. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11007. X"$0" : 'X\(//\)$' \| \
  11008. X"$0" : 'X\(/\)$' \| \
  11009. . : '\(.\)' 2>/dev/null ||
  11010. echo X/"$0" |
  11011. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  11012. /^X\/\(\/\/\)$/{ s//\1/; q; }
  11013. /^X\/\(\/\).*/{ s//\1/; q; }
  11014. s/.*/./; q'`
  11015. # PATH needs CR, and LINENO needs CR and PATH.
  11016. # Avoid depending upon Character Ranges.
  11017. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11018. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11019. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11020. as_cr_digits='0123456789'
  11021. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11022. # The user is always right.
  11023. if test "${PATH_SEPARATOR+set}" != set; then
  11024. echo "#! /bin/sh" >conf$$.sh
  11025. echo "exit 0" >>conf$$.sh
  11026. chmod +x conf$$.sh
  11027. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11028. PATH_SEPARATOR=';'
  11029. else
  11030. PATH_SEPARATOR=:
  11031. fi
  11032. rm -f conf$$.sh
  11033. fi
  11034. as_lineno_1=$LINENO
  11035. as_lineno_2=$LINENO
  11036. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11037. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11038. test "x$as_lineno_3" = "x$as_lineno_2" || {
  11039. # Find who we are. Look in the path if we contain no path at all
  11040. # relative or not.
  11041. case $0 in
  11042. *[\\/]* ) as_myself=$0 ;;
  11043. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11044. for as_dir in $PATH
  11045. do
  11046. IFS=$as_save_IFS
  11047. test -z "$as_dir" && as_dir=.
  11048. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11049. done
  11050. ;;
  11051. esac
  11052. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11053. # in which case we are not to be found in the path.
  11054. if test "x$as_myself" = x; then
  11055. as_myself=$0
  11056. fi
  11057. if test ! -f "$as_myself"; then
  11058. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  11059. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  11060. { (exit 1); exit 1; }; }
  11061. fi
  11062. case $CONFIG_SHELL in
  11063. '')
  11064. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11065. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  11066. do
  11067. IFS=$as_save_IFS
  11068. test -z "$as_dir" && as_dir=.
  11069. for as_base in sh bash ksh sh5; do
  11070. case $as_dir in
  11071. /*)
  11072. if ("$as_dir/$as_base" -c '
  11073. as_lineno_1=$LINENO
  11074. as_lineno_2=$LINENO
  11075. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11076. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11077. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  11078. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  11079. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  11080. CONFIG_SHELL=$as_dir/$as_base
  11081. export CONFIG_SHELL
  11082. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  11083. fi;;
  11084. esac
  11085. done
  11086. done
  11087. ;;
  11088. esac
  11089. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11090. # uniformly replaced by the line number. The first 'sed' inserts a
  11091. # line-number line before each line; the second 'sed' does the real
  11092. # work. The second script uses 'N' to pair each line-number line
  11093. # with the numbered line, and appends trailing '-' during
  11094. # substitution so that $LINENO is not a special case at line end.
  11095. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11096. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  11097. sed '=' <$as_myself |
  11098. sed '
  11099. N
  11100. s,$,-,
  11101. : loop
  11102. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  11103. t loop
  11104. s,-$,,
  11105. s,^['$as_cr_digits']*\n,,
  11106. ' >$as_me.lineno &&
  11107. chmod +x $as_me.lineno ||
  11108. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  11109. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  11110. { (exit 1); exit 1; }; }
  11111. # Don't try to exec as it changes $[0], causing all sort of problems
  11112. # (the dirname of $[0] is not the place where we might find the
  11113. # original and so on. Autoconf is especially sensible to this).
  11114. . ./$as_me.lineno
  11115. # Exit status is that of the last command.
  11116. exit
  11117. }
  11118. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  11119. *c*,-n*) ECHO_N= ECHO_C='
  11120. ' ECHO_T=' ' ;;
  11121. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  11122. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  11123. esac
  11124. if expr a : '\(a\)' >/dev/null 2>&1; then
  11125. as_expr=expr
  11126. else
  11127. as_expr=false
  11128. fi
  11129. rm -f conf$$ conf$$.exe conf$$.file
  11130. echo >conf$$.file
  11131. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11132. # We could just check for DJGPP; but this test a) works b) is more generic
  11133. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  11134. if test -f conf$$.exe; then
  11135. # Don't use ln at all; we don't have any links
  11136. as_ln_s='cp -p'
  11137. else
  11138. as_ln_s='ln -s'
  11139. fi
  11140. elif ln conf$$.file conf$$ 2>/dev/null; then
  11141. as_ln_s=ln
  11142. else
  11143. as_ln_s='cp -p'
  11144. fi
  11145. rm -f conf$$ conf$$.exe conf$$.file
  11146. if mkdir -p . 2>/dev/null; then
  11147. as_mkdir_p=:
  11148. else
  11149. test -d ./-p && rmdir ./-p
  11150. as_mkdir_p=false
  11151. fi
  11152. as_executable_p="test -f"
  11153. # Sed expression to map a string onto a valid CPP name.
  11154. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11155. # Sed expression to map a string onto a valid variable name.
  11156. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11157. # IFS
  11158. # We need space, tab and new line, in precisely that order.
  11159. as_nl='
  11160. '
  11161. IFS=" $as_nl"
  11162. # CDPATH.
  11163. $as_unset CDPATH
  11164. exec 6>&1
  11165. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  11166. # report actual input values of CONFIG_FILES etc. instead of their
  11167. # values after options handling. Logging --version etc. is OK.
  11168. exec 5>>config.log
  11169. {
  11170. echo
  11171. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11172. ## Running $as_me. ##
  11173. _ASBOX
  11174. } >&5
  11175. cat >&5 <<_CSEOF
  11176. This file was extended by $as_me, which was
  11177. generated by GNU Autoconf 2.59. Invocation command line was
  11178. CONFIG_FILES = $CONFIG_FILES
  11179. CONFIG_HEADERS = $CONFIG_HEADERS
  11180. CONFIG_LINKS = $CONFIG_LINKS
  11181. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11182. $ $0 $@
  11183. _CSEOF
  11184. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  11185. echo >&5
  11186. _ACEOF
  11187. # Files that config.status was made for.
  11188. if test -n "$ac_config_files"; then
  11189. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  11190. fi
  11191. if test -n "$ac_config_headers"; then
  11192. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  11193. fi
  11194. if test -n "$ac_config_links"; then
  11195. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  11196. fi
  11197. if test -n "$ac_config_commands"; then
  11198. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  11199. fi
  11200. cat >>$CONFIG_STATUS <<\_ACEOF
  11201. ac_cs_usage="\
  11202. \`$as_me' instantiates files from templates according to the
  11203. current configuration.
  11204. Usage: $0 [OPTIONS] [FILE]...
  11205. -h, --help print this help, then exit
  11206. -V, --version print version number, then exit
  11207. -q, --quiet do not print progress messages
  11208. -d, --debug don't remove temporary files
  11209. --recheck update $as_me by reconfiguring in the same conditions
  11210. --file=FILE[:TEMPLATE]
  11211. instantiate the configuration file FILE
  11212. --header=FILE[:TEMPLATE]
  11213. instantiate the configuration header FILE
  11214. Configuration files:
  11215. $config_files
  11216. Configuration headers:
  11217. $config_headers
  11218. Report bugs to <bug-autoconf@gnu.org>."
  11219. _ACEOF
  11220. cat >>$CONFIG_STATUS <<_ACEOF
  11221. ac_cs_version="\\
  11222. config.status
  11223. configured by $0, generated by GNU Autoconf 2.59,
  11224. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  11225. Copyright (C) 2003 Free Software Foundation, Inc.
  11226. This config.status script is free software; the Free Software Foundation
  11227. gives unlimited permission to copy, distribute and modify it."
  11228. srcdir=$srcdir
  11229. _ACEOF
  11230. cat >>$CONFIG_STATUS <<\_ACEOF
  11231. # If no file are specified by the user, then we need to provide default
  11232. # value. By we need to know if files were specified by the user.
  11233. ac_need_defaults=:
  11234. while test $# != 0
  11235. do
  11236. case $1 in
  11237. --*=*)
  11238. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  11239. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  11240. ac_shift=:
  11241. ;;
  11242. -*)
  11243. ac_option=$1
  11244. ac_optarg=$2
  11245. ac_shift=shift
  11246. ;;
  11247. *) # This is not an option, so the user has probably given explicit
  11248. # arguments.
  11249. ac_option=$1
  11250. ac_need_defaults=false;;
  11251. esac
  11252. case $ac_option in
  11253. # Handling of the options.
  11254. _ACEOF
  11255. cat >>$CONFIG_STATUS <<\_ACEOF
  11256. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11257. ac_cs_recheck=: ;;
  11258. --version | --vers* | -V )
  11259. echo "$ac_cs_version"; exit 0 ;;
  11260. --he | --h)
  11261. # Conflict between --help and --header
  11262. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  11263. Try \`$0 --help' for more information." >&5
  11264. echo "$as_me: error: ambiguous option: $1
  11265. Try \`$0 --help' for more information." >&2;}
  11266. { (exit 1); exit 1; }; };;
  11267. --help | --hel | -h )
  11268. echo "$ac_cs_usage"; exit 0 ;;
  11269. --debug | --d* | -d )
  11270. debug=: ;;
  11271. --file | --fil | --fi | --f )
  11272. $ac_shift
  11273. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11274. ac_need_defaults=false;;
  11275. --header | --heade | --head | --hea )
  11276. $ac_shift
  11277. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11278. ac_need_defaults=false;;
  11279. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11280. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11281. ac_cs_silent=: ;;
  11282. # This is an error.
  11283. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  11284. Try \`$0 --help' for more information." >&5
  11285. echo "$as_me: error: unrecognized option: $1
  11286. Try \`$0 --help' for more information." >&2;}
  11287. { (exit 1); exit 1; }; } ;;
  11288. *) ac_config_targets="$ac_config_targets $1" ;;
  11289. esac
  11290. shift
  11291. done
  11292. ac_configure_extra_args=
  11293. if $ac_cs_silent; then
  11294. exec 6>/dev/null
  11295. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11296. fi
  11297. _ACEOF
  11298. cat >>$CONFIG_STATUS <<_ACEOF
  11299. if \$ac_cs_recheck; then
  11300. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11301. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11302. fi
  11303. _ACEOF
  11304. cat >>$CONFIG_STATUS <<\_ACEOF
  11305. for ac_config_target in $ac_config_targets
  11306. do
  11307. case "$ac_config_target" in
  11308. # Handling of arguments.
  11309. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11310. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11311. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  11312. "src/crypto/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  11313. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  11314. "src/mod/dns.mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/dns.mod/Makefile" ;;
  11315. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11316. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11317. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11318. { (exit 1); exit 1; }; };;
  11319. esac
  11320. done
  11321. # If the user did not use the arguments to specify the items to instantiate,
  11322. # then the envvar interface is used. Set only those that are not.
  11323. # We use the long form for the default assignment because of an extremely
  11324. # bizarre bug on SunOS 4.1.3.
  11325. if $ac_need_defaults; then
  11326. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11327. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11328. fi
  11329. # Have a temporary directory for convenience. Make it in the build tree
  11330. # simply because there is no reason to put it here, and in addition,
  11331. # creating and moving files from /tmp can sometimes cause problems.
  11332. # Create a temporary directory, and hook for its removal unless debugging.
  11333. $debug ||
  11334. {
  11335. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11336. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11337. }
  11338. # Create a (secure) tmp directory for tmp files.
  11339. {
  11340. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11341. test -n "$tmp" && test -d "$tmp"
  11342. } ||
  11343. {
  11344. tmp=./confstat$$-$RANDOM
  11345. (umask 077 && mkdir $tmp)
  11346. } ||
  11347. {
  11348. echo "$me: cannot create a temporary directory in ." >&2
  11349. { (exit 1); exit 1; }
  11350. }
  11351. _ACEOF
  11352. cat >>$CONFIG_STATUS <<_ACEOF
  11353. #
  11354. # CONFIG_FILES section.
  11355. #
  11356. # No need to generate the scripts if there are no CONFIG_FILES.
  11357. # This happens for instance when ./config.status config.h
  11358. if test -n "\$CONFIG_FILES"; then
  11359. # Protect against being on the right side of a sed subst in config.status.
  11360. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11361. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11362. s,@SHELL@,$SHELL,;t t
  11363. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11364. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11365. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11366. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11367. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11368. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11369. s,@exec_prefix@,$exec_prefix,;t t
  11370. s,@prefix@,$prefix,;t t
  11371. s,@program_transform_name@,$program_transform_name,;t t
  11372. s,@bindir@,$bindir,;t t
  11373. s,@sbindir@,$sbindir,;t t
  11374. s,@libexecdir@,$libexecdir,;t t
  11375. s,@datadir@,$datadir,;t t
  11376. s,@sysconfdir@,$sysconfdir,;t t
  11377. s,@sharedstatedir@,$sharedstatedir,;t t
  11378. s,@localstatedir@,$localstatedir,;t t
  11379. s,@libdir@,$libdir,;t t
  11380. s,@includedir@,$includedir,;t t
  11381. s,@oldincludedir@,$oldincludedir,;t t
  11382. s,@infodir@,$infodir,;t t
  11383. s,@mandir@,$mandir,;t t
  11384. s,@build_alias@,$build_alias,;t t
  11385. s,@host_alias@,$host_alias,;t t
  11386. s,@target_alias@,$target_alias,;t t
  11387. s,@DEFS@,$DEFS,;t t
  11388. s,@ECHO_C@,$ECHO_C,;t t
  11389. s,@ECHO_N@,$ECHO_N,;t t
  11390. s,@ECHO_T@,$ECHO_T,;t t
  11391. s,@LIBS@,$LIBS,;t t
  11392. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  11393. s,@CC@,$CC,;t t
  11394. s,@CFLAGS@,$CFLAGS,;t t
  11395. s,@LDFLAGS@,$LDFLAGS,;t t
  11396. s,@CPPFLAGS@,$CPPFLAGS,;t t
  11397. s,@ac_ct_CC@,$ac_ct_CC,;t t
  11398. s,@EXEEXT@,$EXEEXT,;t t
  11399. s,@OBJEXT@,$OBJEXT,;t t
  11400. s,@CPP@,$CPP,;t t
  11401. s,@EGREP@,$EGREP,;t t
  11402. s,@CCDEPMODE@,$CCDEPMODE,;t t
  11403. s,@GCC3@,$GCC3,;t t
  11404. s,@CCDEBUG@,$CCDEBUG,;t t
  11405. s,@SET_MAKE@,$SET_MAKE,;t t
  11406. s,@HEAD_1@,$HEAD_1,;t t
  11407. s,@AWK@,$AWK,;t t
  11408. s,@BASENAME@,$BASENAME,;t t
  11409. s,@OBJCOPY@,$OBJCOPY,;t t
  11410. s,@STRIP@,$STRIP,;t t
  11411. s,@UNAME@,$UNAME,;t t
  11412. s,@DISTCC@,$DISTCC,;t t
  11413. s,@RESLIB@,$RESLIB,;t t
  11414. s,@RESINCLUDE@,$RESINCLUDE,;t t
  11415. s,@ZLIB@,$ZLIB,;t t
  11416. s,@LIBOBJS@,$LIBOBJS,;t t
  11417. s,@VERSION@,$VERSION,;t t
  11418. s,@NUMVER@,$NUMVER,;t t
  11419. s,@PACKNAME@,$PACKNAME,;t t
  11420. s,@CFG@,$CFG,;t t
  11421. s,@WRAP@,$WRAP,;t t
  11422. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  11423. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11424. CEOF
  11425. _ACEOF
  11426. cat >>$CONFIG_STATUS <<\_ACEOF
  11427. # Split the substitutions into bite-sized pieces for seds with
  11428. # small command number limits, like on Digital OSF/1 and HP-UX.
  11429. ac_max_sed_lines=48
  11430. ac_sed_frag=1 # Number of current file.
  11431. ac_beg=1 # First line for current file.
  11432. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11433. ac_more_lines=:
  11434. ac_sed_cmds=
  11435. while $ac_more_lines; do
  11436. if test $ac_beg -gt 1; then
  11437. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11438. else
  11439. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11440. fi
  11441. if test ! -s $tmp/subs.frag; then
  11442. ac_more_lines=false
  11443. else
  11444. # The purpose of the label and of the branching condition is to
  11445. # speed up the sed processing (if there are no `@' at all, there
  11446. # is no need to browse any of the substitutions).
  11447. # These are the two extra sed commands mentioned above.
  11448. (echo ':t
  11449. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11450. if test -z "$ac_sed_cmds"; then
  11451. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11452. else
  11453. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11454. fi
  11455. ac_sed_frag=`expr $ac_sed_frag + 1`
  11456. ac_beg=$ac_end
  11457. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11458. fi
  11459. done
  11460. if test -z "$ac_sed_cmds"; then
  11461. ac_sed_cmds=cat
  11462. fi
  11463. fi # test -n "$CONFIG_FILES"
  11464. _ACEOF
  11465. cat >>$CONFIG_STATUS <<\_ACEOF
  11466. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11467. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11468. case $ac_file in
  11469. - | *:- | *:-:* ) # input from stdin
  11470. cat >$tmp/stdin
  11471. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11472. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11473. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11474. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11475. * ) ac_file_in=$ac_file.in ;;
  11476. esac
  11477. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11478. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11479. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11480. X"$ac_file" : 'X\(//\)[^/]' \| \
  11481. X"$ac_file" : 'X\(//\)$' \| \
  11482. X"$ac_file" : 'X\(/\)' \| \
  11483. . : '\(.\)' 2>/dev/null ||
  11484. echo X"$ac_file" |
  11485. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11486. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11487. /^X\(\/\/\)$/{ s//\1/; q; }
  11488. /^X\(\/\).*/{ s//\1/; q; }
  11489. s/.*/./; q'`
  11490. { if $as_mkdir_p; then
  11491. mkdir -p "$ac_dir"
  11492. else
  11493. as_dir="$ac_dir"
  11494. as_dirs=
  11495. while test ! -d "$as_dir"; do
  11496. as_dirs="$as_dir $as_dirs"
  11497. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11498. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11499. X"$as_dir" : 'X\(//\)[^/]' \| \
  11500. X"$as_dir" : 'X\(//\)$' \| \
  11501. X"$as_dir" : 'X\(/\)' \| \
  11502. . : '\(.\)' 2>/dev/null ||
  11503. echo X"$as_dir" |
  11504. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11505. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11506. /^X\(\/\/\)$/{ s//\1/; q; }
  11507. /^X\(\/\).*/{ s//\1/; q; }
  11508. s/.*/./; q'`
  11509. done
  11510. test ! -n "$as_dirs" || mkdir $as_dirs
  11511. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11512. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11513. { (exit 1); exit 1; }; }; }
  11514. ac_builddir=.
  11515. if test "$ac_dir" != .; then
  11516. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11517. # A "../" for each directory in $ac_dir_suffix.
  11518. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11519. else
  11520. ac_dir_suffix= ac_top_builddir=
  11521. fi
  11522. case $srcdir in
  11523. .) # No --srcdir option. We are building in place.
  11524. ac_srcdir=.
  11525. if test -z "$ac_top_builddir"; then
  11526. ac_top_srcdir=.
  11527. else
  11528. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11529. fi ;;
  11530. [\\/]* | ?:[\\/]* ) # Absolute path.
  11531. ac_srcdir=$srcdir$ac_dir_suffix;
  11532. ac_top_srcdir=$srcdir ;;
  11533. *) # Relative path.
  11534. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11535. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11536. esac
  11537. # Do not use `cd foo && pwd` to compute absolute paths, because
  11538. # the directories may not exist.
  11539. case `pwd` in
  11540. .) ac_abs_builddir="$ac_dir";;
  11541. *)
  11542. case "$ac_dir" in
  11543. .) ac_abs_builddir=`pwd`;;
  11544. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11545. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11546. esac;;
  11547. esac
  11548. case $ac_abs_builddir in
  11549. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11550. *)
  11551. case ${ac_top_builddir}. in
  11552. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11553. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11554. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11555. esac;;
  11556. esac
  11557. case $ac_abs_builddir in
  11558. .) ac_abs_srcdir=$ac_srcdir;;
  11559. *)
  11560. case $ac_srcdir in
  11561. .) ac_abs_srcdir=$ac_abs_builddir;;
  11562. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11563. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11564. esac;;
  11565. esac
  11566. case $ac_abs_builddir in
  11567. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11568. *)
  11569. case $ac_top_srcdir in
  11570. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11571. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11572. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11573. esac;;
  11574. esac
  11575. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11576. # use $as_me), people would be surprised to read:
  11577. # /* config.h. Generated by config.status. */
  11578. if test x"$ac_file" = x-; then
  11579. configure_input=
  11580. else
  11581. configure_input="$ac_file. "
  11582. fi
  11583. configure_input=$configure_input"Generated from `echo $ac_file_in |
  11584. sed 's,.*/,,'` by configure."
  11585. # First look for the input files in the build tree, otherwise in the
  11586. # src tree.
  11587. ac_file_inputs=`IFS=:
  11588. for f in $ac_file_in; do
  11589. case $f in
  11590. -) echo $tmp/stdin ;;
  11591. [\\/$]*)
  11592. # Absolute (can't be DOS-style, as IFS=:)
  11593. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11594. echo "$as_me: error: cannot find input file: $f" >&2;}
  11595. { (exit 1); exit 1; }; }
  11596. echo "$f";;
  11597. *) # Relative
  11598. if test -f "$f"; then
  11599. # Build tree
  11600. echo "$f"
  11601. elif test -f "$srcdir/$f"; then
  11602. # Source tree
  11603. echo "$srcdir/$f"
  11604. else
  11605. # /dev/null tree
  11606. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11607. echo "$as_me: error: cannot find input file: $f" >&2;}
  11608. { (exit 1); exit 1; }; }
  11609. fi;;
  11610. esac
  11611. done` || { (exit 1); exit 1; }
  11612. if test x"$ac_file" != x-; then
  11613. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11614. echo "$as_me: creating $ac_file" >&6;}
  11615. rm -f "$ac_file"
  11616. fi
  11617. _ACEOF
  11618. cat >>$CONFIG_STATUS <<_ACEOF
  11619. sed "$ac_vpsub
  11620. $extrasub
  11621. _ACEOF
  11622. cat >>$CONFIG_STATUS <<\_ACEOF
  11623. :t
  11624. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11625. s,@configure_input@,$configure_input,;t t
  11626. s,@srcdir@,$ac_srcdir,;t t
  11627. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  11628. s,@top_srcdir@,$ac_top_srcdir,;t t
  11629. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  11630. s,@builddir@,$ac_builddir,;t t
  11631. s,@abs_builddir@,$ac_abs_builddir,;t t
  11632. s,@top_builddir@,$ac_top_builddir,;t t
  11633. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  11634. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  11635. rm -f $tmp/stdin
  11636. if test x"$ac_file" != x-; then
  11637. mv $tmp/out $ac_file
  11638. else
  11639. cat $tmp/out
  11640. rm -f $tmp/out
  11641. fi
  11642. done
  11643. _ACEOF
  11644. cat >>$CONFIG_STATUS <<\_ACEOF
  11645. #
  11646. # CONFIG_HEADER section.
  11647. #
  11648. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11649. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11650. #
  11651. # ac_d sets the value in "#define NAME VALUE" lines.
  11652. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11653. ac_dB='[ ].*$,\1#\2'
  11654. ac_dC=' '
  11655. ac_dD=',;t'
  11656. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11657. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11658. ac_uB='$,\1#\2define\3'
  11659. ac_uC=' '
  11660. ac_uD=',;t'
  11661. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  11662. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11663. case $ac_file in
  11664. - | *:- | *:-:* ) # input from stdin
  11665. cat >$tmp/stdin
  11666. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11667. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11668. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11669. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11670. * ) ac_file_in=$ac_file.in ;;
  11671. esac
  11672. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  11673. echo "$as_me: creating $ac_file" >&6;}
  11674. # First look for the input files in the build tree, otherwise in the
  11675. # src tree.
  11676. ac_file_inputs=`IFS=:
  11677. for f in $ac_file_in; do
  11678. case $f in
  11679. -) echo $tmp/stdin ;;
  11680. [\\/$]*)
  11681. # Absolute (can't be DOS-style, as IFS=:)
  11682. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11683. echo "$as_me: error: cannot find input file: $f" >&2;}
  11684. { (exit 1); exit 1; }; }
  11685. # Do quote $f, to prevent DOS paths from being IFS'd.
  11686. echo "$f";;
  11687. *) # Relative
  11688. if test -f "$f"; then
  11689. # Build tree
  11690. echo "$f"
  11691. elif test -f "$srcdir/$f"; then
  11692. # Source tree
  11693. echo "$srcdir/$f"
  11694. else
  11695. # /dev/null tree
  11696. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11697. echo "$as_me: error: cannot find input file: $f" >&2;}
  11698. { (exit 1); exit 1; }; }
  11699. fi;;
  11700. esac
  11701. done` || { (exit 1); exit 1; }
  11702. # Remove the trailing spaces.
  11703. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  11704. _ACEOF
  11705. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  11706. # `conftest.undefs', that substitutes the proper values into
  11707. # config.h.in to produce config.h. The first handles `#define'
  11708. # templates, and the second `#undef' templates.
  11709. # And first: Protect against being on the right side of a sed subst in
  11710. # config.status. Protect against being in an unquoted here document
  11711. # in config.status.
  11712. rm -f conftest.defines conftest.undefs
  11713. # Using a here document instead of a string reduces the quoting nightmare.
  11714. # Putting comments in sed scripts is not portable.
  11715. #
  11716. # `end' is used to avoid that the second main sed command (meant for
  11717. # 0-ary CPP macros) applies to n-ary macro definitions.
  11718. # See the Autoconf documentation for `clear'.
  11719. cat >confdef2sed.sed <<\_ACEOF
  11720. s/[\\&,]/\\&/g
  11721. s,[\\$`],\\&,g
  11722. t clear
  11723. : clear
  11724. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  11725. t end
  11726. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  11727. : end
  11728. _ACEOF
  11729. # If some macros were called several times there might be several times
  11730. # the same #defines, which is useless. Nevertheless, we may not want to
  11731. # sort them, since we want the *last* AC-DEFINE to be honored.
  11732. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  11733. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  11734. rm -f confdef2sed.sed
  11735. # This sed command replaces #undef with comments. This is necessary, for
  11736. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11737. # on some systems where configure will not decide to define it.
  11738. cat >>conftest.undefs <<\_ACEOF
  11739. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  11740. _ACEOF
  11741. # Break up conftest.defines because some shells have a limit on the size
  11742. # of here documents, and old seds have small limits too (100 cmds).
  11743. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  11744. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  11745. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  11746. echo ' :' >>$CONFIG_STATUS
  11747. rm -f conftest.tail
  11748. while grep . conftest.defines >/dev/null
  11749. do
  11750. # Write a limited-size here document to $tmp/defines.sed.
  11751. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  11752. # Speed up: don't consider the non `#define' lines.
  11753. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  11754. # Work around the forget-to-reset-the-flag bug.
  11755. echo 't clr' >>$CONFIG_STATUS
  11756. echo ': clr' >>$CONFIG_STATUS
  11757. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  11758. echo 'CEOF
  11759. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  11760. rm -f $tmp/in
  11761. mv $tmp/out $tmp/in
  11762. ' >>$CONFIG_STATUS
  11763. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  11764. rm -f conftest.defines
  11765. mv conftest.tail conftest.defines
  11766. done
  11767. rm -f conftest.defines
  11768. echo ' fi # grep' >>$CONFIG_STATUS
  11769. echo >>$CONFIG_STATUS
  11770. # Break up conftest.undefs because some shells have a limit on the size
  11771. # of here documents, and old seds have small limits too (100 cmds).
  11772. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  11773. rm -f conftest.tail
  11774. while grep . conftest.undefs >/dev/null
  11775. do
  11776. # Write a limited-size here document to $tmp/undefs.sed.
  11777. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  11778. # Speed up: don't consider the non `#undef'
  11779. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  11780. # Work around the forget-to-reset-the-flag bug.
  11781. echo 't clr' >>$CONFIG_STATUS
  11782. echo ': clr' >>$CONFIG_STATUS
  11783. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  11784. echo 'CEOF
  11785. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  11786. rm -f $tmp/in
  11787. mv $tmp/out $tmp/in
  11788. ' >>$CONFIG_STATUS
  11789. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  11790. rm -f conftest.undefs
  11791. mv conftest.tail conftest.undefs
  11792. done
  11793. rm -f conftest.undefs
  11794. cat >>$CONFIG_STATUS <<\_ACEOF
  11795. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11796. # use $as_me), people would be surprised to read:
  11797. # /* config.h. Generated by config.status. */
  11798. if test x"$ac_file" = x-; then
  11799. echo "/* Generated by configure. */" >$tmp/config.h
  11800. else
  11801. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  11802. fi
  11803. cat $tmp/in >>$tmp/config.h
  11804. rm -f $tmp/in
  11805. if test x"$ac_file" != x-; then
  11806. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  11807. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11808. echo "$as_me: $ac_file is unchanged" >&6;}
  11809. else
  11810. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11811. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11812. X"$ac_file" : 'X\(//\)[^/]' \| \
  11813. X"$ac_file" : 'X\(//\)$' \| \
  11814. X"$ac_file" : 'X\(/\)' \| \
  11815. . : '\(.\)' 2>/dev/null ||
  11816. echo X"$ac_file" |
  11817. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11818. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11819. /^X\(\/\/\)$/{ s//\1/; q; }
  11820. /^X\(\/\).*/{ s//\1/; q; }
  11821. s/.*/./; q'`
  11822. { if $as_mkdir_p; then
  11823. mkdir -p "$ac_dir"
  11824. else
  11825. as_dir="$ac_dir"
  11826. as_dirs=
  11827. while test ! -d "$as_dir"; do
  11828. as_dirs="$as_dir $as_dirs"
  11829. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11830. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11831. X"$as_dir" : 'X\(//\)[^/]' \| \
  11832. X"$as_dir" : 'X\(//\)$' \| \
  11833. X"$as_dir" : 'X\(/\)' \| \
  11834. . : '\(.\)' 2>/dev/null ||
  11835. echo X"$as_dir" |
  11836. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11837. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11838. /^X\(\/\/\)$/{ s//\1/; q; }
  11839. /^X\(\/\).*/{ s//\1/; q; }
  11840. s/.*/./; q'`
  11841. done
  11842. test ! -n "$as_dirs" || mkdir $as_dirs
  11843. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11844. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11845. { (exit 1); exit 1; }; }; }
  11846. rm -f $ac_file
  11847. mv $tmp/config.h $ac_file
  11848. fi
  11849. else
  11850. cat $tmp/config.h
  11851. rm -f $tmp/config.h
  11852. fi
  11853. done
  11854. _ACEOF
  11855. cat >>$CONFIG_STATUS <<\_ACEOF
  11856. { (exit 0); exit 0; }
  11857. _ACEOF
  11858. chmod +x $CONFIG_STATUS
  11859. ac_clean_files=$ac_clean_files_save
  11860. # configure is writing to config.log, and then calls config.status.
  11861. # config.status does its own redirection, appending to config.log.
  11862. # Unfortunately, on DOS this fails, as config.log is still kept open
  11863. # by configure, so config.status won't be able to write to it; its
  11864. # output is simply discarded. So we exec the FD to /dev/null,
  11865. # effectively closing config.log, so it can be properly (re)opened and
  11866. # appended to by config.status. When coming back to configure, we
  11867. # need to make the FD available again.
  11868. if test "$no_create" != yes; then
  11869. ac_cs_success=:
  11870. ac_config_status_args=
  11871. test "$silent" = yes &&
  11872. ac_config_status_args="$ac_config_status_args --quiet"
  11873. exec 5>/dev/null
  11874. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11875. exec 5>>config.log
  11876. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11877. # would make configure fail if this is the last instruction.
  11878. $ac_cs_success || { (exit 1); exit 1; }
  11879. fi