configure 369 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.27 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.59.
  5. #
  6. # Copyright (C) 2003 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. #
  10. # Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be Bourne compatible
  15. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16. emulate sh
  17. NULLCMD=:
  18. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19. # is contrary to our usage. Disable this feature.
  20. alias -g '${1+"$@"}'='"$@"'
  21. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  22. set -o posix
  23. fi
  24. DUALCASE=1; export DUALCASE # for MKS sh
  25. # Support unset when possible.
  26. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  27. as_unset=unset
  28. else
  29. as_unset=false
  30. fi
  31. # Work around bugs in pre-3.0 UWIN ksh.
  32. $as_unset ENV MAIL MAILPATH
  33. PS1='$ '
  34. PS2='> '
  35. PS4='+ '
  36. # NLS nuisances.
  37. for as_var in \
  38. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  39. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  40. LC_TELEPHONE LC_TIME
  41. do
  42. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  43. eval $as_var=C; export $as_var
  44. else
  45. $as_unset $as_var
  46. fi
  47. done
  48. # Required to use basename.
  49. if expr a : '\(a\)' >/dev/null 2>&1; then
  50. as_expr=expr
  51. else
  52. as_expr=false
  53. fi
  54. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  55. as_basename=basename
  56. else
  57. as_basename=false
  58. fi
  59. # Name of the executable.
  60. as_me=`$as_basename "$0" ||
  61. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  62. X"$0" : 'X\(//\)$' \| \
  63. X"$0" : 'X\(/\)$' \| \
  64. . : '\(.\)' 2>/dev/null ||
  65. echo X/"$0" |
  66. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  67. /^X\/\(\/\/\)$/{ s//\1/; q; }
  68. /^X\/\(\/\).*/{ s//\1/; q; }
  69. s/.*/./; q'`
  70. # PATH needs CR, and LINENO needs CR and PATH.
  71. # Avoid depending upon Character Ranges.
  72. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  73. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  74. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  75. as_cr_digits='0123456789'
  76. as_cr_alnum=$as_cr_Letters$as_cr_digits
  77. # The user is always right.
  78. if test "${PATH_SEPARATOR+set}" != set; then
  79. echo "#! /bin/sh" >conf$$.sh
  80. echo "exit 0" >>conf$$.sh
  81. chmod +x conf$$.sh
  82. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  83. PATH_SEPARATOR=';'
  84. else
  85. PATH_SEPARATOR=:
  86. fi
  87. rm -f conf$$.sh
  88. fi
  89. as_lineno_1=$LINENO
  90. as_lineno_2=$LINENO
  91. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  92. test "x$as_lineno_1" != "x$as_lineno_2" &&
  93. test "x$as_lineno_3" = "x$as_lineno_2" || {
  94. # Find who we are. Look in the path if we contain no path at all
  95. # relative or not.
  96. case $0 in
  97. *[\\/]* ) as_myself=$0 ;;
  98. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  99. for as_dir in $PATH
  100. do
  101. IFS=$as_save_IFS
  102. test -z "$as_dir" && as_dir=.
  103. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  104. done
  105. ;;
  106. esac
  107. # We did not find ourselves, most probably we were run as `sh COMMAND'
  108. # in which case we are not to be found in the path.
  109. if test "x$as_myself" = x; then
  110. as_myself=$0
  111. fi
  112. if test ! -f "$as_myself"; then
  113. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  114. { (exit 1); exit 1; }; }
  115. fi
  116. case $CONFIG_SHELL in
  117. '')
  118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  119. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  120. do
  121. IFS=$as_save_IFS
  122. test -z "$as_dir" && as_dir=.
  123. for as_base in sh bash ksh sh5; do
  124. case $as_dir in
  125. /*)
  126. if ("$as_dir/$as_base" -c '
  127. as_lineno_1=$LINENO
  128. as_lineno_2=$LINENO
  129. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  130. test "x$as_lineno_1" != "x$as_lineno_2" &&
  131. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  132. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  133. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  134. CONFIG_SHELL=$as_dir/$as_base
  135. export CONFIG_SHELL
  136. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  137. fi;;
  138. esac
  139. done
  140. done
  141. ;;
  142. esac
  143. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  144. # uniformly replaced by the line number. The first 'sed' inserts a
  145. # line-number line before each line; the second 'sed' does the real
  146. # work. The second script uses 'N' to pair each line-number line
  147. # with the numbered line, and appends trailing '-' during
  148. # substitution so that $LINENO is not a special case at line end.
  149. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  150. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  151. sed '=' <$as_myself |
  152. sed '
  153. N
  154. s,$,-,
  155. : loop
  156. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  157. t loop
  158. s,-$,,
  159. s,^['$as_cr_digits']*\n,,
  160. ' >$as_me.lineno &&
  161. chmod +x $as_me.lineno ||
  162. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  163. { (exit 1); exit 1; }; }
  164. # Don't try to exec as it changes $[0], causing all sort of problems
  165. # (the dirname of $[0] is not the place where we might find the
  166. # original and so on. Autoconf is especially sensible to this).
  167. . ./$as_me.lineno
  168. # Exit status is that of the last command.
  169. exit
  170. }
  171. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  172. *c*,-n*) ECHO_N= ECHO_C='
  173. ' ECHO_T=' ' ;;
  174. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  175. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  176. esac
  177. if expr a : '\(a\)' >/dev/null 2>&1; then
  178. as_expr=expr
  179. else
  180. as_expr=false
  181. fi
  182. rm -f conf$$ conf$$.exe conf$$.file
  183. echo >conf$$.file
  184. if ln -s conf$$.file conf$$ 2>/dev/null; then
  185. # We could just check for DJGPP; but this test a) works b) is more generic
  186. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  187. if test -f conf$$.exe; then
  188. # Don't use ln at all; we don't have any links
  189. as_ln_s='cp -p'
  190. else
  191. as_ln_s='ln -s'
  192. fi
  193. elif ln conf$$.file conf$$ 2>/dev/null; then
  194. as_ln_s=ln
  195. else
  196. as_ln_s='cp -p'
  197. fi
  198. rm -f conf$$ conf$$.exe conf$$.file
  199. if mkdir -p . 2>/dev/null; then
  200. as_mkdir_p=:
  201. else
  202. test -d ./-p && rmdir ./-p
  203. as_mkdir_p=false
  204. fi
  205. as_executable_p="test -f"
  206. # Sed expression to map a string onto a valid CPP name.
  207. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  208. # Sed expression to map a string onto a valid variable name.
  209. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  210. # IFS
  211. # We need space, tab and new line, in precisely that order.
  212. as_nl='
  213. '
  214. IFS=" $as_nl"
  215. # CDPATH.
  216. $as_unset CDPATH
  217. # Name of the host.
  218. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  219. # so uname gets run too.
  220. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  221. exec 6>&1
  222. #
  223. # Initializations.
  224. #
  225. ac_default_prefix=/usr/local
  226. ac_config_libobj_dir=.
  227. cross_compiling=no
  228. subdirs=
  229. MFLAGS=
  230. MAKEFLAGS=
  231. SHELL=${CONFIG_SHELL-/bin/sh}
  232. # Maximum number of lines to put in a shell here document.
  233. # This variable seems obsolete. It should probably be removed, and
  234. # only ac_max_sed_lines should be used.
  235. : ${ac_max_here_lines=38}
  236. # Identity of this package.
  237. PACKAGE_NAME=
  238. PACKAGE_TARNAME=
  239. PACKAGE_VERSION=
  240. PACKAGE_STRING=
  241. PACKAGE_BUGREPORT=
  242. ac_unique_file="wraith"
  243. ac_unique_file="src/eggdrop.h"
  244. # Factoring default headers for most tests.
  245. ac_includes_default="\
  246. #include <stdio.h>
  247. #if HAVE_SYS_TYPES_H
  248. # include <sys/types.h>
  249. #endif
  250. #if HAVE_SYS_STAT_H
  251. # include <sys/stat.h>
  252. #endif
  253. #if STDC_HEADERS
  254. # include <stdlib.h>
  255. # include <stddef.h>
  256. #else
  257. # if HAVE_STDLIB_H
  258. # include <stdlib.h>
  259. # endif
  260. #endif
  261. #if HAVE_STRING_H
  262. # if !STDC_HEADERS && HAVE_MEMORY_H
  263. # include <memory.h>
  264. # endif
  265. # include <string.h>
  266. #endif
  267. #if HAVE_STRINGS_H
  268. # include <strings.h>
  269. #endif
  270. #if HAVE_INTTYPES_H
  271. # include <inttypes.h>
  272. #else
  273. # if HAVE_STDINT_H
  274. # include <stdint.h>
  275. # endif
  276. #endif
  277. #if HAVE_UNISTD_H
  278. # include <unistd.h>
  279. #endif"
  280. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS egg_ac_parameters CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CCDEPMODE GCC3 CCDEBUG SET_MAKE HEAD_1 AWK BASENAME OBJCOPY STRIP UNAME DISTCC RESLIB RESINCLUDE ZLIB LIBOBJS VERSION NUMVER PACKNAME CFG MOD_UPDIR LTLIBOBJS'
  281. ac_subst_files=''
  282. # Initialize some variables set by options.
  283. ac_init_help=
  284. ac_init_version=false
  285. # The variables have the same names as the options, with
  286. # dashes changed to underlines.
  287. cache_file=./config.cache
  288. exec_prefix=NONE
  289. no_create=
  290. no_recursion=
  291. prefix=NONE
  292. program_prefix=NONE
  293. program_suffix=NONE
  294. program_transform_name=s,x,x,
  295. silent=
  296. site=
  297. srcdir=
  298. verbose=
  299. x_includes=NONE
  300. x_libraries=NONE
  301. # Installation directory options.
  302. # These are left unexpanded so users can "make install exec_prefix=/foo"
  303. # and all the variables that are supposed to be based on exec_prefix
  304. # by default will actually change.
  305. # Use braces instead of parens because sh, perl, etc. also accept them.
  306. bindir='${exec_prefix}/bin'
  307. sbindir='${exec_prefix}/sbin'
  308. libexecdir='${exec_prefix}/libexec'
  309. datadir='${prefix}/share'
  310. sysconfdir='${prefix}/etc'
  311. sharedstatedir='${prefix}/com'
  312. localstatedir='${prefix}/var'
  313. libdir='${exec_prefix}/lib'
  314. includedir='${prefix}/include'
  315. oldincludedir='/usr/include'
  316. infodir='${prefix}/info'
  317. mandir='${prefix}/man'
  318. ac_prev=
  319. for ac_option
  320. do
  321. # If the previous option needs an argument, assign it.
  322. if test -n "$ac_prev"; then
  323. eval "$ac_prev=\$ac_option"
  324. ac_prev=
  325. continue
  326. fi
  327. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  328. # Accept the important Cygnus configure options, so we can diagnose typos.
  329. case $ac_option in
  330. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  331. ac_prev=bindir ;;
  332. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  333. bindir=$ac_optarg ;;
  334. -build | --build | --buil | --bui | --bu)
  335. ac_prev=build_alias ;;
  336. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  337. build_alias=$ac_optarg ;;
  338. -cache-file | --cache-file | --cache-fil | --cache-fi \
  339. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  340. ac_prev=cache_file ;;
  341. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  342. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  343. cache_file=$ac_optarg ;;
  344. --config-cache | -C)
  345. cache_file=config.cache ;;
  346. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  347. ac_prev=datadir ;;
  348. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  349. | --da=*)
  350. datadir=$ac_optarg ;;
  351. -disable-* | --disable-*)
  352. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  353. # Reject names that are not valid shell variable names.
  354. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  355. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  356. { (exit 1); exit 1; }; }
  357. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  358. eval "enable_$ac_feature=no" ;;
  359. -enable-* | --enable-*)
  360. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  361. # Reject names that are not valid shell variable names.
  362. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  363. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  364. { (exit 1); exit 1; }; }
  365. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  366. case $ac_option in
  367. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  368. *) ac_optarg=yes ;;
  369. esac
  370. eval "enable_$ac_feature='$ac_optarg'" ;;
  371. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  372. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  373. | --exec | --exe | --ex)
  374. ac_prev=exec_prefix ;;
  375. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  376. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  377. | --exec=* | --exe=* | --ex=*)
  378. exec_prefix=$ac_optarg ;;
  379. -gas | --gas | --ga | --g)
  380. # Obsolete; use --with-gas.
  381. with_gas=yes ;;
  382. -help | --help | --hel | --he | -h)
  383. ac_init_help=long ;;
  384. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  385. ac_init_help=recursive ;;
  386. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  387. ac_init_help=short ;;
  388. -host | --host | --hos | --ho)
  389. ac_prev=host_alias ;;
  390. -host=* | --host=* | --hos=* | --ho=*)
  391. host_alias=$ac_optarg ;;
  392. -includedir | --includedir | --includedi | --included | --include \
  393. | --includ | --inclu | --incl | --inc)
  394. ac_prev=includedir ;;
  395. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  396. | --includ=* | --inclu=* | --incl=* | --inc=*)
  397. includedir=$ac_optarg ;;
  398. -infodir | --infodir | --infodi | --infod | --info | --inf)
  399. ac_prev=infodir ;;
  400. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  401. infodir=$ac_optarg ;;
  402. -libdir | --libdir | --libdi | --libd)
  403. ac_prev=libdir ;;
  404. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  405. libdir=$ac_optarg ;;
  406. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  407. | --libexe | --libex | --libe)
  408. ac_prev=libexecdir ;;
  409. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  410. | --libexe=* | --libex=* | --libe=*)
  411. libexecdir=$ac_optarg ;;
  412. -localstatedir | --localstatedir | --localstatedi | --localstated \
  413. | --localstate | --localstat | --localsta | --localst \
  414. | --locals | --local | --loca | --loc | --lo)
  415. ac_prev=localstatedir ;;
  416. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  417. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  418. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  419. localstatedir=$ac_optarg ;;
  420. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  421. ac_prev=mandir ;;
  422. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  423. mandir=$ac_optarg ;;
  424. -nfp | --nfp | --nf)
  425. # Obsolete; use --without-fp.
  426. with_fp=no ;;
  427. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  428. | --no-cr | --no-c | -n)
  429. no_create=yes ;;
  430. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  431. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  432. no_recursion=yes ;;
  433. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  434. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  435. | --oldin | --oldi | --old | --ol | --o)
  436. ac_prev=oldincludedir ;;
  437. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  438. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  439. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  440. oldincludedir=$ac_optarg ;;
  441. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  442. ac_prev=prefix ;;
  443. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  444. prefix=$ac_optarg ;;
  445. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  446. | --program-pre | --program-pr | --program-p)
  447. ac_prev=program_prefix ;;
  448. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  449. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  450. program_prefix=$ac_optarg ;;
  451. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  452. | --program-suf | --program-su | --program-s)
  453. ac_prev=program_suffix ;;
  454. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  455. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  456. program_suffix=$ac_optarg ;;
  457. -program-transform-name | --program-transform-name \
  458. | --program-transform-nam | --program-transform-na \
  459. | --program-transform-n | --program-transform- \
  460. | --program-transform | --program-transfor \
  461. | --program-transfo | --program-transf \
  462. | --program-trans | --program-tran \
  463. | --progr-tra | --program-tr | --program-t)
  464. ac_prev=program_transform_name ;;
  465. -program-transform-name=* | --program-transform-name=* \
  466. | --program-transform-nam=* | --program-transform-na=* \
  467. | --program-transform-n=* | --program-transform-=* \
  468. | --program-transform=* | --program-transfor=* \
  469. | --program-transfo=* | --program-transf=* \
  470. | --program-trans=* | --program-tran=* \
  471. | --progr-tra=* | --program-tr=* | --program-t=*)
  472. program_transform_name=$ac_optarg ;;
  473. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  474. | -silent | --silent | --silen | --sile | --sil)
  475. silent=yes ;;
  476. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  477. ac_prev=sbindir ;;
  478. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  479. | --sbi=* | --sb=*)
  480. sbindir=$ac_optarg ;;
  481. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  482. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  483. | --sharedst | --shareds | --shared | --share | --shar \
  484. | --sha | --sh)
  485. ac_prev=sharedstatedir ;;
  486. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  487. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  488. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  489. | --sha=* | --sh=*)
  490. sharedstatedir=$ac_optarg ;;
  491. -site | --site | --sit)
  492. ac_prev=site ;;
  493. -site=* | --site=* | --sit=*)
  494. site=$ac_optarg ;;
  495. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  496. ac_prev=srcdir ;;
  497. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  498. srcdir=$ac_optarg ;;
  499. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  500. | --syscon | --sysco | --sysc | --sys | --sy)
  501. ac_prev=sysconfdir ;;
  502. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  503. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  504. sysconfdir=$ac_optarg ;;
  505. -target | --target | --targe | --targ | --tar | --ta | --t)
  506. ac_prev=target_alias ;;
  507. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  508. target_alias=$ac_optarg ;;
  509. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  510. verbose=yes ;;
  511. -version | --version | --versio | --versi | --vers | -V)
  512. ac_init_version=: ;;
  513. -with-* | --with-*)
  514. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  515. # Reject names that are not valid shell variable names.
  516. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  517. { echo "$as_me: error: invalid package name: $ac_package" >&2
  518. { (exit 1); exit 1; }; }
  519. ac_package=`echo $ac_package| sed 's/-/_/g'`
  520. case $ac_option in
  521. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  522. *) ac_optarg=yes ;;
  523. esac
  524. eval "with_$ac_package='$ac_optarg'" ;;
  525. -without-* | --without-*)
  526. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  527. # Reject names that are not valid shell variable names.
  528. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  529. { echo "$as_me: error: invalid package name: $ac_package" >&2
  530. { (exit 1); exit 1; }; }
  531. ac_package=`echo $ac_package | sed 's/-/_/g'`
  532. eval "with_$ac_package=no" ;;
  533. --x)
  534. # Obsolete; use --with-x.
  535. with_x=yes ;;
  536. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  537. | --x-incl | --x-inc | --x-in | --x-i)
  538. ac_prev=x_includes ;;
  539. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  540. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  541. x_includes=$ac_optarg ;;
  542. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  543. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  544. ac_prev=x_libraries ;;
  545. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  546. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  547. x_libraries=$ac_optarg ;;
  548. -*) { echo "$as_me: error: unrecognized option: $ac_option
  549. Try \`$0 --help' for more information." >&2
  550. { (exit 1); exit 1; }; }
  551. ;;
  552. *=*)
  553. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  554. # Reject names that are not valid shell variable names.
  555. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  556. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  557. { (exit 1); exit 1; }; }
  558. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  559. eval "$ac_envvar='$ac_optarg'"
  560. export $ac_envvar ;;
  561. *)
  562. # FIXME: should be removed in autoconf 3.0.
  563. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  564. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  565. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  566. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  567. ;;
  568. esac
  569. done
  570. if test -n "$ac_prev"; then
  571. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  572. { echo "$as_me: error: missing argument to $ac_option" >&2
  573. { (exit 1); exit 1; }; }
  574. fi
  575. # Be sure to have absolute paths.
  576. for ac_var in exec_prefix prefix
  577. do
  578. eval ac_val=$`echo $ac_var`
  579. case $ac_val in
  580. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  581. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  582. { (exit 1); exit 1; }; };;
  583. esac
  584. done
  585. # Be sure to have absolute paths.
  586. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  587. localstatedir libdir includedir oldincludedir infodir mandir
  588. do
  589. eval ac_val=$`echo $ac_var`
  590. case $ac_val in
  591. [\\/$]* | ?:[\\/]* ) ;;
  592. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  593. { (exit 1); exit 1; }; };;
  594. esac
  595. done
  596. # There might be people who depend on the old broken behavior: `$host'
  597. # used to hold the argument of --host etc.
  598. # FIXME: To remove some day.
  599. build=$build_alias
  600. host=$host_alias
  601. target=$target_alias
  602. # FIXME: To remove some day.
  603. if test "x$host_alias" != x; then
  604. if test "x$build_alias" = x; then
  605. cross_compiling=maybe
  606. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  607. If a cross compiler is detected then cross compile mode will be used." >&2
  608. elif test "x$build_alias" != "x$host_alias"; then
  609. cross_compiling=yes
  610. fi
  611. fi
  612. ac_tool_prefix=
  613. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  614. test "$silent" = yes && exec 6>/dev/null
  615. # Find the source files, if location was not specified.
  616. if test -z "$srcdir"; then
  617. ac_srcdir_defaulted=yes
  618. # Try the directory containing this script, then its parent.
  619. ac_confdir=`(dirname "$0") 2>/dev/null ||
  620. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  621. X"$0" : 'X\(//\)[^/]' \| \
  622. X"$0" : 'X\(//\)$' \| \
  623. X"$0" : 'X\(/\)' \| \
  624. . : '\(.\)' 2>/dev/null ||
  625. echo X"$0" |
  626. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  627. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  628. /^X\(\/\/\)$/{ s//\1/; q; }
  629. /^X\(\/\).*/{ s//\1/; q; }
  630. s/.*/./; q'`
  631. srcdir=$ac_confdir
  632. if test ! -r $srcdir/$ac_unique_file; then
  633. srcdir=..
  634. fi
  635. else
  636. ac_srcdir_defaulted=no
  637. fi
  638. if test ! -r $srcdir/$ac_unique_file; then
  639. if test "$ac_srcdir_defaulted" = yes; then
  640. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  641. { (exit 1); exit 1; }; }
  642. else
  643. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  644. { (exit 1); exit 1; }; }
  645. fi
  646. fi
  647. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  648. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  649. { (exit 1); exit 1; }; }
  650. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  651. ac_env_build_alias_set=${build_alias+set}
  652. ac_env_build_alias_value=$build_alias
  653. ac_cv_env_build_alias_set=${build_alias+set}
  654. ac_cv_env_build_alias_value=$build_alias
  655. ac_env_host_alias_set=${host_alias+set}
  656. ac_env_host_alias_value=$host_alias
  657. ac_cv_env_host_alias_set=${host_alias+set}
  658. ac_cv_env_host_alias_value=$host_alias
  659. ac_env_target_alias_set=${target_alias+set}
  660. ac_env_target_alias_value=$target_alias
  661. ac_cv_env_target_alias_set=${target_alias+set}
  662. ac_cv_env_target_alias_value=$target_alias
  663. ac_env_CC_set=${CC+set}
  664. ac_env_CC_value=$CC
  665. ac_cv_env_CC_set=${CC+set}
  666. ac_cv_env_CC_value=$CC
  667. ac_env_CFLAGS_set=${CFLAGS+set}
  668. ac_env_CFLAGS_value=$CFLAGS
  669. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  670. ac_cv_env_CFLAGS_value=$CFLAGS
  671. ac_env_LDFLAGS_set=${LDFLAGS+set}
  672. ac_env_LDFLAGS_value=$LDFLAGS
  673. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  674. ac_cv_env_LDFLAGS_value=$LDFLAGS
  675. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  676. ac_env_CPPFLAGS_value=$CPPFLAGS
  677. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  678. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  679. ac_env_CPP_set=${CPP+set}
  680. ac_env_CPP_value=$CPP
  681. ac_cv_env_CPP_set=${CPP+set}
  682. ac_cv_env_CPP_value=$CPP
  683. #
  684. # Report the --help message.
  685. #
  686. if test "$ac_init_help" = "long"; then
  687. # Omit some internal or obsolete options to make the list less imposing.
  688. # This message is too long to be a string in the A/UX 3.1 sh.
  689. cat <<_ACEOF
  690. \`configure' configures this package to adapt to many kinds of systems.
  691. Usage: $0 [OPTION]... [VAR=VALUE]...
  692. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  693. VAR=VALUE. See below for descriptions of some of the useful variables.
  694. Defaults for the options are specified in brackets.
  695. Configuration:
  696. -h, --help display this help and exit
  697. --help=short display options specific to this package
  698. --help=recursive display the short help of all the included packages
  699. -V, --version display version information and exit
  700. -q, --quiet, --silent do not print \`checking...' messages
  701. --cache-file=FILE cache test results in FILE [disabled]
  702. -C, --config-cache alias for \`--cache-file=config.cache'
  703. -n, --no-create do not create output files
  704. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  705. _ACEOF
  706. cat <<_ACEOF
  707. Installation directories:
  708. --prefix=PREFIX install architecture-independent files in PREFIX
  709. [$ac_default_prefix]
  710. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  711. [PREFIX]
  712. By default, \`make install' will install all the files in
  713. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  714. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  715. for instance \`--prefix=\$HOME'.
  716. For better control, use the options below.
  717. Fine tuning of the installation directories:
  718. --bindir=DIR user executables [EPREFIX/bin]
  719. --sbindir=DIR system admin executables [EPREFIX/sbin]
  720. --libexecdir=DIR program executables [EPREFIX/libexec]
  721. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  722. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  723. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  724. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  725. --libdir=DIR object code libraries [EPREFIX/lib]
  726. --includedir=DIR C header files [PREFIX/include]
  727. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  728. --infodir=DIR info documentation [PREFIX/info]
  729. --mandir=DIR man documentation [PREFIX/man]
  730. _ACEOF
  731. cat <<\_ACEOF
  732. _ACEOF
  733. fi
  734. if test -n "$ac_init_help"; then
  735. cat <<\_ACEOF
  736. Optional Features:
  737. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  738. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  739. --disable-ipv6 disable IPv6 support
  740. Optional Packages:
  741. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  742. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  743. --with-cfg=PATH full path to pack.cfg
  744. Some influential environment variables:
  745. CC C compiler command
  746. CFLAGS C compiler flags
  747. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  748. nonstandard directory <lib dir>
  749. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  750. headers in a nonstandard directory <include dir>
  751. CPP C preprocessor
  752. Use these variables to override the choices made by `configure' or to help
  753. it to find libraries and programs with nonstandard names/locations.
  754. _ACEOF
  755. fi
  756. if test "$ac_init_help" = "recursive"; then
  757. # If there are subdirs, report their specific --help.
  758. ac_popdir=`pwd`
  759. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  760. test -d $ac_dir || continue
  761. ac_builddir=.
  762. if test "$ac_dir" != .; then
  763. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  764. # A "../" for each directory in $ac_dir_suffix.
  765. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  766. else
  767. ac_dir_suffix= ac_top_builddir=
  768. fi
  769. case $srcdir in
  770. .) # No --srcdir option. We are building in place.
  771. ac_srcdir=.
  772. if test -z "$ac_top_builddir"; then
  773. ac_top_srcdir=.
  774. else
  775. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  776. fi ;;
  777. [\\/]* | ?:[\\/]* ) # Absolute path.
  778. ac_srcdir=$srcdir$ac_dir_suffix;
  779. ac_top_srcdir=$srcdir ;;
  780. *) # Relative path.
  781. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  782. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  783. esac
  784. # Do not use `cd foo && pwd` to compute absolute paths, because
  785. # the directories may not exist.
  786. case `pwd` in
  787. .) ac_abs_builddir="$ac_dir";;
  788. *)
  789. case "$ac_dir" in
  790. .) ac_abs_builddir=`pwd`;;
  791. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  792. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  793. esac;;
  794. esac
  795. case $ac_abs_builddir in
  796. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  797. *)
  798. case ${ac_top_builddir}. in
  799. .) ac_abs_top_builddir=$ac_abs_builddir;;
  800. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  801. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  802. esac;;
  803. esac
  804. case $ac_abs_builddir in
  805. .) ac_abs_srcdir=$ac_srcdir;;
  806. *)
  807. case $ac_srcdir in
  808. .) ac_abs_srcdir=$ac_abs_builddir;;
  809. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  810. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  811. esac;;
  812. esac
  813. case $ac_abs_builddir in
  814. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  815. *)
  816. case $ac_top_srcdir in
  817. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  818. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  819. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  820. esac;;
  821. esac
  822. cd $ac_dir
  823. # Check for guested configure; otherwise get Cygnus style configure.
  824. if test -f $ac_srcdir/configure.gnu; then
  825. echo
  826. $SHELL $ac_srcdir/configure.gnu --help=recursive
  827. elif test -f $ac_srcdir/configure; then
  828. echo
  829. $SHELL $ac_srcdir/configure --help=recursive
  830. elif test -f $ac_srcdir/configure.ac ||
  831. test -f $ac_srcdir/configure.in; then
  832. echo
  833. $ac_configure --help
  834. else
  835. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  836. fi
  837. cd "$ac_popdir"
  838. done
  839. fi
  840. test -n "$ac_init_help" && exit 0
  841. if $ac_init_version; then
  842. cat <<\_ACEOF
  843. Copyright (C) 2003 Free Software Foundation, Inc.
  844. This configure script is free software; the Free Software Foundation
  845. gives unlimited permission to copy, distribute and modify it.
  846. Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  847. _ACEOF
  848. exit 0
  849. fi
  850. exec 5>config.log
  851. cat >&5 <<_ACEOF
  852. This file contains any messages produced by compilers while
  853. running configure, to aid debugging if configure makes a mistake.
  854. It was created by $as_me, which was
  855. generated by GNU Autoconf 2.59. Invocation command line was
  856. $ $0 $@
  857. _ACEOF
  858. {
  859. cat <<_ASUNAME
  860. ## --------- ##
  861. ## Platform. ##
  862. ## --------- ##
  863. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  864. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  865. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  866. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  867. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  868. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  869. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  870. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  871. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  872. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  873. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  874. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  875. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  876. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  877. _ASUNAME
  878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  879. for as_dir in $PATH
  880. do
  881. IFS=$as_save_IFS
  882. test -z "$as_dir" && as_dir=.
  883. echo "PATH: $as_dir"
  884. done
  885. } >&5
  886. cat >&5 <<_ACEOF
  887. ## ----------- ##
  888. ## Core tests. ##
  889. ## ----------- ##
  890. _ACEOF
  891. # Keep a trace of the command line.
  892. # Strip out --no-create and --no-recursion so they do not pile up.
  893. # Strip out --silent because we don't want to record it for future runs.
  894. # Also quote any args containing shell meta-characters.
  895. # Make two passes to allow for proper duplicate-argument suppression.
  896. ac_configure_args=
  897. ac_configure_args0=
  898. ac_configure_args1=
  899. ac_sep=
  900. ac_must_keep_next=false
  901. for ac_pass in 1 2
  902. do
  903. for ac_arg
  904. do
  905. case $ac_arg in
  906. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  907. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  908. | -silent | --silent | --silen | --sile | --sil)
  909. continue ;;
  910. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  911. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  912. esac
  913. case $ac_pass in
  914. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  915. 2)
  916. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  917. if test $ac_must_keep_next = true; then
  918. ac_must_keep_next=false # Got value, back to normal.
  919. else
  920. case $ac_arg in
  921. *=* | --config-cache | -C | -disable-* | --disable-* \
  922. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  923. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  924. | -with-* | --with-* | -without-* | --without-* | --x)
  925. case "$ac_configure_args0 " in
  926. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  927. esac
  928. ;;
  929. -* ) ac_must_keep_next=true ;;
  930. esac
  931. fi
  932. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  933. # Get rid of the leading space.
  934. ac_sep=" "
  935. ;;
  936. esac
  937. done
  938. done
  939. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  940. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  941. # When interrupted or exit'd, cleanup temporary files, and complete
  942. # config.log. We remove comments because anyway the quotes in there
  943. # would cause problems or look ugly.
  944. # WARNING: Be sure not to use single quotes in there, as some shells,
  945. # such as our DU 5.0 friend, will then `close' the trap.
  946. trap 'exit_status=$?
  947. # Save into config.log some information that might help in debugging.
  948. {
  949. echo
  950. cat <<\_ASBOX
  951. ## ---------------- ##
  952. ## Cache variables. ##
  953. ## ---------------- ##
  954. _ASBOX
  955. echo
  956. # The following way of writing the cache mishandles newlines in values,
  957. {
  958. (set) 2>&1 |
  959. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  960. *ac_space=\ *)
  961. sed -n \
  962. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  963. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  964. ;;
  965. *)
  966. sed -n \
  967. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  968. ;;
  969. esac;
  970. }
  971. echo
  972. cat <<\_ASBOX
  973. ## ----------------- ##
  974. ## Output variables. ##
  975. ## ----------------- ##
  976. _ASBOX
  977. echo
  978. for ac_var in $ac_subst_vars
  979. do
  980. eval ac_val=$`echo $ac_var`
  981. echo "$ac_var='"'"'$ac_val'"'"'"
  982. done | sort
  983. echo
  984. if test -n "$ac_subst_files"; then
  985. cat <<\_ASBOX
  986. ## ------------- ##
  987. ## Output files. ##
  988. ## ------------- ##
  989. _ASBOX
  990. echo
  991. for ac_var in $ac_subst_files
  992. do
  993. eval ac_val=$`echo $ac_var`
  994. echo "$ac_var='"'"'$ac_val'"'"'"
  995. done | sort
  996. echo
  997. fi
  998. if test -s confdefs.h; then
  999. cat <<\_ASBOX
  1000. ## ----------- ##
  1001. ## confdefs.h. ##
  1002. ## ----------- ##
  1003. _ASBOX
  1004. echo
  1005. sed "/^$/d" confdefs.h | sort
  1006. echo
  1007. fi
  1008. test "$ac_signal" != 0 &&
  1009. echo "$as_me: caught signal $ac_signal"
  1010. echo "$as_me: exit $exit_status"
  1011. } >&5
  1012. rm -f core *.core &&
  1013. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1014. exit $exit_status
  1015. ' 0
  1016. for ac_signal in 1 2 13 15; do
  1017. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1018. done
  1019. ac_signal=0
  1020. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1021. rm -rf conftest* confdefs.h
  1022. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1023. echo >confdefs.h
  1024. # Predefined preprocessor variables.
  1025. cat >>confdefs.h <<_ACEOF
  1026. #define PACKAGE_NAME "$PACKAGE_NAME"
  1027. _ACEOF
  1028. cat >>confdefs.h <<_ACEOF
  1029. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1030. _ACEOF
  1031. cat >>confdefs.h <<_ACEOF
  1032. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1033. _ACEOF
  1034. cat >>confdefs.h <<_ACEOF
  1035. #define PACKAGE_STRING "$PACKAGE_STRING"
  1036. _ACEOF
  1037. cat >>confdefs.h <<_ACEOF
  1038. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1039. _ACEOF
  1040. # Let the site file select an alternate cache file if it wants to.
  1041. # Prefer explicitly selected file to automatically selected ones.
  1042. if test -z "$CONFIG_SITE"; then
  1043. if test "x$prefix" != xNONE; then
  1044. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1045. else
  1046. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1047. fi
  1048. fi
  1049. for ac_site_file in $CONFIG_SITE; do
  1050. if test -r "$ac_site_file"; then
  1051. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1052. echo "$as_me: loading site script $ac_site_file" >&6;}
  1053. sed 's/^/| /' "$ac_site_file" >&5
  1054. . "$ac_site_file"
  1055. fi
  1056. done
  1057. if test -r "$cache_file"; then
  1058. # Some versions of bash will fail to source /dev/null (special
  1059. # files actually), so we avoid doing that.
  1060. if test -f "$cache_file"; then
  1061. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1062. echo "$as_me: loading cache $cache_file" >&6;}
  1063. case $cache_file in
  1064. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1065. *) . ./$cache_file;;
  1066. esac
  1067. fi
  1068. else
  1069. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1070. echo "$as_me: creating cache $cache_file" >&6;}
  1071. >$cache_file
  1072. fi
  1073. # Check that the precious variables saved in the cache have kept the same
  1074. # value.
  1075. ac_cache_corrupted=false
  1076. for ac_var in `(set) 2>&1 |
  1077. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1078. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1079. eval ac_new_set=\$ac_env_${ac_var}_set
  1080. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1081. eval ac_new_val="\$ac_env_${ac_var}_value"
  1082. case $ac_old_set,$ac_new_set in
  1083. set,)
  1084. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1085. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1086. ac_cache_corrupted=: ;;
  1087. ,set)
  1088. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1089. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1090. ac_cache_corrupted=: ;;
  1091. ,);;
  1092. *)
  1093. if test "x$ac_old_val" != "x$ac_new_val"; then
  1094. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1095. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1096. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1097. echo "$as_me: former value: $ac_old_val" >&2;}
  1098. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1099. echo "$as_me: current value: $ac_new_val" >&2;}
  1100. ac_cache_corrupted=:
  1101. fi;;
  1102. esac
  1103. # Pass precious variables to config.status.
  1104. if test "$ac_new_set" = set; then
  1105. case $ac_new_val in
  1106. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1107. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1108. *) ac_arg=$ac_var=$ac_new_val ;;
  1109. esac
  1110. case " $ac_configure_args " in
  1111. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1112. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1113. esac
  1114. fi
  1115. done
  1116. if $ac_cache_corrupted; then
  1117. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1118. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1119. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1120. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1121. { (exit 1); exit 1; }; }
  1122. fi
  1123. ac_ext=c
  1124. ac_cpp='$CPP $CPPFLAGS'
  1125. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1126. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1127. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1128. ac_config_headers="$ac_config_headers config.h"
  1129. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1130. egg_ac_parameters=
  1131. ac_prev=
  1132. for ac_arg in $ac_configure_args; do
  1133. if test -n "$ac_prev"; then
  1134. ac_prev=
  1135. continue
  1136. fi
  1137. case $ac_arg in
  1138. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1139. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1140. ac_prev=cache_file ;;
  1141. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1142. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1143. | --c=*)
  1144. ;;
  1145. --config-cache | -C)
  1146. ;;
  1147. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1148. ac_prev=srcdir ;;
  1149. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1150. ;;
  1151. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1152. esac
  1153. done
  1154. cfg="pack/pack.cfg"
  1155. # Check whether --with-cfg or --without-cfg was given.
  1156. if test "${with_cfg+set}" = set; then
  1157. withval="$with_cfg"
  1158. cfg="$withval"
  1159. fi;
  1160. # Setup build environment
  1161. ac_ext=c
  1162. ac_cpp='$CPP $CPPFLAGS'
  1163. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1164. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1165. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1166. if test -n "$ac_tool_prefix"; then
  1167. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1168. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1169. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1170. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1171. if test "${ac_cv_prog_CC+set}" = set; then
  1172. echo $ECHO_N "(cached) $ECHO_C" >&6
  1173. else
  1174. if test -n "$CC"; then
  1175. ac_cv_prog_CC="$CC" # Let the user override the test.
  1176. else
  1177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1178. for as_dir in $PATH
  1179. do
  1180. IFS=$as_save_IFS
  1181. test -z "$as_dir" && as_dir=.
  1182. for ac_exec_ext in '' $ac_executable_extensions; do
  1183. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1184. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1185. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1186. break 2
  1187. fi
  1188. done
  1189. done
  1190. fi
  1191. fi
  1192. CC=$ac_cv_prog_CC
  1193. if test -n "$CC"; then
  1194. echo "$as_me:$LINENO: result: $CC" >&5
  1195. echo "${ECHO_T}$CC" >&6
  1196. else
  1197. echo "$as_me:$LINENO: result: no" >&5
  1198. echo "${ECHO_T}no" >&6
  1199. fi
  1200. fi
  1201. if test -z "$ac_cv_prog_CC"; then
  1202. ac_ct_CC=$CC
  1203. # Extract the first word of "gcc", so it can be a program name with args.
  1204. set dummy gcc; ac_word=$2
  1205. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1206. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1207. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1208. echo $ECHO_N "(cached) $ECHO_C" >&6
  1209. else
  1210. if test -n "$ac_ct_CC"; then
  1211. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1212. else
  1213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1214. for as_dir in $PATH
  1215. do
  1216. IFS=$as_save_IFS
  1217. test -z "$as_dir" && as_dir=.
  1218. for ac_exec_ext in '' $ac_executable_extensions; do
  1219. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1220. ac_cv_prog_ac_ct_CC="gcc"
  1221. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1222. break 2
  1223. fi
  1224. done
  1225. done
  1226. fi
  1227. fi
  1228. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1229. if test -n "$ac_ct_CC"; then
  1230. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1231. echo "${ECHO_T}$ac_ct_CC" >&6
  1232. else
  1233. echo "$as_me:$LINENO: result: no" >&5
  1234. echo "${ECHO_T}no" >&6
  1235. fi
  1236. CC=$ac_ct_CC
  1237. else
  1238. CC="$ac_cv_prog_CC"
  1239. fi
  1240. if test -z "$CC"; then
  1241. if test -n "$ac_tool_prefix"; then
  1242. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1243. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1244. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1245. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1246. if test "${ac_cv_prog_CC+set}" = set; then
  1247. echo $ECHO_N "(cached) $ECHO_C" >&6
  1248. else
  1249. if test -n "$CC"; then
  1250. ac_cv_prog_CC="$CC" # Let the user override the test.
  1251. else
  1252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1253. for as_dir in $PATH
  1254. do
  1255. IFS=$as_save_IFS
  1256. test -z "$as_dir" && as_dir=.
  1257. for ac_exec_ext in '' $ac_executable_extensions; do
  1258. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1259. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1260. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1261. break 2
  1262. fi
  1263. done
  1264. done
  1265. fi
  1266. fi
  1267. CC=$ac_cv_prog_CC
  1268. if test -n "$CC"; then
  1269. echo "$as_me:$LINENO: result: $CC" >&5
  1270. echo "${ECHO_T}$CC" >&6
  1271. else
  1272. echo "$as_me:$LINENO: result: no" >&5
  1273. echo "${ECHO_T}no" >&6
  1274. fi
  1275. fi
  1276. if test -z "$ac_cv_prog_CC"; then
  1277. ac_ct_CC=$CC
  1278. # Extract the first word of "cc", so it can be a program name with args.
  1279. set dummy cc; ac_word=$2
  1280. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1281. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1282. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1283. echo $ECHO_N "(cached) $ECHO_C" >&6
  1284. else
  1285. if test -n "$ac_ct_CC"; then
  1286. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1287. else
  1288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1289. for as_dir in $PATH
  1290. do
  1291. IFS=$as_save_IFS
  1292. test -z "$as_dir" && as_dir=.
  1293. for ac_exec_ext in '' $ac_executable_extensions; do
  1294. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1295. ac_cv_prog_ac_ct_CC="cc"
  1296. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1297. break 2
  1298. fi
  1299. done
  1300. done
  1301. fi
  1302. fi
  1303. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1304. if test -n "$ac_ct_CC"; then
  1305. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1306. echo "${ECHO_T}$ac_ct_CC" >&6
  1307. else
  1308. echo "$as_me:$LINENO: result: no" >&5
  1309. echo "${ECHO_T}no" >&6
  1310. fi
  1311. CC=$ac_ct_CC
  1312. else
  1313. CC="$ac_cv_prog_CC"
  1314. fi
  1315. fi
  1316. if test -z "$CC"; then
  1317. # Extract the first word of "cc", so it can be a program name with args.
  1318. set dummy cc; ac_word=$2
  1319. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1320. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1321. if test "${ac_cv_prog_CC+set}" = set; then
  1322. echo $ECHO_N "(cached) $ECHO_C" >&6
  1323. else
  1324. if test -n "$CC"; then
  1325. ac_cv_prog_CC="$CC" # Let the user override the test.
  1326. else
  1327. ac_prog_rejected=no
  1328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1329. for as_dir in $PATH
  1330. do
  1331. IFS=$as_save_IFS
  1332. test -z "$as_dir" && as_dir=.
  1333. for ac_exec_ext in '' $ac_executable_extensions; do
  1334. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1335. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1336. ac_prog_rejected=yes
  1337. continue
  1338. fi
  1339. ac_cv_prog_CC="cc"
  1340. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1341. break 2
  1342. fi
  1343. done
  1344. done
  1345. if test $ac_prog_rejected = yes; then
  1346. # We found a bogon in the path, so make sure we never use it.
  1347. set dummy $ac_cv_prog_CC
  1348. shift
  1349. if test $# != 0; then
  1350. # We chose a different compiler from the bogus one.
  1351. # However, it has the same basename, so the bogon will be chosen
  1352. # first if we set CC to just the basename; use the full file name.
  1353. shift
  1354. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1355. fi
  1356. fi
  1357. fi
  1358. fi
  1359. CC=$ac_cv_prog_CC
  1360. if test -n "$CC"; then
  1361. echo "$as_me:$LINENO: result: $CC" >&5
  1362. echo "${ECHO_T}$CC" >&6
  1363. else
  1364. echo "$as_me:$LINENO: result: no" >&5
  1365. echo "${ECHO_T}no" >&6
  1366. fi
  1367. fi
  1368. if test -z "$CC"; then
  1369. if test -n "$ac_tool_prefix"; then
  1370. for ac_prog in cl
  1371. do
  1372. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1373. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1374. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1375. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1376. if test "${ac_cv_prog_CC+set}" = set; then
  1377. echo $ECHO_N "(cached) $ECHO_C" >&6
  1378. else
  1379. if test -n "$CC"; then
  1380. ac_cv_prog_CC="$CC" # Let the user override the test.
  1381. else
  1382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1383. for as_dir in $PATH
  1384. do
  1385. IFS=$as_save_IFS
  1386. test -z "$as_dir" && as_dir=.
  1387. for ac_exec_ext in '' $ac_executable_extensions; do
  1388. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1389. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1390. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1391. break 2
  1392. fi
  1393. done
  1394. done
  1395. fi
  1396. fi
  1397. CC=$ac_cv_prog_CC
  1398. if test -n "$CC"; then
  1399. echo "$as_me:$LINENO: result: $CC" >&5
  1400. echo "${ECHO_T}$CC" >&6
  1401. else
  1402. echo "$as_me:$LINENO: result: no" >&5
  1403. echo "${ECHO_T}no" >&6
  1404. fi
  1405. test -n "$CC" && break
  1406. done
  1407. fi
  1408. if test -z "$CC"; then
  1409. ac_ct_CC=$CC
  1410. for ac_prog in cl
  1411. do
  1412. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1413. set dummy $ac_prog; ac_word=$2
  1414. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1415. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1416. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1417. echo $ECHO_N "(cached) $ECHO_C" >&6
  1418. else
  1419. if test -n "$ac_ct_CC"; then
  1420. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1421. else
  1422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1423. for as_dir in $PATH
  1424. do
  1425. IFS=$as_save_IFS
  1426. test -z "$as_dir" && as_dir=.
  1427. for ac_exec_ext in '' $ac_executable_extensions; do
  1428. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1429. ac_cv_prog_ac_ct_CC="$ac_prog"
  1430. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1431. break 2
  1432. fi
  1433. done
  1434. done
  1435. fi
  1436. fi
  1437. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1438. if test -n "$ac_ct_CC"; then
  1439. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1440. echo "${ECHO_T}$ac_ct_CC" >&6
  1441. else
  1442. echo "$as_me:$LINENO: result: no" >&5
  1443. echo "${ECHO_T}no" >&6
  1444. fi
  1445. test -n "$ac_ct_CC" && break
  1446. done
  1447. CC=$ac_ct_CC
  1448. fi
  1449. fi
  1450. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1451. See \`config.log' for more details." >&5
  1452. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1453. See \`config.log' for more details." >&2;}
  1454. { (exit 1); exit 1; }; }
  1455. # Provide some information about the compiler.
  1456. echo "$as_me:$LINENO:" \
  1457. "checking for C compiler version" >&5
  1458. ac_compiler=`set X $ac_compile; echo $2`
  1459. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1460. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1461. ac_status=$?
  1462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1463. (exit $ac_status); }
  1464. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1465. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1466. ac_status=$?
  1467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1468. (exit $ac_status); }
  1469. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1470. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1471. ac_status=$?
  1472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1473. (exit $ac_status); }
  1474. cat >conftest.$ac_ext <<_ACEOF
  1475. /* confdefs.h. */
  1476. _ACEOF
  1477. cat confdefs.h >>conftest.$ac_ext
  1478. cat >>conftest.$ac_ext <<_ACEOF
  1479. /* end confdefs.h. */
  1480. int
  1481. main ()
  1482. {
  1483. ;
  1484. return 0;
  1485. }
  1486. _ACEOF
  1487. ac_clean_files_save=$ac_clean_files
  1488. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1489. # Try to create an executable without -o first, disregard a.out.
  1490. # It will help us diagnose broken compilers, and finding out an intuition
  1491. # of exeext.
  1492. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1493. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1494. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1495. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1496. (eval $ac_link_default) 2>&5
  1497. ac_status=$?
  1498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1499. (exit $ac_status); }; then
  1500. # Find the output, starting from the most likely. This scheme is
  1501. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1502. # resort.
  1503. # Be careful to initialize this variable, since it used to be cached.
  1504. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1505. ac_cv_exeext=
  1506. # b.out is created by i960 compilers.
  1507. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1508. do
  1509. test -f "$ac_file" || continue
  1510. case $ac_file in
  1511. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1512. ;;
  1513. conftest.$ac_ext )
  1514. # This is the source file.
  1515. ;;
  1516. [ab].out )
  1517. # We found the default executable, but exeext='' is most
  1518. # certainly right.
  1519. break;;
  1520. *.* )
  1521. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1522. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1523. # but it would be cool to find out if it's true. Does anybody
  1524. # maintain Libtool? --akim.
  1525. export ac_cv_exeext
  1526. break;;
  1527. * )
  1528. break;;
  1529. esac
  1530. done
  1531. else
  1532. echo "$as_me: failed program was:" >&5
  1533. sed 's/^/| /' conftest.$ac_ext >&5
  1534. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1535. See \`config.log' for more details." >&5
  1536. echo "$as_me: error: C compiler cannot create executables
  1537. See \`config.log' for more details." >&2;}
  1538. { (exit 77); exit 77; }; }
  1539. fi
  1540. ac_exeext=$ac_cv_exeext
  1541. echo "$as_me:$LINENO: result: $ac_file" >&5
  1542. echo "${ECHO_T}$ac_file" >&6
  1543. # Check the compiler produces executables we can run. If not, either
  1544. # the compiler is broken, or we cross compile.
  1545. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1546. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1547. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1548. # If not cross compiling, check that we can run a simple program.
  1549. if test "$cross_compiling" != yes; then
  1550. if { ac_try='./$ac_file'
  1551. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1552. (eval $ac_try) 2>&5
  1553. ac_status=$?
  1554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1555. (exit $ac_status); }; }; then
  1556. cross_compiling=no
  1557. else
  1558. if test "$cross_compiling" = maybe; then
  1559. cross_compiling=yes
  1560. else
  1561. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1562. If you meant to cross compile, use \`--host'.
  1563. See \`config.log' for more details." >&5
  1564. echo "$as_me: error: cannot run C compiled programs.
  1565. If you meant to cross compile, use \`--host'.
  1566. See \`config.log' for more details." >&2;}
  1567. { (exit 1); exit 1; }; }
  1568. fi
  1569. fi
  1570. fi
  1571. echo "$as_me:$LINENO: result: yes" >&5
  1572. echo "${ECHO_T}yes" >&6
  1573. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1574. ac_clean_files=$ac_clean_files_save
  1575. # Check the compiler produces executables we can run. If not, either
  1576. # the compiler is broken, or we cross compile.
  1577. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1578. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1579. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1580. echo "${ECHO_T}$cross_compiling" >&6
  1581. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1582. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1583. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1584. (eval $ac_link) 2>&5
  1585. ac_status=$?
  1586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1587. (exit $ac_status); }; then
  1588. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1589. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1590. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1591. # `rm'.
  1592. for ac_file in conftest.exe conftest conftest.*; do
  1593. test -f "$ac_file" || continue
  1594. case $ac_file in
  1595. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1596. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1597. export ac_cv_exeext
  1598. break;;
  1599. * ) break;;
  1600. esac
  1601. done
  1602. else
  1603. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1604. See \`config.log' for more details." >&5
  1605. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1606. See \`config.log' for more details." >&2;}
  1607. { (exit 1); exit 1; }; }
  1608. fi
  1609. rm -f conftest$ac_cv_exeext
  1610. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1611. echo "${ECHO_T}$ac_cv_exeext" >&6
  1612. rm -f conftest.$ac_ext
  1613. EXEEXT=$ac_cv_exeext
  1614. ac_exeext=$EXEEXT
  1615. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1616. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1617. if test "${ac_cv_objext+set}" = set; then
  1618. echo $ECHO_N "(cached) $ECHO_C" >&6
  1619. else
  1620. cat >conftest.$ac_ext <<_ACEOF
  1621. /* confdefs.h. */
  1622. _ACEOF
  1623. cat confdefs.h >>conftest.$ac_ext
  1624. cat >>conftest.$ac_ext <<_ACEOF
  1625. /* end confdefs.h. */
  1626. int
  1627. main ()
  1628. {
  1629. ;
  1630. return 0;
  1631. }
  1632. _ACEOF
  1633. rm -f conftest.o conftest.obj
  1634. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1635. (eval $ac_compile) 2>&5
  1636. ac_status=$?
  1637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1638. (exit $ac_status); }; then
  1639. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1640. case $ac_file in
  1641. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1642. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1643. break;;
  1644. esac
  1645. done
  1646. else
  1647. echo "$as_me: failed program was:" >&5
  1648. sed 's/^/| /' conftest.$ac_ext >&5
  1649. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1650. See \`config.log' for more details." >&5
  1651. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1652. See \`config.log' for more details." >&2;}
  1653. { (exit 1); exit 1; }; }
  1654. fi
  1655. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1656. fi
  1657. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1658. echo "${ECHO_T}$ac_cv_objext" >&6
  1659. OBJEXT=$ac_cv_objext
  1660. ac_objext=$OBJEXT
  1661. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1662. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1663. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1664. echo $ECHO_N "(cached) $ECHO_C" >&6
  1665. else
  1666. cat >conftest.$ac_ext <<_ACEOF
  1667. /* confdefs.h. */
  1668. _ACEOF
  1669. cat confdefs.h >>conftest.$ac_ext
  1670. cat >>conftest.$ac_ext <<_ACEOF
  1671. /* end confdefs.h. */
  1672. int
  1673. main ()
  1674. {
  1675. #ifndef __GNUC__
  1676. choke me
  1677. #endif
  1678. ;
  1679. return 0;
  1680. }
  1681. _ACEOF
  1682. rm -f conftest.$ac_objext
  1683. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1684. (eval $ac_compile) 2>conftest.er1
  1685. ac_status=$?
  1686. grep -v '^ *+' conftest.er1 >conftest.err
  1687. rm -f conftest.er1
  1688. cat conftest.err >&5
  1689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1690. (exit $ac_status); } &&
  1691. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1692. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1693. (eval $ac_try) 2>&5
  1694. ac_status=$?
  1695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1696. (exit $ac_status); }; } &&
  1697. { ac_try='test -s conftest.$ac_objext'
  1698. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1699. (eval $ac_try) 2>&5
  1700. ac_status=$?
  1701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1702. (exit $ac_status); }; }; then
  1703. ac_compiler_gnu=yes
  1704. else
  1705. echo "$as_me: failed program was:" >&5
  1706. sed 's/^/| /' conftest.$ac_ext >&5
  1707. ac_compiler_gnu=no
  1708. fi
  1709. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1710. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1711. fi
  1712. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1713. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1714. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1715. ac_test_CFLAGS=${CFLAGS+set}
  1716. ac_save_CFLAGS=$CFLAGS
  1717. CFLAGS="-g"
  1718. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1719. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1720. if test "${ac_cv_prog_cc_g+set}" = set; then
  1721. echo $ECHO_N "(cached) $ECHO_C" >&6
  1722. else
  1723. cat >conftest.$ac_ext <<_ACEOF
  1724. /* confdefs.h. */
  1725. _ACEOF
  1726. cat confdefs.h >>conftest.$ac_ext
  1727. cat >>conftest.$ac_ext <<_ACEOF
  1728. /* end confdefs.h. */
  1729. int
  1730. main ()
  1731. {
  1732. ;
  1733. return 0;
  1734. }
  1735. _ACEOF
  1736. rm -f conftest.$ac_objext
  1737. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1738. (eval $ac_compile) 2>conftest.er1
  1739. ac_status=$?
  1740. grep -v '^ *+' conftest.er1 >conftest.err
  1741. rm -f conftest.er1
  1742. cat conftest.err >&5
  1743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1744. (exit $ac_status); } &&
  1745. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1746. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1747. (eval $ac_try) 2>&5
  1748. ac_status=$?
  1749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1750. (exit $ac_status); }; } &&
  1751. { ac_try='test -s conftest.$ac_objext'
  1752. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1753. (eval $ac_try) 2>&5
  1754. ac_status=$?
  1755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1756. (exit $ac_status); }; }; then
  1757. ac_cv_prog_cc_g=yes
  1758. else
  1759. echo "$as_me: failed program was:" >&5
  1760. sed 's/^/| /' conftest.$ac_ext >&5
  1761. ac_cv_prog_cc_g=no
  1762. fi
  1763. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1764. fi
  1765. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1766. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1767. if test "$ac_test_CFLAGS" = set; then
  1768. CFLAGS=$ac_save_CFLAGS
  1769. elif test $ac_cv_prog_cc_g = yes; then
  1770. if test "$GCC" = yes; then
  1771. CFLAGS="-g -O2"
  1772. else
  1773. CFLAGS="-g"
  1774. fi
  1775. else
  1776. if test "$GCC" = yes; then
  1777. CFLAGS="-O2"
  1778. else
  1779. CFLAGS=
  1780. fi
  1781. fi
  1782. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1783. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1784. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1785. echo $ECHO_N "(cached) $ECHO_C" >&6
  1786. else
  1787. ac_cv_prog_cc_stdc=no
  1788. ac_save_CC=$CC
  1789. cat >conftest.$ac_ext <<_ACEOF
  1790. /* confdefs.h. */
  1791. _ACEOF
  1792. cat confdefs.h >>conftest.$ac_ext
  1793. cat >>conftest.$ac_ext <<_ACEOF
  1794. /* end confdefs.h. */
  1795. #include <stdarg.h>
  1796. #include <stdio.h>
  1797. #include <sys/types.h>
  1798. #include <sys/stat.h>
  1799. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1800. struct buf { int x; };
  1801. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1802. static char *e (p, i)
  1803. char **p;
  1804. int i;
  1805. {
  1806. return p[i];
  1807. }
  1808. static char *f (char * (*g) (char **, int), char **p, ...)
  1809. {
  1810. char *s;
  1811. va_list v;
  1812. va_start (v,p);
  1813. s = g (p, va_arg (v,int));
  1814. va_end (v);
  1815. return s;
  1816. }
  1817. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1818. function prototypes and stuff, but not '\xHH' hex character constants.
  1819. These don't provoke an error unfortunately, instead are silently treated
  1820. as 'x'. The following induces an error, until -std1 is added to get
  1821. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  1822. array size at least. It's necessary to write '\x00'==0 to get something
  1823. that's true only with -std1. */
  1824. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1825. int test (int i, double x);
  1826. struct s1 {int (*f) (int a);};
  1827. struct s2 {int (*f) (double a);};
  1828. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1829. int argc;
  1830. char **argv;
  1831. int
  1832. main ()
  1833. {
  1834. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1835. ;
  1836. return 0;
  1837. }
  1838. _ACEOF
  1839. # Don't try gcc -ansi; that turns off useful extensions and
  1840. # breaks some systems' header files.
  1841. # AIX -qlanglvl=ansi
  1842. # Ultrix and OSF/1 -std1
  1843. # HP-UX 10.20 and later -Ae
  1844. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1845. # SVR4 -Xc -D__EXTENSIONS__
  1846. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1847. do
  1848. CC="$ac_save_CC $ac_arg"
  1849. rm -f conftest.$ac_objext
  1850. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1851. (eval $ac_compile) 2>conftest.er1
  1852. ac_status=$?
  1853. grep -v '^ *+' conftest.er1 >conftest.err
  1854. rm -f conftest.er1
  1855. cat conftest.err >&5
  1856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1857. (exit $ac_status); } &&
  1858. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1859. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1860. (eval $ac_try) 2>&5
  1861. ac_status=$?
  1862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1863. (exit $ac_status); }; } &&
  1864. { ac_try='test -s conftest.$ac_objext'
  1865. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1866. (eval $ac_try) 2>&5
  1867. ac_status=$?
  1868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1869. (exit $ac_status); }; }; then
  1870. ac_cv_prog_cc_stdc=$ac_arg
  1871. break
  1872. else
  1873. echo "$as_me: failed program was:" >&5
  1874. sed 's/^/| /' conftest.$ac_ext >&5
  1875. fi
  1876. rm -f conftest.err conftest.$ac_objext
  1877. done
  1878. rm -f conftest.$ac_ext conftest.$ac_objext
  1879. CC=$ac_save_CC
  1880. fi
  1881. case "x$ac_cv_prog_cc_stdc" in
  1882. x|xno)
  1883. echo "$as_me:$LINENO: result: none needed" >&5
  1884. echo "${ECHO_T}none needed" >&6 ;;
  1885. *)
  1886. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1887. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1888. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1889. esac
  1890. # Some people use a C++ compiler to compile C. Since we use `exit',
  1891. # in C++ we need to declare it. In case someone uses the same compiler
  1892. # for both compiling C and C++ we need to have the C++ compiler decide
  1893. # the declaration of exit, since it's the most demanding environment.
  1894. cat >conftest.$ac_ext <<_ACEOF
  1895. #ifndef __cplusplus
  1896. choke me
  1897. #endif
  1898. _ACEOF
  1899. rm -f conftest.$ac_objext
  1900. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1901. (eval $ac_compile) 2>conftest.er1
  1902. ac_status=$?
  1903. grep -v '^ *+' conftest.er1 >conftest.err
  1904. rm -f conftest.er1
  1905. cat conftest.err >&5
  1906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1907. (exit $ac_status); } &&
  1908. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1909. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1910. (eval $ac_try) 2>&5
  1911. ac_status=$?
  1912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1913. (exit $ac_status); }; } &&
  1914. { ac_try='test -s conftest.$ac_objext'
  1915. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1916. (eval $ac_try) 2>&5
  1917. ac_status=$?
  1918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1919. (exit $ac_status); }; }; then
  1920. for ac_declaration in \
  1921. '' \
  1922. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1923. 'extern "C" void std::exit (int); using std::exit;' \
  1924. 'extern "C" void exit (int) throw ();' \
  1925. 'extern "C" void exit (int);' \
  1926. 'void exit (int);'
  1927. do
  1928. cat >conftest.$ac_ext <<_ACEOF
  1929. /* confdefs.h. */
  1930. _ACEOF
  1931. cat confdefs.h >>conftest.$ac_ext
  1932. cat >>conftest.$ac_ext <<_ACEOF
  1933. /* end confdefs.h. */
  1934. $ac_declaration
  1935. #include <stdlib.h>
  1936. int
  1937. main ()
  1938. {
  1939. exit (42);
  1940. ;
  1941. return 0;
  1942. }
  1943. _ACEOF
  1944. rm -f conftest.$ac_objext
  1945. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1946. (eval $ac_compile) 2>conftest.er1
  1947. ac_status=$?
  1948. grep -v '^ *+' conftest.er1 >conftest.err
  1949. rm -f conftest.er1
  1950. cat conftest.err >&5
  1951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1952. (exit $ac_status); } &&
  1953. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1954. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1955. (eval $ac_try) 2>&5
  1956. ac_status=$?
  1957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1958. (exit $ac_status); }; } &&
  1959. { ac_try='test -s conftest.$ac_objext'
  1960. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1961. (eval $ac_try) 2>&5
  1962. ac_status=$?
  1963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1964. (exit $ac_status); }; }; then
  1965. :
  1966. else
  1967. echo "$as_me: failed program was:" >&5
  1968. sed 's/^/| /' conftest.$ac_ext >&5
  1969. continue
  1970. fi
  1971. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1972. cat >conftest.$ac_ext <<_ACEOF
  1973. /* confdefs.h. */
  1974. _ACEOF
  1975. cat confdefs.h >>conftest.$ac_ext
  1976. cat >>conftest.$ac_ext <<_ACEOF
  1977. /* end confdefs.h. */
  1978. $ac_declaration
  1979. int
  1980. main ()
  1981. {
  1982. exit (42);
  1983. ;
  1984. return 0;
  1985. }
  1986. _ACEOF
  1987. rm -f conftest.$ac_objext
  1988. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1989. (eval $ac_compile) 2>conftest.er1
  1990. ac_status=$?
  1991. grep -v '^ *+' conftest.er1 >conftest.err
  1992. rm -f conftest.er1
  1993. cat conftest.err >&5
  1994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1995. (exit $ac_status); } &&
  1996. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1997. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1998. (eval $ac_try) 2>&5
  1999. ac_status=$?
  2000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2001. (exit $ac_status); }; } &&
  2002. { ac_try='test -s conftest.$ac_objext'
  2003. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2004. (eval $ac_try) 2>&5
  2005. ac_status=$?
  2006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2007. (exit $ac_status); }; }; then
  2008. break
  2009. else
  2010. echo "$as_me: failed program was:" >&5
  2011. sed 's/^/| /' conftest.$ac_ext >&5
  2012. fi
  2013. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2014. done
  2015. rm -f conftest*
  2016. if test -n "$ac_declaration"; then
  2017. echo '#ifdef __cplusplus' >>confdefs.h
  2018. echo $ac_declaration >>confdefs.h
  2019. echo '#endif' >>confdefs.h
  2020. fi
  2021. else
  2022. echo "$as_me: failed program was:" >&5
  2023. sed 's/^/| /' conftest.$ac_ext >&5
  2024. fi
  2025. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2026. ac_ext=c
  2027. ac_cpp='$CPP $CPPFLAGS'
  2028. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2029. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2030. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2031. if test "${cross_compiling-x}" = "x"
  2032. then
  2033. cat << 'EOF' >&2
  2034. configure: error:
  2035. This system does not appear to have a working C compiler.
  2036. A working C compiler is required to compile Eggdrop.
  2037. EOF
  2038. exit 1
  2039. fi
  2040. # Crazy machines
  2041. ac_ext=c
  2042. ac_cpp='$CPP $CPPFLAGS'
  2043. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2044. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2045. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2046. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2047. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2048. # On Suns, sometimes $CPP names a directory.
  2049. if test -n "$CPP" && test -d "$CPP"; then
  2050. CPP=
  2051. fi
  2052. if test -z "$CPP"; then
  2053. if test "${ac_cv_prog_CPP+set}" = set; then
  2054. echo $ECHO_N "(cached) $ECHO_C" >&6
  2055. else
  2056. # Double quotes because CPP needs to be expanded
  2057. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2058. do
  2059. ac_preproc_ok=false
  2060. for ac_c_preproc_warn_flag in '' yes
  2061. do
  2062. # Use a header file that comes with gcc, so configuring glibc
  2063. # with a fresh cross-compiler works.
  2064. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2065. # <limits.h> exists even on freestanding compilers.
  2066. # On the NeXT, cc -E runs the code through the compiler's parser,
  2067. # not just through cpp. "Syntax error" is here to catch this case.
  2068. cat >conftest.$ac_ext <<_ACEOF
  2069. /* confdefs.h. */
  2070. _ACEOF
  2071. cat confdefs.h >>conftest.$ac_ext
  2072. cat >>conftest.$ac_ext <<_ACEOF
  2073. /* end confdefs.h. */
  2074. #ifdef __STDC__
  2075. # include <limits.h>
  2076. #else
  2077. # include <assert.h>
  2078. #endif
  2079. Syntax error
  2080. _ACEOF
  2081. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2082. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2083. ac_status=$?
  2084. grep -v '^ *+' conftest.er1 >conftest.err
  2085. rm -f conftest.er1
  2086. cat conftest.err >&5
  2087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2088. (exit $ac_status); } >/dev/null; then
  2089. if test -s conftest.err; then
  2090. ac_cpp_err=$ac_c_preproc_warn_flag
  2091. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2092. else
  2093. ac_cpp_err=
  2094. fi
  2095. else
  2096. ac_cpp_err=yes
  2097. fi
  2098. if test -z "$ac_cpp_err"; then
  2099. :
  2100. else
  2101. echo "$as_me: failed program was:" >&5
  2102. sed 's/^/| /' conftest.$ac_ext >&5
  2103. # Broken: fails on valid input.
  2104. continue
  2105. fi
  2106. rm -f conftest.err conftest.$ac_ext
  2107. # OK, works on sane cases. Now check whether non-existent headers
  2108. # can be detected and how.
  2109. cat >conftest.$ac_ext <<_ACEOF
  2110. /* confdefs.h. */
  2111. _ACEOF
  2112. cat confdefs.h >>conftest.$ac_ext
  2113. cat >>conftest.$ac_ext <<_ACEOF
  2114. /* end confdefs.h. */
  2115. #include <ac_nonexistent.h>
  2116. _ACEOF
  2117. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2118. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2119. ac_status=$?
  2120. grep -v '^ *+' conftest.er1 >conftest.err
  2121. rm -f conftest.er1
  2122. cat conftest.err >&5
  2123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2124. (exit $ac_status); } >/dev/null; then
  2125. if test -s conftest.err; then
  2126. ac_cpp_err=$ac_c_preproc_warn_flag
  2127. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2128. else
  2129. ac_cpp_err=
  2130. fi
  2131. else
  2132. ac_cpp_err=yes
  2133. fi
  2134. if test -z "$ac_cpp_err"; then
  2135. # Broken: success on invalid input.
  2136. continue
  2137. else
  2138. echo "$as_me: failed program was:" >&5
  2139. sed 's/^/| /' conftest.$ac_ext >&5
  2140. # Passes both tests.
  2141. ac_preproc_ok=:
  2142. break
  2143. fi
  2144. rm -f conftest.err conftest.$ac_ext
  2145. done
  2146. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2147. rm -f conftest.err conftest.$ac_ext
  2148. if $ac_preproc_ok; then
  2149. break
  2150. fi
  2151. done
  2152. ac_cv_prog_CPP=$CPP
  2153. fi
  2154. CPP=$ac_cv_prog_CPP
  2155. else
  2156. ac_cv_prog_CPP=$CPP
  2157. fi
  2158. echo "$as_me:$LINENO: result: $CPP" >&5
  2159. echo "${ECHO_T}$CPP" >&6
  2160. ac_preproc_ok=false
  2161. for ac_c_preproc_warn_flag in '' yes
  2162. do
  2163. # Use a header file that comes with gcc, so configuring glibc
  2164. # with a fresh cross-compiler works.
  2165. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2166. # <limits.h> exists even on freestanding compilers.
  2167. # On the NeXT, cc -E runs the code through the compiler's parser,
  2168. # not just through cpp. "Syntax error" is here to catch this case.
  2169. cat >conftest.$ac_ext <<_ACEOF
  2170. /* confdefs.h. */
  2171. _ACEOF
  2172. cat confdefs.h >>conftest.$ac_ext
  2173. cat >>conftest.$ac_ext <<_ACEOF
  2174. /* end confdefs.h. */
  2175. #ifdef __STDC__
  2176. # include <limits.h>
  2177. #else
  2178. # include <assert.h>
  2179. #endif
  2180. Syntax error
  2181. _ACEOF
  2182. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2183. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2184. ac_status=$?
  2185. grep -v '^ *+' conftest.er1 >conftest.err
  2186. rm -f conftest.er1
  2187. cat conftest.err >&5
  2188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2189. (exit $ac_status); } >/dev/null; then
  2190. if test -s conftest.err; then
  2191. ac_cpp_err=$ac_c_preproc_warn_flag
  2192. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2193. else
  2194. ac_cpp_err=
  2195. fi
  2196. else
  2197. ac_cpp_err=yes
  2198. fi
  2199. if test -z "$ac_cpp_err"; then
  2200. :
  2201. else
  2202. echo "$as_me: failed program was:" >&5
  2203. sed 's/^/| /' conftest.$ac_ext >&5
  2204. # Broken: fails on valid input.
  2205. continue
  2206. fi
  2207. rm -f conftest.err conftest.$ac_ext
  2208. # OK, works on sane cases. Now check whether non-existent headers
  2209. # can be detected and how.
  2210. cat >conftest.$ac_ext <<_ACEOF
  2211. /* confdefs.h. */
  2212. _ACEOF
  2213. cat confdefs.h >>conftest.$ac_ext
  2214. cat >>conftest.$ac_ext <<_ACEOF
  2215. /* end confdefs.h. */
  2216. #include <ac_nonexistent.h>
  2217. _ACEOF
  2218. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2219. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2220. ac_status=$?
  2221. grep -v '^ *+' conftest.er1 >conftest.err
  2222. rm -f conftest.er1
  2223. cat conftest.err >&5
  2224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2225. (exit $ac_status); } >/dev/null; then
  2226. if test -s conftest.err; then
  2227. ac_cpp_err=$ac_c_preproc_warn_flag
  2228. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2229. else
  2230. ac_cpp_err=
  2231. fi
  2232. else
  2233. ac_cpp_err=yes
  2234. fi
  2235. if test -z "$ac_cpp_err"; then
  2236. # Broken: success on invalid input.
  2237. continue
  2238. else
  2239. echo "$as_me: failed program was:" >&5
  2240. sed 's/^/| /' conftest.$ac_ext >&5
  2241. # Passes both tests.
  2242. ac_preproc_ok=:
  2243. break
  2244. fi
  2245. rm -f conftest.err conftest.$ac_ext
  2246. done
  2247. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2248. rm -f conftest.err conftest.$ac_ext
  2249. if $ac_preproc_ok; then
  2250. :
  2251. else
  2252. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2253. See \`config.log' for more details." >&5
  2254. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2255. See \`config.log' for more details." >&2;}
  2256. { (exit 1); exit 1; }; }
  2257. fi
  2258. ac_ext=c
  2259. ac_cpp='$CPP $CPPFLAGS'
  2260. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2261. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2262. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2263. echo "$as_me:$LINENO: checking for egrep" >&5
  2264. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2265. if test "${ac_cv_prog_egrep+set}" = set; then
  2266. echo $ECHO_N "(cached) $ECHO_C" >&6
  2267. else
  2268. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2269. then ac_cv_prog_egrep='grep -E'
  2270. else ac_cv_prog_egrep='egrep'
  2271. fi
  2272. fi
  2273. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2274. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2275. EGREP=$ac_cv_prog_egrep
  2276. echo "$as_me:$LINENO: checking for AIX" >&5
  2277. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  2278. cat >conftest.$ac_ext <<_ACEOF
  2279. /* confdefs.h. */
  2280. _ACEOF
  2281. cat confdefs.h >>conftest.$ac_ext
  2282. cat >>conftest.$ac_ext <<_ACEOF
  2283. /* end confdefs.h. */
  2284. #ifdef _AIX
  2285. yes
  2286. #endif
  2287. _ACEOF
  2288. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2289. $EGREP "yes" >/dev/null 2>&1; then
  2290. echo "$as_me:$LINENO: result: yes" >&5
  2291. echo "${ECHO_T}yes" >&6
  2292. cat >>confdefs.h <<\_ACEOF
  2293. #define _ALL_SOURCE 1
  2294. _ACEOF
  2295. else
  2296. echo "$as_me:$LINENO: result: no" >&5
  2297. echo "${ECHO_T}no" >&6
  2298. fi
  2299. rm -f conftest*
  2300. echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  2301. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
  2302. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  2303. echo $ECHO_N "(cached) $ECHO_C" >&6
  2304. else
  2305. ac_check_lib_save_LIBS=$LIBS
  2306. LIBS="-lcposix $LIBS"
  2307. cat >conftest.$ac_ext <<_ACEOF
  2308. /* confdefs.h. */
  2309. _ACEOF
  2310. cat confdefs.h >>conftest.$ac_ext
  2311. cat >>conftest.$ac_ext <<_ACEOF
  2312. /* end confdefs.h. */
  2313. /* Override any gcc2 internal prototype to avoid an error. */
  2314. #ifdef __cplusplus
  2315. extern "C"
  2316. #endif
  2317. /* We use char because int might match the return type of a gcc2
  2318. builtin and then its argument prototype would still apply. */
  2319. char strerror ();
  2320. int
  2321. main ()
  2322. {
  2323. strerror ();
  2324. ;
  2325. return 0;
  2326. }
  2327. _ACEOF
  2328. rm -f conftest.$ac_objext conftest$ac_exeext
  2329. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2330. (eval $ac_link) 2>conftest.er1
  2331. ac_status=$?
  2332. grep -v '^ *+' conftest.er1 >conftest.err
  2333. rm -f conftest.er1
  2334. cat conftest.err >&5
  2335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2336. (exit $ac_status); } &&
  2337. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2338. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2339. (eval $ac_try) 2>&5
  2340. ac_status=$?
  2341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2342. (exit $ac_status); }; } &&
  2343. { ac_try='test -s conftest$ac_exeext'
  2344. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2345. (eval $ac_try) 2>&5
  2346. ac_status=$?
  2347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2348. (exit $ac_status); }; }; then
  2349. ac_cv_lib_cposix_strerror=yes
  2350. else
  2351. echo "$as_me: failed program was:" >&5
  2352. sed 's/^/| /' conftest.$ac_ext >&5
  2353. ac_cv_lib_cposix_strerror=no
  2354. fi
  2355. rm -f conftest.err conftest.$ac_objext \
  2356. conftest$ac_exeext conftest.$ac_ext
  2357. LIBS=$ac_check_lib_save_LIBS
  2358. fi
  2359. echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  2360. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
  2361. if test $ac_cv_lib_cposix_strerror = yes; then
  2362. LIBS="$LIBS -lcposix"
  2363. fi
  2364. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2365. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2366. if test "${ac_cv_header_stdc+set}" = set; then
  2367. echo $ECHO_N "(cached) $ECHO_C" >&6
  2368. else
  2369. cat >conftest.$ac_ext <<_ACEOF
  2370. /* confdefs.h. */
  2371. _ACEOF
  2372. cat confdefs.h >>conftest.$ac_ext
  2373. cat >>conftest.$ac_ext <<_ACEOF
  2374. /* end confdefs.h. */
  2375. #include <stdlib.h>
  2376. #include <stdarg.h>
  2377. #include <string.h>
  2378. #include <float.h>
  2379. int
  2380. main ()
  2381. {
  2382. ;
  2383. return 0;
  2384. }
  2385. _ACEOF
  2386. rm -f conftest.$ac_objext
  2387. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2388. (eval $ac_compile) 2>conftest.er1
  2389. ac_status=$?
  2390. grep -v '^ *+' conftest.er1 >conftest.err
  2391. rm -f conftest.er1
  2392. cat conftest.err >&5
  2393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2394. (exit $ac_status); } &&
  2395. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2396. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2397. (eval $ac_try) 2>&5
  2398. ac_status=$?
  2399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2400. (exit $ac_status); }; } &&
  2401. { ac_try='test -s conftest.$ac_objext'
  2402. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2403. (eval $ac_try) 2>&5
  2404. ac_status=$?
  2405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2406. (exit $ac_status); }; }; then
  2407. ac_cv_header_stdc=yes
  2408. else
  2409. echo "$as_me: failed program was:" >&5
  2410. sed 's/^/| /' conftest.$ac_ext >&5
  2411. ac_cv_header_stdc=no
  2412. fi
  2413. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2414. if test $ac_cv_header_stdc = yes; then
  2415. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2416. cat >conftest.$ac_ext <<_ACEOF
  2417. /* confdefs.h. */
  2418. _ACEOF
  2419. cat confdefs.h >>conftest.$ac_ext
  2420. cat >>conftest.$ac_ext <<_ACEOF
  2421. /* end confdefs.h. */
  2422. #include <string.h>
  2423. _ACEOF
  2424. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2425. $EGREP "memchr" >/dev/null 2>&1; then
  2426. :
  2427. else
  2428. ac_cv_header_stdc=no
  2429. fi
  2430. rm -f conftest*
  2431. fi
  2432. if test $ac_cv_header_stdc = yes; then
  2433. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2434. cat >conftest.$ac_ext <<_ACEOF
  2435. /* confdefs.h. */
  2436. _ACEOF
  2437. cat confdefs.h >>conftest.$ac_ext
  2438. cat >>conftest.$ac_ext <<_ACEOF
  2439. /* end confdefs.h. */
  2440. #include <stdlib.h>
  2441. _ACEOF
  2442. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2443. $EGREP "free" >/dev/null 2>&1; then
  2444. :
  2445. else
  2446. ac_cv_header_stdc=no
  2447. fi
  2448. rm -f conftest*
  2449. fi
  2450. if test $ac_cv_header_stdc = yes; then
  2451. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2452. if test "$cross_compiling" = yes; then
  2453. :
  2454. else
  2455. cat >conftest.$ac_ext <<_ACEOF
  2456. /* confdefs.h. */
  2457. _ACEOF
  2458. cat confdefs.h >>conftest.$ac_ext
  2459. cat >>conftest.$ac_ext <<_ACEOF
  2460. /* end confdefs.h. */
  2461. #include <ctype.h>
  2462. #if ((' ' & 0x0FF) == 0x020)
  2463. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2464. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2465. #else
  2466. # define ISLOWER(c) \
  2467. (('a' <= (c) && (c) <= 'i') \
  2468. || ('j' <= (c) && (c) <= 'r') \
  2469. || ('s' <= (c) && (c) <= 'z'))
  2470. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2471. #endif
  2472. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2473. int
  2474. main ()
  2475. {
  2476. int i;
  2477. for (i = 0; i < 256; i++)
  2478. if (XOR (islower (i), ISLOWER (i))
  2479. || toupper (i) != TOUPPER (i))
  2480. exit(2);
  2481. exit (0);
  2482. }
  2483. _ACEOF
  2484. rm -f conftest$ac_exeext
  2485. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2486. (eval $ac_link) 2>&5
  2487. ac_status=$?
  2488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2489. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2490. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2491. (eval $ac_try) 2>&5
  2492. ac_status=$?
  2493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2494. (exit $ac_status); }; }; then
  2495. :
  2496. else
  2497. echo "$as_me: program exited with status $ac_status" >&5
  2498. echo "$as_me: failed program was:" >&5
  2499. sed 's/^/| /' conftest.$ac_ext >&5
  2500. ( exit $ac_status )
  2501. ac_cv_header_stdc=no
  2502. fi
  2503. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2504. fi
  2505. fi
  2506. fi
  2507. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2508. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2509. if test $ac_cv_header_stdc = yes; then
  2510. cat >>confdefs.h <<\_ACEOF
  2511. #define STDC_HEADERS 1
  2512. _ACEOF
  2513. fi
  2514. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2515. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2516. inttypes.h stdint.h unistd.h
  2517. do
  2518. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2519. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2520. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2521. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2522. echo $ECHO_N "(cached) $ECHO_C" >&6
  2523. else
  2524. cat >conftest.$ac_ext <<_ACEOF
  2525. /* confdefs.h. */
  2526. _ACEOF
  2527. cat confdefs.h >>conftest.$ac_ext
  2528. cat >>conftest.$ac_ext <<_ACEOF
  2529. /* end confdefs.h. */
  2530. $ac_includes_default
  2531. #include <$ac_header>
  2532. _ACEOF
  2533. rm -f conftest.$ac_objext
  2534. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2535. (eval $ac_compile) 2>conftest.er1
  2536. ac_status=$?
  2537. grep -v '^ *+' conftest.er1 >conftest.err
  2538. rm -f conftest.er1
  2539. cat conftest.err >&5
  2540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2541. (exit $ac_status); } &&
  2542. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2543. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2544. (eval $ac_try) 2>&5
  2545. ac_status=$?
  2546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2547. (exit $ac_status); }; } &&
  2548. { ac_try='test -s conftest.$ac_objext'
  2549. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2550. (eval $ac_try) 2>&5
  2551. ac_status=$?
  2552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2553. (exit $ac_status); }; }; then
  2554. eval "$as_ac_Header=yes"
  2555. else
  2556. echo "$as_me: failed program was:" >&5
  2557. sed 's/^/| /' conftest.$ac_ext >&5
  2558. eval "$as_ac_Header=no"
  2559. fi
  2560. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2561. fi
  2562. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2563. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2564. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2565. cat >>confdefs.h <<_ACEOF
  2566. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2567. _ACEOF
  2568. fi
  2569. done
  2570. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2571. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2572. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2573. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2574. echo $ECHO_N "(cached) $ECHO_C" >&6
  2575. fi
  2576. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2577. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2578. else
  2579. # Is the header compilable?
  2580. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2581. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2582. cat >conftest.$ac_ext <<_ACEOF
  2583. /* confdefs.h. */
  2584. _ACEOF
  2585. cat confdefs.h >>conftest.$ac_ext
  2586. cat >>conftest.$ac_ext <<_ACEOF
  2587. /* end confdefs.h. */
  2588. $ac_includes_default
  2589. #include <minix/config.h>
  2590. _ACEOF
  2591. rm -f conftest.$ac_objext
  2592. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2593. (eval $ac_compile) 2>conftest.er1
  2594. ac_status=$?
  2595. grep -v '^ *+' conftest.er1 >conftest.err
  2596. rm -f conftest.er1
  2597. cat conftest.err >&5
  2598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2599. (exit $ac_status); } &&
  2600. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2601. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2602. (eval $ac_try) 2>&5
  2603. ac_status=$?
  2604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2605. (exit $ac_status); }; } &&
  2606. { ac_try='test -s conftest.$ac_objext'
  2607. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2608. (eval $ac_try) 2>&5
  2609. ac_status=$?
  2610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2611. (exit $ac_status); }; }; then
  2612. ac_header_compiler=yes
  2613. else
  2614. echo "$as_me: failed program was:" >&5
  2615. sed 's/^/| /' conftest.$ac_ext >&5
  2616. ac_header_compiler=no
  2617. fi
  2618. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2619. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2620. echo "${ECHO_T}$ac_header_compiler" >&6
  2621. # Is the header present?
  2622. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2623. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2624. cat >conftest.$ac_ext <<_ACEOF
  2625. /* confdefs.h. */
  2626. _ACEOF
  2627. cat confdefs.h >>conftest.$ac_ext
  2628. cat >>conftest.$ac_ext <<_ACEOF
  2629. /* end confdefs.h. */
  2630. #include <minix/config.h>
  2631. _ACEOF
  2632. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2633. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2634. ac_status=$?
  2635. grep -v '^ *+' conftest.er1 >conftest.err
  2636. rm -f conftest.er1
  2637. cat conftest.err >&5
  2638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2639. (exit $ac_status); } >/dev/null; then
  2640. if test -s conftest.err; then
  2641. ac_cpp_err=$ac_c_preproc_warn_flag
  2642. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2643. else
  2644. ac_cpp_err=
  2645. fi
  2646. else
  2647. ac_cpp_err=yes
  2648. fi
  2649. if test -z "$ac_cpp_err"; then
  2650. ac_header_preproc=yes
  2651. else
  2652. echo "$as_me: failed program was:" >&5
  2653. sed 's/^/| /' conftest.$ac_ext >&5
  2654. ac_header_preproc=no
  2655. fi
  2656. rm -f conftest.err conftest.$ac_ext
  2657. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2658. echo "${ECHO_T}$ac_header_preproc" >&6
  2659. # So? What about this header?
  2660. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  2661. yes:no: )
  2662. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2663. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2664. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2665. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2666. ac_header_preproc=yes
  2667. ;;
  2668. no:yes:* )
  2669. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2670. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2671. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2672. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2673. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2674. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2675. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2676. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2677. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2678. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2679. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2680. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2681. (
  2682. cat <<\_ASBOX
  2683. ## ------------------------------------------ ##
  2684. ## Report this to the AC_PACKAGE_NAME lists. ##
  2685. ## ------------------------------------------ ##
  2686. _ASBOX
  2687. ) |
  2688. sed "s/^/$as_me: WARNING: /" >&2
  2689. ;;
  2690. esac
  2691. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2692. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2693. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2694. echo $ECHO_N "(cached) $ECHO_C" >&6
  2695. else
  2696. ac_cv_header_minix_config_h=$ac_header_preproc
  2697. fi
  2698. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2699. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2700. fi
  2701. if test $ac_cv_header_minix_config_h = yes; then
  2702. MINIX=yes
  2703. else
  2704. MINIX=
  2705. fi
  2706. if test "$MINIX" = yes; then
  2707. cat >>confdefs.h <<\_ACEOF
  2708. #define _POSIX_SOURCE 1
  2709. _ACEOF
  2710. cat >>confdefs.h <<\_ACEOF
  2711. #define _POSIX_1_SOURCE 2
  2712. _ACEOF
  2713. cat >>confdefs.h <<\_ACEOF
  2714. #define _MINIX 1
  2715. _ACEOF
  2716. fi
  2717. #checkpoint
  2718. cat >confcache <<\_ACEOF
  2719. # This file is a shell script that caches the results of configure
  2720. # tests run on this system so they can be shared between configure
  2721. # scripts and configure runs, see configure's option --config-cache.
  2722. # It is not useful on other systems. If it contains results you don't
  2723. # want to keep, you may remove or edit it.
  2724. #
  2725. # config.status only pays attention to the cache file if you give it
  2726. # the --recheck option to rerun configure.
  2727. #
  2728. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2729. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2730. # following values.
  2731. _ACEOF
  2732. # The following way of writing the cache mishandles newlines in values,
  2733. # but we know of no workaround that is simple, portable, and efficient.
  2734. # So, don't put newlines in cache variables' values.
  2735. # Ultrix sh set writes to stderr and can't be redirected directly,
  2736. # and sets the high bit in the cache file unless we assign to the vars.
  2737. {
  2738. (set) 2>&1 |
  2739. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2740. *ac_space=\ *)
  2741. # `set' does not quote correctly, so add quotes (double-quote
  2742. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2743. sed -n \
  2744. "s/'/'\\\\''/g;
  2745. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2746. ;;
  2747. *)
  2748. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2749. sed -n \
  2750. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2751. ;;
  2752. esac;
  2753. } |
  2754. sed '
  2755. t clear
  2756. : clear
  2757. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2758. t end
  2759. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2760. : end' >>confcache
  2761. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2762. if test -w $cache_file; then
  2763. test "x$cache_file" != "x/dev/null"
  2764. cat confcache >$cache_file
  2765. else
  2766. echo "not updating unwritable cache $cache_file"
  2767. fi
  2768. fi
  2769. rm -f confcache
  2770. # Speedup compile
  2771. if test -z "$no_pipe"
  2772. then
  2773. if test -n "$GCC"
  2774. then
  2775. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2776. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2777. if test "${egg_cv_var_ccpipe+set}" = set; then
  2778. echo $ECHO_N "(cached) $ECHO_C" >&6
  2779. else
  2780. ac_old_CC="$CC"
  2781. CC="$CC -pipe"
  2782. cat >conftest.$ac_ext <<_ACEOF
  2783. /* confdefs.h. */
  2784. _ACEOF
  2785. cat confdefs.h >>conftest.$ac_ext
  2786. cat >>conftest.$ac_ext <<_ACEOF
  2787. /* end confdefs.h. */
  2788. int
  2789. main ()
  2790. {
  2791. ;
  2792. return 0;
  2793. }
  2794. _ACEOF
  2795. rm -f conftest.$ac_objext
  2796. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2797. (eval $ac_compile) 2>conftest.er1
  2798. ac_status=$?
  2799. grep -v '^ *+' conftest.er1 >conftest.err
  2800. rm -f conftest.er1
  2801. cat conftest.err >&5
  2802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2803. (exit $ac_status); } &&
  2804. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2805. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2806. (eval $ac_try) 2>&5
  2807. ac_status=$?
  2808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2809. (exit $ac_status); }; } &&
  2810. { ac_try='test -s conftest.$ac_objext'
  2811. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2812. (eval $ac_try) 2>&5
  2813. ac_status=$?
  2814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2815. (exit $ac_status); }; }; then
  2816. egg_cv_var_ccpipe="yes"
  2817. else
  2818. echo "$as_me: failed program was:" >&5
  2819. sed 's/^/| /' conftest.$ac_ext >&5
  2820. egg_cv_var_ccpipe="no"
  2821. fi
  2822. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2823. CC="$ac_old_CC"
  2824. fi
  2825. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2826. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2827. if test "$egg_cv_var_ccpipe" = "yes"
  2828. then
  2829. CC="$CC -pipe"
  2830. fi
  2831. fi
  2832. fi
  2833. CCDEPMODE=gcc
  2834. num=`$CC -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  2835. if test $num = "3"; then
  2836. CCDEPMODE=gcc3
  2837. GCC3="-Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  2838. fi
  2839. # Create static binaries
  2840. if test -z "$no_static"
  2841. then
  2842. if test -n "$GCC"
  2843. then
  2844. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  2845. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  2846. if test "${egg_cv_var_ccstatic+set}" = set; then
  2847. echo $ECHO_N "(cached) $ECHO_C" >&6
  2848. else
  2849. ac_old_CC="$CC"
  2850. CC="$CC -static"
  2851. cat >conftest.$ac_ext <<_ACEOF
  2852. /* confdefs.h. */
  2853. _ACEOF
  2854. cat confdefs.h >>conftest.$ac_ext
  2855. cat >>conftest.$ac_ext <<_ACEOF
  2856. /* end confdefs.h. */
  2857. int
  2858. main ()
  2859. {
  2860. ;
  2861. return 0;
  2862. }
  2863. _ACEOF
  2864. rm -f conftest.$ac_objext
  2865. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2866. (eval $ac_compile) 2>conftest.er1
  2867. ac_status=$?
  2868. grep -v '^ *+' conftest.er1 >conftest.err
  2869. rm -f conftest.er1
  2870. cat conftest.err >&5
  2871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2872. (exit $ac_status); } &&
  2873. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2874. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2875. (eval $ac_try) 2>&5
  2876. ac_status=$?
  2877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2878. (exit $ac_status); }; } &&
  2879. { ac_try='test -s conftest.$ac_objext'
  2880. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2881. (eval $ac_try) 2>&5
  2882. ac_status=$?
  2883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2884. (exit $ac_status); }; }; then
  2885. egg_cv_var_ccstatic="yes"
  2886. else
  2887. echo "$as_me: failed program was:" >&5
  2888. sed 's/^/| /' conftest.$ac_ext >&5
  2889. egg_cv_var_ccstatic="no"
  2890. fi
  2891. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2892. CC="$ac_old_CC"
  2893. fi
  2894. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  2895. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  2896. if test "$egg_cv_var_ccstatic" = "yes"
  2897. then
  2898. CCDEBUG="$CC"
  2899. CC="$CC -static"
  2900. else
  2901. cat << 'EOF' >&2
  2902. configure: error:
  2903. Your C compiler does not support -static.
  2904. This compile flag is required for the botpack.
  2905. EOF
  2906. exit 1
  2907. fi
  2908. fi
  2909. fi
  2910. # Checks for programs
  2911. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2912. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2913. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2914. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2915. echo $ECHO_N "(cached) $ECHO_C" >&6
  2916. else
  2917. cat >conftest.make <<\_ACEOF
  2918. all:
  2919. @echo 'ac_maketemp="$(MAKE)"'
  2920. _ACEOF
  2921. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2922. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2923. if test -n "$ac_maketemp"; then
  2924. eval ac_cv_prog_make_${ac_make}_set=yes
  2925. else
  2926. eval ac_cv_prog_make_${ac_make}_set=no
  2927. fi
  2928. rm -f conftest.make
  2929. fi
  2930. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2931. echo "$as_me:$LINENO: result: yes" >&5
  2932. echo "${ECHO_T}yes" >&6
  2933. SET_MAKE=
  2934. else
  2935. echo "$as_me:$LINENO: result: no" >&5
  2936. echo "${ECHO_T}no" >&6
  2937. SET_MAKE="MAKE=${MAKE-make}"
  2938. fi
  2939. cat << 'EOF' > conftest.head
  2940. a
  2941. b
  2942. c
  2943. EOF
  2944. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  2945. do
  2946. echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  2947. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6
  2948. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  2949. echo $ECHO_N "(cached) $ECHO_C" >&6
  2950. else
  2951. if test -n "$HEAD_1"
  2952. then
  2953. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  2954. else
  2955. if test "`cat conftest.head | $ac_prog`" = "a";
  2956. then
  2957. echo "$as_me:$LINENO: result: yes" >&5
  2958. echo "${ECHO_T}yes" >&6
  2959. ac_cv_prog_HEAD_1=$ac_prog
  2960. else
  2961. echo "$as_me:$LINENO: result: no" >&5
  2962. echo "${ECHO_T}no" >&6
  2963. fi
  2964. fi
  2965. fi
  2966. test -n "$ac_cv_prog_HEAD_1" && break
  2967. done
  2968. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  2969. then
  2970. cat << 'EOF' >&2
  2971. configure: error:
  2972. This system seems to lack a working 'head -1' or 'head -n 1' command.
  2973. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  2974. EOF
  2975. exit 1
  2976. fi
  2977. rm -f conftest.head
  2978. HEAD_1=$ac_cv_prog_HEAD_1
  2979. # awk is needed for Tcl library and header checks, and eggdrop version subst
  2980. for ac_prog in gawk mawk nawk awk
  2981. do
  2982. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2983. set dummy $ac_prog; ac_word=$2
  2984. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2985. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2986. if test "${ac_cv_prog_AWK+set}" = set; then
  2987. echo $ECHO_N "(cached) $ECHO_C" >&6
  2988. else
  2989. if test -n "$AWK"; then
  2990. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2991. else
  2992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2993. for as_dir in $PATH
  2994. do
  2995. IFS=$as_save_IFS
  2996. test -z "$as_dir" && as_dir=.
  2997. for ac_exec_ext in '' $ac_executable_extensions; do
  2998. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2999. ac_cv_prog_AWK="$ac_prog"
  3000. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3001. break 2
  3002. fi
  3003. done
  3004. done
  3005. fi
  3006. fi
  3007. AWK=$ac_cv_prog_AWK
  3008. if test -n "$AWK"; then
  3009. echo "$as_me:$LINENO: result: $AWK" >&5
  3010. echo "${ECHO_T}$AWK" >&6
  3011. else
  3012. echo "$as_me:$LINENO: result: no" >&5
  3013. echo "${ECHO_T}no" >&6
  3014. fi
  3015. test -n "$AWK" && break
  3016. done
  3017. if test "${AWK-x}" = "x"
  3018. then
  3019. cat << 'EOF' >&2
  3020. configure: error:
  3021. This system seems to lack a working 'awk' command.
  3022. A working 'awk' command is required to compile Eggdrop.
  3023. EOF
  3024. exit 1
  3025. fi
  3026. # basename is needed for Tcl library and header checks
  3027. # Extract the first word of "basename", so it can be a program name with args.
  3028. set dummy basename; ac_word=$2
  3029. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3030. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3031. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3032. echo $ECHO_N "(cached) $ECHO_C" >&6
  3033. else
  3034. if test -n "$BASENAME"; then
  3035. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3036. else
  3037. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3038. for as_dir in $PATH
  3039. do
  3040. IFS=$as_save_IFS
  3041. test -z "$as_dir" && as_dir=.
  3042. for ac_exec_ext in '' $ac_executable_extensions; do
  3043. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3044. ac_cv_prog_BASENAME="basename"
  3045. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3046. break 2
  3047. fi
  3048. done
  3049. done
  3050. fi
  3051. fi
  3052. BASENAME=$ac_cv_prog_BASENAME
  3053. if test -n "$BASENAME"; then
  3054. echo "$as_me:$LINENO: result: $BASENAME" >&5
  3055. echo "${ECHO_T}$BASENAME" >&6
  3056. else
  3057. echo "$as_me:$LINENO: result: no" >&5
  3058. echo "${ECHO_T}no" >&6
  3059. fi
  3060. if test "${BASENAME-x}" = "x"
  3061. then
  3062. cat << 'EOF' >&2
  3063. configure: error:
  3064. This system seems to lack a working 'basename' command.
  3065. A working 'basename' command is required to compile Eggdrop.
  3066. EOF
  3067. exit 1
  3068. fi
  3069. # Extract the first word of "objcopy", so it can be a program name with args.
  3070. set dummy objcopy; ac_word=$2
  3071. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3072. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3073. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  3074. echo $ECHO_N "(cached) $ECHO_C" >&6
  3075. else
  3076. if test -n "$OBJCOPY"; then
  3077. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3078. else
  3079. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3080. for as_dir in $PATH
  3081. do
  3082. IFS=$as_save_IFS
  3083. test -z "$as_dir" && as_dir=.
  3084. for ac_exec_ext in '' $ac_executable_extensions; do
  3085. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3086. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3087. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3088. break 2
  3089. fi
  3090. done
  3091. done
  3092. fi
  3093. fi
  3094. OBJCOPY=$ac_cv_prog_OBJCOPY
  3095. if test -n "$OBJCOPY"; then
  3096. echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  3097. echo "${ECHO_T}$OBJCOPY" >&6
  3098. else
  3099. echo "$as_me:$LINENO: result: no" >&5
  3100. echo "${ECHO_T}no" >&6
  3101. fi
  3102. # Extract the first word of "strip", so it can be a program name with args.
  3103. set dummy strip; ac_word=$2
  3104. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3105. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3106. if test "${ac_cv_prog_STRIP+set}" = set; then
  3107. echo $ECHO_N "(cached) $ECHO_C" >&6
  3108. else
  3109. if test -n "$STRIP"; then
  3110. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3111. else
  3112. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3113. for as_dir in $PATH
  3114. do
  3115. IFS=$as_save_IFS
  3116. test -z "$as_dir" && as_dir=.
  3117. for ac_exec_ext in '' $ac_executable_extensions; do
  3118. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3119. ac_cv_prog_STRIP="strip"
  3120. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3121. break 2
  3122. fi
  3123. done
  3124. done
  3125. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3126. fi
  3127. fi
  3128. STRIP=$ac_cv_prog_STRIP
  3129. if test -n "$STRIP"; then
  3130. echo "$as_me:$LINENO: result: $STRIP" >&5
  3131. echo "${ECHO_T}$STRIP" >&6
  3132. else
  3133. echo "$as_me:$LINENO: result: no" >&5
  3134. echo "${ECHO_T}no" >&6
  3135. fi
  3136. # Extract the first word of "uname", so it can be a program name with args.
  3137. set dummy uname; ac_word=$2
  3138. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3139. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3140. if test "${ac_cv_prog_UNAME+set}" = set; then
  3141. echo $ECHO_N "(cached) $ECHO_C" >&6
  3142. else
  3143. if test -n "$UNAME"; then
  3144. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3145. else
  3146. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3147. for as_dir in $PATH
  3148. do
  3149. IFS=$as_save_IFS
  3150. test -z "$as_dir" && as_dir=.
  3151. for ac_exec_ext in '' $ac_executable_extensions; do
  3152. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3153. ac_cv_prog_UNAME="uname"
  3154. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3155. break 2
  3156. fi
  3157. done
  3158. done
  3159. fi
  3160. fi
  3161. UNAME=$ac_cv_prog_UNAME
  3162. if test -n "$UNAME"; then
  3163. echo "$as_me:$LINENO: result: $UNAME" >&5
  3164. echo "${ECHO_T}$UNAME" >&6
  3165. else
  3166. echo "$as_me:$LINENO: result: no" >&5
  3167. echo "${ECHO_T}no" >&6
  3168. fi
  3169. #AC_CHECK_PROG(CCACHE, ccache, ccache)
  3170. # Extract the first word of "distcc", so it can be a program name with args.
  3171. set dummy distcc; ac_word=$2
  3172. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3173. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3174. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3175. echo $ECHO_N "(cached) $ECHO_C" >&6
  3176. else
  3177. if test -n "$DISTCC"; then
  3178. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3179. else
  3180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3181. for as_dir in $PATH
  3182. do
  3183. IFS=$as_save_IFS
  3184. test -z "$as_dir" && as_dir=.
  3185. for ac_exec_ext in '' $ac_executable_extensions; do
  3186. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3187. ac_cv_prog_DISTCC="distcc"
  3188. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3189. break 2
  3190. fi
  3191. done
  3192. done
  3193. fi
  3194. fi
  3195. DISTCC=$ac_cv_prog_DISTCC
  3196. if test -n "$DISTCC"; then
  3197. echo "$as_me:$LINENO: result: $DISTCC" >&5
  3198. echo "${ECHO_T}$DISTCC" >&6
  3199. else
  3200. echo "$as_me:$LINENO: result: no" >&5
  3201. echo "${ECHO_T}no" >&6
  3202. fi
  3203. # Test the os and set the module linking settings
  3204. LINUX=no
  3205. IRIX=no
  3206. SUNOS=no
  3207. EGG_CYGWIN=no
  3208. echo "$as_me:$LINENO: checking system type" >&5
  3209. echo $ECHO_N "checking system type... $ECHO_C" >&6
  3210. if test "${egg_cv_var_system_type+set}" = set; then
  3211. echo $ECHO_N "(cached) $ECHO_C" >&6
  3212. else
  3213. egg_cv_var_system_type=`$UNAME -s`
  3214. fi
  3215. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3216. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3217. echo "$as_me:$LINENO: checking system release" >&5
  3218. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3219. if test "${egg_cv_var_system_release+set}" = set; then
  3220. echo $ECHO_N "(cached) $ECHO_C" >&6
  3221. else
  3222. egg_cv_var_system_release=`$UNAME -r`
  3223. fi
  3224. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3225. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3226. case "$egg_cv_var_system_type" in
  3227. BSD/OS)
  3228. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3229. 2)
  3230. ;;
  3231. *)
  3232. CFLAGS="$CFLAGS -Wall"
  3233. ;;
  3234. esac
  3235. ;;
  3236. CYGWI*)
  3237. case "`echo $egg_cv_var_system_release | cut -c 1-3`" in
  3238. 1.*)
  3239. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3240. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3241. WIN32FLAGS=
  3242. cat >conftest.$ac_ext <<_ACEOF
  3243. /* confdefs.h. */
  3244. _ACEOF
  3245. cat confdefs.h >>conftest.$ac_ext
  3246. cat >>conftest.$ac_ext <<_ACEOF
  3247. /* end confdefs.h. */
  3248. int
  3249. main ()
  3250. {
  3251. #ifndef WIN32
  3252. # ifndef _WIN32
  3253. # error WIN32 or _WIN32 not defined
  3254. # endif
  3255. #endif
  3256. ;
  3257. return 0;
  3258. }
  3259. _ACEOF
  3260. rm -f conftest.$ac_objext
  3261. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3262. (eval $ac_compile) 2>conftest.er1
  3263. ac_status=$?
  3264. grep -v '^ *+' conftest.er1 >conftest.err
  3265. rm -f conftest.er1
  3266. cat conftest.err >&5
  3267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3268. (exit $ac_status); } &&
  3269. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3270. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3271. (eval $ac_try) 2>&5
  3272. ac_status=$?
  3273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3274. (exit $ac_status); }; } &&
  3275. { ac_try='test -s conftest.$ac_objext'
  3276. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3277. (eval $ac_try) 2>&5
  3278. ac_status=$?
  3279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3280. (exit $ac_status); }; }; then
  3281. echo "$as_me:$LINENO: result: present by default" >&5
  3282. echo "${ECHO_T}present by default" >&6
  3283. else
  3284. echo "$as_me: failed program was:" >&5
  3285. sed 's/^/| /' conftest.$ac_ext >&5
  3286. ac_compile_save="$ac_compile"
  3287. save_CC="$CC"
  3288. ac_compile="$ac_compile -mwin32"
  3289. CC="$CC -mwin32"
  3290. cat >conftest.$ac_ext <<_ACEOF
  3291. /* confdefs.h. */
  3292. _ACEOF
  3293. cat confdefs.h >>conftest.$ac_ext
  3294. cat >>conftest.$ac_ext <<_ACEOF
  3295. /* end confdefs.h. */
  3296. int
  3297. main ()
  3298. {
  3299. #ifndef WIN32
  3300. # ifndef _WIN32
  3301. # error WIN32 or _WIN32 not defined
  3302. # endif
  3303. #endif
  3304. ;
  3305. return 0;
  3306. }
  3307. _ACEOF
  3308. rm -f conftest.$ac_objext
  3309. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3310. (eval $ac_compile) 2>conftest.er1
  3311. ac_status=$?
  3312. grep -v '^ *+' conftest.er1 >conftest.err
  3313. rm -f conftest.er1
  3314. cat conftest.err >&5
  3315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3316. (exit $ac_status); } &&
  3317. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3318. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3319. (eval $ac_try) 2>&5
  3320. ac_status=$?
  3321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3322. (exit $ac_status); }; } &&
  3323. { ac_try='test -s conftest.$ac_objext'
  3324. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3325. (eval $ac_try) 2>&5
  3326. ac_status=$?
  3327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3328. (exit $ac_status); }; }; then
  3329. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3330. echo "${ECHO_T}found via -mwin32" >&6
  3331. ac_compile="$ac_compile_save"
  3332. CC="$save_CC"
  3333. WIN32FLAGS="-mwin32"
  3334. else
  3335. echo "$as_me: failed program was:" >&5
  3336. sed 's/^/| /' conftest.$ac_ext >&5
  3337. ac_compile="$ac_compile_save"
  3338. CC="$save_CC"
  3339. echo "$as_me:$LINENO: result: not found" >&5
  3340. echo "${ECHO_T}not found" >&6
  3341. fi
  3342. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3343. fi
  3344. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3345. CC="$CC $WIN32FLAGS"
  3346. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3347. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3348. if test -r /usr/lib/binmode.o
  3349. then
  3350. echo "$as_me:$LINENO: result: yes" >&5
  3351. echo "${ECHO_T}yes" >&6
  3352. LIBS="$LIBS /usr/lib/binmode.o"
  3353. else
  3354. echo "$as_me:$LINENO: result: no" >&5
  3355. echo "${ECHO_T}no" >&6
  3356. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3357. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3358. fi
  3359. ;;
  3360. *)
  3361. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3362. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3363. ;;
  3364. esac
  3365. EGG_CYGWIN=yes
  3366. cat >>confdefs.h <<\_ACEOF
  3367. #define CYGWIN_HACKS 1
  3368. _ACEOF
  3369. cat >>confdefs.h <<\_ACEOF
  3370. #define WIN32_LEAN_AND_MEAN 1
  3371. _ACEOF
  3372. ;;
  3373. IRIX)
  3374. IRIX=yes
  3375. ;;
  3376. Ultrix)
  3377. SHELL=/bin/sh5
  3378. ;;
  3379. SINIX*)
  3380. ;;
  3381. BeOS)
  3382. ;;
  3383. Linux)
  3384. LINUX=yes
  3385. CFLAGS="$CFLAGS -Wall"
  3386. ;;
  3387. Lynx)
  3388. ;;
  3389. QNX)
  3390. ;;
  3391. OSF1)
  3392. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3393. V*)
  3394. if test "$AWK" = "gawk"
  3395. then
  3396. AWK=awk
  3397. fi
  3398. ;;
  3399. 1.0|1.1|1.2)
  3400. cat >>confdefs.h <<\_ACEOF
  3401. #define OSF1_HACKS 1
  3402. _ACEOF
  3403. ;;
  3404. 1.*)
  3405. cat >>confdefs.h <<\_ACEOF
  3406. #define OSF1_HACKS 1
  3407. _ACEOF
  3408. ;;
  3409. *)
  3410. ;;
  3411. esac
  3412. cat >>confdefs.h <<\_ACEOF
  3413. #define STOP_UAC 1
  3414. _ACEOF
  3415. cat >>confdefs.h <<\_ACEOF
  3416. #define BROKEN_SNPRINTF 1
  3417. _ACEOF
  3418. ;;
  3419. SunOS)
  3420. if ! test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"
  3421. then
  3422. # SunOS 4
  3423. SUNOS=yes
  3424. fi
  3425. ;;
  3426. *BSD)
  3427. # FreeBSD/OpenBSD/NetBSD
  3428. ;;
  3429. *)
  3430. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3431. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3432. if test -r /mach
  3433. then
  3434. echo "$as_me:$LINENO: result: yes" >&5
  3435. echo "${ECHO_T}yes" >&6
  3436. cat >>confdefs.h <<\_ACEOF
  3437. #define BORGCUBES 1
  3438. _ACEOF
  3439. else
  3440. echo "$as_me:$LINENO: result: no" >&5
  3441. echo "${ECHO_T}no" >&6
  3442. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3443. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3444. if test -r /cmds
  3445. then
  3446. echo "$as_me:$LINENO: result: yes" >&5
  3447. echo "${ECHO_T}yes" >&6
  3448. else
  3449. echo "$as_me:$LINENO: result: no" >&5
  3450. echo "${ECHO_T}no" >&6
  3451. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3452. echo "${ECHO_T}Something unknown!" >&6
  3453. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3454. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3455. fi
  3456. fi
  3457. ;;
  3458. esac
  3459. dns_reslib_avail="true"
  3460. echo "$as_me:$LINENO: checking for res_init" >&5
  3461. echo $ECHO_N "checking for res_init... $ECHO_C" >&6
  3462. if test "${ac_cv_func_res_init+set}" = set; then
  3463. echo $ECHO_N "(cached) $ECHO_C" >&6
  3464. else
  3465. cat >conftest.$ac_ext <<_ACEOF
  3466. /* confdefs.h. */
  3467. _ACEOF
  3468. cat confdefs.h >>conftest.$ac_ext
  3469. cat >>conftest.$ac_ext <<_ACEOF
  3470. /* end confdefs.h. */
  3471. /* Define res_init to an innocuous variant, in case <limits.h> declares res_init.
  3472. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3473. #define res_init innocuous_res_init
  3474. /* System header to define __stub macros and hopefully few prototypes,
  3475. which can conflict with char res_init (); below.
  3476. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3477. <limits.h> exists even on freestanding compilers. */
  3478. #ifdef __STDC__
  3479. # include <limits.h>
  3480. #else
  3481. # include <assert.h>
  3482. #endif
  3483. #undef res_init
  3484. /* Override any gcc2 internal prototype to avoid an error. */
  3485. #ifdef __cplusplus
  3486. extern "C"
  3487. {
  3488. #endif
  3489. /* We use char because int might match the return type of a gcc2
  3490. builtin and then its argument prototype would still apply. */
  3491. char res_init ();
  3492. /* The GNU C library defines this for functions which it implements
  3493. to always fail with ENOSYS. Some functions are actually named
  3494. something starting with __ and the normal name is an alias. */
  3495. #if defined (__stub_res_init) || defined (__stub___res_init)
  3496. choke me
  3497. #else
  3498. char (*f) () = res_init;
  3499. #endif
  3500. #ifdef __cplusplus
  3501. }
  3502. #endif
  3503. int
  3504. main ()
  3505. {
  3506. return f != res_init;
  3507. ;
  3508. return 0;
  3509. }
  3510. _ACEOF
  3511. rm -f conftest.$ac_objext conftest$ac_exeext
  3512. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3513. (eval $ac_link) 2>conftest.er1
  3514. ac_status=$?
  3515. grep -v '^ *+' conftest.er1 >conftest.err
  3516. rm -f conftest.er1
  3517. cat conftest.err >&5
  3518. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3519. (exit $ac_status); } &&
  3520. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3521. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3522. (eval $ac_try) 2>&5
  3523. ac_status=$?
  3524. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3525. (exit $ac_status); }; } &&
  3526. { ac_try='test -s conftest$ac_exeext'
  3527. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3528. (eval $ac_try) 2>&5
  3529. ac_status=$?
  3530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3531. (exit $ac_status); }; }; then
  3532. ac_cv_func_res_init=yes
  3533. else
  3534. echo "$as_me: failed program was:" >&5
  3535. sed 's/^/| /' conftest.$ac_ext >&5
  3536. ac_cv_func_res_init=no
  3537. fi
  3538. rm -f conftest.err conftest.$ac_objext \
  3539. conftest$ac_exeext conftest.$ac_ext
  3540. fi
  3541. echo "$as_me:$LINENO: result: $ac_cv_func_res_init" >&5
  3542. echo "${ECHO_T}$ac_cv_func_res_init" >&6
  3543. if test $ac_cv_func_res_init = yes; then
  3544. :
  3545. else
  3546. echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
  3547. echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
  3548. if test "${ac_cv_lib_resolv_res_init+set}" = set; then
  3549. echo $ECHO_N "(cached) $ECHO_C" >&6
  3550. else
  3551. ac_check_lib_save_LIBS=$LIBS
  3552. LIBS="-lresolv $LIBS"
  3553. cat >conftest.$ac_ext <<_ACEOF
  3554. /* confdefs.h. */
  3555. _ACEOF
  3556. cat confdefs.h >>conftest.$ac_ext
  3557. cat >>conftest.$ac_ext <<_ACEOF
  3558. /* end confdefs.h. */
  3559. /* Override any gcc2 internal prototype to avoid an error. */
  3560. #ifdef __cplusplus
  3561. extern "C"
  3562. #endif
  3563. /* We use char because int might match the return type of a gcc2
  3564. builtin and then its argument prototype would still apply. */
  3565. char res_init ();
  3566. int
  3567. main ()
  3568. {
  3569. res_init ();
  3570. ;
  3571. return 0;
  3572. }
  3573. _ACEOF
  3574. rm -f conftest.$ac_objext conftest$ac_exeext
  3575. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3576. (eval $ac_link) 2>conftest.er1
  3577. ac_status=$?
  3578. grep -v '^ *+' conftest.er1 >conftest.err
  3579. rm -f conftest.er1
  3580. cat conftest.err >&5
  3581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3582. (exit $ac_status); } &&
  3583. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3584. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3585. (eval $ac_try) 2>&5
  3586. ac_status=$?
  3587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3588. (exit $ac_status); }; } &&
  3589. { ac_try='test -s conftest$ac_exeext'
  3590. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3591. (eval $ac_try) 2>&5
  3592. ac_status=$?
  3593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3594. (exit $ac_status); }; }; then
  3595. ac_cv_lib_resolv_res_init=yes
  3596. else
  3597. echo "$as_me: failed program was:" >&5
  3598. sed 's/^/| /' conftest.$ac_ext >&5
  3599. ac_cv_lib_resolv_res_init=no
  3600. fi
  3601. rm -f conftest.err conftest.$ac_objext \
  3602. conftest$ac_exeext conftest.$ac_ext
  3603. LIBS=$ac_check_lib_save_LIBS
  3604. fi
  3605. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
  3606. echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
  3607. if test $ac_cv_lib_resolv_res_init = yes; then
  3608. RESLIB="-lresolv"
  3609. else
  3610. echo "$as_me:$LINENO: checking for res_init in -lbind" >&5
  3611. echo $ECHO_N "checking for res_init in -lbind... $ECHO_C" >&6
  3612. if test "${ac_cv_lib_bind_res_init+set}" = set; then
  3613. echo $ECHO_N "(cached) $ECHO_C" >&6
  3614. else
  3615. ac_check_lib_save_LIBS=$LIBS
  3616. LIBS="-lbind $LIBS"
  3617. cat >conftest.$ac_ext <<_ACEOF
  3618. /* confdefs.h. */
  3619. _ACEOF
  3620. cat confdefs.h >>conftest.$ac_ext
  3621. cat >>conftest.$ac_ext <<_ACEOF
  3622. /* end confdefs.h. */
  3623. /* Override any gcc2 internal prototype to avoid an error. */
  3624. #ifdef __cplusplus
  3625. extern "C"
  3626. #endif
  3627. /* We use char because int might match the return type of a gcc2
  3628. builtin and then its argument prototype would still apply. */
  3629. char res_init ();
  3630. int
  3631. main ()
  3632. {
  3633. res_init ();
  3634. ;
  3635. return 0;
  3636. }
  3637. _ACEOF
  3638. rm -f conftest.$ac_objext conftest$ac_exeext
  3639. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3640. (eval $ac_link) 2>conftest.er1
  3641. ac_status=$?
  3642. grep -v '^ *+' conftest.er1 >conftest.err
  3643. rm -f conftest.er1
  3644. cat conftest.err >&5
  3645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3646. (exit $ac_status); } &&
  3647. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3648. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3649. (eval $ac_try) 2>&5
  3650. ac_status=$?
  3651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3652. (exit $ac_status); }; } &&
  3653. { ac_try='test -s conftest$ac_exeext'
  3654. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3655. (eval $ac_try) 2>&5
  3656. ac_status=$?
  3657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3658. (exit $ac_status); }; }; then
  3659. ac_cv_lib_bind_res_init=yes
  3660. else
  3661. echo "$as_me: failed program was:" >&5
  3662. sed 's/^/| /' conftest.$ac_ext >&5
  3663. ac_cv_lib_bind_res_init=no
  3664. fi
  3665. rm -f conftest.err conftest.$ac_objext \
  3666. conftest$ac_exeext conftest.$ac_ext
  3667. LIBS=$ac_check_lib_save_LIBS
  3668. fi
  3669. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_init" >&5
  3670. echo "${ECHO_T}$ac_cv_lib_bind_res_init" >&6
  3671. if test $ac_cv_lib_bind_res_init = yes; then
  3672. RESLIB="-lbind"
  3673. else
  3674. dns_reslib_avail="false";
  3675. fi
  3676. fi
  3677. fi
  3678. if test "${dns_reslib_avail}" = false; then
  3679. dns_reslib_avail="true"
  3680. echo "$as_me:$LINENO: checking for __res_init" >&5
  3681. echo $ECHO_N "checking for __res_init... $ECHO_C" >&6
  3682. if test "${ac_cv_func___res_init+set}" = set; then
  3683. echo $ECHO_N "(cached) $ECHO_C" >&6
  3684. else
  3685. cat >conftest.$ac_ext <<_ACEOF
  3686. /* confdefs.h. */
  3687. _ACEOF
  3688. cat confdefs.h >>conftest.$ac_ext
  3689. cat >>conftest.$ac_ext <<_ACEOF
  3690. /* end confdefs.h. */
  3691. /* Define __res_init to an innocuous variant, in case <limits.h> declares __res_init.
  3692. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3693. #define __res_init innocuous___res_init
  3694. /* System header to define __stub macros and hopefully few prototypes,
  3695. which can conflict with char __res_init (); below.
  3696. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3697. <limits.h> exists even on freestanding compilers. */
  3698. #ifdef __STDC__
  3699. # include <limits.h>
  3700. #else
  3701. # include <assert.h>
  3702. #endif
  3703. #undef __res_init
  3704. /* Override any gcc2 internal prototype to avoid an error. */
  3705. #ifdef __cplusplus
  3706. extern "C"
  3707. {
  3708. #endif
  3709. /* We use char because int might match the return type of a gcc2
  3710. builtin and then its argument prototype would still apply. */
  3711. char __res_init ();
  3712. /* The GNU C library defines this for functions which it implements
  3713. to always fail with ENOSYS. Some functions are actually named
  3714. something starting with __ and the normal name is an alias. */
  3715. #if defined (__stub___res_init) || defined (__stub_____res_init)
  3716. choke me
  3717. #else
  3718. char (*f) () = __res_init;
  3719. #endif
  3720. #ifdef __cplusplus
  3721. }
  3722. #endif
  3723. int
  3724. main ()
  3725. {
  3726. return f != __res_init;
  3727. ;
  3728. return 0;
  3729. }
  3730. _ACEOF
  3731. rm -f conftest.$ac_objext conftest$ac_exeext
  3732. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3733. (eval $ac_link) 2>conftest.er1
  3734. ac_status=$?
  3735. grep -v '^ *+' conftest.er1 >conftest.err
  3736. rm -f conftest.er1
  3737. cat conftest.err >&5
  3738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3739. (exit $ac_status); } &&
  3740. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3741. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3742. (eval $ac_try) 2>&5
  3743. ac_status=$?
  3744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3745. (exit $ac_status); }; } &&
  3746. { ac_try='test -s conftest$ac_exeext'
  3747. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3748. (eval $ac_try) 2>&5
  3749. ac_status=$?
  3750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3751. (exit $ac_status); }; }; then
  3752. ac_cv_func___res_init=yes
  3753. else
  3754. echo "$as_me: failed program was:" >&5
  3755. sed 's/^/| /' conftest.$ac_ext >&5
  3756. ac_cv_func___res_init=no
  3757. fi
  3758. rm -f conftest.err conftest.$ac_objext \
  3759. conftest$ac_exeext conftest.$ac_ext
  3760. fi
  3761. echo "$as_me:$LINENO: result: $ac_cv_func___res_init" >&5
  3762. echo "${ECHO_T}$ac_cv_func___res_init" >&6
  3763. if test $ac_cv_func___res_init = yes; then
  3764. :
  3765. else
  3766. echo "$as_me:$LINENO: checking for __res_init in -lresolv" >&5
  3767. echo $ECHO_N "checking for __res_init in -lresolv... $ECHO_C" >&6
  3768. if test "${ac_cv_lib_resolv___res_init+set}" = set; then
  3769. echo $ECHO_N "(cached) $ECHO_C" >&6
  3770. else
  3771. ac_check_lib_save_LIBS=$LIBS
  3772. LIBS="-lresolv $LIBS"
  3773. cat >conftest.$ac_ext <<_ACEOF
  3774. /* confdefs.h. */
  3775. _ACEOF
  3776. cat confdefs.h >>conftest.$ac_ext
  3777. cat >>conftest.$ac_ext <<_ACEOF
  3778. /* end confdefs.h. */
  3779. /* Override any gcc2 internal prototype to avoid an error. */
  3780. #ifdef __cplusplus
  3781. extern "C"
  3782. #endif
  3783. /* We use char because int might match the return type of a gcc2
  3784. builtin and then its argument prototype would still apply. */
  3785. char __res_init ();
  3786. int
  3787. main ()
  3788. {
  3789. __res_init ();
  3790. ;
  3791. return 0;
  3792. }
  3793. _ACEOF
  3794. rm -f conftest.$ac_objext conftest$ac_exeext
  3795. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3796. (eval $ac_link) 2>conftest.er1
  3797. ac_status=$?
  3798. grep -v '^ *+' conftest.er1 >conftest.err
  3799. rm -f conftest.er1
  3800. cat conftest.err >&5
  3801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3802. (exit $ac_status); } &&
  3803. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3804. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3805. (eval $ac_try) 2>&5
  3806. ac_status=$?
  3807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3808. (exit $ac_status); }; } &&
  3809. { ac_try='test -s conftest$ac_exeext'
  3810. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3811. (eval $ac_try) 2>&5
  3812. ac_status=$?
  3813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3814. (exit $ac_status); }; }; then
  3815. ac_cv_lib_resolv___res_init=yes
  3816. else
  3817. echo "$as_me: failed program was:" >&5
  3818. sed 's/^/| /' conftest.$ac_ext >&5
  3819. ac_cv_lib_resolv___res_init=no
  3820. fi
  3821. rm -f conftest.err conftest.$ac_objext \
  3822. conftest$ac_exeext conftest.$ac_ext
  3823. LIBS=$ac_check_lib_save_LIBS
  3824. fi
  3825. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_init" >&5
  3826. echo "${ECHO_T}$ac_cv_lib_resolv___res_init" >&6
  3827. if test $ac_cv_lib_resolv___res_init = yes; then
  3828. RESLIB="-lresolv"
  3829. else
  3830. echo "$as_me:$LINENO: checking for __res_init in -lbind" >&5
  3831. echo $ECHO_N "checking for __res_init in -lbind... $ECHO_C" >&6
  3832. if test "${ac_cv_lib_bind___res_init+set}" = set; then
  3833. echo $ECHO_N "(cached) $ECHO_C" >&6
  3834. else
  3835. ac_check_lib_save_LIBS=$LIBS
  3836. LIBS="-lbind $LIBS"
  3837. cat >conftest.$ac_ext <<_ACEOF
  3838. /* confdefs.h. */
  3839. _ACEOF
  3840. cat confdefs.h >>conftest.$ac_ext
  3841. cat >>conftest.$ac_ext <<_ACEOF
  3842. /* end confdefs.h. */
  3843. /* Override any gcc2 internal prototype to avoid an error. */
  3844. #ifdef __cplusplus
  3845. extern "C"
  3846. #endif
  3847. /* We use char because int might match the return type of a gcc2
  3848. builtin and then its argument prototype would still apply. */
  3849. char __res_init ();
  3850. int
  3851. main ()
  3852. {
  3853. __res_init ();
  3854. ;
  3855. return 0;
  3856. }
  3857. _ACEOF
  3858. rm -f conftest.$ac_objext conftest$ac_exeext
  3859. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3860. (eval $ac_link) 2>conftest.er1
  3861. ac_status=$?
  3862. grep -v '^ *+' conftest.er1 >conftest.err
  3863. rm -f conftest.er1
  3864. cat conftest.err >&5
  3865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3866. (exit $ac_status); } &&
  3867. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3868. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3869. (eval $ac_try) 2>&5
  3870. ac_status=$?
  3871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3872. (exit $ac_status); }; } &&
  3873. { ac_try='test -s conftest$ac_exeext'
  3874. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3875. (eval $ac_try) 2>&5
  3876. ac_status=$?
  3877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3878. (exit $ac_status); }; }; then
  3879. ac_cv_lib_bind___res_init=yes
  3880. else
  3881. echo "$as_me: failed program was:" >&5
  3882. sed 's/^/| /' conftest.$ac_ext >&5
  3883. ac_cv_lib_bind___res_init=no
  3884. fi
  3885. rm -f conftest.err conftest.$ac_objext \
  3886. conftest$ac_exeext conftest.$ac_ext
  3887. LIBS=$ac_check_lib_save_LIBS
  3888. fi
  3889. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_init" >&5
  3890. echo "${ECHO_T}$ac_cv_lib_bind___res_init" >&6
  3891. if test $ac_cv_lib_bind___res_init = yes; then
  3892. RESLIB="-lbind"
  3893. else
  3894. dns_reslib_avail="false";
  3895. fi
  3896. fi
  3897. fi
  3898. fi
  3899. echo "$as_me:$LINENO: checking for res_mkquery" >&5
  3900. echo $ECHO_N "checking for res_mkquery... $ECHO_C" >&6
  3901. if test "${ac_cv_func_res_mkquery+set}" = set; then
  3902. echo $ECHO_N "(cached) $ECHO_C" >&6
  3903. else
  3904. cat >conftest.$ac_ext <<_ACEOF
  3905. /* confdefs.h. */
  3906. _ACEOF
  3907. cat confdefs.h >>conftest.$ac_ext
  3908. cat >>conftest.$ac_ext <<_ACEOF
  3909. /* end confdefs.h. */
  3910. /* Define res_mkquery to an innocuous variant, in case <limits.h> declares res_mkquery.
  3911. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3912. #define res_mkquery innocuous_res_mkquery
  3913. /* System header to define __stub macros and hopefully few prototypes,
  3914. which can conflict with char res_mkquery (); below.
  3915. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3916. <limits.h> exists even on freestanding compilers. */
  3917. #ifdef __STDC__
  3918. # include <limits.h>
  3919. #else
  3920. # include <assert.h>
  3921. #endif
  3922. #undef res_mkquery
  3923. /* Override any gcc2 internal prototype to avoid an error. */
  3924. #ifdef __cplusplus
  3925. extern "C"
  3926. {
  3927. #endif
  3928. /* We use char because int might match the return type of a gcc2
  3929. builtin and then its argument prototype would still apply. */
  3930. char res_mkquery ();
  3931. /* The GNU C library defines this for functions which it implements
  3932. to always fail with ENOSYS. Some functions are actually named
  3933. something starting with __ and the normal name is an alias. */
  3934. #if defined (__stub_res_mkquery) || defined (__stub___res_mkquery)
  3935. choke me
  3936. #else
  3937. char (*f) () = res_mkquery;
  3938. #endif
  3939. #ifdef __cplusplus
  3940. }
  3941. #endif
  3942. int
  3943. main ()
  3944. {
  3945. return f != res_mkquery;
  3946. ;
  3947. return 0;
  3948. }
  3949. _ACEOF
  3950. rm -f conftest.$ac_objext conftest$ac_exeext
  3951. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3952. (eval $ac_link) 2>conftest.er1
  3953. ac_status=$?
  3954. grep -v '^ *+' conftest.er1 >conftest.err
  3955. rm -f conftest.er1
  3956. cat conftest.err >&5
  3957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3958. (exit $ac_status); } &&
  3959. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3960. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3961. (eval $ac_try) 2>&5
  3962. ac_status=$?
  3963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3964. (exit $ac_status); }; } &&
  3965. { ac_try='test -s conftest$ac_exeext'
  3966. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3967. (eval $ac_try) 2>&5
  3968. ac_status=$?
  3969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3970. (exit $ac_status); }; }; then
  3971. ac_cv_func_res_mkquery=yes
  3972. else
  3973. echo "$as_me: failed program was:" >&5
  3974. sed 's/^/| /' conftest.$ac_ext >&5
  3975. ac_cv_func_res_mkquery=no
  3976. fi
  3977. rm -f conftest.err conftest.$ac_objext \
  3978. conftest$ac_exeext conftest.$ac_ext
  3979. fi
  3980. echo "$as_me:$LINENO: result: $ac_cv_func_res_mkquery" >&5
  3981. echo "${ECHO_T}$ac_cv_func_res_mkquery" >&6
  3982. if test $ac_cv_func_res_mkquery = yes; then
  3983. :
  3984. else
  3985. echo "$as_me:$LINENO: checking for res_mkquery in -lresolv" >&5
  3986. echo $ECHO_N "checking for res_mkquery in -lresolv... $ECHO_C" >&6
  3987. if test "${ac_cv_lib_resolv_res_mkquery+set}" = set; then
  3988. echo $ECHO_N "(cached) $ECHO_C" >&6
  3989. else
  3990. ac_check_lib_save_LIBS=$LIBS
  3991. LIBS="-lresolv $LIBS"
  3992. cat >conftest.$ac_ext <<_ACEOF
  3993. /* confdefs.h. */
  3994. _ACEOF
  3995. cat confdefs.h >>conftest.$ac_ext
  3996. cat >>conftest.$ac_ext <<_ACEOF
  3997. /* end confdefs.h. */
  3998. /* Override any gcc2 internal prototype to avoid an error. */
  3999. #ifdef __cplusplus
  4000. extern "C"
  4001. #endif
  4002. /* We use char because int might match the return type of a gcc2
  4003. builtin and then its argument prototype would still apply. */
  4004. char res_mkquery ();
  4005. int
  4006. main ()
  4007. {
  4008. res_mkquery ();
  4009. ;
  4010. return 0;
  4011. }
  4012. _ACEOF
  4013. rm -f conftest.$ac_objext conftest$ac_exeext
  4014. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4015. (eval $ac_link) 2>conftest.er1
  4016. ac_status=$?
  4017. grep -v '^ *+' conftest.er1 >conftest.err
  4018. rm -f conftest.er1
  4019. cat conftest.err >&5
  4020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4021. (exit $ac_status); } &&
  4022. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4023. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4024. (eval $ac_try) 2>&5
  4025. ac_status=$?
  4026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4027. (exit $ac_status); }; } &&
  4028. { ac_try='test -s conftest$ac_exeext'
  4029. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4030. (eval $ac_try) 2>&5
  4031. ac_status=$?
  4032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4033. (exit $ac_status); }; }; then
  4034. ac_cv_lib_resolv_res_mkquery=yes
  4035. else
  4036. echo "$as_me: failed program was:" >&5
  4037. sed 's/^/| /' conftest.$ac_ext >&5
  4038. ac_cv_lib_resolv_res_mkquery=no
  4039. fi
  4040. rm -f conftest.err conftest.$ac_objext \
  4041. conftest$ac_exeext conftest.$ac_ext
  4042. LIBS=$ac_check_lib_save_LIBS
  4043. fi
  4044. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_mkquery" >&5
  4045. echo "${ECHO_T}$ac_cv_lib_resolv_res_mkquery" >&6
  4046. if test $ac_cv_lib_resolv_res_mkquery = yes; then
  4047. if test "x${RESLIB}" != "x-lresolv"; then
  4048. RESLIB="${RESLIB} -lresolv"
  4049. fi
  4050. else
  4051. echo "$as_me:$LINENO: checking for res_mkquery in -lbind" >&5
  4052. echo $ECHO_N "checking for res_mkquery in -lbind... $ECHO_C" >&6
  4053. if test "${ac_cv_lib_bind_res_mkquery+set}" = set; then
  4054. echo $ECHO_N "(cached) $ECHO_C" >&6
  4055. else
  4056. ac_check_lib_save_LIBS=$LIBS
  4057. LIBS="-lbind $LIBS"
  4058. cat >conftest.$ac_ext <<_ACEOF
  4059. /* confdefs.h. */
  4060. _ACEOF
  4061. cat confdefs.h >>conftest.$ac_ext
  4062. cat >>conftest.$ac_ext <<_ACEOF
  4063. /* end confdefs.h. */
  4064. /* Override any gcc2 internal prototype to avoid an error. */
  4065. #ifdef __cplusplus
  4066. extern "C"
  4067. #endif
  4068. /* We use char because int might match the return type of a gcc2
  4069. builtin and then its argument prototype would still apply. */
  4070. char res_mkquery ();
  4071. int
  4072. main ()
  4073. {
  4074. res_mkquery ();
  4075. ;
  4076. return 0;
  4077. }
  4078. _ACEOF
  4079. rm -f conftest.$ac_objext conftest$ac_exeext
  4080. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4081. (eval $ac_link) 2>conftest.er1
  4082. ac_status=$?
  4083. grep -v '^ *+' conftest.er1 >conftest.err
  4084. rm -f conftest.er1
  4085. cat conftest.err >&5
  4086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4087. (exit $ac_status); } &&
  4088. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4089. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4090. (eval $ac_try) 2>&5
  4091. ac_status=$?
  4092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4093. (exit $ac_status); }; } &&
  4094. { ac_try='test -s conftest$ac_exeext'
  4095. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4096. (eval $ac_try) 2>&5
  4097. ac_status=$?
  4098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4099. (exit $ac_status); }; }; then
  4100. ac_cv_lib_bind_res_mkquery=yes
  4101. else
  4102. echo "$as_me: failed program was:" >&5
  4103. sed 's/^/| /' conftest.$ac_ext >&5
  4104. ac_cv_lib_bind_res_mkquery=no
  4105. fi
  4106. rm -f conftest.err conftest.$ac_objext \
  4107. conftest$ac_exeext conftest.$ac_ext
  4108. LIBS=$ac_check_lib_save_LIBS
  4109. fi
  4110. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_mkquery" >&5
  4111. echo "${ECHO_T}$ac_cv_lib_bind_res_mkquery" >&6
  4112. if test $ac_cv_lib_bind_res_mkquery = yes; then
  4113. if test "x${RESLIB}" != "x-lbind"; then
  4114. RESLIB="${RESLIB} -lbind"
  4115. fi
  4116. else
  4117. dns_reslib_avail="false";
  4118. fi
  4119. fi
  4120. fi
  4121. if test "${dns_reslib_avail}" = false; then
  4122. dns_reslib_avail="true"
  4123. echo "$as_me:$LINENO: checking for __res_mkquery" >&5
  4124. echo $ECHO_N "checking for __res_mkquery... $ECHO_C" >&6
  4125. if test "${ac_cv_func___res_mkquery+set}" = set; then
  4126. echo $ECHO_N "(cached) $ECHO_C" >&6
  4127. else
  4128. cat >conftest.$ac_ext <<_ACEOF
  4129. /* confdefs.h. */
  4130. _ACEOF
  4131. cat confdefs.h >>conftest.$ac_ext
  4132. cat >>conftest.$ac_ext <<_ACEOF
  4133. /* end confdefs.h. */
  4134. /* Define __res_mkquery to an innocuous variant, in case <limits.h> declares __res_mkquery.
  4135. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4136. #define __res_mkquery innocuous___res_mkquery
  4137. /* System header to define __stub macros and hopefully few prototypes,
  4138. which can conflict with char __res_mkquery (); below.
  4139. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4140. <limits.h> exists even on freestanding compilers. */
  4141. #ifdef __STDC__
  4142. # include <limits.h>
  4143. #else
  4144. # include <assert.h>
  4145. #endif
  4146. #undef __res_mkquery
  4147. /* Override any gcc2 internal prototype to avoid an error. */
  4148. #ifdef __cplusplus
  4149. extern "C"
  4150. {
  4151. #endif
  4152. /* We use char because int might match the return type of a gcc2
  4153. builtin and then its argument prototype would still apply. */
  4154. char __res_mkquery ();
  4155. /* The GNU C library defines this for functions which it implements
  4156. to always fail with ENOSYS. Some functions are actually named
  4157. something starting with __ and the normal name is an alias. */
  4158. #if defined (__stub___res_mkquery) || defined (__stub_____res_mkquery)
  4159. choke me
  4160. #else
  4161. char (*f) () = __res_mkquery;
  4162. #endif
  4163. #ifdef __cplusplus
  4164. }
  4165. #endif
  4166. int
  4167. main ()
  4168. {
  4169. return f != __res_mkquery;
  4170. ;
  4171. return 0;
  4172. }
  4173. _ACEOF
  4174. rm -f conftest.$ac_objext conftest$ac_exeext
  4175. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4176. (eval $ac_link) 2>conftest.er1
  4177. ac_status=$?
  4178. grep -v '^ *+' conftest.er1 >conftest.err
  4179. rm -f conftest.er1
  4180. cat conftest.err >&5
  4181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4182. (exit $ac_status); } &&
  4183. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4184. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4185. (eval $ac_try) 2>&5
  4186. ac_status=$?
  4187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4188. (exit $ac_status); }; } &&
  4189. { ac_try='test -s conftest$ac_exeext'
  4190. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4191. (eval $ac_try) 2>&5
  4192. ac_status=$?
  4193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4194. (exit $ac_status); }; }; then
  4195. ac_cv_func___res_mkquery=yes
  4196. else
  4197. echo "$as_me: failed program was:" >&5
  4198. sed 's/^/| /' conftest.$ac_ext >&5
  4199. ac_cv_func___res_mkquery=no
  4200. fi
  4201. rm -f conftest.err conftest.$ac_objext \
  4202. conftest$ac_exeext conftest.$ac_ext
  4203. fi
  4204. echo "$as_me:$LINENO: result: $ac_cv_func___res_mkquery" >&5
  4205. echo "${ECHO_T}$ac_cv_func___res_mkquery" >&6
  4206. if test $ac_cv_func___res_mkquery = yes; then
  4207. :
  4208. else
  4209. echo "$as_me:$LINENO: checking for __res_mkquery in -lresolv" >&5
  4210. echo $ECHO_N "checking for __res_mkquery in -lresolv... $ECHO_C" >&6
  4211. if test "${ac_cv_lib_resolv___res_mkquery+set}" = set; then
  4212. echo $ECHO_N "(cached) $ECHO_C" >&6
  4213. else
  4214. ac_check_lib_save_LIBS=$LIBS
  4215. LIBS="-lresolv $LIBS"
  4216. cat >conftest.$ac_ext <<_ACEOF
  4217. /* confdefs.h. */
  4218. _ACEOF
  4219. cat confdefs.h >>conftest.$ac_ext
  4220. cat >>conftest.$ac_ext <<_ACEOF
  4221. /* end confdefs.h. */
  4222. /* Override any gcc2 internal prototype to avoid an error. */
  4223. #ifdef __cplusplus
  4224. extern "C"
  4225. #endif
  4226. /* We use char because int might match the return type of a gcc2
  4227. builtin and then its argument prototype would still apply. */
  4228. char __res_mkquery ();
  4229. int
  4230. main ()
  4231. {
  4232. __res_mkquery ();
  4233. ;
  4234. return 0;
  4235. }
  4236. _ACEOF
  4237. rm -f conftest.$ac_objext conftest$ac_exeext
  4238. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4239. (eval $ac_link) 2>conftest.er1
  4240. ac_status=$?
  4241. grep -v '^ *+' conftest.er1 >conftest.err
  4242. rm -f conftest.er1
  4243. cat conftest.err >&5
  4244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4245. (exit $ac_status); } &&
  4246. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4247. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4248. (eval $ac_try) 2>&5
  4249. ac_status=$?
  4250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4251. (exit $ac_status); }; } &&
  4252. { ac_try='test -s conftest$ac_exeext'
  4253. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4254. (eval $ac_try) 2>&5
  4255. ac_status=$?
  4256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4257. (exit $ac_status); }; }; then
  4258. ac_cv_lib_resolv___res_mkquery=yes
  4259. else
  4260. echo "$as_me: failed program was:" >&5
  4261. sed 's/^/| /' conftest.$ac_ext >&5
  4262. ac_cv_lib_resolv___res_mkquery=no
  4263. fi
  4264. rm -f conftest.err conftest.$ac_objext \
  4265. conftest$ac_exeext conftest.$ac_ext
  4266. LIBS=$ac_check_lib_save_LIBS
  4267. fi
  4268. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_mkquery" >&5
  4269. echo "${ECHO_T}$ac_cv_lib_resolv___res_mkquery" >&6
  4270. if test $ac_cv_lib_resolv___res_mkquery = yes; then
  4271. if test "x${RESLIB}" != "x-lresolv"; then
  4272. RESLIB="${RESLIB} -lresolv"
  4273. fi
  4274. else
  4275. echo "$as_me:$LINENO: checking for __res_mkquery in -lbind" >&5
  4276. echo $ECHO_N "checking for __res_mkquery in -lbind... $ECHO_C" >&6
  4277. if test "${ac_cv_lib_bind___res_mkquery+set}" = set; then
  4278. echo $ECHO_N "(cached) $ECHO_C" >&6
  4279. else
  4280. ac_check_lib_save_LIBS=$LIBS
  4281. LIBS="-lbind $LIBS"
  4282. cat >conftest.$ac_ext <<_ACEOF
  4283. /* confdefs.h. */
  4284. _ACEOF
  4285. cat confdefs.h >>conftest.$ac_ext
  4286. cat >>conftest.$ac_ext <<_ACEOF
  4287. /* end confdefs.h. */
  4288. /* Override any gcc2 internal prototype to avoid an error. */
  4289. #ifdef __cplusplus
  4290. extern "C"
  4291. #endif
  4292. /* We use char because int might match the return type of a gcc2
  4293. builtin and then its argument prototype would still apply. */
  4294. char __res_mkquery ();
  4295. int
  4296. main ()
  4297. {
  4298. __res_mkquery ();
  4299. ;
  4300. return 0;
  4301. }
  4302. _ACEOF
  4303. rm -f conftest.$ac_objext conftest$ac_exeext
  4304. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4305. (eval $ac_link) 2>conftest.er1
  4306. ac_status=$?
  4307. grep -v '^ *+' conftest.er1 >conftest.err
  4308. rm -f conftest.er1
  4309. cat conftest.err >&5
  4310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4311. (exit $ac_status); } &&
  4312. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4313. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4314. (eval $ac_try) 2>&5
  4315. ac_status=$?
  4316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4317. (exit $ac_status); }; } &&
  4318. { ac_try='test -s conftest$ac_exeext'
  4319. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4320. (eval $ac_try) 2>&5
  4321. ac_status=$?
  4322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4323. (exit $ac_status); }; }; then
  4324. ac_cv_lib_bind___res_mkquery=yes
  4325. else
  4326. echo "$as_me: failed program was:" >&5
  4327. sed 's/^/| /' conftest.$ac_ext >&5
  4328. ac_cv_lib_bind___res_mkquery=no
  4329. fi
  4330. rm -f conftest.err conftest.$ac_objext \
  4331. conftest$ac_exeext conftest.$ac_ext
  4332. LIBS=$ac_check_lib_save_LIBS
  4333. fi
  4334. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_mkquery" >&5
  4335. echo "${ECHO_T}$ac_cv_lib_bind___res_mkquery" >&6
  4336. if test $ac_cv_lib_bind___res_mkquery = yes; then
  4337. if test "x${RESLIB}" != "x-lbind"; then
  4338. RESLIB="${RESLIB} -lbind"
  4339. fi
  4340. else
  4341. dns_reslib_avail="false";
  4342. fi
  4343. fi
  4344. fi
  4345. fi
  4346. if test "${dns_reslib_avail}" = false; then
  4347. if test "$ac_cv_cygwin" = "yes"; then
  4348. echo "$as_me:$LINENO: checking for /usr/local/bind/lib/libbind.a" >&5
  4349. echo $ECHO_N "checking for /usr/local/bind/lib/libbind.a... $ECHO_C" >&6
  4350. if test -r /usr/local/bind/lib/libbind.a; then
  4351. echo "$as_me:$LINENO: result: yes" >&5
  4352. echo "${ECHO_T}yes" >&6
  4353. RESLIB="${RESLIB} -L/usr/local/bind/lib -lbind"
  4354. RESINCLUDE="-I/usr/local/bind/include"
  4355. dns_reslib_avail="true"
  4356. else
  4357. echo "$as_me:$LINENO: result: no" >&5
  4358. echo "${ECHO_T}no" >&6
  4359. fi
  4360. fi
  4361. fi
  4362. if test "${dns_reslib_avail}" = false; then
  4363. cat >&2 <<EOF
  4364. configure: warning:
  4365. Your system provides no functional resolver library.
  4366. One is required for buld.
  4367. EOF
  4368. exit 1
  4369. fi
  4370. # Check for IPv6 support
  4371. #EGG_IPV6_SUPPORTED
  4372. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  4373. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  4374. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  4375. if test "${enable_ipv6+set}" = set; then
  4376. enableval="$enable_ipv6"
  4377. ac_cv_dipv6="yes"
  4378. echo "$as_me:$LINENO: result: yes" >&5
  4379. echo "${ECHO_T}yes" >&6
  4380. else
  4381. ac_cv_dipv6="no"
  4382. if test "$egg_cv_ipv6_supported" = "no"; then
  4383. ac_cv_dipv6="no"
  4384. fi
  4385. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  4386. echo "${ECHO_T}$ac_cv_dipv6" >&6
  4387. fi;
  4388. if ! test "$EGG_CYGWIN" = "yes"; then
  4389. if test "$ac_cv_dipv6" = "no"; then
  4390. cat >>confdefs.h <<\_ACEOF
  4391. #define USE_IPV6 1
  4392. _ACEOF
  4393. fi
  4394. fi
  4395. echo "$as_me:$LINENO: checking for socklen_t" >&5
  4396. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  4397. if test "${egg_cv_socklen_t+set}" = set; then
  4398. echo $ECHO_N "(cached) $ECHO_C" >&6
  4399. else
  4400. if test "$cross_compiling" = yes; then
  4401. egg_cv_socklen_t=no
  4402. else
  4403. cat >conftest.$ac_ext <<_ACEOF
  4404. /* confdefs.h. */
  4405. _ACEOF
  4406. cat confdefs.h >>conftest.$ac_ext
  4407. cat >>conftest.$ac_ext <<_ACEOF
  4408. /* end confdefs.h. */
  4409. #include <unistd.h>
  4410. #include <sys/types.h>
  4411. #include <sys/socket.h>
  4412. #include <netinet/in.h>
  4413. #include <arpa/inet.h>
  4414. int main()
  4415. {
  4416. socklen_t test = sizeof(int);
  4417. return 0;
  4418. }
  4419. _ACEOF
  4420. rm -f conftest$ac_exeext
  4421. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4422. (eval $ac_link) 2>&5
  4423. ac_status=$?
  4424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4425. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  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); }; }; then
  4431. egg_cv_socklen_t=yes
  4432. else
  4433. echo "$as_me: program exited with status $ac_status" >&5
  4434. echo "$as_me: failed program was:" >&5
  4435. sed 's/^/| /' conftest.$ac_ext >&5
  4436. ( exit $ac_status )
  4437. egg_cv_socklen_t=no
  4438. fi
  4439. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4440. fi
  4441. fi
  4442. if test "$egg_cv_socklen_t" = "yes"; then
  4443. cat >>confdefs.h <<\_ACEOF
  4444. #define HAVE_SOCKLEN_T 1
  4445. _ACEOF
  4446. echo "$as_me:$LINENO: result: yes" >&5
  4447. echo "${ECHO_T}yes" >&6
  4448. else
  4449. echo "$as_me:$LINENO: result: no" >&5
  4450. echo "${ECHO_T}no" >&6
  4451. fi
  4452. #checkpoint
  4453. cat >confcache <<\_ACEOF
  4454. # This file is a shell script that caches the results of configure
  4455. # tests run on this system so they can be shared between configure
  4456. # scripts and configure runs, see configure's option --config-cache.
  4457. # It is not useful on other systems. If it contains results you don't
  4458. # want to keep, you may remove or edit it.
  4459. #
  4460. # config.status only pays attention to the cache file if you give it
  4461. # the --recheck option to rerun configure.
  4462. #
  4463. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4464. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4465. # following values.
  4466. _ACEOF
  4467. # The following way of writing the cache mishandles newlines in values,
  4468. # but we know of no workaround that is simple, portable, and efficient.
  4469. # So, don't put newlines in cache variables' values.
  4470. # Ultrix sh set writes to stderr and can't be redirected directly,
  4471. # and sets the high bit in the cache file unless we assign to the vars.
  4472. {
  4473. (set) 2>&1 |
  4474. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4475. *ac_space=\ *)
  4476. # `set' does not quote correctly, so add quotes (double-quote
  4477. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4478. sed -n \
  4479. "s/'/'\\\\''/g;
  4480. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4481. ;;
  4482. *)
  4483. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4484. sed -n \
  4485. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4486. ;;
  4487. esac;
  4488. } |
  4489. sed '
  4490. t clear
  4491. : clear
  4492. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4493. t end
  4494. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4495. : end' >>confcache
  4496. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4497. if test -w $cache_file; then
  4498. test "x$cache_file" != "x/dev/null"
  4499. cat confcache >$cache_file
  4500. else
  4501. echo "not updating unwritable cache $cache_file"
  4502. fi
  4503. fi
  4504. rm -f confcache
  4505. # Checks for system libraries
  4506. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4507. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  4508. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4509. echo $ECHO_N "(cached) $ECHO_C" >&6
  4510. else
  4511. ac_check_lib_save_LIBS=$LIBS
  4512. LIBS="-lsocket $LIBS"
  4513. cat >conftest.$ac_ext <<_ACEOF
  4514. /* confdefs.h. */
  4515. _ACEOF
  4516. cat confdefs.h >>conftest.$ac_ext
  4517. cat >>conftest.$ac_ext <<_ACEOF
  4518. /* end confdefs.h. */
  4519. /* Override any gcc2 internal prototype to avoid an error. */
  4520. #ifdef __cplusplus
  4521. extern "C"
  4522. #endif
  4523. /* We use char because int might match the return type of a gcc2
  4524. builtin and then its argument prototype would still apply. */
  4525. char socket ();
  4526. int
  4527. main ()
  4528. {
  4529. socket ();
  4530. ;
  4531. return 0;
  4532. }
  4533. _ACEOF
  4534. rm -f conftest.$ac_objext conftest$ac_exeext
  4535. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4536. (eval $ac_link) 2>conftest.er1
  4537. ac_status=$?
  4538. grep -v '^ *+' conftest.er1 >conftest.err
  4539. rm -f conftest.er1
  4540. cat conftest.err >&5
  4541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4542. (exit $ac_status); } &&
  4543. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4544. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4545. (eval $ac_try) 2>&5
  4546. ac_status=$?
  4547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4548. (exit $ac_status); }; } &&
  4549. { ac_try='test -s conftest$ac_exeext'
  4550. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4551. (eval $ac_try) 2>&5
  4552. ac_status=$?
  4553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4554. (exit $ac_status); }; }; then
  4555. ac_cv_lib_socket_socket=yes
  4556. else
  4557. echo "$as_me: failed program was:" >&5
  4558. sed 's/^/| /' conftest.$ac_ext >&5
  4559. ac_cv_lib_socket_socket=no
  4560. fi
  4561. rm -f conftest.err conftest.$ac_objext \
  4562. conftest$ac_exeext conftest.$ac_ext
  4563. LIBS=$ac_check_lib_save_LIBS
  4564. fi
  4565. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4566. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  4567. if test $ac_cv_lib_socket_socket = yes; then
  4568. cat >>confdefs.h <<_ACEOF
  4569. #define HAVE_LIBSOCKET 1
  4570. _ACEOF
  4571. LIBS="-lsocket $LIBS"
  4572. fi
  4573. # AC_CHECK_LIB(nsl, connect)
  4574. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  4575. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  4576. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  4577. echo $ECHO_N "(cached) $ECHO_C" >&6
  4578. else
  4579. ac_check_lib_save_LIBS=$LIBS
  4580. LIBS="-ldns $LIBS"
  4581. cat >conftest.$ac_ext <<_ACEOF
  4582. /* confdefs.h. */
  4583. _ACEOF
  4584. cat confdefs.h >>conftest.$ac_ext
  4585. cat >>conftest.$ac_ext <<_ACEOF
  4586. /* end confdefs.h. */
  4587. /* Override any gcc2 internal prototype to avoid an error. */
  4588. #ifdef __cplusplus
  4589. extern "C"
  4590. #endif
  4591. /* We use char because int might match the return type of a gcc2
  4592. builtin and then its argument prototype would still apply. */
  4593. char gethostbyname ();
  4594. int
  4595. main ()
  4596. {
  4597. gethostbyname ();
  4598. ;
  4599. return 0;
  4600. }
  4601. _ACEOF
  4602. rm -f conftest.$ac_objext conftest$ac_exeext
  4603. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4604. (eval $ac_link) 2>conftest.er1
  4605. ac_status=$?
  4606. grep -v '^ *+' conftest.er1 >conftest.err
  4607. rm -f conftest.er1
  4608. cat conftest.err >&5
  4609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4610. (exit $ac_status); } &&
  4611. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4612. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4613. (eval $ac_try) 2>&5
  4614. ac_status=$?
  4615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4616. (exit $ac_status); }; } &&
  4617. { ac_try='test -s conftest$ac_exeext'
  4618. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4619. (eval $ac_try) 2>&5
  4620. ac_status=$?
  4621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4622. (exit $ac_status); }; }; then
  4623. ac_cv_lib_dns_gethostbyname=yes
  4624. else
  4625. echo "$as_me: failed program was:" >&5
  4626. sed 's/^/| /' conftest.$ac_ext >&5
  4627. ac_cv_lib_dns_gethostbyname=no
  4628. fi
  4629. rm -f conftest.err conftest.$ac_objext \
  4630. conftest$ac_exeext conftest.$ac_ext
  4631. LIBS=$ac_check_lib_save_LIBS
  4632. fi
  4633. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  4634. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  4635. if test $ac_cv_lib_dns_gethostbyname = yes; then
  4636. cat >>confdefs.h <<_ACEOF
  4637. #define HAVE_LIBDNS 1
  4638. _ACEOF
  4639. LIBS="-ldns $LIBS"
  4640. fi
  4641. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4642. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
  4643. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lcrypto", SSL="", -lcrypto)
  4644. # This is needed for Tcl libraries compiled with thread support
  4645. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4646. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4647. # ac_cv_lib_pthread="-lpthread"], [dnl
  4648. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4649. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4650. # ac_cv_lib_pthread="-lpthread"], [dnl
  4651. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4652. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4653. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4654. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4655. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4656. # ac_cv_lib_pthread=""],
  4657. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4658. # Checks for header files
  4659. ac_header_dirent=no
  4660. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4661. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4662. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4663. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4664. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4665. echo $ECHO_N "(cached) $ECHO_C" >&6
  4666. else
  4667. cat >conftest.$ac_ext <<_ACEOF
  4668. /* confdefs.h. */
  4669. _ACEOF
  4670. cat confdefs.h >>conftest.$ac_ext
  4671. cat >>conftest.$ac_ext <<_ACEOF
  4672. /* end confdefs.h. */
  4673. #include <sys/types.h>
  4674. #include <$ac_hdr>
  4675. int
  4676. main ()
  4677. {
  4678. if ((DIR *) 0)
  4679. return 0;
  4680. ;
  4681. return 0;
  4682. }
  4683. _ACEOF
  4684. rm -f conftest.$ac_objext
  4685. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4686. (eval $ac_compile) 2>conftest.er1
  4687. ac_status=$?
  4688. grep -v '^ *+' conftest.er1 >conftest.err
  4689. rm -f conftest.er1
  4690. cat conftest.err >&5
  4691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4692. (exit $ac_status); } &&
  4693. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4694. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4695. (eval $ac_try) 2>&5
  4696. ac_status=$?
  4697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4698. (exit $ac_status); }; } &&
  4699. { ac_try='test -s conftest.$ac_objext'
  4700. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4701. (eval $ac_try) 2>&5
  4702. ac_status=$?
  4703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4704. (exit $ac_status); }; }; then
  4705. eval "$as_ac_Header=yes"
  4706. else
  4707. echo "$as_me: failed program was:" >&5
  4708. sed 's/^/| /' conftest.$ac_ext >&5
  4709. eval "$as_ac_Header=no"
  4710. fi
  4711. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4712. fi
  4713. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4714. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4715. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4716. cat >>confdefs.h <<_ACEOF
  4717. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4718. _ACEOF
  4719. ac_header_dirent=$ac_hdr; break
  4720. fi
  4721. done
  4722. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4723. if test $ac_header_dirent = dirent.h; then
  4724. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4725. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4726. if test "${ac_cv_search_opendir+set}" = set; then
  4727. echo $ECHO_N "(cached) $ECHO_C" >&6
  4728. else
  4729. ac_func_search_save_LIBS=$LIBS
  4730. ac_cv_search_opendir=no
  4731. cat >conftest.$ac_ext <<_ACEOF
  4732. /* confdefs.h. */
  4733. _ACEOF
  4734. cat confdefs.h >>conftest.$ac_ext
  4735. cat >>conftest.$ac_ext <<_ACEOF
  4736. /* end confdefs.h. */
  4737. /* Override any gcc2 internal prototype to avoid an error. */
  4738. #ifdef __cplusplus
  4739. extern "C"
  4740. #endif
  4741. /* We use char because int might match the return type of a gcc2
  4742. builtin and then its argument prototype would still apply. */
  4743. char opendir ();
  4744. int
  4745. main ()
  4746. {
  4747. opendir ();
  4748. ;
  4749. return 0;
  4750. }
  4751. _ACEOF
  4752. rm -f conftest.$ac_objext conftest$ac_exeext
  4753. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4754. (eval $ac_link) 2>conftest.er1
  4755. ac_status=$?
  4756. grep -v '^ *+' conftest.er1 >conftest.err
  4757. rm -f conftest.er1
  4758. cat conftest.err >&5
  4759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4760. (exit $ac_status); } &&
  4761. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4762. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4763. (eval $ac_try) 2>&5
  4764. ac_status=$?
  4765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4766. (exit $ac_status); }; } &&
  4767. { ac_try='test -s conftest$ac_exeext'
  4768. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4769. (eval $ac_try) 2>&5
  4770. ac_status=$?
  4771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4772. (exit $ac_status); }; }; then
  4773. ac_cv_search_opendir="none required"
  4774. else
  4775. echo "$as_me: failed program was:" >&5
  4776. sed 's/^/| /' conftest.$ac_ext >&5
  4777. fi
  4778. rm -f conftest.err conftest.$ac_objext \
  4779. conftest$ac_exeext conftest.$ac_ext
  4780. if test "$ac_cv_search_opendir" = no; then
  4781. for ac_lib in dir; do
  4782. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4783. cat >conftest.$ac_ext <<_ACEOF
  4784. /* confdefs.h. */
  4785. _ACEOF
  4786. cat confdefs.h >>conftest.$ac_ext
  4787. cat >>conftest.$ac_ext <<_ACEOF
  4788. /* end confdefs.h. */
  4789. /* Override any gcc2 internal prototype to avoid an error. */
  4790. #ifdef __cplusplus
  4791. extern "C"
  4792. #endif
  4793. /* We use char because int might match the return type of a gcc2
  4794. builtin and then its argument prototype would still apply. */
  4795. char opendir ();
  4796. int
  4797. main ()
  4798. {
  4799. opendir ();
  4800. ;
  4801. return 0;
  4802. }
  4803. _ACEOF
  4804. rm -f conftest.$ac_objext conftest$ac_exeext
  4805. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4806. (eval $ac_link) 2>conftest.er1
  4807. ac_status=$?
  4808. grep -v '^ *+' conftest.er1 >conftest.err
  4809. rm -f conftest.er1
  4810. cat conftest.err >&5
  4811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4812. (exit $ac_status); } &&
  4813. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4814. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4815. (eval $ac_try) 2>&5
  4816. ac_status=$?
  4817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4818. (exit $ac_status); }; } &&
  4819. { ac_try='test -s conftest$ac_exeext'
  4820. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4821. (eval $ac_try) 2>&5
  4822. ac_status=$?
  4823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4824. (exit $ac_status); }; }; then
  4825. ac_cv_search_opendir="-l$ac_lib"
  4826. break
  4827. else
  4828. echo "$as_me: failed program was:" >&5
  4829. sed 's/^/| /' conftest.$ac_ext >&5
  4830. fi
  4831. rm -f conftest.err conftest.$ac_objext \
  4832. conftest$ac_exeext conftest.$ac_ext
  4833. done
  4834. fi
  4835. LIBS=$ac_func_search_save_LIBS
  4836. fi
  4837. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4838. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4839. if test "$ac_cv_search_opendir" != no; then
  4840. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4841. fi
  4842. else
  4843. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4844. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4845. if test "${ac_cv_search_opendir+set}" = set; then
  4846. echo $ECHO_N "(cached) $ECHO_C" >&6
  4847. else
  4848. ac_func_search_save_LIBS=$LIBS
  4849. ac_cv_search_opendir=no
  4850. cat >conftest.$ac_ext <<_ACEOF
  4851. /* confdefs.h. */
  4852. _ACEOF
  4853. cat confdefs.h >>conftest.$ac_ext
  4854. cat >>conftest.$ac_ext <<_ACEOF
  4855. /* end confdefs.h. */
  4856. /* Override any gcc2 internal prototype to avoid an error. */
  4857. #ifdef __cplusplus
  4858. extern "C"
  4859. #endif
  4860. /* We use char because int might match the return type of a gcc2
  4861. builtin and then its argument prototype would still apply. */
  4862. char opendir ();
  4863. int
  4864. main ()
  4865. {
  4866. opendir ();
  4867. ;
  4868. return 0;
  4869. }
  4870. _ACEOF
  4871. rm -f conftest.$ac_objext conftest$ac_exeext
  4872. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4873. (eval $ac_link) 2>conftest.er1
  4874. ac_status=$?
  4875. grep -v '^ *+' conftest.er1 >conftest.err
  4876. rm -f conftest.er1
  4877. cat conftest.err >&5
  4878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4879. (exit $ac_status); } &&
  4880. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4881. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4882. (eval $ac_try) 2>&5
  4883. ac_status=$?
  4884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4885. (exit $ac_status); }; } &&
  4886. { ac_try='test -s conftest$ac_exeext'
  4887. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4888. (eval $ac_try) 2>&5
  4889. ac_status=$?
  4890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4891. (exit $ac_status); }; }; then
  4892. ac_cv_search_opendir="none required"
  4893. else
  4894. echo "$as_me: failed program was:" >&5
  4895. sed 's/^/| /' conftest.$ac_ext >&5
  4896. fi
  4897. rm -f conftest.err conftest.$ac_objext \
  4898. conftest$ac_exeext conftest.$ac_ext
  4899. if test "$ac_cv_search_opendir" = no; then
  4900. for ac_lib in x; do
  4901. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4902. cat >conftest.$ac_ext <<_ACEOF
  4903. /* confdefs.h. */
  4904. _ACEOF
  4905. cat confdefs.h >>conftest.$ac_ext
  4906. cat >>conftest.$ac_ext <<_ACEOF
  4907. /* end confdefs.h. */
  4908. /* Override any gcc2 internal prototype to avoid an error. */
  4909. #ifdef __cplusplus
  4910. extern "C"
  4911. #endif
  4912. /* We use char because int might match the return type of a gcc2
  4913. builtin and then its argument prototype would still apply. */
  4914. char opendir ();
  4915. int
  4916. main ()
  4917. {
  4918. opendir ();
  4919. ;
  4920. return 0;
  4921. }
  4922. _ACEOF
  4923. rm -f conftest.$ac_objext conftest$ac_exeext
  4924. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4925. (eval $ac_link) 2>conftest.er1
  4926. ac_status=$?
  4927. grep -v '^ *+' conftest.er1 >conftest.err
  4928. rm -f conftest.er1
  4929. cat conftest.err >&5
  4930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4931. (exit $ac_status); } &&
  4932. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4933. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4934. (eval $ac_try) 2>&5
  4935. ac_status=$?
  4936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4937. (exit $ac_status); }; } &&
  4938. { ac_try='test -s conftest$ac_exeext'
  4939. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4940. (eval $ac_try) 2>&5
  4941. ac_status=$?
  4942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4943. (exit $ac_status); }; }; then
  4944. ac_cv_search_opendir="-l$ac_lib"
  4945. break
  4946. else
  4947. echo "$as_me: failed program was:" >&5
  4948. sed 's/^/| /' conftest.$ac_ext >&5
  4949. fi
  4950. rm -f conftest.err conftest.$ac_objext \
  4951. conftest$ac_exeext conftest.$ac_ext
  4952. done
  4953. fi
  4954. LIBS=$ac_func_search_save_LIBS
  4955. fi
  4956. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4957. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4958. if test "$ac_cv_search_opendir" != no; then
  4959. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4960. fi
  4961. fi
  4962. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4963. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  4964. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4965. echo $ECHO_N "(cached) $ECHO_C" >&6
  4966. else
  4967. cat >conftest.$ac_ext <<_ACEOF
  4968. /* confdefs.h. */
  4969. _ACEOF
  4970. cat confdefs.h >>conftest.$ac_ext
  4971. cat >>conftest.$ac_ext <<_ACEOF
  4972. /* end confdefs.h. */
  4973. #include <sys/types.h>
  4974. #include <sys/wait.h>
  4975. #ifndef WEXITSTATUS
  4976. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  4977. #endif
  4978. #ifndef WIFEXITED
  4979. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4980. #endif
  4981. int
  4982. main ()
  4983. {
  4984. int s;
  4985. wait (&s);
  4986. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4987. ;
  4988. return 0;
  4989. }
  4990. _ACEOF
  4991. rm -f conftest.$ac_objext
  4992. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4993. (eval $ac_compile) 2>conftest.er1
  4994. ac_status=$?
  4995. grep -v '^ *+' conftest.er1 >conftest.err
  4996. rm -f conftest.er1
  4997. cat conftest.err >&5
  4998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4999. (exit $ac_status); } &&
  5000. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5001. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5002. (eval $ac_try) 2>&5
  5003. ac_status=$?
  5004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5005. (exit $ac_status); }; } &&
  5006. { ac_try='test -s conftest.$ac_objext'
  5007. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5008. (eval $ac_try) 2>&5
  5009. ac_status=$?
  5010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5011. (exit $ac_status); }; }; then
  5012. ac_cv_header_sys_wait_h=yes
  5013. else
  5014. echo "$as_me: failed program was:" >&5
  5015. sed 's/^/| /' conftest.$ac_ext >&5
  5016. ac_cv_header_sys_wait_h=no
  5017. fi
  5018. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5019. fi
  5020. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  5021. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  5022. if test $ac_cv_header_sys_wait_h = yes; then
  5023. cat >>confdefs.h <<\_ACEOF
  5024. #define HAVE_SYS_WAIT_H 1
  5025. _ACEOF
  5026. fi
  5027. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  5028. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  5029. if test "${ac_cv_header_time+set}" = set; then
  5030. echo $ECHO_N "(cached) $ECHO_C" >&6
  5031. else
  5032. cat >conftest.$ac_ext <<_ACEOF
  5033. /* confdefs.h. */
  5034. _ACEOF
  5035. cat confdefs.h >>conftest.$ac_ext
  5036. cat >>conftest.$ac_ext <<_ACEOF
  5037. /* end confdefs.h. */
  5038. #include <sys/types.h>
  5039. #include <sys/time.h>
  5040. #include <time.h>
  5041. int
  5042. main ()
  5043. {
  5044. if ((struct tm *) 0)
  5045. return 0;
  5046. ;
  5047. return 0;
  5048. }
  5049. _ACEOF
  5050. rm -f conftest.$ac_objext
  5051. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5052. (eval $ac_compile) 2>conftest.er1
  5053. ac_status=$?
  5054. grep -v '^ *+' conftest.er1 >conftest.err
  5055. rm -f conftest.er1
  5056. cat conftest.err >&5
  5057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5058. (exit $ac_status); } &&
  5059. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5060. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5061. (eval $ac_try) 2>&5
  5062. ac_status=$?
  5063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5064. (exit $ac_status); }; } &&
  5065. { ac_try='test -s conftest.$ac_objext'
  5066. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5067. (eval $ac_try) 2>&5
  5068. ac_status=$?
  5069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5070. (exit $ac_status); }; }; then
  5071. ac_cv_header_time=yes
  5072. else
  5073. echo "$as_me: failed program was:" >&5
  5074. sed 's/^/| /' conftest.$ac_ext >&5
  5075. ac_cv_header_time=no
  5076. fi
  5077. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5078. fi
  5079. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  5080. echo "${ECHO_T}$ac_cv_header_time" >&6
  5081. if test $ac_cv_header_time = yes; then
  5082. cat >>confdefs.h <<\_ACEOF
  5083. #define TIME_WITH_SYS_TIME 1
  5084. _ACEOF
  5085. fi
  5086. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  5087. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  5088. if test "${ac_cv_header_stat_broken+set}" = set; then
  5089. echo $ECHO_N "(cached) $ECHO_C" >&6
  5090. else
  5091. cat >conftest.$ac_ext <<_ACEOF
  5092. /* confdefs.h. */
  5093. _ACEOF
  5094. cat confdefs.h >>conftest.$ac_ext
  5095. cat >>conftest.$ac_ext <<_ACEOF
  5096. /* end confdefs.h. */
  5097. #include <sys/types.h>
  5098. #include <sys/stat.h>
  5099. #if defined(S_ISBLK) && defined(S_IFDIR)
  5100. # if S_ISBLK (S_IFDIR)
  5101. You lose.
  5102. # endif
  5103. #endif
  5104. #if defined(S_ISBLK) && defined(S_IFCHR)
  5105. # if S_ISBLK (S_IFCHR)
  5106. You lose.
  5107. # endif
  5108. #endif
  5109. #if defined(S_ISLNK) && defined(S_IFREG)
  5110. # if S_ISLNK (S_IFREG)
  5111. You lose.
  5112. # endif
  5113. #endif
  5114. #if defined(S_ISSOCK) && defined(S_IFREG)
  5115. # if S_ISSOCK (S_IFREG)
  5116. You lose.
  5117. # endif
  5118. #endif
  5119. _ACEOF
  5120. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5121. $EGREP "You lose" >/dev/null 2>&1; then
  5122. ac_cv_header_stat_broken=yes
  5123. else
  5124. ac_cv_header_stat_broken=no
  5125. fi
  5126. rm -f conftest*
  5127. fi
  5128. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  5129. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  5130. if test $ac_cv_header_stat_broken = yes; then
  5131. cat >>confdefs.h <<\_ACEOF
  5132. #define STAT_MACROS_BROKEN 1
  5133. _ACEOF
  5134. fi
  5135. #checkpoint
  5136. cat >confcache <<\_ACEOF
  5137. # This file is a shell script that caches the results of configure
  5138. # tests run on this system so they can be shared between configure
  5139. # scripts and configure runs, see configure's option --config-cache.
  5140. # It is not useful on other systems. If it contains results you don't
  5141. # want to keep, you may remove or edit it.
  5142. #
  5143. # config.status only pays attention to the cache file if you give it
  5144. # the --recheck option to rerun configure.
  5145. #
  5146. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5147. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5148. # following values.
  5149. _ACEOF
  5150. # The following way of writing the cache mishandles newlines in values,
  5151. # but we know of no workaround that is simple, portable, and efficient.
  5152. # So, don't put newlines in cache variables' values.
  5153. # Ultrix sh set writes to stderr and can't be redirected directly,
  5154. # and sets the high bit in the cache file unless we assign to the vars.
  5155. {
  5156. (set) 2>&1 |
  5157. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5158. *ac_space=\ *)
  5159. # `set' does not quote correctly, so add quotes (double-quote
  5160. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5161. sed -n \
  5162. "s/'/'\\\\''/g;
  5163. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5164. ;;
  5165. *)
  5166. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5167. sed -n \
  5168. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5169. ;;
  5170. esac;
  5171. } |
  5172. sed '
  5173. t clear
  5174. : clear
  5175. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5176. t end
  5177. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5178. : end' >>confcache
  5179. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5180. if test -w $cache_file; then
  5181. test "x$cache_file" != "x/dev/null"
  5182. cat confcache >$cache_file
  5183. else
  5184. echo "not updating unwritable cache $cache_file"
  5185. fi
  5186. fi
  5187. rm -f confcache
  5188. for ac_header in arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5189. do
  5190. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5191. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5192. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5193. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5194. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5195. echo $ECHO_N "(cached) $ECHO_C" >&6
  5196. fi
  5197. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5198. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5199. else
  5200. # Is the header compilable?
  5201. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5202. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5203. cat >conftest.$ac_ext <<_ACEOF
  5204. /* confdefs.h. */
  5205. _ACEOF
  5206. cat confdefs.h >>conftest.$ac_ext
  5207. cat >>conftest.$ac_ext <<_ACEOF
  5208. /* end confdefs.h. */
  5209. $ac_includes_default
  5210. #include <$ac_header>
  5211. _ACEOF
  5212. rm -f conftest.$ac_objext
  5213. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5214. (eval $ac_compile) 2>conftest.er1
  5215. ac_status=$?
  5216. grep -v '^ *+' conftest.er1 >conftest.err
  5217. rm -f conftest.er1
  5218. cat conftest.err >&5
  5219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5220. (exit $ac_status); } &&
  5221. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5222. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5223. (eval $ac_try) 2>&5
  5224. ac_status=$?
  5225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5226. (exit $ac_status); }; } &&
  5227. { ac_try='test -s conftest.$ac_objext'
  5228. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5229. (eval $ac_try) 2>&5
  5230. ac_status=$?
  5231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5232. (exit $ac_status); }; }; then
  5233. ac_header_compiler=yes
  5234. else
  5235. echo "$as_me: failed program was:" >&5
  5236. sed 's/^/| /' conftest.$ac_ext >&5
  5237. ac_header_compiler=no
  5238. fi
  5239. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5240. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5241. echo "${ECHO_T}$ac_header_compiler" >&6
  5242. # Is the header present?
  5243. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5244. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5245. cat >conftest.$ac_ext <<_ACEOF
  5246. /* confdefs.h. */
  5247. _ACEOF
  5248. cat confdefs.h >>conftest.$ac_ext
  5249. cat >>conftest.$ac_ext <<_ACEOF
  5250. /* end confdefs.h. */
  5251. #include <$ac_header>
  5252. _ACEOF
  5253. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5254. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5255. ac_status=$?
  5256. grep -v '^ *+' conftest.er1 >conftest.err
  5257. rm -f conftest.er1
  5258. cat conftest.err >&5
  5259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5260. (exit $ac_status); } >/dev/null; then
  5261. if test -s conftest.err; then
  5262. ac_cpp_err=$ac_c_preproc_warn_flag
  5263. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5264. else
  5265. ac_cpp_err=
  5266. fi
  5267. else
  5268. ac_cpp_err=yes
  5269. fi
  5270. if test -z "$ac_cpp_err"; then
  5271. ac_header_preproc=yes
  5272. else
  5273. echo "$as_me: failed program was:" >&5
  5274. sed 's/^/| /' conftest.$ac_ext >&5
  5275. ac_header_preproc=no
  5276. fi
  5277. rm -f conftest.err conftest.$ac_ext
  5278. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5279. echo "${ECHO_T}$ac_header_preproc" >&6
  5280. # So? What about this header?
  5281. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5282. yes:no: )
  5283. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5284. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5285. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5286. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5287. ac_header_preproc=yes
  5288. ;;
  5289. no:yes:* )
  5290. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5291. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5292. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5293. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5294. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5295. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5296. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5297. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5298. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5299. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5300. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5301. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5302. (
  5303. cat <<\_ASBOX
  5304. ## ------------------------------------------ ##
  5305. ## Report this to the AC_PACKAGE_NAME lists. ##
  5306. ## ------------------------------------------ ##
  5307. _ASBOX
  5308. ) |
  5309. sed "s/^/$as_me: WARNING: /" >&2
  5310. ;;
  5311. esac
  5312. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5313. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5314. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5315. echo $ECHO_N "(cached) $ECHO_C" >&6
  5316. else
  5317. eval "$as_ac_Header=\$ac_header_preproc"
  5318. fi
  5319. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5320. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5321. fi
  5322. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5323. cat >>confdefs.h <<_ACEOF
  5324. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5325. _ACEOF
  5326. fi
  5327. done
  5328. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5329. do
  5330. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5331. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5332. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5333. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5334. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5335. echo $ECHO_N "(cached) $ECHO_C" >&6
  5336. fi
  5337. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5338. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5339. else
  5340. # Is the header compilable?
  5341. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5342. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5343. cat >conftest.$ac_ext <<_ACEOF
  5344. /* confdefs.h. */
  5345. _ACEOF
  5346. cat confdefs.h >>conftest.$ac_ext
  5347. cat >>conftest.$ac_ext <<_ACEOF
  5348. /* end confdefs.h. */
  5349. $ac_includes_default
  5350. #include <$ac_header>
  5351. _ACEOF
  5352. rm -f conftest.$ac_objext
  5353. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5354. (eval $ac_compile) 2>conftest.er1
  5355. ac_status=$?
  5356. grep -v '^ *+' conftest.er1 >conftest.err
  5357. rm -f conftest.er1
  5358. cat conftest.err >&5
  5359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5360. (exit $ac_status); } &&
  5361. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5362. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5363. (eval $ac_try) 2>&5
  5364. ac_status=$?
  5365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5366. (exit $ac_status); }; } &&
  5367. { ac_try='test -s conftest.$ac_objext'
  5368. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5369. (eval $ac_try) 2>&5
  5370. ac_status=$?
  5371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5372. (exit $ac_status); }; }; then
  5373. ac_header_compiler=yes
  5374. else
  5375. echo "$as_me: failed program was:" >&5
  5376. sed 's/^/| /' conftest.$ac_ext >&5
  5377. ac_header_compiler=no
  5378. fi
  5379. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5380. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5381. echo "${ECHO_T}$ac_header_compiler" >&6
  5382. # Is the header present?
  5383. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5384. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5385. cat >conftest.$ac_ext <<_ACEOF
  5386. /* confdefs.h. */
  5387. _ACEOF
  5388. cat confdefs.h >>conftest.$ac_ext
  5389. cat >>conftest.$ac_ext <<_ACEOF
  5390. /* end confdefs.h. */
  5391. #include <$ac_header>
  5392. _ACEOF
  5393. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5394. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5395. ac_status=$?
  5396. grep -v '^ *+' conftest.er1 >conftest.err
  5397. rm -f conftest.er1
  5398. cat conftest.err >&5
  5399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5400. (exit $ac_status); } >/dev/null; then
  5401. if test -s conftest.err; then
  5402. ac_cpp_err=$ac_c_preproc_warn_flag
  5403. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5404. else
  5405. ac_cpp_err=
  5406. fi
  5407. else
  5408. ac_cpp_err=yes
  5409. fi
  5410. if test -z "$ac_cpp_err"; then
  5411. ac_header_preproc=yes
  5412. else
  5413. echo "$as_me: failed program was:" >&5
  5414. sed 's/^/| /' conftest.$ac_ext >&5
  5415. ac_header_preproc=no
  5416. fi
  5417. rm -f conftest.err conftest.$ac_ext
  5418. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5419. echo "${ECHO_T}$ac_header_preproc" >&6
  5420. # So? What about this header?
  5421. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5422. yes:no: )
  5423. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5424. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5425. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5426. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5427. ac_header_preproc=yes
  5428. ;;
  5429. no:yes:* )
  5430. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5431. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5432. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5433. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5434. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5435. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5436. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5437. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5438. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5439. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5440. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5441. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5442. (
  5443. cat <<\_ASBOX
  5444. ## ------------------------------------------ ##
  5445. ## Report this to the AC_PACKAGE_NAME lists. ##
  5446. ## ------------------------------------------ ##
  5447. _ASBOX
  5448. ) |
  5449. sed "s/^/$as_me: WARNING: /" >&2
  5450. ;;
  5451. esac
  5452. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5453. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5454. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5455. echo $ECHO_N "(cached) $ECHO_C" >&6
  5456. else
  5457. eval "$as_ac_Header=\$ac_header_preproc"
  5458. fi
  5459. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5460. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5461. fi
  5462. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5463. cat >>confdefs.h <<_ACEOF
  5464. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5465. _ACEOF
  5466. fi
  5467. done
  5468. #checkpoint
  5469. cat >confcache <<\_ACEOF
  5470. # This file is a shell script that caches the results of configure
  5471. # tests run on this system so they can be shared between configure
  5472. # scripts and configure runs, see configure's option --config-cache.
  5473. # It is not useful on other systems. If it contains results you don't
  5474. # want to keep, you may remove or edit it.
  5475. #
  5476. # config.status only pays attention to the cache file if you give it
  5477. # the --recheck option to rerun configure.
  5478. #
  5479. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5480. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5481. # following values.
  5482. _ACEOF
  5483. # The following way of writing the cache mishandles newlines in values,
  5484. # but we know of no workaround that is simple, portable, and efficient.
  5485. # So, don't put newlines in cache variables' values.
  5486. # Ultrix sh set writes to stderr and can't be redirected directly,
  5487. # and sets the high bit in the cache file unless we assign to the vars.
  5488. {
  5489. (set) 2>&1 |
  5490. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5491. *ac_space=\ *)
  5492. # `set' does not quote correctly, so add quotes (double-quote
  5493. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5494. sed -n \
  5495. "s/'/'\\\\''/g;
  5496. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5497. ;;
  5498. *)
  5499. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5500. sed -n \
  5501. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5502. ;;
  5503. esac;
  5504. } |
  5505. sed '
  5506. t clear
  5507. : clear
  5508. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5509. t end
  5510. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5511. : end' >>confcache
  5512. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5513. if test -w $cache_file; then
  5514. test "x$cache_file" != "x/dev/null"
  5515. cat confcache >$cache_file
  5516. else
  5517. echo "not updating unwritable cache $cache_file"
  5518. fi
  5519. fi
  5520. rm -f confcache
  5521. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5522. #AC_CHECK_HEADERS(zlib.h)
  5523. #EGG_CHECK_ZLIB
  5524. #EGG_CHECK_SSL
  5525. #AC_SUBST(SSL)dnl
  5526. # Checks for typedefs, structures, and compiler characteristics
  5527. echo "$as_me:$LINENO: checking for pid_t" >&5
  5528. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  5529. if test "${ac_cv_type_pid_t+set}" = set; then
  5530. echo $ECHO_N "(cached) $ECHO_C" >&6
  5531. else
  5532. cat >conftest.$ac_ext <<_ACEOF
  5533. /* confdefs.h. */
  5534. _ACEOF
  5535. cat confdefs.h >>conftest.$ac_ext
  5536. cat >>conftest.$ac_ext <<_ACEOF
  5537. /* end confdefs.h. */
  5538. $ac_includes_default
  5539. int
  5540. main ()
  5541. {
  5542. if ((pid_t *) 0)
  5543. return 0;
  5544. if (sizeof (pid_t))
  5545. return 0;
  5546. ;
  5547. return 0;
  5548. }
  5549. _ACEOF
  5550. rm -f conftest.$ac_objext
  5551. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5552. (eval $ac_compile) 2>conftest.er1
  5553. ac_status=$?
  5554. grep -v '^ *+' conftest.er1 >conftest.err
  5555. rm -f conftest.er1
  5556. cat conftest.err >&5
  5557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5558. (exit $ac_status); } &&
  5559. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5560. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5561. (eval $ac_try) 2>&5
  5562. ac_status=$?
  5563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5564. (exit $ac_status); }; } &&
  5565. { ac_try='test -s conftest.$ac_objext'
  5566. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5567. (eval $ac_try) 2>&5
  5568. ac_status=$?
  5569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5570. (exit $ac_status); }; }; then
  5571. ac_cv_type_pid_t=yes
  5572. else
  5573. echo "$as_me: failed program was:" >&5
  5574. sed 's/^/| /' conftest.$ac_ext >&5
  5575. ac_cv_type_pid_t=no
  5576. fi
  5577. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5578. fi
  5579. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5580. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  5581. if test $ac_cv_type_pid_t = yes; then
  5582. :
  5583. else
  5584. cat >>confdefs.h <<_ACEOF
  5585. #define pid_t int
  5586. _ACEOF
  5587. fi
  5588. echo "$as_me:$LINENO: checking for size_t" >&5
  5589. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5590. if test "${ac_cv_type_size_t+set}" = set; then
  5591. echo $ECHO_N "(cached) $ECHO_C" >&6
  5592. else
  5593. cat >conftest.$ac_ext <<_ACEOF
  5594. /* confdefs.h. */
  5595. _ACEOF
  5596. cat confdefs.h >>conftest.$ac_ext
  5597. cat >>conftest.$ac_ext <<_ACEOF
  5598. /* end confdefs.h. */
  5599. $ac_includes_default
  5600. int
  5601. main ()
  5602. {
  5603. if ((size_t *) 0)
  5604. return 0;
  5605. if (sizeof (size_t))
  5606. return 0;
  5607. ;
  5608. return 0;
  5609. }
  5610. _ACEOF
  5611. rm -f conftest.$ac_objext
  5612. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5613. (eval $ac_compile) 2>conftest.er1
  5614. ac_status=$?
  5615. grep -v '^ *+' conftest.er1 >conftest.err
  5616. rm -f conftest.er1
  5617. cat conftest.err >&5
  5618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5619. (exit $ac_status); } &&
  5620. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5621. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5622. (eval $ac_try) 2>&5
  5623. ac_status=$?
  5624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5625. (exit $ac_status); }; } &&
  5626. { ac_try='test -s conftest.$ac_objext'
  5627. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5628. (eval $ac_try) 2>&5
  5629. ac_status=$?
  5630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5631. (exit $ac_status); }; }; then
  5632. ac_cv_type_size_t=yes
  5633. else
  5634. echo "$as_me: failed program was:" >&5
  5635. sed 's/^/| /' conftest.$ac_ext >&5
  5636. ac_cv_type_size_t=no
  5637. fi
  5638. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5639. fi
  5640. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5641. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5642. if test $ac_cv_type_size_t = yes; then
  5643. :
  5644. else
  5645. cat >>confdefs.h <<_ACEOF
  5646. #define size_t unsigned
  5647. _ACEOF
  5648. fi
  5649. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5650. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  5651. if test "${ac_cv_type_uid_t+set}" = set; then
  5652. echo $ECHO_N "(cached) $ECHO_C" >&6
  5653. else
  5654. cat >conftest.$ac_ext <<_ACEOF
  5655. /* confdefs.h. */
  5656. _ACEOF
  5657. cat confdefs.h >>conftest.$ac_ext
  5658. cat >>conftest.$ac_ext <<_ACEOF
  5659. /* end confdefs.h. */
  5660. #include <sys/types.h>
  5661. _ACEOF
  5662. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5663. $EGREP "uid_t" >/dev/null 2>&1; then
  5664. ac_cv_type_uid_t=yes
  5665. else
  5666. ac_cv_type_uid_t=no
  5667. fi
  5668. rm -f conftest*
  5669. fi
  5670. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5671. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  5672. if test $ac_cv_type_uid_t = no; then
  5673. cat >>confdefs.h <<\_ACEOF
  5674. #define uid_t int
  5675. _ACEOF
  5676. cat >>confdefs.h <<\_ACEOF
  5677. #define gid_t int
  5678. _ACEOF
  5679. fi
  5680. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5681. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5682. if test "${ac_cv_c_const+set}" = set; then
  5683. echo $ECHO_N "(cached) $ECHO_C" >&6
  5684. else
  5685. cat >conftest.$ac_ext <<_ACEOF
  5686. /* confdefs.h. */
  5687. _ACEOF
  5688. cat confdefs.h >>conftest.$ac_ext
  5689. cat >>conftest.$ac_ext <<_ACEOF
  5690. /* end confdefs.h. */
  5691. int
  5692. main ()
  5693. {
  5694. /* FIXME: Include the comments suggested by Paul. */
  5695. #ifndef __cplusplus
  5696. /* Ultrix mips cc rejects this. */
  5697. typedef int charset[2];
  5698. const charset x;
  5699. /* SunOS 4.1.1 cc rejects this. */
  5700. char const *const *ccp;
  5701. char **p;
  5702. /* NEC SVR4.0.2 mips cc rejects this. */
  5703. struct point {int x, y;};
  5704. static struct point const zero = {0,0};
  5705. /* AIX XL C 1.02.0.0 rejects this.
  5706. It does not let you subtract one const X* pointer from another in
  5707. an arm of an if-expression whose if-part is not a constant
  5708. expression */
  5709. const char *g = "string";
  5710. ccp = &g + (g ? g-g : 0);
  5711. /* HPUX 7.0 cc rejects these. */
  5712. ++ccp;
  5713. p = (char**) ccp;
  5714. ccp = (char const *const *) p;
  5715. { /* SCO 3.2v4 cc rejects this. */
  5716. char *t;
  5717. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5718. *t++ = 0;
  5719. }
  5720. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5721. int x[] = {25, 17};
  5722. const int *foo = &x[0];
  5723. ++foo;
  5724. }
  5725. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5726. typedef const int *iptr;
  5727. iptr p = 0;
  5728. ++p;
  5729. }
  5730. { /* AIX XL C 1.02.0.0 rejects this saying
  5731. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5732. struct s { int j; const int *ap[3]; };
  5733. struct s *b; b->j = 5;
  5734. }
  5735. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5736. const int foo = 10;
  5737. }
  5738. #endif
  5739. ;
  5740. return 0;
  5741. }
  5742. _ACEOF
  5743. rm -f conftest.$ac_objext
  5744. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5745. (eval $ac_compile) 2>conftest.er1
  5746. ac_status=$?
  5747. grep -v '^ *+' conftest.er1 >conftest.err
  5748. rm -f conftest.er1
  5749. cat conftest.err >&5
  5750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5751. (exit $ac_status); } &&
  5752. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5753. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5754. (eval $ac_try) 2>&5
  5755. ac_status=$?
  5756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5757. (exit $ac_status); }; } &&
  5758. { ac_try='test -s conftest.$ac_objext'
  5759. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5760. (eval $ac_try) 2>&5
  5761. ac_status=$?
  5762. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5763. (exit $ac_status); }; }; then
  5764. ac_cv_c_const=yes
  5765. else
  5766. echo "$as_me: failed program was:" >&5
  5767. sed 's/^/| /' conftest.$ac_ext >&5
  5768. ac_cv_c_const=no
  5769. fi
  5770. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5771. fi
  5772. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5773. echo "${ECHO_T}$ac_cv_c_const" >&6
  5774. if test $ac_cv_c_const = no; then
  5775. cat >>confdefs.h <<\_ACEOF
  5776. #define const
  5777. _ACEOF
  5778. fi
  5779. echo "$as_me:$LINENO: checking for working volatile" >&5
  5780. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  5781. if test "${ac_cv_c_volatile+set}" = set; then
  5782. echo $ECHO_N "(cached) $ECHO_C" >&6
  5783. else
  5784. cat >conftest.$ac_ext <<_ACEOF
  5785. /* confdefs.h. */
  5786. _ACEOF
  5787. cat confdefs.h >>conftest.$ac_ext
  5788. cat >>conftest.$ac_ext <<_ACEOF
  5789. /* end confdefs.h. */
  5790. int
  5791. main ()
  5792. {
  5793. volatile int x;
  5794. int * volatile y;
  5795. ;
  5796. return 0;
  5797. }
  5798. _ACEOF
  5799. rm -f conftest.$ac_objext
  5800. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5801. (eval $ac_compile) 2>conftest.er1
  5802. ac_status=$?
  5803. grep -v '^ *+' conftest.er1 >conftest.err
  5804. rm -f conftest.er1
  5805. cat conftest.err >&5
  5806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5807. (exit $ac_status); } &&
  5808. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5809. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5810. (eval $ac_try) 2>&5
  5811. ac_status=$?
  5812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5813. (exit $ac_status); }; } &&
  5814. { ac_try='test -s conftest.$ac_objext'
  5815. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5816. (eval $ac_try) 2>&5
  5817. ac_status=$?
  5818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5819. (exit $ac_status); }; }; then
  5820. ac_cv_c_volatile=yes
  5821. else
  5822. echo "$as_me: failed program was:" >&5
  5823. sed 's/^/| /' conftest.$ac_ext >&5
  5824. ac_cv_c_volatile=no
  5825. fi
  5826. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5827. fi
  5828. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5829. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  5830. if test $ac_cv_c_volatile = no; then
  5831. cat >>confdefs.h <<\_ACEOF
  5832. #define volatile
  5833. _ACEOF
  5834. fi
  5835. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5836. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  5837. if test "${ac_cv_c_bigendian+set}" = set; then
  5838. echo $ECHO_N "(cached) $ECHO_C" >&6
  5839. else
  5840. # See if sys/param.h defines the BYTE_ORDER macro.
  5841. cat >conftest.$ac_ext <<_ACEOF
  5842. /* confdefs.h. */
  5843. _ACEOF
  5844. cat confdefs.h >>conftest.$ac_ext
  5845. cat >>conftest.$ac_ext <<_ACEOF
  5846. /* end confdefs.h. */
  5847. #include <sys/types.h>
  5848. #include <sys/param.h>
  5849. int
  5850. main ()
  5851. {
  5852. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  5853. bogus endian macros
  5854. #endif
  5855. ;
  5856. return 0;
  5857. }
  5858. _ACEOF
  5859. rm -f conftest.$ac_objext
  5860. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5861. (eval $ac_compile) 2>conftest.er1
  5862. ac_status=$?
  5863. grep -v '^ *+' conftest.er1 >conftest.err
  5864. rm -f conftest.er1
  5865. cat conftest.err >&5
  5866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5867. (exit $ac_status); } &&
  5868. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5869. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5870. (eval $ac_try) 2>&5
  5871. ac_status=$?
  5872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5873. (exit $ac_status); }; } &&
  5874. { ac_try='test -s conftest.$ac_objext'
  5875. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5876. (eval $ac_try) 2>&5
  5877. ac_status=$?
  5878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5879. (exit $ac_status); }; }; then
  5880. # It does; now see whether it defined to BIG_ENDIAN or not.
  5881. cat >conftest.$ac_ext <<_ACEOF
  5882. /* confdefs.h. */
  5883. _ACEOF
  5884. cat confdefs.h >>conftest.$ac_ext
  5885. cat >>conftest.$ac_ext <<_ACEOF
  5886. /* end confdefs.h. */
  5887. #include <sys/types.h>
  5888. #include <sys/param.h>
  5889. int
  5890. main ()
  5891. {
  5892. #if BYTE_ORDER != BIG_ENDIAN
  5893. not big endian
  5894. #endif
  5895. ;
  5896. return 0;
  5897. }
  5898. _ACEOF
  5899. rm -f conftest.$ac_objext
  5900. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5901. (eval $ac_compile) 2>conftest.er1
  5902. ac_status=$?
  5903. grep -v '^ *+' conftest.er1 >conftest.err
  5904. rm -f conftest.er1
  5905. cat conftest.err >&5
  5906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5907. (exit $ac_status); } &&
  5908. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5909. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5910. (eval $ac_try) 2>&5
  5911. ac_status=$?
  5912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5913. (exit $ac_status); }; } &&
  5914. { ac_try='test -s conftest.$ac_objext'
  5915. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5916. (eval $ac_try) 2>&5
  5917. ac_status=$?
  5918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5919. (exit $ac_status); }; }; then
  5920. ac_cv_c_bigendian=yes
  5921. else
  5922. echo "$as_me: failed program was:" >&5
  5923. sed 's/^/| /' conftest.$ac_ext >&5
  5924. ac_cv_c_bigendian=no
  5925. fi
  5926. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5927. else
  5928. echo "$as_me: failed program was:" >&5
  5929. sed 's/^/| /' conftest.$ac_ext >&5
  5930. # It does not; compile a test program.
  5931. if test "$cross_compiling" = yes; then
  5932. # try to guess the endianness by grepping values into an object file
  5933. ac_cv_c_bigendian=unknown
  5934. cat >conftest.$ac_ext <<_ACEOF
  5935. /* confdefs.h. */
  5936. _ACEOF
  5937. cat confdefs.h >>conftest.$ac_ext
  5938. cat >>conftest.$ac_ext <<_ACEOF
  5939. /* end confdefs.h. */
  5940. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5941. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5942. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  5943. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5944. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5945. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  5946. int
  5947. main ()
  5948. {
  5949. _ascii (); _ebcdic ();
  5950. ;
  5951. return 0;
  5952. }
  5953. _ACEOF
  5954. rm -f conftest.$ac_objext
  5955. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5956. (eval $ac_compile) 2>conftest.er1
  5957. ac_status=$?
  5958. grep -v '^ *+' conftest.er1 >conftest.err
  5959. rm -f conftest.er1
  5960. cat conftest.err >&5
  5961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5962. (exit $ac_status); } &&
  5963. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5964. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5965. (eval $ac_try) 2>&5
  5966. ac_status=$?
  5967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5968. (exit $ac_status); }; } &&
  5969. { ac_try='test -s conftest.$ac_objext'
  5970. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5971. (eval $ac_try) 2>&5
  5972. ac_status=$?
  5973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5974. (exit $ac_status); }; }; then
  5975. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  5976. ac_cv_c_bigendian=yes
  5977. fi
  5978. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5979. if test "$ac_cv_c_bigendian" = unknown; then
  5980. ac_cv_c_bigendian=no
  5981. else
  5982. # finding both strings is unlikely to happen, but who knows?
  5983. ac_cv_c_bigendian=unknown
  5984. fi
  5985. fi
  5986. else
  5987. echo "$as_me: failed program was:" >&5
  5988. sed 's/^/| /' conftest.$ac_ext >&5
  5989. fi
  5990. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  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. int
  5999. main ()
  6000. {
  6001. /* Are we little or big endian? From Harbison&Steele. */
  6002. union
  6003. {
  6004. long l;
  6005. char c[sizeof (long)];
  6006. } u;
  6007. u.l = 1;
  6008. exit (u.c[sizeof (long) - 1] == 1);
  6009. }
  6010. _ACEOF
  6011. rm -f conftest$ac_exeext
  6012. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6013. (eval $ac_link) 2>&5
  6014. ac_status=$?
  6015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6016. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6017. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6018. (eval $ac_try) 2>&5
  6019. ac_status=$?
  6020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6021. (exit $ac_status); }; }; then
  6022. ac_cv_c_bigendian=no
  6023. else
  6024. echo "$as_me: program exited with status $ac_status" >&5
  6025. echo "$as_me: failed program was:" >&5
  6026. sed 's/^/| /' conftest.$ac_ext >&5
  6027. ( exit $ac_status )
  6028. ac_cv_c_bigendian=yes
  6029. fi
  6030. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6031. fi
  6032. fi
  6033. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6034. fi
  6035. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6036. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  6037. case $ac_cv_c_bigendian in
  6038. yes)
  6039. cat >>confdefs.h <<\_ACEOF
  6040. #define WORDS_BIGENDIAN 1
  6041. _ACEOF
  6042. ;;
  6043. no)
  6044. ;;
  6045. *)
  6046. { { echo "$as_me:$LINENO: error: unknown endianness
  6047. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6048. echo "$as_me: error: unknown endianness
  6049. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6050. { (exit 1); exit 1; }; } ;;
  6051. esac
  6052. echo "$as_me:$LINENO: checking for inline" >&5
  6053. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  6054. if test "${ac_cv_c_inline+set}" = set; then
  6055. echo $ECHO_N "(cached) $ECHO_C" >&6
  6056. else
  6057. ac_cv_c_inline=no
  6058. for ac_kw in inline __inline__ __inline; do
  6059. cat >conftest.$ac_ext <<_ACEOF
  6060. /* confdefs.h. */
  6061. _ACEOF
  6062. cat confdefs.h >>conftest.$ac_ext
  6063. cat >>conftest.$ac_ext <<_ACEOF
  6064. /* end confdefs.h. */
  6065. #ifndef __cplusplus
  6066. typedef int foo_t;
  6067. static $ac_kw foo_t static_foo () {return 0; }
  6068. $ac_kw foo_t foo () {return 0; }
  6069. #endif
  6070. _ACEOF
  6071. rm -f conftest.$ac_objext
  6072. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6073. (eval $ac_compile) 2>conftest.er1
  6074. ac_status=$?
  6075. grep -v '^ *+' conftest.er1 >conftest.err
  6076. rm -f conftest.er1
  6077. cat conftest.err >&5
  6078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6079. (exit $ac_status); } &&
  6080. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6081. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6082. (eval $ac_try) 2>&5
  6083. ac_status=$?
  6084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6085. (exit $ac_status); }; } &&
  6086. { ac_try='test -s conftest.$ac_objext'
  6087. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6088. (eval $ac_try) 2>&5
  6089. ac_status=$?
  6090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6091. (exit $ac_status); }; }; then
  6092. ac_cv_c_inline=$ac_kw; break
  6093. else
  6094. echo "$as_me: failed program was:" >&5
  6095. sed 's/^/| /' conftest.$ac_ext >&5
  6096. fi
  6097. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6098. done
  6099. fi
  6100. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6101. echo "${ECHO_T}$ac_cv_c_inline" >&6
  6102. case $ac_cv_c_inline in
  6103. inline | yes) ;;
  6104. *)
  6105. case $ac_cv_c_inline in
  6106. no) ac_val=;;
  6107. *) ac_val=$ac_cv_c_inline;;
  6108. esac
  6109. cat >>confdefs.h <<_ACEOF
  6110. #ifndef __cplusplus
  6111. #define inline $ac_val
  6112. #endif
  6113. _ACEOF
  6114. ;;
  6115. esac
  6116. echo "$as_me:$LINENO: checking whether char is unsigned" >&5
  6117. echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
  6118. if test "${ac_cv_c_char_unsigned+set}" = set; then
  6119. echo $ECHO_N "(cached) $ECHO_C" >&6
  6120. else
  6121. cat >conftest.$ac_ext <<_ACEOF
  6122. /* confdefs.h. */
  6123. _ACEOF
  6124. cat confdefs.h >>conftest.$ac_ext
  6125. cat >>conftest.$ac_ext <<_ACEOF
  6126. /* end confdefs.h. */
  6127. $ac_includes_default
  6128. int
  6129. main ()
  6130. {
  6131. static int test_array [1 - 2 * !(((char) -1) < 0)];
  6132. test_array [0] = 0
  6133. ;
  6134. return 0;
  6135. }
  6136. _ACEOF
  6137. rm -f conftest.$ac_objext
  6138. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6139. (eval $ac_compile) 2>conftest.er1
  6140. ac_status=$?
  6141. grep -v '^ *+' conftest.er1 >conftest.err
  6142. rm -f conftest.er1
  6143. cat conftest.err >&5
  6144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6145. (exit $ac_status); } &&
  6146. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6147. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6148. (eval $ac_try) 2>&5
  6149. ac_status=$?
  6150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6151. (exit $ac_status); }; } &&
  6152. { ac_try='test -s conftest.$ac_objext'
  6153. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6154. (eval $ac_try) 2>&5
  6155. ac_status=$?
  6156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6157. (exit $ac_status); }; }; then
  6158. ac_cv_c_char_unsigned=no
  6159. else
  6160. echo "$as_me: failed program was:" >&5
  6161. sed 's/^/| /' conftest.$ac_ext >&5
  6162. ac_cv_c_char_unsigned=yes
  6163. fi
  6164. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6165. fi
  6166. echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
  6167. echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
  6168. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  6169. cat >>confdefs.h <<\_ACEOF
  6170. #define __CHAR_UNSIGNED__ 1
  6171. _ACEOF
  6172. fi
  6173. echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
  6174. echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
  6175. if test "${ac_cv_c_stringize+set}" = set; then
  6176. echo $ECHO_N "(cached) $ECHO_C" >&6
  6177. else
  6178. cat >conftest.$ac_ext <<_ACEOF
  6179. /* confdefs.h. */
  6180. _ACEOF
  6181. cat confdefs.h >>conftest.$ac_ext
  6182. cat >>conftest.$ac_ext <<_ACEOF
  6183. /* end confdefs.h. */
  6184. #define x(y) #y
  6185. char *s = x(teststring);
  6186. _ACEOF
  6187. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6188. $EGREP "#teststring" >/dev/null 2>&1; then
  6189. ac_cv_c_stringize=no
  6190. else
  6191. ac_cv_c_stringize=yes
  6192. fi
  6193. rm -f conftest*
  6194. fi
  6195. echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
  6196. echo "${ECHO_T}$ac_cv_c_stringize" >&6
  6197. if test $ac_cv_c_stringize = yes; then
  6198. cat >>confdefs.h <<\_ACEOF
  6199. #define HAVE_STRINGIZE 1
  6200. _ACEOF
  6201. fi
  6202. echo "$as_me:$LINENO: checking for function prototypes" >&5
  6203. echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
  6204. if test "$ac_cv_prog_cc_stdc" != no; then
  6205. echo "$as_me:$LINENO: result: yes" >&5
  6206. echo "${ECHO_T}yes" >&6
  6207. cat >>confdefs.h <<\_ACEOF
  6208. #define PROTOTYPES 1
  6209. _ACEOF
  6210. cat >>confdefs.h <<\_ACEOF
  6211. #define __PROTOTYPES 1
  6212. _ACEOF
  6213. else
  6214. echo "$as_me:$LINENO: result: no" >&5
  6215. echo "${ECHO_T}no" >&6
  6216. fi
  6217. #checkpoint
  6218. cat >confcache <<\_ACEOF
  6219. # This file is a shell script that caches the results of configure
  6220. # tests run on this system so they can be shared between configure
  6221. # scripts and configure runs, see configure's option --config-cache.
  6222. # It is not useful on other systems. If it contains results you don't
  6223. # want to keep, you may remove or edit it.
  6224. #
  6225. # config.status only pays attention to the cache file if you give it
  6226. # the --recheck option to rerun configure.
  6227. #
  6228. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6229. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6230. # following values.
  6231. _ACEOF
  6232. # The following way of writing the cache mishandles newlines in values,
  6233. # but we know of no workaround that is simple, portable, and efficient.
  6234. # So, don't put newlines in cache variables' values.
  6235. # Ultrix sh set writes to stderr and can't be redirected directly,
  6236. # and sets the high bit in the cache file unless we assign to the vars.
  6237. {
  6238. (set) 2>&1 |
  6239. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6240. *ac_space=\ *)
  6241. # `set' does not quote correctly, so add quotes (double-quote
  6242. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6243. sed -n \
  6244. "s/'/'\\\\''/g;
  6245. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6246. ;;
  6247. *)
  6248. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6249. sed -n \
  6250. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  6251. ;;
  6252. esac;
  6253. } |
  6254. sed '
  6255. t clear
  6256. : clear
  6257. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6258. t end
  6259. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6260. : end' >>confcache
  6261. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  6262. if test -w $cache_file; then
  6263. test "x$cache_file" != "x/dev/null"
  6264. cat confcache >$cache_file
  6265. else
  6266. echo "not updating unwritable cache $cache_file"
  6267. fi
  6268. fi
  6269. rm -f confcache
  6270. echo "$as_me:$LINENO: checking for int" >&5
  6271. echo $ECHO_N "checking for int... $ECHO_C" >&6
  6272. if test "${ac_cv_type_int+set}" = set; then
  6273. echo $ECHO_N "(cached) $ECHO_C" >&6
  6274. else
  6275. cat >conftest.$ac_ext <<_ACEOF
  6276. /* confdefs.h. */
  6277. _ACEOF
  6278. cat confdefs.h >>conftest.$ac_ext
  6279. cat >>conftest.$ac_ext <<_ACEOF
  6280. /* end confdefs.h. */
  6281. $ac_includes_default
  6282. int
  6283. main ()
  6284. {
  6285. if ((int *) 0)
  6286. return 0;
  6287. if (sizeof (int))
  6288. return 0;
  6289. ;
  6290. return 0;
  6291. }
  6292. _ACEOF
  6293. rm -f conftest.$ac_objext
  6294. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6295. (eval $ac_compile) 2>conftest.er1
  6296. ac_status=$?
  6297. grep -v '^ *+' conftest.er1 >conftest.err
  6298. rm -f conftest.er1
  6299. cat conftest.err >&5
  6300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6301. (exit $ac_status); } &&
  6302. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6303. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6304. (eval $ac_try) 2>&5
  6305. ac_status=$?
  6306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6307. (exit $ac_status); }; } &&
  6308. { ac_try='test -s conftest.$ac_objext'
  6309. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6310. (eval $ac_try) 2>&5
  6311. ac_status=$?
  6312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6313. (exit $ac_status); }; }; then
  6314. ac_cv_type_int=yes
  6315. else
  6316. echo "$as_me: failed program was:" >&5
  6317. sed 's/^/| /' conftest.$ac_ext >&5
  6318. ac_cv_type_int=no
  6319. fi
  6320. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6321. fi
  6322. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  6323. echo "${ECHO_T}$ac_cv_type_int" >&6
  6324. echo "$as_me:$LINENO: checking size of int" >&5
  6325. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  6326. if test "${ac_cv_sizeof_int+set}" = set; then
  6327. echo $ECHO_N "(cached) $ECHO_C" >&6
  6328. else
  6329. if test "$ac_cv_type_int" = yes; then
  6330. # The cast to unsigned long works around a bug in the HP C Compiler
  6331. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6332. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6333. # This bug is HP SR number 8606223364.
  6334. if test "$cross_compiling" = yes; then
  6335. # Depending upon the size, compute the lo and hi bounds.
  6336. cat >conftest.$ac_ext <<_ACEOF
  6337. /* confdefs.h. */
  6338. _ACEOF
  6339. cat confdefs.h >>conftest.$ac_ext
  6340. cat >>conftest.$ac_ext <<_ACEOF
  6341. /* end confdefs.h. */
  6342. $ac_includes_default
  6343. int
  6344. main ()
  6345. {
  6346. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  6347. test_array [0] = 0
  6348. ;
  6349. return 0;
  6350. }
  6351. _ACEOF
  6352. rm -f conftest.$ac_objext
  6353. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6354. (eval $ac_compile) 2>conftest.er1
  6355. ac_status=$?
  6356. grep -v '^ *+' conftest.er1 >conftest.err
  6357. rm -f conftest.er1
  6358. cat conftest.err >&5
  6359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6360. (exit $ac_status); } &&
  6361. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6362. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6363. (eval $ac_try) 2>&5
  6364. ac_status=$?
  6365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6366. (exit $ac_status); }; } &&
  6367. { ac_try='test -s conftest.$ac_objext'
  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); }; }; then
  6373. ac_lo=0 ac_mid=0
  6374. while :; do
  6375. cat >conftest.$ac_ext <<_ACEOF
  6376. /* confdefs.h. */
  6377. _ACEOF
  6378. cat confdefs.h >>conftest.$ac_ext
  6379. cat >>conftest.$ac_ext <<_ACEOF
  6380. /* end confdefs.h. */
  6381. $ac_includes_default
  6382. int
  6383. main ()
  6384. {
  6385. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6386. test_array [0] = 0
  6387. ;
  6388. return 0;
  6389. }
  6390. _ACEOF
  6391. rm -f conftest.$ac_objext
  6392. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6393. (eval $ac_compile) 2>conftest.er1
  6394. ac_status=$?
  6395. grep -v '^ *+' conftest.er1 >conftest.err
  6396. rm -f conftest.er1
  6397. cat conftest.err >&5
  6398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6399. (exit $ac_status); } &&
  6400. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6401. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6402. (eval $ac_try) 2>&5
  6403. ac_status=$?
  6404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6405. (exit $ac_status); }; } &&
  6406. { ac_try='test -s conftest.$ac_objext'
  6407. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6408. (eval $ac_try) 2>&5
  6409. ac_status=$?
  6410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6411. (exit $ac_status); }; }; then
  6412. ac_hi=$ac_mid; break
  6413. else
  6414. echo "$as_me: failed program was:" >&5
  6415. sed 's/^/| /' conftest.$ac_ext >&5
  6416. ac_lo=`expr $ac_mid + 1`
  6417. if test $ac_lo -le $ac_mid; then
  6418. ac_lo= ac_hi=
  6419. break
  6420. fi
  6421. ac_mid=`expr 2 '*' $ac_mid + 1`
  6422. fi
  6423. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6424. done
  6425. else
  6426. echo "$as_me: failed program was:" >&5
  6427. sed 's/^/| /' conftest.$ac_ext >&5
  6428. cat >conftest.$ac_ext <<_ACEOF
  6429. /* confdefs.h. */
  6430. _ACEOF
  6431. cat confdefs.h >>conftest.$ac_ext
  6432. cat >>conftest.$ac_ext <<_ACEOF
  6433. /* end confdefs.h. */
  6434. $ac_includes_default
  6435. int
  6436. main ()
  6437. {
  6438. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  6439. test_array [0] = 0
  6440. ;
  6441. return 0;
  6442. }
  6443. _ACEOF
  6444. rm -f conftest.$ac_objext
  6445. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6446. (eval $ac_compile) 2>conftest.er1
  6447. ac_status=$?
  6448. grep -v '^ *+' conftest.er1 >conftest.err
  6449. rm -f conftest.er1
  6450. cat conftest.err >&5
  6451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6452. (exit $ac_status); } &&
  6453. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6454. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6455. (eval $ac_try) 2>&5
  6456. ac_status=$?
  6457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6458. (exit $ac_status); }; } &&
  6459. { ac_try='test -s conftest.$ac_objext'
  6460. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6461. (eval $ac_try) 2>&5
  6462. ac_status=$?
  6463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6464. (exit $ac_status); }; }; then
  6465. ac_hi=-1 ac_mid=-1
  6466. while :; do
  6467. cat >conftest.$ac_ext <<_ACEOF
  6468. /* confdefs.h. */
  6469. _ACEOF
  6470. cat confdefs.h >>conftest.$ac_ext
  6471. cat >>conftest.$ac_ext <<_ACEOF
  6472. /* end confdefs.h. */
  6473. $ac_includes_default
  6474. int
  6475. main ()
  6476. {
  6477. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  6478. test_array [0] = 0
  6479. ;
  6480. return 0;
  6481. }
  6482. _ACEOF
  6483. rm -f conftest.$ac_objext
  6484. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6485. (eval $ac_compile) 2>conftest.er1
  6486. ac_status=$?
  6487. grep -v '^ *+' conftest.er1 >conftest.err
  6488. rm -f conftest.er1
  6489. cat conftest.err >&5
  6490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6491. (exit $ac_status); } &&
  6492. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6493. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6494. (eval $ac_try) 2>&5
  6495. ac_status=$?
  6496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6497. (exit $ac_status); }; } &&
  6498. { ac_try='test -s conftest.$ac_objext'
  6499. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6500. (eval $ac_try) 2>&5
  6501. ac_status=$?
  6502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6503. (exit $ac_status); }; }; then
  6504. ac_lo=$ac_mid; break
  6505. else
  6506. echo "$as_me: failed program was:" >&5
  6507. sed 's/^/| /' conftest.$ac_ext >&5
  6508. ac_hi=`expr '(' $ac_mid ')' - 1`
  6509. if test $ac_mid -le $ac_hi; then
  6510. ac_lo= ac_hi=
  6511. break
  6512. fi
  6513. ac_mid=`expr 2 '*' $ac_mid`
  6514. fi
  6515. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6516. done
  6517. else
  6518. echo "$as_me: failed program was:" >&5
  6519. sed 's/^/| /' conftest.$ac_ext >&5
  6520. ac_lo= ac_hi=
  6521. fi
  6522. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6523. fi
  6524. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6525. # Binary search between lo and hi bounds.
  6526. while test "x$ac_lo" != "x$ac_hi"; do
  6527. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6528. cat >conftest.$ac_ext <<_ACEOF
  6529. /* confdefs.h. */
  6530. _ACEOF
  6531. cat confdefs.h >>conftest.$ac_ext
  6532. cat >>conftest.$ac_ext <<_ACEOF
  6533. /* end confdefs.h. */
  6534. $ac_includes_default
  6535. int
  6536. main ()
  6537. {
  6538. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6539. test_array [0] = 0
  6540. ;
  6541. return 0;
  6542. }
  6543. _ACEOF
  6544. rm -f conftest.$ac_objext
  6545. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6546. (eval $ac_compile) 2>conftest.er1
  6547. ac_status=$?
  6548. grep -v '^ *+' conftest.er1 >conftest.err
  6549. rm -f conftest.er1
  6550. cat conftest.err >&5
  6551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6552. (exit $ac_status); } &&
  6553. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6554. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6555. (eval $ac_try) 2>&5
  6556. ac_status=$?
  6557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6558. (exit $ac_status); }; } &&
  6559. { ac_try='test -s conftest.$ac_objext'
  6560. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6561. (eval $ac_try) 2>&5
  6562. ac_status=$?
  6563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6564. (exit $ac_status); }; }; then
  6565. ac_hi=$ac_mid
  6566. else
  6567. echo "$as_me: failed program was:" >&5
  6568. sed 's/^/| /' conftest.$ac_ext >&5
  6569. ac_lo=`expr '(' $ac_mid ')' + 1`
  6570. fi
  6571. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6572. done
  6573. case $ac_lo in
  6574. ?*) ac_cv_sizeof_int=$ac_lo;;
  6575. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6576. See \`config.log' for more details." >&5
  6577. echo "$as_me: error: cannot compute sizeof (int), 77
  6578. See \`config.log' for more details." >&2;}
  6579. { (exit 1); exit 1; }; } ;;
  6580. esac
  6581. else
  6582. if test "$cross_compiling" = yes; then
  6583. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6584. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6585. { (exit 1); exit 1; }; }
  6586. else
  6587. cat >conftest.$ac_ext <<_ACEOF
  6588. /* confdefs.h. */
  6589. _ACEOF
  6590. cat confdefs.h >>conftest.$ac_ext
  6591. cat >>conftest.$ac_ext <<_ACEOF
  6592. /* end confdefs.h. */
  6593. $ac_includes_default
  6594. long longval () { return (long) (sizeof (int)); }
  6595. unsigned long ulongval () { return (long) (sizeof (int)); }
  6596. #include <stdio.h>
  6597. #include <stdlib.h>
  6598. int
  6599. main ()
  6600. {
  6601. FILE *f = fopen ("conftest.val", "w");
  6602. if (! f)
  6603. exit (1);
  6604. if (((long) (sizeof (int))) < 0)
  6605. {
  6606. long i = longval ();
  6607. if (i != ((long) (sizeof (int))))
  6608. exit (1);
  6609. fprintf (f, "%ld\n", i);
  6610. }
  6611. else
  6612. {
  6613. unsigned long i = ulongval ();
  6614. if (i != ((long) (sizeof (int))))
  6615. exit (1);
  6616. fprintf (f, "%lu\n", i);
  6617. }
  6618. exit (ferror (f) || fclose (f) != 0);
  6619. ;
  6620. return 0;
  6621. }
  6622. _ACEOF
  6623. rm -f conftest$ac_exeext
  6624. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6625. (eval $ac_link) 2>&5
  6626. ac_status=$?
  6627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6628. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6629. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6630. (eval $ac_try) 2>&5
  6631. ac_status=$?
  6632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6633. (exit $ac_status); }; }; then
  6634. ac_cv_sizeof_int=`cat conftest.val`
  6635. else
  6636. echo "$as_me: program exited with status $ac_status" >&5
  6637. echo "$as_me: failed program was:" >&5
  6638. sed 's/^/| /' conftest.$ac_ext >&5
  6639. ( exit $ac_status )
  6640. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6641. See \`config.log' for more details." >&5
  6642. echo "$as_me: error: cannot compute sizeof (int), 77
  6643. See \`config.log' for more details." >&2;}
  6644. { (exit 1); exit 1; }; }
  6645. fi
  6646. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6647. fi
  6648. fi
  6649. rm -f conftest.val
  6650. else
  6651. ac_cv_sizeof_int=0
  6652. fi
  6653. fi
  6654. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  6655. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  6656. cat >>confdefs.h <<_ACEOF
  6657. #define SIZEOF_INT $ac_cv_sizeof_int
  6658. _ACEOF
  6659. echo "$as_me:$LINENO: checking for short" >&5
  6660. echo $ECHO_N "checking for short... $ECHO_C" >&6
  6661. if test "${ac_cv_type_short+set}" = set; then
  6662. echo $ECHO_N "(cached) $ECHO_C" >&6
  6663. else
  6664. cat >conftest.$ac_ext <<_ACEOF
  6665. /* confdefs.h. */
  6666. _ACEOF
  6667. cat confdefs.h >>conftest.$ac_ext
  6668. cat >>conftest.$ac_ext <<_ACEOF
  6669. /* end confdefs.h. */
  6670. $ac_includes_default
  6671. int
  6672. main ()
  6673. {
  6674. if ((short *) 0)
  6675. return 0;
  6676. if (sizeof (short))
  6677. return 0;
  6678. ;
  6679. return 0;
  6680. }
  6681. _ACEOF
  6682. rm -f conftest.$ac_objext
  6683. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6684. (eval $ac_compile) 2>conftest.er1
  6685. ac_status=$?
  6686. grep -v '^ *+' conftest.er1 >conftest.err
  6687. rm -f conftest.er1
  6688. cat conftest.err >&5
  6689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6690. (exit $ac_status); } &&
  6691. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6692. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6693. (eval $ac_try) 2>&5
  6694. ac_status=$?
  6695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6696. (exit $ac_status); }; } &&
  6697. { ac_try='test -s conftest.$ac_objext'
  6698. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6699. (eval $ac_try) 2>&5
  6700. ac_status=$?
  6701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6702. (exit $ac_status); }; }; then
  6703. ac_cv_type_short=yes
  6704. else
  6705. echo "$as_me: failed program was:" >&5
  6706. sed 's/^/| /' conftest.$ac_ext >&5
  6707. ac_cv_type_short=no
  6708. fi
  6709. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6710. fi
  6711. echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  6712. echo "${ECHO_T}$ac_cv_type_short" >&6
  6713. echo "$as_me:$LINENO: checking size of short" >&5
  6714. echo $ECHO_N "checking size of short... $ECHO_C" >&6
  6715. if test "${ac_cv_sizeof_short+set}" = set; then
  6716. echo $ECHO_N "(cached) $ECHO_C" >&6
  6717. else
  6718. if test "$ac_cv_type_short" = yes; then
  6719. # The cast to unsigned long works around a bug in the HP C Compiler
  6720. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6721. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6722. # This bug is HP SR number 8606223364.
  6723. if test "$cross_compiling" = yes; then
  6724. # Depending upon the size, compute the lo and hi bounds.
  6725. cat >conftest.$ac_ext <<_ACEOF
  6726. /* confdefs.h. */
  6727. _ACEOF
  6728. cat confdefs.h >>conftest.$ac_ext
  6729. cat >>conftest.$ac_ext <<_ACEOF
  6730. /* end confdefs.h. */
  6731. $ac_includes_default
  6732. int
  6733. main ()
  6734. {
  6735. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
  6736. test_array [0] = 0
  6737. ;
  6738. return 0;
  6739. }
  6740. _ACEOF
  6741. rm -f conftest.$ac_objext
  6742. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6743. (eval $ac_compile) 2>conftest.er1
  6744. ac_status=$?
  6745. grep -v '^ *+' conftest.er1 >conftest.err
  6746. rm -f conftest.er1
  6747. cat conftest.err >&5
  6748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6749. (exit $ac_status); } &&
  6750. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6751. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6752. (eval $ac_try) 2>&5
  6753. ac_status=$?
  6754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6755. (exit $ac_status); }; } &&
  6756. { ac_try='test -s conftest.$ac_objext'
  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); }; }; then
  6762. ac_lo=0 ac_mid=0
  6763. while :; do
  6764. cat >conftest.$ac_ext <<_ACEOF
  6765. /* confdefs.h. */
  6766. _ACEOF
  6767. cat confdefs.h >>conftest.$ac_ext
  6768. cat >>conftest.$ac_ext <<_ACEOF
  6769. /* end confdefs.h. */
  6770. $ac_includes_default
  6771. int
  6772. main ()
  6773. {
  6774. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  6775. test_array [0] = 0
  6776. ;
  6777. return 0;
  6778. }
  6779. _ACEOF
  6780. rm -f conftest.$ac_objext
  6781. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6782. (eval $ac_compile) 2>conftest.er1
  6783. ac_status=$?
  6784. grep -v '^ *+' conftest.er1 >conftest.err
  6785. rm -f conftest.er1
  6786. cat conftest.err >&5
  6787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6788. (exit $ac_status); } &&
  6789. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6790. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6791. (eval $ac_try) 2>&5
  6792. ac_status=$?
  6793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6794. (exit $ac_status); }; } &&
  6795. { ac_try='test -s conftest.$ac_objext'
  6796. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6797. (eval $ac_try) 2>&5
  6798. ac_status=$?
  6799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6800. (exit $ac_status); }; }; then
  6801. ac_hi=$ac_mid; break
  6802. else
  6803. echo "$as_me: failed program was:" >&5
  6804. sed 's/^/| /' conftest.$ac_ext >&5
  6805. ac_lo=`expr $ac_mid + 1`
  6806. if test $ac_lo -le $ac_mid; then
  6807. ac_lo= ac_hi=
  6808. break
  6809. fi
  6810. ac_mid=`expr 2 '*' $ac_mid + 1`
  6811. fi
  6812. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6813. done
  6814. else
  6815. echo "$as_me: failed program was:" >&5
  6816. sed 's/^/| /' conftest.$ac_ext >&5
  6817. cat >conftest.$ac_ext <<_ACEOF
  6818. /* confdefs.h. */
  6819. _ACEOF
  6820. cat confdefs.h >>conftest.$ac_ext
  6821. cat >>conftest.$ac_ext <<_ACEOF
  6822. /* end confdefs.h. */
  6823. $ac_includes_default
  6824. int
  6825. main ()
  6826. {
  6827. static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
  6828. test_array [0] = 0
  6829. ;
  6830. return 0;
  6831. }
  6832. _ACEOF
  6833. rm -f conftest.$ac_objext
  6834. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6835. (eval $ac_compile) 2>conftest.er1
  6836. ac_status=$?
  6837. grep -v '^ *+' conftest.er1 >conftest.err
  6838. rm -f conftest.er1
  6839. cat conftest.err >&5
  6840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6841. (exit $ac_status); } &&
  6842. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6843. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6844. (eval $ac_try) 2>&5
  6845. ac_status=$?
  6846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6847. (exit $ac_status); }; } &&
  6848. { ac_try='test -s conftest.$ac_objext'
  6849. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6850. (eval $ac_try) 2>&5
  6851. ac_status=$?
  6852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6853. (exit $ac_status); }; }; then
  6854. ac_hi=-1 ac_mid=-1
  6855. while :; do
  6856. cat >conftest.$ac_ext <<_ACEOF
  6857. /* confdefs.h. */
  6858. _ACEOF
  6859. cat confdefs.h >>conftest.$ac_ext
  6860. cat >>conftest.$ac_ext <<_ACEOF
  6861. /* end confdefs.h. */
  6862. $ac_includes_default
  6863. int
  6864. main ()
  6865. {
  6866. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
  6867. test_array [0] = 0
  6868. ;
  6869. return 0;
  6870. }
  6871. _ACEOF
  6872. rm -f conftest.$ac_objext
  6873. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6874. (eval $ac_compile) 2>conftest.er1
  6875. ac_status=$?
  6876. grep -v '^ *+' conftest.er1 >conftest.err
  6877. rm -f conftest.er1
  6878. cat conftest.err >&5
  6879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6880. (exit $ac_status); } &&
  6881. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6882. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6883. (eval $ac_try) 2>&5
  6884. ac_status=$?
  6885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6886. (exit $ac_status); }; } &&
  6887. { ac_try='test -s conftest.$ac_objext'
  6888. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6889. (eval $ac_try) 2>&5
  6890. ac_status=$?
  6891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6892. (exit $ac_status); }; }; then
  6893. ac_lo=$ac_mid; break
  6894. else
  6895. echo "$as_me: failed program was:" >&5
  6896. sed 's/^/| /' conftest.$ac_ext >&5
  6897. ac_hi=`expr '(' $ac_mid ')' - 1`
  6898. if test $ac_mid -le $ac_hi; then
  6899. ac_lo= ac_hi=
  6900. break
  6901. fi
  6902. ac_mid=`expr 2 '*' $ac_mid`
  6903. fi
  6904. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6905. done
  6906. else
  6907. echo "$as_me: failed program was:" >&5
  6908. sed 's/^/| /' conftest.$ac_ext >&5
  6909. ac_lo= ac_hi=
  6910. fi
  6911. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6912. fi
  6913. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6914. # Binary search between lo and hi bounds.
  6915. while test "x$ac_lo" != "x$ac_hi"; do
  6916. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6917. cat >conftest.$ac_ext <<_ACEOF
  6918. /* confdefs.h. */
  6919. _ACEOF
  6920. cat confdefs.h >>conftest.$ac_ext
  6921. cat >>conftest.$ac_ext <<_ACEOF
  6922. /* end confdefs.h. */
  6923. $ac_includes_default
  6924. int
  6925. main ()
  6926. {
  6927. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  6928. test_array [0] = 0
  6929. ;
  6930. return 0;
  6931. }
  6932. _ACEOF
  6933. rm -f conftest.$ac_objext
  6934. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6935. (eval $ac_compile) 2>conftest.er1
  6936. ac_status=$?
  6937. grep -v '^ *+' conftest.er1 >conftest.err
  6938. rm -f conftest.er1
  6939. cat conftest.err >&5
  6940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6941. (exit $ac_status); } &&
  6942. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6943. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6944. (eval $ac_try) 2>&5
  6945. ac_status=$?
  6946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6947. (exit $ac_status); }; } &&
  6948. { ac_try='test -s conftest.$ac_objext'
  6949. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6950. (eval $ac_try) 2>&5
  6951. ac_status=$?
  6952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6953. (exit $ac_status); }; }; then
  6954. ac_hi=$ac_mid
  6955. else
  6956. echo "$as_me: failed program was:" >&5
  6957. sed 's/^/| /' conftest.$ac_ext >&5
  6958. ac_lo=`expr '(' $ac_mid ')' + 1`
  6959. fi
  6960. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6961. done
  6962. case $ac_lo in
  6963. ?*) ac_cv_sizeof_short=$ac_lo;;
  6964. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  6965. See \`config.log' for more details." >&5
  6966. echo "$as_me: error: cannot compute sizeof (short), 77
  6967. See \`config.log' for more details." >&2;}
  6968. { (exit 1); exit 1; }; } ;;
  6969. esac
  6970. else
  6971. if test "$cross_compiling" = yes; then
  6972. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6973. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6974. { (exit 1); exit 1; }; }
  6975. else
  6976. cat >conftest.$ac_ext <<_ACEOF
  6977. /* confdefs.h. */
  6978. _ACEOF
  6979. cat confdefs.h >>conftest.$ac_ext
  6980. cat >>conftest.$ac_ext <<_ACEOF
  6981. /* end confdefs.h. */
  6982. $ac_includes_default
  6983. long longval () { return (long) (sizeof (short)); }
  6984. unsigned long ulongval () { return (long) (sizeof (short)); }
  6985. #include <stdio.h>
  6986. #include <stdlib.h>
  6987. int
  6988. main ()
  6989. {
  6990. FILE *f = fopen ("conftest.val", "w");
  6991. if (! f)
  6992. exit (1);
  6993. if (((long) (sizeof (short))) < 0)
  6994. {
  6995. long i = longval ();
  6996. if (i != ((long) (sizeof (short))))
  6997. exit (1);
  6998. fprintf (f, "%ld\n", i);
  6999. }
  7000. else
  7001. {
  7002. unsigned long i = ulongval ();
  7003. if (i != ((long) (sizeof (short))))
  7004. exit (1);
  7005. fprintf (f, "%lu\n", i);
  7006. }
  7007. exit (ferror (f) || fclose (f) != 0);
  7008. ;
  7009. return 0;
  7010. }
  7011. _ACEOF
  7012. rm -f conftest$ac_exeext
  7013. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7014. (eval $ac_link) 2>&5
  7015. ac_status=$?
  7016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7017. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7018. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7019. (eval $ac_try) 2>&5
  7020. ac_status=$?
  7021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7022. (exit $ac_status); }; }; then
  7023. ac_cv_sizeof_short=`cat conftest.val`
  7024. else
  7025. echo "$as_me: program exited with status $ac_status" >&5
  7026. echo "$as_me: failed program was:" >&5
  7027. sed 's/^/| /' conftest.$ac_ext >&5
  7028. ( exit $ac_status )
  7029. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  7030. See \`config.log' for more details." >&5
  7031. echo "$as_me: error: cannot compute sizeof (short), 77
  7032. See \`config.log' for more details." >&2;}
  7033. { (exit 1); exit 1; }; }
  7034. fi
  7035. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7036. fi
  7037. fi
  7038. rm -f conftest.val
  7039. else
  7040. ac_cv_sizeof_short=0
  7041. fi
  7042. fi
  7043. echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  7044. echo "${ECHO_T}$ac_cv_sizeof_short" >&6
  7045. cat >>confdefs.h <<_ACEOF
  7046. #define SIZEOF_SHORT $ac_cv_sizeof_short
  7047. _ACEOF
  7048. echo "$as_me:$LINENO: checking for long" >&5
  7049. echo $ECHO_N "checking for long... $ECHO_C" >&6
  7050. if test "${ac_cv_type_long+set}" = set; then
  7051. echo $ECHO_N "(cached) $ECHO_C" >&6
  7052. else
  7053. cat >conftest.$ac_ext <<_ACEOF
  7054. /* confdefs.h. */
  7055. _ACEOF
  7056. cat confdefs.h >>conftest.$ac_ext
  7057. cat >>conftest.$ac_ext <<_ACEOF
  7058. /* end confdefs.h. */
  7059. $ac_includes_default
  7060. int
  7061. main ()
  7062. {
  7063. if ((long *) 0)
  7064. return 0;
  7065. if (sizeof (long))
  7066. return 0;
  7067. ;
  7068. return 0;
  7069. }
  7070. _ACEOF
  7071. rm -f conftest.$ac_objext
  7072. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7073. (eval $ac_compile) 2>conftest.er1
  7074. ac_status=$?
  7075. grep -v '^ *+' conftest.er1 >conftest.err
  7076. rm -f conftest.er1
  7077. cat conftest.err >&5
  7078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7079. (exit $ac_status); } &&
  7080. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7081. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7082. (eval $ac_try) 2>&5
  7083. ac_status=$?
  7084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7085. (exit $ac_status); }; } &&
  7086. { ac_try='test -s conftest.$ac_objext'
  7087. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7088. (eval $ac_try) 2>&5
  7089. ac_status=$?
  7090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7091. (exit $ac_status); }; }; then
  7092. ac_cv_type_long=yes
  7093. else
  7094. echo "$as_me: failed program was:" >&5
  7095. sed 's/^/| /' conftest.$ac_ext >&5
  7096. ac_cv_type_long=no
  7097. fi
  7098. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7099. fi
  7100. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  7101. echo "${ECHO_T}$ac_cv_type_long" >&6
  7102. echo "$as_me:$LINENO: checking size of long" >&5
  7103. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  7104. if test "${ac_cv_sizeof_long+set}" = set; then
  7105. echo $ECHO_N "(cached) $ECHO_C" >&6
  7106. else
  7107. if test "$ac_cv_type_long" = yes; then
  7108. # The cast to unsigned long works around a bug in the HP C Compiler
  7109. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7110. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7111. # This bug is HP SR number 8606223364.
  7112. if test "$cross_compiling" = yes; then
  7113. # Depending upon the size, compute the lo and hi bounds.
  7114. cat >conftest.$ac_ext <<_ACEOF
  7115. /* confdefs.h. */
  7116. _ACEOF
  7117. cat confdefs.h >>conftest.$ac_ext
  7118. cat >>conftest.$ac_ext <<_ACEOF
  7119. /* end confdefs.h. */
  7120. $ac_includes_default
  7121. int
  7122. main ()
  7123. {
  7124. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  7125. test_array [0] = 0
  7126. ;
  7127. return 0;
  7128. }
  7129. _ACEOF
  7130. rm -f conftest.$ac_objext
  7131. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7132. (eval $ac_compile) 2>conftest.er1
  7133. ac_status=$?
  7134. grep -v '^ *+' conftest.er1 >conftest.err
  7135. rm -f conftest.er1
  7136. cat conftest.err >&5
  7137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7138. (exit $ac_status); } &&
  7139. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7140. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7141. (eval $ac_try) 2>&5
  7142. ac_status=$?
  7143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7144. (exit $ac_status); }; } &&
  7145. { ac_try='test -s conftest.$ac_objext'
  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); }; }; then
  7151. ac_lo=0 ac_mid=0
  7152. while :; do
  7153. cat >conftest.$ac_ext <<_ACEOF
  7154. /* confdefs.h. */
  7155. _ACEOF
  7156. cat confdefs.h >>conftest.$ac_ext
  7157. cat >>conftest.$ac_ext <<_ACEOF
  7158. /* end confdefs.h. */
  7159. $ac_includes_default
  7160. int
  7161. main ()
  7162. {
  7163. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  7164. test_array [0] = 0
  7165. ;
  7166. return 0;
  7167. }
  7168. _ACEOF
  7169. rm -f conftest.$ac_objext
  7170. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7171. (eval $ac_compile) 2>conftest.er1
  7172. ac_status=$?
  7173. grep -v '^ *+' conftest.er1 >conftest.err
  7174. rm -f conftest.er1
  7175. cat conftest.err >&5
  7176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7177. (exit $ac_status); } &&
  7178. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7179. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7180. (eval $ac_try) 2>&5
  7181. ac_status=$?
  7182. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7183. (exit $ac_status); }; } &&
  7184. { ac_try='test -s conftest.$ac_objext'
  7185. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7186. (eval $ac_try) 2>&5
  7187. ac_status=$?
  7188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7189. (exit $ac_status); }; }; then
  7190. ac_hi=$ac_mid; break
  7191. else
  7192. echo "$as_me: failed program was:" >&5
  7193. sed 's/^/| /' conftest.$ac_ext >&5
  7194. ac_lo=`expr $ac_mid + 1`
  7195. if test $ac_lo -le $ac_mid; then
  7196. ac_lo= ac_hi=
  7197. break
  7198. fi
  7199. ac_mid=`expr 2 '*' $ac_mid + 1`
  7200. fi
  7201. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7202. done
  7203. else
  7204. echo "$as_me: failed program was:" >&5
  7205. sed 's/^/| /' conftest.$ac_ext >&5
  7206. cat >conftest.$ac_ext <<_ACEOF
  7207. /* confdefs.h. */
  7208. _ACEOF
  7209. cat confdefs.h >>conftest.$ac_ext
  7210. cat >>conftest.$ac_ext <<_ACEOF
  7211. /* end confdefs.h. */
  7212. $ac_includes_default
  7213. int
  7214. main ()
  7215. {
  7216. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  7217. test_array [0] = 0
  7218. ;
  7219. return 0;
  7220. }
  7221. _ACEOF
  7222. rm -f conftest.$ac_objext
  7223. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7224. (eval $ac_compile) 2>conftest.er1
  7225. ac_status=$?
  7226. grep -v '^ *+' conftest.er1 >conftest.err
  7227. rm -f conftest.er1
  7228. cat conftest.err >&5
  7229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7230. (exit $ac_status); } &&
  7231. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7232. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7233. (eval $ac_try) 2>&5
  7234. ac_status=$?
  7235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7236. (exit $ac_status); }; } &&
  7237. { ac_try='test -s conftest.$ac_objext'
  7238. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7239. (eval $ac_try) 2>&5
  7240. ac_status=$?
  7241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7242. (exit $ac_status); }; }; then
  7243. ac_hi=-1 ac_mid=-1
  7244. while :; do
  7245. cat >conftest.$ac_ext <<_ACEOF
  7246. /* confdefs.h. */
  7247. _ACEOF
  7248. cat confdefs.h >>conftest.$ac_ext
  7249. cat >>conftest.$ac_ext <<_ACEOF
  7250. /* end confdefs.h. */
  7251. $ac_includes_default
  7252. int
  7253. main ()
  7254. {
  7255. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  7256. test_array [0] = 0
  7257. ;
  7258. return 0;
  7259. }
  7260. _ACEOF
  7261. rm -f conftest.$ac_objext
  7262. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7263. (eval $ac_compile) 2>conftest.er1
  7264. ac_status=$?
  7265. grep -v '^ *+' conftest.er1 >conftest.err
  7266. rm -f conftest.er1
  7267. cat conftest.err >&5
  7268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7269. (exit $ac_status); } &&
  7270. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7271. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7272. (eval $ac_try) 2>&5
  7273. ac_status=$?
  7274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7275. (exit $ac_status); }; } &&
  7276. { ac_try='test -s conftest.$ac_objext'
  7277. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7278. (eval $ac_try) 2>&5
  7279. ac_status=$?
  7280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7281. (exit $ac_status); }; }; then
  7282. ac_lo=$ac_mid; break
  7283. else
  7284. echo "$as_me: failed program was:" >&5
  7285. sed 's/^/| /' conftest.$ac_ext >&5
  7286. ac_hi=`expr '(' $ac_mid ')' - 1`
  7287. if test $ac_mid -le $ac_hi; then
  7288. ac_lo= ac_hi=
  7289. break
  7290. fi
  7291. ac_mid=`expr 2 '*' $ac_mid`
  7292. fi
  7293. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7294. done
  7295. else
  7296. echo "$as_me: failed program was:" >&5
  7297. sed 's/^/| /' conftest.$ac_ext >&5
  7298. ac_lo= ac_hi=
  7299. fi
  7300. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7301. fi
  7302. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7303. # Binary search between lo and hi bounds.
  7304. while test "x$ac_lo" != "x$ac_hi"; do
  7305. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7306. cat >conftest.$ac_ext <<_ACEOF
  7307. /* confdefs.h. */
  7308. _ACEOF
  7309. cat confdefs.h >>conftest.$ac_ext
  7310. cat >>conftest.$ac_ext <<_ACEOF
  7311. /* end confdefs.h. */
  7312. $ac_includes_default
  7313. int
  7314. main ()
  7315. {
  7316. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  7317. test_array [0] = 0
  7318. ;
  7319. return 0;
  7320. }
  7321. _ACEOF
  7322. rm -f conftest.$ac_objext
  7323. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7324. (eval $ac_compile) 2>conftest.er1
  7325. ac_status=$?
  7326. grep -v '^ *+' conftest.er1 >conftest.err
  7327. rm -f conftest.er1
  7328. cat conftest.err >&5
  7329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7330. (exit $ac_status); } &&
  7331. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7332. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7333. (eval $ac_try) 2>&5
  7334. ac_status=$?
  7335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7336. (exit $ac_status); }; } &&
  7337. { ac_try='test -s conftest.$ac_objext'
  7338. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7339. (eval $ac_try) 2>&5
  7340. ac_status=$?
  7341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7342. (exit $ac_status); }; }; then
  7343. ac_hi=$ac_mid
  7344. else
  7345. echo "$as_me: failed program was:" >&5
  7346. sed 's/^/| /' conftest.$ac_ext >&5
  7347. ac_lo=`expr '(' $ac_mid ')' + 1`
  7348. fi
  7349. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7350. done
  7351. case $ac_lo in
  7352. ?*) ac_cv_sizeof_long=$ac_lo;;
  7353. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  7354. See \`config.log' for more details." >&5
  7355. echo "$as_me: error: cannot compute sizeof (long), 77
  7356. See \`config.log' for more details." >&2;}
  7357. { (exit 1); exit 1; }; } ;;
  7358. esac
  7359. else
  7360. if test "$cross_compiling" = yes; then
  7361. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7362. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7363. { (exit 1); exit 1; }; }
  7364. else
  7365. cat >conftest.$ac_ext <<_ACEOF
  7366. /* confdefs.h. */
  7367. _ACEOF
  7368. cat confdefs.h >>conftest.$ac_ext
  7369. cat >>conftest.$ac_ext <<_ACEOF
  7370. /* end confdefs.h. */
  7371. $ac_includes_default
  7372. long longval () { return (long) (sizeof (long)); }
  7373. unsigned long ulongval () { return (long) (sizeof (long)); }
  7374. #include <stdio.h>
  7375. #include <stdlib.h>
  7376. int
  7377. main ()
  7378. {
  7379. FILE *f = fopen ("conftest.val", "w");
  7380. if (! f)
  7381. exit (1);
  7382. if (((long) (sizeof (long))) < 0)
  7383. {
  7384. long i = longval ();
  7385. if (i != ((long) (sizeof (long))))
  7386. exit (1);
  7387. fprintf (f, "%ld\n", i);
  7388. }
  7389. else
  7390. {
  7391. unsigned long i = ulongval ();
  7392. if (i != ((long) (sizeof (long))))
  7393. exit (1);
  7394. fprintf (f, "%lu\n", i);
  7395. }
  7396. exit (ferror (f) || fclose (f) != 0);
  7397. ;
  7398. return 0;
  7399. }
  7400. _ACEOF
  7401. rm -f conftest$ac_exeext
  7402. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7403. (eval $ac_link) 2>&5
  7404. ac_status=$?
  7405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7406. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7407. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7408. (eval $ac_try) 2>&5
  7409. ac_status=$?
  7410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7411. (exit $ac_status); }; }; then
  7412. ac_cv_sizeof_long=`cat conftest.val`
  7413. else
  7414. echo "$as_me: program exited with status $ac_status" >&5
  7415. echo "$as_me: failed program was:" >&5
  7416. sed 's/^/| /' conftest.$ac_ext >&5
  7417. ( exit $ac_status )
  7418. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  7419. See \`config.log' for more details." >&5
  7420. echo "$as_me: error: cannot compute sizeof (long), 77
  7421. See \`config.log' for more details." >&2;}
  7422. { (exit 1); exit 1; }; }
  7423. fi
  7424. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7425. fi
  7426. fi
  7427. rm -f conftest.val
  7428. else
  7429. ac_cv_sizeof_long=0
  7430. fi
  7431. fi
  7432. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  7433. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  7434. cat >>confdefs.h <<_ACEOF
  7435. #define SIZEOF_LONG $ac_cv_sizeof_long
  7436. _ACEOF
  7437. echo "$as_me:$LINENO: checking for long long" >&5
  7438. echo $ECHO_N "checking for long long... $ECHO_C" >&6
  7439. if test "${ac_cv_type_long_long+set}" = set; then
  7440. echo $ECHO_N "(cached) $ECHO_C" >&6
  7441. else
  7442. cat >conftest.$ac_ext <<_ACEOF
  7443. /* confdefs.h. */
  7444. _ACEOF
  7445. cat confdefs.h >>conftest.$ac_ext
  7446. cat >>conftest.$ac_ext <<_ACEOF
  7447. /* end confdefs.h. */
  7448. $ac_includes_default
  7449. int
  7450. main ()
  7451. {
  7452. if ((long long *) 0)
  7453. return 0;
  7454. if (sizeof (long long))
  7455. return 0;
  7456. ;
  7457. return 0;
  7458. }
  7459. _ACEOF
  7460. rm -f conftest.$ac_objext
  7461. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7462. (eval $ac_compile) 2>conftest.er1
  7463. ac_status=$?
  7464. grep -v '^ *+' conftest.er1 >conftest.err
  7465. rm -f conftest.er1
  7466. cat conftest.err >&5
  7467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7468. (exit $ac_status); } &&
  7469. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7470. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7471. (eval $ac_try) 2>&5
  7472. ac_status=$?
  7473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7474. (exit $ac_status); }; } &&
  7475. { ac_try='test -s conftest.$ac_objext'
  7476. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7477. (eval $ac_try) 2>&5
  7478. ac_status=$?
  7479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7480. (exit $ac_status); }; }; then
  7481. ac_cv_type_long_long=yes
  7482. else
  7483. echo "$as_me: failed program was:" >&5
  7484. sed 's/^/| /' conftest.$ac_ext >&5
  7485. ac_cv_type_long_long=no
  7486. fi
  7487. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7488. fi
  7489. echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  7490. echo "${ECHO_T}$ac_cv_type_long_long" >&6
  7491. echo "$as_me:$LINENO: checking size of long long" >&5
  7492. echo $ECHO_N "checking size of long long... $ECHO_C" >&6
  7493. if test "${ac_cv_sizeof_long_long+set}" = set; then
  7494. echo $ECHO_N "(cached) $ECHO_C" >&6
  7495. else
  7496. if test "$ac_cv_type_long_long" = yes; then
  7497. # The cast to unsigned long works around a bug in the HP C Compiler
  7498. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7499. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7500. # This bug is HP SR number 8606223364.
  7501. if test "$cross_compiling" = yes; then
  7502. # Depending upon the size, compute the lo and hi bounds.
  7503. cat >conftest.$ac_ext <<_ACEOF
  7504. /* confdefs.h. */
  7505. _ACEOF
  7506. cat confdefs.h >>conftest.$ac_ext
  7507. cat >>conftest.$ac_ext <<_ACEOF
  7508. /* end confdefs.h. */
  7509. $ac_includes_default
  7510. int
  7511. main ()
  7512. {
  7513. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
  7514. test_array [0] = 0
  7515. ;
  7516. return 0;
  7517. }
  7518. _ACEOF
  7519. rm -f conftest.$ac_objext
  7520. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7521. (eval $ac_compile) 2>conftest.er1
  7522. ac_status=$?
  7523. grep -v '^ *+' conftest.er1 >conftest.err
  7524. rm -f conftest.er1
  7525. cat conftest.err >&5
  7526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7527. (exit $ac_status); } &&
  7528. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7529. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7530. (eval $ac_try) 2>&5
  7531. ac_status=$?
  7532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7533. (exit $ac_status); }; } &&
  7534. { ac_try='test -s conftest.$ac_objext'
  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); }; }; then
  7540. ac_lo=0 ac_mid=0
  7541. while :; do
  7542. cat >conftest.$ac_ext <<_ACEOF
  7543. /* confdefs.h. */
  7544. _ACEOF
  7545. cat confdefs.h >>conftest.$ac_ext
  7546. cat >>conftest.$ac_ext <<_ACEOF
  7547. /* end confdefs.h. */
  7548. $ac_includes_default
  7549. int
  7550. main ()
  7551. {
  7552. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  7553. test_array [0] = 0
  7554. ;
  7555. return 0;
  7556. }
  7557. _ACEOF
  7558. rm -f conftest.$ac_objext
  7559. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7560. (eval $ac_compile) 2>conftest.er1
  7561. ac_status=$?
  7562. grep -v '^ *+' conftest.er1 >conftest.err
  7563. rm -f conftest.er1
  7564. cat conftest.err >&5
  7565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7566. (exit $ac_status); } &&
  7567. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7568. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7569. (eval $ac_try) 2>&5
  7570. ac_status=$?
  7571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7572. (exit $ac_status); }; } &&
  7573. { ac_try='test -s conftest.$ac_objext'
  7574. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7575. (eval $ac_try) 2>&5
  7576. ac_status=$?
  7577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7578. (exit $ac_status); }; }; then
  7579. ac_hi=$ac_mid; break
  7580. else
  7581. echo "$as_me: failed program was:" >&5
  7582. sed 's/^/| /' conftest.$ac_ext >&5
  7583. ac_lo=`expr $ac_mid + 1`
  7584. if test $ac_lo -le $ac_mid; then
  7585. ac_lo= ac_hi=
  7586. break
  7587. fi
  7588. ac_mid=`expr 2 '*' $ac_mid + 1`
  7589. fi
  7590. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7591. done
  7592. else
  7593. echo "$as_me: failed program was:" >&5
  7594. sed 's/^/| /' conftest.$ac_ext >&5
  7595. cat >conftest.$ac_ext <<_ACEOF
  7596. /* confdefs.h. */
  7597. _ACEOF
  7598. cat confdefs.h >>conftest.$ac_ext
  7599. cat >>conftest.$ac_ext <<_ACEOF
  7600. /* end confdefs.h. */
  7601. $ac_includes_default
  7602. int
  7603. main ()
  7604. {
  7605. static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
  7606. test_array [0] = 0
  7607. ;
  7608. return 0;
  7609. }
  7610. _ACEOF
  7611. rm -f conftest.$ac_objext
  7612. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7613. (eval $ac_compile) 2>conftest.er1
  7614. ac_status=$?
  7615. grep -v '^ *+' conftest.er1 >conftest.err
  7616. rm -f conftest.er1
  7617. cat conftest.err >&5
  7618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7619. (exit $ac_status); } &&
  7620. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7621. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7622. (eval $ac_try) 2>&5
  7623. ac_status=$?
  7624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7625. (exit $ac_status); }; } &&
  7626. { ac_try='test -s conftest.$ac_objext'
  7627. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7628. (eval $ac_try) 2>&5
  7629. ac_status=$?
  7630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7631. (exit $ac_status); }; }; then
  7632. ac_hi=-1 ac_mid=-1
  7633. while :; do
  7634. cat >conftest.$ac_ext <<_ACEOF
  7635. /* confdefs.h. */
  7636. _ACEOF
  7637. cat confdefs.h >>conftest.$ac_ext
  7638. cat >>conftest.$ac_ext <<_ACEOF
  7639. /* end confdefs.h. */
  7640. $ac_includes_default
  7641. int
  7642. main ()
  7643. {
  7644. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
  7645. test_array [0] = 0
  7646. ;
  7647. return 0;
  7648. }
  7649. _ACEOF
  7650. rm -f conftest.$ac_objext
  7651. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7652. (eval $ac_compile) 2>conftest.er1
  7653. ac_status=$?
  7654. grep -v '^ *+' conftest.er1 >conftest.err
  7655. rm -f conftest.er1
  7656. cat conftest.err >&5
  7657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7658. (exit $ac_status); } &&
  7659. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7660. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7661. (eval $ac_try) 2>&5
  7662. ac_status=$?
  7663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7664. (exit $ac_status); }; } &&
  7665. { ac_try='test -s conftest.$ac_objext'
  7666. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7667. (eval $ac_try) 2>&5
  7668. ac_status=$?
  7669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7670. (exit $ac_status); }; }; then
  7671. ac_lo=$ac_mid; break
  7672. else
  7673. echo "$as_me: failed program was:" >&5
  7674. sed 's/^/| /' conftest.$ac_ext >&5
  7675. ac_hi=`expr '(' $ac_mid ')' - 1`
  7676. if test $ac_mid -le $ac_hi; then
  7677. ac_lo= ac_hi=
  7678. break
  7679. fi
  7680. ac_mid=`expr 2 '*' $ac_mid`
  7681. fi
  7682. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7683. done
  7684. else
  7685. echo "$as_me: failed program was:" >&5
  7686. sed 's/^/| /' conftest.$ac_ext >&5
  7687. ac_lo= ac_hi=
  7688. fi
  7689. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7690. fi
  7691. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7692. # Binary search between lo and hi bounds.
  7693. while test "x$ac_lo" != "x$ac_hi"; do
  7694. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7695. cat >conftest.$ac_ext <<_ACEOF
  7696. /* confdefs.h. */
  7697. _ACEOF
  7698. cat confdefs.h >>conftest.$ac_ext
  7699. cat >>conftest.$ac_ext <<_ACEOF
  7700. /* end confdefs.h. */
  7701. $ac_includes_default
  7702. int
  7703. main ()
  7704. {
  7705. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  7706. test_array [0] = 0
  7707. ;
  7708. return 0;
  7709. }
  7710. _ACEOF
  7711. rm -f conftest.$ac_objext
  7712. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7713. (eval $ac_compile) 2>conftest.er1
  7714. ac_status=$?
  7715. grep -v '^ *+' conftest.er1 >conftest.err
  7716. rm -f conftest.er1
  7717. cat conftest.err >&5
  7718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7719. (exit $ac_status); } &&
  7720. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7721. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7722. (eval $ac_try) 2>&5
  7723. ac_status=$?
  7724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7725. (exit $ac_status); }; } &&
  7726. { ac_try='test -s conftest.$ac_objext'
  7727. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7728. (eval $ac_try) 2>&5
  7729. ac_status=$?
  7730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7731. (exit $ac_status); }; }; then
  7732. ac_hi=$ac_mid
  7733. else
  7734. echo "$as_me: failed program was:" >&5
  7735. sed 's/^/| /' conftest.$ac_ext >&5
  7736. ac_lo=`expr '(' $ac_mid ')' + 1`
  7737. fi
  7738. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7739. done
  7740. case $ac_lo in
  7741. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  7742. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  7743. See \`config.log' for more details." >&5
  7744. echo "$as_me: error: cannot compute sizeof (long long), 77
  7745. See \`config.log' for more details." >&2;}
  7746. { (exit 1); exit 1; }; } ;;
  7747. esac
  7748. else
  7749. if test "$cross_compiling" = yes; then
  7750. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7751. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7752. { (exit 1); exit 1; }; }
  7753. else
  7754. cat >conftest.$ac_ext <<_ACEOF
  7755. /* confdefs.h. */
  7756. _ACEOF
  7757. cat confdefs.h >>conftest.$ac_ext
  7758. cat >>conftest.$ac_ext <<_ACEOF
  7759. /* end confdefs.h. */
  7760. $ac_includes_default
  7761. long longval () { return (long) (sizeof (long long)); }
  7762. unsigned long ulongval () { return (long) (sizeof (long long)); }
  7763. #include <stdio.h>
  7764. #include <stdlib.h>
  7765. int
  7766. main ()
  7767. {
  7768. FILE *f = fopen ("conftest.val", "w");
  7769. if (! f)
  7770. exit (1);
  7771. if (((long) (sizeof (long long))) < 0)
  7772. {
  7773. long i = longval ();
  7774. if (i != ((long) (sizeof (long long))))
  7775. exit (1);
  7776. fprintf (f, "%ld\n", i);
  7777. }
  7778. else
  7779. {
  7780. unsigned long i = ulongval ();
  7781. if (i != ((long) (sizeof (long long))))
  7782. exit (1);
  7783. fprintf (f, "%lu\n", i);
  7784. }
  7785. exit (ferror (f) || fclose (f) != 0);
  7786. ;
  7787. return 0;
  7788. }
  7789. _ACEOF
  7790. rm -f conftest$ac_exeext
  7791. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7792. (eval $ac_link) 2>&5
  7793. ac_status=$?
  7794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7795. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7796. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7797. (eval $ac_try) 2>&5
  7798. ac_status=$?
  7799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7800. (exit $ac_status); }; }; then
  7801. ac_cv_sizeof_long_long=`cat conftest.val`
  7802. else
  7803. echo "$as_me: program exited with status $ac_status" >&5
  7804. echo "$as_me: failed program was:" >&5
  7805. sed 's/^/| /' conftest.$ac_ext >&5
  7806. ( exit $ac_status )
  7807. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  7808. See \`config.log' for more details." >&5
  7809. echo "$as_me: error: cannot compute sizeof (long long), 77
  7810. See \`config.log' for more details." >&2;}
  7811. { (exit 1); exit 1; }; }
  7812. fi
  7813. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7814. fi
  7815. fi
  7816. rm -f conftest.val
  7817. else
  7818. ac_cv_sizeof_long_long=0
  7819. fi
  7820. fi
  7821. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  7822. echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
  7823. cat >>confdefs.h <<_ACEOF
  7824. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  7825. _ACEOF
  7826. if test $ac_cv_c_compiler_gnu = yes; then
  7827. echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  7828. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  7829. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  7830. echo $ECHO_N "(cached) $ECHO_C" >&6
  7831. else
  7832. ac_pattern="Autoconf.*'x'"
  7833. cat >conftest.$ac_ext <<_ACEOF
  7834. /* confdefs.h. */
  7835. _ACEOF
  7836. cat confdefs.h >>conftest.$ac_ext
  7837. cat >>conftest.$ac_ext <<_ACEOF
  7838. /* end confdefs.h. */
  7839. #include <sgtty.h>
  7840. Autoconf TIOCGETP
  7841. _ACEOF
  7842. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7843. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7844. ac_cv_prog_gcc_traditional=yes
  7845. else
  7846. ac_cv_prog_gcc_traditional=no
  7847. fi
  7848. rm -f conftest*
  7849. if test $ac_cv_prog_gcc_traditional = no; then
  7850. cat >conftest.$ac_ext <<_ACEOF
  7851. /* confdefs.h. */
  7852. _ACEOF
  7853. cat confdefs.h >>conftest.$ac_ext
  7854. cat >>conftest.$ac_ext <<_ACEOF
  7855. /* end confdefs.h. */
  7856. #include <termio.h>
  7857. Autoconf TCGETA
  7858. _ACEOF
  7859. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7860. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7861. ac_cv_prog_gcc_traditional=yes
  7862. fi
  7863. rm -f conftest*
  7864. fi
  7865. fi
  7866. echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  7867. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  7868. if test $ac_cv_prog_gcc_traditional = yes; then
  7869. CC="$CC -traditional"
  7870. fi
  7871. fi
  7872. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7873. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7874. if test "${ac_cv_struct_tm+set}" = set; then
  7875. echo $ECHO_N "(cached) $ECHO_C" >&6
  7876. else
  7877. cat >conftest.$ac_ext <<_ACEOF
  7878. /* confdefs.h. */
  7879. _ACEOF
  7880. cat confdefs.h >>conftest.$ac_ext
  7881. cat >>conftest.$ac_ext <<_ACEOF
  7882. /* end confdefs.h. */
  7883. #include <sys/types.h>
  7884. #include <time.h>
  7885. int
  7886. main ()
  7887. {
  7888. struct tm *tp; tp->tm_sec;
  7889. ;
  7890. return 0;
  7891. }
  7892. _ACEOF
  7893. rm -f conftest.$ac_objext
  7894. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7895. (eval $ac_compile) 2>conftest.er1
  7896. ac_status=$?
  7897. grep -v '^ *+' conftest.er1 >conftest.err
  7898. rm -f conftest.er1
  7899. cat conftest.err >&5
  7900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7901. (exit $ac_status); } &&
  7902. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7903. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7904. (eval $ac_try) 2>&5
  7905. ac_status=$?
  7906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7907. (exit $ac_status); }; } &&
  7908. { ac_try='test -s conftest.$ac_objext'
  7909. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7910. (eval $ac_try) 2>&5
  7911. ac_status=$?
  7912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7913. (exit $ac_status); }; }; then
  7914. ac_cv_struct_tm=time.h
  7915. else
  7916. echo "$as_me: failed program was:" >&5
  7917. sed 's/^/| /' conftest.$ac_ext >&5
  7918. ac_cv_struct_tm=sys/time.h
  7919. fi
  7920. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7921. fi
  7922. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7923. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7924. if test $ac_cv_struct_tm = sys/time.h; then
  7925. cat >>confdefs.h <<\_ACEOF
  7926. #define TM_IN_SYS_TIME 1
  7927. _ACEOF
  7928. fi
  7929. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  7930. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  7931. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  7932. echo $ECHO_N "(cached) $ECHO_C" >&6
  7933. else
  7934. cat >conftest.$ac_ext <<_ACEOF
  7935. /* confdefs.h. */
  7936. _ACEOF
  7937. cat confdefs.h >>conftest.$ac_ext
  7938. cat >>conftest.$ac_ext <<_ACEOF
  7939. /* end confdefs.h. */
  7940. #include <sys/types.h>
  7941. #include <$ac_cv_struct_tm>
  7942. int
  7943. main ()
  7944. {
  7945. static struct tm ac_aggr;
  7946. if (ac_aggr.tm_zone)
  7947. return 0;
  7948. ;
  7949. return 0;
  7950. }
  7951. _ACEOF
  7952. rm -f conftest.$ac_objext
  7953. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7954. (eval $ac_compile) 2>conftest.er1
  7955. ac_status=$?
  7956. grep -v '^ *+' conftest.er1 >conftest.err
  7957. rm -f conftest.er1
  7958. cat conftest.err >&5
  7959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7960. (exit $ac_status); } &&
  7961. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7962. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7963. (eval $ac_try) 2>&5
  7964. ac_status=$?
  7965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7966. (exit $ac_status); }; } &&
  7967. { ac_try='test -s conftest.$ac_objext'
  7968. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7969. (eval $ac_try) 2>&5
  7970. ac_status=$?
  7971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7972. (exit $ac_status); }; }; then
  7973. ac_cv_member_struct_tm_tm_zone=yes
  7974. else
  7975. echo "$as_me: failed program was:" >&5
  7976. sed 's/^/| /' conftest.$ac_ext >&5
  7977. cat >conftest.$ac_ext <<_ACEOF
  7978. /* confdefs.h. */
  7979. _ACEOF
  7980. cat confdefs.h >>conftest.$ac_ext
  7981. cat >>conftest.$ac_ext <<_ACEOF
  7982. /* end confdefs.h. */
  7983. #include <sys/types.h>
  7984. #include <$ac_cv_struct_tm>
  7985. int
  7986. main ()
  7987. {
  7988. static struct tm ac_aggr;
  7989. if (sizeof ac_aggr.tm_zone)
  7990. return 0;
  7991. ;
  7992. return 0;
  7993. }
  7994. _ACEOF
  7995. rm -f conftest.$ac_objext
  7996. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7997. (eval $ac_compile) 2>conftest.er1
  7998. ac_status=$?
  7999. grep -v '^ *+' conftest.er1 >conftest.err
  8000. rm -f conftest.er1
  8001. cat conftest.err >&5
  8002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8003. (exit $ac_status); } &&
  8004. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8005. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8006. (eval $ac_try) 2>&5
  8007. ac_status=$?
  8008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8009. (exit $ac_status); }; } &&
  8010. { ac_try='test -s conftest.$ac_objext'
  8011. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8012. (eval $ac_try) 2>&5
  8013. ac_status=$?
  8014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8015. (exit $ac_status); }; }; then
  8016. ac_cv_member_struct_tm_tm_zone=yes
  8017. else
  8018. echo "$as_me: failed program was:" >&5
  8019. sed 's/^/| /' conftest.$ac_ext >&5
  8020. ac_cv_member_struct_tm_tm_zone=no
  8021. fi
  8022. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8023. fi
  8024. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8025. fi
  8026. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  8027. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  8028. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  8029. cat >>confdefs.h <<_ACEOF
  8030. #define HAVE_STRUCT_TM_TM_ZONE 1
  8031. _ACEOF
  8032. fi
  8033. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  8034. cat >>confdefs.h <<\_ACEOF
  8035. #define HAVE_TM_ZONE 1
  8036. _ACEOF
  8037. else
  8038. echo "$as_me:$LINENO: checking for tzname" >&5
  8039. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  8040. if test "${ac_cv_var_tzname+set}" = set; then
  8041. echo $ECHO_N "(cached) $ECHO_C" >&6
  8042. else
  8043. cat >conftest.$ac_ext <<_ACEOF
  8044. /* confdefs.h. */
  8045. _ACEOF
  8046. cat confdefs.h >>conftest.$ac_ext
  8047. cat >>conftest.$ac_ext <<_ACEOF
  8048. /* end confdefs.h. */
  8049. #include <time.h>
  8050. #ifndef tzname /* For SGI. */
  8051. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  8052. #endif
  8053. int
  8054. main ()
  8055. {
  8056. atoi(*tzname);
  8057. ;
  8058. return 0;
  8059. }
  8060. _ACEOF
  8061. rm -f conftest.$ac_objext conftest$ac_exeext
  8062. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8063. (eval $ac_link) 2>conftest.er1
  8064. ac_status=$?
  8065. grep -v '^ *+' conftest.er1 >conftest.err
  8066. rm -f conftest.er1
  8067. cat conftest.err >&5
  8068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8069. (exit $ac_status); } &&
  8070. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8071. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8072. (eval $ac_try) 2>&5
  8073. ac_status=$?
  8074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8075. (exit $ac_status); }; } &&
  8076. { ac_try='test -s conftest$ac_exeext'
  8077. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8078. (eval $ac_try) 2>&5
  8079. ac_status=$?
  8080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8081. (exit $ac_status); }; }; then
  8082. ac_cv_var_tzname=yes
  8083. else
  8084. echo "$as_me: failed program was:" >&5
  8085. sed 's/^/| /' conftest.$ac_ext >&5
  8086. ac_cv_var_tzname=no
  8087. fi
  8088. rm -f conftest.err conftest.$ac_objext \
  8089. conftest$ac_exeext conftest.$ac_ext
  8090. fi
  8091. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  8092. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  8093. if test $ac_cv_var_tzname = yes; then
  8094. cat >>confdefs.h <<\_ACEOF
  8095. #define HAVE_TZNAME 1
  8096. _ACEOF
  8097. fi
  8098. fi
  8099. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8100. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  8101. if test "${ac_cv_struct_tm+set}" = set; then
  8102. echo $ECHO_N "(cached) $ECHO_C" >&6
  8103. else
  8104. cat >conftest.$ac_ext <<_ACEOF
  8105. /* confdefs.h. */
  8106. _ACEOF
  8107. cat confdefs.h >>conftest.$ac_ext
  8108. cat >>conftest.$ac_ext <<_ACEOF
  8109. /* end confdefs.h. */
  8110. #include <sys/types.h>
  8111. #include <time.h>
  8112. int
  8113. main ()
  8114. {
  8115. struct tm *tp; tp->tm_sec;
  8116. ;
  8117. return 0;
  8118. }
  8119. _ACEOF
  8120. rm -f conftest.$ac_objext
  8121. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8122. (eval $ac_compile) 2>conftest.er1
  8123. ac_status=$?
  8124. grep -v '^ *+' conftest.er1 >conftest.err
  8125. rm -f conftest.er1
  8126. cat conftest.err >&5
  8127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8128. (exit $ac_status); } &&
  8129. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8130. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8131. (eval $ac_try) 2>&5
  8132. ac_status=$?
  8133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8134. (exit $ac_status); }; } &&
  8135. { ac_try='test -s conftest.$ac_objext'
  8136. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8137. (eval $ac_try) 2>&5
  8138. ac_status=$?
  8139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8140. (exit $ac_status); }; }; then
  8141. ac_cv_struct_tm=time.h
  8142. else
  8143. echo "$as_me: failed program was:" >&5
  8144. sed 's/^/| /' conftest.$ac_ext >&5
  8145. ac_cv_struct_tm=sys/time.h
  8146. fi
  8147. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8148. fi
  8149. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8150. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  8151. if test $ac_cv_struct_tm = sys/time.h; then
  8152. cat >>confdefs.h <<\_ACEOF
  8153. #define TM_IN_SYS_TIME 1
  8154. _ACEOF
  8155. fi
  8156. #checkpoint
  8157. cat >confcache <<\_ACEOF
  8158. # This file is a shell script that caches the results of configure
  8159. # tests run on this system so they can be shared between configure
  8160. # scripts and configure runs, see configure's option --config-cache.
  8161. # It is not useful on other systems. If it contains results you don't
  8162. # want to keep, you may remove or edit it.
  8163. #
  8164. # config.status only pays attention to the cache file if you give it
  8165. # the --recheck option to rerun configure.
  8166. #
  8167. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8168. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8169. # following values.
  8170. _ACEOF
  8171. # The following way of writing the cache mishandles newlines in values,
  8172. # but we know of no workaround that is simple, portable, and efficient.
  8173. # So, don't put newlines in cache variables' values.
  8174. # Ultrix sh set writes to stderr and can't be redirected directly,
  8175. # and sets the high bit in the cache file unless we assign to the vars.
  8176. {
  8177. (set) 2>&1 |
  8178. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8179. *ac_space=\ *)
  8180. # `set' does not quote correctly, so add quotes (double-quote
  8181. # substitution turns \\\\ into \\, and sed turns \\ into \).
  8182. sed -n \
  8183. "s/'/'\\\\''/g;
  8184. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8185. ;;
  8186. *)
  8187. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8188. sed -n \
  8189. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8190. ;;
  8191. esac;
  8192. } |
  8193. sed '
  8194. t clear
  8195. : clear
  8196. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8197. t end
  8198. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8199. : end' >>confcache
  8200. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  8201. if test -w $cache_file; then
  8202. test "x$cache_file" != "x/dev/null"
  8203. cat confcache >$cache_file
  8204. else
  8205. echo "not updating unwritable cache $cache_file"
  8206. fi
  8207. fi
  8208. rm -f confcache
  8209. # Checks for library functions
  8210. for ac_header in unistd.h vfork.h
  8211. do
  8212. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8213. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8214. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8215. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8216. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8217. echo $ECHO_N "(cached) $ECHO_C" >&6
  8218. fi
  8219. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8220. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8221. else
  8222. # Is the header compilable?
  8223. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8224. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8225. cat >conftest.$ac_ext <<_ACEOF
  8226. /* confdefs.h. */
  8227. _ACEOF
  8228. cat confdefs.h >>conftest.$ac_ext
  8229. cat >>conftest.$ac_ext <<_ACEOF
  8230. /* end confdefs.h. */
  8231. $ac_includes_default
  8232. #include <$ac_header>
  8233. _ACEOF
  8234. rm -f conftest.$ac_objext
  8235. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8236. (eval $ac_compile) 2>conftest.er1
  8237. ac_status=$?
  8238. grep -v '^ *+' conftest.er1 >conftest.err
  8239. rm -f conftest.er1
  8240. cat conftest.err >&5
  8241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8242. (exit $ac_status); } &&
  8243. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8244. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8245. (eval $ac_try) 2>&5
  8246. ac_status=$?
  8247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8248. (exit $ac_status); }; } &&
  8249. { ac_try='test -s conftest.$ac_objext'
  8250. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8251. (eval $ac_try) 2>&5
  8252. ac_status=$?
  8253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8254. (exit $ac_status); }; }; then
  8255. ac_header_compiler=yes
  8256. else
  8257. echo "$as_me: failed program was:" >&5
  8258. sed 's/^/| /' conftest.$ac_ext >&5
  8259. ac_header_compiler=no
  8260. fi
  8261. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8262. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8263. echo "${ECHO_T}$ac_header_compiler" >&6
  8264. # Is the header present?
  8265. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8266. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8267. cat >conftest.$ac_ext <<_ACEOF
  8268. /* confdefs.h. */
  8269. _ACEOF
  8270. cat confdefs.h >>conftest.$ac_ext
  8271. cat >>conftest.$ac_ext <<_ACEOF
  8272. /* end confdefs.h. */
  8273. #include <$ac_header>
  8274. _ACEOF
  8275. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8276. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8277. ac_status=$?
  8278. grep -v '^ *+' conftest.er1 >conftest.err
  8279. rm -f conftest.er1
  8280. cat conftest.err >&5
  8281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8282. (exit $ac_status); } >/dev/null; then
  8283. if test -s conftest.err; then
  8284. ac_cpp_err=$ac_c_preproc_warn_flag
  8285. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8286. else
  8287. ac_cpp_err=
  8288. fi
  8289. else
  8290. ac_cpp_err=yes
  8291. fi
  8292. if test -z "$ac_cpp_err"; then
  8293. ac_header_preproc=yes
  8294. else
  8295. echo "$as_me: failed program was:" >&5
  8296. sed 's/^/| /' conftest.$ac_ext >&5
  8297. ac_header_preproc=no
  8298. fi
  8299. rm -f conftest.err conftest.$ac_ext
  8300. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8301. echo "${ECHO_T}$ac_header_preproc" >&6
  8302. # So? What about this header?
  8303. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8304. yes:no: )
  8305. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8306. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8307. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8308. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8309. ac_header_preproc=yes
  8310. ;;
  8311. no:yes:* )
  8312. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8313. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8314. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8315. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8316. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8317. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8318. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8319. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8320. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8321. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8322. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8323. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8324. (
  8325. cat <<\_ASBOX
  8326. ## ------------------------------------------ ##
  8327. ## Report this to the AC_PACKAGE_NAME lists. ##
  8328. ## ------------------------------------------ ##
  8329. _ASBOX
  8330. ) |
  8331. sed "s/^/$as_me: WARNING: /" >&2
  8332. ;;
  8333. esac
  8334. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8335. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8336. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8337. echo $ECHO_N "(cached) $ECHO_C" >&6
  8338. else
  8339. eval "$as_ac_Header=\$ac_header_preproc"
  8340. fi
  8341. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8342. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8343. fi
  8344. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8345. cat >>confdefs.h <<_ACEOF
  8346. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8347. _ACEOF
  8348. fi
  8349. done
  8350. for ac_func in fork vfork
  8351. do
  8352. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8353. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8354. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8355. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8356. echo $ECHO_N "(cached) $ECHO_C" >&6
  8357. else
  8358. cat >conftest.$ac_ext <<_ACEOF
  8359. /* confdefs.h. */
  8360. _ACEOF
  8361. cat confdefs.h >>conftest.$ac_ext
  8362. cat >>conftest.$ac_ext <<_ACEOF
  8363. /* end confdefs.h. */
  8364. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8365. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8366. #define $ac_func innocuous_$ac_func
  8367. /* System header to define __stub macros and hopefully few prototypes,
  8368. which can conflict with char $ac_func (); below.
  8369. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8370. <limits.h> exists even on freestanding compilers. */
  8371. #ifdef __STDC__
  8372. # include <limits.h>
  8373. #else
  8374. # include <assert.h>
  8375. #endif
  8376. #undef $ac_func
  8377. /* Override any gcc2 internal prototype to avoid an error. */
  8378. #ifdef __cplusplus
  8379. extern "C"
  8380. {
  8381. #endif
  8382. /* We use char because int might match the return type of a gcc2
  8383. builtin and then its argument prototype would still apply. */
  8384. char $ac_func ();
  8385. /* The GNU C library defines this for functions which it implements
  8386. to always fail with ENOSYS. Some functions are actually named
  8387. something starting with __ and the normal name is an alias. */
  8388. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8389. choke me
  8390. #else
  8391. char (*f) () = $ac_func;
  8392. #endif
  8393. #ifdef __cplusplus
  8394. }
  8395. #endif
  8396. int
  8397. main ()
  8398. {
  8399. return f != $ac_func;
  8400. ;
  8401. return 0;
  8402. }
  8403. _ACEOF
  8404. rm -f conftest.$ac_objext conftest$ac_exeext
  8405. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8406. (eval $ac_link) 2>conftest.er1
  8407. ac_status=$?
  8408. grep -v '^ *+' conftest.er1 >conftest.err
  8409. rm -f conftest.er1
  8410. cat conftest.err >&5
  8411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8412. (exit $ac_status); } &&
  8413. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8414. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8415. (eval $ac_try) 2>&5
  8416. ac_status=$?
  8417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8418. (exit $ac_status); }; } &&
  8419. { ac_try='test -s conftest$ac_exeext'
  8420. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8421. (eval $ac_try) 2>&5
  8422. ac_status=$?
  8423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8424. (exit $ac_status); }; }; then
  8425. eval "$as_ac_var=yes"
  8426. else
  8427. echo "$as_me: failed program was:" >&5
  8428. sed 's/^/| /' conftest.$ac_ext >&5
  8429. eval "$as_ac_var=no"
  8430. fi
  8431. rm -f conftest.err conftest.$ac_objext \
  8432. conftest$ac_exeext conftest.$ac_ext
  8433. fi
  8434. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8435. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8436. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8437. cat >>confdefs.h <<_ACEOF
  8438. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8439. _ACEOF
  8440. fi
  8441. done
  8442. if test "x$ac_cv_func_fork" = xyes; then
  8443. echo "$as_me:$LINENO: checking for working fork" >&5
  8444. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  8445. if test "${ac_cv_func_fork_works+set}" = set; then
  8446. echo $ECHO_N "(cached) $ECHO_C" >&6
  8447. else
  8448. if test "$cross_compiling" = yes; then
  8449. ac_cv_func_fork_works=cross
  8450. else
  8451. cat >conftest.$ac_ext <<_ACEOF
  8452. /* By Ruediger Kuhlmann. */
  8453. #include <sys/types.h>
  8454. #if HAVE_UNISTD_H
  8455. # include <unistd.h>
  8456. #endif
  8457. /* Some systems only have a dummy stub for fork() */
  8458. int main ()
  8459. {
  8460. if (fork() < 0)
  8461. exit (1);
  8462. exit (0);
  8463. }
  8464. _ACEOF
  8465. rm -f conftest$ac_exeext
  8466. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8467. (eval $ac_link) 2>&5
  8468. ac_status=$?
  8469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8470. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8471. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8472. (eval $ac_try) 2>&5
  8473. ac_status=$?
  8474. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8475. (exit $ac_status); }; }; then
  8476. ac_cv_func_fork_works=yes
  8477. else
  8478. echo "$as_me: program exited with status $ac_status" >&5
  8479. echo "$as_me: failed program was:" >&5
  8480. sed 's/^/| /' conftest.$ac_ext >&5
  8481. ( exit $ac_status )
  8482. ac_cv_func_fork_works=no
  8483. fi
  8484. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8485. fi
  8486. fi
  8487. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  8488. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  8489. else
  8490. ac_cv_func_fork_works=$ac_cv_func_fork
  8491. fi
  8492. if test "x$ac_cv_func_fork_works" = xcross; then
  8493. case $host in
  8494. *-*-amigaos* | *-*-msdosdjgpp*)
  8495. # Override, as these systems have only a dummy fork() stub
  8496. ac_cv_func_fork_works=no
  8497. ;;
  8498. *)
  8499. ac_cv_func_fork_works=yes
  8500. ;;
  8501. esac
  8502. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  8503. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  8504. fi
  8505. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8506. if test "x$ac_cv_func_vfork" = xyes; then
  8507. echo "$as_me:$LINENO: checking for working vfork" >&5
  8508. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  8509. if test "${ac_cv_func_vfork_works+set}" = set; then
  8510. echo $ECHO_N "(cached) $ECHO_C" >&6
  8511. else
  8512. if test "$cross_compiling" = yes; then
  8513. ac_cv_func_vfork_works=cross
  8514. else
  8515. cat >conftest.$ac_ext <<_ACEOF
  8516. /* confdefs.h. */
  8517. _ACEOF
  8518. cat confdefs.h >>conftest.$ac_ext
  8519. cat >>conftest.$ac_ext <<_ACEOF
  8520. /* end confdefs.h. */
  8521. /* Thanks to Paul Eggert for this test. */
  8522. #include <stdio.h>
  8523. #include <stdlib.h>
  8524. #include <sys/types.h>
  8525. #include <sys/stat.h>
  8526. #include <sys/wait.h>
  8527. #if HAVE_UNISTD_H
  8528. # include <unistd.h>
  8529. #endif
  8530. #if HAVE_VFORK_H
  8531. # include <vfork.h>
  8532. #endif
  8533. /* On some sparc systems, changes by the child to local and incoming
  8534. argument registers are propagated back to the parent. The compiler
  8535. is told about this with #include <vfork.h>, but some compilers
  8536. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  8537. static variable whose address is put into a register that is
  8538. clobbered by the vfork. */
  8539. static void
  8540. #ifdef __cplusplus
  8541. sparc_address_test (int arg)
  8542. # else
  8543. sparc_address_test (arg) int arg;
  8544. #endif
  8545. {
  8546. static pid_t child;
  8547. if (!child) {
  8548. child = vfork ();
  8549. if (child < 0) {
  8550. perror ("vfork");
  8551. _exit(2);
  8552. }
  8553. if (!child) {
  8554. arg = getpid();
  8555. write(-1, "", 0);
  8556. _exit (arg);
  8557. }
  8558. }
  8559. }
  8560. int
  8561. main ()
  8562. {
  8563. pid_t parent = getpid ();
  8564. pid_t child;
  8565. sparc_address_test (0);
  8566. child = vfork ();
  8567. if (child == 0) {
  8568. /* Here is another test for sparc vfork register problems. This
  8569. test uses lots of local variables, at least as many local
  8570. variables as main has allocated so far including compiler
  8571. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  8572. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  8573. reuse the register of parent for one of the local variables,
  8574. since it will think that parent can't possibly be used any more
  8575. in this routine. Assigning to the local variable will thus
  8576. munge parent in the parent process. */
  8577. pid_t
  8578. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  8579. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  8580. /* Convince the compiler that p..p7 are live; otherwise, it might
  8581. use the same hardware register for all 8 local variables. */
  8582. if (p != p1 || p != p2 || p != p3 || p != p4
  8583. || p != p5 || p != p6 || p != p7)
  8584. _exit(1);
  8585. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  8586. from child file descriptors. If the child closes a descriptor
  8587. before it execs or exits, this munges the parent's descriptor
  8588. as well. Test for this by closing stdout in the child. */
  8589. _exit(close(fileno(stdout)) != 0);
  8590. } else {
  8591. int status;
  8592. struct stat st;
  8593. while (wait(&status) != child)
  8594. ;
  8595. exit(
  8596. /* Was there some problem with vforking? */
  8597. child < 0
  8598. /* Did the child fail? (This shouldn't happen.) */
  8599. || status
  8600. /* Did the vfork/compiler bug occur? */
  8601. || parent != getpid()
  8602. /* Did the file descriptor bug occur? */
  8603. || fstat(fileno(stdout), &st) != 0
  8604. );
  8605. }
  8606. }
  8607. _ACEOF
  8608. rm -f conftest$ac_exeext
  8609. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8610. (eval $ac_link) 2>&5
  8611. ac_status=$?
  8612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8613. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8614. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8615. (eval $ac_try) 2>&5
  8616. ac_status=$?
  8617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8618. (exit $ac_status); }; }; then
  8619. ac_cv_func_vfork_works=yes
  8620. else
  8621. echo "$as_me: program exited with status $ac_status" >&5
  8622. echo "$as_me: failed program was:" >&5
  8623. sed 's/^/| /' conftest.$ac_ext >&5
  8624. ( exit $ac_status )
  8625. ac_cv_func_vfork_works=no
  8626. fi
  8627. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8628. fi
  8629. fi
  8630. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  8631. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  8632. fi;
  8633. if test "x$ac_cv_func_fork_works" = xcross; then
  8634. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8635. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  8636. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  8637. fi
  8638. if test "x$ac_cv_func_vfork_works" = xyes; then
  8639. cat >>confdefs.h <<\_ACEOF
  8640. #define HAVE_WORKING_VFORK 1
  8641. _ACEOF
  8642. else
  8643. cat >>confdefs.h <<\_ACEOF
  8644. #define vfork fork
  8645. _ACEOF
  8646. fi
  8647. if test "x$ac_cv_func_fork_works" = xyes; then
  8648. cat >>confdefs.h <<\_ACEOF
  8649. #define HAVE_WORKING_FORK 1
  8650. _ACEOF
  8651. fi
  8652. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8653. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8654. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8655. echo $ECHO_N "(cached) $ECHO_C" >&6
  8656. else
  8657. rm -f conftest.sym conftest.file
  8658. echo >conftest.file
  8659. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8660. if test "$cross_compiling" = yes; then
  8661. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8662. else
  8663. cat >conftest.$ac_ext <<_ACEOF
  8664. /* confdefs.h. */
  8665. _ACEOF
  8666. cat confdefs.h >>conftest.$ac_ext
  8667. cat >>conftest.$ac_ext <<_ACEOF
  8668. /* end confdefs.h. */
  8669. $ac_includes_default
  8670. int
  8671. main ()
  8672. {
  8673. struct stat sbuf;
  8674. /* Linux will dereference the symlink and fail.
  8675. That is better in the sense that it means we will not
  8676. have to compile and use the lstat wrapper. */
  8677. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8678. ;
  8679. return 0;
  8680. }
  8681. _ACEOF
  8682. rm -f conftest$ac_exeext
  8683. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8684. (eval $ac_link) 2>&5
  8685. ac_status=$?
  8686. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8687. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8688. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8689. (eval $ac_try) 2>&5
  8690. ac_status=$?
  8691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8692. (exit $ac_status); }; }; then
  8693. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8694. else
  8695. echo "$as_me: program exited with status $ac_status" >&5
  8696. echo "$as_me: failed program was:" >&5
  8697. sed 's/^/| /' conftest.$ac_ext >&5
  8698. ( exit $ac_status )
  8699. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8700. fi
  8701. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8702. fi
  8703. else
  8704. # If the `ln -s' command failed, then we probably don't even
  8705. # have an lstat function.
  8706. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8707. fi
  8708. rm -f conftest.sym conftest.file
  8709. fi
  8710. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8711. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8712. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8713. cat >>confdefs.h <<_ACEOF
  8714. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8715. _ACEOF
  8716. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8717. case $LIBOBJS in
  8718. "lstat.$ac_objext" | \
  8719. *" lstat.$ac_objext" | \
  8720. "lstat.$ac_objext "* | \
  8721. *" lstat.$ac_objext "* ) ;;
  8722. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8723. esac
  8724. fi
  8725. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8726. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  8727. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8728. echo $ECHO_N "(cached) $ECHO_C" >&6
  8729. else
  8730. if test "$cross_compiling" = yes; then
  8731. ac_cv_func_lstat_empty_string_bug=yes
  8732. else
  8733. cat >conftest.$ac_ext <<_ACEOF
  8734. /* confdefs.h. */
  8735. _ACEOF
  8736. cat confdefs.h >>conftest.$ac_ext
  8737. cat >>conftest.$ac_ext <<_ACEOF
  8738. /* end confdefs.h. */
  8739. $ac_includes_default
  8740. int
  8741. main ()
  8742. {
  8743. struct stat sbuf;
  8744. exit (lstat ("", &sbuf) ? 1 : 0);
  8745. ;
  8746. return 0;
  8747. }
  8748. _ACEOF
  8749. rm -f conftest$ac_exeext
  8750. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8751. (eval $ac_link) 2>&5
  8752. ac_status=$?
  8753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8754. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8755. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8756. (eval $ac_try) 2>&5
  8757. ac_status=$?
  8758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8759. (exit $ac_status); }; }; then
  8760. ac_cv_func_lstat_empty_string_bug=yes
  8761. else
  8762. echo "$as_me: program exited with status $ac_status" >&5
  8763. echo "$as_me: failed program was:" >&5
  8764. sed 's/^/| /' conftest.$ac_ext >&5
  8765. ( exit $ac_status )
  8766. ac_cv_func_lstat_empty_string_bug=no
  8767. fi
  8768. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8769. fi
  8770. fi
  8771. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  8772. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  8773. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  8774. case $LIBOBJS in
  8775. "lstat.$ac_objext" | \
  8776. *" lstat.$ac_objext" | \
  8777. "lstat.$ac_objext "* | \
  8778. *" lstat.$ac_objext "* ) ;;
  8779. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8780. esac
  8781. cat >>confdefs.h <<_ACEOF
  8782. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  8783. _ACEOF
  8784. fi
  8785. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8786. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8787. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8788. echo $ECHO_N "(cached) $ECHO_C" >&6
  8789. else
  8790. rm -f conftest.sym conftest.file
  8791. echo >conftest.file
  8792. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8793. if test "$cross_compiling" = yes; then
  8794. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8795. else
  8796. cat >conftest.$ac_ext <<_ACEOF
  8797. /* confdefs.h. */
  8798. _ACEOF
  8799. cat confdefs.h >>conftest.$ac_ext
  8800. cat >>conftest.$ac_ext <<_ACEOF
  8801. /* end confdefs.h. */
  8802. $ac_includes_default
  8803. int
  8804. main ()
  8805. {
  8806. struct stat sbuf;
  8807. /* Linux will dereference the symlink and fail.
  8808. That is better in the sense that it means we will not
  8809. have to compile and use the lstat wrapper. */
  8810. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8811. ;
  8812. return 0;
  8813. }
  8814. _ACEOF
  8815. rm -f conftest$ac_exeext
  8816. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8817. (eval $ac_link) 2>&5
  8818. ac_status=$?
  8819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8820. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8821. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8822. (eval $ac_try) 2>&5
  8823. ac_status=$?
  8824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8825. (exit $ac_status); }; }; then
  8826. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8827. else
  8828. echo "$as_me: program exited with status $ac_status" >&5
  8829. echo "$as_me: failed program was:" >&5
  8830. sed 's/^/| /' conftest.$ac_ext >&5
  8831. ( exit $ac_status )
  8832. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8833. fi
  8834. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8835. fi
  8836. else
  8837. # If the `ln -s' command failed, then we probably don't even
  8838. # have an lstat function.
  8839. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8840. fi
  8841. rm -f conftest.sym conftest.file
  8842. fi
  8843. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8844. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8845. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8846. cat >>confdefs.h <<_ACEOF
  8847. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8848. _ACEOF
  8849. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8850. case $LIBOBJS in
  8851. "lstat.$ac_objext" | \
  8852. *" lstat.$ac_objext" | \
  8853. "lstat.$ac_objext "* | \
  8854. *" lstat.$ac_objext "* ) ;;
  8855. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8856. esac
  8857. fi
  8858. for ac_header in stdlib.h
  8859. do
  8860. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8861. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8862. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8863. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8864. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8865. echo $ECHO_N "(cached) $ECHO_C" >&6
  8866. fi
  8867. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8868. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8869. else
  8870. # Is the header compilable?
  8871. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8872. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8873. cat >conftest.$ac_ext <<_ACEOF
  8874. /* confdefs.h. */
  8875. _ACEOF
  8876. cat confdefs.h >>conftest.$ac_ext
  8877. cat >>conftest.$ac_ext <<_ACEOF
  8878. /* end confdefs.h. */
  8879. $ac_includes_default
  8880. #include <$ac_header>
  8881. _ACEOF
  8882. rm -f conftest.$ac_objext
  8883. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8884. (eval $ac_compile) 2>conftest.er1
  8885. ac_status=$?
  8886. grep -v '^ *+' conftest.er1 >conftest.err
  8887. rm -f conftest.er1
  8888. cat conftest.err >&5
  8889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8890. (exit $ac_status); } &&
  8891. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8892. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8893. (eval $ac_try) 2>&5
  8894. ac_status=$?
  8895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8896. (exit $ac_status); }; } &&
  8897. { ac_try='test -s conftest.$ac_objext'
  8898. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8899. (eval $ac_try) 2>&5
  8900. ac_status=$?
  8901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8902. (exit $ac_status); }; }; then
  8903. ac_header_compiler=yes
  8904. else
  8905. echo "$as_me: failed program was:" >&5
  8906. sed 's/^/| /' conftest.$ac_ext >&5
  8907. ac_header_compiler=no
  8908. fi
  8909. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8910. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8911. echo "${ECHO_T}$ac_header_compiler" >&6
  8912. # Is the header present?
  8913. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8914. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8915. cat >conftest.$ac_ext <<_ACEOF
  8916. /* confdefs.h. */
  8917. _ACEOF
  8918. cat confdefs.h >>conftest.$ac_ext
  8919. cat >>conftest.$ac_ext <<_ACEOF
  8920. /* end confdefs.h. */
  8921. #include <$ac_header>
  8922. _ACEOF
  8923. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8924. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8925. ac_status=$?
  8926. grep -v '^ *+' conftest.er1 >conftest.err
  8927. rm -f conftest.er1
  8928. cat conftest.err >&5
  8929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8930. (exit $ac_status); } >/dev/null; then
  8931. if test -s conftest.err; then
  8932. ac_cpp_err=$ac_c_preproc_warn_flag
  8933. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8934. else
  8935. ac_cpp_err=
  8936. fi
  8937. else
  8938. ac_cpp_err=yes
  8939. fi
  8940. if test -z "$ac_cpp_err"; then
  8941. ac_header_preproc=yes
  8942. else
  8943. echo "$as_me: failed program was:" >&5
  8944. sed 's/^/| /' conftest.$ac_ext >&5
  8945. ac_header_preproc=no
  8946. fi
  8947. rm -f conftest.err conftest.$ac_ext
  8948. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8949. echo "${ECHO_T}$ac_header_preproc" >&6
  8950. # So? What about this header?
  8951. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8952. yes:no: )
  8953. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8954. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8955. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8956. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8957. ac_header_preproc=yes
  8958. ;;
  8959. no:yes:* )
  8960. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8961. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8962. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8963. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8964. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8965. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8966. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8967. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8968. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8969. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8970. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8971. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8972. (
  8973. cat <<\_ASBOX
  8974. ## ------------------------------------------ ##
  8975. ## Report this to the AC_PACKAGE_NAME lists. ##
  8976. ## ------------------------------------------ ##
  8977. _ASBOX
  8978. ) |
  8979. sed "s/^/$as_me: WARNING: /" >&2
  8980. ;;
  8981. esac
  8982. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8983. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8984. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8985. echo $ECHO_N "(cached) $ECHO_C" >&6
  8986. else
  8987. eval "$as_ac_Header=\$ac_header_preproc"
  8988. fi
  8989. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8990. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8991. fi
  8992. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8993. cat >>confdefs.h <<_ACEOF
  8994. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8995. _ACEOF
  8996. fi
  8997. done
  8998. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8999. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  9000. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  9001. echo $ECHO_N "(cached) $ECHO_C" >&6
  9002. else
  9003. if test "$cross_compiling" = yes; then
  9004. ac_cv_func_malloc_0_nonnull=no
  9005. else
  9006. cat >conftest.$ac_ext <<_ACEOF
  9007. /* confdefs.h. */
  9008. _ACEOF
  9009. cat confdefs.h >>conftest.$ac_ext
  9010. cat >>conftest.$ac_ext <<_ACEOF
  9011. /* end confdefs.h. */
  9012. #if STDC_HEADERS || HAVE_STDLIB_H
  9013. # include <stdlib.h>
  9014. #else
  9015. char *malloc ();
  9016. #endif
  9017. int
  9018. main ()
  9019. {
  9020. exit (malloc (0) ? 0 : 1);
  9021. ;
  9022. return 0;
  9023. }
  9024. _ACEOF
  9025. rm -f conftest$ac_exeext
  9026. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9027. (eval $ac_link) 2>&5
  9028. ac_status=$?
  9029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9030. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9031. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9032. (eval $ac_try) 2>&5
  9033. ac_status=$?
  9034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9035. (exit $ac_status); }; }; then
  9036. ac_cv_func_malloc_0_nonnull=yes
  9037. else
  9038. echo "$as_me: program exited with status $ac_status" >&5
  9039. echo "$as_me: failed program was:" >&5
  9040. sed 's/^/| /' conftest.$ac_ext >&5
  9041. ( exit $ac_status )
  9042. ac_cv_func_malloc_0_nonnull=no
  9043. fi
  9044. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9045. fi
  9046. fi
  9047. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9048. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  9049. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9050. cat >>confdefs.h <<\_ACEOF
  9051. #define HAVE_MALLOC 1
  9052. _ACEOF
  9053. else
  9054. cat >>confdefs.h <<\_ACEOF
  9055. #define HAVE_MALLOC 0
  9056. _ACEOF
  9057. case $LIBOBJS in
  9058. "malloc.$ac_objext" | \
  9059. *" malloc.$ac_objext" | \
  9060. "malloc.$ac_objext "* | \
  9061. *" malloc.$ac_objext "* ) ;;
  9062. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  9063. esac
  9064. cat >>confdefs.h <<\_ACEOF
  9065. #define malloc rpl_malloc
  9066. _ACEOF
  9067. fi
  9068. for ac_header in stdlib.h sys/time.h unistd.h
  9069. do
  9070. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9071. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9072. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9073. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9074. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9075. echo $ECHO_N "(cached) $ECHO_C" >&6
  9076. fi
  9077. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9078. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9079. else
  9080. # Is the header compilable?
  9081. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9082. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9083. cat >conftest.$ac_ext <<_ACEOF
  9084. /* confdefs.h. */
  9085. _ACEOF
  9086. cat confdefs.h >>conftest.$ac_ext
  9087. cat >>conftest.$ac_ext <<_ACEOF
  9088. /* end confdefs.h. */
  9089. $ac_includes_default
  9090. #include <$ac_header>
  9091. _ACEOF
  9092. rm -f conftest.$ac_objext
  9093. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9094. (eval $ac_compile) 2>conftest.er1
  9095. ac_status=$?
  9096. grep -v '^ *+' conftest.er1 >conftest.err
  9097. rm -f conftest.er1
  9098. cat conftest.err >&5
  9099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9100. (exit $ac_status); } &&
  9101. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9102. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9103. (eval $ac_try) 2>&5
  9104. ac_status=$?
  9105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9106. (exit $ac_status); }; } &&
  9107. { ac_try='test -s conftest.$ac_objext'
  9108. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9109. (eval $ac_try) 2>&5
  9110. ac_status=$?
  9111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9112. (exit $ac_status); }; }; then
  9113. ac_header_compiler=yes
  9114. else
  9115. echo "$as_me: failed program was:" >&5
  9116. sed 's/^/| /' conftest.$ac_ext >&5
  9117. ac_header_compiler=no
  9118. fi
  9119. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9120. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9121. echo "${ECHO_T}$ac_header_compiler" >&6
  9122. # Is the header present?
  9123. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9124. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9125. cat >conftest.$ac_ext <<_ACEOF
  9126. /* confdefs.h. */
  9127. _ACEOF
  9128. cat confdefs.h >>conftest.$ac_ext
  9129. cat >>conftest.$ac_ext <<_ACEOF
  9130. /* end confdefs.h. */
  9131. #include <$ac_header>
  9132. _ACEOF
  9133. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9134. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9135. ac_status=$?
  9136. grep -v '^ *+' conftest.er1 >conftest.err
  9137. rm -f conftest.er1
  9138. cat conftest.err >&5
  9139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9140. (exit $ac_status); } >/dev/null; then
  9141. if test -s conftest.err; then
  9142. ac_cpp_err=$ac_c_preproc_warn_flag
  9143. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9144. else
  9145. ac_cpp_err=
  9146. fi
  9147. else
  9148. ac_cpp_err=yes
  9149. fi
  9150. if test -z "$ac_cpp_err"; then
  9151. ac_header_preproc=yes
  9152. else
  9153. echo "$as_me: failed program was:" >&5
  9154. sed 's/^/| /' conftest.$ac_ext >&5
  9155. ac_header_preproc=no
  9156. fi
  9157. rm -f conftest.err conftest.$ac_ext
  9158. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9159. echo "${ECHO_T}$ac_header_preproc" >&6
  9160. # So? What about this header?
  9161. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9162. yes:no: )
  9163. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9164. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9165. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9166. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9167. ac_header_preproc=yes
  9168. ;;
  9169. no:yes:* )
  9170. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9171. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9172. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9173. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9174. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9175. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9176. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9177. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9178. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9179. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9180. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9181. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9182. (
  9183. cat <<\_ASBOX
  9184. ## ------------------------------------------ ##
  9185. ## Report this to the AC_PACKAGE_NAME lists. ##
  9186. ## ------------------------------------------ ##
  9187. _ASBOX
  9188. ) |
  9189. sed "s/^/$as_me: WARNING: /" >&2
  9190. ;;
  9191. esac
  9192. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9193. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9194. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9195. echo $ECHO_N "(cached) $ECHO_C" >&6
  9196. else
  9197. eval "$as_ac_Header=\$ac_header_preproc"
  9198. fi
  9199. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9200. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9201. fi
  9202. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9203. cat >>confdefs.h <<_ACEOF
  9204. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9205. _ACEOF
  9206. fi
  9207. done
  9208. for ac_func in alarm
  9209. do
  9210. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9211. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9212. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9213. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9214. echo $ECHO_N "(cached) $ECHO_C" >&6
  9215. else
  9216. cat >conftest.$ac_ext <<_ACEOF
  9217. /* confdefs.h. */
  9218. _ACEOF
  9219. cat confdefs.h >>conftest.$ac_ext
  9220. cat >>conftest.$ac_ext <<_ACEOF
  9221. /* end confdefs.h. */
  9222. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9223. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9224. #define $ac_func innocuous_$ac_func
  9225. /* System header to define __stub macros and hopefully few prototypes,
  9226. which can conflict with char $ac_func (); below.
  9227. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9228. <limits.h> exists even on freestanding compilers. */
  9229. #ifdef __STDC__
  9230. # include <limits.h>
  9231. #else
  9232. # include <assert.h>
  9233. #endif
  9234. #undef $ac_func
  9235. /* Override any gcc2 internal prototype to avoid an error. */
  9236. #ifdef __cplusplus
  9237. extern "C"
  9238. {
  9239. #endif
  9240. /* We use char because int might match the return type of a gcc2
  9241. builtin and then its argument prototype would still apply. */
  9242. char $ac_func ();
  9243. /* The GNU C library defines this for functions which it implements
  9244. to always fail with ENOSYS. Some functions are actually named
  9245. something starting with __ and the normal name is an alias. */
  9246. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9247. choke me
  9248. #else
  9249. char (*f) () = $ac_func;
  9250. #endif
  9251. #ifdef __cplusplus
  9252. }
  9253. #endif
  9254. int
  9255. main ()
  9256. {
  9257. return f != $ac_func;
  9258. ;
  9259. return 0;
  9260. }
  9261. _ACEOF
  9262. rm -f conftest.$ac_objext conftest$ac_exeext
  9263. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9264. (eval $ac_link) 2>conftest.er1
  9265. ac_status=$?
  9266. grep -v '^ *+' conftest.er1 >conftest.err
  9267. rm -f conftest.er1
  9268. cat conftest.err >&5
  9269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9270. (exit $ac_status); } &&
  9271. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9272. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9273. (eval $ac_try) 2>&5
  9274. ac_status=$?
  9275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9276. (exit $ac_status); }; } &&
  9277. { ac_try='test -s conftest$ac_exeext'
  9278. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9279. (eval $ac_try) 2>&5
  9280. ac_status=$?
  9281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9282. (exit $ac_status); }; }; then
  9283. eval "$as_ac_var=yes"
  9284. else
  9285. echo "$as_me: failed program was:" >&5
  9286. sed 's/^/| /' conftest.$ac_ext >&5
  9287. eval "$as_ac_var=no"
  9288. fi
  9289. rm -f conftest.err conftest.$ac_objext \
  9290. conftest$ac_exeext conftest.$ac_ext
  9291. fi
  9292. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9293. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9294. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9295. cat >>confdefs.h <<_ACEOF
  9296. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9297. _ACEOF
  9298. fi
  9299. done
  9300. echo "$as_me:$LINENO: checking for working mktime" >&5
  9301. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  9302. if test "${ac_cv_func_working_mktime+set}" = set; then
  9303. echo $ECHO_N "(cached) $ECHO_C" >&6
  9304. else
  9305. if test "$cross_compiling" = yes; then
  9306. ac_cv_func_working_mktime=no
  9307. else
  9308. cat >conftest.$ac_ext <<_ACEOF
  9309. /* confdefs.h. */
  9310. _ACEOF
  9311. cat confdefs.h >>conftest.$ac_ext
  9312. cat >>conftest.$ac_ext <<_ACEOF
  9313. /* end confdefs.h. */
  9314. /* Test program from Paul Eggert and Tony Leneis. */
  9315. #if TIME_WITH_SYS_TIME
  9316. # include <sys/time.h>
  9317. # include <time.h>
  9318. #else
  9319. # if HAVE_SYS_TIME_H
  9320. # include <sys/time.h>
  9321. # else
  9322. # include <time.h>
  9323. # endif
  9324. #endif
  9325. #if HAVE_STDLIB_H
  9326. # include <stdlib.h>
  9327. #endif
  9328. #if HAVE_UNISTD_H
  9329. # include <unistd.h>
  9330. #endif
  9331. #if !HAVE_ALARM
  9332. # define alarm(X) /* empty */
  9333. #endif
  9334. /* Work around redefinition to rpl_putenv by other config tests. */
  9335. #undef putenv
  9336. static time_t time_t_max;
  9337. static time_t time_t_min;
  9338. /* Values we'll use to set the TZ environment variable. */
  9339. static char *tz_strings[] = {
  9340. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  9341. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  9342. };
  9343. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  9344. /* Fail if mktime fails to convert a date in the spring-forward gap.
  9345. Based on a problem report from Andreas Jaeger. */
  9346. static void
  9347. spring_forward_gap ()
  9348. {
  9349. /* glibc (up to about 1998-10-07) failed this test. */
  9350. struct tm tm;
  9351. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  9352. instead of "TZ=America/Vancouver" in order to detect the bug even
  9353. on systems that don't support the Olson extension, or don't have the
  9354. full zoneinfo tables installed. */
  9355. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  9356. tm.tm_year = 98;
  9357. tm.tm_mon = 3;
  9358. tm.tm_mday = 5;
  9359. tm.tm_hour = 2;
  9360. tm.tm_min = 0;
  9361. tm.tm_sec = 0;
  9362. tm.tm_isdst = -1;
  9363. if (mktime (&tm) == (time_t)-1)
  9364. exit (1);
  9365. }
  9366. static void
  9367. mktime_test1 (now)
  9368. time_t now;
  9369. {
  9370. struct tm *lt;
  9371. if ((lt = localtime (&now)) && mktime (lt) != now)
  9372. exit (1);
  9373. }
  9374. static void
  9375. mktime_test (now)
  9376. time_t now;
  9377. {
  9378. mktime_test1 (now);
  9379. mktime_test1 ((time_t) (time_t_max - now));
  9380. mktime_test1 ((time_t) (time_t_min + now));
  9381. }
  9382. static void
  9383. irix_6_4_bug ()
  9384. {
  9385. /* Based on code from Ariel Faigon. */
  9386. struct tm tm;
  9387. tm.tm_year = 96;
  9388. tm.tm_mon = 3;
  9389. tm.tm_mday = 0;
  9390. tm.tm_hour = 0;
  9391. tm.tm_min = 0;
  9392. tm.tm_sec = 0;
  9393. tm.tm_isdst = -1;
  9394. mktime (&tm);
  9395. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  9396. exit (1);
  9397. }
  9398. static void
  9399. bigtime_test (j)
  9400. int j;
  9401. {
  9402. struct tm tm;
  9403. time_t now;
  9404. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  9405. now = mktime (&tm);
  9406. if (now != (time_t) -1)
  9407. {
  9408. struct tm *lt = localtime (&now);
  9409. if (! (lt
  9410. && lt->tm_year == tm.tm_year
  9411. && lt->tm_mon == tm.tm_mon
  9412. && lt->tm_mday == tm.tm_mday
  9413. && lt->tm_hour == tm.tm_hour
  9414. && lt->tm_min == tm.tm_min
  9415. && lt->tm_sec == tm.tm_sec
  9416. && lt->tm_yday == tm.tm_yday
  9417. && lt->tm_wday == tm.tm_wday
  9418. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  9419. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  9420. exit (1);
  9421. }
  9422. }
  9423. int
  9424. main ()
  9425. {
  9426. time_t t, delta;
  9427. int i, j;
  9428. /* This test makes some buggy mktime implementations loop.
  9429. Give up after 60 seconds; a mktime slower than that
  9430. isn't worth using anyway. */
  9431. alarm (60);
  9432. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  9433. continue;
  9434. time_t_max--;
  9435. if ((time_t) -1 < 0)
  9436. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  9437. continue;
  9438. delta = time_t_max / 997; /* a suitable prime number */
  9439. for (i = 0; i < N_STRINGS; i++)
  9440. {
  9441. if (tz_strings[i])
  9442. putenv (tz_strings[i]);
  9443. for (t = 0; t <= time_t_max - delta; t += delta)
  9444. mktime_test (t);
  9445. mktime_test ((time_t) 1);
  9446. mktime_test ((time_t) (60 * 60));
  9447. mktime_test ((time_t) (60 * 60 * 24));
  9448. for (j = 1; 0 < j; j *= 2)
  9449. bigtime_test (j);
  9450. bigtime_test (j - 1);
  9451. }
  9452. irix_6_4_bug ();
  9453. spring_forward_gap ();
  9454. exit (0);
  9455. }
  9456. _ACEOF
  9457. rm -f conftest$ac_exeext
  9458. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9459. (eval $ac_link) 2>&5
  9460. ac_status=$?
  9461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9462. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9463. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9464. (eval $ac_try) 2>&5
  9465. ac_status=$?
  9466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9467. (exit $ac_status); }; }; then
  9468. ac_cv_func_working_mktime=yes
  9469. else
  9470. echo "$as_me: program exited with status $ac_status" >&5
  9471. echo "$as_me: failed program was:" >&5
  9472. sed 's/^/| /' conftest.$ac_ext >&5
  9473. ( exit $ac_status )
  9474. ac_cv_func_working_mktime=no
  9475. fi
  9476. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9477. fi
  9478. fi
  9479. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  9480. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  9481. if test $ac_cv_func_working_mktime = no; then
  9482. case $LIBOBJS in
  9483. "mktime.$ac_objext" | \
  9484. *" mktime.$ac_objext" | \
  9485. "mktime.$ac_objext "* | \
  9486. *" mktime.$ac_objext "* ) ;;
  9487. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  9488. esac
  9489. fi
  9490. for ac_header in stdlib.h unistd.h
  9491. do
  9492. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9493. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9494. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9495. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9496. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9497. echo $ECHO_N "(cached) $ECHO_C" >&6
  9498. fi
  9499. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9500. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9501. else
  9502. # Is the header compilable?
  9503. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9504. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9505. cat >conftest.$ac_ext <<_ACEOF
  9506. /* confdefs.h. */
  9507. _ACEOF
  9508. cat confdefs.h >>conftest.$ac_ext
  9509. cat >>conftest.$ac_ext <<_ACEOF
  9510. /* end confdefs.h. */
  9511. $ac_includes_default
  9512. #include <$ac_header>
  9513. _ACEOF
  9514. rm -f conftest.$ac_objext
  9515. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9516. (eval $ac_compile) 2>conftest.er1
  9517. ac_status=$?
  9518. grep -v '^ *+' conftest.er1 >conftest.err
  9519. rm -f conftest.er1
  9520. cat conftest.err >&5
  9521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9522. (exit $ac_status); } &&
  9523. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9524. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9525. (eval $ac_try) 2>&5
  9526. ac_status=$?
  9527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9528. (exit $ac_status); }; } &&
  9529. { ac_try='test -s conftest.$ac_objext'
  9530. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9531. (eval $ac_try) 2>&5
  9532. ac_status=$?
  9533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9534. (exit $ac_status); }; }; then
  9535. ac_header_compiler=yes
  9536. else
  9537. echo "$as_me: failed program was:" >&5
  9538. sed 's/^/| /' conftest.$ac_ext >&5
  9539. ac_header_compiler=no
  9540. fi
  9541. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9542. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9543. echo "${ECHO_T}$ac_header_compiler" >&6
  9544. # Is the header present?
  9545. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9546. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9547. cat >conftest.$ac_ext <<_ACEOF
  9548. /* confdefs.h. */
  9549. _ACEOF
  9550. cat confdefs.h >>conftest.$ac_ext
  9551. cat >>conftest.$ac_ext <<_ACEOF
  9552. /* end confdefs.h. */
  9553. #include <$ac_header>
  9554. _ACEOF
  9555. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9556. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9557. ac_status=$?
  9558. grep -v '^ *+' conftest.er1 >conftest.err
  9559. rm -f conftest.er1
  9560. cat conftest.err >&5
  9561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9562. (exit $ac_status); } >/dev/null; then
  9563. if test -s conftest.err; then
  9564. ac_cpp_err=$ac_c_preproc_warn_flag
  9565. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9566. else
  9567. ac_cpp_err=
  9568. fi
  9569. else
  9570. ac_cpp_err=yes
  9571. fi
  9572. if test -z "$ac_cpp_err"; then
  9573. ac_header_preproc=yes
  9574. else
  9575. echo "$as_me: failed program was:" >&5
  9576. sed 's/^/| /' conftest.$ac_ext >&5
  9577. ac_header_preproc=no
  9578. fi
  9579. rm -f conftest.err conftest.$ac_ext
  9580. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9581. echo "${ECHO_T}$ac_header_preproc" >&6
  9582. # So? What about this header?
  9583. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9584. yes:no: )
  9585. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9586. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9587. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9588. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9589. ac_header_preproc=yes
  9590. ;;
  9591. no:yes:* )
  9592. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9593. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9594. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9595. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9596. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9597. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9598. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9599. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9600. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9601. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9602. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9603. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9604. (
  9605. cat <<\_ASBOX
  9606. ## ------------------------------------------ ##
  9607. ## Report this to the AC_PACKAGE_NAME lists. ##
  9608. ## ------------------------------------------ ##
  9609. _ASBOX
  9610. ) |
  9611. sed "s/^/$as_me: WARNING: /" >&2
  9612. ;;
  9613. esac
  9614. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9615. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9616. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9617. echo $ECHO_N "(cached) $ECHO_C" >&6
  9618. else
  9619. eval "$as_ac_Header=\$ac_header_preproc"
  9620. fi
  9621. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9622. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9623. fi
  9624. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9625. cat >>confdefs.h <<_ACEOF
  9626. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9627. _ACEOF
  9628. fi
  9629. done
  9630. for ac_func in getpagesize
  9631. do
  9632. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9633. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9634. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9635. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9636. echo $ECHO_N "(cached) $ECHO_C" >&6
  9637. else
  9638. cat >conftest.$ac_ext <<_ACEOF
  9639. /* confdefs.h. */
  9640. _ACEOF
  9641. cat confdefs.h >>conftest.$ac_ext
  9642. cat >>conftest.$ac_ext <<_ACEOF
  9643. /* end confdefs.h. */
  9644. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9645. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9646. #define $ac_func innocuous_$ac_func
  9647. /* System header to define __stub macros and hopefully few prototypes,
  9648. which can conflict with char $ac_func (); below.
  9649. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9650. <limits.h> exists even on freestanding compilers. */
  9651. #ifdef __STDC__
  9652. # include <limits.h>
  9653. #else
  9654. # include <assert.h>
  9655. #endif
  9656. #undef $ac_func
  9657. /* Override any gcc2 internal prototype to avoid an error. */
  9658. #ifdef __cplusplus
  9659. extern "C"
  9660. {
  9661. #endif
  9662. /* We use char because int might match the return type of a gcc2
  9663. builtin and then its argument prototype would still apply. */
  9664. char $ac_func ();
  9665. /* The GNU C library defines this for functions which it implements
  9666. to always fail with ENOSYS. Some functions are actually named
  9667. something starting with __ and the normal name is an alias. */
  9668. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9669. choke me
  9670. #else
  9671. char (*f) () = $ac_func;
  9672. #endif
  9673. #ifdef __cplusplus
  9674. }
  9675. #endif
  9676. int
  9677. main ()
  9678. {
  9679. return f != $ac_func;
  9680. ;
  9681. return 0;
  9682. }
  9683. _ACEOF
  9684. rm -f conftest.$ac_objext conftest$ac_exeext
  9685. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9686. (eval $ac_link) 2>conftest.er1
  9687. ac_status=$?
  9688. grep -v '^ *+' conftest.er1 >conftest.err
  9689. rm -f conftest.er1
  9690. cat conftest.err >&5
  9691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9692. (exit $ac_status); } &&
  9693. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9694. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9695. (eval $ac_try) 2>&5
  9696. ac_status=$?
  9697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9698. (exit $ac_status); }; } &&
  9699. { ac_try='test -s conftest$ac_exeext'
  9700. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9701. (eval $ac_try) 2>&5
  9702. ac_status=$?
  9703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9704. (exit $ac_status); }; }; then
  9705. eval "$as_ac_var=yes"
  9706. else
  9707. echo "$as_me: failed program was:" >&5
  9708. sed 's/^/| /' conftest.$ac_ext >&5
  9709. eval "$as_ac_var=no"
  9710. fi
  9711. rm -f conftest.err conftest.$ac_objext \
  9712. conftest$ac_exeext conftest.$ac_ext
  9713. fi
  9714. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9715. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9716. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9717. cat >>confdefs.h <<_ACEOF
  9718. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9719. _ACEOF
  9720. fi
  9721. done
  9722. echo "$as_me:$LINENO: checking for working mmap" >&5
  9723. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9724. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9725. echo $ECHO_N "(cached) $ECHO_C" >&6
  9726. else
  9727. if test "$cross_compiling" = yes; then
  9728. ac_cv_func_mmap_fixed_mapped=no
  9729. else
  9730. cat >conftest.$ac_ext <<_ACEOF
  9731. /* confdefs.h. */
  9732. _ACEOF
  9733. cat confdefs.h >>conftest.$ac_ext
  9734. cat >>conftest.$ac_ext <<_ACEOF
  9735. /* end confdefs.h. */
  9736. $ac_includes_default
  9737. /* malloc might have been renamed as rpl_malloc. */
  9738. #undef malloc
  9739. /* Thanks to Mike Haertel and Jim Avera for this test.
  9740. Here is a matrix of mmap possibilities:
  9741. mmap private not fixed
  9742. mmap private fixed at somewhere currently unmapped
  9743. mmap private fixed at somewhere already mapped
  9744. mmap shared not fixed
  9745. mmap shared fixed at somewhere currently unmapped
  9746. mmap shared fixed at somewhere already mapped
  9747. For private mappings, we should verify that changes cannot be read()
  9748. back from the file, nor mmap's back from the file at a different
  9749. address. (There have been systems where private was not correctly
  9750. implemented like the infamous i386 svr4.0, and systems where the
  9751. VM page cache was not coherent with the file system buffer cache
  9752. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9753. For shared mappings, we should conversely verify that changes get
  9754. propagated back to all the places they're supposed to be.
  9755. Grep wants private fixed already mapped.
  9756. The main things grep needs to know about mmap are:
  9757. * does it exist and is it safe to write into the mmap'd area
  9758. * how to use it (BSD variants) */
  9759. #include <fcntl.h>
  9760. #include <sys/mman.h>
  9761. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9762. char *malloc ();
  9763. #endif
  9764. /* This mess was copied from the GNU getpagesize.h. */
  9765. #if !HAVE_GETPAGESIZE
  9766. /* Assume that all systems that can run configure have sys/param.h. */
  9767. # if !HAVE_SYS_PARAM_H
  9768. # define HAVE_SYS_PARAM_H 1
  9769. # endif
  9770. # ifdef _SC_PAGESIZE
  9771. # define getpagesize() sysconf(_SC_PAGESIZE)
  9772. # else /* no _SC_PAGESIZE */
  9773. # if HAVE_SYS_PARAM_H
  9774. # include <sys/param.h>
  9775. # ifdef EXEC_PAGESIZE
  9776. # define getpagesize() EXEC_PAGESIZE
  9777. # else /* no EXEC_PAGESIZE */
  9778. # ifdef NBPG
  9779. # define getpagesize() NBPG * CLSIZE
  9780. # ifndef CLSIZE
  9781. # define CLSIZE 1
  9782. # endif /* no CLSIZE */
  9783. # else /* no NBPG */
  9784. # ifdef NBPC
  9785. # define getpagesize() NBPC
  9786. # else /* no NBPC */
  9787. # ifdef PAGESIZE
  9788. # define getpagesize() PAGESIZE
  9789. # endif /* PAGESIZE */
  9790. # endif /* no NBPC */
  9791. # endif /* no NBPG */
  9792. # endif /* no EXEC_PAGESIZE */
  9793. # else /* no HAVE_SYS_PARAM_H */
  9794. # define getpagesize() 8192 /* punt totally */
  9795. # endif /* no HAVE_SYS_PARAM_H */
  9796. # endif /* no _SC_PAGESIZE */
  9797. #endif /* no HAVE_GETPAGESIZE */
  9798. int
  9799. main ()
  9800. {
  9801. char *data, *data2, *data3;
  9802. int i, pagesize;
  9803. int fd;
  9804. pagesize = getpagesize ();
  9805. /* First, make a file with some known garbage in it. */
  9806. data = (char *) malloc (pagesize);
  9807. if (!data)
  9808. exit (1);
  9809. for (i = 0; i < pagesize; ++i)
  9810. *(data + i) = rand ();
  9811. umask (0);
  9812. fd = creat ("conftest.mmap", 0600);
  9813. if (fd < 0)
  9814. exit (1);
  9815. if (write (fd, data, pagesize) != pagesize)
  9816. exit (1);
  9817. close (fd);
  9818. /* Next, try to mmap the file at a fixed address which already has
  9819. something else allocated at it. If we can, also make sure that
  9820. we see the same garbage. */
  9821. fd = open ("conftest.mmap", O_RDWR);
  9822. if (fd < 0)
  9823. exit (1);
  9824. data2 = (char *) malloc (2 * pagesize);
  9825. if (!data2)
  9826. exit (1);
  9827. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9828. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9829. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9830. exit (1);
  9831. for (i = 0; i < pagesize; ++i)
  9832. if (*(data + i) != *(data2 + i))
  9833. exit (1);
  9834. /* Finally, make sure that changes to the mapped area do not
  9835. percolate back to the file as seen by read(). (This is a bug on
  9836. some variants of i386 svr4.0.) */
  9837. for (i = 0; i < pagesize; ++i)
  9838. *(data2 + i) = *(data2 + i) + 1;
  9839. data3 = (char *) malloc (pagesize);
  9840. if (!data3)
  9841. exit (1);
  9842. if (read (fd, data3, pagesize) != pagesize)
  9843. exit (1);
  9844. for (i = 0; i < pagesize; ++i)
  9845. if (*(data + i) != *(data3 + i))
  9846. exit (1);
  9847. close (fd);
  9848. exit (0);
  9849. }
  9850. _ACEOF
  9851. rm -f conftest$ac_exeext
  9852. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9853. (eval $ac_link) 2>&5
  9854. ac_status=$?
  9855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9856. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9857. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9858. (eval $ac_try) 2>&5
  9859. ac_status=$?
  9860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9861. (exit $ac_status); }; }; then
  9862. ac_cv_func_mmap_fixed_mapped=yes
  9863. else
  9864. echo "$as_me: program exited with status $ac_status" >&5
  9865. echo "$as_me: failed program was:" >&5
  9866. sed 's/^/| /' conftest.$ac_ext >&5
  9867. ( exit $ac_status )
  9868. ac_cv_func_mmap_fixed_mapped=no
  9869. fi
  9870. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9871. fi
  9872. fi
  9873. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9874. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9875. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9876. cat >>confdefs.h <<\_ACEOF
  9877. #define HAVE_MMAP 1
  9878. _ACEOF
  9879. fi
  9880. rm -f conftest.mmap
  9881. for ac_header in stdlib.h
  9882. do
  9883. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9884. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9885. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9886. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9887. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9888. echo $ECHO_N "(cached) $ECHO_C" >&6
  9889. fi
  9890. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9891. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9892. else
  9893. # Is the header compilable?
  9894. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9895. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9896. cat >conftest.$ac_ext <<_ACEOF
  9897. /* confdefs.h. */
  9898. _ACEOF
  9899. cat confdefs.h >>conftest.$ac_ext
  9900. cat >>conftest.$ac_ext <<_ACEOF
  9901. /* end confdefs.h. */
  9902. $ac_includes_default
  9903. #include <$ac_header>
  9904. _ACEOF
  9905. rm -f conftest.$ac_objext
  9906. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9907. (eval $ac_compile) 2>conftest.er1
  9908. ac_status=$?
  9909. grep -v '^ *+' conftest.er1 >conftest.err
  9910. rm -f conftest.er1
  9911. cat conftest.err >&5
  9912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9913. (exit $ac_status); } &&
  9914. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9915. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9916. (eval $ac_try) 2>&5
  9917. ac_status=$?
  9918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9919. (exit $ac_status); }; } &&
  9920. { ac_try='test -s conftest.$ac_objext'
  9921. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9922. (eval $ac_try) 2>&5
  9923. ac_status=$?
  9924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9925. (exit $ac_status); }; }; then
  9926. ac_header_compiler=yes
  9927. else
  9928. echo "$as_me: failed program was:" >&5
  9929. sed 's/^/| /' conftest.$ac_ext >&5
  9930. ac_header_compiler=no
  9931. fi
  9932. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9933. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9934. echo "${ECHO_T}$ac_header_compiler" >&6
  9935. # Is the header present?
  9936. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9937. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9938. cat >conftest.$ac_ext <<_ACEOF
  9939. /* confdefs.h. */
  9940. _ACEOF
  9941. cat confdefs.h >>conftest.$ac_ext
  9942. cat >>conftest.$ac_ext <<_ACEOF
  9943. /* end confdefs.h. */
  9944. #include <$ac_header>
  9945. _ACEOF
  9946. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9947. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9948. ac_status=$?
  9949. grep -v '^ *+' conftest.er1 >conftest.err
  9950. rm -f conftest.er1
  9951. cat conftest.err >&5
  9952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9953. (exit $ac_status); } >/dev/null; then
  9954. if test -s conftest.err; then
  9955. ac_cpp_err=$ac_c_preproc_warn_flag
  9956. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9957. else
  9958. ac_cpp_err=
  9959. fi
  9960. else
  9961. ac_cpp_err=yes
  9962. fi
  9963. if test -z "$ac_cpp_err"; then
  9964. ac_header_preproc=yes
  9965. else
  9966. echo "$as_me: failed program was:" >&5
  9967. sed 's/^/| /' conftest.$ac_ext >&5
  9968. ac_header_preproc=no
  9969. fi
  9970. rm -f conftest.err conftest.$ac_ext
  9971. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9972. echo "${ECHO_T}$ac_header_preproc" >&6
  9973. # So? What about this header?
  9974. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9975. yes:no: )
  9976. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9977. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9978. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9979. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9980. ac_header_preproc=yes
  9981. ;;
  9982. no:yes:* )
  9983. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9984. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9985. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9986. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9987. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9988. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9989. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9990. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9991. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9992. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9993. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9994. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9995. (
  9996. cat <<\_ASBOX
  9997. ## ------------------------------------------ ##
  9998. ## Report this to the AC_PACKAGE_NAME lists. ##
  9999. ## ------------------------------------------ ##
  10000. _ASBOX
  10001. ) |
  10002. sed "s/^/$as_me: WARNING: /" >&2
  10003. ;;
  10004. esac
  10005. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10006. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10007. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10008. echo $ECHO_N "(cached) $ECHO_C" >&6
  10009. else
  10010. eval "$as_ac_Header=\$ac_header_preproc"
  10011. fi
  10012. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10013. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10014. fi
  10015. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10016. cat >>confdefs.h <<_ACEOF
  10017. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10018. _ACEOF
  10019. fi
  10020. done
  10021. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  10022. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  10023. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  10024. echo $ECHO_N "(cached) $ECHO_C" >&6
  10025. else
  10026. if test "$cross_compiling" = yes; then
  10027. ac_cv_func_realloc_0_nonnull=no
  10028. else
  10029. cat >conftest.$ac_ext <<_ACEOF
  10030. /* confdefs.h. */
  10031. _ACEOF
  10032. cat confdefs.h >>conftest.$ac_ext
  10033. cat >>conftest.$ac_ext <<_ACEOF
  10034. /* end confdefs.h. */
  10035. #if STDC_HEADERS || HAVE_STDLIB_H
  10036. # include <stdlib.h>
  10037. #else
  10038. char *realloc ();
  10039. #endif
  10040. int
  10041. main ()
  10042. {
  10043. exit (realloc (0, 0) ? 0 : 1);
  10044. ;
  10045. return 0;
  10046. }
  10047. _ACEOF
  10048. rm -f conftest$ac_exeext
  10049. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10050. (eval $ac_link) 2>&5
  10051. ac_status=$?
  10052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10053. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10054. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10055. (eval $ac_try) 2>&5
  10056. ac_status=$?
  10057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10058. (exit $ac_status); }; }; then
  10059. ac_cv_func_realloc_0_nonnull=yes
  10060. else
  10061. echo "$as_me: program exited with status $ac_status" >&5
  10062. echo "$as_me: failed program was:" >&5
  10063. sed 's/^/| /' conftest.$ac_ext >&5
  10064. ( exit $ac_status )
  10065. ac_cv_func_realloc_0_nonnull=no
  10066. fi
  10067. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10068. fi
  10069. fi
  10070. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  10071. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  10072. if test $ac_cv_func_realloc_0_nonnull = yes; then
  10073. cat >>confdefs.h <<\_ACEOF
  10074. #define HAVE_REALLOC 1
  10075. _ACEOF
  10076. else
  10077. cat >>confdefs.h <<\_ACEOF
  10078. #define HAVE_REALLOC 0
  10079. _ACEOF
  10080. case $LIBOBJS in
  10081. "realloc.$ac_objext" | \
  10082. *" realloc.$ac_objext" | \
  10083. "realloc.$ac_objext "* | \
  10084. *" realloc.$ac_objext "* ) ;;
  10085. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  10086. esac
  10087. cat >>confdefs.h <<\_ACEOF
  10088. #define realloc rpl_realloc
  10089. _ACEOF
  10090. fi
  10091. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  10092. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  10093. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  10094. echo $ECHO_N "(cached) $ECHO_C" >&6
  10095. else
  10096. if test "$cross_compiling" = yes; then
  10097. ac_cv_func_stat_empty_string_bug=yes
  10098. else
  10099. cat >conftest.$ac_ext <<_ACEOF
  10100. /* confdefs.h. */
  10101. _ACEOF
  10102. cat confdefs.h >>conftest.$ac_ext
  10103. cat >>conftest.$ac_ext <<_ACEOF
  10104. /* end confdefs.h. */
  10105. $ac_includes_default
  10106. int
  10107. main ()
  10108. {
  10109. struct stat sbuf;
  10110. exit (stat ("", &sbuf) ? 1 : 0);
  10111. ;
  10112. return 0;
  10113. }
  10114. _ACEOF
  10115. rm -f conftest$ac_exeext
  10116. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10117. (eval $ac_link) 2>&5
  10118. ac_status=$?
  10119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10120. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10121. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10122. (eval $ac_try) 2>&5
  10123. ac_status=$?
  10124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10125. (exit $ac_status); }; }; then
  10126. ac_cv_func_stat_empty_string_bug=yes
  10127. else
  10128. echo "$as_me: program exited with status $ac_status" >&5
  10129. echo "$as_me: failed program was:" >&5
  10130. sed 's/^/| /' conftest.$ac_ext >&5
  10131. ( exit $ac_status )
  10132. ac_cv_func_stat_empty_string_bug=no
  10133. fi
  10134. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10135. fi
  10136. fi
  10137. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  10138. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  10139. if test $ac_cv_func_stat_empty_string_bug = yes; then
  10140. case $LIBOBJS in
  10141. "stat.$ac_objext" | \
  10142. *" stat.$ac_objext" | \
  10143. "stat.$ac_objext "* | \
  10144. *" stat.$ac_objext "* ) ;;
  10145. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  10146. esac
  10147. cat >>confdefs.h <<_ACEOF
  10148. #define HAVE_STAT_EMPTY_STRING_BUG 1
  10149. _ACEOF
  10150. fi
  10151. for ac_func in strftime
  10152. do
  10153. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10154. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10155. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10156. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10157. echo $ECHO_N "(cached) $ECHO_C" >&6
  10158. else
  10159. cat >conftest.$ac_ext <<_ACEOF
  10160. /* confdefs.h. */
  10161. _ACEOF
  10162. cat confdefs.h >>conftest.$ac_ext
  10163. cat >>conftest.$ac_ext <<_ACEOF
  10164. /* end confdefs.h. */
  10165. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10166. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10167. #define $ac_func innocuous_$ac_func
  10168. /* System header to define __stub macros and hopefully few prototypes,
  10169. which can conflict with char $ac_func (); below.
  10170. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10171. <limits.h> exists even on freestanding compilers. */
  10172. #ifdef __STDC__
  10173. # include <limits.h>
  10174. #else
  10175. # include <assert.h>
  10176. #endif
  10177. #undef $ac_func
  10178. /* Override any gcc2 internal prototype to avoid an error. */
  10179. #ifdef __cplusplus
  10180. extern "C"
  10181. {
  10182. #endif
  10183. /* We use char because int might match the return type of a gcc2
  10184. builtin and then its argument prototype would still apply. */
  10185. char $ac_func ();
  10186. /* The GNU C library defines this for functions which it implements
  10187. to always fail with ENOSYS. Some functions are actually named
  10188. something starting with __ and the normal name is an alias. */
  10189. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10190. choke me
  10191. #else
  10192. char (*f) () = $ac_func;
  10193. #endif
  10194. #ifdef __cplusplus
  10195. }
  10196. #endif
  10197. int
  10198. main ()
  10199. {
  10200. return f != $ac_func;
  10201. ;
  10202. return 0;
  10203. }
  10204. _ACEOF
  10205. rm -f conftest.$ac_objext conftest$ac_exeext
  10206. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10207. (eval $ac_link) 2>conftest.er1
  10208. ac_status=$?
  10209. grep -v '^ *+' conftest.er1 >conftest.err
  10210. rm -f conftest.er1
  10211. cat conftest.err >&5
  10212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10213. (exit $ac_status); } &&
  10214. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10215. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10216. (eval $ac_try) 2>&5
  10217. ac_status=$?
  10218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10219. (exit $ac_status); }; } &&
  10220. { ac_try='test -s conftest$ac_exeext'
  10221. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10222. (eval $ac_try) 2>&5
  10223. ac_status=$?
  10224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10225. (exit $ac_status); }; }; then
  10226. eval "$as_ac_var=yes"
  10227. else
  10228. echo "$as_me: failed program was:" >&5
  10229. sed 's/^/| /' conftest.$ac_ext >&5
  10230. eval "$as_ac_var=no"
  10231. fi
  10232. rm -f conftest.err conftest.$ac_objext \
  10233. conftest$ac_exeext conftest.$ac_ext
  10234. fi
  10235. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10236. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10237. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10238. cat >>confdefs.h <<_ACEOF
  10239. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10240. _ACEOF
  10241. else
  10242. # strftime is in -lintl on SCO UNIX.
  10243. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  10244. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  10245. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  10246. echo $ECHO_N "(cached) $ECHO_C" >&6
  10247. else
  10248. ac_check_lib_save_LIBS=$LIBS
  10249. LIBS="-lintl $LIBS"
  10250. cat >conftest.$ac_ext <<_ACEOF
  10251. /* confdefs.h. */
  10252. _ACEOF
  10253. cat confdefs.h >>conftest.$ac_ext
  10254. cat >>conftest.$ac_ext <<_ACEOF
  10255. /* end confdefs.h. */
  10256. /* Override any gcc2 internal prototype to avoid an error. */
  10257. #ifdef __cplusplus
  10258. extern "C"
  10259. #endif
  10260. /* We use char because int might match the return type of a gcc2
  10261. builtin and then its argument prototype would still apply. */
  10262. char strftime ();
  10263. int
  10264. main ()
  10265. {
  10266. strftime ();
  10267. ;
  10268. return 0;
  10269. }
  10270. _ACEOF
  10271. rm -f conftest.$ac_objext conftest$ac_exeext
  10272. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10273. (eval $ac_link) 2>conftest.er1
  10274. ac_status=$?
  10275. grep -v '^ *+' conftest.er1 >conftest.err
  10276. rm -f conftest.er1
  10277. cat conftest.err >&5
  10278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10279. (exit $ac_status); } &&
  10280. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10281. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10282. (eval $ac_try) 2>&5
  10283. ac_status=$?
  10284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10285. (exit $ac_status); }; } &&
  10286. { ac_try='test -s conftest$ac_exeext'
  10287. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10288. (eval $ac_try) 2>&5
  10289. ac_status=$?
  10290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10291. (exit $ac_status); }; }; then
  10292. ac_cv_lib_intl_strftime=yes
  10293. else
  10294. echo "$as_me: failed program was:" >&5
  10295. sed 's/^/| /' conftest.$ac_ext >&5
  10296. ac_cv_lib_intl_strftime=no
  10297. fi
  10298. rm -f conftest.err conftest.$ac_objext \
  10299. conftest$ac_exeext conftest.$ac_ext
  10300. LIBS=$ac_check_lib_save_LIBS
  10301. fi
  10302. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  10303. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  10304. if test $ac_cv_lib_intl_strftime = yes; then
  10305. cat >>confdefs.h <<\_ACEOF
  10306. #define HAVE_STRFTIME 1
  10307. _ACEOF
  10308. LIBS="-lintl $LIBS"
  10309. fi
  10310. fi
  10311. done
  10312. #checkpoint
  10313. cat >confcache <<\_ACEOF
  10314. # This file is a shell script that caches the results of configure
  10315. # tests run on this system so they can be shared between configure
  10316. # scripts and configure runs, see configure's option --config-cache.
  10317. # It is not useful on other systems. If it contains results you don't
  10318. # want to keep, you may remove or edit it.
  10319. #
  10320. # config.status only pays attention to the cache file if you give it
  10321. # the --recheck option to rerun configure.
  10322. #
  10323. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10324. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10325. # following values.
  10326. _ACEOF
  10327. # The following way of writing the cache mishandles newlines in values,
  10328. # but we know of no workaround that is simple, portable, and efficient.
  10329. # So, don't put newlines in cache variables' values.
  10330. # Ultrix sh set writes to stderr and can't be redirected directly,
  10331. # and sets the high bit in the cache file unless we assign to the vars.
  10332. {
  10333. (set) 2>&1 |
  10334. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10335. *ac_space=\ *)
  10336. # `set' does not quote correctly, so add quotes (double-quote
  10337. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10338. sed -n \
  10339. "s/'/'\\\\''/g;
  10340. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10341. ;;
  10342. *)
  10343. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10344. sed -n \
  10345. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10346. ;;
  10347. esac;
  10348. } |
  10349. sed '
  10350. t clear
  10351. : clear
  10352. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10353. t end
  10354. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10355. : end' >>confcache
  10356. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10357. if test -w $cache_file; then
  10358. test "x$cache_file" != "x/dev/null"
  10359. cat confcache >$cache_file
  10360. else
  10361. echo "not updating unwritable cache $cache_file"
  10362. fi
  10363. fi
  10364. rm -f confcache
  10365. for ac_func in clock fsync getrusage inet_aton isascii gethostbyname2
  10366. do
  10367. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10368. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10369. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10370. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10371. echo $ECHO_N "(cached) $ECHO_C" >&6
  10372. else
  10373. cat >conftest.$ac_ext <<_ACEOF
  10374. /* confdefs.h. */
  10375. _ACEOF
  10376. cat confdefs.h >>conftest.$ac_ext
  10377. cat >>conftest.$ac_ext <<_ACEOF
  10378. /* end confdefs.h. */
  10379. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10380. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10381. #define $ac_func innocuous_$ac_func
  10382. /* System header to define __stub macros and hopefully few prototypes,
  10383. which can conflict with char $ac_func (); below.
  10384. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10385. <limits.h> exists even on freestanding compilers. */
  10386. #ifdef __STDC__
  10387. # include <limits.h>
  10388. #else
  10389. # include <assert.h>
  10390. #endif
  10391. #undef $ac_func
  10392. /* Override any gcc2 internal prototype to avoid an error. */
  10393. #ifdef __cplusplus
  10394. extern "C"
  10395. {
  10396. #endif
  10397. /* We use char because int might match the return type of a gcc2
  10398. builtin and then its argument prototype would still apply. */
  10399. char $ac_func ();
  10400. /* The GNU C library defines this for functions which it implements
  10401. to always fail with ENOSYS. Some functions are actually named
  10402. something starting with __ and the normal name is an alias. */
  10403. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10404. choke me
  10405. #else
  10406. char (*f) () = $ac_func;
  10407. #endif
  10408. #ifdef __cplusplus
  10409. }
  10410. #endif
  10411. int
  10412. main ()
  10413. {
  10414. return f != $ac_func;
  10415. ;
  10416. return 0;
  10417. }
  10418. _ACEOF
  10419. rm -f conftest.$ac_objext conftest$ac_exeext
  10420. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10421. (eval $ac_link) 2>conftest.er1
  10422. ac_status=$?
  10423. grep -v '^ *+' conftest.er1 >conftest.err
  10424. rm -f conftest.er1
  10425. cat conftest.err >&5
  10426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10427. (exit $ac_status); } &&
  10428. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10429. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10430. (eval $ac_try) 2>&5
  10431. ac_status=$?
  10432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10433. (exit $ac_status); }; } &&
  10434. { ac_try='test -s conftest$ac_exeext'
  10435. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10436. (eval $ac_try) 2>&5
  10437. ac_status=$?
  10438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10439. (exit $ac_status); }; }; then
  10440. eval "$as_ac_var=yes"
  10441. else
  10442. echo "$as_me: failed program was:" >&5
  10443. sed 's/^/| /' conftest.$ac_ext >&5
  10444. eval "$as_ac_var=no"
  10445. fi
  10446. rm -f conftest.err conftest.$ac_objext \
  10447. conftest$ac_exeext conftest.$ac_ext
  10448. fi
  10449. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10450. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10451. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10452. cat >>confdefs.h <<_ACEOF
  10453. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10454. _ACEOF
  10455. fi
  10456. done
  10457. for ac_func in getipnodebyname memcpy memset random rename setpgid sigaction sigemptyset snprintf srandom
  10458. do
  10459. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10460. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10461. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10462. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10463. echo $ECHO_N "(cached) $ECHO_C" >&6
  10464. else
  10465. cat >conftest.$ac_ext <<_ACEOF
  10466. /* confdefs.h. */
  10467. _ACEOF
  10468. cat confdefs.h >>conftest.$ac_ext
  10469. cat >>conftest.$ac_ext <<_ACEOF
  10470. /* end confdefs.h. */
  10471. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10472. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10473. #define $ac_func innocuous_$ac_func
  10474. /* System header to define __stub macros and hopefully few prototypes,
  10475. which can conflict with char $ac_func (); below.
  10476. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10477. <limits.h> exists even on freestanding compilers. */
  10478. #ifdef __STDC__
  10479. # include <limits.h>
  10480. #else
  10481. # include <assert.h>
  10482. #endif
  10483. #undef $ac_func
  10484. /* Override any gcc2 internal prototype to avoid an error. */
  10485. #ifdef __cplusplus
  10486. extern "C"
  10487. {
  10488. #endif
  10489. /* We use char because int might match the return type of a gcc2
  10490. builtin and then its argument prototype would still apply. */
  10491. char $ac_func ();
  10492. /* The GNU C library defines this for functions which it implements
  10493. to always fail with ENOSYS. Some functions are actually named
  10494. something starting with __ and the normal name is an alias. */
  10495. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10496. choke me
  10497. #else
  10498. char (*f) () = $ac_func;
  10499. #endif
  10500. #ifdef __cplusplus
  10501. }
  10502. #endif
  10503. int
  10504. main ()
  10505. {
  10506. return f != $ac_func;
  10507. ;
  10508. return 0;
  10509. }
  10510. _ACEOF
  10511. rm -f conftest.$ac_objext conftest$ac_exeext
  10512. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10513. (eval $ac_link) 2>conftest.er1
  10514. ac_status=$?
  10515. grep -v '^ *+' conftest.er1 >conftest.err
  10516. rm -f conftest.er1
  10517. cat conftest.err >&5
  10518. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10519. (exit $ac_status); } &&
  10520. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10521. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10522. (eval $ac_try) 2>&5
  10523. ac_status=$?
  10524. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10525. (exit $ac_status); }; } &&
  10526. { ac_try='test -s conftest$ac_exeext'
  10527. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10528. (eval $ac_try) 2>&5
  10529. ac_status=$?
  10530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10531. (exit $ac_status); }; }; then
  10532. eval "$as_ac_var=yes"
  10533. else
  10534. echo "$as_me: failed program was:" >&5
  10535. sed 's/^/| /' conftest.$ac_ext >&5
  10536. eval "$as_ac_var=no"
  10537. fi
  10538. rm -f conftest.err conftest.$ac_objext \
  10539. conftest$ac_exeext conftest.$ac_ext
  10540. fi
  10541. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10542. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10543. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10544. cat >>confdefs.h <<_ACEOF
  10545. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10546. _ACEOF
  10547. fi
  10548. done
  10549. #checkpoint
  10550. cat >confcache <<\_ACEOF
  10551. # This file is a shell script that caches the results of configure
  10552. # tests run on this system so they can be shared between configure
  10553. # scripts and configure runs, see configure's option --config-cache.
  10554. # It is not useful on other systems. If it contains results you don't
  10555. # want to keep, you may remove or edit it.
  10556. #
  10557. # config.status only pays attention to the cache file if you give it
  10558. # the --recheck option to rerun configure.
  10559. #
  10560. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10561. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10562. # following values.
  10563. _ACEOF
  10564. # The following way of writing the cache mishandles newlines in values,
  10565. # but we know of no workaround that is simple, portable, and efficient.
  10566. # So, don't put newlines in cache variables' values.
  10567. # Ultrix sh set writes to stderr and can't be redirected directly,
  10568. # and sets the high bit in the cache file unless we assign to the vars.
  10569. {
  10570. (set) 2>&1 |
  10571. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10572. *ac_space=\ *)
  10573. # `set' does not quote correctly, so add quotes (double-quote
  10574. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10575. sed -n \
  10576. "s/'/'\\\\''/g;
  10577. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10578. ;;
  10579. *)
  10580. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10581. sed -n \
  10582. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10583. ;;
  10584. esac;
  10585. } |
  10586. sed '
  10587. t clear
  10588. : clear
  10589. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10590. t end
  10591. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10592. : end' >>confcache
  10593. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10594. if test -w $cache_file; then
  10595. test "x$cache_file" != "x/dev/null"
  10596. cat confcache >$cache_file
  10597. else
  10598. echo "not updating unwritable cache $cache_file"
  10599. fi
  10600. fi
  10601. rm -f confcache
  10602. for ac_func in strcasecmp strncasecmp vsnprintf
  10603. do
  10604. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10605. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10606. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10607. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10608. echo $ECHO_N "(cached) $ECHO_C" >&6
  10609. else
  10610. cat >conftest.$ac_ext <<_ACEOF
  10611. /* confdefs.h. */
  10612. _ACEOF
  10613. cat confdefs.h >>conftest.$ac_ext
  10614. cat >>conftest.$ac_ext <<_ACEOF
  10615. /* end confdefs.h. */
  10616. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10617. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10618. #define $ac_func innocuous_$ac_func
  10619. /* System header to define __stub macros and hopefully few prototypes,
  10620. which can conflict with char $ac_func (); below.
  10621. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10622. <limits.h> exists even on freestanding compilers. */
  10623. #ifdef __STDC__
  10624. # include <limits.h>
  10625. #else
  10626. # include <assert.h>
  10627. #endif
  10628. #undef $ac_func
  10629. /* Override any gcc2 internal prototype to avoid an error. */
  10630. #ifdef __cplusplus
  10631. extern "C"
  10632. {
  10633. #endif
  10634. /* We use char because int might match the return type of a gcc2
  10635. builtin and then its argument prototype would still apply. */
  10636. char $ac_func ();
  10637. /* The GNU C library defines this for functions which it implements
  10638. to always fail with ENOSYS. Some functions are actually named
  10639. something starting with __ and the normal name is an alias. */
  10640. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10641. choke me
  10642. #else
  10643. char (*f) () = $ac_func;
  10644. #endif
  10645. #ifdef __cplusplus
  10646. }
  10647. #endif
  10648. int
  10649. main ()
  10650. {
  10651. return f != $ac_func;
  10652. ;
  10653. return 0;
  10654. }
  10655. _ACEOF
  10656. rm -f conftest.$ac_objext conftest$ac_exeext
  10657. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10658. (eval $ac_link) 2>conftest.er1
  10659. ac_status=$?
  10660. grep -v '^ *+' conftest.er1 >conftest.err
  10661. rm -f conftest.er1
  10662. cat conftest.err >&5
  10663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10664. (exit $ac_status); } &&
  10665. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10666. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10667. (eval $ac_try) 2>&5
  10668. ac_status=$?
  10669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10670. (exit $ac_status); }; } &&
  10671. { ac_try='test -s conftest$ac_exeext'
  10672. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10673. (eval $ac_try) 2>&5
  10674. ac_status=$?
  10675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10676. (exit $ac_status); }; }; then
  10677. eval "$as_ac_var=yes"
  10678. else
  10679. echo "$as_me: failed program was:" >&5
  10680. sed 's/^/| /' conftest.$ac_ext >&5
  10681. eval "$as_ac_var=no"
  10682. fi
  10683. rm -f conftest.err conftest.$ac_objext \
  10684. conftest$ac_exeext conftest.$ac_ext
  10685. fi
  10686. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10687. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10688. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10689. cat >>confdefs.h <<_ACEOF
  10690. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10691. _ACEOF
  10692. fi
  10693. done
  10694. #autoscan suggested this....
  10695. #These are recommended by autoscan, but no code supports it currently
  10696. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  10697. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  10698. for ac_func in vsprintf
  10699. do
  10700. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10701. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10702. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10703. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10704. echo $ECHO_N "(cached) $ECHO_C" >&6
  10705. else
  10706. cat >conftest.$ac_ext <<_ACEOF
  10707. /* confdefs.h. */
  10708. _ACEOF
  10709. cat confdefs.h >>conftest.$ac_ext
  10710. cat >>conftest.$ac_ext <<_ACEOF
  10711. /* end confdefs.h. */
  10712. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10713. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10714. #define $ac_func innocuous_$ac_func
  10715. /* System header to define __stub macros and hopefully few prototypes,
  10716. which can conflict with char $ac_func (); below.
  10717. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10718. <limits.h> exists even on freestanding compilers. */
  10719. #ifdef __STDC__
  10720. # include <limits.h>
  10721. #else
  10722. # include <assert.h>
  10723. #endif
  10724. #undef $ac_func
  10725. /* Override any gcc2 internal prototype to avoid an error. */
  10726. #ifdef __cplusplus
  10727. extern "C"
  10728. {
  10729. #endif
  10730. /* We use char because int might match the return type of a gcc2
  10731. builtin and then its argument prototype would still apply. */
  10732. char $ac_func ();
  10733. /* The GNU C library defines this for functions which it implements
  10734. to always fail with ENOSYS. Some functions are actually named
  10735. something starting with __ and the normal name is an alias. */
  10736. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10737. choke me
  10738. #else
  10739. char (*f) () = $ac_func;
  10740. #endif
  10741. #ifdef __cplusplus
  10742. }
  10743. #endif
  10744. int
  10745. main ()
  10746. {
  10747. return f != $ac_func;
  10748. ;
  10749. return 0;
  10750. }
  10751. _ACEOF
  10752. rm -f conftest.$ac_objext conftest$ac_exeext
  10753. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10754. (eval $ac_link) 2>conftest.er1
  10755. ac_status=$?
  10756. grep -v '^ *+' conftest.er1 >conftest.err
  10757. rm -f conftest.er1
  10758. cat conftest.err >&5
  10759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10760. (exit $ac_status); } &&
  10761. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10762. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10763. (eval $ac_try) 2>&5
  10764. ac_status=$?
  10765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10766. (exit $ac_status); }; } &&
  10767. { ac_try='test -s conftest$ac_exeext'
  10768. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10769. (eval $ac_try) 2>&5
  10770. ac_status=$?
  10771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10772. (exit $ac_status); }; }; then
  10773. eval "$as_ac_var=yes"
  10774. else
  10775. echo "$as_me: failed program was:" >&5
  10776. sed 's/^/| /' conftest.$ac_ext >&5
  10777. eval "$as_ac_var=no"
  10778. fi
  10779. rm -f conftest.err conftest.$ac_objext \
  10780. conftest$ac_exeext conftest.$ac_ext
  10781. fi
  10782. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10783. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10784. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10785. cat >>confdefs.h <<_ACEOF
  10786. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10787. _ACEOF
  10788. fi
  10789. done
  10790. if test "$ac_cv_func_vsprintf" = "no"
  10791. then
  10792. cat << 'EOF' >&2
  10793. configure: error:
  10794. Your system does not have the sprintf/vsprintf libraries.
  10795. These are required to compile almost anything. Sorry.
  10796. EOF
  10797. exit 1
  10798. fi
  10799. for ac_func in uname
  10800. do
  10801. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10802. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10803. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10804. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10805. echo $ECHO_N "(cached) $ECHO_C" >&6
  10806. else
  10807. cat >conftest.$ac_ext <<_ACEOF
  10808. /* confdefs.h. */
  10809. _ACEOF
  10810. cat confdefs.h >>conftest.$ac_ext
  10811. cat >>conftest.$ac_ext <<_ACEOF
  10812. /* end confdefs.h. */
  10813. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10814. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10815. #define $ac_func innocuous_$ac_func
  10816. /* System header to define __stub macros and hopefully few prototypes,
  10817. which can conflict with char $ac_func (); below.
  10818. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10819. <limits.h> exists even on freestanding compilers. */
  10820. #ifdef __STDC__
  10821. # include <limits.h>
  10822. #else
  10823. # include <assert.h>
  10824. #endif
  10825. #undef $ac_func
  10826. /* Override any gcc2 internal prototype to avoid an error. */
  10827. #ifdef __cplusplus
  10828. extern "C"
  10829. {
  10830. #endif
  10831. /* We use char because int might match the return type of a gcc2
  10832. builtin and then its argument prototype would still apply. */
  10833. char $ac_func ();
  10834. /* The GNU C library defines this for functions which it implements
  10835. to always fail with ENOSYS. Some functions are actually named
  10836. something starting with __ and the normal name is an alias. */
  10837. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10838. choke me
  10839. #else
  10840. char (*f) () = $ac_func;
  10841. #endif
  10842. #ifdef __cplusplus
  10843. }
  10844. #endif
  10845. int
  10846. main ()
  10847. {
  10848. return f != $ac_func;
  10849. ;
  10850. return 0;
  10851. }
  10852. _ACEOF
  10853. rm -f conftest.$ac_objext conftest$ac_exeext
  10854. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10855. (eval $ac_link) 2>conftest.er1
  10856. ac_status=$?
  10857. grep -v '^ *+' conftest.er1 >conftest.err
  10858. rm -f conftest.er1
  10859. cat conftest.err >&5
  10860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10861. (exit $ac_status); } &&
  10862. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10863. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10864. (eval $ac_try) 2>&5
  10865. ac_status=$?
  10866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10867. (exit $ac_status); }; } &&
  10868. { ac_try='test -s conftest$ac_exeext'
  10869. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10870. (eval $ac_try) 2>&5
  10871. ac_status=$?
  10872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10873. (exit $ac_status); }; }; then
  10874. eval "$as_ac_var=yes"
  10875. else
  10876. echo "$as_me: failed program was:" >&5
  10877. sed 's/^/| /' conftest.$ac_ext >&5
  10878. eval "$as_ac_var=no"
  10879. fi
  10880. rm -f conftest.err conftest.$ac_objext \
  10881. conftest$ac_exeext conftest.$ac_ext
  10882. fi
  10883. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10884. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10885. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10886. cat >>confdefs.h <<_ACEOF
  10887. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10888. _ACEOF
  10889. fi
  10890. done
  10891. if test "$ac_cv_func_uname" = "no"
  10892. then
  10893. cat << 'EOF' >&2
  10894. configure: error:
  10895. Your system does not have the uname() function.
  10896. This is required for the botpack.
  10897. EOF
  10898. exit 1
  10899. fi
  10900. # Make sure we have stdc headers, since we can't compile without them
  10901. if test "$ac_cv_header_stdc" = "no"
  10902. then
  10903. cat << 'EOF' >&2
  10904. configure: error:
  10905. Your system must support ANSI C Header files.
  10906. These are required for the language support. Sorry.
  10907. EOF
  10908. exit 1
  10909. fi
  10910. #checkpoint
  10911. cat >confcache <<\_ACEOF
  10912. # This file is a shell script that caches the results of configure
  10913. # tests run on this system so they can be shared between configure
  10914. # scripts and configure runs, see configure's option --config-cache.
  10915. # It is not useful on other systems. If it contains results you don't
  10916. # want to keep, you may remove or edit it.
  10917. #
  10918. # config.status only pays attention to the cache file if you give it
  10919. # the --recheck option to rerun configure.
  10920. #
  10921. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10922. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10923. # following values.
  10924. _ACEOF
  10925. # The following way of writing the cache mishandles newlines in values,
  10926. # but we know of no workaround that is simple, portable, and efficient.
  10927. # So, don't put newlines in cache variables' values.
  10928. # Ultrix sh set writes to stderr and can't be redirected directly,
  10929. # and sets the high bit in the cache file unless we assign to the vars.
  10930. {
  10931. (set) 2>&1 |
  10932. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10933. *ac_space=\ *)
  10934. # `set' does not quote correctly, so add quotes (double-quote
  10935. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10936. sed -n \
  10937. "s/'/'\\\\''/g;
  10938. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10939. ;;
  10940. *)
  10941. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10942. sed -n \
  10943. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10944. ;;
  10945. esac;
  10946. } |
  10947. sed '
  10948. t clear
  10949. : clear
  10950. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10951. t end
  10952. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10953. : end' >>confcache
  10954. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10955. if test -w $cache_file; then
  10956. test "x$cache_file" != "x/dev/null"
  10957. cat confcache >$cache_file
  10958. else
  10959. echo "not updating unwritable cache $cache_file"
  10960. fi
  10961. fi
  10962. rm -f confcache
  10963. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  10964. if ! test -f $cfg; then
  10965. cat << EOF >&2
  10966. configure: error:
  10967. Your pack cfg is missing, please copy it to $srcdir/$cfg
  10968. Or specify the path to it with: --with-cfg=
  10969. EOF
  10970. exit 1
  10971. fi
  10972. PACKNAME=`grep "PACKNAME " $cfg | $AWK '/PACKNAME/ {print $2}'`
  10973. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  10974. cat >>confdefs.h <<_ACEOF
  10975. #define EGG_VERSION $version_num
  10976. _ACEOF
  10977. for define in `sed -n -e 's/^+ \([^ ]*\) .*/\1/ p' $cfg`; do
  10978. u_define="S_$define"
  10979. cat >>confdefs.h <<_ACEOF
  10980. #define $u_define 1
  10981. _ACEOF
  10982. CFG="$cfg"
  10983. done
  10984. case "$srcdir" in
  10985. [\\/]* | ?:[\\/]*)
  10986. MOD_UPDIR=""
  10987. ;;
  10988. *)
  10989. MOD_UPDIR="../"
  10990. ;;
  10991. esac
  10992. 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"
  10993. for mf in $files; do
  10994. # Strip MF so we end up with the name of the file.
  10995. # echo "MF: $mf"
  10996. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10997. dirpart=`(dirname "$mf") 2>/dev/null ||
  10998. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10999. X"$mf" : 'X\(//\)[^/]' \| \
  11000. X"$mf" : 'X\(//\)$' \| \
  11001. X"$mf" : 'X\(/\)' \| \
  11002. . : '\(.\)' 2>/dev/null ||
  11003. echo X"$mf" |
  11004. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11005. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11006. /^X\(\/\/\)$/{ s//\1/; q; }
  11007. /^X\(\/\).*/{ s//\1/; q; }
  11008. s/.*/./; q'`
  11009. # echo "dirpart: $dirpart mf: $mf"
  11010. # rm -rf "$dirpart/.deps/"
  11011. rm -f "$dirpart/.deps/includes"
  11012. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  11013. for file in `sed -n -e '
  11014. /^OBJS = .*\\\\$/ {
  11015. s/^OBJS = //
  11016. :loop
  11017. s/\\\\$//
  11018. p
  11019. n
  11020. /\\\\$/ b loop
  11021. p
  11022. }
  11023. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  11024. do
  11025. base=`basename $file .o`
  11026. test -f "$dirpart/$base.c" || continue
  11027. if ! test -f "$dirpart/.deps/$base.Po"; then
  11028. echo '# dummy' > "$dirpart/.deps/$base.Po"
  11029. #Remove the .o file, because it needs to be recompiled for its dependancies.
  11030. if test -f "$dirpart/$base.o"; then
  11031. rm -f "$dirpart/$base.o"
  11032. fi
  11033. fi
  11034. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  11035. echo "_$base.c:" >> "$dirpart/.deps/includes"
  11036. done
  11037. done
  11038. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/mod/dns.mod/Makefile"
  11039. cat >confcache <<\_ACEOF
  11040. # This file is a shell script that caches the results of configure
  11041. # tests run on this system so they can be shared between configure
  11042. # scripts and configure runs, see configure's option --config-cache.
  11043. # It is not useful on other systems. If it contains results you don't
  11044. # want to keep, you may remove or edit it.
  11045. #
  11046. # config.status only pays attention to the cache file if you give it
  11047. # the --recheck option to rerun configure.
  11048. #
  11049. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11050. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11051. # following values.
  11052. _ACEOF
  11053. # The following way of writing the cache mishandles newlines in values,
  11054. # but we know of no workaround that is simple, portable, and efficient.
  11055. # So, don't put newlines in cache variables' values.
  11056. # Ultrix sh set writes to stderr and can't be redirected directly,
  11057. # and sets the high bit in the cache file unless we assign to the vars.
  11058. {
  11059. (set) 2>&1 |
  11060. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11061. *ac_space=\ *)
  11062. # `set' does not quote correctly, so add quotes (double-quote
  11063. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11064. sed -n \
  11065. "s/'/'\\\\''/g;
  11066. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11067. ;;
  11068. *)
  11069. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11070. sed -n \
  11071. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11072. ;;
  11073. esac;
  11074. } |
  11075. sed '
  11076. t clear
  11077. : clear
  11078. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11079. t end
  11080. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11081. : end' >>confcache
  11082. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11083. if test -w $cache_file; then
  11084. test "x$cache_file" != "x/dev/null"
  11085. cat confcache >$cache_file
  11086. else
  11087. echo "not updating unwritable cache $cache_file"
  11088. fi
  11089. fi
  11090. rm -f confcache
  11091. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11092. # Let make expand exec_prefix.
  11093. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11094. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11095. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11096. # trailing colons and then remove the whole line if VPATH becomes empty
  11097. # (actually we leave an empty line to preserve line numbers).
  11098. if test "x$srcdir" = x.; then
  11099. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11100. s/:*\$(srcdir):*/:/;
  11101. s/:*\${srcdir}:*/:/;
  11102. s/:*@srcdir@:*/:/;
  11103. s/^\([^=]*=[ ]*\):*/\1/;
  11104. s/:*$//;
  11105. s/^[^=]*=[ ]*$//;
  11106. }'
  11107. fi
  11108. DEFS=-DHAVE_CONFIG_H
  11109. ac_libobjs=
  11110. ac_ltlibobjs=
  11111. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11112. # 1. Remove the extension, and $U if already installed.
  11113. ac_i=`echo "$ac_i" |
  11114. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  11115. # 2. Add them.
  11116. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  11117. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  11118. done
  11119. LIBOBJS=$ac_libobjs
  11120. LTLIBOBJS=$ac_ltlibobjs
  11121. : ${CONFIG_STATUS=./config.status}
  11122. ac_clean_files_save=$ac_clean_files
  11123. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11124. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  11125. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11126. cat >$CONFIG_STATUS <<_ACEOF
  11127. #! $SHELL
  11128. # Generated by $as_me.
  11129. # Run this file to recreate the current configuration.
  11130. # Compiler output produced by configure, useful for debugging
  11131. # configure, is in config.log if it exists.
  11132. debug=false
  11133. ac_cs_recheck=false
  11134. ac_cs_silent=false
  11135. SHELL=\${CONFIG_SHELL-$SHELL}
  11136. _ACEOF
  11137. cat >>$CONFIG_STATUS <<\_ACEOF
  11138. ## --------------------- ##
  11139. ## M4sh Initialization. ##
  11140. ## --------------------- ##
  11141. # Be Bourne compatible
  11142. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  11143. emulate sh
  11144. NULLCMD=:
  11145. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  11146. # is contrary to our usage. Disable this feature.
  11147. alias -g '${1+"$@"}'='"$@"'
  11148. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  11149. set -o posix
  11150. fi
  11151. DUALCASE=1; export DUALCASE # for MKS sh
  11152. # Support unset when possible.
  11153. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11154. as_unset=unset
  11155. else
  11156. as_unset=false
  11157. fi
  11158. # Work around bugs in pre-3.0 UWIN ksh.
  11159. $as_unset ENV MAIL MAILPATH
  11160. PS1='$ '
  11161. PS2='> '
  11162. PS4='+ '
  11163. # NLS nuisances.
  11164. for as_var in \
  11165. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  11166. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  11167. LC_TELEPHONE LC_TIME
  11168. do
  11169. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  11170. eval $as_var=C; export $as_var
  11171. else
  11172. $as_unset $as_var
  11173. fi
  11174. done
  11175. # Required to use basename.
  11176. if expr a : '\(a\)' >/dev/null 2>&1; then
  11177. as_expr=expr
  11178. else
  11179. as_expr=false
  11180. fi
  11181. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  11182. as_basename=basename
  11183. else
  11184. as_basename=false
  11185. fi
  11186. # Name of the executable.
  11187. as_me=`$as_basename "$0" ||
  11188. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11189. X"$0" : 'X\(//\)$' \| \
  11190. X"$0" : 'X\(/\)$' \| \
  11191. . : '\(.\)' 2>/dev/null ||
  11192. echo X/"$0" |
  11193. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  11194. /^X\/\(\/\/\)$/{ s//\1/; q; }
  11195. /^X\/\(\/\).*/{ s//\1/; q; }
  11196. s/.*/./; q'`
  11197. # PATH needs CR, and LINENO needs CR and PATH.
  11198. # Avoid depending upon Character Ranges.
  11199. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11200. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11201. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11202. as_cr_digits='0123456789'
  11203. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11204. # The user is always right.
  11205. if test "${PATH_SEPARATOR+set}" != set; then
  11206. echo "#! /bin/sh" >conf$$.sh
  11207. echo "exit 0" >>conf$$.sh
  11208. chmod +x conf$$.sh
  11209. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11210. PATH_SEPARATOR=';'
  11211. else
  11212. PATH_SEPARATOR=:
  11213. fi
  11214. rm -f conf$$.sh
  11215. fi
  11216. as_lineno_1=$LINENO
  11217. as_lineno_2=$LINENO
  11218. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11219. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11220. test "x$as_lineno_3" = "x$as_lineno_2" || {
  11221. # Find who we are. Look in the path if we contain no path at all
  11222. # relative or not.
  11223. case $0 in
  11224. *[\\/]* ) as_myself=$0 ;;
  11225. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11226. for as_dir in $PATH
  11227. do
  11228. IFS=$as_save_IFS
  11229. test -z "$as_dir" && as_dir=.
  11230. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11231. done
  11232. ;;
  11233. esac
  11234. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11235. # in which case we are not to be found in the path.
  11236. if test "x$as_myself" = x; then
  11237. as_myself=$0
  11238. fi
  11239. if test ! -f "$as_myself"; then
  11240. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  11241. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  11242. { (exit 1); exit 1; }; }
  11243. fi
  11244. case $CONFIG_SHELL in
  11245. '')
  11246. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11247. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  11248. do
  11249. IFS=$as_save_IFS
  11250. test -z "$as_dir" && as_dir=.
  11251. for as_base in sh bash ksh sh5; do
  11252. case $as_dir in
  11253. /*)
  11254. if ("$as_dir/$as_base" -c '
  11255. as_lineno_1=$LINENO
  11256. as_lineno_2=$LINENO
  11257. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11258. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11259. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  11260. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  11261. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  11262. CONFIG_SHELL=$as_dir/$as_base
  11263. export CONFIG_SHELL
  11264. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  11265. fi;;
  11266. esac
  11267. done
  11268. done
  11269. ;;
  11270. esac
  11271. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11272. # uniformly replaced by the line number. The first 'sed' inserts a
  11273. # line-number line before each line; the second 'sed' does the real
  11274. # work. The second script uses 'N' to pair each line-number line
  11275. # with the numbered line, and appends trailing '-' during
  11276. # substitution so that $LINENO is not a special case at line end.
  11277. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11278. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  11279. sed '=' <$as_myself |
  11280. sed '
  11281. N
  11282. s,$,-,
  11283. : loop
  11284. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  11285. t loop
  11286. s,-$,,
  11287. s,^['$as_cr_digits']*\n,,
  11288. ' >$as_me.lineno &&
  11289. chmod +x $as_me.lineno ||
  11290. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  11291. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  11292. { (exit 1); exit 1; }; }
  11293. # Don't try to exec as it changes $[0], causing all sort of problems
  11294. # (the dirname of $[0] is not the place where we might find the
  11295. # original and so on. Autoconf is especially sensible to this).
  11296. . ./$as_me.lineno
  11297. # Exit status is that of the last command.
  11298. exit
  11299. }
  11300. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  11301. *c*,-n*) ECHO_N= ECHO_C='
  11302. ' ECHO_T=' ' ;;
  11303. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  11304. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  11305. esac
  11306. if expr a : '\(a\)' >/dev/null 2>&1; then
  11307. as_expr=expr
  11308. else
  11309. as_expr=false
  11310. fi
  11311. rm -f conf$$ conf$$.exe conf$$.file
  11312. echo >conf$$.file
  11313. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11314. # We could just check for DJGPP; but this test a) works b) is more generic
  11315. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  11316. if test -f conf$$.exe; then
  11317. # Don't use ln at all; we don't have any links
  11318. as_ln_s='cp -p'
  11319. else
  11320. as_ln_s='ln -s'
  11321. fi
  11322. elif ln conf$$.file conf$$ 2>/dev/null; then
  11323. as_ln_s=ln
  11324. else
  11325. as_ln_s='cp -p'
  11326. fi
  11327. rm -f conf$$ conf$$.exe conf$$.file
  11328. if mkdir -p . 2>/dev/null; then
  11329. as_mkdir_p=:
  11330. else
  11331. test -d ./-p && rmdir ./-p
  11332. as_mkdir_p=false
  11333. fi
  11334. as_executable_p="test -f"
  11335. # Sed expression to map a string onto a valid CPP name.
  11336. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11337. # Sed expression to map a string onto a valid variable name.
  11338. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11339. # IFS
  11340. # We need space, tab and new line, in precisely that order.
  11341. as_nl='
  11342. '
  11343. IFS=" $as_nl"
  11344. # CDPATH.
  11345. $as_unset CDPATH
  11346. exec 6>&1
  11347. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  11348. # report actual input values of CONFIG_FILES etc. instead of their
  11349. # values after options handling. Logging --version etc. is OK.
  11350. exec 5>>config.log
  11351. {
  11352. echo
  11353. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11354. ## Running $as_me. ##
  11355. _ASBOX
  11356. } >&5
  11357. cat >&5 <<_CSEOF
  11358. This file was extended by $as_me, which was
  11359. generated by GNU Autoconf 2.59. Invocation command line was
  11360. CONFIG_FILES = $CONFIG_FILES
  11361. CONFIG_HEADERS = $CONFIG_HEADERS
  11362. CONFIG_LINKS = $CONFIG_LINKS
  11363. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11364. $ $0 $@
  11365. _CSEOF
  11366. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  11367. echo >&5
  11368. _ACEOF
  11369. # Files that config.status was made for.
  11370. if test -n "$ac_config_files"; then
  11371. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  11372. fi
  11373. if test -n "$ac_config_headers"; then
  11374. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  11375. fi
  11376. if test -n "$ac_config_links"; then
  11377. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  11378. fi
  11379. if test -n "$ac_config_commands"; then
  11380. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  11381. fi
  11382. cat >>$CONFIG_STATUS <<\_ACEOF
  11383. ac_cs_usage="\
  11384. \`$as_me' instantiates files from templates according to the
  11385. current configuration.
  11386. Usage: $0 [OPTIONS] [FILE]...
  11387. -h, --help print this help, then exit
  11388. -V, --version print version number, then exit
  11389. -q, --quiet do not print progress messages
  11390. -d, --debug don't remove temporary files
  11391. --recheck update $as_me by reconfiguring in the same conditions
  11392. --file=FILE[:TEMPLATE]
  11393. instantiate the configuration file FILE
  11394. --header=FILE[:TEMPLATE]
  11395. instantiate the configuration header FILE
  11396. Configuration files:
  11397. $config_files
  11398. Configuration headers:
  11399. $config_headers
  11400. Report bugs to <bug-autoconf@gnu.org>."
  11401. _ACEOF
  11402. cat >>$CONFIG_STATUS <<_ACEOF
  11403. ac_cs_version="\\
  11404. config.status
  11405. configured by $0, generated by GNU Autoconf 2.59,
  11406. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  11407. Copyright (C) 2003 Free Software Foundation, Inc.
  11408. This config.status script is free software; the Free Software Foundation
  11409. gives unlimited permission to copy, distribute and modify it."
  11410. srcdir=$srcdir
  11411. _ACEOF
  11412. cat >>$CONFIG_STATUS <<\_ACEOF
  11413. # If no file are specified by the user, then we need to provide default
  11414. # value. By we need to know if files were specified by the user.
  11415. ac_need_defaults=:
  11416. while test $# != 0
  11417. do
  11418. case $1 in
  11419. --*=*)
  11420. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  11421. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  11422. ac_shift=:
  11423. ;;
  11424. -*)
  11425. ac_option=$1
  11426. ac_optarg=$2
  11427. ac_shift=shift
  11428. ;;
  11429. *) # This is not an option, so the user has probably given explicit
  11430. # arguments.
  11431. ac_option=$1
  11432. ac_need_defaults=false;;
  11433. esac
  11434. case $ac_option in
  11435. # Handling of the options.
  11436. _ACEOF
  11437. cat >>$CONFIG_STATUS <<\_ACEOF
  11438. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11439. ac_cs_recheck=: ;;
  11440. --version | --vers* | -V )
  11441. echo "$ac_cs_version"; exit 0 ;;
  11442. --he | --h)
  11443. # Conflict between --help and --header
  11444. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  11445. Try \`$0 --help' for more information." >&5
  11446. echo "$as_me: error: ambiguous option: $1
  11447. Try \`$0 --help' for more information." >&2;}
  11448. { (exit 1); exit 1; }; };;
  11449. --help | --hel | -h )
  11450. echo "$ac_cs_usage"; exit 0 ;;
  11451. --debug | --d* | -d )
  11452. debug=: ;;
  11453. --file | --fil | --fi | --f )
  11454. $ac_shift
  11455. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11456. ac_need_defaults=false;;
  11457. --header | --heade | --head | --hea )
  11458. $ac_shift
  11459. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11460. ac_need_defaults=false;;
  11461. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11462. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11463. ac_cs_silent=: ;;
  11464. # This is an error.
  11465. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  11466. Try \`$0 --help' for more information." >&5
  11467. echo "$as_me: error: unrecognized option: $1
  11468. Try \`$0 --help' for more information." >&2;}
  11469. { (exit 1); exit 1; }; } ;;
  11470. *) ac_config_targets="$ac_config_targets $1" ;;
  11471. esac
  11472. shift
  11473. done
  11474. ac_configure_extra_args=
  11475. if $ac_cs_silent; then
  11476. exec 6>/dev/null
  11477. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11478. fi
  11479. _ACEOF
  11480. cat >>$CONFIG_STATUS <<_ACEOF
  11481. if \$ac_cs_recheck; then
  11482. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11483. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11484. fi
  11485. _ACEOF
  11486. cat >>$CONFIG_STATUS <<\_ACEOF
  11487. for ac_config_target in $ac_config_targets
  11488. do
  11489. case "$ac_config_target" in
  11490. # Handling of arguments.
  11491. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11492. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11493. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  11494. "src/crypto/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  11495. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  11496. "src/mod/dns.mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/dns.mod/Makefile" ;;
  11497. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11498. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11499. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11500. { (exit 1); exit 1; }; };;
  11501. esac
  11502. done
  11503. # If the user did not use the arguments to specify the items to instantiate,
  11504. # then the envvar interface is used. Set only those that are not.
  11505. # We use the long form for the default assignment because of an extremely
  11506. # bizarre bug on SunOS 4.1.3.
  11507. if $ac_need_defaults; then
  11508. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11509. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11510. fi
  11511. # Have a temporary directory for convenience. Make it in the build tree
  11512. # simply because there is no reason to put it here, and in addition,
  11513. # creating and moving files from /tmp can sometimes cause problems.
  11514. # Create a temporary directory, and hook for its removal unless debugging.
  11515. $debug ||
  11516. {
  11517. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11518. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11519. }
  11520. # Create a (secure) tmp directory for tmp files.
  11521. {
  11522. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11523. test -n "$tmp" && test -d "$tmp"
  11524. } ||
  11525. {
  11526. tmp=./confstat$$-$RANDOM
  11527. (umask 077 && mkdir $tmp)
  11528. } ||
  11529. {
  11530. echo "$me: cannot create a temporary directory in ." >&2
  11531. { (exit 1); exit 1; }
  11532. }
  11533. _ACEOF
  11534. cat >>$CONFIG_STATUS <<_ACEOF
  11535. #
  11536. # CONFIG_FILES section.
  11537. #
  11538. # No need to generate the scripts if there are no CONFIG_FILES.
  11539. # This happens for instance when ./config.status config.h
  11540. if test -n "\$CONFIG_FILES"; then
  11541. # Protect against being on the right side of a sed subst in config.status.
  11542. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11543. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11544. s,@SHELL@,$SHELL,;t t
  11545. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11546. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11547. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11548. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11549. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11550. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11551. s,@exec_prefix@,$exec_prefix,;t t
  11552. s,@prefix@,$prefix,;t t
  11553. s,@program_transform_name@,$program_transform_name,;t t
  11554. s,@bindir@,$bindir,;t t
  11555. s,@sbindir@,$sbindir,;t t
  11556. s,@libexecdir@,$libexecdir,;t t
  11557. s,@datadir@,$datadir,;t t
  11558. s,@sysconfdir@,$sysconfdir,;t t
  11559. s,@sharedstatedir@,$sharedstatedir,;t t
  11560. s,@localstatedir@,$localstatedir,;t t
  11561. s,@libdir@,$libdir,;t t
  11562. s,@includedir@,$includedir,;t t
  11563. s,@oldincludedir@,$oldincludedir,;t t
  11564. s,@infodir@,$infodir,;t t
  11565. s,@mandir@,$mandir,;t t
  11566. s,@build_alias@,$build_alias,;t t
  11567. s,@host_alias@,$host_alias,;t t
  11568. s,@target_alias@,$target_alias,;t t
  11569. s,@DEFS@,$DEFS,;t t
  11570. s,@ECHO_C@,$ECHO_C,;t t
  11571. s,@ECHO_N@,$ECHO_N,;t t
  11572. s,@ECHO_T@,$ECHO_T,;t t
  11573. s,@LIBS@,$LIBS,;t t
  11574. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  11575. s,@CC@,$CC,;t t
  11576. s,@CFLAGS@,$CFLAGS,;t t
  11577. s,@LDFLAGS@,$LDFLAGS,;t t
  11578. s,@CPPFLAGS@,$CPPFLAGS,;t t
  11579. s,@ac_ct_CC@,$ac_ct_CC,;t t
  11580. s,@EXEEXT@,$EXEEXT,;t t
  11581. s,@OBJEXT@,$OBJEXT,;t t
  11582. s,@CPP@,$CPP,;t t
  11583. s,@EGREP@,$EGREP,;t t
  11584. s,@CCDEPMODE@,$CCDEPMODE,;t t
  11585. s,@GCC3@,$GCC3,;t t
  11586. s,@CCDEBUG@,$CCDEBUG,;t t
  11587. s,@SET_MAKE@,$SET_MAKE,;t t
  11588. s,@HEAD_1@,$HEAD_1,;t t
  11589. s,@AWK@,$AWK,;t t
  11590. s,@BASENAME@,$BASENAME,;t t
  11591. s,@OBJCOPY@,$OBJCOPY,;t t
  11592. s,@STRIP@,$STRIP,;t t
  11593. s,@UNAME@,$UNAME,;t t
  11594. s,@DISTCC@,$DISTCC,;t t
  11595. s,@RESLIB@,$RESLIB,;t t
  11596. s,@RESINCLUDE@,$RESINCLUDE,;t t
  11597. s,@ZLIB@,$ZLIB,;t t
  11598. s,@LIBOBJS@,$LIBOBJS,;t t
  11599. s,@VERSION@,$VERSION,;t t
  11600. s,@NUMVER@,$NUMVER,;t t
  11601. s,@PACKNAME@,$PACKNAME,;t t
  11602. s,@CFG@,$CFG,;t t
  11603. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  11604. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11605. CEOF
  11606. _ACEOF
  11607. cat >>$CONFIG_STATUS <<\_ACEOF
  11608. # Split the substitutions into bite-sized pieces for seds with
  11609. # small command number limits, like on Digital OSF/1 and HP-UX.
  11610. ac_max_sed_lines=48
  11611. ac_sed_frag=1 # Number of current file.
  11612. ac_beg=1 # First line for current file.
  11613. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11614. ac_more_lines=:
  11615. ac_sed_cmds=
  11616. while $ac_more_lines; do
  11617. if test $ac_beg -gt 1; then
  11618. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11619. else
  11620. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11621. fi
  11622. if test ! -s $tmp/subs.frag; then
  11623. ac_more_lines=false
  11624. else
  11625. # The purpose of the label and of the branching condition is to
  11626. # speed up the sed processing (if there are no `@' at all, there
  11627. # is no need to browse any of the substitutions).
  11628. # These are the two extra sed commands mentioned above.
  11629. (echo ':t
  11630. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11631. if test -z "$ac_sed_cmds"; then
  11632. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11633. else
  11634. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11635. fi
  11636. ac_sed_frag=`expr $ac_sed_frag + 1`
  11637. ac_beg=$ac_end
  11638. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11639. fi
  11640. done
  11641. if test -z "$ac_sed_cmds"; then
  11642. ac_sed_cmds=cat
  11643. fi
  11644. fi # test -n "$CONFIG_FILES"
  11645. _ACEOF
  11646. cat >>$CONFIG_STATUS <<\_ACEOF
  11647. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11648. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11649. case $ac_file in
  11650. - | *:- | *:-:* ) # input from stdin
  11651. cat >$tmp/stdin
  11652. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11653. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11654. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11655. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11656. * ) ac_file_in=$ac_file.in ;;
  11657. esac
  11658. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11659. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11660. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11661. X"$ac_file" : 'X\(//\)[^/]' \| \
  11662. X"$ac_file" : 'X\(//\)$' \| \
  11663. X"$ac_file" : 'X\(/\)' \| \
  11664. . : '\(.\)' 2>/dev/null ||
  11665. echo X"$ac_file" |
  11666. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11667. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11668. /^X\(\/\/\)$/{ s//\1/; q; }
  11669. /^X\(\/\).*/{ s//\1/; q; }
  11670. s/.*/./; q'`
  11671. { if $as_mkdir_p; then
  11672. mkdir -p "$ac_dir"
  11673. else
  11674. as_dir="$ac_dir"
  11675. as_dirs=
  11676. while test ! -d "$as_dir"; do
  11677. as_dirs="$as_dir $as_dirs"
  11678. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11679. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11680. X"$as_dir" : 'X\(//\)[^/]' \| \
  11681. X"$as_dir" : 'X\(//\)$' \| \
  11682. X"$as_dir" : 'X\(/\)' \| \
  11683. . : '\(.\)' 2>/dev/null ||
  11684. echo X"$as_dir" |
  11685. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11686. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11687. /^X\(\/\/\)$/{ s//\1/; q; }
  11688. /^X\(\/\).*/{ s//\1/; q; }
  11689. s/.*/./; q'`
  11690. done
  11691. test ! -n "$as_dirs" || mkdir $as_dirs
  11692. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11693. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11694. { (exit 1); exit 1; }; }; }
  11695. ac_builddir=.
  11696. if test "$ac_dir" != .; then
  11697. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11698. # A "../" for each directory in $ac_dir_suffix.
  11699. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11700. else
  11701. ac_dir_suffix= ac_top_builddir=
  11702. fi
  11703. case $srcdir in
  11704. .) # No --srcdir option. We are building in place.
  11705. ac_srcdir=.
  11706. if test -z "$ac_top_builddir"; then
  11707. ac_top_srcdir=.
  11708. else
  11709. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11710. fi ;;
  11711. [\\/]* | ?:[\\/]* ) # Absolute path.
  11712. ac_srcdir=$srcdir$ac_dir_suffix;
  11713. ac_top_srcdir=$srcdir ;;
  11714. *) # Relative path.
  11715. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11716. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11717. esac
  11718. # Do not use `cd foo && pwd` to compute absolute paths, because
  11719. # the directories may not exist.
  11720. case `pwd` in
  11721. .) ac_abs_builddir="$ac_dir";;
  11722. *)
  11723. case "$ac_dir" in
  11724. .) ac_abs_builddir=`pwd`;;
  11725. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11726. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11727. esac;;
  11728. esac
  11729. case $ac_abs_builddir in
  11730. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11731. *)
  11732. case ${ac_top_builddir}. in
  11733. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11734. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11735. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11736. esac;;
  11737. esac
  11738. case $ac_abs_builddir in
  11739. .) ac_abs_srcdir=$ac_srcdir;;
  11740. *)
  11741. case $ac_srcdir in
  11742. .) ac_abs_srcdir=$ac_abs_builddir;;
  11743. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11744. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11745. esac;;
  11746. esac
  11747. case $ac_abs_builddir in
  11748. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11749. *)
  11750. case $ac_top_srcdir in
  11751. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11752. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11753. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11754. esac;;
  11755. esac
  11756. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11757. # use $as_me), people would be surprised to read:
  11758. # /* config.h. Generated by config.status. */
  11759. if test x"$ac_file" = x-; then
  11760. configure_input=
  11761. else
  11762. configure_input="$ac_file. "
  11763. fi
  11764. configure_input=$configure_input"Generated from `echo $ac_file_in |
  11765. sed 's,.*/,,'` by configure."
  11766. # First look for the input files in the build tree, otherwise in the
  11767. # src tree.
  11768. ac_file_inputs=`IFS=:
  11769. for f in $ac_file_in; do
  11770. case $f in
  11771. -) echo $tmp/stdin ;;
  11772. [\\/$]*)
  11773. # Absolute (can't be DOS-style, as IFS=:)
  11774. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11775. echo "$as_me: error: cannot find input file: $f" >&2;}
  11776. { (exit 1); exit 1; }; }
  11777. echo "$f";;
  11778. *) # Relative
  11779. if test -f "$f"; then
  11780. # Build tree
  11781. echo "$f"
  11782. elif test -f "$srcdir/$f"; then
  11783. # Source tree
  11784. echo "$srcdir/$f"
  11785. else
  11786. # /dev/null tree
  11787. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11788. echo "$as_me: error: cannot find input file: $f" >&2;}
  11789. { (exit 1); exit 1; }; }
  11790. fi;;
  11791. esac
  11792. done` || { (exit 1); exit 1; }
  11793. if test x"$ac_file" != x-; then
  11794. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11795. echo "$as_me: creating $ac_file" >&6;}
  11796. rm -f "$ac_file"
  11797. fi
  11798. _ACEOF
  11799. cat >>$CONFIG_STATUS <<_ACEOF
  11800. sed "$ac_vpsub
  11801. $extrasub
  11802. _ACEOF
  11803. cat >>$CONFIG_STATUS <<\_ACEOF
  11804. :t
  11805. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11806. s,@configure_input@,$configure_input,;t t
  11807. s,@srcdir@,$ac_srcdir,;t t
  11808. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  11809. s,@top_srcdir@,$ac_top_srcdir,;t t
  11810. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  11811. s,@builddir@,$ac_builddir,;t t
  11812. s,@abs_builddir@,$ac_abs_builddir,;t t
  11813. s,@top_builddir@,$ac_top_builddir,;t t
  11814. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  11815. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  11816. rm -f $tmp/stdin
  11817. if test x"$ac_file" != x-; then
  11818. mv $tmp/out $ac_file
  11819. else
  11820. cat $tmp/out
  11821. rm -f $tmp/out
  11822. fi
  11823. done
  11824. _ACEOF
  11825. cat >>$CONFIG_STATUS <<\_ACEOF
  11826. #
  11827. # CONFIG_HEADER section.
  11828. #
  11829. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11830. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11831. #
  11832. # ac_d sets the value in "#define NAME VALUE" lines.
  11833. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11834. ac_dB='[ ].*$,\1#\2'
  11835. ac_dC=' '
  11836. ac_dD=',;t'
  11837. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11838. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11839. ac_uB='$,\1#\2define\3'
  11840. ac_uC=' '
  11841. ac_uD=',;t'
  11842. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  11843. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11844. case $ac_file in
  11845. - | *:- | *:-:* ) # input from stdin
  11846. cat >$tmp/stdin
  11847. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11848. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11849. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11850. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11851. * ) ac_file_in=$ac_file.in ;;
  11852. esac
  11853. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  11854. echo "$as_me: creating $ac_file" >&6;}
  11855. # First look for the input files in the build tree, otherwise in the
  11856. # src tree.
  11857. ac_file_inputs=`IFS=:
  11858. for f in $ac_file_in; do
  11859. case $f in
  11860. -) echo $tmp/stdin ;;
  11861. [\\/$]*)
  11862. # Absolute (can't be DOS-style, as IFS=:)
  11863. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11864. echo "$as_me: error: cannot find input file: $f" >&2;}
  11865. { (exit 1); exit 1; }; }
  11866. # Do quote $f, to prevent DOS paths from being IFS'd.
  11867. echo "$f";;
  11868. *) # Relative
  11869. if test -f "$f"; then
  11870. # Build tree
  11871. echo "$f"
  11872. elif test -f "$srcdir/$f"; then
  11873. # Source tree
  11874. echo "$srcdir/$f"
  11875. else
  11876. # /dev/null tree
  11877. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11878. echo "$as_me: error: cannot find input file: $f" >&2;}
  11879. { (exit 1); exit 1; }; }
  11880. fi;;
  11881. esac
  11882. done` || { (exit 1); exit 1; }
  11883. # Remove the trailing spaces.
  11884. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  11885. _ACEOF
  11886. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  11887. # `conftest.undefs', that substitutes the proper values into
  11888. # config.h.in to produce config.h. The first handles `#define'
  11889. # templates, and the second `#undef' templates.
  11890. # And first: Protect against being on the right side of a sed subst in
  11891. # config.status. Protect against being in an unquoted here document
  11892. # in config.status.
  11893. rm -f conftest.defines conftest.undefs
  11894. # Using a here document instead of a string reduces the quoting nightmare.
  11895. # Putting comments in sed scripts is not portable.
  11896. #
  11897. # `end' is used to avoid that the second main sed command (meant for
  11898. # 0-ary CPP macros) applies to n-ary macro definitions.
  11899. # See the Autoconf documentation for `clear'.
  11900. cat >confdef2sed.sed <<\_ACEOF
  11901. s/[\\&,]/\\&/g
  11902. s,[\\$`],\\&,g
  11903. t clear
  11904. : clear
  11905. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  11906. t end
  11907. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  11908. : end
  11909. _ACEOF
  11910. # If some macros were called several times there might be several times
  11911. # the same #defines, which is useless. Nevertheless, we may not want to
  11912. # sort them, since we want the *last* AC-DEFINE to be honored.
  11913. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  11914. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  11915. rm -f confdef2sed.sed
  11916. # This sed command replaces #undef with comments. This is necessary, for
  11917. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11918. # on some systems where configure will not decide to define it.
  11919. cat >>conftest.undefs <<\_ACEOF
  11920. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  11921. _ACEOF
  11922. # Break up conftest.defines because some shells have a limit on the size
  11923. # of here documents, and old seds have small limits too (100 cmds).
  11924. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  11925. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  11926. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  11927. echo ' :' >>$CONFIG_STATUS
  11928. rm -f conftest.tail
  11929. while grep . conftest.defines >/dev/null
  11930. do
  11931. # Write a limited-size here document to $tmp/defines.sed.
  11932. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  11933. # Speed up: don't consider the non `#define' lines.
  11934. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  11935. # Work around the forget-to-reset-the-flag bug.
  11936. echo 't clr' >>$CONFIG_STATUS
  11937. echo ': clr' >>$CONFIG_STATUS
  11938. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  11939. echo 'CEOF
  11940. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  11941. rm -f $tmp/in
  11942. mv $tmp/out $tmp/in
  11943. ' >>$CONFIG_STATUS
  11944. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  11945. rm -f conftest.defines
  11946. mv conftest.tail conftest.defines
  11947. done
  11948. rm -f conftest.defines
  11949. echo ' fi # grep' >>$CONFIG_STATUS
  11950. echo >>$CONFIG_STATUS
  11951. # Break up conftest.undefs because some shells have a limit on the size
  11952. # of here documents, and old seds have small limits too (100 cmds).
  11953. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  11954. rm -f conftest.tail
  11955. while grep . conftest.undefs >/dev/null
  11956. do
  11957. # Write a limited-size here document to $tmp/undefs.sed.
  11958. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  11959. # Speed up: don't consider the non `#undef'
  11960. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  11961. # Work around the forget-to-reset-the-flag bug.
  11962. echo 't clr' >>$CONFIG_STATUS
  11963. echo ': clr' >>$CONFIG_STATUS
  11964. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  11965. echo 'CEOF
  11966. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  11967. rm -f $tmp/in
  11968. mv $tmp/out $tmp/in
  11969. ' >>$CONFIG_STATUS
  11970. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  11971. rm -f conftest.undefs
  11972. mv conftest.tail conftest.undefs
  11973. done
  11974. rm -f conftest.undefs
  11975. cat >>$CONFIG_STATUS <<\_ACEOF
  11976. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11977. # use $as_me), people would be surprised to read:
  11978. # /* config.h. Generated by config.status. */
  11979. if test x"$ac_file" = x-; then
  11980. echo "/* Generated by configure. */" >$tmp/config.h
  11981. else
  11982. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  11983. fi
  11984. cat $tmp/in >>$tmp/config.h
  11985. rm -f $tmp/in
  11986. if test x"$ac_file" != x-; then
  11987. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  11988. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11989. echo "$as_me: $ac_file is unchanged" >&6;}
  11990. else
  11991. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11992. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11993. X"$ac_file" : 'X\(//\)[^/]' \| \
  11994. X"$ac_file" : 'X\(//\)$' \| \
  11995. X"$ac_file" : 'X\(/\)' \| \
  11996. . : '\(.\)' 2>/dev/null ||
  11997. echo X"$ac_file" |
  11998. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11999. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12000. /^X\(\/\/\)$/{ s//\1/; q; }
  12001. /^X\(\/\).*/{ s//\1/; q; }
  12002. s/.*/./; q'`
  12003. { if $as_mkdir_p; then
  12004. mkdir -p "$ac_dir"
  12005. else
  12006. as_dir="$ac_dir"
  12007. as_dirs=
  12008. while test ! -d "$as_dir"; do
  12009. as_dirs="$as_dir $as_dirs"
  12010. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12011. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12012. X"$as_dir" : 'X\(//\)[^/]' \| \
  12013. X"$as_dir" : 'X\(//\)$' \| \
  12014. X"$as_dir" : 'X\(/\)' \| \
  12015. . : '\(.\)' 2>/dev/null ||
  12016. echo X"$as_dir" |
  12017. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12018. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12019. /^X\(\/\/\)$/{ s//\1/; q; }
  12020. /^X\(\/\).*/{ s//\1/; q; }
  12021. s/.*/./; q'`
  12022. done
  12023. test ! -n "$as_dirs" || mkdir $as_dirs
  12024. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12025. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12026. { (exit 1); exit 1; }; }; }
  12027. rm -f $ac_file
  12028. mv $tmp/config.h $ac_file
  12029. fi
  12030. else
  12031. cat $tmp/config.h
  12032. rm -f $tmp/config.h
  12033. fi
  12034. done
  12035. _ACEOF
  12036. cat >>$CONFIG_STATUS <<\_ACEOF
  12037. { (exit 0); exit 0; }
  12038. _ACEOF
  12039. chmod +x $CONFIG_STATUS
  12040. ac_clean_files=$ac_clean_files_save
  12041. # configure is writing to config.log, and then calls config.status.
  12042. # config.status does its own redirection, appending to config.log.
  12043. # Unfortunately, on DOS this fails, as config.log is still kept open
  12044. # by configure, so config.status won't be able to write to it; its
  12045. # output is simply discarded. So we exec the FD to /dev/null,
  12046. # effectively closing config.log, so it can be properly (re)opened and
  12047. # appended to by config.status. When coming back to configure, we
  12048. # need to make the FD available again.
  12049. if test "$no_create" != yes; then
  12050. ac_cs_success=:
  12051. ac_config_status_args=
  12052. test "$silent" = yes &&
  12053. ac_config_status_args="$ac_config_status_args --quiet"
  12054. exec 5>/dev/null
  12055. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12056. exec 5>>config.log
  12057. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12058. # would make configure fail if this is the last instruction.
  12059. $ac_cs_success || { (exit 1); exit 1; }
  12060. fi