configure 385 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.3 .
  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 SET_MAKE HEAD_1 STRIP AWK BASENAME UNAME ZLIB SSL LIBOBJS TCLLIB TCLLIBFN TCLINC TCLINCFN TCL_REQS TCL_LIBS VERSION NUMVER PACKNAME MOD_UPDIR LTLIBOBJS'
  281. ac_subst_files=''
  282. # Initialize some variables set by options.
  283. ac_init_help=
  284. ac_init_version=false
  285. # The variables have the same names as the options, with
  286. # dashes changed to underlines.
  287. cache_file=./config.cache
  288. exec_prefix=NONE
  289. no_create=
  290. no_recursion=
  291. prefix=NONE
  292. program_prefix=NONE
  293. program_suffix=NONE
  294. program_transform_name=s,x,x,
  295. silent=
  296. site=
  297. srcdir=
  298. verbose=
  299. x_includes=NONE
  300. x_libraries=NONE
  301. # Installation directory options.
  302. # These are left unexpanded so users can "make install exec_prefix=/foo"
  303. # and all the variables that are supposed to be based on exec_prefix
  304. # by default will actually change.
  305. # Use braces instead of parens because sh, perl, etc. also accept them.
  306. bindir='${exec_prefix}/bin'
  307. sbindir='${exec_prefix}/sbin'
  308. libexecdir='${exec_prefix}/libexec'
  309. datadir='${prefix}/share'
  310. sysconfdir='${prefix}/etc'
  311. sharedstatedir='${prefix}/com'
  312. localstatedir='${prefix}/var'
  313. libdir='${exec_prefix}/lib'
  314. includedir='${prefix}/include'
  315. oldincludedir='/usr/include'
  316. infodir='${prefix}/info'
  317. mandir='${prefix}/man'
  318. ac_prev=
  319. for ac_option
  320. do
  321. # If the previous option needs an argument, assign it.
  322. if test -n "$ac_prev"; then
  323. eval "$ac_prev=\$ac_option"
  324. ac_prev=
  325. continue
  326. fi
  327. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  328. # Accept the important Cygnus configure options, so we can diagnose typos.
  329. case $ac_option in
  330. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  331. ac_prev=bindir ;;
  332. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  333. bindir=$ac_optarg ;;
  334. -build | --build | --buil | --bui | --bu)
  335. ac_prev=build_alias ;;
  336. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  337. build_alias=$ac_optarg ;;
  338. -cache-file | --cache-file | --cache-fil | --cache-fi \
  339. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  340. ac_prev=cache_file ;;
  341. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  342. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  343. cache_file=$ac_optarg ;;
  344. --config-cache | -C)
  345. cache_file=config.cache ;;
  346. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  347. ac_prev=datadir ;;
  348. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  349. | --da=*)
  350. datadir=$ac_optarg ;;
  351. -disable-* | --disable-*)
  352. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  353. # Reject names that are not valid shell variable names.
  354. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  355. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  356. { (exit 1); exit 1; }; }
  357. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  358. eval "enable_$ac_feature=no" ;;
  359. -enable-* | --enable-*)
  360. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  361. # Reject names that are not valid shell variable names.
  362. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  363. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  364. { (exit 1); exit 1; }; }
  365. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  366. case $ac_option in
  367. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  368. *) ac_optarg=yes ;;
  369. esac
  370. eval "enable_$ac_feature='$ac_optarg'" ;;
  371. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  372. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  373. | --exec | --exe | --ex)
  374. ac_prev=exec_prefix ;;
  375. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  376. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  377. | --exec=* | --exe=* | --ex=*)
  378. exec_prefix=$ac_optarg ;;
  379. -gas | --gas | --ga | --g)
  380. # Obsolete; use --with-gas.
  381. with_gas=yes ;;
  382. -help | --help | --hel | --he | -h)
  383. ac_init_help=long ;;
  384. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  385. ac_init_help=recursive ;;
  386. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  387. ac_init_help=short ;;
  388. -host | --host | --hos | --ho)
  389. ac_prev=host_alias ;;
  390. -host=* | --host=* | --hos=* | --ho=*)
  391. host_alias=$ac_optarg ;;
  392. -includedir | --includedir | --includedi | --included | --include \
  393. | --includ | --inclu | --incl | --inc)
  394. ac_prev=includedir ;;
  395. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  396. | --includ=* | --inclu=* | --incl=* | --inc=*)
  397. includedir=$ac_optarg ;;
  398. -infodir | --infodir | --infodi | --infod | --info | --inf)
  399. ac_prev=infodir ;;
  400. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  401. infodir=$ac_optarg ;;
  402. -libdir | --libdir | --libdi | --libd)
  403. ac_prev=libdir ;;
  404. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  405. libdir=$ac_optarg ;;
  406. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  407. | --libexe | --libex | --libe)
  408. ac_prev=libexecdir ;;
  409. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  410. | --libexe=* | --libex=* | --libe=*)
  411. libexecdir=$ac_optarg ;;
  412. -localstatedir | --localstatedir | --localstatedi | --localstated \
  413. | --localstate | --localstat | --localsta | --localst \
  414. | --locals | --local | --loca | --loc | --lo)
  415. ac_prev=localstatedir ;;
  416. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  417. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  418. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  419. localstatedir=$ac_optarg ;;
  420. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  421. ac_prev=mandir ;;
  422. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  423. mandir=$ac_optarg ;;
  424. -nfp | --nfp | --nf)
  425. # Obsolete; use --without-fp.
  426. with_fp=no ;;
  427. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  428. | --no-cr | --no-c | -n)
  429. no_create=yes ;;
  430. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  431. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  432. no_recursion=yes ;;
  433. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  434. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  435. | --oldin | --oldi | --old | --ol | --o)
  436. ac_prev=oldincludedir ;;
  437. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  438. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  439. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  440. oldincludedir=$ac_optarg ;;
  441. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  442. ac_prev=prefix ;;
  443. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  444. prefix=$ac_optarg ;;
  445. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  446. | --program-pre | --program-pr | --program-p)
  447. ac_prev=program_prefix ;;
  448. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  449. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  450. program_prefix=$ac_optarg ;;
  451. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  452. | --program-suf | --program-su | --program-s)
  453. ac_prev=program_suffix ;;
  454. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  455. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  456. program_suffix=$ac_optarg ;;
  457. -program-transform-name | --program-transform-name \
  458. | --program-transform-nam | --program-transform-na \
  459. | --program-transform-n | --program-transform- \
  460. | --program-transform | --program-transfor \
  461. | --program-transfo | --program-transf \
  462. | --program-trans | --program-tran \
  463. | --progr-tra | --program-tr | --program-t)
  464. ac_prev=program_transform_name ;;
  465. -program-transform-name=* | --program-transform-name=* \
  466. | --program-transform-nam=* | --program-transform-na=* \
  467. | --program-transform-n=* | --program-transform-=* \
  468. | --program-transform=* | --program-transfor=* \
  469. | --program-transfo=* | --program-transf=* \
  470. | --program-trans=* | --program-tran=* \
  471. | --progr-tra=* | --program-tr=* | --program-t=*)
  472. program_transform_name=$ac_optarg ;;
  473. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  474. | -silent | --silent | --silen | --sile | --sil)
  475. silent=yes ;;
  476. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  477. ac_prev=sbindir ;;
  478. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  479. | --sbi=* | --sb=*)
  480. sbindir=$ac_optarg ;;
  481. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  482. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  483. | --sharedst | --shareds | --shared | --share | --shar \
  484. | --sha | --sh)
  485. ac_prev=sharedstatedir ;;
  486. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  487. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  488. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  489. | --sha=* | --sh=*)
  490. sharedstatedir=$ac_optarg ;;
  491. -site | --site | --sit)
  492. ac_prev=site ;;
  493. -site=* | --site=* | --sit=*)
  494. site=$ac_optarg ;;
  495. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  496. ac_prev=srcdir ;;
  497. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  498. srcdir=$ac_optarg ;;
  499. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  500. | --syscon | --sysco | --sysc | --sys | --sy)
  501. ac_prev=sysconfdir ;;
  502. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  503. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  504. sysconfdir=$ac_optarg ;;
  505. -target | --target | --targe | --targ | --tar | --ta | --t)
  506. ac_prev=target_alias ;;
  507. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  508. target_alias=$ac_optarg ;;
  509. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  510. verbose=yes ;;
  511. -version | --version | --versio | --versi | --vers | -V)
  512. ac_init_version=: ;;
  513. -with-* | --with-*)
  514. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  515. # Reject names that are not valid shell variable names.
  516. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  517. { echo "$as_me: error: invalid package name: $ac_package" >&2
  518. { (exit 1); exit 1; }; }
  519. ac_package=`echo $ac_package| sed 's/-/_/g'`
  520. case $ac_option in
  521. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  522. *) ac_optarg=yes ;;
  523. esac
  524. eval "with_$ac_package='$ac_optarg'" ;;
  525. -without-* | --without-*)
  526. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  527. # Reject names that are not valid shell variable names.
  528. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  529. { echo "$as_me: error: invalid package name: $ac_package" >&2
  530. { (exit 1); exit 1; }; }
  531. ac_package=`echo $ac_package | sed 's/-/_/g'`
  532. eval "with_$ac_package=no" ;;
  533. --x)
  534. # Obsolete; use --with-x.
  535. with_x=yes ;;
  536. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  537. | --x-incl | --x-inc | --x-in | --x-i)
  538. ac_prev=x_includes ;;
  539. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  540. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  541. x_includes=$ac_optarg ;;
  542. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  543. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  544. ac_prev=x_libraries ;;
  545. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  546. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  547. x_libraries=$ac_optarg ;;
  548. -*) { echo "$as_me: error: unrecognized option: $ac_option
  549. Try \`$0 --help' for more information." >&2
  550. { (exit 1); exit 1; }; }
  551. ;;
  552. *=*)
  553. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  554. # Reject names that are not valid shell variable names.
  555. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  556. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  557. { (exit 1); exit 1; }; }
  558. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  559. eval "$ac_envvar='$ac_optarg'"
  560. export $ac_envvar ;;
  561. *)
  562. # FIXME: should be removed in autoconf 3.0.
  563. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  564. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  565. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  566. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  567. ;;
  568. esac
  569. done
  570. if test -n "$ac_prev"; then
  571. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  572. { echo "$as_me: error: missing argument to $ac_option" >&2
  573. { (exit 1); exit 1; }; }
  574. fi
  575. # Be sure to have absolute paths.
  576. for ac_var in exec_prefix prefix
  577. do
  578. eval ac_val=$`echo $ac_var`
  579. case $ac_val in
  580. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  581. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  582. { (exit 1); exit 1; }; };;
  583. esac
  584. done
  585. # Be sure to have absolute paths.
  586. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  587. localstatedir libdir includedir oldincludedir infodir mandir
  588. do
  589. eval ac_val=$`echo $ac_var`
  590. case $ac_val in
  591. [\\/$]* | ?:[\\/]* ) ;;
  592. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  593. { (exit 1); exit 1; }; };;
  594. esac
  595. done
  596. # There might be people who depend on the old broken behavior: `$host'
  597. # used to hold the argument of --host etc.
  598. # FIXME: To remove some day.
  599. build=$build_alias
  600. host=$host_alias
  601. target=$target_alias
  602. # FIXME: To remove some day.
  603. if test "x$host_alias" != x; then
  604. if test "x$build_alias" = x; then
  605. cross_compiling=maybe
  606. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  607. If a cross compiler is detected then cross compile mode will be used." >&2
  608. elif test "x$build_alias" != "x$host_alias"; then
  609. cross_compiling=yes
  610. fi
  611. fi
  612. ac_tool_prefix=
  613. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  614. test "$silent" = yes && exec 6>/dev/null
  615. # Find the source files, if location was not specified.
  616. if test -z "$srcdir"; then
  617. ac_srcdir_defaulted=yes
  618. # Try the directory containing this script, then its parent.
  619. ac_confdir=`(dirname "$0") 2>/dev/null ||
  620. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  621. X"$0" : 'X\(//\)[^/]' \| \
  622. X"$0" : 'X\(//\)$' \| \
  623. X"$0" : 'X\(/\)' \| \
  624. . : '\(.\)' 2>/dev/null ||
  625. echo X"$0" |
  626. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  627. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  628. /^X\(\/\/\)$/{ s//\1/; q; }
  629. /^X\(\/\).*/{ s//\1/; q; }
  630. s/.*/./; q'`
  631. srcdir=$ac_confdir
  632. if test ! -r $srcdir/$ac_unique_file; then
  633. srcdir=..
  634. fi
  635. else
  636. ac_srcdir_defaulted=no
  637. fi
  638. if test ! -r $srcdir/$ac_unique_file; then
  639. if test "$ac_srcdir_defaulted" = yes; then
  640. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  641. { (exit 1); exit 1; }; }
  642. else
  643. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  644. { (exit 1); exit 1; }; }
  645. fi
  646. fi
  647. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  648. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  649. { (exit 1); exit 1; }; }
  650. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  651. ac_env_build_alias_set=${build_alias+set}
  652. ac_env_build_alias_value=$build_alias
  653. ac_cv_env_build_alias_set=${build_alias+set}
  654. ac_cv_env_build_alias_value=$build_alias
  655. ac_env_host_alias_set=${host_alias+set}
  656. ac_env_host_alias_value=$host_alias
  657. ac_cv_env_host_alias_set=${host_alias+set}
  658. ac_cv_env_host_alias_value=$host_alias
  659. ac_env_target_alias_set=${target_alias+set}
  660. ac_env_target_alias_value=$target_alias
  661. ac_cv_env_target_alias_set=${target_alias+set}
  662. ac_cv_env_target_alias_value=$target_alias
  663. ac_env_CC_set=${CC+set}
  664. ac_env_CC_value=$CC
  665. ac_cv_env_CC_set=${CC+set}
  666. ac_cv_env_CC_value=$CC
  667. ac_env_CFLAGS_set=${CFLAGS+set}
  668. ac_env_CFLAGS_value=$CFLAGS
  669. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  670. ac_cv_env_CFLAGS_value=$CFLAGS
  671. ac_env_LDFLAGS_set=${LDFLAGS+set}
  672. ac_env_LDFLAGS_value=$LDFLAGS
  673. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  674. ac_cv_env_LDFLAGS_value=$LDFLAGS
  675. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  676. ac_env_CPPFLAGS_value=$CPPFLAGS
  677. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  678. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  679. ac_env_CPP_set=${CPP+set}
  680. ac_env_CPP_value=$CPP
  681. ac_cv_env_CPP_set=${CPP+set}
  682. ac_cv_env_CPP_value=$CPP
  683. #
  684. # Report the --help message.
  685. #
  686. if test "$ac_init_help" = "long"; then
  687. # Omit some internal or obsolete options to make the list less imposing.
  688. # This message is too long to be a string in the A/UX 3.1 sh.
  689. cat <<_ACEOF
  690. \`configure' configures this package to adapt to many kinds of systems.
  691. Usage: $0 [OPTION]... [VAR=VALUE]...
  692. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  693. VAR=VALUE. See below for descriptions of some of the useful variables.
  694. Defaults for the options are specified in brackets.
  695. Configuration:
  696. -h, --help display this help and exit
  697. --help=short display options specific to this package
  698. --help=recursive display the short help of all the included packages
  699. -V, --version display version information and exit
  700. -q, --quiet, --silent do not print \`checking...' messages
  701. --cache-file=FILE cache test results in FILE [disabled]
  702. -C, --config-cache alias for \`--cache-file=config.cache'
  703. -n, --no-create do not create output files
  704. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  705. _ACEOF
  706. cat <<_ACEOF
  707. Installation directories:
  708. --prefix=PREFIX install architecture-independent files in PREFIX
  709. [$ac_default_prefix]
  710. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  711. [PREFIX]
  712. By default, \`make install' will install all the files in
  713. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  714. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  715. for instance \`--prefix=\$HOME'.
  716. For better control, use the options below.
  717. Fine tuning of the installation directories:
  718. --bindir=DIR user executables [EPREFIX/bin]
  719. --sbindir=DIR system admin executables [EPREFIX/sbin]
  720. --libexecdir=DIR program executables [EPREFIX/libexec]
  721. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  722. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  723. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  724. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  725. --libdir=DIR object code libraries [EPREFIX/lib]
  726. --includedir=DIR C header files [PREFIX/include]
  727. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  728. --infodir=DIR info documentation [PREFIX/info]
  729. --mandir=DIR man documentation [PREFIX/man]
  730. _ACEOF
  731. cat <<\_ACEOF
  732. _ACEOF
  733. fi
  734. if test -n "$ac_init_help"; then
  735. cat <<\_ACEOF
  736. Optional Features:
  737. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  738. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  739. --disable-ipv6 disable IPv6 support
  740. Optional Packages:
  741. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  742. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  743. --with-tcllib=PATH full path to Tcl library
  744. --with-tclinc=PATH full path to Tcl header
  745. Some influential environment variables:
  746. CC C compiler command
  747. CFLAGS C compiler flags
  748. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  749. nonstandard directory <lib dir>
  750. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  751. headers in a nonstandard directory <include dir>
  752. CPP C preprocessor
  753. Use these variables to override the choices made by `configure' or to help
  754. it to find libraries and programs with nonstandard names/locations.
  755. _ACEOF
  756. fi
  757. if test "$ac_init_help" = "recursive"; then
  758. # If there are subdirs, report their specific --help.
  759. ac_popdir=`pwd`
  760. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  761. test -d $ac_dir || continue
  762. ac_builddir=.
  763. if test "$ac_dir" != .; then
  764. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  765. # A "../" for each directory in $ac_dir_suffix.
  766. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  767. else
  768. ac_dir_suffix= ac_top_builddir=
  769. fi
  770. case $srcdir in
  771. .) # No --srcdir option. We are building in place.
  772. ac_srcdir=.
  773. if test -z "$ac_top_builddir"; then
  774. ac_top_srcdir=.
  775. else
  776. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  777. fi ;;
  778. [\\/]* | ?:[\\/]* ) # Absolute path.
  779. ac_srcdir=$srcdir$ac_dir_suffix;
  780. ac_top_srcdir=$srcdir ;;
  781. *) # Relative path.
  782. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  783. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  784. esac
  785. # Do not use `cd foo && pwd` to compute absolute paths, because
  786. # the directories may not exist.
  787. case `pwd` in
  788. .) ac_abs_builddir="$ac_dir";;
  789. *)
  790. case "$ac_dir" in
  791. .) ac_abs_builddir=`pwd`;;
  792. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  793. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  794. esac;;
  795. esac
  796. case $ac_abs_builddir in
  797. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  798. *)
  799. case ${ac_top_builddir}. in
  800. .) ac_abs_top_builddir=$ac_abs_builddir;;
  801. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  802. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  803. esac;;
  804. esac
  805. case $ac_abs_builddir in
  806. .) ac_abs_srcdir=$ac_srcdir;;
  807. *)
  808. case $ac_srcdir in
  809. .) ac_abs_srcdir=$ac_abs_builddir;;
  810. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  811. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  812. esac;;
  813. esac
  814. case $ac_abs_builddir in
  815. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  816. *)
  817. case $ac_top_srcdir in
  818. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  819. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  820. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  821. esac;;
  822. esac
  823. cd $ac_dir
  824. # Check for guested configure; otherwise get Cygnus style configure.
  825. if test -f $ac_srcdir/configure.gnu; then
  826. echo
  827. $SHELL $ac_srcdir/configure.gnu --help=recursive
  828. elif test -f $ac_srcdir/configure; then
  829. echo
  830. $SHELL $ac_srcdir/configure --help=recursive
  831. elif test -f $ac_srcdir/configure.ac ||
  832. test -f $ac_srcdir/configure.in; then
  833. echo
  834. $ac_configure --help
  835. else
  836. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  837. fi
  838. cd "$ac_popdir"
  839. done
  840. fi
  841. test -n "$ac_init_help" && exit 0
  842. if $ac_init_version; then
  843. cat <<\_ACEOF
  844. Copyright (C) 2003 Free Software Foundation, Inc.
  845. This configure script is free software; the Free Software Foundation
  846. gives unlimited permission to copy, distribute and modify it.
  847. Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  848. _ACEOF
  849. exit 0
  850. fi
  851. exec 5>config.log
  852. cat >&5 <<_ACEOF
  853. This file contains any messages produced by compilers while
  854. running configure, to aid debugging if configure makes a mistake.
  855. It was created by $as_me, which was
  856. generated by GNU Autoconf 2.59. Invocation command line was
  857. $ $0 $@
  858. _ACEOF
  859. {
  860. cat <<_ASUNAME
  861. ## --------- ##
  862. ## Platform. ##
  863. ## --------- ##
  864. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  865. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  866. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  867. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  868. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  869. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  870. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  871. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  872. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  873. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  874. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  875. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  876. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  877. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  878. _ASUNAME
  879. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  880. for as_dir in $PATH
  881. do
  882. IFS=$as_save_IFS
  883. test -z "$as_dir" && as_dir=.
  884. echo "PATH: $as_dir"
  885. done
  886. } >&5
  887. cat >&5 <<_ACEOF
  888. ## ----------- ##
  889. ## Core tests. ##
  890. ## ----------- ##
  891. _ACEOF
  892. # Keep a trace of the command line.
  893. # Strip out --no-create and --no-recursion so they do not pile up.
  894. # Strip out --silent because we don't want to record it for future runs.
  895. # Also quote any args containing shell meta-characters.
  896. # Make two passes to allow for proper duplicate-argument suppression.
  897. ac_configure_args=
  898. ac_configure_args0=
  899. ac_configure_args1=
  900. ac_sep=
  901. ac_must_keep_next=false
  902. for ac_pass in 1 2
  903. do
  904. for ac_arg
  905. do
  906. case $ac_arg in
  907. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  908. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  909. | -silent | --silent | --silen | --sile | --sil)
  910. continue ;;
  911. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  912. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  913. esac
  914. case $ac_pass in
  915. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  916. 2)
  917. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  918. if test $ac_must_keep_next = true; then
  919. ac_must_keep_next=false # Got value, back to normal.
  920. else
  921. case $ac_arg in
  922. *=* | --config-cache | -C | -disable-* | --disable-* \
  923. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  924. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  925. | -with-* | --with-* | -without-* | --without-* | --x)
  926. case "$ac_configure_args0 " in
  927. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  928. esac
  929. ;;
  930. -* ) ac_must_keep_next=true ;;
  931. esac
  932. fi
  933. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  934. # Get rid of the leading space.
  935. ac_sep=" "
  936. ;;
  937. esac
  938. done
  939. done
  940. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  941. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  942. # When interrupted or exit'd, cleanup temporary files, and complete
  943. # config.log. We remove comments because anyway the quotes in there
  944. # would cause problems or look ugly.
  945. # WARNING: Be sure not to use single quotes in there, as some shells,
  946. # such as our DU 5.0 friend, will then `close' the trap.
  947. trap 'exit_status=$?
  948. # Save into config.log some information that might help in debugging.
  949. {
  950. echo
  951. cat <<\_ASBOX
  952. ## ---------------- ##
  953. ## Cache variables. ##
  954. ## ---------------- ##
  955. _ASBOX
  956. echo
  957. # The following way of writing the cache mishandles newlines in values,
  958. {
  959. (set) 2>&1 |
  960. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  961. *ac_space=\ *)
  962. sed -n \
  963. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  964. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  965. ;;
  966. *)
  967. sed -n \
  968. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  969. ;;
  970. esac;
  971. }
  972. echo
  973. cat <<\_ASBOX
  974. ## ----------------- ##
  975. ## Output variables. ##
  976. ## ----------------- ##
  977. _ASBOX
  978. echo
  979. for ac_var in $ac_subst_vars
  980. do
  981. eval ac_val=$`echo $ac_var`
  982. echo "$ac_var='"'"'$ac_val'"'"'"
  983. done | sort
  984. echo
  985. if test -n "$ac_subst_files"; then
  986. cat <<\_ASBOX
  987. ## ------------- ##
  988. ## Output files. ##
  989. ## ------------- ##
  990. _ASBOX
  991. echo
  992. for ac_var in $ac_subst_files
  993. do
  994. eval ac_val=$`echo $ac_var`
  995. echo "$ac_var='"'"'$ac_val'"'"'"
  996. done | sort
  997. echo
  998. fi
  999. if test -s confdefs.h; then
  1000. cat <<\_ASBOX
  1001. ## ----------- ##
  1002. ## confdefs.h. ##
  1003. ## ----------- ##
  1004. _ASBOX
  1005. echo
  1006. sed "/^$/d" confdefs.h | sort
  1007. echo
  1008. fi
  1009. test "$ac_signal" != 0 &&
  1010. echo "$as_me: caught signal $ac_signal"
  1011. echo "$as_me: exit $exit_status"
  1012. } >&5
  1013. rm -f core *.core &&
  1014. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1015. exit $exit_status
  1016. ' 0
  1017. for ac_signal in 1 2 13 15; do
  1018. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1019. done
  1020. ac_signal=0
  1021. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1022. rm -rf conftest* confdefs.h
  1023. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1024. echo >confdefs.h
  1025. # Predefined preprocessor variables.
  1026. cat >>confdefs.h <<_ACEOF
  1027. #define PACKAGE_NAME "$PACKAGE_NAME"
  1028. _ACEOF
  1029. cat >>confdefs.h <<_ACEOF
  1030. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1031. _ACEOF
  1032. cat >>confdefs.h <<_ACEOF
  1033. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1034. _ACEOF
  1035. cat >>confdefs.h <<_ACEOF
  1036. #define PACKAGE_STRING "$PACKAGE_STRING"
  1037. _ACEOF
  1038. cat >>confdefs.h <<_ACEOF
  1039. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1040. _ACEOF
  1041. # Let the site file select an alternate cache file if it wants to.
  1042. # Prefer explicitly selected file to automatically selected ones.
  1043. if test -z "$CONFIG_SITE"; then
  1044. if test "x$prefix" != xNONE; then
  1045. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1046. else
  1047. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1048. fi
  1049. fi
  1050. for ac_site_file in $CONFIG_SITE; do
  1051. if test -r "$ac_site_file"; then
  1052. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1053. echo "$as_me: loading site script $ac_site_file" >&6;}
  1054. sed 's/^/| /' "$ac_site_file" >&5
  1055. . "$ac_site_file"
  1056. fi
  1057. done
  1058. if test -r "$cache_file"; then
  1059. # Some versions of bash will fail to source /dev/null (special
  1060. # files actually), so we avoid doing that.
  1061. if test -f "$cache_file"; then
  1062. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1063. echo "$as_me: loading cache $cache_file" >&6;}
  1064. case $cache_file in
  1065. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1066. *) . ./$cache_file;;
  1067. esac
  1068. fi
  1069. else
  1070. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1071. echo "$as_me: creating cache $cache_file" >&6;}
  1072. >$cache_file
  1073. fi
  1074. # Check that the precious variables saved in the cache have kept the same
  1075. # value.
  1076. ac_cache_corrupted=false
  1077. for ac_var in `(set) 2>&1 |
  1078. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1079. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1080. eval ac_new_set=\$ac_env_${ac_var}_set
  1081. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1082. eval ac_new_val="\$ac_env_${ac_var}_value"
  1083. case $ac_old_set,$ac_new_set in
  1084. set,)
  1085. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1086. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1087. ac_cache_corrupted=: ;;
  1088. ,set)
  1089. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1090. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1091. ac_cache_corrupted=: ;;
  1092. ,);;
  1093. *)
  1094. if test "x$ac_old_val" != "x$ac_new_val"; then
  1095. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1096. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1097. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1098. echo "$as_me: former value: $ac_old_val" >&2;}
  1099. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1100. echo "$as_me: current value: $ac_new_val" >&2;}
  1101. ac_cache_corrupted=:
  1102. fi;;
  1103. esac
  1104. # Pass precious variables to config.status.
  1105. if test "$ac_new_set" = set; then
  1106. case $ac_new_val in
  1107. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1108. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1109. *) ac_arg=$ac_var=$ac_new_val ;;
  1110. esac
  1111. case " $ac_configure_args " in
  1112. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1113. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1114. esac
  1115. fi
  1116. done
  1117. if $ac_cache_corrupted; then
  1118. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1119. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1120. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1121. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1122. { (exit 1); exit 1; }; }
  1123. fi
  1124. ac_ext=c
  1125. ac_cpp='$CPP $CPPFLAGS'
  1126. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1127. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1128. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1129. ac_config_headers="$ac_config_headers config.h"
  1130. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1131. egg_ac_parameters=
  1132. ac_prev=
  1133. for ac_arg in $ac_configure_args; do
  1134. if test -n "$ac_prev"; then
  1135. ac_prev=
  1136. continue
  1137. fi
  1138. case $ac_arg in
  1139. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1140. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1141. ac_prev=cache_file ;;
  1142. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1143. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1144. | --c=*)
  1145. ;;
  1146. --config-cache | -C)
  1147. ;;
  1148. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1149. ac_prev=srcdir ;;
  1150. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1151. ;;
  1152. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1153. esac
  1154. done
  1155. # Setup build environment
  1156. ac_ext=c
  1157. ac_cpp='$CPP $CPPFLAGS'
  1158. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1159. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1160. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1161. if test -n "$ac_tool_prefix"; then
  1162. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1163. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1164. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1165. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1166. if test "${ac_cv_prog_CC+set}" = set; then
  1167. echo $ECHO_N "(cached) $ECHO_C" >&6
  1168. else
  1169. if test -n "$CC"; then
  1170. ac_cv_prog_CC="$CC" # Let the user override the test.
  1171. else
  1172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1173. for as_dir in $PATH
  1174. do
  1175. IFS=$as_save_IFS
  1176. test -z "$as_dir" && as_dir=.
  1177. for ac_exec_ext in '' $ac_executable_extensions; do
  1178. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1179. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1180. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1181. break 2
  1182. fi
  1183. done
  1184. done
  1185. fi
  1186. fi
  1187. CC=$ac_cv_prog_CC
  1188. if test -n "$CC"; then
  1189. echo "$as_me:$LINENO: result: $CC" >&5
  1190. echo "${ECHO_T}$CC" >&6
  1191. else
  1192. echo "$as_me:$LINENO: result: no" >&5
  1193. echo "${ECHO_T}no" >&6
  1194. fi
  1195. fi
  1196. if test -z "$ac_cv_prog_CC"; then
  1197. ac_ct_CC=$CC
  1198. # Extract the first word of "gcc", so it can be a program name with args.
  1199. set dummy gcc; ac_word=$2
  1200. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1201. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1202. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1203. echo $ECHO_N "(cached) $ECHO_C" >&6
  1204. else
  1205. if test -n "$ac_ct_CC"; then
  1206. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1207. else
  1208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1209. for as_dir in $PATH
  1210. do
  1211. IFS=$as_save_IFS
  1212. test -z "$as_dir" && as_dir=.
  1213. for ac_exec_ext in '' $ac_executable_extensions; do
  1214. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1215. ac_cv_prog_ac_ct_CC="gcc"
  1216. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1217. break 2
  1218. fi
  1219. done
  1220. done
  1221. fi
  1222. fi
  1223. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1224. if test -n "$ac_ct_CC"; then
  1225. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1226. echo "${ECHO_T}$ac_ct_CC" >&6
  1227. else
  1228. echo "$as_me:$LINENO: result: no" >&5
  1229. echo "${ECHO_T}no" >&6
  1230. fi
  1231. CC=$ac_ct_CC
  1232. else
  1233. CC="$ac_cv_prog_CC"
  1234. fi
  1235. if test -z "$CC"; then
  1236. if test -n "$ac_tool_prefix"; then
  1237. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1238. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1239. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1240. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1241. if test "${ac_cv_prog_CC+set}" = set; then
  1242. echo $ECHO_N "(cached) $ECHO_C" >&6
  1243. else
  1244. if test -n "$CC"; then
  1245. ac_cv_prog_CC="$CC" # Let the user override the test.
  1246. else
  1247. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1248. for as_dir in $PATH
  1249. do
  1250. IFS=$as_save_IFS
  1251. test -z "$as_dir" && as_dir=.
  1252. for ac_exec_ext in '' $ac_executable_extensions; do
  1253. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1254. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1255. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1256. break 2
  1257. fi
  1258. done
  1259. done
  1260. fi
  1261. fi
  1262. CC=$ac_cv_prog_CC
  1263. if test -n "$CC"; then
  1264. echo "$as_me:$LINENO: result: $CC" >&5
  1265. echo "${ECHO_T}$CC" >&6
  1266. else
  1267. echo "$as_me:$LINENO: result: no" >&5
  1268. echo "${ECHO_T}no" >&6
  1269. fi
  1270. fi
  1271. if test -z "$ac_cv_prog_CC"; then
  1272. ac_ct_CC=$CC
  1273. # Extract the first word of "cc", so it can be a program name with args.
  1274. set dummy cc; ac_word=$2
  1275. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1276. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1277. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1278. echo $ECHO_N "(cached) $ECHO_C" >&6
  1279. else
  1280. if test -n "$ac_ct_CC"; then
  1281. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1282. else
  1283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1284. for as_dir in $PATH
  1285. do
  1286. IFS=$as_save_IFS
  1287. test -z "$as_dir" && as_dir=.
  1288. for ac_exec_ext in '' $ac_executable_extensions; do
  1289. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1290. ac_cv_prog_ac_ct_CC="cc"
  1291. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1292. break 2
  1293. fi
  1294. done
  1295. done
  1296. fi
  1297. fi
  1298. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1299. if test -n "$ac_ct_CC"; then
  1300. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1301. echo "${ECHO_T}$ac_ct_CC" >&6
  1302. else
  1303. echo "$as_me:$LINENO: result: no" >&5
  1304. echo "${ECHO_T}no" >&6
  1305. fi
  1306. CC=$ac_ct_CC
  1307. else
  1308. CC="$ac_cv_prog_CC"
  1309. fi
  1310. fi
  1311. if test -z "$CC"; then
  1312. # Extract the first word of "cc", so it can be a program name with args.
  1313. set dummy cc; ac_word=$2
  1314. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1315. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1316. if test "${ac_cv_prog_CC+set}" = set; then
  1317. echo $ECHO_N "(cached) $ECHO_C" >&6
  1318. else
  1319. if test -n "$CC"; then
  1320. ac_cv_prog_CC="$CC" # Let the user override the test.
  1321. else
  1322. ac_prog_rejected=no
  1323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1324. for as_dir in $PATH
  1325. do
  1326. IFS=$as_save_IFS
  1327. test -z "$as_dir" && as_dir=.
  1328. for ac_exec_ext in '' $ac_executable_extensions; do
  1329. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1330. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1331. ac_prog_rejected=yes
  1332. continue
  1333. fi
  1334. ac_cv_prog_CC="cc"
  1335. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1336. break 2
  1337. fi
  1338. done
  1339. done
  1340. if test $ac_prog_rejected = yes; then
  1341. # We found a bogon in the path, so make sure we never use it.
  1342. set dummy $ac_cv_prog_CC
  1343. shift
  1344. if test $# != 0; then
  1345. # We chose a different compiler from the bogus one.
  1346. # However, it has the same basename, so the bogon will be chosen
  1347. # first if we set CC to just the basename; use the full file name.
  1348. shift
  1349. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1350. fi
  1351. fi
  1352. fi
  1353. fi
  1354. CC=$ac_cv_prog_CC
  1355. if test -n "$CC"; then
  1356. echo "$as_me:$LINENO: result: $CC" >&5
  1357. echo "${ECHO_T}$CC" >&6
  1358. else
  1359. echo "$as_me:$LINENO: result: no" >&5
  1360. echo "${ECHO_T}no" >&6
  1361. fi
  1362. fi
  1363. if test -z "$CC"; then
  1364. if test -n "$ac_tool_prefix"; then
  1365. for ac_prog in cl
  1366. do
  1367. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1368. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1369. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1370. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1371. if test "${ac_cv_prog_CC+set}" = set; then
  1372. echo $ECHO_N "(cached) $ECHO_C" >&6
  1373. else
  1374. if test -n "$CC"; then
  1375. ac_cv_prog_CC="$CC" # Let the user override the test.
  1376. else
  1377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1378. for as_dir in $PATH
  1379. do
  1380. IFS=$as_save_IFS
  1381. test -z "$as_dir" && as_dir=.
  1382. for ac_exec_ext in '' $ac_executable_extensions; do
  1383. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1384. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1385. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1386. break 2
  1387. fi
  1388. done
  1389. done
  1390. fi
  1391. fi
  1392. CC=$ac_cv_prog_CC
  1393. if test -n "$CC"; then
  1394. echo "$as_me:$LINENO: result: $CC" >&5
  1395. echo "${ECHO_T}$CC" >&6
  1396. else
  1397. echo "$as_me:$LINENO: result: no" >&5
  1398. echo "${ECHO_T}no" >&6
  1399. fi
  1400. test -n "$CC" && break
  1401. done
  1402. fi
  1403. if test -z "$CC"; then
  1404. ac_ct_CC=$CC
  1405. for ac_prog in cl
  1406. do
  1407. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1408. set dummy $ac_prog; ac_word=$2
  1409. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1410. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1411. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1412. echo $ECHO_N "(cached) $ECHO_C" >&6
  1413. else
  1414. if test -n "$ac_ct_CC"; then
  1415. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1416. else
  1417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1418. for as_dir in $PATH
  1419. do
  1420. IFS=$as_save_IFS
  1421. test -z "$as_dir" && as_dir=.
  1422. for ac_exec_ext in '' $ac_executable_extensions; do
  1423. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1424. ac_cv_prog_ac_ct_CC="$ac_prog"
  1425. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1426. break 2
  1427. fi
  1428. done
  1429. done
  1430. fi
  1431. fi
  1432. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1433. if test -n "$ac_ct_CC"; then
  1434. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1435. echo "${ECHO_T}$ac_ct_CC" >&6
  1436. else
  1437. echo "$as_me:$LINENO: result: no" >&5
  1438. echo "${ECHO_T}no" >&6
  1439. fi
  1440. test -n "$ac_ct_CC" && break
  1441. done
  1442. CC=$ac_ct_CC
  1443. fi
  1444. fi
  1445. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1446. See \`config.log' for more details." >&5
  1447. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1448. See \`config.log' for more details." >&2;}
  1449. { (exit 1); exit 1; }; }
  1450. # Provide some information about the compiler.
  1451. echo "$as_me:$LINENO:" \
  1452. "checking for C compiler version" >&5
  1453. ac_compiler=`set X $ac_compile; echo $2`
  1454. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1455. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1456. ac_status=$?
  1457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1458. (exit $ac_status); }
  1459. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1460. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1461. ac_status=$?
  1462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1463. (exit $ac_status); }
  1464. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1465. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1466. ac_status=$?
  1467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1468. (exit $ac_status); }
  1469. cat >conftest.$ac_ext <<_ACEOF
  1470. /* confdefs.h. */
  1471. _ACEOF
  1472. cat confdefs.h >>conftest.$ac_ext
  1473. cat >>conftest.$ac_ext <<_ACEOF
  1474. /* end confdefs.h. */
  1475. int
  1476. main ()
  1477. {
  1478. ;
  1479. return 0;
  1480. }
  1481. _ACEOF
  1482. ac_clean_files_save=$ac_clean_files
  1483. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1484. # Try to create an executable without -o first, disregard a.out.
  1485. # It will help us diagnose broken compilers, and finding out an intuition
  1486. # of exeext.
  1487. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1488. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1489. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1490. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1491. (eval $ac_link_default) 2>&5
  1492. ac_status=$?
  1493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1494. (exit $ac_status); }; then
  1495. # Find the output, starting from the most likely. This scheme is
  1496. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1497. # resort.
  1498. # Be careful to initialize this variable, since it used to be cached.
  1499. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1500. ac_cv_exeext=
  1501. # b.out is created by i960 compilers.
  1502. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1503. do
  1504. test -f "$ac_file" || continue
  1505. case $ac_file in
  1506. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1507. ;;
  1508. conftest.$ac_ext )
  1509. # This is the source file.
  1510. ;;
  1511. [ab].out )
  1512. # We found the default executable, but exeext='' is most
  1513. # certainly right.
  1514. break;;
  1515. *.* )
  1516. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1517. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1518. # but it would be cool to find out if it's true. Does anybody
  1519. # maintain Libtool? --akim.
  1520. export ac_cv_exeext
  1521. break;;
  1522. * )
  1523. break;;
  1524. esac
  1525. done
  1526. else
  1527. echo "$as_me: failed program was:" >&5
  1528. sed 's/^/| /' conftest.$ac_ext >&5
  1529. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1530. See \`config.log' for more details." >&5
  1531. echo "$as_me: error: C compiler cannot create executables
  1532. See \`config.log' for more details." >&2;}
  1533. { (exit 77); exit 77; }; }
  1534. fi
  1535. ac_exeext=$ac_cv_exeext
  1536. echo "$as_me:$LINENO: result: $ac_file" >&5
  1537. echo "${ECHO_T}$ac_file" >&6
  1538. # Check the compiler produces executables we can run. If not, either
  1539. # the compiler is broken, or we cross compile.
  1540. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1541. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1542. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1543. # If not cross compiling, check that we can run a simple program.
  1544. if test "$cross_compiling" != yes; then
  1545. if { ac_try='./$ac_file'
  1546. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1547. (eval $ac_try) 2>&5
  1548. ac_status=$?
  1549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1550. (exit $ac_status); }; }; then
  1551. cross_compiling=no
  1552. else
  1553. if test "$cross_compiling" = maybe; then
  1554. cross_compiling=yes
  1555. else
  1556. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1557. If you meant to cross compile, use \`--host'.
  1558. See \`config.log' for more details." >&5
  1559. echo "$as_me: error: cannot run C compiled programs.
  1560. If you meant to cross compile, use \`--host'.
  1561. See \`config.log' for more details." >&2;}
  1562. { (exit 1); exit 1; }; }
  1563. fi
  1564. fi
  1565. fi
  1566. echo "$as_me:$LINENO: result: yes" >&5
  1567. echo "${ECHO_T}yes" >&6
  1568. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1569. ac_clean_files=$ac_clean_files_save
  1570. # Check the compiler produces executables we can run. If not, either
  1571. # the compiler is broken, or we cross compile.
  1572. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1573. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1574. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1575. echo "${ECHO_T}$cross_compiling" >&6
  1576. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1577. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1578. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1579. (eval $ac_link) 2>&5
  1580. ac_status=$?
  1581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1582. (exit $ac_status); }; then
  1583. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1584. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1585. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1586. # `rm'.
  1587. for ac_file in conftest.exe conftest conftest.*; do
  1588. test -f "$ac_file" || continue
  1589. case $ac_file in
  1590. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1591. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1592. export ac_cv_exeext
  1593. break;;
  1594. * ) break;;
  1595. esac
  1596. done
  1597. else
  1598. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1599. See \`config.log' for more details." >&5
  1600. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1601. See \`config.log' for more details." >&2;}
  1602. { (exit 1); exit 1; }; }
  1603. fi
  1604. rm -f conftest$ac_cv_exeext
  1605. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1606. echo "${ECHO_T}$ac_cv_exeext" >&6
  1607. rm -f conftest.$ac_ext
  1608. EXEEXT=$ac_cv_exeext
  1609. ac_exeext=$EXEEXT
  1610. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1611. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1612. if test "${ac_cv_objext+set}" = set; then
  1613. echo $ECHO_N "(cached) $ECHO_C" >&6
  1614. else
  1615. cat >conftest.$ac_ext <<_ACEOF
  1616. /* confdefs.h. */
  1617. _ACEOF
  1618. cat confdefs.h >>conftest.$ac_ext
  1619. cat >>conftest.$ac_ext <<_ACEOF
  1620. /* end confdefs.h. */
  1621. int
  1622. main ()
  1623. {
  1624. ;
  1625. return 0;
  1626. }
  1627. _ACEOF
  1628. rm -f conftest.o conftest.obj
  1629. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1630. (eval $ac_compile) 2>&5
  1631. ac_status=$?
  1632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1633. (exit $ac_status); }; then
  1634. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1635. case $ac_file in
  1636. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1637. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1638. break;;
  1639. esac
  1640. done
  1641. else
  1642. echo "$as_me: failed program was:" >&5
  1643. sed 's/^/| /' conftest.$ac_ext >&5
  1644. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1645. See \`config.log' for more details." >&5
  1646. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1647. See \`config.log' for more details." >&2;}
  1648. { (exit 1); exit 1; }; }
  1649. fi
  1650. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1651. fi
  1652. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1653. echo "${ECHO_T}$ac_cv_objext" >&6
  1654. OBJEXT=$ac_cv_objext
  1655. ac_objext=$OBJEXT
  1656. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1657. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1658. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1659. echo $ECHO_N "(cached) $ECHO_C" >&6
  1660. else
  1661. cat >conftest.$ac_ext <<_ACEOF
  1662. /* confdefs.h. */
  1663. _ACEOF
  1664. cat confdefs.h >>conftest.$ac_ext
  1665. cat >>conftest.$ac_ext <<_ACEOF
  1666. /* end confdefs.h. */
  1667. int
  1668. main ()
  1669. {
  1670. #ifndef __GNUC__
  1671. choke me
  1672. #endif
  1673. ;
  1674. return 0;
  1675. }
  1676. _ACEOF
  1677. rm -f conftest.$ac_objext
  1678. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1679. (eval $ac_compile) 2>conftest.er1
  1680. ac_status=$?
  1681. grep -v '^ *+' conftest.er1 >conftest.err
  1682. rm -f conftest.er1
  1683. cat conftest.err >&5
  1684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1685. (exit $ac_status); } &&
  1686. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1687. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1688. (eval $ac_try) 2>&5
  1689. ac_status=$?
  1690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1691. (exit $ac_status); }; } &&
  1692. { ac_try='test -s conftest.$ac_objext'
  1693. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1694. (eval $ac_try) 2>&5
  1695. ac_status=$?
  1696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1697. (exit $ac_status); }; }; then
  1698. ac_compiler_gnu=yes
  1699. else
  1700. echo "$as_me: failed program was:" >&5
  1701. sed 's/^/| /' conftest.$ac_ext >&5
  1702. ac_compiler_gnu=no
  1703. fi
  1704. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1705. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1706. fi
  1707. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1708. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1709. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1710. ac_test_CFLAGS=${CFLAGS+set}
  1711. ac_save_CFLAGS=$CFLAGS
  1712. CFLAGS="-g"
  1713. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1714. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1715. if test "${ac_cv_prog_cc_g+set}" = set; then
  1716. echo $ECHO_N "(cached) $ECHO_C" >&6
  1717. else
  1718. cat >conftest.$ac_ext <<_ACEOF
  1719. /* confdefs.h. */
  1720. _ACEOF
  1721. cat confdefs.h >>conftest.$ac_ext
  1722. cat >>conftest.$ac_ext <<_ACEOF
  1723. /* end confdefs.h. */
  1724. int
  1725. main ()
  1726. {
  1727. ;
  1728. return 0;
  1729. }
  1730. _ACEOF
  1731. rm -f conftest.$ac_objext
  1732. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1733. (eval $ac_compile) 2>conftest.er1
  1734. ac_status=$?
  1735. grep -v '^ *+' conftest.er1 >conftest.err
  1736. rm -f conftest.er1
  1737. cat conftest.err >&5
  1738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1739. (exit $ac_status); } &&
  1740. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1741. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1742. (eval $ac_try) 2>&5
  1743. ac_status=$?
  1744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1745. (exit $ac_status); }; } &&
  1746. { ac_try='test -s conftest.$ac_objext'
  1747. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1748. (eval $ac_try) 2>&5
  1749. ac_status=$?
  1750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1751. (exit $ac_status); }; }; then
  1752. ac_cv_prog_cc_g=yes
  1753. else
  1754. echo "$as_me: failed program was:" >&5
  1755. sed 's/^/| /' conftest.$ac_ext >&5
  1756. ac_cv_prog_cc_g=no
  1757. fi
  1758. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1759. fi
  1760. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1761. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1762. if test "$ac_test_CFLAGS" = set; then
  1763. CFLAGS=$ac_save_CFLAGS
  1764. elif test $ac_cv_prog_cc_g = yes; then
  1765. if test "$GCC" = yes; then
  1766. CFLAGS="-g -O2"
  1767. else
  1768. CFLAGS="-g"
  1769. fi
  1770. else
  1771. if test "$GCC" = yes; then
  1772. CFLAGS="-O2"
  1773. else
  1774. CFLAGS=
  1775. fi
  1776. fi
  1777. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1778. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1779. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1780. echo $ECHO_N "(cached) $ECHO_C" >&6
  1781. else
  1782. ac_cv_prog_cc_stdc=no
  1783. ac_save_CC=$CC
  1784. cat >conftest.$ac_ext <<_ACEOF
  1785. /* confdefs.h. */
  1786. _ACEOF
  1787. cat confdefs.h >>conftest.$ac_ext
  1788. cat >>conftest.$ac_ext <<_ACEOF
  1789. /* end confdefs.h. */
  1790. #include <stdarg.h>
  1791. #include <stdio.h>
  1792. #include <sys/types.h>
  1793. #include <sys/stat.h>
  1794. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1795. struct buf { int x; };
  1796. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1797. static char *e (p, i)
  1798. char **p;
  1799. int i;
  1800. {
  1801. return p[i];
  1802. }
  1803. static char *f (char * (*g) (char **, int), char **p, ...)
  1804. {
  1805. char *s;
  1806. va_list v;
  1807. va_start (v,p);
  1808. s = g (p, va_arg (v,int));
  1809. va_end (v);
  1810. return s;
  1811. }
  1812. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1813. function prototypes and stuff, but not '\xHH' hex character constants.
  1814. These don't provoke an error unfortunately, instead are silently treated
  1815. as 'x'. The following induces an error, until -std1 is added to get
  1816. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  1817. array size at least. It's necessary to write '\x00'==0 to get something
  1818. that's true only with -std1. */
  1819. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1820. int test (int i, double x);
  1821. struct s1 {int (*f) (int a);};
  1822. struct s2 {int (*f) (double a);};
  1823. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1824. int argc;
  1825. char **argv;
  1826. int
  1827. main ()
  1828. {
  1829. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1830. ;
  1831. return 0;
  1832. }
  1833. _ACEOF
  1834. # Don't try gcc -ansi; that turns off useful extensions and
  1835. # breaks some systems' header files.
  1836. # AIX -qlanglvl=ansi
  1837. # Ultrix and OSF/1 -std1
  1838. # HP-UX 10.20 and later -Ae
  1839. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1840. # SVR4 -Xc -D__EXTENSIONS__
  1841. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1842. do
  1843. CC="$ac_save_CC $ac_arg"
  1844. rm -f conftest.$ac_objext
  1845. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1846. (eval $ac_compile) 2>conftest.er1
  1847. ac_status=$?
  1848. grep -v '^ *+' conftest.er1 >conftest.err
  1849. rm -f conftest.er1
  1850. cat conftest.err >&5
  1851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1852. (exit $ac_status); } &&
  1853. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1854. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1855. (eval $ac_try) 2>&5
  1856. ac_status=$?
  1857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1858. (exit $ac_status); }; } &&
  1859. { ac_try='test -s conftest.$ac_objext'
  1860. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1861. (eval $ac_try) 2>&5
  1862. ac_status=$?
  1863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1864. (exit $ac_status); }; }; then
  1865. ac_cv_prog_cc_stdc=$ac_arg
  1866. break
  1867. else
  1868. echo "$as_me: failed program was:" >&5
  1869. sed 's/^/| /' conftest.$ac_ext >&5
  1870. fi
  1871. rm -f conftest.err conftest.$ac_objext
  1872. done
  1873. rm -f conftest.$ac_ext conftest.$ac_objext
  1874. CC=$ac_save_CC
  1875. fi
  1876. case "x$ac_cv_prog_cc_stdc" in
  1877. x|xno)
  1878. echo "$as_me:$LINENO: result: none needed" >&5
  1879. echo "${ECHO_T}none needed" >&6 ;;
  1880. *)
  1881. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1882. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1883. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1884. esac
  1885. # Some people use a C++ compiler to compile C. Since we use `exit',
  1886. # in C++ we need to declare it. In case someone uses the same compiler
  1887. # for both compiling C and C++ we need to have the C++ compiler decide
  1888. # the declaration of exit, since it's the most demanding environment.
  1889. cat >conftest.$ac_ext <<_ACEOF
  1890. #ifndef __cplusplus
  1891. choke me
  1892. #endif
  1893. _ACEOF
  1894. rm -f conftest.$ac_objext
  1895. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1896. (eval $ac_compile) 2>conftest.er1
  1897. ac_status=$?
  1898. grep -v '^ *+' conftest.er1 >conftest.err
  1899. rm -f conftest.er1
  1900. cat conftest.err >&5
  1901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1902. (exit $ac_status); } &&
  1903. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1904. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1905. (eval $ac_try) 2>&5
  1906. ac_status=$?
  1907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1908. (exit $ac_status); }; } &&
  1909. { ac_try='test -s conftest.$ac_objext'
  1910. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1911. (eval $ac_try) 2>&5
  1912. ac_status=$?
  1913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1914. (exit $ac_status); }; }; then
  1915. for ac_declaration in \
  1916. '' \
  1917. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1918. 'extern "C" void std::exit (int); using std::exit;' \
  1919. 'extern "C" void exit (int) throw ();' \
  1920. 'extern "C" void exit (int);' \
  1921. 'void exit (int);'
  1922. do
  1923. cat >conftest.$ac_ext <<_ACEOF
  1924. /* confdefs.h. */
  1925. _ACEOF
  1926. cat confdefs.h >>conftest.$ac_ext
  1927. cat >>conftest.$ac_ext <<_ACEOF
  1928. /* end confdefs.h. */
  1929. $ac_declaration
  1930. #include <stdlib.h>
  1931. int
  1932. main ()
  1933. {
  1934. exit (42);
  1935. ;
  1936. return 0;
  1937. }
  1938. _ACEOF
  1939. rm -f conftest.$ac_objext
  1940. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1941. (eval $ac_compile) 2>conftest.er1
  1942. ac_status=$?
  1943. grep -v '^ *+' conftest.er1 >conftest.err
  1944. rm -f conftest.er1
  1945. cat conftest.err >&5
  1946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1947. (exit $ac_status); } &&
  1948. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1949. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1950. (eval $ac_try) 2>&5
  1951. ac_status=$?
  1952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1953. (exit $ac_status); }; } &&
  1954. { ac_try='test -s conftest.$ac_objext'
  1955. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1956. (eval $ac_try) 2>&5
  1957. ac_status=$?
  1958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1959. (exit $ac_status); }; }; then
  1960. :
  1961. else
  1962. echo "$as_me: failed program was:" >&5
  1963. sed 's/^/| /' conftest.$ac_ext >&5
  1964. continue
  1965. fi
  1966. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1967. cat >conftest.$ac_ext <<_ACEOF
  1968. /* confdefs.h. */
  1969. _ACEOF
  1970. cat confdefs.h >>conftest.$ac_ext
  1971. cat >>conftest.$ac_ext <<_ACEOF
  1972. /* end confdefs.h. */
  1973. $ac_declaration
  1974. int
  1975. main ()
  1976. {
  1977. exit (42);
  1978. ;
  1979. return 0;
  1980. }
  1981. _ACEOF
  1982. rm -f conftest.$ac_objext
  1983. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1984. (eval $ac_compile) 2>conftest.er1
  1985. ac_status=$?
  1986. grep -v '^ *+' conftest.er1 >conftest.err
  1987. rm -f conftest.er1
  1988. cat conftest.err >&5
  1989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1990. (exit $ac_status); } &&
  1991. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1992. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1993. (eval $ac_try) 2>&5
  1994. ac_status=$?
  1995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1996. (exit $ac_status); }; } &&
  1997. { ac_try='test -s conftest.$ac_objext'
  1998. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1999. (eval $ac_try) 2>&5
  2000. ac_status=$?
  2001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2002. (exit $ac_status); }; }; then
  2003. break
  2004. else
  2005. echo "$as_me: failed program was:" >&5
  2006. sed 's/^/| /' conftest.$ac_ext >&5
  2007. fi
  2008. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2009. done
  2010. rm -f conftest*
  2011. if test -n "$ac_declaration"; then
  2012. echo '#ifdef __cplusplus' >>confdefs.h
  2013. echo $ac_declaration >>confdefs.h
  2014. echo '#endif' >>confdefs.h
  2015. fi
  2016. else
  2017. echo "$as_me: failed program was:" >&5
  2018. sed 's/^/| /' conftest.$ac_ext >&5
  2019. fi
  2020. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2021. ac_ext=c
  2022. ac_cpp='$CPP $CPPFLAGS'
  2023. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2024. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2025. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2026. if test "${cross_compiling-x}" = "x"
  2027. then
  2028. cat << 'EOF' >&2
  2029. configure: error:
  2030. This system does not appear to have a working C compiler.
  2031. A working C compiler is required to compile Eggdrop.
  2032. EOF
  2033. exit 1
  2034. fi
  2035. # Crazy machines
  2036. ac_ext=c
  2037. ac_cpp='$CPP $CPPFLAGS'
  2038. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2039. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2040. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2041. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2042. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2043. # On Suns, sometimes $CPP names a directory.
  2044. if test -n "$CPP" && test -d "$CPP"; then
  2045. CPP=
  2046. fi
  2047. if test -z "$CPP"; then
  2048. if test "${ac_cv_prog_CPP+set}" = set; then
  2049. echo $ECHO_N "(cached) $ECHO_C" >&6
  2050. else
  2051. # Double quotes because CPP needs to be expanded
  2052. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2053. do
  2054. ac_preproc_ok=false
  2055. for ac_c_preproc_warn_flag in '' yes
  2056. do
  2057. # Use a header file that comes with gcc, so configuring glibc
  2058. # with a fresh cross-compiler works.
  2059. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2060. # <limits.h> exists even on freestanding compilers.
  2061. # On the NeXT, cc -E runs the code through the compiler's parser,
  2062. # not just through cpp. "Syntax error" is here to catch this case.
  2063. cat >conftest.$ac_ext <<_ACEOF
  2064. /* confdefs.h. */
  2065. _ACEOF
  2066. cat confdefs.h >>conftest.$ac_ext
  2067. cat >>conftest.$ac_ext <<_ACEOF
  2068. /* end confdefs.h. */
  2069. #ifdef __STDC__
  2070. # include <limits.h>
  2071. #else
  2072. # include <assert.h>
  2073. #endif
  2074. Syntax error
  2075. _ACEOF
  2076. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2077. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2078. ac_status=$?
  2079. grep -v '^ *+' conftest.er1 >conftest.err
  2080. rm -f conftest.er1
  2081. cat conftest.err >&5
  2082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2083. (exit $ac_status); } >/dev/null; then
  2084. if test -s conftest.err; then
  2085. ac_cpp_err=$ac_c_preproc_warn_flag
  2086. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2087. else
  2088. ac_cpp_err=
  2089. fi
  2090. else
  2091. ac_cpp_err=yes
  2092. fi
  2093. if test -z "$ac_cpp_err"; then
  2094. :
  2095. else
  2096. echo "$as_me: failed program was:" >&5
  2097. sed 's/^/| /' conftest.$ac_ext >&5
  2098. # Broken: fails on valid input.
  2099. continue
  2100. fi
  2101. rm -f conftest.err conftest.$ac_ext
  2102. # OK, works on sane cases. Now check whether non-existent headers
  2103. # can be detected and how.
  2104. cat >conftest.$ac_ext <<_ACEOF
  2105. /* confdefs.h. */
  2106. _ACEOF
  2107. cat confdefs.h >>conftest.$ac_ext
  2108. cat >>conftest.$ac_ext <<_ACEOF
  2109. /* end confdefs.h. */
  2110. #include <ac_nonexistent.h>
  2111. _ACEOF
  2112. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2113. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2114. ac_status=$?
  2115. grep -v '^ *+' conftest.er1 >conftest.err
  2116. rm -f conftest.er1
  2117. cat conftest.err >&5
  2118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2119. (exit $ac_status); } >/dev/null; then
  2120. if test -s conftest.err; then
  2121. ac_cpp_err=$ac_c_preproc_warn_flag
  2122. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2123. else
  2124. ac_cpp_err=
  2125. fi
  2126. else
  2127. ac_cpp_err=yes
  2128. fi
  2129. if test -z "$ac_cpp_err"; then
  2130. # Broken: success on invalid input.
  2131. continue
  2132. else
  2133. echo "$as_me: failed program was:" >&5
  2134. sed 's/^/| /' conftest.$ac_ext >&5
  2135. # Passes both tests.
  2136. ac_preproc_ok=:
  2137. break
  2138. fi
  2139. rm -f conftest.err conftest.$ac_ext
  2140. done
  2141. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2142. rm -f conftest.err conftest.$ac_ext
  2143. if $ac_preproc_ok; then
  2144. break
  2145. fi
  2146. done
  2147. ac_cv_prog_CPP=$CPP
  2148. fi
  2149. CPP=$ac_cv_prog_CPP
  2150. else
  2151. ac_cv_prog_CPP=$CPP
  2152. fi
  2153. echo "$as_me:$LINENO: result: $CPP" >&5
  2154. echo "${ECHO_T}$CPP" >&6
  2155. ac_preproc_ok=false
  2156. for ac_c_preproc_warn_flag in '' yes
  2157. do
  2158. # Use a header file that comes with gcc, so configuring glibc
  2159. # with a fresh cross-compiler works.
  2160. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2161. # <limits.h> exists even on freestanding compilers.
  2162. # On the NeXT, cc -E runs the code through the compiler's parser,
  2163. # not just through cpp. "Syntax error" is here to catch this case.
  2164. cat >conftest.$ac_ext <<_ACEOF
  2165. /* confdefs.h. */
  2166. _ACEOF
  2167. cat confdefs.h >>conftest.$ac_ext
  2168. cat >>conftest.$ac_ext <<_ACEOF
  2169. /* end confdefs.h. */
  2170. #ifdef __STDC__
  2171. # include <limits.h>
  2172. #else
  2173. # include <assert.h>
  2174. #endif
  2175. Syntax error
  2176. _ACEOF
  2177. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2178. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2179. ac_status=$?
  2180. grep -v '^ *+' conftest.er1 >conftest.err
  2181. rm -f conftest.er1
  2182. cat conftest.err >&5
  2183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2184. (exit $ac_status); } >/dev/null; then
  2185. if test -s conftest.err; then
  2186. ac_cpp_err=$ac_c_preproc_warn_flag
  2187. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2188. else
  2189. ac_cpp_err=
  2190. fi
  2191. else
  2192. ac_cpp_err=yes
  2193. fi
  2194. if test -z "$ac_cpp_err"; then
  2195. :
  2196. else
  2197. echo "$as_me: failed program was:" >&5
  2198. sed 's/^/| /' conftest.$ac_ext >&5
  2199. # Broken: fails on valid input.
  2200. continue
  2201. fi
  2202. rm -f conftest.err conftest.$ac_ext
  2203. # OK, works on sane cases. Now check whether non-existent headers
  2204. # can be detected and how.
  2205. cat >conftest.$ac_ext <<_ACEOF
  2206. /* confdefs.h. */
  2207. _ACEOF
  2208. cat confdefs.h >>conftest.$ac_ext
  2209. cat >>conftest.$ac_ext <<_ACEOF
  2210. /* end confdefs.h. */
  2211. #include <ac_nonexistent.h>
  2212. _ACEOF
  2213. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2214. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2215. ac_status=$?
  2216. grep -v '^ *+' conftest.er1 >conftest.err
  2217. rm -f conftest.er1
  2218. cat conftest.err >&5
  2219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2220. (exit $ac_status); } >/dev/null; then
  2221. if test -s conftest.err; then
  2222. ac_cpp_err=$ac_c_preproc_warn_flag
  2223. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2224. else
  2225. ac_cpp_err=
  2226. fi
  2227. else
  2228. ac_cpp_err=yes
  2229. fi
  2230. if test -z "$ac_cpp_err"; then
  2231. # Broken: success on invalid input.
  2232. continue
  2233. else
  2234. echo "$as_me: failed program was:" >&5
  2235. sed 's/^/| /' conftest.$ac_ext >&5
  2236. # Passes both tests.
  2237. ac_preproc_ok=:
  2238. break
  2239. fi
  2240. rm -f conftest.err conftest.$ac_ext
  2241. done
  2242. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2243. rm -f conftest.err conftest.$ac_ext
  2244. if $ac_preproc_ok; then
  2245. :
  2246. else
  2247. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2248. See \`config.log' for more details." >&5
  2249. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2250. See \`config.log' for more details." >&2;}
  2251. { (exit 1); exit 1; }; }
  2252. fi
  2253. ac_ext=c
  2254. ac_cpp='$CPP $CPPFLAGS'
  2255. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2256. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2257. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2258. echo "$as_me:$LINENO: checking for egrep" >&5
  2259. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2260. if test "${ac_cv_prog_egrep+set}" = set; then
  2261. echo $ECHO_N "(cached) $ECHO_C" >&6
  2262. else
  2263. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2264. then ac_cv_prog_egrep='grep -E'
  2265. else ac_cv_prog_egrep='egrep'
  2266. fi
  2267. fi
  2268. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2269. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2270. EGREP=$ac_cv_prog_egrep
  2271. echo "$as_me:$LINENO: checking for AIX" >&5
  2272. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  2273. cat >conftest.$ac_ext <<_ACEOF
  2274. /* confdefs.h. */
  2275. _ACEOF
  2276. cat confdefs.h >>conftest.$ac_ext
  2277. cat >>conftest.$ac_ext <<_ACEOF
  2278. /* end confdefs.h. */
  2279. #ifdef _AIX
  2280. yes
  2281. #endif
  2282. _ACEOF
  2283. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2284. $EGREP "yes" >/dev/null 2>&1; then
  2285. echo "$as_me:$LINENO: result: yes" >&5
  2286. echo "${ECHO_T}yes" >&6
  2287. cat >>confdefs.h <<\_ACEOF
  2288. #define _ALL_SOURCE 1
  2289. _ACEOF
  2290. else
  2291. echo "$as_me:$LINENO: result: no" >&5
  2292. echo "${ECHO_T}no" >&6
  2293. fi
  2294. rm -f conftest*
  2295. echo "$as_me:$LINENO: checking for library containing strerror" >&5
  2296. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
  2297. if test "${ac_cv_search_strerror+set}" = set; then
  2298. echo $ECHO_N "(cached) $ECHO_C" >&6
  2299. else
  2300. ac_func_search_save_LIBS=$LIBS
  2301. ac_cv_search_strerror=no
  2302. cat >conftest.$ac_ext <<_ACEOF
  2303. /* confdefs.h. */
  2304. _ACEOF
  2305. cat confdefs.h >>conftest.$ac_ext
  2306. cat >>conftest.$ac_ext <<_ACEOF
  2307. /* end confdefs.h. */
  2308. /* Override any gcc2 internal prototype to avoid an error. */
  2309. #ifdef __cplusplus
  2310. extern "C"
  2311. #endif
  2312. /* We use char because int might match the return type of a gcc2
  2313. builtin and then its argument prototype would still apply. */
  2314. char strerror ();
  2315. int
  2316. main ()
  2317. {
  2318. strerror ();
  2319. ;
  2320. return 0;
  2321. }
  2322. _ACEOF
  2323. rm -f conftest.$ac_objext conftest$ac_exeext
  2324. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2325. (eval $ac_link) 2>conftest.er1
  2326. ac_status=$?
  2327. grep -v '^ *+' conftest.er1 >conftest.err
  2328. rm -f conftest.er1
  2329. cat conftest.err >&5
  2330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2331. (exit $ac_status); } &&
  2332. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2333. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2334. (eval $ac_try) 2>&5
  2335. ac_status=$?
  2336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2337. (exit $ac_status); }; } &&
  2338. { ac_try='test -s conftest$ac_exeext'
  2339. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2340. (eval $ac_try) 2>&5
  2341. ac_status=$?
  2342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2343. (exit $ac_status); }; }; then
  2344. ac_cv_search_strerror="none required"
  2345. else
  2346. echo "$as_me: failed program was:" >&5
  2347. sed 's/^/| /' conftest.$ac_ext >&5
  2348. fi
  2349. rm -f conftest.err conftest.$ac_objext \
  2350. conftest$ac_exeext conftest.$ac_ext
  2351. if test "$ac_cv_search_strerror" = no; then
  2352. for ac_lib in cposix; do
  2353. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  2354. cat >conftest.$ac_ext <<_ACEOF
  2355. /* confdefs.h. */
  2356. _ACEOF
  2357. cat confdefs.h >>conftest.$ac_ext
  2358. cat >>conftest.$ac_ext <<_ACEOF
  2359. /* end confdefs.h. */
  2360. /* Override any gcc2 internal prototype to avoid an error. */
  2361. #ifdef __cplusplus
  2362. extern "C"
  2363. #endif
  2364. /* We use char because int might match the return type of a gcc2
  2365. builtin and then its argument prototype would still apply. */
  2366. char strerror ();
  2367. int
  2368. main ()
  2369. {
  2370. strerror ();
  2371. ;
  2372. return 0;
  2373. }
  2374. _ACEOF
  2375. rm -f conftest.$ac_objext conftest$ac_exeext
  2376. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2377. (eval $ac_link) 2>conftest.er1
  2378. ac_status=$?
  2379. grep -v '^ *+' conftest.er1 >conftest.err
  2380. rm -f conftest.er1
  2381. cat conftest.err >&5
  2382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2383. (exit $ac_status); } &&
  2384. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2385. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2386. (eval $ac_try) 2>&5
  2387. ac_status=$?
  2388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2389. (exit $ac_status); }; } &&
  2390. { ac_try='test -s conftest$ac_exeext'
  2391. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2392. (eval $ac_try) 2>&5
  2393. ac_status=$?
  2394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2395. (exit $ac_status); }; }; then
  2396. ac_cv_search_strerror="-l$ac_lib"
  2397. break
  2398. else
  2399. echo "$as_me: failed program was:" >&5
  2400. sed 's/^/| /' conftest.$ac_ext >&5
  2401. fi
  2402. rm -f conftest.err conftest.$ac_objext \
  2403. conftest$ac_exeext conftest.$ac_ext
  2404. done
  2405. fi
  2406. LIBS=$ac_func_search_save_LIBS
  2407. fi
  2408. echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  2409. echo "${ECHO_T}$ac_cv_search_strerror" >&6
  2410. if test "$ac_cv_search_strerror" != no; then
  2411. test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
  2412. fi
  2413. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2414. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2415. if test "${ac_cv_header_stdc+set}" = set; then
  2416. echo $ECHO_N "(cached) $ECHO_C" >&6
  2417. else
  2418. cat >conftest.$ac_ext <<_ACEOF
  2419. /* confdefs.h. */
  2420. _ACEOF
  2421. cat confdefs.h >>conftest.$ac_ext
  2422. cat >>conftest.$ac_ext <<_ACEOF
  2423. /* end confdefs.h. */
  2424. #include <stdlib.h>
  2425. #include <stdarg.h>
  2426. #include <string.h>
  2427. #include <float.h>
  2428. int
  2429. main ()
  2430. {
  2431. ;
  2432. return 0;
  2433. }
  2434. _ACEOF
  2435. rm -f conftest.$ac_objext
  2436. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2437. (eval $ac_compile) 2>conftest.er1
  2438. ac_status=$?
  2439. grep -v '^ *+' conftest.er1 >conftest.err
  2440. rm -f conftest.er1
  2441. cat conftest.err >&5
  2442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2443. (exit $ac_status); } &&
  2444. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2445. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2446. (eval $ac_try) 2>&5
  2447. ac_status=$?
  2448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2449. (exit $ac_status); }; } &&
  2450. { ac_try='test -s conftest.$ac_objext'
  2451. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2452. (eval $ac_try) 2>&5
  2453. ac_status=$?
  2454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2455. (exit $ac_status); }; }; then
  2456. ac_cv_header_stdc=yes
  2457. else
  2458. echo "$as_me: failed program was:" >&5
  2459. sed 's/^/| /' conftest.$ac_ext >&5
  2460. ac_cv_header_stdc=no
  2461. fi
  2462. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2463. if test $ac_cv_header_stdc = yes; then
  2464. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2465. cat >conftest.$ac_ext <<_ACEOF
  2466. /* confdefs.h. */
  2467. _ACEOF
  2468. cat confdefs.h >>conftest.$ac_ext
  2469. cat >>conftest.$ac_ext <<_ACEOF
  2470. /* end confdefs.h. */
  2471. #include <string.h>
  2472. _ACEOF
  2473. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2474. $EGREP "memchr" >/dev/null 2>&1; then
  2475. :
  2476. else
  2477. ac_cv_header_stdc=no
  2478. fi
  2479. rm -f conftest*
  2480. fi
  2481. if test $ac_cv_header_stdc = yes; then
  2482. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2483. cat >conftest.$ac_ext <<_ACEOF
  2484. /* confdefs.h. */
  2485. _ACEOF
  2486. cat confdefs.h >>conftest.$ac_ext
  2487. cat >>conftest.$ac_ext <<_ACEOF
  2488. /* end confdefs.h. */
  2489. #include <stdlib.h>
  2490. _ACEOF
  2491. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2492. $EGREP "free" >/dev/null 2>&1; then
  2493. :
  2494. else
  2495. ac_cv_header_stdc=no
  2496. fi
  2497. rm -f conftest*
  2498. fi
  2499. if test $ac_cv_header_stdc = yes; then
  2500. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2501. if test "$cross_compiling" = yes; then
  2502. :
  2503. else
  2504. cat >conftest.$ac_ext <<_ACEOF
  2505. /* confdefs.h. */
  2506. _ACEOF
  2507. cat confdefs.h >>conftest.$ac_ext
  2508. cat >>conftest.$ac_ext <<_ACEOF
  2509. /* end confdefs.h. */
  2510. #include <ctype.h>
  2511. #if ((' ' & 0x0FF) == 0x020)
  2512. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2513. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2514. #else
  2515. # define ISLOWER(c) \
  2516. (('a' <= (c) && (c) <= 'i') \
  2517. || ('j' <= (c) && (c) <= 'r') \
  2518. || ('s' <= (c) && (c) <= 'z'))
  2519. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2520. #endif
  2521. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2522. int
  2523. main ()
  2524. {
  2525. int i;
  2526. for (i = 0; i < 256; i++)
  2527. if (XOR (islower (i), ISLOWER (i))
  2528. || toupper (i) != TOUPPER (i))
  2529. exit(2);
  2530. exit (0);
  2531. }
  2532. _ACEOF
  2533. rm -f conftest$ac_exeext
  2534. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2535. (eval $ac_link) 2>&5
  2536. ac_status=$?
  2537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2538. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2539. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2540. (eval $ac_try) 2>&5
  2541. ac_status=$?
  2542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2543. (exit $ac_status); }; }; then
  2544. :
  2545. else
  2546. echo "$as_me: program exited with status $ac_status" >&5
  2547. echo "$as_me: failed program was:" >&5
  2548. sed 's/^/| /' conftest.$ac_ext >&5
  2549. ( exit $ac_status )
  2550. ac_cv_header_stdc=no
  2551. fi
  2552. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2553. fi
  2554. fi
  2555. fi
  2556. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2557. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2558. if test $ac_cv_header_stdc = yes; then
  2559. cat >>confdefs.h <<\_ACEOF
  2560. #define STDC_HEADERS 1
  2561. _ACEOF
  2562. fi
  2563. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2564. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2565. inttypes.h stdint.h unistd.h
  2566. do
  2567. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2568. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2569. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2570. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2571. echo $ECHO_N "(cached) $ECHO_C" >&6
  2572. else
  2573. cat >conftest.$ac_ext <<_ACEOF
  2574. /* confdefs.h. */
  2575. _ACEOF
  2576. cat confdefs.h >>conftest.$ac_ext
  2577. cat >>conftest.$ac_ext <<_ACEOF
  2578. /* end confdefs.h. */
  2579. $ac_includes_default
  2580. #include <$ac_header>
  2581. _ACEOF
  2582. rm -f conftest.$ac_objext
  2583. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2584. (eval $ac_compile) 2>conftest.er1
  2585. ac_status=$?
  2586. grep -v '^ *+' conftest.er1 >conftest.err
  2587. rm -f conftest.er1
  2588. cat conftest.err >&5
  2589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2590. (exit $ac_status); } &&
  2591. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2592. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2593. (eval $ac_try) 2>&5
  2594. ac_status=$?
  2595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2596. (exit $ac_status); }; } &&
  2597. { ac_try='test -s conftest.$ac_objext'
  2598. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2599. (eval $ac_try) 2>&5
  2600. ac_status=$?
  2601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2602. (exit $ac_status); }; }; then
  2603. eval "$as_ac_Header=yes"
  2604. else
  2605. echo "$as_me: failed program was:" >&5
  2606. sed 's/^/| /' conftest.$ac_ext >&5
  2607. eval "$as_ac_Header=no"
  2608. fi
  2609. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2610. fi
  2611. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2612. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2613. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2614. cat >>confdefs.h <<_ACEOF
  2615. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2616. _ACEOF
  2617. fi
  2618. done
  2619. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2620. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2621. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2622. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2623. echo $ECHO_N "(cached) $ECHO_C" >&6
  2624. fi
  2625. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2626. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2627. else
  2628. # Is the header compilable?
  2629. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2630. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2631. cat >conftest.$ac_ext <<_ACEOF
  2632. /* confdefs.h. */
  2633. _ACEOF
  2634. cat confdefs.h >>conftest.$ac_ext
  2635. cat >>conftest.$ac_ext <<_ACEOF
  2636. /* end confdefs.h. */
  2637. $ac_includes_default
  2638. #include <minix/config.h>
  2639. _ACEOF
  2640. rm -f conftest.$ac_objext
  2641. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2642. (eval $ac_compile) 2>conftest.er1
  2643. ac_status=$?
  2644. grep -v '^ *+' conftest.er1 >conftest.err
  2645. rm -f conftest.er1
  2646. cat conftest.err >&5
  2647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2648. (exit $ac_status); } &&
  2649. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2650. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2651. (eval $ac_try) 2>&5
  2652. ac_status=$?
  2653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2654. (exit $ac_status); }; } &&
  2655. { ac_try='test -s conftest.$ac_objext'
  2656. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2657. (eval $ac_try) 2>&5
  2658. ac_status=$?
  2659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2660. (exit $ac_status); }; }; then
  2661. ac_header_compiler=yes
  2662. else
  2663. echo "$as_me: failed program was:" >&5
  2664. sed 's/^/| /' conftest.$ac_ext >&5
  2665. ac_header_compiler=no
  2666. fi
  2667. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2668. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2669. echo "${ECHO_T}$ac_header_compiler" >&6
  2670. # Is the header present?
  2671. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2672. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2673. cat >conftest.$ac_ext <<_ACEOF
  2674. /* confdefs.h. */
  2675. _ACEOF
  2676. cat confdefs.h >>conftest.$ac_ext
  2677. cat >>conftest.$ac_ext <<_ACEOF
  2678. /* end confdefs.h. */
  2679. #include <minix/config.h>
  2680. _ACEOF
  2681. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2682. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2683. ac_status=$?
  2684. grep -v '^ *+' conftest.er1 >conftest.err
  2685. rm -f conftest.er1
  2686. cat conftest.err >&5
  2687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2688. (exit $ac_status); } >/dev/null; then
  2689. if test -s conftest.err; then
  2690. ac_cpp_err=$ac_c_preproc_warn_flag
  2691. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2692. else
  2693. ac_cpp_err=
  2694. fi
  2695. else
  2696. ac_cpp_err=yes
  2697. fi
  2698. if test -z "$ac_cpp_err"; then
  2699. ac_header_preproc=yes
  2700. else
  2701. echo "$as_me: failed program was:" >&5
  2702. sed 's/^/| /' conftest.$ac_ext >&5
  2703. ac_header_preproc=no
  2704. fi
  2705. rm -f conftest.err conftest.$ac_ext
  2706. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2707. echo "${ECHO_T}$ac_header_preproc" >&6
  2708. # So? What about this header?
  2709. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  2710. yes:no: )
  2711. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2712. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2713. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2714. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2715. ac_header_preproc=yes
  2716. ;;
  2717. no:yes:* )
  2718. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2719. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2720. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2721. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2722. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2723. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2724. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2725. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2726. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2727. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2728. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2729. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2730. (
  2731. cat <<\_ASBOX
  2732. ## ------------------------------------------ ##
  2733. ## Report this to the AC_PACKAGE_NAME lists. ##
  2734. ## ------------------------------------------ ##
  2735. _ASBOX
  2736. ) |
  2737. sed "s/^/$as_me: WARNING: /" >&2
  2738. ;;
  2739. esac
  2740. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2741. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2742. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2743. echo $ECHO_N "(cached) $ECHO_C" >&6
  2744. else
  2745. ac_cv_header_minix_config_h=$ac_header_preproc
  2746. fi
  2747. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2748. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2749. fi
  2750. if test $ac_cv_header_minix_config_h = yes; then
  2751. MINIX=yes
  2752. else
  2753. MINIX=
  2754. fi
  2755. if test "$MINIX" = yes; then
  2756. cat >>confdefs.h <<\_ACEOF
  2757. #define _POSIX_SOURCE 1
  2758. _ACEOF
  2759. cat >>confdefs.h <<\_ACEOF
  2760. #define _POSIX_1_SOURCE 2
  2761. _ACEOF
  2762. cat >>confdefs.h <<\_ACEOF
  2763. #define _MINIX 1
  2764. _ACEOF
  2765. fi
  2766. #checkpoint
  2767. cat >confcache <<\_ACEOF
  2768. # This file is a shell script that caches the results of configure
  2769. # tests run on this system so they can be shared between configure
  2770. # scripts and configure runs, see configure's option --config-cache.
  2771. # It is not useful on other systems. If it contains results you don't
  2772. # want to keep, you may remove or edit it.
  2773. #
  2774. # config.status only pays attention to the cache file if you give it
  2775. # the --recheck option to rerun configure.
  2776. #
  2777. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2778. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2779. # following values.
  2780. _ACEOF
  2781. # The following way of writing the cache mishandles newlines in values,
  2782. # but we know of no workaround that is simple, portable, and efficient.
  2783. # So, don't put newlines in cache variables' values.
  2784. # Ultrix sh set writes to stderr and can't be redirected directly,
  2785. # and sets the high bit in the cache file unless we assign to the vars.
  2786. {
  2787. (set) 2>&1 |
  2788. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2789. *ac_space=\ *)
  2790. # `set' does not quote correctly, so add quotes (double-quote
  2791. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2792. sed -n \
  2793. "s/'/'\\\\''/g;
  2794. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2795. ;;
  2796. *)
  2797. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2798. sed -n \
  2799. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2800. ;;
  2801. esac;
  2802. } |
  2803. sed '
  2804. t clear
  2805. : clear
  2806. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2807. t end
  2808. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2809. : end' >>confcache
  2810. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2811. if test -w $cache_file; then
  2812. test "x$cache_file" != "x/dev/null"
  2813. cat confcache >$cache_file
  2814. else
  2815. echo "not updating unwritable cache $cache_file"
  2816. fi
  2817. fi
  2818. rm -f confcache
  2819. # Speedup compile
  2820. if test -z "$no_pipe"
  2821. then
  2822. if test -n "$GCC"
  2823. then
  2824. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2825. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2826. if test "${egg_cv_var_ccpipe+set}" = set; then
  2827. echo $ECHO_N "(cached) $ECHO_C" >&6
  2828. else
  2829. ac_old_CC="$CC"
  2830. CC="$CC -pipe"
  2831. cat >conftest.$ac_ext <<_ACEOF
  2832. /* confdefs.h. */
  2833. _ACEOF
  2834. cat confdefs.h >>conftest.$ac_ext
  2835. cat >>conftest.$ac_ext <<_ACEOF
  2836. /* end confdefs.h. */
  2837. int
  2838. main ()
  2839. {
  2840. ;
  2841. return 0;
  2842. }
  2843. _ACEOF
  2844. rm -f conftest.$ac_objext
  2845. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2846. (eval $ac_compile) 2>conftest.er1
  2847. ac_status=$?
  2848. grep -v '^ *+' conftest.er1 >conftest.err
  2849. rm -f conftest.er1
  2850. cat conftest.err >&5
  2851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2852. (exit $ac_status); } &&
  2853. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2854. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2855. (eval $ac_try) 2>&5
  2856. ac_status=$?
  2857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2858. (exit $ac_status); }; } &&
  2859. { ac_try='test -s conftest.$ac_objext'
  2860. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2861. (eval $ac_try) 2>&5
  2862. ac_status=$?
  2863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2864. (exit $ac_status); }; }; then
  2865. egg_cv_var_ccpipe="yes"
  2866. else
  2867. echo "$as_me: failed program was:" >&5
  2868. sed 's/^/| /' conftest.$ac_ext >&5
  2869. egg_cv_var_ccpipe="no"
  2870. fi
  2871. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2872. CC="$ac_old_CC"
  2873. fi
  2874. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2875. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2876. if test "$egg_cv_var_ccpipe" = "yes"
  2877. then
  2878. CC="$CC -pipe"
  2879. fi
  2880. fi
  2881. fi
  2882. # Create static binaries
  2883. if test -z "$no_static"
  2884. then
  2885. if test -n "$GCC"
  2886. then
  2887. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  2888. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  2889. if test "${egg_cv_var_ccstatic+set}" = set; then
  2890. echo $ECHO_N "(cached) $ECHO_C" >&6
  2891. else
  2892. ac_old_CC="$CC"
  2893. CC="$CC -static"
  2894. cat >conftest.$ac_ext <<_ACEOF
  2895. /* confdefs.h. */
  2896. _ACEOF
  2897. cat confdefs.h >>conftest.$ac_ext
  2898. cat >>conftest.$ac_ext <<_ACEOF
  2899. /* end confdefs.h. */
  2900. int
  2901. main ()
  2902. {
  2903. ;
  2904. return 0;
  2905. }
  2906. _ACEOF
  2907. rm -f conftest.$ac_objext
  2908. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2909. (eval $ac_compile) 2>conftest.er1
  2910. ac_status=$?
  2911. grep -v '^ *+' conftest.er1 >conftest.err
  2912. rm -f conftest.er1
  2913. cat conftest.err >&5
  2914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2915. (exit $ac_status); } &&
  2916. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2917. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2918. (eval $ac_try) 2>&5
  2919. ac_status=$?
  2920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2921. (exit $ac_status); }; } &&
  2922. { ac_try='test -s conftest.$ac_objext'
  2923. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2924. (eval $ac_try) 2>&5
  2925. ac_status=$?
  2926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2927. (exit $ac_status); }; }; then
  2928. egg_cv_var_ccstatic="yes"
  2929. else
  2930. echo "$as_me: failed program was:" >&5
  2931. sed 's/^/| /' conftest.$ac_ext >&5
  2932. egg_cv_var_ccstatic="no"
  2933. fi
  2934. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2935. CC="$ac_old_CC"
  2936. fi
  2937. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  2938. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  2939. if test "$egg_cv_var_ccstatic" = "yes"
  2940. then
  2941. CC="$CC -static"
  2942. else
  2943. cat << 'EOF' >&2
  2944. configure: error:
  2945. Your C compiler does not support -static.
  2946. This compile flag is required for the botpack.
  2947. EOF
  2948. exit 1
  2949. fi
  2950. fi
  2951. fi
  2952. # Checks for programs
  2953. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2954. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2955. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2956. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2957. echo $ECHO_N "(cached) $ECHO_C" >&6
  2958. else
  2959. cat >conftest.make <<\_ACEOF
  2960. all:
  2961. @echo 'ac_maketemp="$(MAKE)"'
  2962. _ACEOF
  2963. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2964. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2965. if test -n "$ac_maketemp"; then
  2966. eval ac_cv_prog_make_${ac_make}_set=yes
  2967. else
  2968. eval ac_cv_prog_make_${ac_make}_set=no
  2969. fi
  2970. rm -f conftest.make
  2971. fi
  2972. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2973. echo "$as_me:$LINENO: result: yes" >&5
  2974. echo "${ECHO_T}yes" >&6
  2975. SET_MAKE=
  2976. else
  2977. echo "$as_me:$LINENO: result: no" >&5
  2978. echo "${ECHO_T}no" >&6
  2979. SET_MAKE="MAKE=${MAKE-make}"
  2980. fi
  2981. cat << 'EOF' > conftest.head
  2982. a
  2983. b
  2984. c
  2985. EOF
  2986. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  2987. do
  2988. echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  2989. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6
  2990. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  2991. echo $ECHO_N "(cached) $ECHO_C" >&6
  2992. else
  2993. if test -n "$HEAD_1"
  2994. then
  2995. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  2996. else
  2997. if test "`cat conftest.head | $ac_prog`" = "a";
  2998. then
  2999. echo "$as_me:$LINENO: result: yes" >&5
  3000. echo "${ECHO_T}yes" >&6
  3001. ac_cv_prog_HEAD_1=$ac_prog
  3002. else
  3003. echo "$as_me:$LINENO: result: no" >&5
  3004. echo "${ECHO_T}no" >&6
  3005. fi
  3006. fi
  3007. fi
  3008. test -n "$ac_cv_prog_HEAD_1" && break
  3009. done
  3010. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  3011. then
  3012. cat << 'EOF' >&2
  3013. configure: error:
  3014. This system seems to lack a working 'head -1' or 'head -n 1' command.
  3015. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  3016. EOF
  3017. exit 1
  3018. fi
  3019. rm -f conftest.head
  3020. HEAD_1=$ac_cv_prog_HEAD_1
  3021. # Extract the first word of "strip", so it can be a program name with args.
  3022. set dummy strip; ac_word=$2
  3023. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3024. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3025. if test "${ac_cv_prog_STRIP+set}" = set; then
  3026. echo $ECHO_N "(cached) $ECHO_C" >&6
  3027. else
  3028. if test -n "$STRIP"; then
  3029. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3030. else
  3031. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3032. for as_dir in $PATH
  3033. do
  3034. IFS=$as_save_IFS
  3035. test -z "$as_dir" && as_dir=.
  3036. for ac_exec_ext in '' $ac_executable_extensions; do
  3037. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3038. ac_cv_prog_STRIP="strip"
  3039. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3040. break 2
  3041. fi
  3042. done
  3043. done
  3044. fi
  3045. fi
  3046. STRIP=$ac_cv_prog_STRIP
  3047. if test -n "$STRIP"; then
  3048. echo "$as_me:$LINENO: result: $STRIP" >&5
  3049. echo "${ECHO_T}$STRIP" >&6
  3050. else
  3051. echo "$as_me:$LINENO: result: no" >&5
  3052. echo "${ECHO_T}no" >&6
  3053. fi
  3054. if test "${STRIP-x}" = "x"
  3055. then
  3056. STRIP=touch
  3057. fi
  3058. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3059. for ac_prog in gawk mawk nawk awk
  3060. do
  3061. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3062. set dummy $ac_prog; ac_word=$2
  3063. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3064. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3065. if test "${ac_cv_prog_AWK+set}" = set; then
  3066. echo $ECHO_N "(cached) $ECHO_C" >&6
  3067. else
  3068. if test -n "$AWK"; then
  3069. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3070. else
  3071. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3072. for as_dir in $PATH
  3073. do
  3074. IFS=$as_save_IFS
  3075. test -z "$as_dir" && as_dir=.
  3076. for ac_exec_ext in '' $ac_executable_extensions; do
  3077. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3078. ac_cv_prog_AWK="$ac_prog"
  3079. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3080. break 2
  3081. fi
  3082. done
  3083. done
  3084. fi
  3085. fi
  3086. AWK=$ac_cv_prog_AWK
  3087. if test -n "$AWK"; then
  3088. echo "$as_me:$LINENO: result: $AWK" >&5
  3089. echo "${ECHO_T}$AWK" >&6
  3090. else
  3091. echo "$as_me:$LINENO: result: no" >&5
  3092. echo "${ECHO_T}no" >&6
  3093. fi
  3094. test -n "$AWK" && break
  3095. done
  3096. if test "${AWK-x}" = "x"
  3097. then
  3098. cat << 'EOF' >&2
  3099. configure: error:
  3100. This system seems to lack a working 'awk' command.
  3101. A working 'awk' command is required to compile Eggdrop.
  3102. EOF
  3103. exit 1
  3104. fi
  3105. # basename is needed for Tcl library and header checks
  3106. # Extract the first word of "basename", so it can be a program name with args.
  3107. set dummy basename; ac_word=$2
  3108. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3109. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3110. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3111. echo $ECHO_N "(cached) $ECHO_C" >&6
  3112. else
  3113. if test -n "$BASENAME"; then
  3114. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3115. else
  3116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3117. for as_dir in $PATH
  3118. do
  3119. IFS=$as_save_IFS
  3120. test -z "$as_dir" && as_dir=.
  3121. for ac_exec_ext in '' $ac_executable_extensions; do
  3122. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3123. ac_cv_prog_BASENAME="basename"
  3124. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3125. break 2
  3126. fi
  3127. done
  3128. done
  3129. fi
  3130. fi
  3131. BASENAME=$ac_cv_prog_BASENAME
  3132. if test -n "$BASENAME"; then
  3133. echo "$as_me:$LINENO: result: $BASENAME" >&5
  3134. echo "${ECHO_T}$BASENAME" >&6
  3135. else
  3136. echo "$as_me:$LINENO: result: no" >&5
  3137. echo "${ECHO_T}no" >&6
  3138. fi
  3139. if test "${BASENAME-x}" = "x"
  3140. then
  3141. cat << 'EOF' >&2
  3142. configure: error:
  3143. This system seems to lack a working 'basename' command.
  3144. A working 'basename' command is required to compile Eggdrop.
  3145. EOF
  3146. exit 1
  3147. fi
  3148. # Extract the first word of "uname", so it can be a program name with args.
  3149. set dummy uname; ac_word=$2
  3150. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3151. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3152. if test "${ac_cv_prog_UNAME+set}" = set; then
  3153. echo $ECHO_N "(cached) $ECHO_C" >&6
  3154. else
  3155. if test -n "$UNAME"; then
  3156. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3157. else
  3158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3159. for as_dir in $PATH
  3160. do
  3161. IFS=$as_save_IFS
  3162. test -z "$as_dir" && as_dir=.
  3163. for ac_exec_ext in '' $ac_executable_extensions; do
  3164. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3165. ac_cv_prog_UNAME="uname"
  3166. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3167. break 2
  3168. fi
  3169. done
  3170. done
  3171. fi
  3172. fi
  3173. UNAME=$ac_cv_prog_UNAME
  3174. if test -n "$UNAME"; then
  3175. echo "$as_me:$LINENO: result: $UNAME" >&5
  3176. echo "${ECHO_T}$UNAME" >&6
  3177. else
  3178. echo "$as_me:$LINENO: result: no" >&5
  3179. echo "${ECHO_T}no" >&6
  3180. fi
  3181. # Test the os and set the module linking settings
  3182. LINUX=no
  3183. IRIX=no
  3184. SUNOS=no
  3185. HPUX=no
  3186. EGG_CYGWIN=no
  3187. NEED_DL=1
  3188. echo "$as_me:$LINENO: checking system type" >&5
  3189. echo $ECHO_N "checking system type... $ECHO_C" >&6
  3190. if test "${egg_cv_var_system_type+set}" = set; then
  3191. echo $ECHO_N "(cached) $ECHO_C" >&6
  3192. else
  3193. egg_cv_var_system_type=`$UNAME -s`
  3194. fi
  3195. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3196. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3197. echo "$as_me:$LINENO: checking system release" >&5
  3198. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3199. if test "${egg_cv_var_system_release+set}" = set; then
  3200. echo $ECHO_N "(cached) $ECHO_C" >&6
  3201. else
  3202. egg_cv_var_system_release=`$UNAME -r`
  3203. fi
  3204. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3205. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3206. case "$egg_cv_var_system_type" in
  3207. BSD/OS)
  3208. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3209. 2)
  3210. NEED_DL=0
  3211. ;;
  3212. *)
  3213. CFLAGS="$CFLAGS -Wall"
  3214. ;;
  3215. esac
  3216. ;;
  3217. CYGWI*)
  3218. case "`echo $egg_cv_var_system_release | cut -c 1-3`" in
  3219. 1.*)
  3220. NEED_DL=0
  3221. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3222. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3223. WIN32FLAGS=
  3224. cat >conftest.$ac_ext <<_ACEOF
  3225. /* confdefs.h. */
  3226. _ACEOF
  3227. cat confdefs.h >>conftest.$ac_ext
  3228. cat >>conftest.$ac_ext <<_ACEOF
  3229. /* end confdefs.h. */
  3230. int
  3231. main ()
  3232. {
  3233. #ifndef WIN32
  3234. # ifndef _WIN32
  3235. # error WIN32 or _WIN32 not defined
  3236. # endif
  3237. #endif
  3238. ;
  3239. return 0;
  3240. }
  3241. _ACEOF
  3242. rm -f conftest.$ac_objext
  3243. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3244. (eval $ac_compile) 2>conftest.er1
  3245. ac_status=$?
  3246. grep -v '^ *+' conftest.er1 >conftest.err
  3247. rm -f conftest.er1
  3248. cat conftest.err >&5
  3249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3250. (exit $ac_status); } &&
  3251. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3252. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3253. (eval $ac_try) 2>&5
  3254. ac_status=$?
  3255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3256. (exit $ac_status); }; } &&
  3257. { ac_try='test -s conftest.$ac_objext'
  3258. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3259. (eval $ac_try) 2>&5
  3260. ac_status=$?
  3261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3262. (exit $ac_status); }; }; then
  3263. echo "$as_me:$LINENO: result: present by default" >&5
  3264. echo "${ECHO_T}present by default" >&6
  3265. else
  3266. echo "$as_me: failed program was:" >&5
  3267. sed 's/^/| /' conftest.$ac_ext >&5
  3268. ac_compile_save="$ac_compile"
  3269. save_CC="$CC"
  3270. ac_compile="$ac_compile -mwin32"
  3271. CC="$CC -mwin32"
  3272. cat >conftest.$ac_ext <<_ACEOF
  3273. /* confdefs.h. */
  3274. _ACEOF
  3275. cat confdefs.h >>conftest.$ac_ext
  3276. cat >>conftest.$ac_ext <<_ACEOF
  3277. /* end confdefs.h. */
  3278. int
  3279. main ()
  3280. {
  3281. #ifndef WIN32
  3282. # ifndef _WIN32
  3283. # error WIN32 or _WIN32 not defined
  3284. # endif
  3285. #endif
  3286. ;
  3287. return 0;
  3288. }
  3289. _ACEOF
  3290. rm -f conftest.$ac_objext
  3291. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3292. (eval $ac_compile) 2>conftest.er1
  3293. ac_status=$?
  3294. grep -v '^ *+' conftest.er1 >conftest.err
  3295. rm -f conftest.er1
  3296. cat conftest.err >&5
  3297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3298. (exit $ac_status); } &&
  3299. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3300. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3301. (eval $ac_try) 2>&5
  3302. ac_status=$?
  3303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3304. (exit $ac_status); }; } &&
  3305. { ac_try='test -s conftest.$ac_objext'
  3306. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3307. (eval $ac_try) 2>&5
  3308. ac_status=$?
  3309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3310. (exit $ac_status); }; }; then
  3311. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3312. echo "${ECHO_T}found via -mwin32" >&6
  3313. ac_compile="$ac_compile_save"
  3314. CC="$save_CC"
  3315. WIN32FLAGS="-mwin32"
  3316. else
  3317. echo "$as_me: failed program was:" >&5
  3318. sed 's/^/| /' conftest.$ac_ext >&5
  3319. ac_compile="$ac_compile_save"
  3320. CC="$save_CC"
  3321. echo "$as_me:$LINENO: result: not found" >&5
  3322. echo "${ECHO_T}not found" >&6
  3323. fi
  3324. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3325. fi
  3326. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3327. CC="$CC $WIN32FLAGS"
  3328. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3329. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3330. if test -r /usr/lib/binmode.o
  3331. then
  3332. echo "$as_me:$LINENO: result: yes" >&5
  3333. echo "${ECHO_T}yes" >&6
  3334. LIBS="$LIBS /usr/lib/binmode.o"
  3335. else
  3336. echo "$as_me:$LINENO: result: no" >&5
  3337. echo "${ECHO_T}no" >&6
  3338. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3339. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3340. fi
  3341. ;;
  3342. *)
  3343. NEED_DL=0
  3344. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3345. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3346. ;;
  3347. esac
  3348. EGG_CYGWIN=yes
  3349. cat >>confdefs.h <<\_ACEOF
  3350. #define CYGWIN_HACKS 1
  3351. _ACEOF
  3352. ;;
  3353. HP-UX)
  3354. HPUX=yes
  3355. NEED_DL=0
  3356. cat >>confdefs.h <<\_ACEOF
  3357. #define HPUX_HACKS 1
  3358. _ACEOF
  3359. if test "`echo $egg_cv_var_system_release | cut -d . -f 2`" = "10"
  3360. then
  3361. cat >>confdefs.h <<\_ACEOF
  3362. #define HPUX10_HACKS 1
  3363. _ACEOF
  3364. fi
  3365. ;;
  3366. dell)
  3367. echo "$as_me:$LINENO: result: Dell SVR4" >&5
  3368. echo "${ECHO_T}Dell SVR4" >&6
  3369. NEED_DL=0
  3370. ;;
  3371. IRIX)
  3372. IRIX=yes
  3373. NEED_DL=0
  3374. ;;
  3375. Ultrix)
  3376. NEED_DL=0
  3377. SHELL=/bin/sh5
  3378. ;;
  3379. SINIX*)
  3380. NEED_DL=0
  3381. ;;
  3382. BeOS)
  3383. NEED_DL=0
  3384. ;;
  3385. Linux)
  3386. LINUX=yes
  3387. CFLAGS="$CFLAGS -Wall"
  3388. ;;
  3389. Lynx)
  3390. NEED_DL=0
  3391. ;;
  3392. QNX)
  3393. NEED_DL=0
  3394. ;;
  3395. OSF1)
  3396. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3397. V*)
  3398. # FIXME: we should check this in a separate test
  3399. # Digital OSF uses an ancient version of gawk
  3400. if test "$AWK" = "gawk"
  3401. then
  3402. AWK=awk
  3403. fi
  3404. ;;
  3405. 1.0|1.1|1.2)
  3406. cat >>confdefs.h <<\_ACEOF
  3407. #define OSF1_HACKS 1
  3408. _ACEOF
  3409. ;;
  3410. 1.*)
  3411. cat >>confdefs.h <<\_ACEOF
  3412. #define OSF1_HACKS 1
  3413. _ACEOF
  3414. ;;
  3415. *)
  3416. NEED_DL=0
  3417. ;;
  3418. esac
  3419. cat >>confdefs.h <<\_ACEOF
  3420. #define STOP_UAC 1
  3421. _ACEOF
  3422. cat >>confdefs.h <<\_ACEOF
  3423. #define BROKEN_SNPRINTF 1
  3424. _ACEOF
  3425. ;;
  3426. SunOS)
  3427. if ! test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"
  3428. then
  3429. # SunOS 4
  3430. SUNOS=yes
  3431. cat >>confdefs.h <<\_ACEOF
  3432. #define DLOPEN_1 1
  3433. _ACEOF
  3434. fi
  3435. ;;
  3436. *BSD)
  3437. # FreeBSD/OpenBSD/NetBSD
  3438. ;;
  3439. *)
  3440. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3441. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3442. if test -r /mach
  3443. then
  3444. echo "$as_me:$LINENO: result: yes" >&5
  3445. echo "${ECHO_T}yes" >&6
  3446. NEED_DL=0
  3447. cat >>confdefs.h <<\_ACEOF
  3448. #define BORGCUBES 1
  3449. _ACEOF
  3450. else
  3451. echo "$as_me:$LINENO: result: no" >&5
  3452. echo "${ECHO_T}no" >&6
  3453. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3454. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3455. if test -r /cmds
  3456. then
  3457. echo "$as_me:$LINENO: result: yes" >&5
  3458. echo "${ECHO_T}yes" >&6
  3459. NEED_DL=0
  3460. else
  3461. echo "$as_me:$LINENO: result: no" >&5
  3462. echo "${ECHO_T}no" >&6
  3463. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3464. echo "${ECHO_T}Something unknown!" >&6
  3465. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3466. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3467. NEED_DL=0
  3468. fi
  3469. fi
  3470. ;;
  3471. esac
  3472. #checkpoint
  3473. cat >confcache <<\_ACEOF
  3474. # This file is a shell script that caches the results of configure
  3475. # tests run on this system so they can be shared between configure
  3476. # scripts and configure runs, see configure's option --config-cache.
  3477. # It is not useful on other systems. If it contains results you don't
  3478. # want to keep, you may remove or edit it.
  3479. #
  3480. # config.status only pays attention to the cache file if you give it
  3481. # the --recheck option to rerun configure.
  3482. #
  3483. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3484. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3485. # following values.
  3486. _ACEOF
  3487. # The following way of writing the cache mishandles newlines in values,
  3488. # but we know of no workaround that is simple, portable, and efficient.
  3489. # So, don't put newlines in cache variables' values.
  3490. # Ultrix sh set writes to stderr and can't be redirected directly,
  3491. # and sets the high bit in the cache file unless we assign to the vars.
  3492. {
  3493. (set) 2>&1 |
  3494. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  3495. *ac_space=\ *)
  3496. # `set' does not quote correctly, so add quotes (double-quote
  3497. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3498. sed -n \
  3499. "s/'/'\\\\''/g;
  3500. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3501. ;;
  3502. *)
  3503. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3504. sed -n \
  3505. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  3506. ;;
  3507. esac;
  3508. } |
  3509. sed '
  3510. t clear
  3511. : clear
  3512. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3513. t end
  3514. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3515. : end' >>confcache
  3516. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  3517. if test -w $cache_file; then
  3518. test "x$cache_file" != "x/dev/null"
  3519. cat confcache >$cache_file
  3520. else
  3521. echo "not updating unwritable cache $cache_file"
  3522. fi
  3523. fi
  3524. rm -f confcache
  3525. # Checks for system libraries
  3526. # FIXME: this needs to be fixed so that it works on IRIX
  3527. if test "$IRIX" = "yes"
  3528. then
  3529. { echo "$as_me:$LINENO: WARNING: Skipping library tests because they CONFUSE Irix." >&5
  3530. echo "$as_me: WARNING: Skipping library tests because they CONFUSE Irix." >&2;}
  3531. else
  3532. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  3533. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  3534. if test "${ac_cv_lib_socket_socket+set}" = set; then
  3535. echo $ECHO_N "(cached) $ECHO_C" >&6
  3536. else
  3537. ac_check_lib_save_LIBS=$LIBS
  3538. LIBS="-lsocket $LIBS"
  3539. cat >conftest.$ac_ext <<_ACEOF
  3540. /* confdefs.h. */
  3541. _ACEOF
  3542. cat confdefs.h >>conftest.$ac_ext
  3543. cat >>conftest.$ac_ext <<_ACEOF
  3544. /* end confdefs.h. */
  3545. /* Override any gcc2 internal prototype to avoid an error. */
  3546. #ifdef __cplusplus
  3547. extern "C"
  3548. #endif
  3549. /* We use char because int might match the return type of a gcc2
  3550. builtin and then its argument prototype would still apply. */
  3551. char socket ();
  3552. int
  3553. main ()
  3554. {
  3555. socket ();
  3556. ;
  3557. return 0;
  3558. }
  3559. _ACEOF
  3560. rm -f conftest.$ac_objext conftest$ac_exeext
  3561. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3562. (eval $ac_link) 2>conftest.er1
  3563. ac_status=$?
  3564. grep -v '^ *+' conftest.er1 >conftest.err
  3565. rm -f conftest.er1
  3566. cat conftest.err >&5
  3567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3568. (exit $ac_status); } &&
  3569. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3570. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3571. (eval $ac_try) 2>&5
  3572. ac_status=$?
  3573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3574. (exit $ac_status); }; } &&
  3575. { ac_try='test -s conftest$ac_exeext'
  3576. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3577. (eval $ac_try) 2>&5
  3578. ac_status=$?
  3579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3580. (exit $ac_status); }; }; then
  3581. ac_cv_lib_socket_socket=yes
  3582. else
  3583. echo "$as_me: failed program was:" >&5
  3584. sed 's/^/| /' conftest.$ac_ext >&5
  3585. ac_cv_lib_socket_socket=no
  3586. fi
  3587. rm -f conftest.err conftest.$ac_objext \
  3588. conftest$ac_exeext conftest.$ac_ext
  3589. LIBS=$ac_check_lib_save_LIBS
  3590. fi
  3591. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  3592. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  3593. if test $ac_cv_lib_socket_socket = yes; then
  3594. cat >>confdefs.h <<_ACEOF
  3595. #define HAVE_LIBSOCKET 1
  3596. _ACEOF
  3597. LIBS="-lsocket $LIBS"
  3598. fi
  3599. echo "$as_me:$LINENO: checking for connect in -lnsl" >&5
  3600. echo $ECHO_N "checking for connect in -lnsl... $ECHO_C" >&6
  3601. if test "${ac_cv_lib_nsl_connect+set}" = set; then
  3602. echo $ECHO_N "(cached) $ECHO_C" >&6
  3603. else
  3604. ac_check_lib_save_LIBS=$LIBS
  3605. LIBS="-lnsl $LIBS"
  3606. cat >conftest.$ac_ext <<_ACEOF
  3607. /* confdefs.h. */
  3608. _ACEOF
  3609. cat confdefs.h >>conftest.$ac_ext
  3610. cat >>conftest.$ac_ext <<_ACEOF
  3611. /* end confdefs.h. */
  3612. /* Override any gcc2 internal prototype to avoid an error. */
  3613. #ifdef __cplusplus
  3614. extern "C"
  3615. #endif
  3616. /* We use char because int might match the return type of a gcc2
  3617. builtin and then its argument prototype would still apply. */
  3618. char connect ();
  3619. int
  3620. main ()
  3621. {
  3622. connect ();
  3623. ;
  3624. return 0;
  3625. }
  3626. _ACEOF
  3627. rm -f conftest.$ac_objext conftest$ac_exeext
  3628. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3629. (eval $ac_link) 2>conftest.er1
  3630. ac_status=$?
  3631. grep -v '^ *+' conftest.er1 >conftest.err
  3632. rm -f conftest.er1
  3633. cat conftest.err >&5
  3634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3635. (exit $ac_status); } &&
  3636. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3637. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3638. (eval $ac_try) 2>&5
  3639. ac_status=$?
  3640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3641. (exit $ac_status); }; } &&
  3642. { ac_try='test -s conftest$ac_exeext'
  3643. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3644. (eval $ac_try) 2>&5
  3645. ac_status=$?
  3646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3647. (exit $ac_status); }; }; then
  3648. ac_cv_lib_nsl_connect=yes
  3649. else
  3650. echo "$as_me: failed program was:" >&5
  3651. sed 's/^/| /' conftest.$ac_ext >&5
  3652. ac_cv_lib_nsl_connect=no
  3653. fi
  3654. rm -f conftest.err conftest.$ac_objext \
  3655. conftest$ac_exeext conftest.$ac_ext
  3656. LIBS=$ac_check_lib_save_LIBS
  3657. fi
  3658. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_connect" >&5
  3659. echo "${ECHO_T}$ac_cv_lib_nsl_connect" >&6
  3660. if test $ac_cv_lib_nsl_connect = yes; then
  3661. cat >>confdefs.h <<_ACEOF
  3662. #define HAVE_LIBNSL 1
  3663. _ACEOF
  3664. LIBS="-lnsl $LIBS"
  3665. fi
  3666. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  3667. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  3668. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  3669. echo $ECHO_N "(cached) $ECHO_C" >&6
  3670. else
  3671. ac_check_lib_save_LIBS=$LIBS
  3672. LIBS="-ldns $LIBS"
  3673. cat >conftest.$ac_ext <<_ACEOF
  3674. /* confdefs.h. */
  3675. _ACEOF
  3676. cat confdefs.h >>conftest.$ac_ext
  3677. cat >>conftest.$ac_ext <<_ACEOF
  3678. /* end confdefs.h. */
  3679. /* Override any gcc2 internal prototype to avoid an error. */
  3680. #ifdef __cplusplus
  3681. extern "C"
  3682. #endif
  3683. /* We use char because int might match the return type of a gcc2
  3684. builtin and then its argument prototype would still apply. */
  3685. char gethostbyname ();
  3686. int
  3687. main ()
  3688. {
  3689. gethostbyname ();
  3690. ;
  3691. return 0;
  3692. }
  3693. _ACEOF
  3694. rm -f conftest.$ac_objext conftest$ac_exeext
  3695. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3696. (eval $ac_link) 2>conftest.er1
  3697. ac_status=$?
  3698. grep -v '^ *+' conftest.er1 >conftest.err
  3699. rm -f conftest.er1
  3700. cat conftest.err >&5
  3701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3702. (exit $ac_status); } &&
  3703. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3704. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3705. (eval $ac_try) 2>&5
  3706. ac_status=$?
  3707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3708. (exit $ac_status); }; } &&
  3709. { ac_try='test -s conftest$ac_exeext'
  3710. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3711. (eval $ac_try) 2>&5
  3712. ac_status=$?
  3713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3714. (exit $ac_status); }; }; then
  3715. ac_cv_lib_dns_gethostbyname=yes
  3716. else
  3717. echo "$as_me: failed program was:" >&5
  3718. sed 's/^/| /' conftest.$ac_ext >&5
  3719. ac_cv_lib_dns_gethostbyname=no
  3720. fi
  3721. rm -f conftest.err conftest.$ac_objext \
  3722. conftest$ac_exeext conftest.$ac_ext
  3723. LIBS=$ac_check_lib_save_LIBS
  3724. fi
  3725. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  3726. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  3727. if test $ac_cv_lib_dns_gethostbyname = yes; then
  3728. cat >>confdefs.h <<_ACEOF
  3729. #define HAVE_LIBDNS 1
  3730. _ACEOF
  3731. LIBS="-ldns $LIBS"
  3732. fi
  3733. echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
  3734. echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
  3735. if test "${ac_cv_lib_z_gzopen+set}" = set; then
  3736. echo $ECHO_N "(cached) $ECHO_C" >&6
  3737. else
  3738. ac_check_lib_save_LIBS=$LIBS
  3739. LIBS="-lz $LIBS"
  3740. cat >conftest.$ac_ext <<_ACEOF
  3741. /* confdefs.h. */
  3742. _ACEOF
  3743. cat confdefs.h >>conftest.$ac_ext
  3744. cat >>conftest.$ac_ext <<_ACEOF
  3745. /* end confdefs.h. */
  3746. /* Override any gcc2 internal prototype to avoid an error. */
  3747. #ifdef __cplusplus
  3748. extern "C"
  3749. #endif
  3750. /* We use char because int might match the return type of a gcc2
  3751. builtin and then its argument prototype would still apply. */
  3752. char gzopen ();
  3753. int
  3754. main ()
  3755. {
  3756. gzopen ();
  3757. ;
  3758. return 0;
  3759. }
  3760. _ACEOF
  3761. rm -f conftest.$ac_objext conftest$ac_exeext
  3762. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3763. (eval $ac_link) 2>conftest.er1
  3764. ac_status=$?
  3765. grep -v '^ *+' conftest.er1 >conftest.err
  3766. rm -f conftest.er1
  3767. cat conftest.err >&5
  3768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3769. (exit $ac_status); } &&
  3770. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3771. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3772. (eval $ac_try) 2>&5
  3773. ac_status=$?
  3774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3775. (exit $ac_status); }; } &&
  3776. { ac_try='test -s conftest$ac_exeext'
  3777. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3778. (eval $ac_try) 2>&5
  3779. ac_status=$?
  3780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3781. (exit $ac_status); }; }; then
  3782. ac_cv_lib_z_gzopen=yes
  3783. else
  3784. echo "$as_me: failed program was:" >&5
  3785. sed 's/^/| /' conftest.$ac_ext >&5
  3786. ac_cv_lib_z_gzopen=no
  3787. fi
  3788. rm -f conftest.err conftest.$ac_objext \
  3789. conftest$ac_exeext conftest.$ac_ext
  3790. LIBS=$ac_check_lib_save_LIBS
  3791. fi
  3792. echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
  3793. echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
  3794. if test $ac_cv_lib_z_gzopen = yes; then
  3795. ZLIB="-lz"
  3796. fi
  3797. echo "$as_me:$LINENO: checking for SSL_accept in -lssl" >&5
  3798. echo $ECHO_N "checking for SSL_accept in -lssl... $ECHO_C" >&6
  3799. if test "${ac_cv_lib_ssl_SSL_accept+set}" = set; then
  3800. echo $ECHO_N "(cached) $ECHO_C" >&6
  3801. else
  3802. ac_check_lib_save_LIBS=$LIBS
  3803. LIBS="-lssl -lcrypto $LIBS"
  3804. cat >conftest.$ac_ext <<_ACEOF
  3805. /* confdefs.h. */
  3806. _ACEOF
  3807. cat confdefs.h >>conftest.$ac_ext
  3808. cat >>conftest.$ac_ext <<_ACEOF
  3809. /* end confdefs.h. */
  3810. /* Override any gcc2 internal prototype to avoid an error. */
  3811. #ifdef __cplusplus
  3812. extern "C"
  3813. #endif
  3814. /* We use char because int might match the return type of a gcc2
  3815. builtin and then its argument prototype would still apply. */
  3816. char SSL_accept ();
  3817. int
  3818. main ()
  3819. {
  3820. SSL_accept ();
  3821. ;
  3822. return 0;
  3823. }
  3824. _ACEOF
  3825. rm -f conftest.$ac_objext conftest$ac_exeext
  3826. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3827. (eval $ac_link) 2>conftest.er1
  3828. ac_status=$?
  3829. grep -v '^ *+' conftest.er1 >conftest.err
  3830. rm -f conftest.er1
  3831. cat conftest.err >&5
  3832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3833. (exit $ac_status); } &&
  3834. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3835. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3836. (eval $ac_try) 2>&5
  3837. ac_status=$?
  3838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3839. (exit $ac_status); }; } &&
  3840. { ac_try='test -s conftest$ac_exeext'
  3841. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3842. (eval $ac_try) 2>&5
  3843. ac_status=$?
  3844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3845. (exit $ac_status); }; }; then
  3846. ac_cv_lib_ssl_SSL_accept=yes
  3847. else
  3848. echo "$as_me: failed program was:" >&5
  3849. sed 's/^/| /' conftest.$ac_ext >&5
  3850. ac_cv_lib_ssl_SSL_accept=no
  3851. fi
  3852. rm -f conftest.err conftest.$ac_objext \
  3853. conftest$ac_exeext conftest.$ac_ext
  3854. LIBS=$ac_check_lib_save_LIBS
  3855. fi
  3856. echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_accept" >&5
  3857. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_accept" >&6
  3858. if test $ac_cv_lib_ssl_SSL_accept = yes; then
  3859. SSL="-lssl -lcrypto"
  3860. else
  3861. SSL=""
  3862. fi
  3863. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  3864. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  3865. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  3866. echo $ECHO_N "(cached) $ECHO_C" >&6
  3867. else
  3868. ac_check_lib_save_LIBS=$LIBS
  3869. LIBS="-ldl $LIBS"
  3870. cat >conftest.$ac_ext <<_ACEOF
  3871. /* confdefs.h. */
  3872. _ACEOF
  3873. cat confdefs.h >>conftest.$ac_ext
  3874. cat >>conftest.$ac_ext <<_ACEOF
  3875. /* end confdefs.h. */
  3876. /* Override any gcc2 internal prototype to avoid an error. */
  3877. #ifdef __cplusplus
  3878. extern "C"
  3879. #endif
  3880. /* We use char because int might match the return type of a gcc2
  3881. builtin and then its argument prototype would still apply. */
  3882. char dlopen ();
  3883. int
  3884. main ()
  3885. {
  3886. dlopen ();
  3887. ;
  3888. return 0;
  3889. }
  3890. _ACEOF
  3891. rm -f conftest.$ac_objext conftest$ac_exeext
  3892. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3893. (eval $ac_link) 2>conftest.er1
  3894. ac_status=$?
  3895. grep -v '^ *+' conftest.er1 >conftest.err
  3896. rm -f conftest.er1
  3897. cat conftest.err >&5
  3898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3899. (exit $ac_status); } &&
  3900. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3901. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3902. (eval $ac_try) 2>&5
  3903. ac_status=$?
  3904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3905. (exit $ac_status); }; } &&
  3906. { ac_try='test -s conftest$ac_exeext'
  3907. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3908. (eval $ac_try) 2>&5
  3909. ac_status=$?
  3910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3911. (exit $ac_status); }; }; then
  3912. ac_cv_lib_dl_dlopen=yes
  3913. else
  3914. echo "$as_me: failed program was:" >&5
  3915. sed 's/^/| /' conftest.$ac_ext >&5
  3916. ac_cv_lib_dl_dlopen=no
  3917. fi
  3918. rm -f conftest.err conftest.$ac_objext \
  3919. conftest$ac_exeext conftest.$ac_ext
  3920. LIBS=$ac_check_lib_save_LIBS
  3921. fi
  3922. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  3923. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  3924. if test $ac_cv_lib_dl_dlopen = yes; then
  3925. cat >>confdefs.h <<_ACEOF
  3926. #define HAVE_LIBDL 1
  3927. _ACEOF
  3928. LIBS="-ldl $LIBS"
  3929. fi
  3930. echo "$as_me:$LINENO: checking for tan in -lm" >&5
  3931. echo $ECHO_N "checking for tan in -lm... $ECHO_C" >&6
  3932. if test "${ac_cv_lib_m_tan+set}" = set; then
  3933. echo $ECHO_N "(cached) $ECHO_C" >&6
  3934. else
  3935. ac_check_lib_save_LIBS=$LIBS
  3936. LIBS="-lm $LIBS"
  3937. cat >conftest.$ac_ext <<_ACEOF
  3938. /* confdefs.h. */
  3939. _ACEOF
  3940. cat confdefs.h >>conftest.$ac_ext
  3941. cat >>conftest.$ac_ext <<_ACEOF
  3942. /* end confdefs.h. */
  3943. /* Override any gcc2 internal prototype to avoid an error. */
  3944. #ifdef __cplusplus
  3945. extern "C"
  3946. #endif
  3947. /* We use char because int might match the return type of a gcc2
  3948. builtin and then its argument prototype would still apply. */
  3949. char tan ();
  3950. int
  3951. main ()
  3952. {
  3953. tan ();
  3954. ;
  3955. return 0;
  3956. }
  3957. _ACEOF
  3958. rm -f conftest.$ac_objext conftest$ac_exeext
  3959. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3960. (eval $ac_link) 2>conftest.er1
  3961. ac_status=$?
  3962. grep -v '^ *+' conftest.er1 >conftest.err
  3963. rm -f conftest.er1
  3964. cat conftest.err >&5
  3965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3966. (exit $ac_status); } &&
  3967. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3968. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3969. (eval $ac_try) 2>&5
  3970. ac_status=$?
  3971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3972. (exit $ac_status); }; } &&
  3973. { ac_try='test -s conftest$ac_exeext'
  3974. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3975. (eval $ac_try) 2>&5
  3976. ac_status=$?
  3977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3978. (exit $ac_status); }; }; then
  3979. ac_cv_lib_m_tan=yes
  3980. else
  3981. echo "$as_me: failed program was:" >&5
  3982. sed 's/^/| /' conftest.$ac_ext >&5
  3983. ac_cv_lib_m_tan=no
  3984. fi
  3985. rm -f conftest.err conftest.$ac_objext \
  3986. conftest$ac_exeext conftest.$ac_ext
  3987. LIBS=$ac_check_lib_save_LIBS
  3988. fi
  3989. echo "$as_me:$LINENO: result: $ac_cv_lib_m_tan" >&5
  3990. echo "${ECHO_T}$ac_cv_lib_m_tan" >&6
  3991. if test $ac_cv_lib_m_tan = yes; then
  3992. EGG_MATH_LIB="-lm"
  3993. fi
  3994. # This is needed for Tcl libraries compiled with thread support
  3995. echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
  3996. echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
  3997. if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
  3998. echo $ECHO_N "(cached) $ECHO_C" >&6
  3999. else
  4000. ac_check_lib_save_LIBS=$LIBS
  4001. LIBS="-lpthread $LIBS"
  4002. cat >conftest.$ac_ext <<_ACEOF
  4003. /* confdefs.h. */
  4004. _ACEOF
  4005. cat confdefs.h >>conftest.$ac_ext
  4006. cat >>conftest.$ac_ext <<_ACEOF
  4007. /* end confdefs.h. */
  4008. /* Override any gcc2 internal prototype to avoid an error. */
  4009. #ifdef __cplusplus
  4010. extern "C"
  4011. #endif
  4012. /* We use char because int might match the return type of a gcc2
  4013. builtin and then its argument prototype would still apply. */
  4014. char pthread_mutex_init ();
  4015. int
  4016. main ()
  4017. {
  4018. pthread_mutex_init ();
  4019. ;
  4020. return 0;
  4021. }
  4022. _ACEOF
  4023. rm -f conftest.$ac_objext conftest$ac_exeext
  4024. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4025. (eval $ac_link) 2>conftest.er1
  4026. ac_status=$?
  4027. grep -v '^ *+' conftest.er1 >conftest.err
  4028. rm -f conftest.er1
  4029. cat conftest.err >&5
  4030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4031. (exit $ac_status); } &&
  4032. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4033. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4034. (eval $ac_try) 2>&5
  4035. ac_status=$?
  4036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4037. (exit $ac_status); }; } &&
  4038. { ac_try='test -s conftest$ac_exeext'
  4039. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4040. (eval $ac_try) 2>&5
  4041. ac_status=$?
  4042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4043. (exit $ac_status); }; }; then
  4044. ac_cv_lib_pthread_pthread_mutex_init=yes
  4045. else
  4046. echo "$as_me: failed program was:" >&5
  4047. sed 's/^/| /' conftest.$ac_ext >&5
  4048. ac_cv_lib_pthread_pthread_mutex_init=no
  4049. fi
  4050. rm -f conftest.err conftest.$ac_objext \
  4051. conftest$ac_exeext conftest.$ac_ext
  4052. LIBS=$ac_check_lib_save_LIBS
  4053. fi
  4054. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
  4055. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
  4056. if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
  4057. ac_cv_lib_pthread_pthread_mutex_init=yes
  4058. ac_cv_lib_pthread="-lpthread"
  4059. else
  4060. echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5
  4061. echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6
  4062. if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then
  4063. echo $ECHO_N "(cached) $ECHO_C" >&6
  4064. else
  4065. ac_check_lib_save_LIBS=$LIBS
  4066. LIBS="-lpthread $LIBS"
  4067. cat >conftest.$ac_ext <<_ACEOF
  4068. /* confdefs.h. */
  4069. _ACEOF
  4070. cat confdefs.h >>conftest.$ac_ext
  4071. cat >>conftest.$ac_ext <<_ACEOF
  4072. /* end confdefs.h. */
  4073. /* Override any gcc2 internal prototype to avoid an error. */
  4074. #ifdef __cplusplus
  4075. extern "C"
  4076. #endif
  4077. /* We use char because int might match the return type of a gcc2
  4078. builtin and then its argument prototype would still apply. */
  4079. char __pthread_mutex_init ();
  4080. int
  4081. main ()
  4082. {
  4083. __pthread_mutex_init ();
  4084. ;
  4085. return 0;
  4086. }
  4087. _ACEOF
  4088. rm -f conftest.$ac_objext conftest$ac_exeext
  4089. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4090. (eval $ac_link) 2>conftest.er1
  4091. ac_status=$?
  4092. grep -v '^ *+' conftest.er1 >conftest.err
  4093. rm -f conftest.er1
  4094. cat conftest.err >&5
  4095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4096. (exit $ac_status); } &&
  4097. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4098. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4099. (eval $ac_try) 2>&5
  4100. ac_status=$?
  4101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4102. (exit $ac_status); }; } &&
  4103. { ac_try='test -s conftest$ac_exeext'
  4104. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4105. (eval $ac_try) 2>&5
  4106. ac_status=$?
  4107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4108. (exit $ac_status); }; }; then
  4109. ac_cv_lib_pthread___pthread_mutex_init=yes
  4110. else
  4111. echo "$as_me: failed program was:" >&5
  4112. sed 's/^/| /' conftest.$ac_ext >&5
  4113. ac_cv_lib_pthread___pthread_mutex_init=no
  4114. fi
  4115. rm -f conftest.err conftest.$ac_objext \
  4116. conftest$ac_exeext conftest.$ac_ext
  4117. LIBS=$ac_check_lib_save_LIBS
  4118. fi
  4119. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
  4120. echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6
  4121. if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then
  4122. ac_cv_lib_pthread_pthread_mutex_init=yes
  4123. ac_cv_lib_pthread="-lpthread"
  4124. else
  4125. echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5
  4126. echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6
  4127. if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then
  4128. echo $ECHO_N "(cached) $ECHO_C" >&6
  4129. else
  4130. ac_check_lib_save_LIBS=$LIBS
  4131. LIBS="-lpthreads $LIBS"
  4132. cat >conftest.$ac_ext <<_ACEOF
  4133. /* confdefs.h. */
  4134. _ACEOF
  4135. cat confdefs.h >>conftest.$ac_ext
  4136. cat >>conftest.$ac_ext <<_ACEOF
  4137. /* end confdefs.h. */
  4138. /* Override any gcc2 internal prototype to avoid an error. */
  4139. #ifdef __cplusplus
  4140. extern "C"
  4141. #endif
  4142. /* We use char because int might match the return type of a gcc2
  4143. builtin and then its argument prototype would still apply. */
  4144. char pthread_mutex_init ();
  4145. int
  4146. main ()
  4147. {
  4148. pthread_mutex_init ();
  4149. ;
  4150. return 0;
  4151. }
  4152. _ACEOF
  4153. rm -f conftest.$ac_objext conftest$ac_exeext
  4154. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4155. (eval $ac_link) 2>conftest.er1
  4156. ac_status=$?
  4157. grep -v '^ *+' conftest.er1 >conftest.err
  4158. rm -f conftest.er1
  4159. cat conftest.err >&5
  4160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4161. (exit $ac_status); } &&
  4162. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4163. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4164. (eval $ac_try) 2>&5
  4165. ac_status=$?
  4166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4167. (exit $ac_status); }; } &&
  4168. { ac_try='test -s conftest$ac_exeext'
  4169. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4170. (eval $ac_try) 2>&5
  4171. ac_status=$?
  4172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4173. (exit $ac_status); }; }; then
  4174. ac_cv_lib_pthreads_pthread_mutex_init=yes
  4175. else
  4176. echo "$as_me: failed program was:" >&5
  4177. sed 's/^/| /' conftest.$ac_ext >&5
  4178. ac_cv_lib_pthreads_pthread_mutex_init=no
  4179. fi
  4180. rm -f conftest.err conftest.$ac_objext \
  4181. conftest$ac_exeext conftest.$ac_ext
  4182. LIBS=$ac_check_lib_save_LIBS
  4183. fi
  4184. echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
  4185. echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6
  4186. if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then
  4187. ac_cv_lib_pthread_pthread_mutex_init=yes
  4188. ac_cv_lib_pthread="-lpthreads"
  4189. else
  4190. echo "$as_me:$LINENO: checking for pthread_mutex_init" >&5
  4191. echo $ECHO_N "checking for pthread_mutex_init... $ECHO_C" >&6
  4192. if test "${ac_cv_func_pthread_mutex_init+set}" = set; then
  4193. echo $ECHO_N "(cached) $ECHO_C" >&6
  4194. else
  4195. cat >conftest.$ac_ext <<_ACEOF
  4196. /* confdefs.h. */
  4197. _ACEOF
  4198. cat confdefs.h >>conftest.$ac_ext
  4199. cat >>conftest.$ac_ext <<_ACEOF
  4200. /* end confdefs.h. */
  4201. /* Define pthread_mutex_init to an innocuous variant, in case <limits.h> declares pthread_mutex_init.
  4202. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4203. #define pthread_mutex_init innocuous_pthread_mutex_init
  4204. /* System header to define __stub macros and hopefully few prototypes,
  4205. which can conflict with char pthread_mutex_init (); below.
  4206. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4207. <limits.h> exists even on freestanding compilers. */
  4208. #ifdef __STDC__
  4209. # include <limits.h>
  4210. #else
  4211. # include <assert.h>
  4212. #endif
  4213. #undef pthread_mutex_init
  4214. /* Override any gcc2 internal prototype to avoid an error. */
  4215. #ifdef __cplusplus
  4216. extern "C"
  4217. {
  4218. #endif
  4219. /* We use char because int might match the return type of a gcc2
  4220. builtin and then its argument prototype would still apply. */
  4221. char pthread_mutex_init ();
  4222. /* The GNU C library defines this for functions which it implements
  4223. to always fail with ENOSYS. Some functions are actually named
  4224. something starting with __ and the normal name is an alias. */
  4225. #if defined (__stub_pthread_mutex_init) || defined (__stub___pthread_mutex_init)
  4226. choke me
  4227. #else
  4228. char (*f) () = pthread_mutex_init;
  4229. #endif
  4230. #ifdef __cplusplus
  4231. }
  4232. #endif
  4233. int
  4234. main ()
  4235. {
  4236. return f != pthread_mutex_init;
  4237. ;
  4238. return 0;
  4239. }
  4240. _ACEOF
  4241. rm -f conftest.$ac_objext conftest$ac_exeext
  4242. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4243. (eval $ac_link) 2>conftest.er1
  4244. ac_status=$?
  4245. grep -v '^ *+' conftest.er1 >conftest.err
  4246. rm -f conftest.er1
  4247. cat conftest.err >&5
  4248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4249. (exit $ac_status); } &&
  4250. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4251. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4252. (eval $ac_try) 2>&5
  4253. ac_status=$?
  4254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4255. (exit $ac_status); }; } &&
  4256. { ac_try='test -s conftest$ac_exeext'
  4257. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4258. (eval $ac_try) 2>&5
  4259. ac_status=$?
  4260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4261. (exit $ac_status); }; }; then
  4262. ac_cv_func_pthread_mutex_init=yes
  4263. else
  4264. echo "$as_me: failed program was:" >&5
  4265. sed 's/^/| /' conftest.$ac_ext >&5
  4266. ac_cv_func_pthread_mutex_init=no
  4267. fi
  4268. rm -f conftest.err conftest.$ac_objext \
  4269. conftest$ac_exeext conftest.$ac_ext
  4270. fi
  4271. echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_init" >&5
  4272. echo "${ECHO_T}$ac_cv_func_pthread_mutex_init" >&6
  4273. if test $ac_cv_func_pthread_mutex_init = yes; then
  4274. ac_cv_lib_pthread_pthread_mutex_init=yes
  4275. ac_cv_lib_pthread=""
  4276. else
  4277. ac_cv_lib_pthread_pthread_mutex_init=no
  4278. fi
  4279. fi
  4280. fi
  4281. fi
  4282. if test "$SUNOS" = "yes"
  4283. then
  4284. # For suns without yp or something like that
  4285. echo "$as_me:$LINENO: checking for main in -ldl" >&5
  4286. echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
  4287. if test "${ac_cv_lib_dl_main+set}" = set; then
  4288. echo $ECHO_N "(cached) $ECHO_C" >&6
  4289. else
  4290. ac_check_lib_save_LIBS=$LIBS
  4291. LIBS="-ldl $LIBS"
  4292. cat >conftest.$ac_ext <<_ACEOF
  4293. /* confdefs.h. */
  4294. _ACEOF
  4295. cat confdefs.h >>conftest.$ac_ext
  4296. cat >>conftest.$ac_ext <<_ACEOF
  4297. /* end confdefs.h. */
  4298. int
  4299. main ()
  4300. {
  4301. main ();
  4302. ;
  4303. return 0;
  4304. }
  4305. _ACEOF
  4306. rm -f conftest.$ac_objext conftest$ac_exeext
  4307. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4308. (eval $ac_link) 2>conftest.er1
  4309. ac_status=$?
  4310. grep -v '^ *+' conftest.er1 >conftest.err
  4311. rm -f conftest.er1
  4312. cat conftest.err >&5
  4313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4314. (exit $ac_status); } &&
  4315. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4316. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4317. (eval $ac_try) 2>&5
  4318. ac_status=$?
  4319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4320. (exit $ac_status); }; } &&
  4321. { ac_try='test -s conftest$ac_exeext'
  4322. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4323. (eval $ac_try) 2>&5
  4324. ac_status=$?
  4325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4326. (exit $ac_status); }; }; then
  4327. ac_cv_lib_dl_main=yes
  4328. else
  4329. echo "$as_me: failed program was:" >&5
  4330. sed 's/^/| /' conftest.$ac_ext >&5
  4331. ac_cv_lib_dl_main=no
  4332. fi
  4333. rm -f conftest.err conftest.$ac_objext \
  4334. conftest$ac_exeext conftest.$ac_ext
  4335. LIBS=$ac_check_lib_save_LIBS
  4336. fi
  4337. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
  4338. echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
  4339. if test $ac_cv_lib_dl_main = yes; then
  4340. cat >>confdefs.h <<_ACEOF
  4341. #define HAVE_LIBDL 1
  4342. _ACEOF
  4343. LIBS="-ldl $LIBS"
  4344. fi
  4345. else
  4346. if test "$HPUX" = "yes"
  4347. then
  4348. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  4349. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  4350. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  4351. echo $ECHO_N "(cached) $ECHO_C" >&6
  4352. else
  4353. ac_check_lib_save_LIBS=$LIBS
  4354. LIBS="-ldld $LIBS"
  4355. cat >conftest.$ac_ext <<_ACEOF
  4356. /* confdefs.h. */
  4357. _ACEOF
  4358. cat confdefs.h >>conftest.$ac_ext
  4359. cat >>conftest.$ac_ext <<_ACEOF
  4360. /* end confdefs.h. */
  4361. /* Override any gcc2 internal prototype to avoid an error. */
  4362. #ifdef __cplusplus
  4363. extern "C"
  4364. #endif
  4365. /* We use char because int might match the return type of a gcc2
  4366. builtin and then its argument prototype would still apply. */
  4367. char shl_load ();
  4368. int
  4369. main ()
  4370. {
  4371. shl_load ();
  4372. ;
  4373. return 0;
  4374. }
  4375. _ACEOF
  4376. rm -f conftest.$ac_objext conftest$ac_exeext
  4377. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4378. (eval $ac_link) 2>conftest.er1
  4379. ac_status=$?
  4380. grep -v '^ *+' conftest.er1 >conftest.err
  4381. rm -f conftest.er1
  4382. cat conftest.err >&5
  4383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4384. (exit $ac_status); } &&
  4385. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4386. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4387. (eval $ac_try) 2>&5
  4388. ac_status=$?
  4389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4390. (exit $ac_status); }; } &&
  4391. { ac_try='test -s conftest$ac_exeext'
  4392. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4393. (eval $ac_try) 2>&5
  4394. ac_status=$?
  4395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4396. (exit $ac_status); }; }; then
  4397. ac_cv_lib_dld_shl_load=yes
  4398. else
  4399. echo "$as_me: failed program was:" >&5
  4400. sed 's/^/| /' conftest.$ac_ext >&5
  4401. ac_cv_lib_dld_shl_load=no
  4402. fi
  4403. rm -f conftest.err conftest.$ac_objext \
  4404. conftest$ac_exeext conftest.$ac_ext
  4405. LIBS=$ac_check_lib_save_LIBS
  4406. fi
  4407. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  4408. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  4409. if test $ac_cv_lib_dld_shl_load = yes; then
  4410. cat >>confdefs.h <<_ACEOF
  4411. #define HAVE_LIBDLD 1
  4412. _ACEOF
  4413. LIBS="-ldld $LIBS"
  4414. fi
  4415. fi
  4416. fi
  4417. fi
  4418. # Checks for header files
  4419. ac_header_dirent=no
  4420. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4421. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4422. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4423. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4424. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4425. echo $ECHO_N "(cached) $ECHO_C" >&6
  4426. else
  4427. cat >conftest.$ac_ext <<_ACEOF
  4428. /* confdefs.h. */
  4429. _ACEOF
  4430. cat confdefs.h >>conftest.$ac_ext
  4431. cat >>conftest.$ac_ext <<_ACEOF
  4432. /* end confdefs.h. */
  4433. #include <sys/types.h>
  4434. #include <$ac_hdr>
  4435. int
  4436. main ()
  4437. {
  4438. if ((DIR *) 0)
  4439. return 0;
  4440. ;
  4441. return 0;
  4442. }
  4443. _ACEOF
  4444. rm -f conftest.$ac_objext
  4445. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4446. (eval $ac_compile) 2>conftest.er1
  4447. ac_status=$?
  4448. grep -v '^ *+' conftest.er1 >conftest.err
  4449. rm -f conftest.er1
  4450. cat conftest.err >&5
  4451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4452. (exit $ac_status); } &&
  4453. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4454. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4455. (eval $ac_try) 2>&5
  4456. ac_status=$?
  4457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4458. (exit $ac_status); }; } &&
  4459. { ac_try='test -s conftest.$ac_objext'
  4460. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4461. (eval $ac_try) 2>&5
  4462. ac_status=$?
  4463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4464. (exit $ac_status); }; }; then
  4465. eval "$as_ac_Header=yes"
  4466. else
  4467. echo "$as_me: failed program was:" >&5
  4468. sed 's/^/| /' conftest.$ac_ext >&5
  4469. eval "$as_ac_Header=no"
  4470. fi
  4471. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4472. fi
  4473. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4474. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4475. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4476. cat >>confdefs.h <<_ACEOF
  4477. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4478. _ACEOF
  4479. ac_header_dirent=$ac_hdr; break
  4480. fi
  4481. done
  4482. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4483. if test $ac_header_dirent = dirent.h; then
  4484. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4485. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4486. if test "${ac_cv_search_opendir+set}" = set; then
  4487. echo $ECHO_N "(cached) $ECHO_C" >&6
  4488. else
  4489. ac_func_search_save_LIBS=$LIBS
  4490. ac_cv_search_opendir=no
  4491. cat >conftest.$ac_ext <<_ACEOF
  4492. /* confdefs.h. */
  4493. _ACEOF
  4494. cat confdefs.h >>conftest.$ac_ext
  4495. cat >>conftest.$ac_ext <<_ACEOF
  4496. /* end confdefs.h. */
  4497. /* Override any gcc2 internal prototype to avoid an error. */
  4498. #ifdef __cplusplus
  4499. extern "C"
  4500. #endif
  4501. /* We use char because int might match the return type of a gcc2
  4502. builtin and then its argument prototype would still apply. */
  4503. char opendir ();
  4504. int
  4505. main ()
  4506. {
  4507. opendir ();
  4508. ;
  4509. return 0;
  4510. }
  4511. _ACEOF
  4512. rm -f conftest.$ac_objext conftest$ac_exeext
  4513. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4514. (eval $ac_link) 2>conftest.er1
  4515. ac_status=$?
  4516. grep -v '^ *+' conftest.er1 >conftest.err
  4517. rm -f conftest.er1
  4518. cat conftest.err >&5
  4519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4520. (exit $ac_status); } &&
  4521. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4522. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4523. (eval $ac_try) 2>&5
  4524. ac_status=$?
  4525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4526. (exit $ac_status); }; } &&
  4527. { ac_try='test -s conftest$ac_exeext'
  4528. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4529. (eval $ac_try) 2>&5
  4530. ac_status=$?
  4531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4532. (exit $ac_status); }; }; then
  4533. ac_cv_search_opendir="none required"
  4534. else
  4535. echo "$as_me: failed program was:" >&5
  4536. sed 's/^/| /' conftest.$ac_ext >&5
  4537. fi
  4538. rm -f conftest.err conftest.$ac_objext \
  4539. conftest$ac_exeext conftest.$ac_ext
  4540. if test "$ac_cv_search_opendir" = no; then
  4541. for ac_lib in dir; do
  4542. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4543. cat >conftest.$ac_ext <<_ACEOF
  4544. /* confdefs.h. */
  4545. _ACEOF
  4546. cat confdefs.h >>conftest.$ac_ext
  4547. cat >>conftest.$ac_ext <<_ACEOF
  4548. /* end confdefs.h. */
  4549. /* Override any gcc2 internal prototype to avoid an error. */
  4550. #ifdef __cplusplus
  4551. extern "C"
  4552. #endif
  4553. /* We use char because int might match the return type of a gcc2
  4554. builtin and then its argument prototype would still apply. */
  4555. char opendir ();
  4556. int
  4557. main ()
  4558. {
  4559. opendir ();
  4560. ;
  4561. return 0;
  4562. }
  4563. _ACEOF
  4564. rm -f conftest.$ac_objext conftest$ac_exeext
  4565. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4566. (eval $ac_link) 2>conftest.er1
  4567. ac_status=$?
  4568. grep -v '^ *+' conftest.er1 >conftest.err
  4569. rm -f conftest.er1
  4570. cat conftest.err >&5
  4571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4572. (exit $ac_status); } &&
  4573. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4574. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4575. (eval $ac_try) 2>&5
  4576. ac_status=$?
  4577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4578. (exit $ac_status); }; } &&
  4579. { ac_try='test -s conftest$ac_exeext'
  4580. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4581. (eval $ac_try) 2>&5
  4582. ac_status=$?
  4583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4584. (exit $ac_status); }; }; then
  4585. ac_cv_search_opendir="-l$ac_lib"
  4586. break
  4587. else
  4588. echo "$as_me: failed program was:" >&5
  4589. sed 's/^/| /' conftest.$ac_ext >&5
  4590. fi
  4591. rm -f conftest.err conftest.$ac_objext \
  4592. conftest$ac_exeext conftest.$ac_ext
  4593. done
  4594. fi
  4595. LIBS=$ac_func_search_save_LIBS
  4596. fi
  4597. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4598. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4599. if test "$ac_cv_search_opendir" != no; then
  4600. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4601. fi
  4602. else
  4603. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4604. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4605. if test "${ac_cv_search_opendir+set}" = set; then
  4606. echo $ECHO_N "(cached) $ECHO_C" >&6
  4607. else
  4608. ac_func_search_save_LIBS=$LIBS
  4609. ac_cv_search_opendir=no
  4610. cat >conftest.$ac_ext <<_ACEOF
  4611. /* confdefs.h. */
  4612. _ACEOF
  4613. cat confdefs.h >>conftest.$ac_ext
  4614. cat >>conftest.$ac_ext <<_ACEOF
  4615. /* end confdefs.h. */
  4616. /* Override any gcc2 internal prototype to avoid an error. */
  4617. #ifdef __cplusplus
  4618. extern "C"
  4619. #endif
  4620. /* We use char because int might match the return type of a gcc2
  4621. builtin and then its argument prototype would still apply. */
  4622. char opendir ();
  4623. int
  4624. main ()
  4625. {
  4626. opendir ();
  4627. ;
  4628. return 0;
  4629. }
  4630. _ACEOF
  4631. rm -f conftest.$ac_objext conftest$ac_exeext
  4632. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4633. (eval $ac_link) 2>conftest.er1
  4634. ac_status=$?
  4635. grep -v '^ *+' conftest.er1 >conftest.err
  4636. rm -f conftest.er1
  4637. cat conftest.err >&5
  4638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4639. (exit $ac_status); } &&
  4640. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4641. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4642. (eval $ac_try) 2>&5
  4643. ac_status=$?
  4644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4645. (exit $ac_status); }; } &&
  4646. { ac_try='test -s conftest$ac_exeext'
  4647. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4648. (eval $ac_try) 2>&5
  4649. ac_status=$?
  4650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4651. (exit $ac_status); }; }; then
  4652. ac_cv_search_opendir="none required"
  4653. else
  4654. echo "$as_me: failed program was:" >&5
  4655. sed 's/^/| /' conftest.$ac_ext >&5
  4656. fi
  4657. rm -f conftest.err conftest.$ac_objext \
  4658. conftest$ac_exeext conftest.$ac_ext
  4659. if test "$ac_cv_search_opendir" = no; then
  4660. for ac_lib in x; do
  4661. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4662. cat >conftest.$ac_ext <<_ACEOF
  4663. /* confdefs.h. */
  4664. _ACEOF
  4665. cat confdefs.h >>conftest.$ac_ext
  4666. cat >>conftest.$ac_ext <<_ACEOF
  4667. /* end confdefs.h. */
  4668. /* Override any gcc2 internal prototype to avoid an error. */
  4669. #ifdef __cplusplus
  4670. extern "C"
  4671. #endif
  4672. /* We use char because int might match the return type of a gcc2
  4673. builtin and then its argument prototype would still apply. */
  4674. char opendir ();
  4675. int
  4676. main ()
  4677. {
  4678. opendir ();
  4679. ;
  4680. return 0;
  4681. }
  4682. _ACEOF
  4683. rm -f conftest.$ac_objext conftest$ac_exeext
  4684. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4685. (eval $ac_link) 2>conftest.er1
  4686. ac_status=$?
  4687. grep -v '^ *+' conftest.er1 >conftest.err
  4688. rm -f conftest.er1
  4689. cat conftest.err >&5
  4690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4691. (exit $ac_status); } &&
  4692. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4693. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4694. (eval $ac_try) 2>&5
  4695. ac_status=$?
  4696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4697. (exit $ac_status); }; } &&
  4698. { ac_try='test -s conftest$ac_exeext'
  4699. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4700. (eval $ac_try) 2>&5
  4701. ac_status=$?
  4702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4703. (exit $ac_status); }; }; then
  4704. ac_cv_search_opendir="-l$ac_lib"
  4705. break
  4706. else
  4707. echo "$as_me: failed program was:" >&5
  4708. sed 's/^/| /' conftest.$ac_ext >&5
  4709. fi
  4710. rm -f conftest.err conftest.$ac_objext \
  4711. conftest$ac_exeext conftest.$ac_ext
  4712. done
  4713. fi
  4714. LIBS=$ac_func_search_save_LIBS
  4715. fi
  4716. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4717. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4718. if test "$ac_cv_search_opendir" != no; then
  4719. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4720. fi
  4721. fi
  4722. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4723. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  4724. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4725. echo $ECHO_N "(cached) $ECHO_C" >&6
  4726. else
  4727. cat >conftest.$ac_ext <<_ACEOF
  4728. /* confdefs.h. */
  4729. _ACEOF
  4730. cat confdefs.h >>conftest.$ac_ext
  4731. cat >>conftest.$ac_ext <<_ACEOF
  4732. /* end confdefs.h. */
  4733. #include <sys/types.h>
  4734. #include <sys/wait.h>
  4735. #ifndef WEXITSTATUS
  4736. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  4737. #endif
  4738. #ifndef WIFEXITED
  4739. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4740. #endif
  4741. int
  4742. main ()
  4743. {
  4744. int s;
  4745. wait (&s);
  4746. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4747. ;
  4748. return 0;
  4749. }
  4750. _ACEOF
  4751. rm -f conftest.$ac_objext
  4752. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4753. (eval $ac_compile) 2>conftest.er1
  4754. ac_status=$?
  4755. grep -v '^ *+' conftest.er1 >conftest.err
  4756. rm -f conftest.er1
  4757. cat conftest.err >&5
  4758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4759. (exit $ac_status); } &&
  4760. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4761. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4762. (eval $ac_try) 2>&5
  4763. ac_status=$?
  4764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4765. (exit $ac_status); }; } &&
  4766. { ac_try='test -s conftest.$ac_objext'
  4767. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4768. (eval $ac_try) 2>&5
  4769. ac_status=$?
  4770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4771. (exit $ac_status); }; }; then
  4772. ac_cv_header_sys_wait_h=yes
  4773. else
  4774. echo "$as_me: failed program was:" >&5
  4775. sed 's/^/| /' conftest.$ac_ext >&5
  4776. ac_cv_header_sys_wait_h=no
  4777. fi
  4778. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4779. fi
  4780. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  4781. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  4782. if test $ac_cv_header_sys_wait_h = yes; then
  4783. cat >>confdefs.h <<\_ACEOF
  4784. #define HAVE_SYS_WAIT_H 1
  4785. _ACEOF
  4786. fi
  4787. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4788. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  4789. if test "${ac_cv_header_time+set}" = set; then
  4790. echo $ECHO_N "(cached) $ECHO_C" >&6
  4791. else
  4792. cat >conftest.$ac_ext <<_ACEOF
  4793. /* confdefs.h. */
  4794. _ACEOF
  4795. cat confdefs.h >>conftest.$ac_ext
  4796. cat >>conftest.$ac_ext <<_ACEOF
  4797. /* end confdefs.h. */
  4798. #include <sys/types.h>
  4799. #include <sys/time.h>
  4800. #include <time.h>
  4801. int
  4802. main ()
  4803. {
  4804. if ((struct tm *) 0)
  4805. return 0;
  4806. ;
  4807. return 0;
  4808. }
  4809. _ACEOF
  4810. rm -f conftest.$ac_objext
  4811. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4812. (eval $ac_compile) 2>conftest.er1
  4813. ac_status=$?
  4814. grep -v '^ *+' conftest.er1 >conftest.err
  4815. rm -f conftest.er1
  4816. cat conftest.err >&5
  4817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4818. (exit $ac_status); } &&
  4819. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  4825. { ac_try='test -s conftest.$ac_objext'
  4826. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4827. (eval $ac_try) 2>&5
  4828. ac_status=$?
  4829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4830. (exit $ac_status); }; }; then
  4831. ac_cv_header_time=yes
  4832. else
  4833. echo "$as_me: failed program was:" >&5
  4834. sed 's/^/| /' conftest.$ac_ext >&5
  4835. ac_cv_header_time=no
  4836. fi
  4837. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4838. fi
  4839. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4840. echo "${ECHO_T}$ac_cv_header_time" >&6
  4841. if test $ac_cv_header_time = yes; then
  4842. cat >>confdefs.h <<\_ACEOF
  4843. #define TIME_WITH_SYS_TIME 1
  4844. _ACEOF
  4845. fi
  4846. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  4847. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  4848. if test "${ac_cv_header_stat_broken+set}" = set; then
  4849. echo $ECHO_N "(cached) $ECHO_C" >&6
  4850. else
  4851. cat >conftest.$ac_ext <<_ACEOF
  4852. /* confdefs.h. */
  4853. _ACEOF
  4854. cat confdefs.h >>conftest.$ac_ext
  4855. cat >>conftest.$ac_ext <<_ACEOF
  4856. /* end confdefs.h. */
  4857. #include <sys/types.h>
  4858. #include <sys/stat.h>
  4859. #if defined(S_ISBLK) && defined(S_IFDIR)
  4860. # if S_ISBLK (S_IFDIR)
  4861. You lose.
  4862. # endif
  4863. #endif
  4864. #if defined(S_ISBLK) && defined(S_IFCHR)
  4865. # if S_ISBLK (S_IFCHR)
  4866. You lose.
  4867. # endif
  4868. #endif
  4869. #if defined(S_ISLNK) && defined(S_IFREG)
  4870. # if S_ISLNK (S_IFREG)
  4871. You lose.
  4872. # endif
  4873. #endif
  4874. #if defined(S_ISSOCK) && defined(S_IFREG)
  4875. # if S_ISSOCK (S_IFREG)
  4876. You lose.
  4877. # endif
  4878. #endif
  4879. _ACEOF
  4880. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4881. $EGREP "You lose" >/dev/null 2>&1; then
  4882. ac_cv_header_stat_broken=yes
  4883. else
  4884. ac_cv_header_stat_broken=no
  4885. fi
  4886. rm -f conftest*
  4887. fi
  4888. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  4889. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  4890. if test $ac_cv_header_stat_broken = yes; then
  4891. cat >>confdefs.h <<\_ACEOF
  4892. #define STAT_MACROS_BROKEN 1
  4893. _ACEOF
  4894. fi
  4895. #checkpoint
  4896. cat >confcache <<\_ACEOF
  4897. # This file is a shell script that caches the results of configure
  4898. # tests run on this system so they can be shared between configure
  4899. # scripts and configure runs, see configure's option --config-cache.
  4900. # It is not useful on other systems. If it contains results you don't
  4901. # want to keep, you may remove or edit it.
  4902. #
  4903. # config.status only pays attention to the cache file if you give it
  4904. # the --recheck option to rerun configure.
  4905. #
  4906. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4907. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4908. # following values.
  4909. _ACEOF
  4910. # The following way of writing the cache mishandles newlines in values,
  4911. # but we know of no workaround that is simple, portable, and efficient.
  4912. # So, don't put newlines in cache variables' values.
  4913. # Ultrix sh set writes to stderr and can't be redirected directly,
  4914. # and sets the high bit in the cache file unless we assign to the vars.
  4915. {
  4916. (set) 2>&1 |
  4917. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4918. *ac_space=\ *)
  4919. # `set' does not quote correctly, so add quotes (double-quote
  4920. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4921. sed -n \
  4922. "s/'/'\\\\''/g;
  4923. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4924. ;;
  4925. *)
  4926. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4927. sed -n \
  4928. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4929. ;;
  4930. esac;
  4931. } |
  4932. sed '
  4933. t clear
  4934. : clear
  4935. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4936. t end
  4937. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4938. : end' >>confcache
  4939. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4940. if test -w $cache_file; then
  4941. test "x$cache_file" != "x/dev/null"
  4942. cat confcache >$cache_file
  4943. else
  4944. echo "not updating unwritable cache $cache_file"
  4945. fi
  4946. fi
  4947. rm -f confcache
  4948. for ac_header in arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  4949. do
  4950. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4951. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4952. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4953. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4954. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4955. echo $ECHO_N "(cached) $ECHO_C" >&6
  4956. fi
  4957. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4958. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4959. else
  4960. # Is the header compilable?
  4961. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4962. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4963. cat >conftest.$ac_ext <<_ACEOF
  4964. /* confdefs.h. */
  4965. _ACEOF
  4966. cat confdefs.h >>conftest.$ac_ext
  4967. cat >>conftest.$ac_ext <<_ACEOF
  4968. /* end confdefs.h. */
  4969. $ac_includes_default
  4970. #include <$ac_header>
  4971. _ACEOF
  4972. rm -f conftest.$ac_objext
  4973. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4974. (eval $ac_compile) 2>conftest.er1
  4975. ac_status=$?
  4976. grep -v '^ *+' conftest.er1 >conftest.err
  4977. rm -f conftest.er1
  4978. cat conftest.err >&5
  4979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4980. (exit $ac_status); } &&
  4981. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4982. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4983. (eval $ac_try) 2>&5
  4984. ac_status=$?
  4985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4986. (exit $ac_status); }; } &&
  4987. { ac_try='test -s conftest.$ac_objext'
  4988. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4989. (eval $ac_try) 2>&5
  4990. ac_status=$?
  4991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4992. (exit $ac_status); }; }; then
  4993. ac_header_compiler=yes
  4994. else
  4995. echo "$as_me: failed program was:" >&5
  4996. sed 's/^/| /' conftest.$ac_ext >&5
  4997. ac_header_compiler=no
  4998. fi
  4999. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5000. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5001. echo "${ECHO_T}$ac_header_compiler" >&6
  5002. # Is the header present?
  5003. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5004. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5005. cat >conftest.$ac_ext <<_ACEOF
  5006. /* confdefs.h. */
  5007. _ACEOF
  5008. cat confdefs.h >>conftest.$ac_ext
  5009. cat >>conftest.$ac_ext <<_ACEOF
  5010. /* end confdefs.h. */
  5011. #include <$ac_header>
  5012. _ACEOF
  5013. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5014. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5015. ac_status=$?
  5016. grep -v '^ *+' conftest.er1 >conftest.err
  5017. rm -f conftest.er1
  5018. cat conftest.err >&5
  5019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5020. (exit $ac_status); } >/dev/null; then
  5021. if test -s conftest.err; then
  5022. ac_cpp_err=$ac_c_preproc_warn_flag
  5023. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5024. else
  5025. ac_cpp_err=
  5026. fi
  5027. else
  5028. ac_cpp_err=yes
  5029. fi
  5030. if test -z "$ac_cpp_err"; then
  5031. ac_header_preproc=yes
  5032. else
  5033. echo "$as_me: failed program was:" >&5
  5034. sed 's/^/| /' conftest.$ac_ext >&5
  5035. ac_header_preproc=no
  5036. fi
  5037. rm -f conftest.err conftest.$ac_ext
  5038. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5039. echo "${ECHO_T}$ac_header_preproc" >&6
  5040. # So? What about this header?
  5041. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5042. yes:no: )
  5043. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5044. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5045. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5046. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5047. ac_header_preproc=yes
  5048. ;;
  5049. no:yes:* )
  5050. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5051. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5052. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5053. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5054. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5055. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5056. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5057. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5058. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5059. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5060. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5061. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5062. (
  5063. cat <<\_ASBOX
  5064. ## ------------------------------------------ ##
  5065. ## Report this to the AC_PACKAGE_NAME lists. ##
  5066. ## ------------------------------------------ ##
  5067. _ASBOX
  5068. ) |
  5069. sed "s/^/$as_me: WARNING: /" >&2
  5070. ;;
  5071. esac
  5072. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5073. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5074. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5075. echo $ECHO_N "(cached) $ECHO_C" >&6
  5076. else
  5077. eval "$as_ac_Header=\$ac_header_preproc"
  5078. fi
  5079. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5080. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5081. fi
  5082. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5083. cat >>confdefs.h <<_ACEOF
  5084. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5085. _ACEOF
  5086. fi
  5087. done
  5088. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5089. do
  5090. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5091. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5092. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5093. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5094. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5095. echo $ECHO_N "(cached) $ECHO_C" >&6
  5096. fi
  5097. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5098. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5099. else
  5100. # Is the header compilable?
  5101. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5102. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5103. cat >conftest.$ac_ext <<_ACEOF
  5104. /* confdefs.h. */
  5105. _ACEOF
  5106. cat confdefs.h >>conftest.$ac_ext
  5107. cat >>conftest.$ac_ext <<_ACEOF
  5108. /* end confdefs.h. */
  5109. $ac_includes_default
  5110. #include <$ac_header>
  5111. _ACEOF
  5112. rm -f conftest.$ac_objext
  5113. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5114. (eval $ac_compile) 2>conftest.er1
  5115. ac_status=$?
  5116. grep -v '^ *+' conftest.er1 >conftest.err
  5117. rm -f conftest.er1
  5118. cat conftest.err >&5
  5119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5120. (exit $ac_status); } &&
  5121. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5122. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5123. (eval $ac_try) 2>&5
  5124. ac_status=$?
  5125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5126. (exit $ac_status); }; } &&
  5127. { ac_try='test -s conftest.$ac_objext'
  5128. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5129. (eval $ac_try) 2>&5
  5130. ac_status=$?
  5131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5132. (exit $ac_status); }; }; then
  5133. ac_header_compiler=yes
  5134. else
  5135. echo "$as_me: failed program was:" >&5
  5136. sed 's/^/| /' conftest.$ac_ext >&5
  5137. ac_header_compiler=no
  5138. fi
  5139. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5140. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5141. echo "${ECHO_T}$ac_header_compiler" >&6
  5142. # Is the header present?
  5143. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5144. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5145. cat >conftest.$ac_ext <<_ACEOF
  5146. /* confdefs.h. */
  5147. _ACEOF
  5148. cat confdefs.h >>conftest.$ac_ext
  5149. cat >>conftest.$ac_ext <<_ACEOF
  5150. /* end confdefs.h. */
  5151. #include <$ac_header>
  5152. _ACEOF
  5153. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5154. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5155. ac_status=$?
  5156. grep -v '^ *+' conftest.er1 >conftest.err
  5157. rm -f conftest.er1
  5158. cat conftest.err >&5
  5159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5160. (exit $ac_status); } >/dev/null; then
  5161. if test -s conftest.err; then
  5162. ac_cpp_err=$ac_c_preproc_warn_flag
  5163. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5164. else
  5165. ac_cpp_err=
  5166. fi
  5167. else
  5168. ac_cpp_err=yes
  5169. fi
  5170. if test -z "$ac_cpp_err"; then
  5171. ac_header_preproc=yes
  5172. else
  5173. echo "$as_me: failed program was:" >&5
  5174. sed 's/^/| /' conftest.$ac_ext >&5
  5175. ac_header_preproc=no
  5176. fi
  5177. rm -f conftest.err conftest.$ac_ext
  5178. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5179. echo "${ECHO_T}$ac_header_preproc" >&6
  5180. # So? What about this header?
  5181. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5182. yes:no: )
  5183. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5184. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5185. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5186. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5187. ac_header_preproc=yes
  5188. ;;
  5189. no:yes:* )
  5190. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5191. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5192. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5193. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5194. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5195. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5196. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5197. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5198. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5199. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5200. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5201. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5202. (
  5203. cat <<\_ASBOX
  5204. ## ------------------------------------------ ##
  5205. ## Report this to the AC_PACKAGE_NAME lists. ##
  5206. ## ------------------------------------------ ##
  5207. _ASBOX
  5208. ) |
  5209. sed "s/^/$as_me: WARNING: /" >&2
  5210. ;;
  5211. esac
  5212. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5213. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5214. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5215. echo $ECHO_N "(cached) $ECHO_C" >&6
  5216. else
  5217. eval "$as_ac_Header=\$ac_header_preproc"
  5218. fi
  5219. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5220. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5221. fi
  5222. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5223. cat >>confdefs.h <<_ACEOF
  5224. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5225. _ACEOF
  5226. fi
  5227. done
  5228. #checkpoint
  5229. cat >confcache <<\_ACEOF
  5230. # This file is a shell script that caches the results of configure
  5231. # tests run on this system so they can be shared between configure
  5232. # scripts and configure runs, see configure's option --config-cache.
  5233. # It is not useful on other systems. If it contains results you don't
  5234. # want to keep, you may remove or edit it.
  5235. #
  5236. # config.status only pays attention to the cache file if you give it
  5237. # the --recheck option to rerun configure.
  5238. #
  5239. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5240. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5241. # following values.
  5242. _ACEOF
  5243. # The following way of writing the cache mishandles newlines in values,
  5244. # but we know of no workaround that is simple, portable, and efficient.
  5245. # So, don't put newlines in cache variables' values.
  5246. # Ultrix sh set writes to stderr and can't be redirected directly,
  5247. # and sets the high bit in the cache file unless we assign to the vars.
  5248. {
  5249. (set) 2>&1 |
  5250. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5251. *ac_space=\ *)
  5252. # `set' does not quote correctly, so add quotes (double-quote
  5253. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5254. sed -n \
  5255. "s/'/'\\\\''/g;
  5256. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5257. ;;
  5258. *)
  5259. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5260. sed -n \
  5261. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5262. ;;
  5263. esac;
  5264. } |
  5265. sed '
  5266. t clear
  5267. : clear
  5268. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5269. t end
  5270. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5271. : end' >>confcache
  5272. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5273. if test -w $cache_file; then
  5274. test "x$cache_file" != "x/dev/null"
  5275. cat confcache >$cache_file
  5276. else
  5277. echo "not updating unwritable cache $cache_file"
  5278. fi
  5279. fi
  5280. rm -f confcache
  5281. for ac_header in openssl/ssl.h openssl/crypto.h
  5282. do
  5283. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5284. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5285. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5286. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5287. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5288. echo $ECHO_N "(cached) $ECHO_C" >&6
  5289. fi
  5290. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5291. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5292. else
  5293. # Is the header compilable?
  5294. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5295. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5296. cat >conftest.$ac_ext <<_ACEOF
  5297. /* confdefs.h. */
  5298. _ACEOF
  5299. cat confdefs.h >>conftest.$ac_ext
  5300. cat >>conftest.$ac_ext <<_ACEOF
  5301. /* end confdefs.h. */
  5302. $ac_includes_default
  5303. #include <$ac_header>
  5304. _ACEOF
  5305. rm -f conftest.$ac_objext
  5306. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5307. (eval $ac_compile) 2>conftest.er1
  5308. ac_status=$?
  5309. grep -v '^ *+' conftest.er1 >conftest.err
  5310. rm -f conftest.er1
  5311. cat conftest.err >&5
  5312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5313. (exit $ac_status); } &&
  5314. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5315. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5316. (eval $ac_try) 2>&5
  5317. ac_status=$?
  5318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5319. (exit $ac_status); }; } &&
  5320. { ac_try='test -s conftest.$ac_objext'
  5321. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5322. (eval $ac_try) 2>&5
  5323. ac_status=$?
  5324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5325. (exit $ac_status); }; }; then
  5326. ac_header_compiler=yes
  5327. else
  5328. echo "$as_me: failed program was:" >&5
  5329. sed 's/^/| /' conftest.$ac_ext >&5
  5330. ac_header_compiler=no
  5331. fi
  5332. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5333. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5334. echo "${ECHO_T}$ac_header_compiler" >&6
  5335. # Is the header present?
  5336. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5337. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5338. cat >conftest.$ac_ext <<_ACEOF
  5339. /* confdefs.h. */
  5340. _ACEOF
  5341. cat confdefs.h >>conftest.$ac_ext
  5342. cat >>conftest.$ac_ext <<_ACEOF
  5343. /* end confdefs.h. */
  5344. #include <$ac_header>
  5345. _ACEOF
  5346. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5347. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5348. ac_status=$?
  5349. grep -v '^ *+' conftest.er1 >conftest.err
  5350. rm -f conftest.er1
  5351. cat conftest.err >&5
  5352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5353. (exit $ac_status); } >/dev/null; then
  5354. if test -s conftest.err; then
  5355. ac_cpp_err=$ac_c_preproc_warn_flag
  5356. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5357. else
  5358. ac_cpp_err=
  5359. fi
  5360. else
  5361. ac_cpp_err=yes
  5362. fi
  5363. if test -z "$ac_cpp_err"; then
  5364. ac_header_preproc=yes
  5365. else
  5366. echo "$as_me: failed program was:" >&5
  5367. sed 's/^/| /' conftest.$ac_ext >&5
  5368. ac_header_preproc=no
  5369. fi
  5370. rm -f conftest.err conftest.$ac_ext
  5371. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5372. echo "${ECHO_T}$ac_header_preproc" >&6
  5373. # So? What about this header?
  5374. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5375. yes:no: )
  5376. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5377. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5378. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5379. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5380. ac_header_preproc=yes
  5381. ;;
  5382. no:yes:* )
  5383. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5384. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5385. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5386. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5387. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5388. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5389. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5390. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5391. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5392. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5393. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5394. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5395. (
  5396. cat <<\_ASBOX
  5397. ## ------------------------------------------ ##
  5398. ## Report this to the AC_PACKAGE_NAME lists. ##
  5399. ## ------------------------------------------ ##
  5400. _ASBOX
  5401. ) |
  5402. sed "s/^/$as_me: WARNING: /" >&2
  5403. ;;
  5404. esac
  5405. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5406. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5407. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5408. echo $ECHO_N "(cached) $ECHO_C" >&6
  5409. else
  5410. eval "$as_ac_Header=\$ac_header_preproc"
  5411. fi
  5412. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5413. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5414. fi
  5415. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5416. cat >>confdefs.h <<_ACEOF
  5417. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5418. _ACEOF
  5419. fi
  5420. done
  5421. for ac_header in zlib.h
  5422. do
  5423. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5424. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5425. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5426. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5427. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5428. echo $ECHO_N "(cached) $ECHO_C" >&6
  5429. fi
  5430. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5431. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5432. else
  5433. # Is the header compilable?
  5434. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5435. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5436. cat >conftest.$ac_ext <<_ACEOF
  5437. /* confdefs.h. */
  5438. _ACEOF
  5439. cat confdefs.h >>conftest.$ac_ext
  5440. cat >>conftest.$ac_ext <<_ACEOF
  5441. /* end confdefs.h. */
  5442. $ac_includes_default
  5443. #include <$ac_header>
  5444. _ACEOF
  5445. rm -f conftest.$ac_objext
  5446. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5447. (eval $ac_compile) 2>conftest.er1
  5448. ac_status=$?
  5449. grep -v '^ *+' conftest.er1 >conftest.err
  5450. rm -f conftest.er1
  5451. cat conftest.err >&5
  5452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5453. (exit $ac_status); } &&
  5454. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5455. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5456. (eval $ac_try) 2>&5
  5457. ac_status=$?
  5458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5459. (exit $ac_status); }; } &&
  5460. { ac_try='test -s conftest.$ac_objext'
  5461. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5462. (eval $ac_try) 2>&5
  5463. ac_status=$?
  5464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5465. (exit $ac_status); }; }; then
  5466. ac_header_compiler=yes
  5467. else
  5468. echo "$as_me: failed program was:" >&5
  5469. sed 's/^/| /' conftest.$ac_ext >&5
  5470. ac_header_compiler=no
  5471. fi
  5472. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5473. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5474. echo "${ECHO_T}$ac_header_compiler" >&6
  5475. # Is the header present?
  5476. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5477. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5478. cat >conftest.$ac_ext <<_ACEOF
  5479. /* confdefs.h. */
  5480. _ACEOF
  5481. cat confdefs.h >>conftest.$ac_ext
  5482. cat >>conftest.$ac_ext <<_ACEOF
  5483. /* end confdefs.h. */
  5484. #include <$ac_header>
  5485. _ACEOF
  5486. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5487. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5488. ac_status=$?
  5489. grep -v '^ *+' conftest.er1 >conftest.err
  5490. rm -f conftest.er1
  5491. cat conftest.err >&5
  5492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5493. (exit $ac_status); } >/dev/null; then
  5494. if test -s conftest.err; then
  5495. ac_cpp_err=$ac_c_preproc_warn_flag
  5496. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5497. else
  5498. ac_cpp_err=
  5499. fi
  5500. else
  5501. ac_cpp_err=yes
  5502. fi
  5503. if test -z "$ac_cpp_err"; then
  5504. ac_header_preproc=yes
  5505. else
  5506. echo "$as_me: failed program was:" >&5
  5507. sed 's/^/| /' conftest.$ac_ext >&5
  5508. ac_header_preproc=no
  5509. fi
  5510. rm -f conftest.err conftest.$ac_ext
  5511. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5512. echo "${ECHO_T}$ac_header_preproc" >&6
  5513. # So? What about this header?
  5514. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5515. yes:no: )
  5516. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5517. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5518. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5519. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5520. ac_header_preproc=yes
  5521. ;;
  5522. no:yes:* )
  5523. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5524. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5525. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5526. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5527. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5528. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5529. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5530. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5531. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5532. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5533. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5534. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5535. (
  5536. cat <<\_ASBOX
  5537. ## ------------------------------------------ ##
  5538. ## Report this to the AC_PACKAGE_NAME lists. ##
  5539. ## ------------------------------------------ ##
  5540. _ASBOX
  5541. ) |
  5542. sed "s/^/$as_me: WARNING: /" >&2
  5543. ;;
  5544. esac
  5545. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5546. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5547. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5548. echo $ECHO_N "(cached) $ECHO_C" >&6
  5549. else
  5550. eval "$as_ac_Header=\$ac_header_preproc"
  5551. fi
  5552. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5553. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5554. fi
  5555. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5556. cat >>confdefs.h <<_ACEOF
  5557. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5558. _ACEOF
  5559. fi
  5560. done
  5561. if test "x${ZLIB}" = x; then
  5562. cat >&2 <<EOF
  5563. configure: error:
  5564. Your system does not provide a working zlib compression library.
  5565. It is required.
  5566. EOF
  5567. exit 1
  5568. else
  5569. if test "${ac_cv_header_zlib_h}" != yes; then
  5570. cat >&2 <<EOF
  5571. configure: error:
  5572. Your system does not provide the necessary zlib header file.
  5573. It is required.
  5574. EOF
  5575. exit 1
  5576. fi
  5577. fi
  5578. if test "x${SSL}" = x; then
  5579. cat >&2 <<EOF
  5580. configure: error:
  5581. Your system does not provide a working ssl library.
  5582. It is required. Download openssl at www.openssl.org
  5583. EOF
  5584. exit 1
  5585. else
  5586. if test "${ac_cv_header_openssl_ssl_h}" != yes; then
  5587. cat >&2 <<EOF
  5588. configure: error:
  5589. Your system does not provide the necessary ssl header file.
  5590. It is required. Download openssl at www.openssl.org
  5591. EOF
  5592. exit 1
  5593. fi
  5594. fi
  5595. # Checks for typedefs, structures, and compiler characteristics
  5596. echo "$as_me:$LINENO: checking for pid_t" >&5
  5597. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  5598. if test "${ac_cv_type_pid_t+set}" = set; then
  5599. echo $ECHO_N "(cached) $ECHO_C" >&6
  5600. else
  5601. cat >conftest.$ac_ext <<_ACEOF
  5602. /* confdefs.h. */
  5603. _ACEOF
  5604. cat confdefs.h >>conftest.$ac_ext
  5605. cat >>conftest.$ac_ext <<_ACEOF
  5606. /* end confdefs.h. */
  5607. $ac_includes_default
  5608. int
  5609. main ()
  5610. {
  5611. if ((pid_t *) 0)
  5612. return 0;
  5613. if (sizeof (pid_t))
  5614. return 0;
  5615. ;
  5616. return 0;
  5617. }
  5618. _ACEOF
  5619. rm -f conftest.$ac_objext
  5620. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5621. (eval $ac_compile) 2>conftest.er1
  5622. ac_status=$?
  5623. grep -v '^ *+' conftest.er1 >conftest.err
  5624. rm -f conftest.er1
  5625. cat conftest.err >&5
  5626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5627. (exit $ac_status); } &&
  5628. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5629. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5630. (eval $ac_try) 2>&5
  5631. ac_status=$?
  5632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5633. (exit $ac_status); }; } &&
  5634. { ac_try='test -s conftest.$ac_objext'
  5635. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5636. (eval $ac_try) 2>&5
  5637. ac_status=$?
  5638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5639. (exit $ac_status); }; }; then
  5640. ac_cv_type_pid_t=yes
  5641. else
  5642. echo "$as_me: failed program was:" >&5
  5643. sed 's/^/| /' conftest.$ac_ext >&5
  5644. ac_cv_type_pid_t=no
  5645. fi
  5646. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5647. fi
  5648. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5649. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  5650. if test $ac_cv_type_pid_t = yes; then
  5651. :
  5652. else
  5653. cat >>confdefs.h <<_ACEOF
  5654. #define pid_t int
  5655. _ACEOF
  5656. fi
  5657. echo "$as_me:$LINENO: checking for size_t" >&5
  5658. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5659. if test "${ac_cv_type_size_t+set}" = set; then
  5660. echo $ECHO_N "(cached) $ECHO_C" >&6
  5661. else
  5662. cat >conftest.$ac_ext <<_ACEOF
  5663. /* confdefs.h. */
  5664. _ACEOF
  5665. cat confdefs.h >>conftest.$ac_ext
  5666. cat >>conftest.$ac_ext <<_ACEOF
  5667. /* end confdefs.h. */
  5668. $ac_includes_default
  5669. int
  5670. main ()
  5671. {
  5672. if ((size_t *) 0)
  5673. return 0;
  5674. if (sizeof (size_t))
  5675. return 0;
  5676. ;
  5677. return 0;
  5678. }
  5679. _ACEOF
  5680. rm -f conftest.$ac_objext
  5681. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5682. (eval $ac_compile) 2>conftest.er1
  5683. ac_status=$?
  5684. grep -v '^ *+' conftest.er1 >conftest.err
  5685. rm -f conftest.er1
  5686. cat conftest.err >&5
  5687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5688. (exit $ac_status); } &&
  5689. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5690. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5691. (eval $ac_try) 2>&5
  5692. ac_status=$?
  5693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5694. (exit $ac_status); }; } &&
  5695. { ac_try='test -s conftest.$ac_objext'
  5696. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5697. (eval $ac_try) 2>&5
  5698. ac_status=$?
  5699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5700. (exit $ac_status); }; }; then
  5701. ac_cv_type_size_t=yes
  5702. else
  5703. echo "$as_me: failed program was:" >&5
  5704. sed 's/^/| /' conftest.$ac_ext >&5
  5705. ac_cv_type_size_t=no
  5706. fi
  5707. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5708. fi
  5709. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5710. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5711. if test $ac_cv_type_size_t = yes; then
  5712. :
  5713. else
  5714. cat >>confdefs.h <<_ACEOF
  5715. #define size_t unsigned
  5716. _ACEOF
  5717. fi
  5718. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5719. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  5720. if test "${ac_cv_type_uid_t+set}" = set; then
  5721. echo $ECHO_N "(cached) $ECHO_C" >&6
  5722. else
  5723. cat >conftest.$ac_ext <<_ACEOF
  5724. /* confdefs.h. */
  5725. _ACEOF
  5726. cat confdefs.h >>conftest.$ac_ext
  5727. cat >>conftest.$ac_ext <<_ACEOF
  5728. /* end confdefs.h. */
  5729. #include <sys/types.h>
  5730. _ACEOF
  5731. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5732. $EGREP "uid_t" >/dev/null 2>&1; then
  5733. ac_cv_type_uid_t=yes
  5734. else
  5735. ac_cv_type_uid_t=no
  5736. fi
  5737. rm -f conftest*
  5738. fi
  5739. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5740. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  5741. if test $ac_cv_type_uid_t = no; then
  5742. cat >>confdefs.h <<\_ACEOF
  5743. #define uid_t int
  5744. _ACEOF
  5745. cat >>confdefs.h <<\_ACEOF
  5746. #define gid_t int
  5747. _ACEOF
  5748. fi
  5749. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5750. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5751. if test "${ac_cv_c_const+set}" = set; then
  5752. echo $ECHO_N "(cached) $ECHO_C" >&6
  5753. else
  5754. cat >conftest.$ac_ext <<_ACEOF
  5755. /* confdefs.h. */
  5756. _ACEOF
  5757. cat confdefs.h >>conftest.$ac_ext
  5758. cat >>conftest.$ac_ext <<_ACEOF
  5759. /* end confdefs.h. */
  5760. int
  5761. main ()
  5762. {
  5763. /* FIXME: Include the comments suggested by Paul. */
  5764. #ifndef __cplusplus
  5765. /* Ultrix mips cc rejects this. */
  5766. typedef int charset[2];
  5767. const charset x;
  5768. /* SunOS 4.1.1 cc rejects this. */
  5769. char const *const *ccp;
  5770. char **p;
  5771. /* NEC SVR4.0.2 mips cc rejects this. */
  5772. struct point {int x, y;};
  5773. static struct point const zero = {0,0};
  5774. /* AIX XL C 1.02.0.0 rejects this.
  5775. It does not let you subtract one const X* pointer from another in
  5776. an arm of an if-expression whose if-part is not a constant
  5777. expression */
  5778. const char *g = "string";
  5779. ccp = &g + (g ? g-g : 0);
  5780. /* HPUX 7.0 cc rejects these. */
  5781. ++ccp;
  5782. p = (char**) ccp;
  5783. ccp = (char const *const *) p;
  5784. { /* SCO 3.2v4 cc rejects this. */
  5785. char *t;
  5786. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5787. *t++ = 0;
  5788. }
  5789. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5790. int x[] = {25, 17};
  5791. const int *foo = &x[0];
  5792. ++foo;
  5793. }
  5794. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5795. typedef const int *iptr;
  5796. iptr p = 0;
  5797. ++p;
  5798. }
  5799. { /* AIX XL C 1.02.0.0 rejects this saying
  5800. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5801. struct s { int j; const int *ap[3]; };
  5802. struct s *b; b->j = 5;
  5803. }
  5804. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5805. const int foo = 10;
  5806. }
  5807. #endif
  5808. ;
  5809. return 0;
  5810. }
  5811. _ACEOF
  5812. rm -f conftest.$ac_objext
  5813. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5814. (eval $ac_compile) 2>conftest.er1
  5815. ac_status=$?
  5816. grep -v '^ *+' conftest.er1 >conftest.err
  5817. rm -f conftest.er1
  5818. cat conftest.err >&5
  5819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5820. (exit $ac_status); } &&
  5821. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5822. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5823. (eval $ac_try) 2>&5
  5824. ac_status=$?
  5825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5826. (exit $ac_status); }; } &&
  5827. { ac_try='test -s conftest.$ac_objext'
  5828. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5829. (eval $ac_try) 2>&5
  5830. ac_status=$?
  5831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5832. (exit $ac_status); }; }; then
  5833. ac_cv_c_const=yes
  5834. else
  5835. echo "$as_me: failed program was:" >&5
  5836. sed 's/^/| /' conftest.$ac_ext >&5
  5837. ac_cv_c_const=no
  5838. fi
  5839. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5840. fi
  5841. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5842. echo "${ECHO_T}$ac_cv_c_const" >&6
  5843. if test $ac_cv_c_const = no; then
  5844. cat >>confdefs.h <<\_ACEOF
  5845. #define const
  5846. _ACEOF
  5847. fi
  5848. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5849. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  5850. if test "${ac_cv_c_bigendian+set}" = set; then
  5851. echo $ECHO_N "(cached) $ECHO_C" >&6
  5852. else
  5853. # See if sys/param.h defines the BYTE_ORDER macro.
  5854. cat >conftest.$ac_ext <<_ACEOF
  5855. /* confdefs.h. */
  5856. _ACEOF
  5857. cat confdefs.h >>conftest.$ac_ext
  5858. cat >>conftest.$ac_ext <<_ACEOF
  5859. /* end confdefs.h. */
  5860. #include <sys/types.h>
  5861. #include <sys/param.h>
  5862. int
  5863. main ()
  5864. {
  5865. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  5866. bogus endian macros
  5867. #endif
  5868. ;
  5869. return 0;
  5870. }
  5871. _ACEOF
  5872. rm -f conftest.$ac_objext
  5873. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5874. (eval $ac_compile) 2>conftest.er1
  5875. ac_status=$?
  5876. grep -v '^ *+' conftest.er1 >conftest.err
  5877. rm -f conftest.er1
  5878. cat conftest.err >&5
  5879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5880. (exit $ac_status); } &&
  5881. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5882. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5883. (eval $ac_try) 2>&5
  5884. ac_status=$?
  5885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5886. (exit $ac_status); }; } &&
  5887. { ac_try='test -s conftest.$ac_objext'
  5888. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5889. (eval $ac_try) 2>&5
  5890. ac_status=$?
  5891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5892. (exit $ac_status); }; }; then
  5893. # It does; now see whether it defined to BIG_ENDIAN or not.
  5894. cat >conftest.$ac_ext <<_ACEOF
  5895. /* confdefs.h. */
  5896. _ACEOF
  5897. cat confdefs.h >>conftest.$ac_ext
  5898. cat >>conftest.$ac_ext <<_ACEOF
  5899. /* end confdefs.h. */
  5900. #include <sys/types.h>
  5901. #include <sys/param.h>
  5902. int
  5903. main ()
  5904. {
  5905. #if BYTE_ORDER != BIG_ENDIAN
  5906. not big endian
  5907. #endif
  5908. ;
  5909. return 0;
  5910. }
  5911. _ACEOF
  5912. rm -f conftest.$ac_objext
  5913. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5914. (eval $ac_compile) 2>conftest.er1
  5915. ac_status=$?
  5916. grep -v '^ *+' conftest.er1 >conftest.err
  5917. rm -f conftest.er1
  5918. cat conftest.err >&5
  5919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5920. (exit $ac_status); } &&
  5921. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5922. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5923. (eval $ac_try) 2>&5
  5924. ac_status=$?
  5925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5926. (exit $ac_status); }; } &&
  5927. { ac_try='test -s conftest.$ac_objext'
  5928. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5929. (eval $ac_try) 2>&5
  5930. ac_status=$?
  5931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5932. (exit $ac_status); }; }; then
  5933. ac_cv_c_bigendian=yes
  5934. else
  5935. echo "$as_me: failed program was:" >&5
  5936. sed 's/^/| /' conftest.$ac_ext >&5
  5937. ac_cv_c_bigendian=no
  5938. fi
  5939. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5940. else
  5941. echo "$as_me: failed program was:" >&5
  5942. sed 's/^/| /' conftest.$ac_ext >&5
  5943. # It does not; compile a test program.
  5944. if test "$cross_compiling" = yes; then
  5945. # try to guess the endianness by grepping values into an object file
  5946. ac_cv_c_bigendian=unknown
  5947. cat >conftest.$ac_ext <<_ACEOF
  5948. /* confdefs.h. */
  5949. _ACEOF
  5950. cat confdefs.h >>conftest.$ac_ext
  5951. cat >>conftest.$ac_ext <<_ACEOF
  5952. /* end confdefs.h. */
  5953. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5954. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5955. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  5956. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5957. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5958. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  5959. int
  5960. main ()
  5961. {
  5962. _ascii (); _ebcdic ();
  5963. ;
  5964. return 0;
  5965. }
  5966. _ACEOF
  5967. rm -f conftest.$ac_objext
  5968. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5969. (eval $ac_compile) 2>conftest.er1
  5970. ac_status=$?
  5971. grep -v '^ *+' conftest.er1 >conftest.err
  5972. rm -f conftest.er1
  5973. cat conftest.err >&5
  5974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5975. (exit $ac_status); } &&
  5976. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5977. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5978. (eval $ac_try) 2>&5
  5979. ac_status=$?
  5980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5981. (exit $ac_status); }; } &&
  5982. { ac_try='test -s conftest.$ac_objext'
  5983. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5984. (eval $ac_try) 2>&5
  5985. ac_status=$?
  5986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5987. (exit $ac_status); }; }; then
  5988. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  5989. ac_cv_c_bigendian=yes
  5990. fi
  5991. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5992. if test "$ac_cv_c_bigendian" = unknown; then
  5993. ac_cv_c_bigendian=no
  5994. else
  5995. # finding both strings is unlikely to happen, but who knows?
  5996. ac_cv_c_bigendian=unknown
  5997. fi
  5998. fi
  5999. else
  6000. echo "$as_me: failed program was:" >&5
  6001. sed 's/^/| /' conftest.$ac_ext >&5
  6002. fi
  6003. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6004. else
  6005. cat >conftest.$ac_ext <<_ACEOF
  6006. /* confdefs.h. */
  6007. _ACEOF
  6008. cat confdefs.h >>conftest.$ac_ext
  6009. cat >>conftest.$ac_ext <<_ACEOF
  6010. /* end confdefs.h. */
  6011. int
  6012. main ()
  6013. {
  6014. /* Are we little or big endian? From Harbison&Steele. */
  6015. union
  6016. {
  6017. long l;
  6018. char c[sizeof (long)];
  6019. } u;
  6020. u.l = 1;
  6021. exit (u.c[sizeof (long) - 1] == 1);
  6022. }
  6023. _ACEOF
  6024. rm -f conftest$ac_exeext
  6025. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6026. (eval $ac_link) 2>&5
  6027. ac_status=$?
  6028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6029. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6030. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6031. (eval $ac_try) 2>&5
  6032. ac_status=$?
  6033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6034. (exit $ac_status); }; }; then
  6035. ac_cv_c_bigendian=no
  6036. else
  6037. echo "$as_me: program exited with status $ac_status" >&5
  6038. echo "$as_me: failed program was:" >&5
  6039. sed 's/^/| /' conftest.$ac_ext >&5
  6040. ( exit $ac_status )
  6041. ac_cv_c_bigendian=yes
  6042. fi
  6043. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6044. fi
  6045. fi
  6046. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6047. fi
  6048. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6049. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  6050. case $ac_cv_c_bigendian in
  6051. yes)
  6052. cat >>confdefs.h <<\_ACEOF
  6053. #define WORDS_BIGENDIAN 1
  6054. _ACEOF
  6055. ;;
  6056. no)
  6057. ;;
  6058. *)
  6059. { { echo "$as_me:$LINENO: error: unknown endianness
  6060. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6061. echo "$as_me: error: unknown endianness
  6062. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6063. { (exit 1); exit 1; }; } ;;
  6064. esac
  6065. echo "$as_me:$LINENO: checking for inline" >&5
  6066. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  6067. if test "${ac_cv_c_inline+set}" = set; then
  6068. echo $ECHO_N "(cached) $ECHO_C" >&6
  6069. else
  6070. ac_cv_c_inline=no
  6071. for ac_kw in inline __inline__ __inline; do
  6072. cat >conftest.$ac_ext <<_ACEOF
  6073. /* confdefs.h. */
  6074. _ACEOF
  6075. cat confdefs.h >>conftest.$ac_ext
  6076. cat >>conftest.$ac_ext <<_ACEOF
  6077. /* end confdefs.h. */
  6078. #ifndef __cplusplus
  6079. typedef int foo_t;
  6080. static $ac_kw foo_t static_foo () {return 0; }
  6081. $ac_kw foo_t foo () {return 0; }
  6082. #endif
  6083. _ACEOF
  6084. rm -f conftest.$ac_objext
  6085. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6086. (eval $ac_compile) 2>conftest.er1
  6087. ac_status=$?
  6088. grep -v '^ *+' conftest.er1 >conftest.err
  6089. rm -f conftest.er1
  6090. cat conftest.err >&5
  6091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6092. (exit $ac_status); } &&
  6093. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6094. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6095. (eval $ac_try) 2>&5
  6096. ac_status=$?
  6097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6098. (exit $ac_status); }; } &&
  6099. { ac_try='test -s conftest.$ac_objext'
  6100. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6101. (eval $ac_try) 2>&5
  6102. ac_status=$?
  6103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6104. (exit $ac_status); }; }; then
  6105. ac_cv_c_inline=$ac_kw; break
  6106. else
  6107. echo "$as_me: failed program was:" >&5
  6108. sed 's/^/| /' conftest.$ac_ext >&5
  6109. fi
  6110. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6111. done
  6112. fi
  6113. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6114. echo "${ECHO_T}$ac_cv_c_inline" >&6
  6115. case $ac_cv_c_inline in
  6116. inline | yes) ;;
  6117. *)
  6118. case $ac_cv_c_inline in
  6119. no) ac_val=;;
  6120. *) ac_val=$ac_cv_c_inline;;
  6121. esac
  6122. cat >>confdefs.h <<_ACEOF
  6123. #ifndef __cplusplus
  6124. #define inline $ac_val
  6125. #endif
  6126. _ACEOF
  6127. ;;
  6128. esac
  6129. echo "$as_me:$LINENO: checking for long" >&5
  6130. echo $ECHO_N "checking for long... $ECHO_C" >&6
  6131. if test "${ac_cv_type_long+set}" = set; then
  6132. echo $ECHO_N "(cached) $ECHO_C" >&6
  6133. else
  6134. cat >conftest.$ac_ext <<_ACEOF
  6135. /* confdefs.h. */
  6136. _ACEOF
  6137. cat confdefs.h >>conftest.$ac_ext
  6138. cat >>conftest.$ac_ext <<_ACEOF
  6139. /* end confdefs.h. */
  6140. $ac_includes_default
  6141. int
  6142. main ()
  6143. {
  6144. if ((long *) 0)
  6145. return 0;
  6146. if (sizeof (long))
  6147. return 0;
  6148. ;
  6149. return 0;
  6150. }
  6151. _ACEOF
  6152. rm -f conftest.$ac_objext
  6153. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6154. (eval $ac_compile) 2>conftest.er1
  6155. ac_status=$?
  6156. grep -v '^ *+' conftest.er1 >conftest.err
  6157. rm -f conftest.er1
  6158. cat conftest.err >&5
  6159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6160. (exit $ac_status); } &&
  6161. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6162. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6163. (eval $ac_try) 2>&5
  6164. ac_status=$?
  6165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6166. (exit $ac_status); }; } &&
  6167. { ac_try='test -s conftest.$ac_objext'
  6168. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6169. (eval $ac_try) 2>&5
  6170. ac_status=$?
  6171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6172. (exit $ac_status); }; }; then
  6173. ac_cv_type_long=yes
  6174. else
  6175. echo "$as_me: failed program was:" >&5
  6176. sed 's/^/| /' conftest.$ac_ext >&5
  6177. ac_cv_type_long=no
  6178. fi
  6179. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6180. fi
  6181. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  6182. echo "${ECHO_T}$ac_cv_type_long" >&6
  6183. echo "$as_me:$LINENO: checking size of long" >&5
  6184. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  6185. if test "${ac_cv_sizeof_long+set}" = set; then
  6186. echo $ECHO_N "(cached) $ECHO_C" >&6
  6187. else
  6188. if test "$ac_cv_type_long" = yes; then
  6189. # The cast to unsigned long works around a bug in the HP C Compiler
  6190. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6191. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6192. # This bug is HP SR number 8606223364.
  6193. if test "$cross_compiling" = yes; then
  6194. # Depending upon the size, compute the lo and hi bounds.
  6195. cat >conftest.$ac_ext <<_ACEOF
  6196. /* confdefs.h. */
  6197. _ACEOF
  6198. cat confdefs.h >>conftest.$ac_ext
  6199. cat >>conftest.$ac_ext <<_ACEOF
  6200. /* end confdefs.h. */
  6201. $ac_includes_default
  6202. int
  6203. main ()
  6204. {
  6205. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  6206. test_array [0] = 0
  6207. ;
  6208. return 0;
  6209. }
  6210. _ACEOF
  6211. rm -f conftest.$ac_objext
  6212. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6213. (eval $ac_compile) 2>conftest.er1
  6214. ac_status=$?
  6215. grep -v '^ *+' conftest.er1 >conftest.err
  6216. rm -f conftest.er1
  6217. cat conftest.err >&5
  6218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6219. (exit $ac_status); } &&
  6220. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6221. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6222. (eval $ac_try) 2>&5
  6223. ac_status=$?
  6224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6225. (exit $ac_status); }; } &&
  6226. { ac_try='test -s conftest.$ac_objext'
  6227. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6228. (eval $ac_try) 2>&5
  6229. ac_status=$?
  6230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6231. (exit $ac_status); }; }; then
  6232. ac_lo=0 ac_mid=0
  6233. while :; do
  6234. cat >conftest.$ac_ext <<_ACEOF
  6235. /* confdefs.h. */
  6236. _ACEOF
  6237. cat confdefs.h >>conftest.$ac_ext
  6238. cat >>conftest.$ac_ext <<_ACEOF
  6239. /* end confdefs.h. */
  6240. $ac_includes_default
  6241. int
  6242. main ()
  6243. {
  6244. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6245. test_array [0] = 0
  6246. ;
  6247. return 0;
  6248. }
  6249. _ACEOF
  6250. rm -f conftest.$ac_objext
  6251. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6252. (eval $ac_compile) 2>conftest.er1
  6253. ac_status=$?
  6254. grep -v '^ *+' conftest.er1 >conftest.err
  6255. rm -f conftest.er1
  6256. cat conftest.err >&5
  6257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6258. (exit $ac_status); } &&
  6259. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6260. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6261. (eval $ac_try) 2>&5
  6262. ac_status=$?
  6263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6264. (exit $ac_status); }; } &&
  6265. { ac_try='test -s conftest.$ac_objext'
  6266. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6267. (eval $ac_try) 2>&5
  6268. ac_status=$?
  6269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6270. (exit $ac_status); }; }; then
  6271. ac_hi=$ac_mid; break
  6272. else
  6273. echo "$as_me: failed program was:" >&5
  6274. sed 's/^/| /' conftest.$ac_ext >&5
  6275. ac_lo=`expr $ac_mid + 1`
  6276. if test $ac_lo -le $ac_mid; then
  6277. ac_lo= ac_hi=
  6278. break
  6279. fi
  6280. ac_mid=`expr 2 '*' $ac_mid + 1`
  6281. fi
  6282. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6283. done
  6284. else
  6285. echo "$as_me: failed program was:" >&5
  6286. sed 's/^/| /' conftest.$ac_ext >&5
  6287. cat >conftest.$ac_ext <<_ACEOF
  6288. /* confdefs.h. */
  6289. _ACEOF
  6290. cat confdefs.h >>conftest.$ac_ext
  6291. cat >>conftest.$ac_ext <<_ACEOF
  6292. /* end confdefs.h. */
  6293. $ac_includes_default
  6294. int
  6295. main ()
  6296. {
  6297. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  6298. test_array [0] = 0
  6299. ;
  6300. return 0;
  6301. }
  6302. _ACEOF
  6303. rm -f conftest.$ac_objext
  6304. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6305. (eval $ac_compile) 2>conftest.er1
  6306. ac_status=$?
  6307. grep -v '^ *+' conftest.er1 >conftest.err
  6308. rm -f conftest.er1
  6309. cat conftest.err >&5
  6310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6311. (exit $ac_status); } &&
  6312. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6313. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6314. (eval $ac_try) 2>&5
  6315. ac_status=$?
  6316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6317. (exit $ac_status); }; } &&
  6318. { ac_try='test -s conftest.$ac_objext'
  6319. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6320. (eval $ac_try) 2>&5
  6321. ac_status=$?
  6322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6323. (exit $ac_status); }; }; then
  6324. ac_hi=-1 ac_mid=-1
  6325. while :; do
  6326. cat >conftest.$ac_ext <<_ACEOF
  6327. /* confdefs.h. */
  6328. _ACEOF
  6329. cat confdefs.h >>conftest.$ac_ext
  6330. cat >>conftest.$ac_ext <<_ACEOF
  6331. /* end confdefs.h. */
  6332. $ac_includes_default
  6333. int
  6334. main ()
  6335. {
  6336. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  6337. test_array [0] = 0
  6338. ;
  6339. return 0;
  6340. }
  6341. _ACEOF
  6342. rm -f conftest.$ac_objext
  6343. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6344. (eval $ac_compile) 2>conftest.er1
  6345. ac_status=$?
  6346. grep -v '^ *+' conftest.er1 >conftest.err
  6347. rm -f conftest.er1
  6348. cat conftest.err >&5
  6349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6350. (exit $ac_status); } &&
  6351. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6352. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6353. (eval $ac_try) 2>&5
  6354. ac_status=$?
  6355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6356. (exit $ac_status); }; } &&
  6357. { ac_try='test -s conftest.$ac_objext'
  6358. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6359. (eval $ac_try) 2>&5
  6360. ac_status=$?
  6361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6362. (exit $ac_status); }; }; then
  6363. ac_lo=$ac_mid; break
  6364. else
  6365. echo "$as_me: failed program was:" >&5
  6366. sed 's/^/| /' conftest.$ac_ext >&5
  6367. ac_hi=`expr '(' $ac_mid ')' - 1`
  6368. if test $ac_mid -le $ac_hi; then
  6369. ac_lo= ac_hi=
  6370. break
  6371. fi
  6372. ac_mid=`expr 2 '*' $ac_mid`
  6373. fi
  6374. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6375. done
  6376. else
  6377. echo "$as_me: failed program was:" >&5
  6378. sed 's/^/| /' conftest.$ac_ext >&5
  6379. ac_lo= ac_hi=
  6380. fi
  6381. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6382. fi
  6383. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6384. # Binary search between lo and hi bounds.
  6385. while test "x$ac_lo" != "x$ac_hi"; do
  6386. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6387. cat >conftest.$ac_ext <<_ACEOF
  6388. /* confdefs.h. */
  6389. _ACEOF
  6390. cat confdefs.h >>conftest.$ac_ext
  6391. cat >>conftest.$ac_ext <<_ACEOF
  6392. /* end confdefs.h. */
  6393. $ac_includes_default
  6394. int
  6395. main ()
  6396. {
  6397. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6398. test_array [0] = 0
  6399. ;
  6400. return 0;
  6401. }
  6402. _ACEOF
  6403. rm -f conftest.$ac_objext
  6404. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6405. (eval $ac_compile) 2>conftest.er1
  6406. ac_status=$?
  6407. grep -v '^ *+' conftest.er1 >conftest.err
  6408. rm -f conftest.er1
  6409. cat conftest.err >&5
  6410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6411. (exit $ac_status); } &&
  6412. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6413. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6414. (eval $ac_try) 2>&5
  6415. ac_status=$?
  6416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6417. (exit $ac_status); }; } &&
  6418. { ac_try='test -s conftest.$ac_objext'
  6419. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6420. (eval $ac_try) 2>&5
  6421. ac_status=$?
  6422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6423. (exit $ac_status); }; }; then
  6424. ac_hi=$ac_mid
  6425. else
  6426. echo "$as_me: failed program was:" >&5
  6427. sed 's/^/| /' conftest.$ac_ext >&5
  6428. ac_lo=`expr '(' $ac_mid ')' + 1`
  6429. fi
  6430. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6431. done
  6432. case $ac_lo in
  6433. ?*) ac_cv_sizeof_long=$ac_lo;;
  6434. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6435. See \`config.log' for more details." >&5
  6436. echo "$as_me: error: cannot compute sizeof (long), 77
  6437. See \`config.log' for more details." >&2;}
  6438. { (exit 1); exit 1; }; } ;;
  6439. esac
  6440. else
  6441. if test "$cross_compiling" = yes; then
  6442. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6443. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6444. { (exit 1); exit 1; }; }
  6445. else
  6446. cat >conftest.$ac_ext <<_ACEOF
  6447. /* confdefs.h. */
  6448. _ACEOF
  6449. cat confdefs.h >>conftest.$ac_ext
  6450. cat >>conftest.$ac_ext <<_ACEOF
  6451. /* end confdefs.h. */
  6452. $ac_includes_default
  6453. long longval () { return (long) (sizeof (long)); }
  6454. unsigned long ulongval () { return (long) (sizeof (long)); }
  6455. #include <stdio.h>
  6456. #include <stdlib.h>
  6457. int
  6458. main ()
  6459. {
  6460. FILE *f = fopen ("conftest.val", "w");
  6461. if (! f)
  6462. exit (1);
  6463. if (((long) (sizeof (long))) < 0)
  6464. {
  6465. long i = longval ();
  6466. if (i != ((long) (sizeof (long))))
  6467. exit (1);
  6468. fprintf (f, "%ld\n", i);
  6469. }
  6470. else
  6471. {
  6472. unsigned long i = ulongval ();
  6473. if (i != ((long) (sizeof (long))))
  6474. exit (1);
  6475. fprintf (f, "%lu\n", i);
  6476. }
  6477. exit (ferror (f) || fclose (f) != 0);
  6478. ;
  6479. return 0;
  6480. }
  6481. _ACEOF
  6482. rm -f conftest$ac_exeext
  6483. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6484. (eval $ac_link) 2>&5
  6485. ac_status=$?
  6486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6487. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6488. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6489. (eval $ac_try) 2>&5
  6490. ac_status=$?
  6491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6492. (exit $ac_status); }; }; then
  6493. ac_cv_sizeof_long=`cat conftest.val`
  6494. else
  6495. echo "$as_me: program exited with status $ac_status" >&5
  6496. echo "$as_me: failed program was:" >&5
  6497. sed 's/^/| /' conftest.$ac_ext >&5
  6498. ( exit $ac_status )
  6499. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6500. See \`config.log' for more details." >&5
  6501. echo "$as_me: error: cannot compute sizeof (long), 77
  6502. See \`config.log' for more details." >&2;}
  6503. { (exit 1); exit 1; }; }
  6504. fi
  6505. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6506. fi
  6507. fi
  6508. rm -f conftest.val
  6509. else
  6510. ac_cv_sizeof_long=0
  6511. fi
  6512. fi
  6513. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  6514. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  6515. cat >>confdefs.h <<_ACEOF
  6516. #define SIZEOF_LONG $ac_cv_sizeof_long
  6517. _ACEOF
  6518. echo "$as_me:$LINENO: checking for int" >&5
  6519. echo $ECHO_N "checking for int... $ECHO_C" >&6
  6520. if test "${ac_cv_type_int+set}" = set; then
  6521. echo $ECHO_N "(cached) $ECHO_C" >&6
  6522. else
  6523. cat >conftest.$ac_ext <<_ACEOF
  6524. /* confdefs.h. */
  6525. _ACEOF
  6526. cat confdefs.h >>conftest.$ac_ext
  6527. cat >>conftest.$ac_ext <<_ACEOF
  6528. /* end confdefs.h. */
  6529. $ac_includes_default
  6530. int
  6531. main ()
  6532. {
  6533. if ((int *) 0)
  6534. return 0;
  6535. if (sizeof (int))
  6536. return 0;
  6537. ;
  6538. return 0;
  6539. }
  6540. _ACEOF
  6541. rm -f conftest.$ac_objext
  6542. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6543. (eval $ac_compile) 2>conftest.er1
  6544. ac_status=$?
  6545. grep -v '^ *+' conftest.er1 >conftest.err
  6546. rm -f conftest.er1
  6547. cat conftest.err >&5
  6548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6549. (exit $ac_status); } &&
  6550. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6551. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6552. (eval $ac_try) 2>&5
  6553. ac_status=$?
  6554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6555. (exit $ac_status); }; } &&
  6556. { ac_try='test -s conftest.$ac_objext'
  6557. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6558. (eval $ac_try) 2>&5
  6559. ac_status=$?
  6560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6561. (exit $ac_status); }; }; then
  6562. ac_cv_type_int=yes
  6563. else
  6564. echo "$as_me: failed program was:" >&5
  6565. sed 's/^/| /' conftest.$ac_ext >&5
  6566. ac_cv_type_int=no
  6567. fi
  6568. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6569. fi
  6570. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  6571. echo "${ECHO_T}$ac_cv_type_int" >&6
  6572. echo "$as_me:$LINENO: checking size of int" >&5
  6573. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  6574. if test "${ac_cv_sizeof_int+set}" = set; then
  6575. echo $ECHO_N "(cached) $ECHO_C" >&6
  6576. else
  6577. if test "$ac_cv_type_int" = yes; then
  6578. # The cast to unsigned long works around a bug in the HP C Compiler
  6579. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6580. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6581. # This bug is HP SR number 8606223364.
  6582. if test "$cross_compiling" = yes; then
  6583. # Depending upon the size, compute the lo and hi bounds.
  6584. cat >conftest.$ac_ext <<_ACEOF
  6585. /* confdefs.h. */
  6586. _ACEOF
  6587. cat confdefs.h >>conftest.$ac_ext
  6588. cat >>conftest.$ac_ext <<_ACEOF
  6589. /* end confdefs.h. */
  6590. $ac_includes_default
  6591. int
  6592. main ()
  6593. {
  6594. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  6595. test_array [0] = 0
  6596. ;
  6597. return 0;
  6598. }
  6599. _ACEOF
  6600. rm -f conftest.$ac_objext
  6601. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6602. (eval $ac_compile) 2>conftest.er1
  6603. ac_status=$?
  6604. grep -v '^ *+' conftest.er1 >conftest.err
  6605. rm -f conftest.er1
  6606. cat conftest.err >&5
  6607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6608. (exit $ac_status); } &&
  6609. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6610. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6611. (eval $ac_try) 2>&5
  6612. ac_status=$?
  6613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6614. (exit $ac_status); }; } &&
  6615. { ac_try='test -s conftest.$ac_objext'
  6616. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6617. (eval $ac_try) 2>&5
  6618. ac_status=$?
  6619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6620. (exit $ac_status); }; }; then
  6621. ac_lo=0 ac_mid=0
  6622. while :; do
  6623. cat >conftest.$ac_ext <<_ACEOF
  6624. /* confdefs.h. */
  6625. _ACEOF
  6626. cat confdefs.h >>conftest.$ac_ext
  6627. cat >>conftest.$ac_ext <<_ACEOF
  6628. /* end confdefs.h. */
  6629. $ac_includes_default
  6630. int
  6631. main ()
  6632. {
  6633. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6634. test_array [0] = 0
  6635. ;
  6636. return 0;
  6637. }
  6638. _ACEOF
  6639. rm -f conftest.$ac_objext
  6640. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6641. (eval $ac_compile) 2>conftest.er1
  6642. ac_status=$?
  6643. grep -v '^ *+' conftest.er1 >conftest.err
  6644. rm -f conftest.er1
  6645. cat conftest.err >&5
  6646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6647. (exit $ac_status); } &&
  6648. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6649. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6650. (eval $ac_try) 2>&5
  6651. ac_status=$?
  6652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6653. (exit $ac_status); }; } &&
  6654. { ac_try='test -s conftest.$ac_objext'
  6655. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6656. (eval $ac_try) 2>&5
  6657. ac_status=$?
  6658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6659. (exit $ac_status); }; }; then
  6660. ac_hi=$ac_mid; break
  6661. else
  6662. echo "$as_me: failed program was:" >&5
  6663. sed 's/^/| /' conftest.$ac_ext >&5
  6664. ac_lo=`expr $ac_mid + 1`
  6665. if test $ac_lo -le $ac_mid; then
  6666. ac_lo= ac_hi=
  6667. break
  6668. fi
  6669. ac_mid=`expr 2 '*' $ac_mid + 1`
  6670. fi
  6671. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6672. done
  6673. else
  6674. echo "$as_me: failed program was:" >&5
  6675. sed 's/^/| /' conftest.$ac_ext >&5
  6676. cat >conftest.$ac_ext <<_ACEOF
  6677. /* confdefs.h. */
  6678. _ACEOF
  6679. cat confdefs.h >>conftest.$ac_ext
  6680. cat >>conftest.$ac_ext <<_ACEOF
  6681. /* end confdefs.h. */
  6682. $ac_includes_default
  6683. int
  6684. main ()
  6685. {
  6686. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  6687. test_array [0] = 0
  6688. ;
  6689. return 0;
  6690. }
  6691. _ACEOF
  6692. rm -f conftest.$ac_objext
  6693. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6694. (eval $ac_compile) 2>conftest.er1
  6695. ac_status=$?
  6696. grep -v '^ *+' conftest.er1 >conftest.err
  6697. rm -f conftest.er1
  6698. cat conftest.err >&5
  6699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6700. (exit $ac_status); } &&
  6701. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6702. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6703. (eval $ac_try) 2>&5
  6704. ac_status=$?
  6705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6706. (exit $ac_status); }; } &&
  6707. { ac_try='test -s conftest.$ac_objext'
  6708. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6709. (eval $ac_try) 2>&5
  6710. ac_status=$?
  6711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6712. (exit $ac_status); }; }; then
  6713. ac_hi=-1 ac_mid=-1
  6714. while :; do
  6715. cat >conftest.$ac_ext <<_ACEOF
  6716. /* confdefs.h. */
  6717. _ACEOF
  6718. cat confdefs.h >>conftest.$ac_ext
  6719. cat >>conftest.$ac_ext <<_ACEOF
  6720. /* end confdefs.h. */
  6721. $ac_includes_default
  6722. int
  6723. main ()
  6724. {
  6725. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  6726. test_array [0] = 0
  6727. ;
  6728. return 0;
  6729. }
  6730. _ACEOF
  6731. rm -f conftest.$ac_objext
  6732. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6733. (eval $ac_compile) 2>conftest.er1
  6734. ac_status=$?
  6735. grep -v '^ *+' conftest.er1 >conftest.err
  6736. rm -f conftest.er1
  6737. cat conftest.err >&5
  6738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6739. (exit $ac_status); } &&
  6740. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6741. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6742. (eval $ac_try) 2>&5
  6743. ac_status=$?
  6744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6745. (exit $ac_status); }; } &&
  6746. { ac_try='test -s conftest.$ac_objext'
  6747. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6748. (eval $ac_try) 2>&5
  6749. ac_status=$?
  6750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6751. (exit $ac_status); }; }; then
  6752. ac_lo=$ac_mid; break
  6753. else
  6754. echo "$as_me: failed program was:" >&5
  6755. sed 's/^/| /' conftest.$ac_ext >&5
  6756. ac_hi=`expr '(' $ac_mid ')' - 1`
  6757. if test $ac_mid -le $ac_hi; then
  6758. ac_lo= ac_hi=
  6759. break
  6760. fi
  6761. ac_mid=`expr 2 '*' $ac_mid`
  6762. fi
  6763. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6764. done
  6765. else
  6766. echo "$as_me: failed program was:" >&5
  6767. sed 's/^/| /' conftest.$ac_ext >&5
  6768. ac_lo= ac_hi=
  6769. fi
  6770. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6771. fi
  6772. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6773. # Binary search between lo and hi bounds.
  6774. while test "x$ac_lo" != "x$ac_hi"; do
  6775. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6776. cat >conftest.$ac_ext <<_ACEOF
  6777. /* confdefs.h. */
  6778. _ACEOF
  6779. cat confdefs.h >>conftest.$ac_ext
  6780. cat >>conftest.$ac_ext <<_ACEOF
  6781. /* end confdefs.h. */
  6782. $ac_includes_default
  6783. int
  6784. main ()
  6785. {
  6786. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6787. test_array [0] = 0
  6788. ;
  6789. return 0;
  6790. }
  6791. _ACEOF
  6792. rm -f conftest.$ac_objext
  6793. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6794. (eval $ac_compile) 2>conftest.er1
  6795. ac_status=$?
  6796. grep -v '^ *+' conftest.er1 >conftest.err
  6797. rm -f conftest.er1
  6798. cat conftest.err >&5
  6799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6800. (exit $ac_status); } &&
  6801. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6802. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6803. (eval $ac_try) 2>&5
  6804. ac_status=$?
  6805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6806. (exit $ac_status); }; } &&
  6807. { ac_try='test -s conftest.$ac_objext'
  6808. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6809. (eval $ac_try) 2>&5
  6810. ac_status=$?
  6811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6812. (exit $ac_status); }; }; then
  6813. ac_hi=$ac_mid
  6814. else
  6815. echo "$as_me: failed program was:" >&5
  6816. sed 's/^/| /' conftest.$ac_ext >&5
  6817. ac_lo=`expr '(' $ac_mid ')' + 1`
  6818. fi
  6819. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6820. done
  6821. case $ac_lo in
  6822. ?*) ac_cv_sizeof_int=$ac_lo;;
  6823. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6824. See \`config.log' for more details." >&5
  6825. echo "$as_me: error: cannot compute sizeof (int), 77
  6826. See \`config.log' for more details." >&2;}
  6827. { (exit 1); exit 1; }; } ;;
  6828. esac
  6829. else
  6830. if test "$cross_compiling" = yes; then
  6831. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6832. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6833. { (exit 1); exit 1; }; }
  6834. else
  6835. cat >conftest.$ac_ext <<_ACEOF
  6836. /* confdefs.h. */
  6837. _ACEOF
  6838. cat confdefs.h >>conftest.$ac_ext
  6839. cat >>conftest.$ac_ext <<_ACEOF
  6840. /* end confdefs.h. */
  6841. $ac_includes_default
  6842. long longval () { return (long) (sizeof (int)); }
  6843. unsigned long ulongval () { return (long) (sizeof (int)); }
  6844. #include <stdio.h>
  6845. #include <stdlib.h>
  6846. int
  6847. main ()
  6848. {
  6849. FILE *f = fopen ("conftest.val", "w");
  6850. if (! f)
  6851. exit (1);
  6852. if (((long) (sizeof (int))) < 0)
  6853. {
  6854. long i = longval ();
  6855. if (i != ((long) (sizeof (int))))
  6856. exit (1);
  6857. fprintf (f, "%ld\n", i);
  6858. }
  6859. else
  6860. {
  6861. unsigned long i = ulongval ();
  6862. if (i != ((long) (sizeof (int))))
  6863. exit (1);
  6864. fprintf (f, "%lu\n", i);
  6865. }
  6866. exit (ferror (f) || fclose (f) != 0);
  6867. ;
  6868. return 0;
  6869. }
  6870. _ACEOF
  6871. rm -f conftest$ac_exeext
  6872. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6873. (eval $ac_link) 2>&5
  6874. ac_status=$?
  6875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6876. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6877. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6878. (eval $ac_try) 2>&5
  6879. ac_status=$?
  6880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6881. (exit $ac_status); }; }; then
  6882. ac_cv_sizeof_int=`cat conftest.val`
  6883. else
  6884. echo "$as_me: program exited with status $ac_status" >&5
  6885. echo "$as_me: failed program was:" >&5
  6886. sed 's/^/| /' conftest.$ac_ext >&5
  6887. ( exit $ac_status )
  6888. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6889. See \`config.log' for more details." >&5
  6890. echo "$as_me: error: cannot compute sizeof (int), 77
  6891. See \`config.log' for more details." >&2;}
  6892. { (exit 1); exit 1; }; }
  6893. fi
  6894. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6895. fi
  6896. fi
  6897. rm -f conftest.val
  6898. else
  6899. ac_cv_sizeof_int=0
  6900. fi
  6901. fi
  6902. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  6903. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  6904. cat >>confdefs.h <<_ACEOF
  6905. #define SIZEOF_INT $ac_cv_sizeof_int
  6906. _ACEOF
  6907. #checkpoint
  6908. cat >confcache <<\_ACEOF
  6909. # This file is a shell script that caches the results of configure
  6910. # tests run on this system so they can be shared between configure
  6911. # scripts and configure runs, see configure's option --config-cache.
  6912. # It is not useful on other systems. If it contains results you don't
  6913. # want to keep, you may remove or edit it.
  6914. #
  6915. # config.status only pays attention to the cache file if you give it
  6916. # the --recheck option to rerun configure.
  6917. #
  6918. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6919. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6920. # following values.
  6921. _ACEOF
  6922. # The following way of writing the cache mishandles newlines in values,
  6923. # but we know of no workaround that is simple, portable, and efficient.
  6924. # So, don't put newlines in cache variables' values.
  6925. # Ultrix sh set writes to stderr and can't be redirected directly,
  6926. # and sets the high bit in the cache file unless we assign to the vars.
  6927. {
  6928. (set) 2>&1 |
  6929. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6930. *ac_space=\ *)
  6931. # `set' does not quote correctly, so add quotes (double-quote
  6932. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6933. sed -n \
  6934. "s/'/'\\\\''/g;
  6935. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6936. ;;
  6937. *)
  6938. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6939. sed -n \
  6940. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  6941. ;;
  6942. esac;
  6943. } |
  6944. sed '
  6945. t clear
  6946. : clear
  6947. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6948. t end
  6949. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6950. : end' >>confcache
  6951. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  6952. if test -w $cache_file; then
  6953. test "x$cache_file" != "x/dev/null"
  6954. cat confcache >$cache_file
  6955. else
  6956. echo "not updating unwritable cache $cache_file"
  6957. fi
  6958. fi
  6959. rm -f confcache
  6960. echo "$as_me:$LINENO: checking for working volatile" >&5
  6961. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  6962. if test "${ac_cv_c_volatile+set}" = set; then
  6963. echo $ECHO_N "(cached) $ECHO_C" >&6
  6964. else
  6965. cat >conftest.$ac_ext <<_ACEOF
  6966. /* confdefs.h. */
  6967. _ACEOF
  6968. cat confdefs.h >>conftest.$ac_ext
  6969. cat >>conftest.$ac_ext <<_ACEOF
  6970. /* end confdefs.h. */
  6971. int
  6972. main ()
  6973. {
  6974. volatile int x;
  6975. int * volatile y;
  6976. ;
  6977. return 0;
  6978. }
  6979. _ACEOF
  6980. rm -f conftest.$ac_objext
  6981. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6982. (eval $ac_compile) 2>conftest.er1
  6983. ac_status=$?
  6984. grep -v '^ *+' conftest.er1 >conftest.err
  6985. rm -f conftest.er1
  6986. cat conftest.err >&5
  6987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6988. (exit $ac_status); } &&
  6989. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6990. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6991. (eval $ac_try) 2>&5
  6992. ac_status=$?
  6993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6994. (exit $ac_status); }; } &&
  6995. { ac_try='test -s conftest.$ac_objext'
  6996. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6997. (eval $ac_try) 2>&5
  6998. ac_status=$?
  6999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7000. (exit $ac_status); }; }; then
  7001. ac_cv_c_volatile=yes
  7002. else
  7003. echo "$as_me: failed program was:" >&5
  7004. sed 's/^/| /' conftest.$ac_ext >&5
  7005. ac_cv_c_volatile=no
  7006. fi
  7007. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7008. fi
  7009. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  7010. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  7011. if test $ac_cv_c_volatile = no; then
  7012. cat >>confdefs.h <<\_ACEOF
  7013. #define volatile
  7014. _ACEOF
  7015. fi
  7016. if test $ac_cv_c_compiler_gnu = yes; then
  7017. echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  7018. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  7019. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  7020. echo $ECHO_N "(cached) $ECHO_C" >&6
  7021. else
  7022. ac_pattern="Autoconf.*'x'"
  7023. cat >conftest.$ac_ext <<_ACEOF
  7024. /* confdefs.h. */
  7025. _ACEOF
  7026. cat confdefs.h >>conftest.$ac_ext
  7027. cat >>conftest.$ac_ext <<_ACEOF
  7028. /* end confdefs.h. */
  7029. #include <sgtty.h>
  7030. Autoconf TIOCGETP
  7031. _ACEOF
  7032. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7033. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7034. ac_cv_prog_gcc_traditional=yes
  7035. else
  7036. ac_cv_prog_gcc_traditional=no
  7037. fi
  7038. rm -f conftest*
  7039. if test $ac_cv_prog_gcc_traditional = no; then
  7040. cat >conftest.$ac_ext <<_ACEOF
  7041. /* confdefs.h. */
  7042. _ACEOF
  7043. cat confdefs.h >>conftest.$ac_ext
  7044. cat >>conftest.$ac_ext <<_ACEOF
  7045. /* end confdefs.h. */
  7046. #include <termio.h>
  7047. Autoconf TCGETA
  7048. _ACEOF
  7049. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7050. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7051. ac_cv_prog_gcc_traditional=yes
  7052. fi
  7053. rm -f conftest*
  7054. fi
  7055. fi
  7056. echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  7057. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  7058. if test $ac_cv_prog_gcc_traditional = yes; then
  7059. CC="$CC -traditional"
  7060. fi
  7061. fi
  7062. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7063. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7064. if test "${ac_cv_struct_tm+set}" = set; then
  7065. echo $ECHO_N "(cached) $ECHO_C" >&6
  7066. else
  7067. cat >conftest.$ac_ext <<_ACEOF
  7068. /* confdefs.h. */
  7069. _ACEOF
  7070. cat confdefs.h >>conftest.$ac_ext
  7071. cat >>conftest.$ac_ext <<_ACEOF
  7072. /* end confdefs.h. */
  7073. #include <sys/types.h>
  7074. #include <time.h>
  7075. int
  7076. main ()
  7077. {
  7078. struct tm *tp; tp->tm_sec;
  7079. ;
  7080. return 0;
  7081. }
  7082. _ACEOF
  7083. rm -f conftest.$ac_objext
  7084. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7085. (eval $ac_compile) 2>conftest.er1
  7086. ac_status=$?
  7087. grep -v '^ *+' conftest.er1 >conftest.err
  7088. rm -f conftest.er1
  7089. cat conftest.err >&5
  7090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7091. (exit $ac_status); } &&
  7092. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7093. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7094. (eval $ac_try) 2>&5
  7095. ac_status=$?
  7096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7097. (exit $ac_status); }; } &&
  7098. { ac_try='test -s conftest.$ac_objext'
  7099. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7100. (eval $ac_try) 2>&5
  7101. ac_status=$?
  7102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7103. (exit $ac_status); }; }; then
  7104. ac_cv_struct_tm=time.h
  7105. else
  7106. echo "$as_me: failed program was:" >&5
  7107. sed 's/^/| /' conftest.$ac_ext >&5
  7108. ac_cv_struct_tm=sys/time.h
  7109. fi
  7110. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7111. fi
  7112. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7113. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7114. if test $ac_cv_struct_tm = sys/time.h; then
  7115. cat >>confdefs.h <<\_ACEOF
  7116. #define TM_IN_SYS_TIME 1
  7117. _ACEOF
  7118. fi
  7119. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  7120. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  7121. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  7122. echo $ECHO_N "(cached) $ECHO_C" >&6
  7123. else
  7124. cat >conftest.$ac_ext <<_ACEOF
  7125. /* confdefs.h. */
  7126. _ACEOF
  7127. cat confdefs.h >>conftest.$ac_ext
  7128. cat >>conftest.$ac_ext <<_ACEOF
  7129. /* end confdefs.h. */
  7130. #include <sys/types.h>
  7131. #include <$ac_cv_struct_tm>
  7132. int
  7133. main ()
  7134. {
  7135. static struct tm ac_aggr;
  7136. if (ac_aggr.tm_zone)
  7137. return 0;
  7138. ;
  7139. return 0;
  7140. }
  7141. _ACEOF
  7142. rm -f conftest.$ac_objext
  7143. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7144. (eval $ac_compile) 2>conftest.er1
  7145. ac_status=$?
  7146. grep -v '^ *+' conftest.er1 >conftest.err
  7147. rm -f conftest.er1
  7148. cat conftest.err >&5
  7149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7150. (exit $ac_status); } &&
  7151. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7152. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7153. (eval $ac_try) 2>&5
  7154. ac_status=$?
  7155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7156. (exit $ac_status); }; } &&
  7157. { ac_try='test -s conftest.$ac_objext'
  7158. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7159. (eval $ac_try) 2>&5
  7160. ac_status=$?
  7161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7162. (exit $ac_status); }; }; then
  7163. ac_cv_member_struct_tm_tm_zone=yes
  7164. else
  7165. echo "$as_me: failed program was:" >&5
  7166. sed 's/^/| /' conftest.$ac_ext >&5
  7167. cat >conftest.$ac_ext <<_ACEOF
  7168. /* confdefs.h. */
  7169. _ACEOF
  7170. cat confdefs.h >>conftest.$ac_ext
  7171. cat >>conftest.$ac_ext <<_ACEOF
  7172. /* end confdefs.h. */
  7173. #include <sys/types.h>
  7174. #include <$ac_cv_struct_tm>
  7175. int
  7176. main ()
  7177. {
  7178. static struct tm ac_aggr;
  7179. if (sizeof ac_aggr.tm_zone)
  7180. return 0;
  7181. ;
  7182. return 0;
  7183. }
  7184. _ACEOF
  7185. rm -f conftest.$ac_objext
  7186. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7187. (eval $ac_compile) 2>conftest.er1
  7188. ac_status=$?
  7189. grep -v '^ *+' conftest.er1 >conftest.err
  7190. rm -f conftest.er1
  7191. cat conftest.err >&5
  7192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7193. (exit $ac_status); } &&
  7194. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7195. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7196. (eval $ac_try) 2>&5
  7197. ac_status=$?
  7198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7199. (exit $ac_status); }; } &&
  7200. { ac_try='test -s conftest.$ac_objext'
  7201. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7202. (eval $ac_try) 2>&5
  7203. ac_status=$?
  7204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7205. (exit $ac_status); }; }; then
  7206. ac_cv_member_struct_tm_tm_zone=yes
  7207. else
  7208. echo "$as_me: failed program was:" >&5
  7209. sed 's/^/| /' conftest.$ac_ext >&5
  7210. ac_cv_member_struct_tm_tm_zone=no
  7211. fi
  7212. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7213. fi
  7214. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7215. fi
  7216. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  7217. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  7218. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  7219. cat >>confdefs.h <<_ACEOF
  7220. #define HAVE_STRUCT_TM_TM_ZONE 1
  7221. _ACEOF
  7222. fi
  7223. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  7224. cat >>confdefs.h <<\_ACEOF
  7225. #define HAVE_TM_ZONE 1
  7226. _ACEOF
  7227. else
  7228. echo "$as_me:$LINENO: checking for tzname" >&5
  7229. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  7230. if test "${ac_cv_var_tzname+set}" = set; then
  7231. echo $ECHO_N "(cached) $ECHO_C" >&6
  7232. else
  7233. cat >conftest.$ac_ext <<_ACEOF
  7234. /* confdefs.h. */
  7235. _ACEOF
  7236. cat confdefs.h >>conftest.$ac_ext
  7237. cat >>conftest.$ac_ext <<_ACEOF
  7238. /* end confdefs.h. */
  7239. #include <time.h>
  7240. #ifndef tzname /* For SGI. */
  7241. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  7242. #endif
  7243. int
  7244. main ()
  7245. {
  7246. atoi(*tzname);
  7247. ;
  7248. return 0;
  7249. }
  7250. _ACEOF
  7251. rm -f conftest.$ac_objext conftest$ac_exeext
  7252. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7253. (eval $ac_link) 2>conftest.er1
  7254. ac_status=$?
  7255. grep -v '^ *+' conftest.er1 >conftest.err
  7256. rm -f conftest.er1
  7257. cat conftest.err >&5
  7258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7259. (exit $ac_status); } &&
  7260. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7261. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7262. (eval $ac_try) 2>&5
  7263. ac_status=$?
  7264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7265. (exit $ac_status); }; } &&
  7266. { ac_try='test -s conftest$ac_exeext'
  7267. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7268. (eval $ac_try) 2>&5
  7269. ac_status=$?
  7270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7271. (exit $ac_status); }; }; then
  7272. ac_cv_var_tzname=yes
  7273. else
  7274. echo "$as_me: failed program was:" >&5
  7275. sed 's/^/| /' conftest.$ac_ext >&5
  7276. ac_cv_var_tzname=no
  7277. fi
  7278. rm -f conftest.err conftest.$ac_objext \
  7279. conftest$ac_exeext conftest.$ac_ext
  7280. fi
  7281. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  7282. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  7283. if test $ac_cv_var_tzname = yes; then
  7284. cat >>confdefs.h <<\_ACEOF
  7285. #define HAVE_TZNAME 1
  7286. _ACEOF
  7287. fi
  7288. fi
  7289. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7290. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7291. if test "${ac_cv_struct_tm+set}" = set; then
  7292. echo $ECHO_N "(cached) $ECHO_C" >&6
  7293. else
  7294. cat >conftest.$ac_ext <<_ACEOF
  7295. /* confdefs.h. */
  7296. _ACEOF
  7297. cat confdefs.h >>conftest.$ac_ext
  7298. cat >>conftest.$ac_ext <<_ACEOF
  7299. /* end confdefs.h. */
  7300. #include <sys/types.h>
  7301. #include <time.h>
  7302. int
  7303. main ()
  7304. {
  7305. struct tm *tp; tp->tm_sec;
  7306. ;
  7307. return 0;
  7308. }
  7309. _ACEOF
  7310. rm -f conftest.$ac_objext
  7311. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7312. (eval $ac_compile) 2>conftest.er1
  7313. ac_status=$?
  7314. grep -v '^ *+' conftest.er1 >conftest.err
  7315. rm -f conftest.er1
  7316. cat conftest.err >&5
  7317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7318. (exit $ac_status); } &&
  7319. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7320. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7321. (eval $ac_try) 2>&5
  7322. ac_status=$?
  7323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7324. (exit $ac_status); }; } &&
  7325. { ac_try='test -s conftest.$ac_objext'
  7326. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7327. (eval $ac_try) 2>&5
  7328. ac_status=$?
  7329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7330. (exit $ac_status); }; }; then
  7331. ac_cv_struct_tm=time.h
  7332. else
  7333. echo "$as_me: failed program was:" >&5
  7334. sed 's/^/| /' conftest.$ac_ext >&5
  7335. ac_cv_struct_tm=sys/time.h
  7336. fi
  7337. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7338. fi
  7339. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7340. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7341. if test $ac_cv_struct_tm = sys/time.h; then
  7342. cat >>confdefs.h <<\_ACEOF
  7343. #define TM_IN_SYS_TIME 1
  7344. _ACEOF
  7345. fi
  7346. #checkpoint
  7347. cat >confcache <<\_ACEOF
  7348. # This file is a shell script that caches the results of configure
  7349. # tests run on this system so they can be shared between configure
  7350. # scripts and configure runs, see configure's option --config-cache.
  7351. # It is not useful on other systems. If it contains results you don't
  7352. # want to keep, you may remove or edit it.
  7353. #
  7354. # config.status only pays attention to the cache file if you give it
  7355. # the --recheck option to rerun configure.
  7356. #
  7357. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7358. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7359. # following values.
  7360. _ACEOF
  7361. # The following way of writing the cache mishandles newlines in values,
  7362. # but we know of no workaround that is simple, portable, and efficient.
  7363. # So, don't put newlines in cache variables' values.
  7364. # Ultrix sh set writes to stderr and can't be redirected directly,
  7365. # and sets the high bit in the cache file unless we assign to the vars.
  7366. {
  7367. (set) 2>&1 |
  7368. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7369. *ac_space=\ *)
  7370. # `set' does not quote correctly, so add quotes (double-quote
  7371. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7372. sed -n \
  7373. "s/'/'\\\\''/g;
  7374. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7375. ;;
  7376. *)
  7377. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7378. sed -n \
  7379. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7380. ;;
  7381. esac;
  7382. } |
  7383. sed '
  7384. t clear
  7385. : clear
  7386. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7387. t end
  7388. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7389. : end' >>confcache
  7390. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7391. if test -w $cache_file; then
  7392. test "x$cache_file" != "x/dev/null"
  7393. cat confcache >$cache_file
  7394. else
  7395. echo "not updating unwritable cache $cache_file"
  7396. fi
  7397. fi
  7398. rm -f confcache
  7399. # Check for IPv6 support
  7400. #EGG_IPV6_SUPPORTED
  7401. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  7402. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  7403. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  7404. if test "${enable_ipv6+set}" = set; then
  7405. enableval="$enable_ipv6"
  7406. ac_cv_dipv6="yes"
  7407. echo "$as_me:$LINENO: result: yes" >&5
  7408. echo "${ECHO_T}yes" >&6
  7409. else
  7410. ac_cv_dipv6="no"
  7411. if test "$egg_cv_ipv6_supported" = "no"; then
  7412. ac_cv_dipv6="no"
  7413. fi
  7414. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  7415. echo "${ECHO_T}$ac_cv_dipv6" >&6
  7416. fi;
  7417. if test "$ac_cv_dipv6" = "no"; then
  7418. cat >>confdefs.h <<\_ACEOF
  7419. #define USE_IPV6 1
  7420. _ACEOF
  7421. fi
  7422. echo "$as_me:$LINENO: checking for socklen_t" >&5
  7423. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  7424. if test "${egg_cv_socklen_t+set}" = set; then
  7425. echo $ECHO_N "(cached) $ECHO_C" >&6
  7426. else
  7427. if test "$cross_compiling" = yes; then
  7428. egg_cv_socklen_t=no
  7429. else
  7430. cat >conftest.$ac_ext <<_ACEOF
  7431. /* confdefs.h. */
  7432. _ACEOF
  7433. cat confdefs.h >>conftest.$ac_ext
  7434. cat >>conftest.$ac_ext <<_ACEOF
  7435. /* end confdefs.h. */
  7436. #include <unistd.h>
  7437. #include <sys/types.h>
  7438. #include <sys/socket.h>
  7439. #include <netinet/in.h>
  7440. #include <arpa/inet.h>
  7441. int main()
  7442. {
  7443. socklen_t test = sizeof(int);
  7444. return 0;
  7445. }
  7446. _ACEOF
  7447. rm -f conftest$ac_exeext
  7448. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7449. (eval $ac_link) 2>&5
  7450. ac_status=$?
  7451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7452. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7453. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7454. (eval $ac_try) 2>&5
  7455. ac_status=$?
  7456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7457. (exit $ac_status); }; }; then
  7458. egg_cv_socklen_t=yes
  7459. else
  7460. echo "$as_me: program exited with status $ac_status" >&5
  7461. echo "$as_me: failed program was:" >&5
  7462. sed 's/^/| /' conftest.$ac_ext >&5
  7463. ( exit $ac_status )
  7464. egg_cv_socklen_t=no
  7465. fi
  7466. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7467. fi
  7468. fi
  7469. if test "$egg_cv_socklen_t" = "yes"; then
  7470. cat >>confdefs.h <<\_ACEOF
  7471. #define HAVE_SOCKLEN_T 1
  7472. _ACEOF
  7473. echo "$as_me:$LINENO: result: yes" >&5
  7474. echo "${ECHO_T}yes" >&6
  7475. else
  7476. echo "$as_me:$LINENO: result: no" >&5
  7477. echo "${ECHO_T}no" >&6
  7478. fi
  7479. # Checks for library functions
  7480. #checkpoint
  7481. cat >confcache <<\_ACEOF
  7482. # This file is a shell script that caches the results of configure
  7483. # tests run on this system so they can be shared between configure
  7484. # scripts and configure runs, see configure's option --config-cache.
  7485. # It is not useful on other systems. If it contains results you don't
  7486. # want to keep, you may remove or edit it.
  7487. #
  7488. # config.status only pays attention to the cache file if you give it
  7489. # the --recheck option to rerun configure.
  7490. #
  7491. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7492. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7493. # following values.
  7494. _ACEOF
  7495. # The following way of writing the cache mishandles newlines in values,
  7496. # but we know of no workaround that is simple, portable, and efficient.
  7497. # So, don't put newlines in cache variables' values.
  7498. # Ultrix sh set writes to stderr and can't be redirected directly,
  7499. # and sets the high bit in the cache file unless we assign to the vars.
  7500. {
  7501. (set) 2>&1 |
  7502. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7503. *ac_space=\ *)
  7504. # `set' does not quote correctly, so add quotes (double-quote
  7505. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7506. sed -n \
  7507. "s/'/'\\\\''/g;
  7508. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7509. ;;
  7510. *)
  7511. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7512. sed -n \
  7513. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7514. ;;
  7515. esac;
  7516. } |
  7517. sed '
  7518. t clear
  7519. : clear
  7520. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7521. t end
  7522. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7523. : end' >>confcache
  7524. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7525. if test -w $cache_file; then
  7526. test "x$cache_file" != "x/dev/null"
  7527. cat confcache >$cache_file
  7528. else
  7529. echo "not updating unwritable cache $cache_file"
  7530. fi
  7531. fi
  7532. rm -f confcache
  7533. # Checks for library functions.
  7534. for ac_header in unistd.h vfork.h
  7535. do
  7536. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7537. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7538. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7539. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7540. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7541. echo $ECHO_N "(cached) $ECHO_C" >&6
  7542. fi
  7543. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7544. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7545. else
  7546. # Is the header compilable?
  7547. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7548. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7549. cat >conftest.$ac_ext <<_ACEOF
  7550. /* confdefs.h. */
  7551. _ACEOF
  7552. cat confdefs.h >>conftest.$ac_ext
  7553. cat >>conftest.$ac_ext <<_ACEOF
  7554. /* end confdefs.h. */
  7555. $ac_includes_default
  7556. #include <$ac_header>
  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_header_compiler=yes
  7580. else
  7581. echo "$as_me: failed program was:" >&5
  7582. sed 's/^/| /' conftest.$ac_ext >&5
  7583. ac_header_compiler=no
  7584. fi
  7585. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7586. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7587. echo "${ECHO_T}$ac_header_compiler" >&6
  7588. # Is the header present?
  7589. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7590. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7591. cat >conftest.$ac_ext <<_ACEOF
  7592. /* confdefs.h. */
  7593. _ACEOF
  7594. cat confdefs.h >>conftest.$ac_ext
  7595. cat >>conftest.$ac_ext <<_ACEOF
  7596. /* end confdefs.h. */
  7597. #include <$ac_header>
  7598. _ACEOF
  7599. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7600. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7601. ac_status=$?
  7602. grep -v '^ *+' conftest.er1 >conftest.err
  7603. rm -f conftest.er1
  7604. cat conftest.err >&5
  7605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7606. (exit $ac_status); } >/dev/null; then
  7607. if test -s conftest.err; then
  7608. ac_cpp_err=$ac_c_preproc_warn_flag
  7609. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7610. else
  7611. ac_cpp_err=
  7612. fi
  7613. else
  7614. ac_cpp_err=yes
  7615. fi
  7616. if test -z "$ac_cpp_err"; then
  7617. ac_header_preproc=yes
  7618. else
  7619. echo "$as_me: failed program was:" >&5
  7620. sed 's/^/| /' conftest.$ac_ext >&5
  7621. ac_header_preproc=no
  7622. fi
  7623. rm -f conftest.err conftest.$ac_ext
  7624. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7625. echo "${ECHO_T}$ac_header_preproc" >&6
  7626. # So? What about this header?
  7627. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7628. yes:no: )
  7629. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7630. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7631. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7632. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7633. ac_header_preproc=yes
  7634. ;;
  7635. no:yes:* )
  7636. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7637. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7638. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7639. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7640. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7641. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7642. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7643. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7644. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7645. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7646. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7647. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7648. (
  7649. cat <<\_ASBOX
  7650. ## ------------------------------------------ ##
  7651. ## Report this to the AC_PACKAGE_NAME lists. ##
  7652. ## ------------------------------------------ ##
  7653. _ASBOX
  7654. ) |
  7655. sed "s/^/$as_me: WARNING: /" >&2
  7656. ;;
  7657. esac
  7658. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7659. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7660. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7661. echo $ECHO_N "(cached) $ECHO_C" >&6
  7662. else
  7663. eval "$as_ac_Header=\$ac_header_preproc"
  7664. fi
  7665. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7666. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7667. fi
  7668. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7669. cat >>confdefs.h <<_ACEOF
  7670. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7671. _ACEOF
  7672. fi
  7673. done
  7674. for ac_func in fork vfork
  7675. do
  7676. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7677. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7678. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7679. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7680. echo $ECHO_N "(cached) $ECHO_C" >&6
  7681. else
  7682. cat >conftest.$ac_ext <<_ACEOF
  7683. /* confdefs.h. */
  7684. _ACEOF
  7685. cat confdefs.h >>conftest.$ac_ext
  7686. cat >>conftest.$ac_ext <<_ACEOF
  7687. /* end confdefs.h. */
  7688. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7689. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7690. #define $ac_func innocuous_$ac_func
  7691. /* System header to define __stub macros and hopefully few prototypes,
  7692. which can conflict with char $ac_func (); below.
  7693. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7694. <limits.h> exists even on freestanding compilers. */
  7695. #ifdef __STDC__
  7696. # include <limits.h>
  7697. #else
  7698. # include <assert.h>
  7699. #endif
  7700. #undef $ac_func
  7701. /* Override any gcc2 internal prototype to avoid an error. */
  7702. #ifdef __cplusplus
  7703. extern "C"
  7704. {
  7705. #endif
  7706. /* We use char because int might match the return type of a gcc2
  7707. builtin and then its argument prototype would still apply. */
  7708. char $ac_func ();
  7709. /* The GNU C library defines this for functions which it implements
  7710. to always fail with ENOSYS. Some functions are actually named
  7711. something starting with __ and the normal name is an alias. */
  7712. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7713. choke me
  7714. #else
  7715. char (*f) () = $ac_func;
  7716. #endif
  7717. #ifdef __cplusplus
  7718. }
  7719. #endif
  7720. int
  7721. main ()
  7722. {
  7723. return f != $ac_func;
  7724. ;
  7725. return 0;
  7726. }
  7727. _ACEOF
  7728. rm -f conftest.$ac_objext conftest$ac_exeext
  7729. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7730. (eval $ac_link) 2>conftest.er1
  7731. ac_status=$?
  7732. grep -v '^ *+' conftest.er1 >conftest.err
  7733. rm -f conftest.er1
  7734. cat conftest.err >&5
  7735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7736. (exit $ac_status); } &&
  7737. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7738. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7739. (eval $ac_try) 2>&5
  7740. ac_status=$?
  7741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7742. (exit $ac_status); }; } &&
  7743. { ac_try='test -s conftest$ac_exeext'
  7744. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7745. (eval $ac_try) 2>&5
  7746. ac_status=$?
  7747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7748. (exit $ac_status); }; }; then
  7749. eval "$as_ac_var=yes"
  7750. else
  7751. echo "$as_me: failed program was:" >&5
  7752. sed 's/^/| /' conftest.$ac_ext >&5
  7753. eval "$as_ac_var=no"
  7754. fi
  7755. rm -f conftest.err conftest.$ac_objext \
  7756. conftest$ac_exeext conftest.$ac_ext
  7757. fi
  7758. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7759. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7760. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7761. cat >>confdefs.h <<_ACEOF
  7762. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7763. _ACEOF
  7764. fi
  7765. done
  7766. if test "x$ac_cv_func_fork" = xyes; then
  7767. echo "$as_me:$LINENO: checking for working fork" >&5
  7768. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  7769. if test "${ac_cv_func_fork_works+set}" = set; then
  7770. echo $ECHO_N "(cached) $ECHO_C" >&6
  7771. else
  7772. if test "$cross_compiling" = yes; then
  7773. ac_cv_func_fork_works=cross
  7774. else
  7775. cat >conftest.$ac_ext <<_ACEOF
  7776. /* By Ruediger Kuhlmann. */
  7777. #include <sys/types.h>
  7778. #if HAVE_UNISTD_H
  7779. # include <unistd.h>
  7780. #endif
  7781. /* Some systems only have a dummy stub for fork() */
  7782. int main ()
  7783. {
  7784. if (fork() < 0)
  7785. exit (1);
  7786. exit (0);
  7787. }
  7788. _ACEOF
  7789. rm -f conftest$ac_exeext
  7790. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7791. (eval $ac_link) 2>&5
  7792. ac_status=$?
  7793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7794. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7795. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7796. (eval $ac_try) 2>&5
  7797. ac_status=$?
  7798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7799. (exit $ac_status); }; }; then
  7800. ac_cv_func_fork_works=yes
  7801. else
  7802. echo "$as_me: program exited with status $ac_status" >&5
  7803. echo "$as_me: failed program was:" >&5
  7804. sed 's/^/| /' conftest.$ac_ext >&5
  7805. ( exit $ac_status )
  7806. ac_cv_func_fork_works=no
  7807. fi
  7808. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7809. fi
  7810. fi
  7811. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  7812. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  7813. else
  7814. ac_cv_func_fork_works=$ac_cv_func_fork
  7815. fi
  7816. if test "x$ac_cv_func_fork_works" = xcross; then
  7817. case $host in
  7818. *-*-amigaos* | *-*-msdosdjgpp*)
  7819. # Override, as these systems have only a dummy fork() stub
  7820. ac_cv_func_fork_works=no
  7821. ;;
  7822. *)
  7823. ac_cv_func_fork_works=yes
  7824. ;;
  7825. esac
  7826. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  7827. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  7828. fi
  7829. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7830. if test "x$ac_cv_func_vfork" = xyes; then
  7831. echo "$as_me:$LINENO: checking for working vfork" >&5
  7832. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  7833. if test "${ac_cv_func_vfork_works+set}" = set; then
  7834. echo $ECHO_N "(cached) $ECHO_C" >&6
  7835. else
  7836. if test "$cross_compiling" = yes; then
  7837. ac_cv_func_vfork_works=cross
  7838. else
  7839. cat >conftest.$ac_ext <<_ACEOF
  7840. /* confdefs.h. */
  7841. _ACEOF
  7842. cat confdefs.h >>conftest.$ac_ext
  7843. cat >>conftest.$ac_ext <<_ACEOF
  7844. /* end confdefs.h. */
  7845. /* Thanks to Paul Eggert for this test. */
  7846. #include <stdio.h>
  7847. #include <stdlib.h>
  7848. #include <sys/types.h>
  7849. #include <sys/stat.h>
  7850. #include <sys/wait.h>
  7851. #if HAVE_UNISTD_H
  7852. # include <unistd.h>
  7853. #endif
  7854. #if HAVE_VFORK_H
  7855. # include <vfork.h>
  7856. #endif
  7857. /* On some sparc systems, changes by the child to local and incoming
  7858. argument registers are propagated back to the parent. The compiler
  7859. is told about this with #include <vfork.h>, but some compilers
  7860. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  7861. static variable whose address is put into a register that is
  7862. clobbered by the vfork. */
  7863. static void
  7864. #ifdef __cplusplus
  7865. sparc_address_test (int arg)
  7866. # else
  7867. sparc_address_test (arg) int arg;
  7868. #endif
  7869. {
  7870. static pid_t child;
  7871. if (!child) {
  7872. child = vfork ();
  7873. if (child < 0) {
  7874. perror ("vfork");
  7875. _exit(2);
  7876. }
  7877. if (!child) {
  7878. arg = getpid();
  7879. write(-1, "", 0);
  7880. _exit (arg);
  7881. }
  7882. }
  7883. }
  7884. int
  7885. main ()
  7886. {
  7887. pid_t parent = getpid ();
  7888. pid_t child;
  7889. sparc_address_test (0);
  7890. child = vfork ();
  7891. if (child == 0) {
  7892. /* Here is another test for sparc vfork register problems. This
  7893. test uses lots of local variables, at least as many local
  7894. variables as main has allocated so far including compiler
  7895. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  7896. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  7897. reuse the register of parent for one of the local variables,
  7898. since it will think that parent can't possibly be used any more
  7899. in this routine. Assigning to the local variable will thus
  7900. munge parent in the parent process. */
  7901. pid_t
  7902. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  7903. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  7904. /* Convince the compiler that p..p7 are live; otherwise, it might
  7905. use the same hardware register for all 8 local variables. */
  7906. if (p != p1 || p != p2 || p != p3 || p != p4
  7907. || p != p5 || p != p6 || p != p7)
  7908. _exit(1);
  7909. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  7910. from child file descriptors. If the child closes a descriptor
  7911. before it execs or exits, this munges the parent's descriptor
  7912. as well. Test for this by closing stdout in the child. */
  7913. _exit(close(fileno(stdout)) != 0);
  7914. } else {
  7915. int status;
  7916. struct stat st;
  7917. while (wait(&status) != child)
  7918. ;
  7919. exit(
  7920. /* Was there some problem with vforking? */
  7921. child < 0
  7922. /* Did the child fail? (This shouldn't happen.) */
  7923. || status
  7924. /* Did the vfork/compiler bug occur? */
  7925. || parent != getpid()
  7926. /* Did the file descriptor bug occur? */
  7927. || fstat(fileno(stdout), &st) != 0
  7928. );
  7929. }
  7930. }
  7931. _ACEOF
  7932. rm -f conftest$ac_exeext
  7933. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7934. (eval $ac_link) 2>&5
  7935. ac_status=$?
  7936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7937. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7938. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7939. (eval $ac_try) 2>&5
  7940. ac_status=$?
  7941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7942. (exit $ac_status); }; }; then
  7943. ac_cv_func_vfork_works=yes
  7944. else
  7945. echo "$as_me: program exited with status $ac_status" >&5
  7946. echo "$as_me: failed program was:" >&5
  7947. sed 's/^/| /' conftest.$ac_ext >&5
  7948. ( exit $ac_status )
  7949. ac_cv_func_vfork_works=no
  7950. fi
  7951. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7952. fi
  7953. fi
  7954. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  7955. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  7956. fi;
  7957. if test "x$ac_cv_func_fork_works" = xcross; then
  7958. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7959. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  7960. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  7961. fi
  7962. if test "x$ac_cv_func_vfork_works" = xyes; then
  7963. cat >>confdefs.h <<\_ACEOF
  7964. #define HAVE_WORKING_VFORK 1
  7965. _ACEOF
  7966. else
  7967. cat >>confdefs.h <<\_ACEOF
  7968. #define vfork fork
  7969. _ACEOF
  7970. fi
  7971. if test "x$ac_cv_func_fork_works" = xyes; then
  7972. cat >>confdefs.h <<\_ACEOF
  7973. #define HAVE_WORKING_FORK 1
  7974. _ACEOF
  7975. fi
  7976. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  7977. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  7978. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  7979. echo $ECHO_N "(cached) $ECHO_C" >&6
  7980. else
  7981. rm -f conftest.sym conftest.file
  7982. echo >conftest.file
  7983. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  7984. if test "$cross_compiling" = yes; then
  7985. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7986. else
  7987. cat >conftest.$ac_ext <<_ACEOF
  7988. /* confdefs.h. */
  7989. _ACEOF
  7990. cat confdefs.h >>conftest.$ac_ext
  7991. cat >>conftest.$ac_ext <<_ACEOF
  7992. /* end confdefs.h. */
  7993. $ac_includes_default
  7994. int
  7995. main ()
  7996. {
  7997. struct stat sbuf;
  7998. /* Linux will dereference the symlink and fail.
  7999. That is better in the sense that it means we will not
  8000. have to compile and use the lstat wrapper. */
  8001. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8002. ;
  8003. return 0;
  8004. }
  8005. _ACEOF
  8006. rm -f conftest$ac_exeext
  8007. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8008. (eval $ac_link) 2>&5
  8009. ac_status=$?
  8010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8011. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8012. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8013. (eval $ac_try) 2>&5
  8014. ac_status=$?
  8015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8016. (exit $ac_status); }; }; then
  8017. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8018. else
  8019. echo "$as_me: program exited with status $ac_status" >&5
  8020. echo "$as_me: failed program was:" >&5
  8021. sed 's/^/| /' conftest.$ac_ext >&5
  8022. ( exit $ac_status )
  8023. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8024. fi
  8025. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8026. fi
  8027. else
  8028. # If the `ln -s' command failed, then we probably don't even
  8029. # have an lstat function.
  8030. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8031. fi
  8032. rm -f conftest.sym conftest.file
  8033. fi
  8034. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8035. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8036. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8037. cat >>confdefs.h <<_ACEOF
  8038. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8039. _ACEOF
  8040. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8041. case $LIBOBJS in
  8042. "lstat.$ac_objext" | \
  8043. *" lstat.$ac_objext" | \
  8044. "lstat.$ac_objext "* | \
  8045. *" lstat.$ac_objext "* ) ;;
  8046. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8047. esac
  8048. fi
  8049. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8050. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  8051. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8052. echo $ECHO_N "(cached) $ECHO_C" >&6
  8053. else
  8054. if test "$cross_compiling" = yes; then
  8055. ac_cv_func_lstat_empty_string_bug=yes
  8056. else
  8057. cat >conftest.$ac_ext <<_ACEOF
  8058. /* confdefs.h. */
  8059. _ACEOF
  8060. cat confdefs.h >>conftest.$ac_ext
  8061. cat >>conftest.$ac_ext <<_ACEOF
  8062. /* end confdefs.h. */
  8063. $ac_includes_default
  8064. int
  8065. main ()
  8066. {
  8067. struct stat sbuf;
  8068. exit (lstat ("", &sbuf) ? 1 : 0);
  8069. ;
  8070. return 0;
  8071. }
  8072. _ACEOF
  8073. rm -f conftest$ac_exeext
  8074. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8075. (eval $ac_link) 2>&5
  8076. ac_status=$?
  8077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8078. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8079. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8080. (eval $ac_try) 2>&5
  8081. ac_status=$?
  8082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8083. (exit $ac_status); }; }; then
  8084. ac_cv_func_lstat_empty_string_bug=yes
  8085. else
  8086. echo "$as_me: program exited with status $ac_status" >&5
  8087. echo "$as_me: failed program was:" >&5
  8088. sed 's/^/| /' conftest.$ac_ext >&5
  8089. ( exit $ac_status )
  8090. ac_cv_func_lstat_empty_string_bug=no
  8091. fi
  8092. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8093. fi
  8094. fi
  8095. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  8096. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  8097. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  8098. case $LIBOBJS in
  8099. "lstat.$ac_objext" | \
  8100. *" lstat.$ac_objext" | \
  8101. "lstat.$ac_objext "* | \
  8102. *" lstat.$ac_objext "* ) ;;
  8103. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8104. esac
  8105. cat >>confdefs.h <<_ACEOF
  8106. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  8107. _ACEOF
  8108. fi
  8109. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8110. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8111. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8112. echo $ECHO_N "(cached) $ECHO_C" >&6
  8113. else
  8114. rm -f conftest.sym conftest.file
  8115. echo >conftest.file
  8116. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8117. if test "$cross_compiling" = yes; then
  8118. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8119. else
  8120. cat >conftest.$ac_ext <<_ACEOF
  8121. /* confdefs.h. */
  8122. _ACEOF
  8123. cat confdefs.h >>conftest.$ac_ext
  8124. cat >>conftest.$ac_ext <<_ACEOF
  8125. /* end confdefs.h. */
  8126. $ac_includes_default
  8127. int
  8128. main ()
  8129. {
  8130. struct stat sbuf;
  8131. /* Linux will dereference the symlink and fail.
  8132. That is better in the sense that it means we will not
  8133. have to compile and use the lstat wrapper. */
  8134. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8135. ;
  8136. return 0;
  8137. }
  8138. _ACEOF
  8139. rm -f conftest$ac_exeext
  8140. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8141. (eval $ac_link) 2>&5
  8142. ac_status=$?
  8143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8144. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8145. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8146. (eval $ac_try) 2>&5
  8147. ac_status=$?
  8148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8149. (exit $ac_status); }; }; then
  8150. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8151. else
  8152. echo "$as_me: program exited with status $ac_status" >&5
  8153. echo "$as_me: failed program was:" >&5
  8154. sed 's/^/| /' conftest.$ac_ext >&5
  8155. ( exit $ac_status )
  8156. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8157. fi
  8158. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8159. fi
  8160. else
  8161. # If the `ln -s' command failed, then we probably don't even
  8162. # have an lstat function.
  8163. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8164. fi
  8165. rm -f conftest.sym conftest.file
  8166. fi
  8167. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8168. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8169. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8170. cat >>confdefs.h <<_ACEOF
  8171. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8172. _ACEOF
  8173. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8174. case $LIBOBJS in
  8175. "lstat.$ac_objext" | \
  8176. *" lstat.$ac_objext" | \
  8177. "lstat.$ac_objext "* | \
  8178. *" lstat.$ac_objext "* ) ;;
  8179. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8180. esac
  8181. fi
  8182. for ac_header in stdlib.h
  8183. do
  8184. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8185. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8186. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8187. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8188. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8189. echo $ECHO_N "(cached) $ECHO_C" >&6
  8190. fi
  8191. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8192. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8193. else
  8194. # Is the header compilable?
  8195. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8196. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8197. cat >conftest.$ac_ext <<_ACEOF
  8198. /* confdefs.h. */
  8199. _ACEOF
  8200. cat confdefs.h >>conftest.$ac_ext
  8201. cat >>conftest.$ac_ext <<_ACEOF
  8202. /* end confdefs.h. */
  8203. $ac_includes_default
  8204. #include <$ac_header>
  8205. _ACEOF
  8206. rm -f conftest.$ac_objext
  8207. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8208. (eval $ac_compile) 2>conftest.er1
  8209. ac_status=$?
  8210. grep -v '^ *+' conftest.er1 >conftest.err
  8211. rm -f conftest.er1
  8212. cat conftest.err >&5
  8213. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8214. (exit $ac_status); } &&
  8215. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8216. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8217. (eval $ac_try) 2>&5
  8218. ac_status=$?
  8219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8220. (exit $ac_status); }; } &&
  8221. { ac_try='test -s conftest.$ac_objext'
  8222. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8223. (eval $ac_try) 2>&5
  8224. ac_status=$?
  8225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8226. (exit $ac_status); }; }; then
  8227. ac_header_compiler=yes
  8228. else
  8229. echo "$as_me: failed program was:" >&5
  8230. sed 's/^/| /' conftest.$ac_ext >&5
  8231. ac_header_compiler=no
  8232. fi
  8233. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8234. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8235. echo "${ECHO_T}$ac_header_compiler" >&6
  8236. # Is the header present?
  8237. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8238. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8239. cat >conftest.$ac_ext <<_ACEOF
  8240. /* confdefs.h. */
  8241. _ACEOF
  8242. cat confdefs.h >>conftest.$ac_ext
  8243. cat >>conftest.$ac_ext <<_ACEOF
  8244. /* end confdefs.h. */
  8245. #include <$ac_header>
  8246. _ACEOF
  8247. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8248. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8249. ac_status=$?
  8250. grep -v '^ *+' conftest.er1 >conftest.err
  8251. rm -f conftest.er1
  8252. cat conftest.err >&5
  8253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8254. (exit $ac_status); } >/dev/null; then
  8255. if test -s conftest.err; then
  8256. ac_cpp_err=$ac_c_preproc_warn_flag
  8257. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8258. else
  8259. ac_cpp_err=
  8260. fi
  8261. else
  8262. ac_cpp_err=yes
  8263. fi
  8264. if test -z "$ac_cpp_err"; then
  8265. ac_header_preproc=yes
  8266. else
  8267. echo "$as_me: failed program was:" >&5
  8268. sed 's/^/| /' conftest.$ac_ext >&5
  8269. ac_header_preproc=no
  8270. fi
  8271. rm -f conftest.err conftest.$ac_ext
  8272. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8273. echo "${ECHO_T}$ac_header_preproc" >&6
  8274. # So? What about this header?
  8275. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8276. yes:no: )
  8277. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8278. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8279. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8280. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8281. ac_header_preproc=yes
  8282. ;;
  8283. no:yes:* )
  8284. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8285. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8286. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8287. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8288. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8289. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8290. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8291. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8292. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8293. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8294. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8295. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8296. (
  8297. cat <<\_ASBOX
  8298. ## ------------------------------------------ ##
  8299. ## Report this to the AC_PACKAGE_NAME lists. ##
  8300. ## ------------------------------------------ ##
  8301. _ASBOX
  8302. ) |
  8303. sed "s/^/$as_me: WARNING: /" >&2
  8304. ;;
  8305. esac
  8306. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8307. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8308. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8309. echo $ECHO_N "(cached) $ECHO_C" >&6
  8310. else
  8311. eval "$as_ac_Header=\$ac_header_preproc"
  8312. fi
  8313. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8314. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8315. fi
  8316. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8317. cat >>confdefs.h <<_ACEOF
  8318. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8319. _ACEOF
  8320. fi
  8321. done
  8322. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8323. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  8324. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8325. echo $ECHO_N "(cached) $ECHO_C" >&6
  8326. else
  8327. if test "$cross_compiling" = yes; then
  8328. ac_cv_func_malloc_0_nonnull=no
  8329. else
  8330. cat >conftest.$ac_ext <<_ACEOF
  8331. /* confdefs.h. */
  8332. _ACEOF
  8333. cat confdefs.h >>conftest.$ac_ext
  8334. cat >>conftest.$ac_ext <<_ACEOF
  8335. /* end confdefs.h. */
  8336. #if STDC_HEADERS || HAVE_STDLIB_H
  8337. # include <stdlib.h>
  8338. #else
  8339. char *malloc ();
  8340. #endif
  8341. int
  8342. main ()
  8343. {
  8344. exit (malloc (0) ? 0 : 1);
  8345. ;
  8346. return 0;
  8347. }
  8348. _ACEOF
  8349. rm -f conftest$ac_exeext
  8350. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8351. (eval $ac_link) 2>&5
  8352. ac_status=$?
  8353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8354. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8355. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8356. (eval $ac_try) 2>&5
  8357. ac_status=$?
  8358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8359. (exit $ac_status); }; }; then
  8360. ac_cv_func_malloc_0_nonnull=yes
  8361. else
  8362. echo "$as_me: program exited with status $ac_status" >&5
  8363. echo "$as_me: failed program was:" >&5
  8364. sed 's/^/| /' conftest.$ac_ext >&5
  8365. ( exit $ac_status )
  8366. ac_cv_func_malloc_0_nonnull=no
  8367. fi
  8368. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8369. fi
  8370. fi
  8371. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  8372. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  8373. if test $ac_cv_func_malloc_0_nonnull = yes; then
  8374. cat >>confdefs.h <<\_ACEOF
  8375. #define HAVE_MALLOC 1
  8376. _ACEOF
  8377. else
  8378. cat >>confdefs.h <<\_ACEOF
  8379. #define HAVE_MALLOC 0
  8380. _ACEOF
  8381. case $LIBOBJS in
  8382. "malloc.$ac_objext" | \
  8383. *" malloc.$ac_objext" | \
  8384. "malloc.$ac_objext "* | \
  8385. *" malloc.$ac_objext "* ) ;;
  8386. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  8387. esac
  8388. cat >>confdefs.h <<\_ACEOF
  8389. #define malloc rpl_malloc
  8390. _ACEOF
  8391. fi
  8392. for ac_header in stdlib.h sys/time.h unistd.h
  8393. do
  8394. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8395. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8396. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8397. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8398. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8399. echo $ECHO_N "(cached) $ECHO_C" >&6
  8400. fi
  8401. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8402. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8403. else
  8404. # Is the header compilable?
  8405. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8406. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8407. cat >conftest.$ac_ext <<_ACEOF
  8408. /* confdefs.h. */
  8409. _ACEOF
  8410. cat confdefs.h >>conftest.$ac_ext
  8411. cat >>conftest.$ac_ext <<_ACEOF
  8412. /* end confdefs.h. */
  8413. $ac_includes_default
  8414. #include <$ac_header>
  8415. _ACEOF
  8416. rm -f conftest.$ac_objext
  8417. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8418. (eval $ac_compile) 2>conftest.er1
  8419. ac_status=$?
  8420. grep -v '^ *+' conftest.er1 >conftest.err
  8421. rm -f conftest.er1
  8422. cat conftest.err >&5
  8423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8424. (exit $ac_status); } &&
  8425. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8426. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8427. (eval $ac_try) 2>&5
  8428. ac_status=$?
  8429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8430. (exit $ac_status); }; } &&
  8431. { ac_try='test -s conftest.$ac_objext'
  8432. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8433. (eval $ac_try) 2>&5
  8434. ac_status=$?
  8435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8436. (exit $ac_status); }; }; then
  8437. ac_header_compiler=yes
  8438. else
  8439. echo "$as_me: failed program was:" >&5
  8440. sed 's/^/| /' conftest.$ac_ext >&5
  8441. ac_header_compiler=no
  8442. fi
  8443. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8444. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8445. echo "${ECHO_T}$ac_header_compiler" >&6
  8446. # Is the header present?
  8447. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8448. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8449. cat >conftest.$ac_ext <<_ACEOF
  8450. /* confdefs.h. */
  8451. _ACEOF
  8452. cat confdefs.h >>conftest.$ac_ext
  8453. cat >>conftest.$ac_ext <<_ACEOF
  8454. /* end confdefs.h. */
  8455. #include <$ac_header>
  8456. _ACEOF
  8457. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8458. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8459. ac_status=$?
  8460. grep -v '^ *+' conftest.er1 >conftest.err
  8461. rm -f conftest.er1
  8462. cat conftest.err >&5
  8463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8464. (exit $ac_status); } >/dev/null; then
  8465. if test -s conftest.err; then
  8466. ac_cpp_err=$ac_c_preproc_warn_flag
  8467. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8468. else
  8469. ac_cpp_err=
  8470. fi
  8471. else
  8472. ac_cpp_err=yes
  8473. fi
  8474. if test -z "$ac_cpp_err"; then
  8475. ac_header_preproc=yes
  8476. else
  8477. echo "$as_me: failed program was:" >&5
  8478. sed 's/^/| /' conftest.$ac_ext >&5
  8479. ac_header_preproc=no
  8480. fi
  8481. rm -f conftest.err conftest.$ac_ext
  8482. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8483. echo "${ECHO_T}$ac_header_preproc" >&6
  8484. # So? What about this header?
  8485. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8486. yes:no: )
  8487. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8488. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8489. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8490. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8491. ac_header_preproc=yes
  8492. ;;
  8493. no:yes:* )
  8494. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8495. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8496. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8497. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8498. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8499. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8500. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8501. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8502. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8503. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8504. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8505. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8506. (
  8507. cat <<\_ASBOX
  8508. ## ------------------------------------------ ##
  8509. ## Report this to the AC_PACKAGE_NAME lists. ##
  8510. ## ------------------------------------------ ##
  8511. _ASBOX
  8512. ) |
  8513. sed "s/^/$as_me: WARNING: /" >&2
  8514. ;;
  8515. esac
  8516. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8517. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8518. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8519. echo $ECHO_N "(cached) $ECHO_C" >&6
  8520. else
  8521. eval "$as_ac_Header=\$ac_header_preproc"
  8522. fi
  8523. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8524. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8525. fi
  8526. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8527. cat >>confdefs.h <<_ACEOF
  8528. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8529. _ACEOF
  8530. fi
  8531. done
  8532. for ac_func in alarm
  8533. do
  8534. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8535. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8536. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8537. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8538. echo $ECHO_N "(cached) $ECHO_C" >&6
  8539. else
  8540. cat >conftest.$ac_ext <<_ACEOF
  8541. /* confdefs.h. */
  8542. _ACEOF
  8543. cat confdefs.h >>conftest.$ac_ext
  8544. cat >>conftest.$ac_ext <<_ACEOF
  8545. /* end confdefs.h. */
  8546. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8547. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8548. #define $ac_func innocuous_$ac_func
  8549. /* System header to define __stub macros and hopefully few prototypes,
  8550. which can conflict with char $ac_func (); below.
  8551. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8552. <limits.h> exists even on freestanding compilers. */
  8553. #ifdef __STDC__
  8554. # include <limits.h>
  8555. #else
  8556. # include <assert.h>
  8557. #endif
  8558. #undef $ac_func
  8559. /* Override any gcc2 internal prototype to avoid an error. */
  8560. #ifdef __cplusplus
  8561. extern "C"
  8562. {
  8563. #endif
  8564. /* We use char because int might match the return type of a gcc2
  8565. builtin and then its argument prototype would still apply. */
  8566. char $ac_func ();
  8567. /* The GNU C library defines this for functions which it implements
  8568. to always fail with ENOSYS. Some functions are actually named
  8569. something starting with __ and the normal name is an alias. */
  8570. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8571. choke me
  8572. #else
  8573. char (*f) () = $ac_func;
  8574. #endif
  8575. #ifdef __cplusplus
  8576. }
  8577. #endif
  8578. int
  8579. main ()
  8580. {
  8581. return f != $ac_func;
  8582. ;
  8583. return 0;
  8584. }
  8585. _ACEOF
  8586. rm -f conftest.$ac_objext conftest$ac_exeext
  8587. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8588. (eval $ac_link) 2>conftest.er1
  8589. ac_status=$?
  8590. grep -v '^ *+' conftest.er1 >conftest.err
  8591. rm -f conftest.er1
  8592. cat conftest.err >&5
  8593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8594. (exit $ac_status); } &&
  8595. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8596. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8597. (eval $ac_try) 2>&5
  8598. ac_status=$?
  8599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8600. (exit $ac_status); }; } &&
  8601. { ac_try='test -s conftest$ac_exeext'
  8602. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8603. (eval $ac_try) 2>&5
  8604. ac_status=$?
  8605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8606. (exit $ac_status); }; }; then
  8607. eval "$as_ac_var=yes"
  8608. else
  8609. echo "$as_me: failed program was:" >&5
  8610. sed 's/^/| /' conftest.$ac_ext >&5
  8611. eval "$as_ac_var=no"
  8612. fi
  8613. rm -f conftest.err conftest.$ac_objext \
  8614. conftest$ac_exeext conftest.$ac_ext
  8615. fi
  8616. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8617. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8618. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8619. cat >>confdefs.h <<_ACEOF
  8620. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8621. _ACEOF
  8622. fi
  8623. done
  8624. echo "$as_me:$LINENO: checking for working mktime" >&5
  8625. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  8626. if test "${ac_cv_func_working_mktime+set}" = set; then
  8627. echo $ECHO_N "(cached) $ECHO_C" >&6
  8628. else
  8629. if test "$cross_compiling" = yes; then
  8630. ac_cv_func_working_mktime=no
  8631. else
  8632. cat >conftest.$ac_ext <<_ACEOF
  8633. /* confdefs.h. */
  8634. _ACEOF
  8635. cat confdefs.h >>conftest.$ac_ext
  8636. cat >>conftest.$ac_ext <<_ACEOF
  8637. /* end confdefs.h. */
  8638. /* Test program from Paul Eggert and Tony Leneis. */
  8639. #if TIME_WITH_SYS_TIME
  8640. # include <sys/time.h>
  8641. # include <time.h>
  8642. #else
  8643. # if HAVE_SYS_TIME_H
  8644. # include <sys/time.h>
  8645. # else
  8646. # include <time.h>
  8647. # endif
  8648. #endif
  8649. #if HAVE_STDLIB_H
  8650. # include <stdlib.h>
  8651. #endif
  8652. #if HAVE_UNISTD_H
  8653. # include <unistd.h>
  8654. #endif
  8655. #if !HAVE_ALARM
  8656. # define alarm(X) /* empty */
  8657. #endif
  8658. /* Work around redefinition to rpl_putenv by other config tests. */
  8659. #undef putenv
  8660. static time_t time_t_max;
  8661. static time_t time_t_min;
  8662. /* Values we'll use to set the TZ environment variable. */
  8663. static char *tz_strings[] = {
  8664. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  8665. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  8666. };
  8667. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  8668. /* Fail if mktime fails to convert a date in the spring-forward gap.
  8669. Based on a problem report from Andreas Jaeger. */
  8670. static void
  8671. spring_forward_gap ()
  8672. {
  8673. /* glibc (up to about 1998-10-07) failed this test. */
  8674. struct tm tm;
  8675. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  8676. instead of "TZ=America/Vancouver" in order to detect the bug even
  8677. on systems that don't support the Olson extension, or don't have the
  8678. full zoneinfo tables installed. */
  8679. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  8680. tm.tm_year = 98;
  8681. tm.tm_mon = 3;
  8682. tm.tm_mday = 5;
  8683. tm.tm_hour = 2;
  8684. tm.tm_min = 0;
  8685. tm.tm_sec = 0;
  8686. tm.tm_isdst = -1;
  8687. if (mktime (&tm) == (time_t)-1)
  8688. exit (1);
  8689. }
  8690. static void
  8691. mktime_test1 (now)
  8692. time_t now;
  8693. {
  8694. struct tm *lt;
  8695. if ((lt = localtime (&now)) && mktime (lt) != now)
  8696. exit (1);
  8697. }
  8698. static void
  8699. mktime_test (now)
  8700. time_t now;
  8701. {
  8702. mktime_test1 (now);
  8703. mktime_test1 ((time_t) (time_t_max - now));
  8704. mktime_test1 ((time_t) (time_t_min + now));
  8705. }
  8706. static void
  8707. irix_6_4_bug ()
  8708. {
  8709. /* Based on code from Ariel Faigon. */
  8710. struct tm tm;
  8711. tm.tm_year = 96;
  8712. tm.tm_mon = 3;
  8713. tm.tm_mday = 0;
  8714. tm.tm_hour = 0;
  8715. tm.tm_min = 0;
  8716. tm.tm_sec = 0;
  8717. tm.tm_isdst = -1;
  8718. mktime (&tm);
  8719. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  8720. exit (1);
  8721. }
  8722. static void
  8723. bigtime_test (j)
  8724. int j;
  8725. {
  8726. struct tm tm;
  8727. time_t now;
  8728. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  8729. now = mktime (&tm);
  8730. if (now != (time_t) -1)
  8731. {
  8732. struct tm *lt = localtime (&now);
  8733. if (! (lt
  8734. && lt->tm_year == tm.tm_year
  8735. && lt->tm_mon == tm.tm_mon
  8736. && lt->tm_mday == tm.tm_mday
  8737. && lt->tm_hour == tm.tm_hour
  8738. && lt->tm_min == tm.tm_min
  8739. && lt->tm_sec == tm.tm_sec
  8740. && lt->tm_yday == tm.tm_yday
  8741. && lt->tm_wday == tm.tm_wday
  8742. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  8743. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  8744. exit (1);
  8745. }
  8746. }
  8747. int
  8748. main ()
  8749. {
  8750. time_t t, delta;
  8751. int i, j;
  8752. /* This test makes some buggy mktime implementations loop.
  8753. Give up after 60 seconds; a mktime slower than that
  8754. isn't worth using anyway. */
  8755. alarm (60);
  8756. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  8757. continue;
  8758. time_t_max--;
  8759. if ((time_t) -1 < 0)
  8760. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  8761. continue;
  8762. delta = time_t_max / 997; /* a suitable prime number */
  8763. for (i = 0; i < N_STRINGS; i++)
  8764. {
  8765. if (tz_strings[i])
  8766. putenv (tz_strings[i]);
  8767. for (t = 0; t <= time_t_max - delta; t += delta)
  8768. mktime_test (t);
  8769. mktime_test ((time_t) 1);
  8770. mktime_test ((time_t) (60 * 60));
  8771. mktime_test ((time_t) (60 * 60 * 24));
  8772. for (j = 1; 0 < j; j *= 2)
  8773. bigtime_test (j);
  8774. bigtime_test (j - 1);
  8775. }
  8776. irix_6_4_bug ();
  8777. spring_forward_gap ();
  8778. exit (0);
  8779. }
  8780. _ACEOF
  8781. rm -f conftest$ac_exeext
  8782. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8783. (eval $ac_link) 2>&5
  8784. ac_status=$?
  8785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8786. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8787. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8788. (eval $ac_try) 2>&5
  8789. ac_status=$?
  8790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8791. (exit $ac_status); }; }; then
  8792. ac_cv_func_working_mktime=yes
  8793. else
  8794. echo "$as_me: program exited with status $ac_status" >&5
  8795. echo "$as_me: failed program was:" >&5
  8796. sed 's/^/| /' conftest.$ac_ext >&5
  8797. ( exit $ac_status )
  8798. ac_cv_func_working_mktime=no
  8799. fi
  8800. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8801. fi
  8802. fi
  8803. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  8804. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  8805. if test $ac_cv_func_working_mktime = no; then
  8806. case $LIBOBJS in
  8807. "mktime.$ac_objext" | \
  8808. *" mktime.$ac_objext" | \
  8809. "mktime.$ac_objext "* | \
  8810. *" mktime.$ac_objext "* ) ;;
  8811. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  8812. esac
  8813. fi
  8814. for ac_header in stdlib.h unistd.h
  8815. do
  8816. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8817. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8818. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8819. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8820. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8821. echo $ECHO_N "(cached) $ECHO_C" >&6
  8822. fi
  8823. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8824. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8825. else
  8826. # Is the header compilable?
  8827. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8828. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8829. cat >conftest.$ac_ext <<_ACEOF
  8830. /* confdefs.h. */
  8831. _ACEOF
  8832. cat confdefs.h >>conftest.$ac_ext
  8833. cat >>conftest.$ac_ext <<_ACEOF
  8834. /* end confdefs.h. */
  8835. $ac_includes_default
  8836. #include <$ac_header>
  8837. _ACEOF
  8838. rm -f conftest.$ac_objext
  8839. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8840. (eval $ac_compile) 2>conftest.er1
  8841. ac_status=$?
  8842. grep -v '^ *+' conftest.er1 >conftest.err
  8843. rm -f conftest.er1
  8844. cat conftest.err >&5
  8845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8846. (exit $ac_status); } &&
  8847. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8848. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8849. (eval $ac_try) 2>&5
  8850. ac_status=$?
  8851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8852. (exit $ac_status); }; } &&
  8853. { ac_try='test -s conftest.$ac_objext'
  8854. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8855. (eval $ac_try) 2>&5
  8856. ac_status=$?
  8857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8858. (exit $ac_status); }; }; then
  8859. ac_header_compiler=yes
  8860. else
  8861. echo "$as_me: failed program was:" >&5
  8862. sed 's/^/| /' conftest.$ac_ext >&5
  8863. ac_header_compiler=no
  8864. fi
  8865. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8866. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8867. echo "${ECHO_T}$ac_header_compiler" >&6
  8868. # Is the header present?
  8869. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8870. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8871. cat >conftest.$ac_ext <<_ACEOF
  8872. /* confdefs.h. */
  8873. _ACEOF
  8874. cat confdefs.h >>conftest.$ac_ext
  8875. cat >>conftest.$ac_ext <<_ACEOF
  8876. /* end confdefs.h. */
  8877. #include <$ac_header>
  8878. _ACEOF
  8879. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8880. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8881. ac_status=$?
  8882. grep -v '^ *+' conftest.er1 >conftest.err
  8883. rm -f conftest.er1
  8884. cat conftest.err >&5
  8885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8886. (exit $ac_status); } >/dev/null; then
  8887. if test -s conftest.err; then
  8888. ac_cpp_err=$ac_c_preproc_warn_flag
  8889. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8890. else
  8891. ac_cpp_err=
  8892. fi
  8893. else
  8894. ac_cpp_err=yes
  8895. fi
  8896. if test -z "$ac_cpp_err"; then
  8897. ac_header_preproc=yes
  8898. else
  8899. echo "$as_me: failed program was:" >&5
  8900. sed 's/^/| /' conftest.$ac_ext >&5
  8901. ac_header_preproc=no
  8902. fi
  8903. rm -f conftest.err conftest.$ac_ext
  8904. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8905. echo "${ECHO_T}$ac_header_preproc" >&6
  8906. # So? What about this header?
  8907. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8908. yes:no: )
  8909. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8910. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8911. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8912. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8913. ac_header_preproc=yes
  8914. ;;
  8915. no:yes:* )
  8916. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8917. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8918. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8919. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8920. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8921. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8922. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8923. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8924. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8925. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8926. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8927. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8928. (
  8929. cat <<\_ASBOX
  8930. ## ------------------------------------------ ##
  8931. ## Report this to the AC_PACKAGE_NAME lists. ##
  8932. ## ------------------------------------------ ##
  8933. _ASBOX
  8934. ) |
  8935. sed "s/^/$as_me: WARNING: /" >&2
  8936. ;;
  8937. esac
  8938. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8939. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8940. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8941. echo $ECHO_N "(cached) $ECHO_C" >&6
  8942. else
  8943. eval "$as_ac_Header=\$ac_header_preproc"
  8944. fi
  8945. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8946. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8947. fi
  8948. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8949. cat >>confdefs.h <<_ACEOF
  8950. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8951. _ACEOF
  8952. fi
  8953. done
  8954. for ac_func in getpagesize
  8955. do
  8956. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8957. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8958. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8959. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8960. echo $ECHO_N "(cached) $ECHO_C" >&6
  8961. else
  8962. cat >conftest.$ac_ext <<_ACEOF
  8963. /* confdefs.h. */
  8964. _ACEOF
  8965. cat confdefs.h >>conftest.$ac_ext
  8966. cat >>conftest.$ac_ext <<_ACEOF
  8967. /* end confdefs.h. */
  8968. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8969. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8970. #define $ac_func innocuous_$ac_func
  8971. /* System header to define __stub macros and hopefully few prototypes,
  8972. which can conflict with char $ac_func (); below.
  8973. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8974. <limits.h> exists even on freestanding compilers. */
  8975. #ifdef __STDC__
  8976. # include <limits.h>
  8977. #else
  8978. # include <assert.h>
  8979. #endif
  8980. #undef $ac_func
  8981. /* Override any gcc2 internal prototype to avoid an error. */
  8982. #ifdef __cplusplus
  8983. extern "C"
  8984. {
  8985. #endif
  8986. /* We use char because int might match the return type of a gcc2
  8987. builtin and then its argument prototype would still apply. */
  8988. char $ac_func ();
  8989. /* The GNU C library defines this for functions which it implements
  8990. to always fail with ENOSYS. Some functions are actually named
  8991. something starting with __ and the normal name is an alias. */
  8992. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8993. choke me
  8994. #else
  8995. char (*f) () = $ac_func;
  8996. #endif
  8997. #ifdef __cplusplus
  8998. }
  8999. #endif
  9000. int
  9001. main ()
  9002. {
  9003. return f != $ac_func;
  9004. ;
  9005. return 0;
  9006. }
  9007. _ACEOF
  9008. rm -f conftest.$ac_objext conftest$ac_exeext
  9009. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9010. (eval $ac_link) 2>conftest.er1
  9011. ac_status=$?
  9012. grep -v '^ *+' conftest.er1 >conftest.err
  9013. rm -f conftest.er1
  9014. cat conftest.err >&5
  9015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9016. (exit $ac_status); } &&
  9017. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9018. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9019. (eval $ac_try) 2>&5
  9020. ac_status=$?
  9021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9022. (exit $ac_status); }; } &&
  9023. { ac_try='test -s conftest$ac_exeext'
  9024. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9025. (eval $ac_try) 2>&5
  9026. ac_status=$?
  9027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9028. (exit $ac_status); }; }; then
  9029. eval "$as_ac_var=yes"
  9030. else
  9031. echo "$as_me: failed program was:" >&5
  9032. sed 's/^/| /' conftest.$ac_ext >&5
  9033. eval "$as_ac_var=no"
  9034. fi
  9035. rm -f conftest.err conftest.$ac_objext \
  9036. conftest$ac_exeext conftest.$ac_ext
  9037. fi
  9038. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9039. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9040. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9041. cat >>confdefs.h <<_ACEOF
  9042. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9043. _ACEOF
  9044. fi
  9045. done
  9046. echo "$as_me:$LINENO: checking for working mmap" >&5
  9047. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9048. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9049. echo $ECHO_N "(cached) $ECHO_C" >&6
  9050. else
  9051. if test "$cross_compiling" = yes; then
  9052. ac_cv_func_mmap_fixed_mapped=no
  9053. else
  9054. cat >conftest.$ac_ext <<_ACEOF
  9055. /* confdefs.h. */
  9056. _ACEOF
  9057. cat confdefs.h >>conftest.$ac_ext
  9058. cat >>conftest.$ac_ext <<_ACEOF
  9059. /* end confdefs.h. */
  9060. $ac_includes_default
  9061. /* malloc might have been renamed as rpl_malloc. */
  9062. #undef malloc
  9063. /* Thanks to Mike Haertel and Jim Avera for this test.
  9064. Here is a matrix of mmap possibilities:
  9065. mmap private not fixed
  9066. mmap private fixed at somewhere currently unmapped
  9067. mmap private fixed at somewhere already mapped
  9068. mmap shared not fixed
  9069. mmap shared fixed at somewhere currently unmapped
  9070. mmap shared fixed at somewhere already mapped
  9071. For private mappings, we should verify that changes cannot be read()
  9072. back from the file, nor mmap's back from the file at a different
  9073. address. (There have been systems where private was not correctly
  9074. implemented like the infamous i386 svr4.0, and systems where the
  9075. VM page cache was not coherent with the file system buffer cache
  9076. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9077. For shared mappings, we should conversely verify that changes get
  9078. propagated back to all the places they're supposed to be.
  9079. Grep wants private fixed already mapped.
  9080. The main things grep needs to know about mmap are:
  9081. * does it exist and is it safe to write into the mmap'd area
  9082. * how to use it (BSD variants) */
  9083. #include <fcntl.h>
  9084. #include <sys/mman.h>
  9085. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9086. char *malloc ();
  9087. #endif
  9088. /* This mess was copied from the GNU getpagesize.h. */
  9089. #if !HAVE_GETPAGESIZE
  9090. /* Assume that all systems that can run configure have sys/param.h. */
  9091. # if !HAVE_SYS_PARAM_H
  9092. # define HAVE_SYS_PARAM_H 1
  9093. # endif
  9094. # ifdef _SC_PAGESIZE
  9095. # define getpagesize() sysconf(_SC_PAGESIZE)
  9096. # else /* no _SC_PAGESIZE */
  9097. # if HAVE_SYS_PARAM_H
  9098. # include <sys/param.h>
  9099. # ifdef EXEC_PAGESIZE
  9100. # define getpagesize() EXEC_PAGESIZE
  9101. # else /* no EXEC_PAGESIZE */
  9102. # ifdef NBPG
  9103. # define getpagesize() NBPG * CLSIZE
  9104. # ifndef CLSIZE
  9105. # define CLSIZE 1
  9106. # endif /* no CLSIZE */
  9107. # else /* no NBPG */
  9108. # ifdef NBPC
  9109. # define getpagesize() NBPC
  9110. # else /* no NBPC */
  9111. # ifdef PAGESIZE
  9112. # define getpagesize() PAGESIZE
  9113. # endif /* PAGESIZE */
  9114. # endif /* no NBPC */
  9115. # endif /* no NBPG */
  9116. # endif /* no EXEC_PAGESIZE */
  9117. # else /* no HAVE_SYS_PARAM_H */
  9118. # define getpagesize() 8192 /* punt totally */
  9119. # endif /* no HAVE_SYS_PARAM_H */
  9120. # endif /* no _SC_PAGESIZE */
  9121. #endif /* no HAVE_GETPAGESIZE */
  9122. int
  9123. main ()
  9124. {
  9125. char *data, *data2, *data3;
  9126. int i, pagesize;
  9127. int fd;
  9128. pagesize = getpagesize ();
  9129. /* First, make a file with some known garbage in it. */
  9130. data = (char *) malloc (pagesize);
  9131. if (!data)
  9132. exit (1);
  9133. for (i = 0; i < pagesize; ++i)
  9134. *(data + i) = rand ();
  9135. umask (0);
  9136. fd = creat ("conftest.mmap", 0600);
  9137. if (fd < 0)
  9138. exit (1);
  9139. if (write (fd, data, pagesize) != pagesize)
  9140. exit (1);
  9141. close (fd);
  9142. /* Next, try to mmap the file at a fixed address which already has
  9143. something else allocated at it. If we can, also make sure that
  9144. we see the same garbage. */
  9145. fd = open ("conftest.mmap", O_RDWR);
  9146. if (fd < 0)
  9147. exit (1);
  9148. data2 = (char *) malloc (2 * pagesize);
  9149. if (!data2)
  9150. exit (1);
  9151. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9152. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9153. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9154. exit (1);
  9155. for (i = 0; i < pagesize; ++i)
  9156. if (*(data + i) != *(data2 + i))
  9157. exit (1);
  9158. /* Finally, make sure that changes to the mapped area do not
  9159. percolate back to the file as seen by read(). (This is a bug on
  9160. some variants of i386 svr4.0.) */
  9161. for (i = 0; i < pagesize; ++i)
  9162. *(data2 + i) = *(data2 + i) + 1;
  9163. data3 = (char *) malloc (pagesize);
  9164. if (!data3)
  9165. exit (1);
  9166. if (read (fd, data3, pagesize) != pagesize)
  9167. exit (1);
  9168. for (i = 0; i < pagesize; ++i)
  9169. if (*(data + i) != *(data3 + i))
  9170. exit (1);
  9171. close (fd);
  9172. exit (0);
  9173. }
  9174. _ACEOF
  9175. rm -f conftest$ac_exeext
  9176. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9177. (eval $ac_link) 2>&5
  9178. ac_status=$?
  9179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9180. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9181. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9182. (eval $ac_try) 2>&5
  9183. ac_status=$?
  9184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9185. (exit $ac_status); }; }; then
  9186. ac_cv_func_mmap_fixed_mapped=yes
  9187. else
  9188. echo "$as_me: program exited with status $ac_status" >&5
  9189. echo "$as_me: failed program was:" >&5
  9190. sed 's/^/| /' conftest.$ac_ext >&5
  9191. ( exit $ac_status )
  9192. ac_cv_func_mmap_fixed_mapped=no
  9193. fi
  9194. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9195. fi
  9196. fi
  9197. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9198. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9199. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9200. cat >>confdefs.h <<\_ACEOF
  9201. #define HAVE_MMAP 1
  9202. _ACEOF
  9203. fi
  9204. rm -f conftest.mmap
  9205. for ac_header in stdlib.h
  9206. do
  9207. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9208. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9209. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9210. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9211. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9212. echo $ECHO_N "(cached) $ECHO_C" >&6
  9213. fi
  9214. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9215. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9216. else
  9217. # Is the header compilable?
  9218. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9219. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9220. cat >conftest.$ac_ext <<_ACEOF
  9221. /* confdefs.h. */
  9222. _ACEOF
  9223. cat confdefs.h >>conftest.$ac_ext
  9224. cat >>conftest.$ac_ext <<_ACEOF
  9225. /* end confdefs.h. */
  9226. $ac_includes_default
  9227. #include <$ac_header>
  9228. _ACEOF
  9229. rm -f conftest.$ac_objext
  9230. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9231. (eval $ac_compile) 2>conftest.er1
  9232. ac_status=$?
  9233. grep -v '^ *+' conftest.er1 >conftest.err
  9234. rm -f conftest.er1
  9235. cat conftest.err >&5
  9236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9237. (exit $ac_status); } &&
  9238. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9239. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9240. (eval $ac_try) 2>&5
  9241. ac_status=$?
  9242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9243. (exit $ac_status); }; } &&
  9244. { ac_try='test -s conftest.$ac_objext'
  9245. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9246. (eval $ac_try) 2>&5
  9247. ac_status=$?
  9248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9249. (exit $ac_status); }; }; then
  9250. ac_header_compiler=yes
  9251. else
  9252. echo "$as_me: failed program was:" >&5
  9253. sed 's/^/| /' conftest.$ac_ext >&5
  9254. ac_header_compiler=no
  9255. fi
  9256. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9257. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9258. echo "${ECHO_T}$ac_header_compiler" >&6
  9259. # Is the header present?
  9260. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9261. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9262. cat >conftest.$ac_ext <<_ACEOF
  9263. /* confdefs.h. */
  9264. _ACEOF
  9265. cat confdefs.h >>conftest.$ac_ext
  9266. cat >>conftest.$ac_ext <<_ACEOF
  9267. /* end confdefs.h. */
  9268. #include <$ac_header>
  9269. _ACEOF
  9270. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9271. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9272. ac_status=$?
  9273. grep -v '^ *+' conftest.er1 >conftest.err
  9274. rm -f conftest.er1
  9275. cat conftest.err >&5
  9276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9277. (exit $ac_status); } >/dev/null; then
  9278. if test -s conftest.err; then
  9279. ac_cpp_err=$ac_c_preproc_warn_flag
  9280. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9281. else
  9282. ac_cpp_err=
  9283. fi
  9284. else
  9285. ac_cpp_err=yes
  9286. fi
  9287. if test -z "$ac_cpp_err"; then
  9288. ac_header_preproc=yes
  9289. else
  9290. echo "$as_me: failed program was:" >&5
  9291. sed 's/^/| /' conftest.$ac_ext >&5
  9292. ac_header_preproc=no
  9293. fi
  9294. rm -f conftest.err conftest.$ac_ext
  9295. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9296. echo "${ECHO_T}$ac_header_preproc" >&6
  9297. # So? What about this header?
  9298. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9299. yes:no: )
  9300. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9301. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9302. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9303. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9304. ac_header_preproc=yes
  9305. ;;
  9306. no:yes:* )
  9307. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9308. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9309. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9310. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9311. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9312. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9313. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9314. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9315. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9316. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9317. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9318. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9319. (
  9320. cat <<\_ASBOX
  9321. ## ------------------------------------------ ##
  9322. ## Report this to the AC_PACKAGE_NAME lists. ##
  9323. ## ------------------------------------------ ##
  9324. _ASBOX
  9325. ) |
  9326. sed "s/^/$as_me: WARNING: /" >&2
  9327. ;;
  9328. esac
  9329. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9330. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9331. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9332. echo $ECHO_N "(cached) $ECHO_C" >&6
  9333. else
  9334. eval "$as_ac_Header=\$ac_header_preproc"
  9335. fi
  9336. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9337. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9338. fi
  9339. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9340. cat >>confdefs.h <<_ACEOF
  9341. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9342. _ACEOF
  9343. fi
  9344. done
  9345. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9346. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  9347. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9348. echo $ECHO_N "(cached) $ECHO_C" >&6
  9349. else
  9350. if test "$cross_compiling" = yes; then
  9351. ac_cv_func_realloc_0_nonnull=no
  9352. else
  9353. cat >conftest.$ac_ext <<_ACEOF
  9354. /* confdefs.h. */
  9355. _ACEOF
  9356. cat confdefs.h >>conftest.$ac_ext
  9357. cat >>conftest.$ac_ext <<_ACEOF
  9358. /* end confdefs.h. */
  9359. #if STDC_HEADERS || HAVE_STDLIB_H
  9360. # include <stdlib.h>
  9361. #else
  9362. char *realloc ();
  9363. #endif
  9364. int
  9365. main ()
  9366. {
  9367. exit (realloc (0, 0) ? 0 : 1);
  9368. ;
  9369. return 0;
  9370. }
  9371. _ACEOF
  9372. rm -f conftest$ac_exeext
  9373. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9374. (eval $ac_link) 2>&5
  9375. ac_status=$?
  9376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9377. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9378. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9379. (eval $ac_try) 2>&5
  9380. ac_status=$?
  9381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9382. (exit $ac_status); }; }; then
  9383. ac_cv_func_realloc_0_nonnull=yes
  9384. else
  9385. echo "$as_me: program exited with status $ac_status" >&5
  9386. echo "$as_me: failed program was:" >&5
  9387. sed 's/^/| /' conftest.$ac_ext >&5
  9388. ( exit $ac_status )
  9389. ac_cv_func_realloc_0_nonnull=no
  9390. fi
  9391. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9392. fi
  9393. fi
  9394. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9395. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  9396. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9397. cat >>confdefs.h <<\_ACEOF
  9398. #define HAVE_REALLOC 1
  9399. _ACEOF
  9400. else
  9401. cat >>confdefs.h <<\_ACEOF
  9402. #define HAVE_REALLOC 0
  9403. _ACEOF
  9404. case $LIBOBJS in
  9405. "realloc.$ac_objext" | \
  9406. *" realloc.$ac_objext" | \
  9407. "realloc.$ac_objext "* | \
  9408. *" realloc.$ac_objext "* ) ;;
  9409. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  9410. esac
  9411. cat >>confdefs.h <<\_ACEOF
  9412. #define realloc rpl_realloc
  9413. _ACEOF
  9414. fi
  9415. for ac_header in sys/select.h sys/socket.h
  9416. do
  9417. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9418. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9419. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9420. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9421. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9422. echo $ECHO_N "(cached) $ECHO_C" >&6
  9423. fi
  9424. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9425. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9426. else
  9427. # Is the header compilable?
  9428. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9429. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9430. cat >conftest.$ac_ext <<_ACEOF
  9431. /* confdefs.h. */
  9432. _ACEOF
  9433. cat confdefs.h >>conftest.$ac_ext
  9434. cat >>conftest.$ac_ext <<_ACEOF
  9435. /* end confdefs.h. */
  9436. $ac_includes_default
  9437. #include <$ac_header>
  9438. _ACEOF
  9439. rm -f conftest.$ac_objext
  9440. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9441. (eval $ac_compile) 2>conftest.er1
  9442. ac_status=$?
  9443. grep -v '^ *+' conftest.er1 >conftest.err
  9444. rm -f conftest.er1
  9445. cat conftest.err >&5
  9446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9447. (exit $ac_status); } &&
  9448. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9449. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9450. (eval $ac_try) 2>&5
  9451. ac_status=$?
  9452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9453. (exit $ac_status); }; } &&
  9454. { ac_try='test -s conftest.$ac_objext'
  9455. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9456. (eval $ac_try) 2>&5
  9457. ac_status=$?
  9458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9459. (exit $ac_status); }; }; then
  9460. ac_header_compiler=yes
  9461. else
  9462. echo "$as_me: failed program was:" >&5
  9463. sed 's/^/| /' conftest.$ac_ext >&5
  9464. ac_header_compiler=no
  9465. fi
  9466. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9467. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9468. echo "${ECHO_T}$ac_header_compiler" >&6
  9469. # Is the header present?
  9470. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9471. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9472. cat >conftest.$ac_ext <<_ACEOF
  9473. /* confdefs.h. */
  9474. _ACEOF
  9475. cat confdefs.h >>conftest.$ac_ext
  9476. cat >>conftest.$ac_ext <<_ACEOF
  9477. /* end confdefs.h. */
  9478. #include <$ac_header>
  9479. _ACEOF
  9480. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9481. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9482. ac_status=$?
  9483. grep -v '^ *+' conftest.er1 >conftest.err
  9484. rm -f conftest.er1
  9485. cat conftest.err >&5
  9486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9487. (exit $ac_status); } >/dev/null; then
  9488. if test -s conftest.err; then
  9489. ac_cpp_err=$ac_c_preproc_warn_flag
  9490. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9491. else
  9492. ac_cpp_err=
  9493. fi
  9494. else
  9495. ac_cpp_err=yes
  9496. fi
  9497. if test -z "$ac_cpp_err"; then
  9498. ac_header_preproc=yes
  9499. else
  9500. echo "$as_me: failed program was:" >&5
  9501. sed 's/^/| /' conftest.$ac_ext >&5
  9502. ac_header_preproc=no
  9503. fi
  9504. rm -f conftest.err conftest.$ac_ext
  9505. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9506. echo "${ECHO_T}$ac_header_preproc" >&6
  9507. # So? What about this header?
  9508. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9509. yes:no: )
  9510. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9511. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9512. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9513. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9514. ac_header_preproc=yes
  9515. ;;
  9516. no:yes:* )
  9517. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9518. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9519. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9520. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9521. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9522. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9523. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9524. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9525. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9526. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9527. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9528. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9529. (
  9530. cat <<\_ASBOX
  9531. ## ------------------------------------------ ##
  9532. ## Report this to the AC_PACKAGE_NAME lists. ##
  9533. ## ------------------------------------------ ##
  9534. _ASBOX
  9535. ) |
  9536. sed "s/^/$as_me: WARNING: /" >&2
  9537. ;;
  9538. esac
  9539. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9540. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9541. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9542. echo $ECHO_N "(cached) $ECHO_C" >&6
  9543. else
  9544. eval "$as_ac_Header=\$ac_header_preproc"
  9545. fi
  9546. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9547. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9548. fi
  9549. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9550. cat >>confdefs.h <<_ACEOF
  9551. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9552. _ACEOF
  9553. fi
  9554. done
  9555. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  9556. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  9557. if test "${ac_cv_func_select_args+set}" = set; then
  9558. echo $ECHO_N "(cached) $ECHO_C" >&6
  9559. else
  9560. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  9561. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  9562. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  9563. cat >conftest.$ac_ext <<_ACEOF
  9564. /* confdefs.h. */
  9565. _ACEOF
  9566. cat confdefs.h >>conftest.$ac_ext
  9567. cat >>conftest.$ac_ext <<_ACEOF
  9568. /* end confdefs.h. */
  9569. $ac_includes_default
  9570. #if HAVE_SYS_SELECT_H
  9571. # include <sys/select.h>
  9572. #endif
  9573. #if HAVE_SYS_SOCKET_H
  9574. # include <sys/socket.h>
  9575. #endif
  9576. int
  9577. main ()
  9578. {
  9579. extern int select ($ac_arg1,
  9580. $ac_arg234, $ac_arg234, $ac_arg234,
  9581. $ac_arg5);
  9582. ;
  9583. return 0;
  9584. }
  9585. _ACEOF
  9586. rm -f conftest.$ac_objext
  9587. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9588. (eval $ac_compile) 2>conftest.er1
  9589. ac_status=$?
  9590. grep -v '^ *+' conftest.er1 >conftest.err
  9591. rm -f conftest.er1
  9592. cat conftest.err >&5
  9593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9594. (exit $ac_status); } &&
  9595. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9596. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9597. (eval $ac_try) 2>&5
  9598. ac_status=$?
  9599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9600. (exit $ac_status); }; } &&
  9601. { ac_try='test -s conftest.$ac_objext'
  9602. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9603. (eval $ac_try) 2>&5
  9604. ac_status=$?
  9605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9606. (exit $ac_status); }; }; then
  9607. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  9608. else
  9609. echo "$as_me: failed program was:" >&5
  9610. sed 's/^/| /' conftest.$ac_ext >&5
  9611. fi
  9612. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9613. done
  9614. done
  9615. done
  9616. # Provide a safe default value.
  9617. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  9618. fi
  9619. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  9620. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  9621. ac_save_IFS=$IFS; IFS=','
  9622. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  9623. IFS=$ac_save_IFS
  9624. shift
  9625. cat >>confdefs.h <<_ACEOF
  9626. #define SELECT_TYPE_ARG1 $1
  9627. _ACEOF
  9628. cat >>confdefs.h <<_ACEOF
  9629. #define SELECT_TYPE_ARG234 ($2)
  9630. _ACEOF
  9631. cat >>confdefs.h <<_ACEOF
  9632. #define SELECT_TYPE_ARG5 ($3)
  9633. _ACEOF
  9634. rm -f conftest*
  9635. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  9636. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  9637. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  9638. echo $ECHO_N "(cached) $ECHO_C" >&6
  9639. else
  9640. if test "$cross_compiling" = yes; then
  9641. ac_cv_func_stat_empty_string_bug=yes
  9642. else
  9643. cat >conftest.$ac_ext <<_ACEOF
  9644. /* confdefs.h. */
  9645. _ACEOF
  9646. cat confdefs.h >>conftest.$ac_ext
  9647. cat >>conftest.$ac_ext <<_ACEOF
  9648. /* end confdefs.h. */
  9649. $ac_includes_default
  9650. int
  9651. main ()
  9652. {
  9653. struct stat sbuf;
  9654. exit (stat ("", &sbuf) ? 1 : 0);
  9655. ;
  9656. return 0;
  9657. }
  9658. _ACEOF
  9659. rm -f conftest$ac_exeext
  9660. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9661. (eval $ac_link) 2>&5
  9662. ac_status=$?
  9663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9664. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9665. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9666. (eval $ac_try) 2>&5
  9667. ac_status=$?
  9668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9669. (exit $ac_status); }; }; then
  9670. ac_cv_func_stat_empty_string_bug=yes
  9671. else
  9672. echo "$as_me: program exited with status $ac_status" >&5
  9673. echo "$as_me: failed program was:" >&5
  9674. sed 's/^/| /' conftest.$ac_ext >&5
  9675. ( exit $ac_status )
  9676. ac_cv_func_stat_empty_string_bug=no
  9677. fi
  9678. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9679. fi
  9680. fi
  9681. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  9682. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  9683. if test $ac_cv_func_stat_empty_string_bug = yes; then
  9684. case $LIBOBJS in
  9685. "stat.$ac_objext" | \
  9686. *" stat.$ac_objext" | \
  9687. "stat.$ac_objext "* | \
  9688. *" stat.$ac_objext "* ) ;;
  9689. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  9690. esac
  9691. cat >>confdefs.h <<_ACEOF
  9692. #define HAVE_STAT_EMPTY_STRING_BUG 1
  9693. _ACEOF
  9694. fi
  9695. for ac_func in strftime
  9696. do
  9697. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9698. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9699. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9700. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9701. echo $ECHO_N "(cached) $ECHO_C" >&6
  9702. else
  9703. cat >conftest.$ac_ext <<_ACEOF
  9704. /* confdefs.h. */
  9705. _ACEOF
  9706. cat confdefs.h >>conftest.$ac_ext
  9707. cat >>conftest.$ac_ext <<_ACEOF
  9708. /* end confdefs.h. */
  9709. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9710. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9711. #define $ac_func innocuous_$ac_func
  9712. /* System header to define __stub macros and hopefully few prototypes,
  9713. which can conflict with char $ac_func (); below.
  9714. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9715. <limits.h> exists even on freestanding compilers. */
  9716. #ifdef __STDC__
  9717. # include <limits.h>
  9718. #else
  9719. # include <assert.h>
  9720. #endif
  9721. #undef $ac_func
  9722. /* Override any gcc2 internal prototype to avoid an error. */
  9723. #ifdef __cplusplus
  9724. extern "C"
  9725. {
  9726. #endif
  9727. /* We use char because int might match the return type of a gcc2
  9728. builtin and then its argument prototype would still apply. */
  9729. char $ac_func ();
  9730. /* The GNU C library defines this for functions which it implements
  9731. to always fail with ENOSYS. Some functions are actually named
  9732. something starting with __ and the normal name is an alias. */
  9733. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9734. choke me
  9735. #else
  9736. char (*f) () = $ac_func;
  9737. #endif
  9738. #ifdef __cplusplus
  9739. }
  9740. #endif
  9741. int
  9742. main ()
  9743. {
  9744. return f != $ac_func;
  9745. ;
  9746. return 0;
  9747. }
  9748. _ACEOF
  9749. rm -f conftest.$ac_objext conftest$ac_exeext
  9750. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9751. (eval $ac_link) 2>conftest.er1
  9752. ac_status=$?
  9753. grep -v '^ *+' conftest.er1 >conftest.err
  9754. rm -f conftest.er1
  9755. cat conftest.err >&5
  9756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9757. (exit $ac_status); } &&
  9758. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9759. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9760. (eval $ac_try) 2>&5
  9761. ac_status=$?
  9762. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9763. (exit $ac_status); }; } &&
  9764. { ac_try='test -s conftest$ac_exeext'
  9765. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9766. (eval $ac_try) 2>&5
  9767. ac_status=$?
  9768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9769. (exit $ac_status); }; }; then
  9770. eval "$as_ac_var=yes"
  9771. else
  9772. echo "$as_me: failed program was:" >&5
  9773. sed 's/^/| /' conftest.$ac_ext >&5
  9774. eval "$as_ac_var=no"
  9775. fi
  9776. rm -f conftest.err conftest.$ac_objext \
  9777. conftest$ac_exeext conftest.$ac_ext
  9778. fi
  9779. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9780. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9781. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9782. cat >>confdefs.h <<_ACEOF
  9783. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9784. _ACEOF
  9785. else
  9786. # strftime is in -lintl on SCO UNIX.
  9787. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  9788. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  9789. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  9790. echo $ECHO_N "(cached) $ECHO_C" >&6
  9791. else
  9792. ac_check_lib_save_LIBS=$LIBS
  9793. LIBS="-lintl $LIBS"
  9794. cat >conftest.$ac_ext <<_ACEOF
  9795. /* confdefs.h. */
  9796. _ACEOF
  9797. cat confdefs.h >>conftest.$ac_ext
  9798. cat >>conftest.$ac_ext <<_ACEOF
  9799. /* end confdefs.h. */
  9800. /* Override any gcc2 internal prototype to avoid an error. */
  9801. #ifdef __cplusplus
  9802. extern "C"
  9803. #endif
  9804. /* We use char because int might match the return type of a gcc2
  9805. builtin and then its argument prototype would still apply. */
  9806. char strftime ();
  9807. int
  9808. main ()
  9809. {
  9810. strftime ();
  9811. ;
  9812. return 0;
  9813. }
  9814. _ACEOF
  9815. rm -f conftest.$ac_objext conftest$ac_exeext
  9816. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9817. (eval $ac_link) 2>conftest.er1
  9818. ac_status=$?
  9819. grep -v '^ *+' conftest.er1 >conftest.err
  9820. rm -f conftest.er1
  9821. cat conftest.err >&5
  9822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9823. (exit $ac_status); } &&
  9824. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9825. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9826. (eval $ac_try) 2>&5
  9827. ac_status=$?
  9828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9829. (exit $ac_status); }; } &&
  9830. { ac_try='test -s conftest$ac_exeext'
  9831. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9832. (eval $ac_try) 2>&5
  9833. ac_status=$?
  9834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9835. (exit $ac_status); }; }; then
  9836. ac_cv_lib_intl_strftime=yes
  9837. else
  9838. echo "$as_me: failed program was:" >&5
  9839. sed 's/^/| /' conftest.$ac_ext >&5
  9840. ac_cv_lib_intl_strftime=no
  9841. fi
  9842. rm -f conftest.err conftest.$ac_objext \
  9843. conftest$ac_exeext conftest.$ac_ext
  9844. LIBS=$ac_check_lib_save_LIBS
  9845. fi
  9846. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  9847. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  9848. if test $ac_cv_lib_intl_strftime = yes; then
  9849. cat >>confdefs.h <<\_ACEOF
  9850. #define HAVE_STRFTIME 1
  9851. _ACEOF
  9852. LIBS="-lintl $LIBS"
  9853. fi
  9854. fi
  9855. done
  9856. #checkpoint
  9857. cat >confcache <<\_ACEOF
  9858. # This file is a shell script that caches the results of configure
  9859. # tests run on this system so they can be shared between configure
  9860. # scripts and configure runs, see configure's option --config-cache.
  9861. # It is not useful on other systems. If it contains results you don't
  9862. # want to keep, you may remove or edit it.
  9863. #
  9864. # config.status only pays attention to the cache file if you give it
  9865. # the --recheck option to rerun configure.
  9866. #
  9867. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9868. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9869. # following values.
  9870. _ACEOF
  9871. # The following way of writing the cache mishandles newlines in values,
  9872. # but we know of no workaround that is simple, portable, and efficient.
  9873. # So, don't put newlines in cache variables' values.
  9874. # Ultrix sh set writes to stderr and can't be redirected directly,
  9875. # and sets the high bit in the cache file unless we assign to the vars.
  9876. {
  9877. (set) 2>&1 |
  9878. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9879. *ac_space=\ *)
  9880. # `set' does not quote correctly, so add quotes (double-quote
  9881. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9882. sed -n \
  9883. "s/'/'\\\\''/g;
  9884. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9885. ;;
  9886. *)
  9887. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9888. sed -n \
  9889. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9890. ;;
  9891. esac;
  9892. } |
  9893. sed '
  9894. t clear
  9895. : clear
  9896. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9897. t end
  9898. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9899. : end' >>confcache
  9900. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9901. if test -w $cache_file; then
  9902. test "x$cache_file" != "x/dev/null"
  9903. cat confcache >$cache_file
  9904. else
  9905. echo "not updating unwritable cache $cache_file"
  9906. fi
  9907. fi
  9908. rm -f confcache
  9909. for ac_func in clock dlopen dprintf fsync getdtablesize getrusage inet_aton isascii gethostbyname2
  9910. do
  9911. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9912. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9913. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9914. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9915. echo $ECHO_N "(cached) $ECHO_C" >&6
  9916. else
  9917. cat >conftest.$ac_ext <<_ACEOF
  9918. /* confdefs.h. */
  9919. _ACEOF
  9920. cat confdefs.h >>conftest.$ac_ext
  9921. cat >>conftest.$ac_ext <<_ACEOF
  9922. /* end confdefs.h. */
  9923. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9924. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9925. #define $ac_func innocuous_$ac_func
  9926. /* System header to define __stub macros and hopefully few prototypes,
  9927. which can conflict with char $ac_func (); below.
  9928. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9929. <limits.h> exists even on freestanding compilers. */
  9930. #ifdef __STDC__
  9931. # include <limits.h>
  9932. #else
  9933. # include <assert.h>
  9934. #endif
  9935. #undef $ac_func
  9936. /* Override any gcc2 internal prototype to avoid an error. */
  9937. #ifdef __cplusplus
  9938. extern "C"
  9939. {
  9940. #endif
  9941. /* We use char because int might match the return type of a gcc2
  9942. builtin and then its argument prototype would still apply. */
  9943. char $ac_func ();
  9944. /* The GNU C library defines this for functions which it implements
  9945. to always fail with ENOSYS. Some functions are actually named
  9946. something starting with __ and the normal name is an alias. */
  9947. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9948. choke me
  9949. #else
  9950. char (*f) () = $ac_func;
  9951. #endif
  9952. #ifdef __cplusplus
  9953. }
  9954. #endif
  9955. int
  9956. main ()
  9957. {
  9958. return f != $ac_func;
  9959. ;
  9960. return 0;
  9961. }
  9962. _ACEOF
  9963. rm -f conftest.$ac_objext conftest$ac_exeext
  9964. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9965. (eval $ac_link) 2>conftest.er1
  9966. ac_status=$?
  9967. grep -v '^ *+' conftest.er1 >conftest.err
  9968. rm -f conftest.er1
  9969. cat conftest.err >&5
  9970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9971. (exit $ac_status); } &&
  9972. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9973. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9974. (eval $ac_try) 2>&5
  9975. ac_status=$?
  9976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9977. (exit $ac_status); }; } &&
  9978. { ac_try='test -s conftest$ac_exeext'
  9979. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9980. (eval $ac_try) 2>&5
  9981. ac_status=$?
  9982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9983. (exit $ac_status); }; }; then
  9984. eval "$as_ac_var=yes"
  9985. else
  9986. echo "$as_me: failed program was:" >&5
  9987. sed 's/^/| /' conftest.$ac_ext >&5
  9988. eval "$as_ac_var=no"
  9989. fi
  9990. rm -f conftest.err conftest.$ac_objext \
  9991. conftest$ac_exeext conftest.$ac_ext
  9992. fi
  9993. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9994. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9995. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9996. cat >>confdefs.h <<_ACEOF
  9997. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9998. _ACEOF
  9999. fi
  10000. done
  10001. for ac_func in getipnodebyname memcpy memset random rename setpgid sigaction sigemptyset snprintf srandom
  10002. do
  10003. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10004. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10005. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10006. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10007. echo $ECHO_N "(cached) $ECHO_C" >&6
  10008. else
  10009. cat >conftest.$ac_ext <<_ACEOF
  10010. /* confdefs.h. */
  10011. _ACEOF
  10012. cat confdefs.h >>conftest.$ac_ext
  10013. cat >>conftest.$ac_ext <<_ACEOF
  10014. /* end confdefs.h. */
  10015. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10016. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10017. #define $ac_func innocuous_$ac_func
  10018. /* System header to define __stub macros and hopefully few prototypes,
  10019. which can conflict with char $ac_func (); below.
  10020. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10021. <limits.h> exists even on freestanding compilers. */
  10022. #ifdef __STDC__
  10023. # include <limits.h>
  10024. #else
  10025. # include <assert.h>
  10026. #endif
  10027. #undef $ac_func
  10028. /* Override any gcc2 internal prototype to avoid an error. */
  10029. #ifdef __cplusplus
  10030. extern "C"
  10031. {
  10032. #endif
  10033. /* We use char because int might match the return type of a gcc2
  10034. builtin and then its argument prototype would still apply. */
  10035. char $ac_func ();
  10036. /* The GNU C library defines this for functions which it implements
  10037. to always fail with ENOSYS. Some functions are actually named
  10038. something starting with __ and the normal name is an alias. */
  10039. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10040. choke me
  10041. #else
  10042. char (*f) () = $ac_func;
  10043. #endif
  10044. #ifdef __cplusplus
  10045. }
  10046. #endif
  10047. int
  10048. main ()
  10049. {
  10050. return f != $ac_func;
  10051. ;
  10052. return 0;
  10053. }
  10054. _ACEOF
  10055. rm -f conftest.$ac_objext conftest$ac_exeext
  10056. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10057. (eval $ac_link) 2>conftest.er1
  10058. ac_status=$?
  10059. grep -v '^ *+' conftest.er1 >conftest.err
  10060. rm -f conftest.er1
  10061. cat conftest.err >&5
  10062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10063. (exit $ac_status); } &&
  10064. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10065. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10066. (eval $ac_try) 2>&5
  10067. ac_status=$?
  10068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10069. (exit $ac_status); }; } &&
  10070. { ac_try='test -s conftest$ac_exeext'
  10071. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10072. (eval $ac_try) 2>&5
  10073. ac_status=$?
  10074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10075. (exit $ac_status); }; }; then
  10076. eval "$as_ac_var=yes"
  10077. else
  10078. echo "$as_me: failed program was:" >&5
  10079. sed 's/^/| /' conftest.$ac_ext >&5
  10080. eval "$as_ac_var=no"
  10081. fi
  10082. rm -f conftest.err conftest.$ac_objext \
  10083. conftest$ac_exeext conftest.$ac_ext
  10084. fi
  10085. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10086. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10087. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10088. cat >>confdefs.h <<_ACEOF
  10089. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10090. _ACEOF
  10091. fi
  10092. done
  10093. #checkpoint
  10094. cat >confcache <<\_ACEOF
  10095. # This file is a shell script that caches the results of configure
  10096. # tests run on this system so they can be shared between configure
  10097. # scripts and configure runs, see configure's option --config-cache.
  10098. # It is not useful on other systems. If it contains results you don't
  10099. # want to keep, you may remove or edit it.
  10100. #
  10101. # config.status only pays attention to the cache file if you give it
  10102. # the --recheck option to rerun configure.
  10103. #
  10104. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10105. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10106. # following values.
  10107. _ACEOF
  10108. # The following way of writing the cache mishandles newlines in values,
  10109. # but we know of no workaround that is simple, portable, and efficient.
  10110. # So, don't put newlines in cache variables' values.
  10111. # Ultrix sh set writes to stderr and can't be redirected directly,
  10112. # and sets the high bit in the cache file unless we assign to the vars.
  10113. {
  10114. (set) 2>&1 |
  10115. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10116. *ac_space=\ *)
  10117. # `set' does not quote correctly, so add quotes (double-quote
  10118. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10119. sed -n \
  10120. "s/'/'\\\\''/g;
  10121. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10122. ;;
  10123. *)
  10124. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10125. sed -n \
  10126. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10127. ;;
  10128. esac;
  10129. } |
  10130. sed '
  10131. t clear
  10132. : clear
  10133. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10134. t end
  10135. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10136. : end' >>confcache
  10137. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10138. if test -w $cache_file; then
  10139. test "x$cache_file" != "x/dev/null"
  10140. cat confcache >$cache_file
  10141. else
  10142. echo "not updating unwritable cache $cache_file"
  10143. fi
  10144. fi
  10145. rm -f confcache
  10146. for ac_func in strcasecmp strncasecmp vsnprintf
  10147. do
  10148. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10149. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10150. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10151. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10152. echo $ECHO_N "(cached) $ECHO_C" >&6
  10153. else
  10154. cat >conftest.$ac_ext <<_ACEOF
  10155. /* confdefs.h. */
  10156. _ACEOF
  10157. cat confdefs.h >>conftest.$ac_ext
  10158. cat >>conftest.$ac_ext <<_ACEOF
  10159. /* end confdefs.h. */
  10160. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10161. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10162. #define $ac_func innocuous_$ac_func
  10163. /* System header to define __stub macros and hopefully few prototypes,
  10164. which can conflict with char $ac_func (); below.
  10165. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10166. <limits.h> exists even on freestanding compilers. */
  10167. #ifdef __STDC__
  10168. # include <limits.h>
  10169. #else
  10170. # include <assert.h>
  10171. #endif
  10172. #undef $ac_func
  10173. /* Override any gcc2 internal prototype to avoid an error. */
  10174. #ifdef __cplusplus
  10175. extern "C"
  10176. {
  10177. #endif
  10178. /* We use char because int might match the return type of a gcc2
  10179. builtin and then its argument prototype would still apply. */
  10180. char $ac_func ();
  10181. /* The GNU C library defines this for functions which it implements
  10182. to always fail with ENOSYS. Some functions are actually named
  10183. something starting with __ and the normal name is an alias. */
  10184. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10185. choke me
  10186. #else
  10187. char (*f) () = $ac_func;
  10188. #endif
  10189. #ifdef __cplusplus
  10190. }
  10191. #endif
  10192. int
  10193. main ()
  10194. {
  10195. return f != $ac_func;
  10196. ;
  10197. return 0;
  10198. }
  10199. _ACEOF
  10200. rm -f conftest.$ac_objext conftest$ac_exeext
  10201. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10202. (eval $ac_link) 2>conftest.er1
  10203. ac_status=$?
  10204. grep -v '^ *+' conftest.er1 >conftest.err
  10205. rm -f conftest.er1
  10206. cat conftest.err >&5
  10207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10208. (exit $ac_status); } &&
  10209. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10210. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10211. (eval $ac_try) 2>&5
  10212. ac_status=$?
  10213. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10214. (exit $ac_status); }; } &&
  10215. { ac_try='test -s conftest$ac_exeext'
  10216. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10217. (eval $ac_try) 2>&5
  10218. ac_status=$?
  10219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10220. (exit $ac_status); }; }; then
  10221. eval "$as_ac_var=yes"
  10222. else
  10223. echo "$as_me: failed program was:" >&5
  10224. sed 's/^/| /' conftest.$ac_ext >&5
  10225. eval "$as_ac_var=no"
  10226. fi
  10227. rm -f conftest.err conftest.$ac_objext \
  10228. conftest$ac_exeext conftest.$ac_ext
  10229. fi
  10230. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10231. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10232. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10233. cat >>confdefs.h <<_ACEOF
  10234. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10235. _ACEOF
  10236. fi
  10237. done
  10238. #autoscan suggested this....
  10239. #These are recommended by autoscan, but no code supports it currently
  10240. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa mbrlen mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  10241. for ac_func in vsprintf
  10242. do
  10243. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10244. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10245. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10246. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10247. echo $ECHO_N "(cached) $ECHO_C" >&6
  10248. else
  10249. cat >conftest.$ac_ext <<_ACEOF
  10250. /* confdefs.h. */
  10251. _ACEOF
  10252. cat confdefs.h >>conftest.$ac_ext
  10253. cat >>conftest.$ac_ext <<_ACEOF
  10254. /* end confdefs.h. */
  10255. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10256. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10257. #define $ac_func innocuous_$ac_func
  10258. /* System header to define __stub macros and hopefully few prototypes,
  10259. which can conflict with char $ac_func (); below.
  10260. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10261. <limits.h> exists even on freestanding compilers. */
  10262. #ifdef __STDC__
  10263. # include <limits.h>
  10264. #else
  10265. # include <assert.h>
  10266. #endif
  10267. #undef $ac_func
  10268. /* Override any gcc2 internal prototype to avoid an error. */
  10269. #ifdef __cplusplus
  10270. extern "C"
  10271. {
  10272. #endif
  10273. /* We use char because int might match the return type of a gcc2
  10274. builtin and then its argument prototype would still apply. */
  10275. char $ac_func ();
  10276. /* The GNU C library defines this for functions which it implements
  10277. to always fail with ENOSYS. Some functions are actually named
  10278. something starting with __ and the normal name is an alias. */
  10279. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10280. choke me
  10281. #else
  10282. char (*f) () = $ac_func;
  10283. #endif
  10284. #ifdef __cplusplus
  10285. }
  10286. #endif
  10287. int
  10288. main ()
  10289. {
  10290. return f != $ac_func;
  10291. ;
  10292. return 0;
  10293. }
  10294. _ACEOF
  10295. rm -f conftest.$ac_objext conftest$ac_exeext
  10296. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10297. (eval $ac_link) 2>conftest.er1
  10298. ac_status=$?
  10299. grep -v '^ *+' conftest.er1 >conftest.err
  10300. rm -f conftest.er1
  10301. cat conftest.err >&5
  10302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10303. (exit $ac_status); } &&
  10304. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10305. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10306. (eval $ac_try) 2>&5
  10307. ac_status=$?
  10308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10309. (exit $ac_status); }; } &&
  10310. { ac_try='test -s conftest$ac_exeext'
  10311. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10312. (eval $ac_try) 2>&5
  10313. ac_status=$?
  10314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10315. (exit $ac_status); }; }; then
  10316. eval "$as_ac_var=yes"
  10317. else
  10318. echo "$as_me: failed program was:" >&5
  10319. sed 's/^/| /' conftest.$ac_ext >&5
  10320. eval "$as_ac_var=no"
  10321. fi
  10322. rm -f conftest.err conftest.$ac_objext \
  10323. conftest$ac_exeext conftest.$ac_ext
  10324. fi
  10325. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10326. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10327. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10328. cat >>confdefs.h <<_ACEOF
  10329. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10330. _ACEOF
  10331. fi
  10332. done
  10333. if test "$ac_cv_func_vsprintf" = "no"
  10334. then
  10335. cat << 'EOF' >&2
  10336. configure: error:
  10337. Your system does not have the sprintf/vsprintf libraries.
  10338. These are required to compile almost anything. Sorry.
  10339. EOF
  10340. exit 1
  10341. fi
  10342. for ac_func in uname
  10343. do
  10344. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10345. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10346. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10347. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10348. echo $ECHO_N "(cached) $ECHO_C" >&6
  10349. else
  10350. cat >conftest.$ac_ext <<_ACEOF
  10351. /* confdefs.h. */
  10352. _ACEOF
  10353. cat confdefs.h >>conftest.$ac_ext
  10354. cat >>conftest.$ac_ext <<_ACEOF
  10355. /* end confdefs.h. */
  10356. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10357. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10358. #define $ac_func innocuous_$ac_func
  10359. /* System header to define __stub macros and hopefully few prototypes,
  10360. which can conflict with char $ac_func (); below.
  10361. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10362. <limits.h> exists even on freestanding compilers. */
  10363. #ifdef __STDC__
  10364. # include <limits.h>
  10365. #else
  10366. # include <assert.h>
  10367. #endif
  10368. #undef $ac_func
  10369. /* Override any gcc2 internal prototype to avoid an error. */
  10370. #ifdef __cplusplus
  10371. extern "C"
  10372. {
  10373. #endif
  10374. /* We use char because int might match the return type of a gcc2
  10375. builtin and then its argument prototype would still apply. */
  10376. char $ac_func ();
  10377. /* The GNU C library defines this for functions which it implements
  10378. to always fail with ENOSYS. Some functions are actually named
  10379. something starting with __ and the normal name is an alias. */
  10380. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10381. choke me
  10382. #else
  10383. char (*f) () = $ac_func;
  10384. #endif
  10385. #ifdef __cplusplus
  10386. }
  10387. #endif
  10388. int
  10389. main ()
  10390. {
  10391. return f != $ac_func;
  10392. ;
  10393. return 0;
  10394. }
  10395. _ACEOF
  10396. rm -f conftest.$ac_objext conftest$ac_exeext
  10397. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10398. (eval $ac_link) 2>conftest.er1
  10399. ac_status=$?
  10400. grep -v '^ *+' conftest.er1 >conftest.err
  10401. rm -f conftest.er1
  10402. cat conftest.err >&5
  10403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10404. (exit $ac_status); } &&
  10405. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10406. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10407. (eval $ac_try) 2>&5
  10408. ac_status=$?
  10409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10410. (exit $ac_status); }; } &&
  10411. { ac_try='test -s conftest$ac_exeext'
  10412. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10413. (eval $ac_try) 2>&5
  10414. ac_status=$?
  10415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10416. (exit $ac_status); }; }; then
  10417. eval "$as_ac_var=yes"
  10418. else
  10419. echo "$as_me: failed program was:" >&5
  10420. sed 's/^/| /' conftest.$ac_ext >&5
  10421. eval "$as_ac_var=no"
  10422. fi
  10423. rm -f conftest.err conftest.$ac_objext \
  10424. conftest$ac_exeext conftest.$ac_ext
  10425. fi
  10426. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10427. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10428. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10429. cat >>confdefs.h <<_ACEOF
  10430. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10431. _ACEOF
  10432. fi
  10433. done
  10434. if test "$ac_cv_func_uname" = "no"
  10435. then
  10436. cat << 'EOF' >&2
  10437. configure: error:
  10438. Your system does not have the uname() function.
  10439. This is required for the botpack.
  10440. EOF
  10441. exit 1
  10442. fi
  10443. # Make sure we have stdc headers, since we can't compile without them
  10444. if test "$ac_cv_header_stdc" = "no"
  10445. then
  10446. cat << 'EOF' >&2
  10447. configure: error:
  10448. Your system must support ANSI C Header files.
  10449. These are required for the language support. Sorry.
  10450. EOF
  10451. exit 1
  10452. fi
  10453. # Make sure we are using the correct result from a broken libsafe sscanf
  10454. echo "$as_me:$LINENO: checking for broken libsafe sscanf" >&5
  10455. echo $ECHO_N "checking for broken libsafe sscanf... $ECHO_C" >&6
  10456. if test "${egg_cv_var_libsafe_sscanf+set}" = set; then
  10457. echo $ECHO_N "(cached) $ECHO_C" >&6
  10458. else
  10459. if test "$cross_compiling" = yes; then
  10460. egg_cv_var_libsafe_sscanf="no"
  10461. else
  10462. cat >conftest.$ac_ext <<_ACEOF
  10463. /* confdefs.h. */
  10464. _ACEOF
  10465. cat confdefs.h >>conftest.$ac_ext
  10466. cat >>conftest.$ac_ext <<_ACEOF
  10467. /* end confdefs.h. */
  10468. #include <stdio.h>
  10469. int main()
  10470. {
  10471. char *src = "0x001,guppyism\n";
  10472. char dst[10];
  10473. int idx;
  10474. if (sscanf(src, "0x%x,%10c", &idx, dst) == 1)
  10475. exit(1);
  10476. return 0;
  10477. }
  10478. _ACEOF
  10479. rm -f conftest$ac_exeext
  10480. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10481. (eval $ac_link) 2>&5
  10482. ac_status=$?
  10483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10484. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10485. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10486. (eval $ac_try) 2>&5
  10487. ac_status=$?
  10488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10489. (exit $ac_status); }; }; then
  10490. egg_cv_var_libsafe_sscanf="no"
  10491. else
  10492. echo "$as_me: program exited with status $ac_status" >&5
  10493. echo "$as_me: failed program was:" >&5
  10494. sed 's/^/| /' conftest.$ac_ext >&5
  10495. ( exit $ac_status )
  10496. egg_cv_var_libsafe_sscanf="yes"
  10497. fi
  10498. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10499. fi
  10500. fi
  10501. echo "$as_me:$LINENO: result: $egg_cv_var_libsafe_sscanf" >&5
  10502. echo "${ECHO_T}$egg_cv_var_libsafe_sscanf" >&6
  10503. if test "$egg_cv_var_libsafe_sscanf" = "yes"
  10504. then
  10505. cat >>confdefs.h <<\_ACEOF
  10506. #define LIBSAFE_HACKS 1
  10507. _ACEOF
  10508. fi
  10509. #checkpoint
  10510. cat >confcache <<\_ACEOF
  10511. # This file is a shell script that caches the results of configure
  10512. # tests run on this system so they can be shared between configure
  10513. # scripts and configure runs, see configure's option --config-cache.
  10514. # It is not useful on other systems. If it contains results you don't
  10515. # want to keep, you may remove or edit it.
  10516. #
  10517. # config.status only pays attention to the cache file if you give it
  10518. # the --recheck option to rerun configure.
  10519. #
  10520. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10521. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10522. # following values.
  10523. _ACEOF
  10524. # The following way of writing the cache mishandles newlines in values,
  10525. # but we know of no workaround that is simple, portable, and efficient.
  10526. # So, don't put newlines in cache variables' values.
  10527. # Ultrix sh set writes to stderr and can't be redirected directly,
  10528. # and sets the high bit in the cache file unless we assign to the vars.
  10529. {
  10530. (set) 2>&1 |
  10531. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10532. *ac_space=\ *)
  10533. # `set' does not quote correctly, so add quotes (double-quote
  10534. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10535. sed -n \
  10536. "s/'/'\\\\''/g;
  10537. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10538. ;;
  10539. *)
  10540. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10541. sed -n \
  10542. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10543. ;;
  10544. esac;
  10545. } |
  10546. sed '
  10547. t clear
  10548. : clear
  10549. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10550. t end
  10551. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10552. : end' >>confcache
  10553. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10554. if test -w $cache_file; then
  10555. test "x$cache_file" != "x/dev/null"
  10556. cat confcache >$cache_file
  10557. else
  10558. echo "not updating unwritable cache $cache_file"
  10559. fi
  10560. fi
  10561. rm -f confcache
  10562. # Where is Tcl? Is it here?
  10563. # ---------- begin robey's Tcl thingies
  10564. # (well, what used to be robey's Tcl thingies...)
  10565. # Latest tested Tcl version to recommend if Tcl isn't found
  10566. tclrecommendver="8.4"
  10567. # Site recommended to download Tcl from
  10568. tclrecommendsite="http://www.tcl.tk/software/tcltk/download84.html"
  10569. # Tcl library filename prefixes (also used for Tcl header dir on FreeBSD)
  10570. tcllibnames="tcl tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 tcl8.1 tcl81 \
  10571. tcl8.0 tcl80"
  10572. # Tcl library filename suffixes
  10573. tcllibextensions=".a .so .so.1 .so.1.0 .so.1.2 .sl .dll .dylib"
  10574. # Tcl library search paths
  10575. tcllibpaths="${HOME}/lib ${HOME}/tcl/lib ${HOME} \
  10576. /usr/local/lib /usr/local/pkgs/tcl/lib \
  10577. /usr/lib /lib /usr/i486-linuxaout/lib \
  10578. /beos/system/lib /sys/lib"
  10579. # Tcl header filenames
  10580. tclheadernames="tcl.h"
  10581. # Tcl header search paths
  10582. tclheaderpaths="${HOME}/include ${HOME}/tcl/include ${HOME} \
  10583. /usr/local/include /usr/local/pkgs/tcl/include \
  10584. /usr/include /beos/system/include /beos/devel/include \
  10585. /sys/include"
  10586. # oohh new configure --variables for those with multiple Tcl libs
  10587. # Check whether --with-tcllib or --without-tcllib was given.
  10588. if test "${with_tcllib+set}" = set; then
  10589. withval="$with_tcllib"
  10590. tcllibname="$withval"
  10591. fi;
  10592. # Check whether --with-tclinc or --without-tclinc was given.
  10593. if test "${with_tclinc+set}" = set; then
  10594. withval="$with_tclinc"
  10595. tclincname="$withval"
  10596. fi;
  10597. WARN=0
  10598. # Make sure either both or neither $tcllibname and $tclincname are set
  10599. if test ! "${tcllibname-x}" = "x"
  10600. then
  10601. if test "${tclincname-x}" = "x"
  10602. then
  10603. WARN=1
  10604. tcllibname=""
  10605. TCLLIB=""
  10606. TCLINC=""
  10607. fi
  10608. else
  10609. if test ! "${tclincname-x}" = "x"
  10610. then
  10611. WARN=1
  10612. tclincname=""
  10613. TCLLIB=""
  10614. TCLINC=""
  10615. fi
  10616. fi
  10617. if test "$WARN" = 1
  10618. then
  10619. cat << 'EOF' >&2
  10620. configure: warning:
  10621. You must specify both --with-tcllib and --with-tclinc for them to work.
  10622. configure will now attempt to autodetect both the Tcl library and header...
  10623. EOF
  10624. fi
  10625. WARN=0
  10626. # Make sure either both or neither $TCLLIB and $TCLINC are set
  10627. if test ! "${TCLLIB-x}" = "x"
  10628. then
  10629. if test "${TCLINC-x}" = "x"
  10630. then
  10631. WARN=1
  10632. WVAR1=TCLLIB
  10633. WVAR2=TCLINC
  10634. TCLLIB=""
  10635. fi
  10636. else
  10637. if test ! "${TCLINC-x}" = "x"
  10638. then
  10639. WARN=1
  10640. WVAR1=TCLINC
  10641. WVAR2=TCLLIB
  10642. TCLINC=""
  10643. fi
  10644. fi
  10645. if test "$WARN" = 1
  10646. then
  10647. cat << EOF >&2
  10648. configure: warning:
  10649. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  10650. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  10651. configure will now attempt to autodetect both the Tcl library and header...
  10652. EOF
  10653. fi
  10654. # Look for Tcl library: if $tcllibname is set, check there first
  10655. if test ! "${tcllibname-x}" = "x"
  10656. then
  10657. if test -f "$tcllibname" && test -r "$tcllibname"
  10658. then
  10659. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  10660. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  10661. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  10662. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  10663. else
  10664. cat << EOF >&2
  10665. configure: warning:
  10666. The file '$tcllibname' given to option --with-tcllib is not valid.
  10667. configure will now attempt to autodetect both the Tcl library and header...
  10668. EOF
  10669. tcllibname=""
  10670. tclincname=""
  10671. TCLLIB=""
  10672. TCLLIBFN=""
  10673. TCLINC=""
  10674. TCLINCFN=""
  10675. fi
  10676. fi
  10677. # Look for Tcl header: if $tclincname is set, check there first
  10678. if test ! "${tclincname-x}" = "x"
  10679. then
  10680. if test -f "$tclincname" && test -r "$tclincname"
  10681. then
  10682. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  10683. TCLINCFN=`$BASENAME $tclincname`
  10684. else
  10685. cat << EOF >&2
  10686. configure: warning:
  10687. The file '$tclincname' given to option --with-tclinc is not valid.
  10688. configure will now attempt to autodetect both the Tcl library and header...
  10689. EOF
  10690. tcllibname=""
  10691. tclincname=""
  10692. TCLLIB=""
  10693. TCLLIBFN=""
  10694. TCLINC=""
  10695. TCLINCFN=""
  10696. fi
  10697. fi
  10698. # Look for Tcl library: if $TCLLIB is set, check there first
  10699. if test "${TCLLIBFN-x}" = "x"
  10700. then
  10701. if test ! "${TCLLIB-x}" = "x"
  10702. then
  10703. if test -d "$TCLLIB"
  10704. then
  10705. for tcllibfns in $tcllibnames
  10706. do
  10707. for tcllibext in $tcllibextensions
  10708. do
  10709. if test -r "$TCLLIB/lib$tcllibfns$tcllibext"
  10710. then
  10711. TCLLIBFN="$tcllibfns$tcllibext"
  10712. TCLLIBEXT="$tcllibext"
  10713. TCLLIBFNS="$tcllibfns"
  10714. break 2
  10715. fi
  10716. done
  10717. done
  10718. fi
  10719. if test "${TCLLIBFN-x}" = "x"
  10720. then
  10721. cat << 'EOF' >&2
  10722. configure: warning:
  10723. Environment variable TCLLIB was set, but incorrect.
  10724. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  10725. configure will now attempt to autodetect both the Tcl library and header...
  10726. EOF
  10727. TCLLIB=""
  10728. TCLLIBFN=""
  10729. TCLINC=""
  10730. TCLINCFN=""
  10731. fi
  10732. fi
  10733. fi
  10734. # Look for Tcl header: if $TCLINC is set, check there first
  10735. if test "${TCLINCFN-x}" = "x"
  10736. then
  10737. if test ! "${TCLINC-x}" = "x"
  10738. then
  10739. if test -d "$TCLINC"
  10740. then
  10741. for tclheaderfn in $tclheadernames
  10742. do
  10743. if test -r "$TCLINC/$tclheaderfn"
  10744. then
  10745. TCLINCFN="$tclheaderfn"
  10746. break
  10747. fi
  10748. done
  10749. fi
  10750. if test "${TCLINCFN-x}" = "x"
  10751. then
  10752. cat << 'EOF' >&2
  10753. configure: warning:
  10754. Environment variable TCLINC was set, but incorrect.
  10755. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  10756. configure will now attempt to autodetect both the Tcl library and header...
  10757. EOF
  10758. TCLLIB=""
  10759. TCLLIBFN=""
  10760. TCLINC=""
  10761. TCLINCFN=""
  10762. fi
  10763. fi
  10764. fi
  10765. echo "$as_me:$LINENO: checking for Tcl library" >&5
  10766. echo $ECHO_N "checking for Tcl library... $ECHO_C" >&6
  10767. # Attempt autodetect for $TCLLIBFN if it's not set
  10768. if test ! "${TCLLIBFN-x}" = "x"
  10769. then
  10770. echo "$as_me:$LINENO: result: using $TCLLIB/lib$TCLLIBFN" >&5
  10771. echo "${ECHO_T}using $TCLLIB/lib$TCLLIBFN" >&6
  10772. else
  10773. for tcllibfns in $tcllibnames
  10774. do
  10775. for tcllibext in $tcllibextensions
  10776. do
  10777. for tcllibpath in $tcllibpaths
  10778. do
  10779. if test -r "$tcllibpath/lib$tcllibfns$tcllibext"
  10780. then
  10781. echo "$as_me:$LINENO: result: found $tcllibpath/lib$tcllibfns$tcllibext" >&5
  10782. echo "${ECHO_T}found $tcllibpath/lib$tcllibfns$tcllibext" >&6
  10783. TCLLIB="$tcllibpath"
  10784. TCLLIBFN="$tcllibfns$tcllibext"
  10785. TCLLIBEXT="$tcllibext"
  10786. TCLLIBFNS="$tcllibfns"
  10787. break 3
  10788. fi
  10789. done
  10790. done
  10791. done
  10792. fi
  10793. # Show if $TCLLIBFN wasn't found
  10794. if test "${TCLLIBFN-x}" = "x"
  10795. then
  10796. echo "$as_me:$LINENO: result: not found" >&5
  10797. echo "${ECHO_T}not found" >&6
  10798. fi
  10799. echo "$as_me:$LINENO: checking for Tcl header" >&5
  10800. echo $ECHO_N "checking for Tcl header... $ECHO_C" >&6
  10801. # Attempt autodetect for $TCLINCFN if it's not set
  10802. if test ! "${TCLINCFN-x}" = "x"
  10803. then
  10804. echo "$as_me:$LINENO: result: using $TCLINC/$TCLINCFN" >&5
  10805. echo "${ECHO_T}using $TCLINC/$TCLINCFN" >&6
  10806. else
  10807. for tclheaderpath in $tclheaderpaths
  10808. do
  10809. for tclheaderfn in $tclheadernames
  10810. do
  10811. if test -r "$tclheaderpath/$tclheaderfn"
  10812. then
  10813. echo "$as_me:$LINENO: result: found $tclheaderpath/$tclheaderfn" >&5
  10814. echo "${ECHO_T}found $tclheaderpath/$tclheaderfn" >&6
  10815. TCLINC="$tclheaderpath"
  10816. TCLINCFN="$tclheaderfn"
  10817. break 2
  10818. fi
  10819. done
  10820. done
  10821. # FreeBSD hack ...
  10822. if test "${TCLINCFN-x}" = "x"
  10823. then
  10824. for tcllibfns in $tcllibnames
  10825. do
  10826. for tclheaderpath in $tclheaderpaths
  10827. do
  10828. for tclheaderfn in $tclheadernames
  10829. do
  10830. if test -r "$tclheaderpath/$tcllibfns/$tclheaderfn"
  10831. then
  10832. echo "$as_me:$LINENO: result: found $tclheaderpath/$tcllibfns/$tclheaderfn" >&5
  10833. echo "${ECHO_T}found $tclheaderpath/$tcllibfns/$tclheaderfn" >&6
  10834. TCLINC="$tclheaderpath/$tcllibfns"
  10835. TCLINCFN="$tclheaderfn"
  10836. break 3
  10837. fi
  10838. done
  10839. done
  10840. done
  10841. fi
  10842. fi
  10843. # Show if $TCLINCFN wasn't found
  10844. if test "${TCLINCFN-x}" = "x"
  10845. then
  10846. echo "$as_me:$LINENO: result: not found" >&5
  10847. echo "${ECHO_T}not found" >&6
  10848. fi
  10849. echo "$as_me:$LINENO: checking whether the Tcl system has changed" >&5
  10850. echo $ECHO_N "checking whether the Tcl system has changed... $ECHO_C" >&6
  10851. egg_tcl_changed=yes
  10852. egg_tcl_id="$TCLLIB:$TCLLIBFN:$TCLINC:$TCLINCFN"
  10853. if test ! "$egg_tcl_id" = ":::"
  10854. then
  10855. egg_tcl_cached=yes
  10856. if test "${egg_cv_var_tcl_id+set}" = set; then
  10857. echo $ECHO_N "(cached) $ECHO_C" >&6
  10858. else
  10859. egg_cv_var_tcl_id="$egg_tcl_id"
  10860. egg_tcl_cached=no
  10861. fi
  10862. if test "$egg_tcl_cached" = "yes"
  10863. then
  10864. if test "${egg_cv_var_tcl_id-x}" = "${egg_tcl_id-x}"
  10865. then
  10866. egg_tcl_changed=no
  10867. else
  10868. egg_cv_var_tcl_id="$egg_tcl_id"
  10869. fi
  10870. fi
  10871. fi
  10872. if test "$egg_tcl_changed" = "yes"
  10873. then
  10874. echo "$as_me:$LINENO: result: yes" >&5
  10875. echo "${ECHO_T}yes" >&6
  10876. else
  10877. echo "$as_me:$LINENO: result: no" >&5
  10878. echo "${ECHO_T}no" >&6
  10879. fi
  10880. #checkpoint
  10881. cat >confcache <<\_ACEOF
  10882. # This file is a shell script that caches the results of configure
  10883. # tests run on this system so they can be shared between configure
  10884. # scripts and configure runs, see configure's option --config-cache.
  10885. # It is not useful on other systems. If it contains results you don't
  10886. # want to keep, you may remove or edit it.
  10887. #
  10888. # config.status only pays attention to the cache file if you give it
  10889. # the --recheck option to rerun configure.
  10890. #
  10891. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10892. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10893. # following values.
  10894. _ACEOF
  10895. # The following way of writing the cache mishandles newlines in values,
  10896. # but we know of no workaround that is simple, portable, and efficient.
  10897. # So, don't put newlines in cache variables' values.
  10898. # Ultrix sh set writes to stderr and can't be redirected directly,
  10899. # and sets the high bit in the cache file unless we assign to the vars.
  10900. {
  10901. (set) 2>&1 |
  10902. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10903. *ac_space=\ *)
  10904. # `set' does not quote correctly, so add quotes (double-quote
  10905. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10906. sed -n \
  10907. "s/'/'\\\\''/g;
  10908. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10909. ;;
  10910. *)
  10911. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10912. sed -n \
  10913. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10914. ;;
  10915. esac;
  10916. } |
  10917. sed '
  10918. t clear
  10919. : clear
  10920. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10921. t end
  10922. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10923. : end' >>confcache
  10924. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10925. if test -w $cache_file; then
  10926. test "x$cache_file" != "x/dev/null"
  10927. cat confcache >$cache_file
  10928. else
  10929. echo "not updating unwritable cache $cache_file"
  10930. fi
  10931. fi
  10932. rm -f confcache
  10933. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  10934. TCL_FOUND=0
  10935. if test ! "${TCLLIBFN-x}" = "x" && test ! "${TCLINCFN-x}" = "x"
  10936. then
  10937. TCL_FOUND=1
  10938. # Check Tcl's version
  10939. if test "$egg_tcl_changed" = "yes"
  10940. then
  10941. unset egg_cv_var_tcl_version
  10942. fi
  10943. echo "$as_me:$LINENO: checking for Tcl version" >&5
  10944. echo $ECHO_N "checking for Tcl version... $ECHO_C" >&6
  10945. if test "${egg_cv_var_tcl_version+set}" = set; then
  10946. echo $ECHO_N "(cached) $ECHO_C" >&6
  10947. else
  10948. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`
  10949. fi
  10950. if test ! "${egg_cv_var_tcl_version-x}" = "x"
  10951. then
  10952. echo "$as_me:$LINENO: result: $egg_cv_var_tcl_version" >&5
  10953. echo "${ECHO_T}$egg_cv_var_tcl_version" >&6
  10954. else
  10955. echo "$as_me:$LINENO: result: not found" >&5
  10956. echo "${ECHO_T}not found" >&6
  10957. TCL_FOUND=0
  10958. fi
  10959. # Check Tcl's patch level (if available)
  10960. if test "$egg_tcl_changed" = "yes"
  10961. then
  10962. unset egg_cv_var_tcl_patch_level
  10963. fi
  10964. echo "$as_me:$LINENO: checking for Tcl patch level" >&5
  10965. echo $ECHO_N "checking for Tcl patch level... $ECHO_C" >&6
  10966. if test "${egg_cv_var_tcl_patch_level+set}" = set; then
  10967. echo $ECHO_N "(cached) $ECHO_C" >&6
  10968. else
  10969. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`"
  10970. fi
  10971. if test ! "${egg_cv_var_tcl_patch_level-x}" = "x"
  10972. then
  10973. echo "$as_me:$LINENO: result: $egg_cv_var_tcl_patch_level" >&5
  10974. echo "${ECHO_T}$egg_cv_var_tcl_patch_level" >&6
  10975. else
  10976. egg_cv_var_tcl_patch_level="unknown"
  10977. echo "$as_me:$LINENO: result: unknown" >&5
  10978. echo "${ECHO_T}unknown" >&6
  10979. fi
  10980. fi
  10981. # Check if we found Tcl's version
  10982. if test "$TCL_FOUND" = 0
  10983. then
  10984. cat << 'EOF' >&2
  10985. configure: error:
  10986. I can't find Tcl on this system.
  10987. The download website is at:
  10988. http://www.tcl.tk/software/tcltk/download84.html
  10989. A nice direct link for the tarball is:
  10990. http://aleron.dl.sourceforge.net/sourceforge/tcl/tcl8.4.4-src.tar.gz
  10991. OR
  10992. Just type: ./build -T
  10993. EOF
  10994. exit 1
  10995. fi
  10996. # Is this version of Tcl too old for us to use ?
  10997. TCL_VER_PRE80=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 8) print "yes"; else print "no"}'`
  10998. if test "$TCL_VER_PRE80" = "yes"
  10999. then
  11000. cat << EOF >&2
  11001. configure: error:
  11002. Your Tcl version is much too old for Eggdrop to use.
  11003. I suggest you download and compile a more recent version.
  11004. The most reliable current version is $tclrecommendver and
  11005. can be downloaded from $tclrecommendsite
  11006. EOF
  11007. exit 1
  11008. fi
  11009. # Set variables for Tcl library tests
  11010. TCL_TEST_LIB="$TCLLIBFNS"
  11011. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  11012. if test ! "${ac_cv_lib_pthread-x}" = "x"
  11013. then
  11014. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  11015. fi
  11016. if test "$egg_tcl_changed" = "yes"
  11017. then
  11018. unset egg_cv_var_tcl_free
  11019. fi
  11020. # Check for Tcl_Free()
  11021. as_ac_Lib=`echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_Free" | $as_tr_sh`
  11022. echo "$as_me:$LINENO: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  11023. echo $ECHO_N "checking for Tcl_Free in -l$TCL_TEST_LIB... $ECHO_C" >&6
  11024. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  11025. echo $ECHO_N "(cached) $ECHO_C" >&6
  11026. else
  11027. ac_check_lib_save_LIBS=$LIBS
  11028. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  11029. cat >conftest.$ac_ext <<_ACEOF
  11030. /* confdefs.h. */
  11031. _ACEOF
  11032. cat confdefs.h >>conftest.$ac_ext
  11033. cat >>conftest.$ac_ext <<_ACEOF
  11034. /* end confdefs.h. */
  11035. /* Override any gcc2 internal prototype to avoid an error. */
  11036. #ifdef __cplusplus
  11037. extern "C"
  11038. #endif
  11039. /* We use char because int might match the return type of a gcc2
  11040. builtin and then its argument prototype would still apply. */
  11041. char Tcl_Free ();
  11042. int
  11043. main ()
  11044. {
  11045. Tcl_Free ();
  11046. ;
  11047. return 0;
  11048. }
  11049. _ACEOF
  11050. rm -f conftest.$ac_objext conftest$ac_exeext
  11051. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11052. (eval $ac_link) 2>conftest.er1
  11053. ac_status=$?
  11054. grep -v '^ *+' conftest.er1 >conftest.err
  11055. rm -f conftest.er1
  11056. cat conftest.err >&5
  11057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11058. (exit $ac_status); } &&
  11059. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11060. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11061. (eval $ac_try) 2>&5
  11062. ac_status=$?
  11063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11064. (exit $ac_status); }; } &&
  11065. { ac_try='test -s conftest$ac_exeext'
  11066. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11067. (eval $ac_try) 2>&5
  11068. ac_status=$?
  11069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11070. (exit $ac_status); }; }; then
  11071. eval "$as_ac_Lib=yes"
  11072. else
  11073. echo "$as_me: failed program was:" >&5
  11074. sed 's/^/| /' conftest.$ac_ext >&5
  11075. eval "$as_ac_Lib=no"
  11076. fi
  11077. rm -f conftest.err conftest.$ac_objext \
  11078. conftest$ac_exeext conftest.$ac_ext
  11079. LIBS=$ac_check_lib_save_LIBS
  11080. fi
  11081. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  11082. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  11083. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  11084. egg_cv_var_tcl_free="yes"
  11085. else
  11086. egg_cv_var_tcl_free="no"
  11087. fi
  11088. if test "$egg_cv_var_tcl_free" = "yes"
  11089. then
  11090. cat >>confdefs.h <<\_ACEOF
  11091. #define HAVE_TCL_FREE 1
  11092. _ACEOF
  11093. fi
  11094. if test "$egg_tcl_changed" = "yes"
  11095. then
  11096. unset egg_cv_var_tcl_threaded
  11097. fi
  11098. # Check for TclpFinalizeThreadData()
  11099. as_ac_Lib=`echo "ac_cv_lib_$TCL_TEST_LIB''_TclpFinalizeThreadData" | $as_tr_sh`
  11100. echo "$as_me:$LINENO: checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB" >&5
  11101. echo $ECHO_N "checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB... $ECHO_C" >&6
  11102. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  11103. echo $ECHO_N "(cached) $ECHO_C" >&6
  11104. else
  11105. ac_check_lib_save_LIBS=$LIBS
  11106. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  11107. cat >conftest.$ac_ext <<_ACEOF
  11108. /* confdefs.h. */
  11109. _ACEOF
  11110. cat confdefs.h >>conftest.$ac_ext
  11111. cat >>conftest.$ac_ext <<_ACEOF
  11112. /* end confdefs.h. */
  11113. /* Override any gcc2 internal prototype to avoid an error. */
  11114. #ifdef __cplusplus
  11115. extern "C"
  11116. #endif
  11117. /* We use char because int might match the return type of a gcc2
  11118. builtin and then its argument prototype would still apply. */
  11119. char TclpFinalizeThreadData ();
  11120. int
  11121. main ()
  11122. {
  11123. TclpFinalizeThreadData ();
  11124. ;
  11125. return 0;
  11126. }
  11127. _ACEOF
  11128. rm -f conftest.$ac_objext conftest$ac_exeext
  11129. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11130. (eval $ac_link) 2>conftest.er1
  11131. ac_status=$?
  11132. grep -v '^ *+' conftest.er1 >conftest.err
  11133. rm -f conftest.er1
  11134. cat conftest.err >&5
  11135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11136. (exit $ac_status); } &&
  11137. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11138. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11139. (eval $ac_try) 2>&5
  11140. ac_status=$?
  11141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11142. (exit $ac_status); }; } &&
  11143. { ac_try='test -s conftest$ac_exeext'
  11144. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11145. (eval $ac_try) 2>&5
  11146. ac_status=$?
  11147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11148. (exit $ac_status); }; }; then
  11149. eval "$as_ac_Lib=yes"
  11150. else
  11151. echo "$as_me: failed program was:" >&5
  11152. sed 's/^/| /' conftest.$ac_ext >&5
  11153. eval "$as_ac_Lib=no"
  11154. fi
  11155. rm -f conftest.err conftest.$ac_objext \
  11156. conftest$ac_exeext conftest.$ac_ext
  11157. LIBS=$ac_check_lib_save_LIBS
  11158. fi
  11159. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  11160. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  11161. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  11162. egg_cv_var_tcl_threaded="yes"
  11163. else
  11164. egg_cv_var_tcl_threaded="no"
  11165. fi
  11166. enable_tcl_threads=no
  11167. if test "$egg_cv_var_tcl_threaded" = "yes"
  11168. then
  11169. if test "$enable_tcl_threads" = "no"
  11170. then
  11171. cat << 'EOF' >&2
  11172. configure: warning:
  11173. You have disabled threads support on a system with a threaded Tcl library.
  11174. Tcl features that rely on scheduled events may not function properly.
  11175. EOF
  11176. fi
  11177. # Add pthread library to $LIBS if we need it
  11178. if test ! "${ac_cv_lib_pthread-x}" = "x"
  11179. then
  11180. LIBS="$ac_cv_lib_pthread $LIBS"
  11181. fi
  11182. fi
  11183. if test "$EGG_CYGWIN" = "yes"
  11184. then
  11185. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  11186. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  11187. else
  11188. if test ! "$TCLLIBEXT" = ".a"
  11189. then
  11190. cat << 'EOF' >&2
  11191. configure: warning:
  11192. Your Tcl library is not compiled statically.
  11193. You will need to compile Tcl statically to successfully compile wraith.
  11194. EOF
  11195. exit 1
  11196. else
  11197. # Was the --with-tcllib option given ?
  11198. if test ! "${tcllibname-x}" = "x"
  11199. then
  11200. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  11201. TCL_LIBS="$TCLLIB/lib$TCLLIBFN $EGG_MATH_LIB"
  11202. else
  11203. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  11204. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  11205. fi
  11206. fi
  11207. fi
  11208. ac_config_commands="$ac_config_commands replace-if-changed"
  11209. #checkpoint
  11210. cat >confcache <<\_ACEOF
  11211. # This file is a shell script that caches the results of configure
  11212. # tests run on this system so they can be shared between configure
  11213. # scripts and configure runs, see configure's option --config-cache.
  11214. # It is not useful on other systems. If it contains results you don't
  11215. # want to keep, you may remove or edit it.
  11216. #
  11217. # config.status only pays attention to the cache file if you give it
  11218. # the --recheck option to rerun configure.
  11219. #
  11220. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11221. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11222. # following values.
  11223. _ACEOF
  11224. # The following way of writing the cache mishandles newlines in values,
  11225. # but we know of no workaround that is simple, portable, and efficient.
  11226. # So, don't put newlines in cache variables' values.
  11227. # Ultrix sh set writes to stderr and can't be redirected directly,
  11228. # and sets the high bit in the cache file unless we assign to the vars.
  11229. {
  11230. (set) 2>&1 |
  11231. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11232. *ac_space=\ *)
  11233. # `set' does not quote correctly, so add quotes (double-quote
  11234. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11235. sed -n \
  11236. "s/'/'\\\\''/g;
  11237. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11238. ;;
  11239. *)
  11240. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11241. sed -n \
  11242. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11243. ;;
  11244. esac;
  11245. } |
  11246. sed '
  11247. t clear
  11248. : clear
  11249. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11250. t end
  11251. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11252. : end' >>confcache
  11253. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11254. if test -w $cache_file; then
  11255. test "x$cache_file" != "x/dev/null"
  11256. cat confcache >$cache_file
  11257. else
  11258. echo "not updating unwritable cache $cache_file"
  11259. fi
  11260. fi
  11261. rm -f confcache
  11262. # ---------- end of (what used to be) robey's Tcl thingies
  11263. if test "$NEED_DL" = 1 && test "$ac_cv_func_dlopen" = "no"
  11264. then
  11265. if test "$LINUX" = "yes"
  11266. then
  11267. cat << 'EOF' >&2
  11268. configure: warning:
  11269. Since you are on a Linux system, this has a known problem...
  11270. I know a kludge for it,
  11271. EOF
  11272. if test -r "/lib/libdl.so.1"
  11273. then
  11274. cat << 'EOF' >&2
  11275. and you seem to have it, so we'll do that...
  11276. EOF
  11277. cat >>confdefs.h <<\_ACEOF
  11278. #define HAVE_DLOPEN 1
  11279. _ACEOF
  11280. LIBS="/lib/libdl.so.1 $LIBS"
  11281. else
  11282. cat << 'EOF' >&2
  11283. which you DON'T seem to have... doh!
  11284. perhaps you may still have the stuff lying around somewhere
  11285. if you work out where it is, add it to your XLIBS= lines
  11286. and #define HAVE_DLOPEN in config.h
  11287. we'll proceed on anyway, but you probably won't be able
  11288. to 'make eggdrop' but you might be able to make the
  11289. static bot (I'll default your make to this version).
  11290. EOF
  11291. fi
  11292. else
  11293. cat << 'EOF' >&2
  11294. configure: warning:
  11295. You don't seem to have libdl anywhere I can find it, this will
  11296. prevent you from doing dynamic modules, I'll set your default
  11297. make to static linking.
  11298. EOF
  11299. fi
  11300. fi
  11301. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  11302. NUMVER=`grep "int" $srcdir/src/main.c | $AWK '/egg_numver =/ {print $5}' | sed -e 's/\;//g'`
  11303. if ! test -f $srcdir/pack/pack.cfg; then
  11304. cat << 'EOF' >&2
  11305. configure: error:
  11306. Your pack cfg is missing, please copy it to $srcdir/pack/pack.cfg
  11307. EOF
  11308. exit 1
  11309. fi
  11310. PACKNAME=`grep "PACKNAME " $srcdir/pack/pack.cfg | $AWK '/PACKNAME/ {print $2}'`
  11311. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  11312. cat >>confdefs.h <<_ACEOF
  11313. #define EGG_VERSION $version_num
  11314. _ACEOF
  11315. case "$srcdir" in
  11316. [\\/]* | ?:[\\/]*)
  11317. MOD_UPDIR=""
  11318. ;;
  11319. *)
  11320. MOD_UPDIR="../"
  11321. ;;
  11322. esac
  11323. ac_config_commands="$ac_config_commands catch-make-rebuild"
  11324. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/mod/Makefile"
  11325. cat >confcache <<\_ACEOF
  11326. # This file is a shell script that caches the results of configure
  11327. # tests run on this system so they can be shared between configure
  11328. # scripts and configure runs, see configure's option --config-cache.
  11329. # It is not useful on other systems. If it contains results you don't
  11330. # want to keep, you may remove or edit it.
  11331. #
  11332. # config.status only pays attention to the cache file if you give it
  11333. # the --recheck option to rerun configure.
  11334. #
  11335. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11336. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11337. # following values.
  11338. _ACEOF
  11339. # The following way of writing the cache mishandles newlines in values,
  11340. # but we know of no workaround that is simple, portable, and efficient.
  11341. # So, don't put newlines in cache variables' values.
  11342. # Ultrix sh set writes to stderr and can't be redirected directly,
  11343. # and sets the high bit in the cache file unless we assign to the vars.
  11344. {
  11345. (set) 2>&1 |
  11346. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11347. *ac_space=\ *)
  11348. # `set' does not quote correctly, so add quotes (double-quote
  11349. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11350. sed -n \
  11351. "s/'/'\\\\''/g;
  11352. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11353. ;;
  11354. *)
  11355. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11356. sed -n \
  11357. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11358. ;;
  11359. esac;
  11360. } |
  11361. sed '
  11362. t clear
  11363. : clear
  11364. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11365. t end
  11366. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11367. : end' >>confcache
  11368. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11369. if test -w $cache_file; then
  11370. test "x$cache_file" != "x/dev/null"
  11371. cat confcache >$cache_file
  11372. else
  11373. echo "not updating unwritable cache $cache_file"
  11374. fi
  11375. fi
  11376. rm -f confcache
  11377. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11378. # Let make expand exec_prefix.
  11379. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11380. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11381. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11382. # trailing colons and then remove the whole line if VPATH becomes empty
  11383. # (actually we leave an empty line to preserve line numbers).
  11384. if test "x$srcdir" = x.; then
  11385. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11386. s/:*\$(srcdir):*/:/;
  11387. s/:*\${srcdir}:*/:/;
  11388. s/:*@srcdir@:*/:/;
  11389. s/^\([^=]*=[ ]*\):*/\1/;
  11390. s/:*$//;
  11391. s/^[^=]*=[ ]*$//;
  11392. }'
  11393. fi
  11394. DEFS=-DHAVE_CONFIG_H
  11395. ac_libobjs=
  11396. ac_ltlibobjs=
  11397. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11398. # 1. Remove the extension, and $U if already installed.
  11399. ac_i=`echo "$ac_i" |
  11400. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  11401. # 2. Add them.
  11402. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  11403. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  11404. done
  11405. LIBOBJS=$ac_libobjs
  11406. LTLIBOBJS=$ac_ltlibobjs
  11407. : ${CONFIG_STATUS=./config.status}
  11408. ac_clean_files_save=$ac_clean_files
  11409. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11410. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  11411. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11412. cat >$CONFIG_STATUS <<_ACEOF
  11413. #! $SHELL
  11414. # Generated by $as_me.
  11415. # Run this file to recreate the current configuration.
  11416. # Compiler output produced by configure, useful for debugging
  11417. # configure, is in config.log if it exists.
  11418. debug=false
  11419. ac_cs_recheck=false
  11420. ac_cs_silent=false
  11421. SHELL=\${CONFIG_SHELL-$SHELL}
  11422. _ACEOF
  11423. cat >>$CONFIG_STATUS <<\_ACEOF
  11424. ## --------------------- ##
  11425. ## M4sh Initialization. ##
  11426. ## --------------------- ##
  11427. # Be Bourne compatible
  11428. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  11429. emulate sh
  11430. NULLCMD=:
  11431. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  11432. # is contrary to our usage. Disable this feature.
  11433. alias -g '${1+"$@"}'='"$@"'
  11434. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  11435. set -o posix
  11436. fi
  11437. DUALCASE=1; export DUALCASE # for MKS sh
  11438. # Support unset when possible.
  11439. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11440. as_unset=unset
  11441. else
  11442. as_unset=false
  11443. fi
  11444. # Work around bugs in pre-3.0 UWIN ksh.
  11445. $as_unset ENV MAIL MAILPATH
  11446. PS1='$ '
  11447. PS2='> '
  11448. PS4='+ '
  11449. # NLS nuisances.
  11450. for as_var in \
  11451. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  11452. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  11453. LC_TELEPHONE LC_TIME
  11454. do
  11455. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  11456. eval $as_var=C; export $as_var
  11457. else
  11458. $as_unset $as_var
  11459. fi
  11460. done
  11461. # Required to use basename.
  11462. if expr a : '\(a\)' >/dev/null 2>&1; then
  11463. as_expr=expr
  11464. else
  11465. as_expr=false
  11466. fi
  11467. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  11468. as_basename=basename
  11469. else
  11470. as_basename=false
  11471. fi
  11472. # Name of the executable.
  11473. as_me=`$as_basename "$0" ||
  11474. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11475. X"$0" : 'X\(//\)$' \| \
  11476. X"$0" : 'X\(/\)$' \| \
  11477. . : '\(.\)' 2>/dev/null ||
  11478. echo X/"$0" |
  11479. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  11480. /^X\/\(\/\/\)$/{ s//\1/; q; }
  11481. /^X\/\(\/\).*/{ s//\1/; q; }
  11482. s/.*/./; q'`
  11483. # PATH needs CR, and LINENO needs CR and PATH.
  11484. # Avoid depending upon Character Ranges.
  11485. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11486. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11487. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11488. as_cr_digits='0123456789'
  11489. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11490. # The user is always right.
  11491. if test "${PATH_SEPARATOR+set}" != set; then
  11492. echo "#! /bin/sh" >conf$$.sh
  11493. echo "exit 0" >>conf$$.sh
  11494. chmod +x conf$$.sh
  11495. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11496. PATH_SEPARATOR=';'
  11497. else
  11498. PATH_SEPARATOR=:
  11499. fi
  11500. rm -f conf$$.sh
  11501. fi
  11502. as_lineno_1=$LINENO
  11503. as_lineno_2=$LINENO
  11504. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11505. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11506. test "x$as_lineno_3" = "x$as_lineno_2" || {
  11507. # Find who we are. Look in the path if we contain no path at all
  11508. # relative or not.
  11509. case $0 in
  11510. *[\\/]* ) as_myself=$0 ;;
  11511. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11512. for as_dir in $PATH
  11513. do
  11514. IFS=$as_save_IFS
  11515. test -z "$as_dir" && as_dir=.
  11516. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11517. done
  11518. ;;
  11519. esac
  11520. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11521. # in which case we are not to be found in the path.
  11522. if test "x$as_myself" = x; then
  11523. as_myself=$0
  11524. fi
  11525. if test ! -f "$as_myself"; then
  11526. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  11527. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  11528. { (exit 1); exit 1; }; }
  11529. fi
  11530. case $CONFIG_SHELL in
  11531. '')
  11532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11533. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  11534. do
  11535. IFS=$as_save_IFS
  11536. test -z "$as_dir" && as_dir=.
  11537. for as_base in sh bash ksh sh5; do
  11538. case $as_dir in
  11539. /*)
  11540. if ("$as_dir/$as_base" -c '
  11541. as_lineno_1=$LINENO
  11542. as_lineno_2=$LINENO
  11543. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11544. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11545. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  11546. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  11547. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  11548. CONFIG_SHELL=$as_dir/$as_base
  11549. export CONFIG_SHELL
  11550. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  11551. fi;;
  11552. esac
  11553. done
  11554. done
  11555. ;;
  11556. esac
  11557. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11558. # uniformly replaced by the line number. The first 'sed' inserts a
  11559. # line-number line before each line; the second 'sed' does the real
  11560. # work. The second script uses 'N' to pair each line-number line
  11561. # with the numbered line, and appends trailing '-' during
  11562. # substitution so that $LINENO is not a special case at line end.
  11563. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11564. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  11565. sed '=' <$as_myself |
  11566. sed '
  11567. N
  11568. s,$,-,
  11569. : loop
  11570. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  11571. t loop
  11572. s,-$,,
  11573. s,^['$as_cr_digits']*\n,,
  11574. ' >$as_me.lineno &&
  11575. chmod +x $as_me.lineno ||
  11576. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  11577. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  11578. { (exit 1); exit 1; }; }
  11579. # Don't try to exec as it changes $[0], causing all sort of problems
  11580. # (the dirname of $[0] is not the place where we might find the
  11581. # original and so on. Autoconf is especially sensible to this).
  11582. . ./$as_me.lineno
  11583. # Exit status is that of the last command.
  11584. exit
  11585. }
  11586. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  11587. *c*,-n*) ECHO_N= ECHO_C='
  11588. ' ECHO_T=' ' ;;
  11589. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  11590. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  11591. esac
  11592. if expr a : '\(a\)' >/dev/null 2>&1; then
  11593. as_expr=expr
  11594. else
  11595. as_expr=false
  11596. fi
  11597. rm -f conf$$ conf$$.exe conf$$.file
  11598. echo >conf$$.file
  11599. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11600. # We could just check for DJGPP; but this test a) works b) is more generic
  11601. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  11602. if test -f conf$$.exe; then
  11603. # Don't use ln at all; we don't have any links
  11604. as_ln_s='cp -p'
  11605. else
  11606. as_ln_s='ln -s'
  11607. fi
  11608. elif ln conf$$.file conf$$ 2>/dev/null; then
  11609. as_ln_s=ln
  11610. else
  11611. as_ln_s='cp -p'
  11612. fi
  11613. rm -f conf$$ conf$$.exe conf$$.file
  11614. if mkdir -p . 2>/dev/null; then
  11615. as_mkdir_p=:
  11616. else
  11617. test -d ./-p && rmdir ./-p
  11618. as_mkdir_p=false
  11619. fi
  11620. as_executable_p="test -f"
  11621. # Sed expression to map a string onto a valid CPP name.
  11622. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11623. # Sed expression to map a string onto a valid variable name.
  11624. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11625. # IFS
  11626. # We need space, tab and new line, in precisely that order.
  11627. as_nl='
  11628. '
  11629. IFS=" $as_nl"
  11630. # CDPATH.
  11631. $as_unset CDPATH
  11632. exec 6>&1
  11633. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  11634. # report actual input values of CONFIG_FILES etc. instead of their
  11635. # values after options handling. Logging --version etc. is OK.
  11636. exec 5>>config.log
  11637. {
  11638. echo
  11639. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11640. ## Running $as_me. ##
  11641. _ASBOX
  11642. } >&5
  11643. cat >&5 <<_CSEOF
  11644. This file was extended by $as_me, which was
  11645. generated by GNU Autoconf 2.59. Invocation command line was
  11646. CONFIG_FILES = $CONFIG_FILES
  11647. CONFIG_HEADERS = $CONFIG_HEADERS
  11648. CONFIG_LINKS = $CONFIG_LINKS
  11649. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11650. $ $0 $@
  11651. _CSEOF
  11652. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  11653. echo >&5
  11654. _ACEOF
  11655. # Files that config.status was made for.
  11656. if test -n "$ac_config_files"; then
  11657. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  11658. fi
  11659. if test -n "$ac_config_headers"; then
  11660. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  11661. fi
  11662. if test -n "$ac_config_links"; then
  11663. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  11664. fi
  11665. if test -n "$ac_config_commands"; then
  11666. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  11667. fi
  11668. cat >>$CONFIG_STATUS <<\_ACEOF
  11669. ac_cs_usage="\
  11670. \`$as_me' instantiates files from templates according to the
  11671. current configuration.
  11672. Usage: $0 [OPTIONS] [FILE]...
  11673. -h, --help print this help, then exit
  11674. -V, --version print version number, then exit
  11675. -q, --quiet do not print progress messages
  11676. -d, --debug don't remove temporary files
  11677. --recheck update $as_me by reconfiguring in the same conditions
  11678. --file=FILE[:TEMPLATE]
  11679. instantiate the configuration file FILE
  11680. --header=FILE[:TEMPLATE]
  11681. instantiate the configuration header FILE
  11682. Configuration files:
  11683. $config_files
  11684. Configuration headers:
  11685. $config_headers
  11686. Configuration commands:
  11687. $config_commands
  11688. Report bugs to <bug-autoconf@gnu.org>."
  11689. _ACEOF
  11690. cat >>$CONFIG_STATUS <<_ACEOF
  11691. ac_cs_version="\\
  11692. config.status
  11693. configured by $0, generated by GNU Autoconf 2.59,
  11694. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  11695. Copyright (C) 2003 Free Software Foundation, Inc.
  11696. This config.status script is free software; the Free Software Foundation
  11697. gives unlimited permission to copy, distribute and modify it."
  11698. srcdir=$srcdir
  11699. _ACEOF
  11700. cat >>$CONFIG_STATUS <<\_ACEOF
  11701. # If no file are specified by the user, then we need to provide default
  11702. # value. By we need to know if files were specified by the user.
  11703. ac_need_defaults=:
  11704. while test $# != 0
  11705. do
  11706. case $1 in
  11707. --*=*)
  11708. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  11709. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  11710. ac_shift=:
  11711. ;;
  11712. -*)
  11713. ac_option=$1
  11714. ac_optarg=$2
  11715. ac_shift=shift
  11716. ;;
  11717. *) # This is not an option, so the user has probably given explicit
  11718. # arguments.
  11719. ac_option=$1
  11720. ac_need_defaults=false;;
  11721. esac
  11722. case $ac_option in
  11723. # Handling of the options.
  11724. _ACEOF
  11725. cat >>$CONFIG_STATUS <<\_ACEOF
  11726. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11727. ac_cs_recheck=: ;;
  11728. --version | --vers* | -V )
  11729. echo "$ac_cs_version"; exit 0 ;;
  11730. --he | --h)
  11731. # Conflict between --help and --header
  11732. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  11733. Try \`$0 --help' for more information." >&5
  11734. echo "$as_me: error: ambiguous option: $1
  11735. Try \`$0 --help' for more information." >&2;}
  11736. { (exit 1); exit 1; }; };;
  11737. --help | --hel | -h )
  11738. echo "$ac_cs_usage"; exit 0 ;;
  11739. --debug | --d* | -d )
  11740. debug=: ;;
  11741. --file | --fil | --fi | --f )
  11742. $ac_shift
  11743. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11744. ac_need_defaults=false;;
  11745. --header | --heade | --head | --hea )
  11746. $ac_shift
  11747. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11748. ac_need_defaults=false;;
  11749. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11750. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11751. ac_cs_silent=: ;;
  11752. # This is an error.
  11753. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  11754. Try \`$0 --help' for more information." >&5
  11755. echo "$as_me: error: unrecognized option: $1
  11756. Try \`$0 --help' for more information." >&2;}
  11757. { (exit 1); exit 1; }; } ;;
  11758. *) ac_config_targets="$ac_config_targets $1" ;;
  11759. esac
  11760. shift
  11761. done
  11762. ac_configure_extra_args=
  11763. if $ac_cs_silent; then
  11764. exec 6>/dev/null
  11765. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11766. fi
  11767. _ACEOF
  11768. cat >>$CONFIG_STATUS <<_ACEOF
  11769. if \$ac_cs_recheck; then
  11770. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11771. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11772. fi
  11773. _ACEOF
  11774. cat >>$CONFIG_STATUS <<_ACEOF
  11775. #
  11776. # INIT-COMMANDS section.
  11777. #
  11778. egg_tclinc="$TCLINC"
  11779. egg_tclincfn="$TCLINCFN"
  11780. _ACEOF
  11781. cat >>$CONFIG_STATUS <<\_ACEOF
  11782. for ac_config_target in $ac_config_targets
  11783. do
  11784. case "$ac_config_target" in
  11785. # Handling of arguments.
  11786. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11787. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11788. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  11789. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  11790. "replace-if-changed" ) CONFIG_COMMANDS="$CONFIG_COMMANDS replace-if-changed" ;;
  11791. "catch-make-rebuild" ) CONFIG_COMMANDS="$CONFIG_COMMANDS catch-make-rebuild" ;;
  11792. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11793. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11794. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11795. { (exit 1); exit 1; }; };;
  11796. esac
  11797. done
  11798. # If the user did not use the arguments to specify the items to instantiate,
  11799. # then the envvar interface is used. Set only those that are not.
  11800. # We use the long form for the default assignment because of an extremely
  11801. # bizarre bug on SunOS 4.1.3.
  11802. if $ac_need_defaults; then
  11803. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11804. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11805. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11806. fi
  11807. # Have a temporary directory for convenience. Make it in the build tree
  11808. # simply because there is no reason to put it here, and in addition,
  11809. # creating and moving files from /tmp can sometimes cause problems.
  11810. # Create a temporary directory, and hook for its removal unless debugging.
  11811. $debug ||
  11812. {
  11813. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11814. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11815. }
  11816. # Create a (secure) tmp directory for tmp files.
  11817. {
  11818. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11819. test -n "$tmp" && test -d "$tmp"
  11820. } ||
  11821. {
  11822. tmp=./confstat$$-$RANDOM
  11823. (umask 077 && mkdir $tmp)
  11824. } ||
  11825. {
  11826. echo "$me: cannot create a temporary directory in ." >&2
  11827. { (exit 1); exit 1; }
  11828. }
  11829. _ACEOF
  11830. cat >>$CONFIG_STATUS <<_ACEOF
  11831. #
  11832. # CONFIG_FILES section.
  11833. #
  11834. # No need to generate the scripts if there are no CONFIG_FILES.
  11835. # This happens for instance when ./config.status config.h
  11836. if test -n "\$CONFIG_FILES"; then
  11837. # Protect against being on the right side of a sed subst in config.status.
  11838. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11839. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11840. s,@SHELL@,$SHELL,;t t
  11841. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11842. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11843. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11844. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11845. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11846. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11847. s,@exec_prefix@,$exec_prefix,;t t
  11848. s,@prefix@,$prefix,;t t
  11849. s,@program_transform_name@,$program_transform_name,;t t
  11850. s,@bindir@,$bindir,;t t
  11851. s,@sbindir@,$sbindir,;t t
  11852. s,@libexecdir@,$libexecdir,;t t
  11853. s,@datadir@,$datadir,;t t
  11854. s,@sysconfdir@,$sysconfdir,;t t
  11855. s,@sharedstatedir@,$sharedstatedir,;t t
  11856. s,@localstatedir@,$localstatedir,;t t
  11857. s,@libdir@,$libdir,;t t
  11858. s,@includedir@,$includedir,;t t
  11859. s,@oldincludedir@,$oldincludedir,;t t
  11860. s,@infodir@,$infodir,;t t
  11861. s,@mandir@,$mandir,;t t
  11862. s,@build_alias@,$build_alias,;t t
  11863. s,@host_alias@,$host_alias,;t t
  11864. s,@target_alias@,$target_alias,;t t
  11865. s,@DEFS@,$DEFS,;t t
  11866. s,@ECHO_C@,$ECHO_C,;t t
  11867. s,@ECHO_N@,$ECHO_N,;t t
  11868. s,@ECHO_T@,$ECHO_T,;t t
  11869. s,@LIBS@,$LIBS,;t t
  11870. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  11871. s,@CC@,$CC,;t t
  11872. s,@CFLAGS@,$CFLAGS,;t t
  11873. s,@LDFLAGS@,$LDFLAGS,;t t
  11874. s,@CPPFLAGS@,$CPPFLAGS,;t t
  11875. s,@ac_ct_CC@,$ac_ct_CC,;t t
  11876. s,@EXEEXT@,$EXEEXT,;t t
  11877. s,@OBJEXT@,$OBJEXT,;t t
  11878. s,@CPP@,$CPP,;t t
  11879. s,@EGREP@,$EGREP,;t t
  11880. s,@SET_MAKE@,$SET_MAKE,;t t
  11881. s,@HEAD_1@,$HEAD_1,;t t
  11882. s,@STRIP@,$STRIP,;t t
  11883. s,@AWK@,$AWK,;t t
  11884. s,@BASENAME@,$BASENAME,;t t
  11885. s,@UNAME@,$UNAME,;t t
  11886. s,@ZLIB@,$ZLIB,;t t
  11887. s,@SSL@,$SSL,;t t
  11888. s,@LIBOBJS@,$LIBOBJS,;t t
  11889. s,@TCLLIB@,$TCLLIB,;t t
  11890. s,@TCLLIBFN@,$TCLLIBFN,;t t
  11891. s,@TCLINC@,$TCLINC,;t t
  11892. s,@TCLINCFN@,$TCLINCFN,;t t
  11893. s,@TCL_REQS@,$TCL_REQS,;t t
  11894. s,@TCL_LIBS@,$TCL_LIBS,;t t
  11895. s,@VERSION@,$VERSION,;t t
  11896. s,@NUMVER@,$NUMVER,;t t
  11897. s,@PACKNAME@,$PACKNAME,;t t
  11898. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  11899. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11900. CEOF
  11901. _ACEOF
  11902. cat >>$CONFIG_STATUS <<\_ACEOF
  11903. # Split the substitutions into bite-sized pieces for seds with
  11904. # small command number limits, like on Digital OSF/1 and HP-UX.
  11905. ac_max_sed_lines=48
  11906. ac_sed_frag=1 # Number of current file.
  11907. ac_beg=1 # First line for current file.
  11908. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11909. ac_more_lines=:
  11910. ac_sed_cmds=
  11911. while $ac_more_lines; do
  11912. if test $ac_beg -gt 1; then
  11913. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11914. else
  11915. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11916. fi
  11917. if test ! -s $tmp/subs.frag; then
  11918. ac_more_lines=false
  11919. else
  11920. # The purpose of the label and of the branching condition is to
  11921. # speed up the sed processing (if there are no `@' at all, there
  11922. # is no need to browse any of the substitutions).
  11923. # These are the two extra sed commands mentioned above.
  11924. (echo ':t
  11925. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11926. if test -z "$ac_sed_cmds"; then
  11927. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11928. else
  11929. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11930. fi
  11931. ac_sed_frag=`expr $ac_sed_frag + 1`
  11932. ac_beg=$ac_end
  11933. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11934. fi
  11935. done
  11936. if test -z "$ac_sed_cmds"; then
  11937. ac_sed_cmds=cat
  11938. fi
  11939. fi # test -n "$CONFIG_FILES"
  11940. _ACEOF
  11941. cat >>$CONFIG_STATUS <<\_ACEOF
  11942. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11943. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11944. case $ac_file in
  11945. - | *:- | *:-:* ) # input from stdin
  11946. cat >$tmp/stdin
  11947. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11948. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11949. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11950. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11951. * ) ac_file_in=$ac_file.in ;;
  11952. esac
  11953. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11954. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11955. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11956. X"$ac_file" : 'X\(//\)[^/]' \| \
  11957. X"$ac_file" : 'X\(//\)$' \| \
  11958. X"$ac_file" : 'X\(/\)' \| \
  11959. . : '\(.\)' 2>/dev/null ||
  11960. echo X"$ac_file" |
  11961. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11962. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11963. /^X\(\/\/\)$/{ s//\1/; q; }
  11964. /^X\(\/\).*/{ s//\1/; q; }
  11965. s/.*/./; q'`
  11966. { if $as_mkdir_p; then
  11967. mkdir -p "$ac_dir"
  11968. else
  11969. as_dir="$ac_dir"
  11970. as_dirs=
  11971. while test ! -d "$as_dir"; do
  11972. as_dirs="$as_dir $as_dirs"
  11973. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11974. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11975. X"$as_dir" : 'X\(//\)[^/]' \| \
  11976. X"$as_dir" : 'X\(//\)$' \| \
  11977. X"$as_dir" : 'X\(/\)' \| \
  11978. . : '\(.\)' 2>/dev/null ||
  11979. echo X"$as_dir" |
  11980. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11981. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11982. /^X\(\/\/\)$/{ s//\1/; q; }
  11983. /^X\(\/\).*/{ s//\1/; q; }
  11984. s/.*/./; q'`
  11985. done
  11986. test ! -n "$as_dirs" || mkdir $as_dirs
  11987. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11988. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11989. { (exit 1); exit 1; }; }; }
  11990. ac_builddir=.
  11991. if test "$ac_dir" != .; then
  11992. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11993. # A "../" for each directory in $ac_dir_suffix.
  11994. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11995. else
  11996. ac_dir_suffix= ac_top_builddir=
  11997. fi
  11998. case $srcdir in
  11999. .) # No --srcdir option. We are building in place.
  12000. ac_srcdir=.
  12001. if test -z "$ac_top_builddir"; then
  12002. ac_top_srcdir=.
  12003. else
  12004. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  12005. fi ;;
  12006. [\\/]* | ?:[\\/]* ) # Absolute path.
  12007. ac_srcdir=$srcdir$ac_dir_suffix;
  12008. ac_top_srcdir=$srcdir ;;
  12009. *) # Relative path.
  12010. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  12011. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  12012. esac
  12013. # Do not use `cd foo && pwd` to compute absolute paths, because
  12014. # the directories may not exist.
  12015. case `pwd` in
  12016. .) ac_abs_builddir="$ac_dir";;
  12017. *)
  12018. case "$ac_dir" in
  12019. .) ac_abs_builddir=`pwd`;;
  12020. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  12021. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  12022. esac;;
  12023. esac
  12024. case $ac_abs_builddir in
  12025. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  12026. *)
  12027. case ${ac_top_builddir}. in
  12028. .) ac_abs_top_builddir=$ac_abs_builddir;;
  12029. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  12030. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  12031. esac;;
  12032. esac
  12033. case $ac_abs_builddir in
  12034. .) ac_abs_srcdir=$ac_srcdir;;
  12035. *)
  12036. case $ac_srcdir in
  12037. .) ac_abs_srcdir=$ac_abs_builddir;;
  12038. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  12039. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  12040. esac;;
  12041. esac
  12042. case $ac_abs_builddir in
  12043. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  12044. *)
  12045. case $ac_top_srcdir in
  12046. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  12047. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  12048. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  12049. esac;;
  12050. esac
  12051. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12052. # use $as_me), people would be surprised to read:
  12053. # /* config.h. Generated by config.status. */
  12054. if test x"$ac_file" = x-; then
  12055. configure_input=
  12056. else
  12057. configure_input="$ac_file. "
  12058. fi
  12059. configure_input=$configure_input"Generated from `echo $ac_file_in |
  12060. sed 's,.*/,,'` by configure."
  12061. # First look for the input files in the build tree, otherwise in the
  12062. # src tree.
  12063. ac_file_inputs=`IFS=:
  12064. for f in $ac_file_in; do
  12065. case $f in
  12066. -) echo $tmp/stdin ;;
  12067. [\\/$]*)
  12068. # Absolute (can't be DOS-style, as IFS=:)
  12069. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12070. echo "$as_me: error: cannot find input file: $f" >&2;}
  12071. { (exit 1); exit 1; }; }
  12072. echo "$f";;
  12073. *) # Relative
  12074. if test -f "$f"; then
  12075. # Build tree
  12076. echo "$f"
  12077. elif test -f "$srcdir/$f"; then
  12078. # Source tree
  12079. echo "$srcdir/$f"
  12080. else
  12081. # /dev/null tree
  12082. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12083. echo "$as_me: error: cannot find input file: $f" >&2;}
  12084. { (exit 1); exit 1; }; }
  12085. fi;;
  12086. esac
  12087. done` || { (exit 1); exit 1; }
  12088. if test x"$ac_file" != x-; then
  12089. { echo "$as_me:$LINENO: creating $ac_file" >&5
  12090. echo "$as_me: creating $ac_file" >&6;}
  12091. rm -f "$ac_file"
  12092. fi
  12093. _ACEOF
  12094. cat >>$CONFIG_STATUS <<_ACEOF
  12095. sed "$ac_vpsub
  12096. $extrasub
  12097. _ACEOF
  12098. cat >>$CONFIG_STATUS <<\_ACEOF
  12099. :t
  12100. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12101. s,@configure_input@,$configure_input,;t t
  12102. s,@srcdir@,$ac_srcdir,;t t
  12103. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  12104. s,@top_srcdir@,$ac_top_srcdir,;t t
  12105. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  12106. s,@builddir@,$ac_builddir,;t t
  12107. s,@abs_builddir@,$ac_abs_builddir,;t t
  12108. s,@top_builddir@,$ac_top_builddir,;t t
  12109. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  12110. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  12111. rm -f $tmp/stdin
  12112. if test x"$ac_file" != x-; then
  12113. mv $tmp/out $ac_file
  12114. else
  12115. cat $tmp/out
  12116. rm -f $tmp/out
  12117. fi
  12118. done
  12119. _ACEOF
  12120. cat >>$CONFIG_STATUS <<\_ACEOF
  12121. #
  12122. # CONFIG_HEADER section.
  12123. #
  12124. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  12125. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  12126. #
  12127. # ac_d sets the value in "#define NAME VALUE" lines.
  12128. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  12129. ac_dB='[ ].*$,\1#\2'
  12130. ac_dC=' '
  12131. ac_dD=',;t'
  12132. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  12133. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  12134. ac_uB='$,\1#\2define\3'
  12135. ac_uC=' '
  12136. ac_uD=',;t'
  12137. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  12138. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  12139. case $ac_file in
  12140. - | *:- | *:-:* ) # input from stdin
  12141. cat >$tmp/stdin
  12142. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12143. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12144. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12145. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12146. * ) ac_file_in=$ac_file.in ;;
  12147. esac
  12148. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  12149. echo "$as_me: creating $ac_file" >&6;}
  12150. # First look for the input files in the build tree, otherwise in the
  12151. # src tree.
  12152. ac_file_inputs=`IFS=:
  12153. for f in $ac_file_in; do
  12154. case $f in
  12155. -) echo $tmp/stdin ;;
  12156. [\\/$]*)
  12157. # Absolute (can't be DOS-style, as IFS=:)
  12158. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12159. echo "$as_me: error: cannot find input file: $f" >&2;}
  12160. { (exit 1); exit 1; }; }
  12161. # Do quote $f, to prevent DOS paths from being IFS'd.
  12162. echo "$f";;
  12163. *) # Relative
  12164. if test -f "$f"; then
  12165. # Build tree
  12166. echo "$f"
  12167. elif test -f "$srcdir/$f"; then
  12168. # Source tree
  12169. echo "$srcdir/$f"
  12170. else
  12171. # /dev/null tree
  12172. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12173. echo "$as_me: error: cannot find input file: $f" >&2;}
  12174. { (exit 1); exit 1; }; }
  12175. fi;;
  12176. esac
  12177. done` || { (exit 1); exit 1; }
  12178. # Remove the trailing spaces.
  12179. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  12180. _ACEOF
  12181. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  12182. # `conftest.undefs', that substitutes the proper values into
  12183. # config.h.in to produce config.h. The first handles `#define'
  12184. # templates, and the second `#undef' templates.
  12185. # And first: Protect against being on the right side of a sed subst in
  12186. # config.status. Protect against being in an unquoted here document
  12187. # in config.status.
  12188. rm -f conftest.defines conftest.undefs
  12189. # Using a here document instead of a string reduces the quoting nightmare.
  12190. # Putting comments in sed scripts is not portable.
  12191. #
  12192. # `end' is used to avoid that the second main sed command (meant for
  12193. # 0-ary CPP macros) applies to n-ary macro definitions.
  12194. # See the Autoconf documentation for `clear'.
  12195. cat >confdef2sed.sed <<\_ACEOF
  12196. s/[\\&,]/\\&/g
  12197. s,[\\$`],\\&,g
  12198. t clear
  12199. : clear
  12200. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  12201. t end
  12202. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  12203. : end
  12204. _ACEOF
  12205. # If some macros were called several times there might be several times
  12206. # the same #defines, which is useless. Nevertheless, we may not want to
  12207. # sort them, since we want the *last* AC-DEFINE to be honored.
  12208. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  12209. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  12210. rm -f confdef2sed.sed
  12211. # This sed command replaces #undef with comments. This is necessary, for
  12212. # example, in the case of _POSIX_SOURCE, which is predefined and required
  12213. # on some systems where configure will not decide to define it.
  12214. cat >>conftest.undefs <<\_ACEOF
  12215. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  12216. _ACEOF
  12217. # Break up conftest.defines because some shells have a limit on the size
  12218. # of here documents, and old seds have small limits too (100 cmds).
  12219. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  12220. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  12221. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  12222. echo ' :' >>$CONFIG_STATUS
  12223. rm -f conftest.tail
  12224. while grep . conftest.defines >/dev/null
  12225. do
  12226. # Write a limited-size here document to $tmp/defines.sed.
  12227. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  12228. # Speed up: don't consider the non `#define' lines.
  12229. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  12230. # Work around the forget-to-reset-the-flag bug.
  12231. echo 't clr' >>$CONFIG_STATUS
  12232. echo ': clr' >>$CONFIG_STATUS
  12233. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  12234. echo 'CEOF
  12235. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  12236. rm -f $tmp/in
  12237. mv $tmp/out $tmp/in
  12238. ' >>$CONFIG_STATUS
  12239. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  12240. rm -f conftest.defines
  12241. mv conftest.tail conftest.defines
  12242. done
  12243. rm -f conftest.defines
  12244. echo ' fi # grep' >>$CONFIG_STATUS
  12245. echo >>$CONFIG_STATUS
  12246. # Break up conftest.undefs because some shells have a limit on the size
  12247. # of here documents, and old seds have small limits too (100 cmds).
  12248. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  12249. rm -f conftest.tail
  12250. while grep . conftest.undefs >/dev/null
  12251. do
  12252. # Write a limited-size here document to $tmp/undefs.sed.
  12253. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  12254. # Speed up: don't consider the non `#undef'
  12255. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  12256. # Work around the forget-to-reset-the-flag bug.
  12257. echo 't clr' >>$CONFIG_STATUS
  12258. echo ': clr' >>$CONFIG_STATUS
  12259. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  12260. echo 'CEOF
  12261. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  12262. rm -f $tmp/in
  12263. mv $tmp/out $tmp/in
  12264. ' >>$CONFIG_STATUS
  12265. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  12266. rm -f conftest.undefs
  12267. mv conftest.tail conftest.undefs
  12268. done
  12269. rm -f conftest.undefs
  12270. cat >>$CONFIG_STATUS <<\_ACEOF
  12271. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12272. # use $as_me), people would be surprised to read:
  12273. # /* config.h. Generated by config.status. */
  12274. if test x"$ac_file" = x-; then
  12275. echo "/* Generated by configure. */" >$tmp/config.h
  12276. else
  12277. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  12278. fi
  12279. cat $tmp/in >>$tmp/config.h
  12280. rm -f $tmp/in
  12281. if test x"$ac_file" != x-; then
  12282. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  12283. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  12284. echo "$as_me: $ac_file is unchanged" >&6;}
  12285. else
  12286. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  12287. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12288. X"$ac_file" : 'X\(//\)[^/]' \| \
  12289. X"$ac_file" : 'X\(//\)$' \| \
  12290. X"$ac_file" : 'X\(/\)' \| \
  12291. . : '\(.\)' 2>/dev/null ||
  12292. echo X"$ac_file" |
  12293. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12294. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12295. /^X\(\/\/\)$/{ s//\1/; q; }
  12296. /^X\(\/\).*/{ s//\1/; q; }
  12297. s/.*/./; q'`
  12298. { if $as_mkdir_p; then
  12299. mkdir -p "$ac_dir"
  12300. else
  12301. as_dir="$ac_dir"
  12302. as_dirs=
  12303. while test ! -d "$as_dir"; do
  12304. as_dirs="$as_dir $as_dirs"
  12305. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12306. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12307. X"$as_dir" : 'X\(//\)[^/]' \| \
  12308. X"$as_dir" : 'X\(//\)$' \| \
  12309. X"$as_dir" : 'X\(/\)' \| \
  12310. . : '\(.\)' 2>/dev/null ||
  12311. echo X"$as_dir" |
  12312. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12313. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12314. /^X\(\/\/\)$/{ s//\1/; q; }
  12315. /^X\(\/\).*/{ s//\1/; q; }
  12316. s/.*/./; q'`
  12317. done
  12318. test ! -n "$as_dirs" || mkdir $as_dirs
  12319. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12320. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12321. { (exit 1); exit 1; }; }; }
  12322. rm -f $ac_file
  12323. mv $tmp/config.h $ac_file
  12324. fi
  12325. else
  12326. cat $tmp/config.h
  12327. rm -f $tmp/config.h
  12328. fi
  12329. done
  12330. _ACEOF
  12331. cat >>$CONFIG_STATUS <<\_ACEOF
  12332. #
  12333. # CONFIG_COMMANDS section.
  12334. #
  12335. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  12336. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  12337. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12338. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  12339. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12340. X"$ac_dest" : 'X\(//\)[^/]' \| \
  12341. X"$ac_dest" : 'X\(//\)$' \| \
  12342. X"$ac_dest" : 'X\(/\)' \| \
  12343. . : '\(.\)' 2>/dev/null ||
  12344. echo X"$ac_dest" |
  12345. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12346. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12347. /^X\(\/\/\)$/{ s//\1/; q; }
  12348. /^X\(\/\).*/{ s//\1/; q; }
  12349. s/.*/./; q'`
  12350. { if $as_mkdir_p; then
  12351. mkdir -p "$ac_dir"
  12352. else
  12353. as_dir="$ac_dir"
  12354. as_dirs=
  12355. while test ! -d "$as_dir"; do
  12356. as_dirs="$as_dir $as_dirs"
  12357. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12358. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12359. X"$as_dir" : 'X\(//\)[^/]' \| \
  12360. X"$as_dir" : 'X\(//\)$' \| \
  12361. X"$as_dir" : 'X\(/\)' \| \
  12362. . : '\(.\)' 2>/dev/null ||
  12363. echo X"$as_dir" |
  12364. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12365. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12366. /^X\(\/\/\)$/{ s//\1/; q; }
  12367. /^X\(\/\).*/{ s//\1/; q; }
  12368. s/.*/./; q'`
  12369. done
  12370. test ! -n "$as_dirs" || mkdir $as_dirs
  12371. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12372. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12373. { (exit 1); exit 1; }; }; }
  12374. ac_builddir=.
  12375. if test "$ac_dir" != .; then
  12376. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  12377. # A "../" for each directory in $ac_dir_suffix.
  12378. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  12379. else
  12380. ac_dir_suffix= ac_top_builddir=
  12381. fi
  12382. case $srcdir in
  12383. .) # No --srcdir option. We are building in place.
  12384. ac_srcdir=.
  12385. if test -z "$ac_top_builddir"; then
  12386. ac_top_srcdir=.
  12387. else
  12388. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  12389. fi ;;
  12390. [\\/]* | ?:[\\/]* ) # Absolute path.
  12391. ac_srcdir=$srcdir$ac_dir_suffix;
  12392. ac_top_srcdir=$srcdir ;;
  12393. *) # Relative path.
  12394. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  12395. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  12396. esac
  12397. # Do not use `cd foo && pwd` to compute absolute paths, because
  12398. # the directories may not exist.
  12399. case `pwd` in
  12400. .) ac_abs_builddir="$ac_dir";;
  12401. *)
  12402. case "$ac_dir" in
  12403. .) ac_abs_builddir=`pwd`;;
  12404. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  12405. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  12406. esac;;
  12407. esac
  12408. case $ac_abs_builddir in
  12409. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  12410. *)
  12411. case ${ac_top_builddir}. in
  12412. .) ac_abs_top_builddir=$ac_abs_builddir;;
  12413. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  12414. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  12415. esac;;
  12416. esac
  12417. case $ac_abs_builddir in
  12418. .) ac_abs_srcdir=$ac_srcdir;;
  12419. *)
  12420. case $ac_srcdir in
  12421. .) ac_abs_srcdir=$ac_abs_builddir;;
  12422. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  12423. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  12424. esac;;
  12425. esac
  12426. case $ac_abs_builddir in
  12427. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  12428. *)
  12429. case $ac_top_srcdir in
  12430. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  12431. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  12432. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  12433. esac;;
  12434. esac
  12435. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  12436. echo "$as_me: executing $ac_dest commands" >&6;}
  12437. case $ac_dest in
  12438. replace-if-changed )
  12439. egg_replace_file="lush.h"
  12440. cat > conftest.out << EOF
  12441. /* Ignore me but do not erase me. I am a kludge. */
  12442. #include "${egg_tclinc}/${egg_tclincfn}"
  12443. EOF
  12444. if test -f "$egg_replace_file" && cmp -s conftest.out $egg_replace_file; then
  12445. echo "lush.h is unchanged"
  12446. else
  12447. echo "creating lush.h"
  12448. mv conftest.out $egg_replace_file
  12449. fi
  12450. rm -f conftest.out
  12451. ;;
  12452. catch-make-rebuild )
  12453. if test -f .modules; then
  12454. $srcdir/misc/modconfig --top_srcdir="$srcdir/src" Makefile
  12455. fi
  12456. ;;
  12457. esac
  12458. done
  12459. _ACEOF
  12460. cat >>$CONFIG_STATUS <<\_ACEOF
  12461. { (exit 0); exit 0; }
  12462. _ACEOF
  12463. chmod +x $CONFIG_STATUS
  12464. ac_clean_files=$ac_clean_files_save
  12465. # configure is writing to config.log, and then calls config.status.
  12466. # config.status does its own redirection, appending to config.log.
  12467. # Unfortunately, on DOS this fails, as config.log is still kept open
  12468. # by configure, so config.status won't be able to write to it; its
  12469. # output is simply discarded. So we exec the FD to /dev/null,
  12470. # effectively closing config.log, so it can be properly (re)opened and
  12471. # appended to by config.status. When coming back to configure, we
  12472. # need to make the FD available again.
  12473. if test "$no_create" != yes; then
  12474. ac_cs_success=:
  12475. ac_config_status_args=
  12476. test "$silent" = yes &&
  12477. ac_config_status_args="$ac_config_status_args --quiet"
  12478. exec 5>/dev/null
  12479. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12480. exec 5>>config.log
  12481. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12482. # would make configure fail if this is the last instruction.
  12483. $ac_cs_success || { (exit 1); exit 1; }
  12484. fi