configure 382 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.2 .
  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 CCDEBUG 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 strerror in -lcposix" >&5
  2296. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
  2297. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  2298. echo $ECHO_N "(cached) $ECHO_C" >&6
  2299. else
  2300. ac_check_lib_save_LIBS=$LIBS
  2301. LIBS="-lcposix $LIBS"
  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_lib_cposix_strerror=yes
  2345. else
  2346. echo "$as_me: failed program was:" >&5
  2347. sed 's/^/| /' conftest.$ac_ext >&5
  2348. ac_cv_lib_cposix_strerror=no
  2349. fi
  2350. rm -f conftest.err conftest.$ac_objext \
  2351. conftest$ac_exeext conftest.$ac_ext
  2352. LIBS=$ac_check_lib_save_LIBS
  2353. fi
  2354. echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  2355. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
  2356. if test $ac_cv_lib_cposix_strerror = yes; then
  2357. LIBS="$LIBS -lcposix"
  2358. fi
  2359. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2360. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2361. if test "${ac_cv_header_stdc+set}" = set; then
  2362. echo $ECHO_N "(cached) $ECHO_C" >&6
  2363. else
  2364. cat >conftest.$ac_ext <<_ACEOF
  2365. /* confdefs.h. */
  2366. _ACEOF
  2367. cat confdefs.h >>conftest.$ac_ext
  2368. cat >>conftest.$ac_ext <<_ACEOF
  2369. /* end confdefs.h. */
  2370. #include <stdlib.h>
  2371. #include <stdarg.h>
  2372. #include <string.h>
  2373. #include <float.h>
  2374. int
  2375. main ()
  2376. {
  2377. ;
  2378. return 0;
  2379. }
  2380. _ACEOF
  2381. rm -f conftest.$ac_objext
  2382. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2383. (eval $ac_compile) 2>conftest.er1
  2384. ac_status=$?
  2385. grep -v '^ *+' conftest.er1 >conftest.err
  2386. rm -f conftest.er1
  2387. cat conftest.err >&5
  2388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2389. (exit $ac_status); } &&
  2390. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  2396. { ac_try='test -s conftest.$ac_objext'
  2397. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2398. (eval $ac_try) 2>&5
  2399. ac_status=$?
  2400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2401. (exit $ac_status); }; }; then
  2402. ac_cv_header_stdc=yes
  2403. else
  2404. echo "$as_me: failed program was:" >&5
  2405. sed 's/^/| /' conftest.$ac_ext >&5
  2406. ac_cv_header_stdc=no
  2407. fi
  2408. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2409. if test $ac_cv_header_stdc = yes; then
  2410. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2411. cat >conftest.$ac_ext <<_ACEOF
  2412. /* confdefs.h. */
  2413. _ACEOF
  2414. cat confdefs.h >>conftest.$ac_ext
  2415. cat >>conftest.$ac_ext <<_ACEOF
  2416. /* end confdefs.h. */
  2417. #include <string.h>
  2418. _ACEOF
  2419. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2420. $EGREP "memchr" >/dev/null 2>&1; then
  2421. :
  2422. else
  2423. ac_cv_header_stdc=no
  2424. fi
  2425. rm -f conftest*
  2426. fi
  2427. if test $ac_cv_header_stdc = yes; then
  2428. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2429. cat >conftest.$ac_ext <<_ACEOF
  2430. /* confdefs.h. */
  2431. _ACEOF
  2432. cat confdefs.h >>conftest.$ac_ext
  2433. cat >>conftest.$ac_ext <<_ACEOF
  2434. /* end confdefs.h. */
  2435. #include <stdlib.h>
  2436. _ACEOF
  2437. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2438. $EGREP "free" >/dev/null 2>&1; then
  2439. :
  2440. else
  2441. ac_cv_header_stdc=no
  2442. fi
  2443. rm -f conftest*
  2444. fi
  2445. if test $ac_cv_header_stdc = yes; then
  2446. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2447. if test "$cross_compiling" = yes; then
  2448. :
  2449. else
  2450. cat >conftest.$ac_ext <<_ACEOF
  2451. /* confdefs.h. */
  2452. _ACEOF
  2453. cat confdefs.h >>conftest.$ac_ext
  2454. cat >>conftest.$ac_ext <<_ACEOF
  2455. /* end confdefs.h. */
  2456. #include <ctype.h>
  2457. #if ((' ' & 0x0FF) == 0x020)
  2458. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2459. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2460. #else
  2461. # define ISLOWER(c) \
  2462. (('a' <= (c) && (c) <= 'i') \
  2463. || ('j' <= (c) && (c) <= 'r') \
  2464. || ('s' <= (c) && (c) <= 'z'))
  2465. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2466. #endif
  2467. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2468. int
  2469. main ()
  2470. {
  2471. int i;
  2472. for (i = 0; i < 256; i++)
  2473. if (XOR (islower (i), ISLOWER (i))
  2474. || toupper (i) != TOUPPER (i))
  2475. exit(2);
  2476. exit (0);
  2477. }
  2478. _ACEOF
  2479. rm -f conftest$ac_exeext
  2480. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2481. (eval $ac_link) 2>&5
  2482. ac_status=$?
  2483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2484. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2485. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2486. (eval $ac_try) 2>&5
  2487. ac_status=$?
  2488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2489. (exit $ac_status); }; }; then
  2490. :
  2491. else
  2492. echo "$as_me: program exited with status $ac_status" >&5
  2493. echo "$as_me: failed program was:" >&5
  2494. sed 's/^/| /' conftest.$ac_ext >&5
  2495. ( exit $ac_status )
  2496. ac_cv_header_stdc=no
  2497. fi
  2498. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2499. fi
  2500. fi
  2501. fi
  2502. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2503. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2504. if test $ac_cv_header_stdc = yes; then
  2505. cat >>confdefs.h <<\_ACEOF
  2506. #define STDC_HEADERS 1
  2507. _ACEOF
  2508. fi
  2509. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2510. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2511. inttypes.h stdint.h unistd.h
  2512. do
  2513. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2514. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2515. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2516. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2517. echo $ECHO_N "(cached) $ECHO_C" >&6
  2518. else
  2519. cat >conftest.$ac_ext <<_ACEOF
  2520. /* confdefs.h. */
  2521. _ACEOF
  2522. cat confdefs.h >>conftest.$ac_ext
  2523. cat >>conftest.$ac_ext <<_ACEOF
  2524. /* end confdefs.h. */
  2525. $ac_includes_default
  2526. #include <$ac_header>
  2527. _ACEOF
  2528. rm -f conftest.$ac_objext
  2529. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2530. (eval $ac_compile) 2>conftest.er1
  2531. ac_status=$?
  2532. grep -v '^ *+' conftest.er1 >conftest.err
  2533. rm -f conftest.er1
  2534. cat conftest.err >&5
  2535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2536. (exit $ac_status); } &&
  2537. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2538. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2539. (eval $ac_try) 2>&5
  2540. ac_status=$?
  2541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2542. (exit $ac_status); }; } &&
  2543. { ac_try='test -s conftest.$ac_objext'
  2544. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2545. (eval $ac_try) 2>&5
  2546. ac_status=$?
  2547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2548. (exit $ac_status); }; }; then
  2549. eval "$as_ac_Header=yes"
  2550. else
  2551. echo "$as_me: failed program was:" >&5
  2552. sed 's/^/| /' conftest.$ac_ext >&5
  2553. eval "$as_ac_Header=no"
  2554. fi
  2555. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2556. fi
  2557. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2558. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2559. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2560. cat >>confdefs.h <<_ACEOF
  2561. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2562. _ACEOF
  2563. fi
  2564. done
  2565. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2566. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2567. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2568. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2569. echo $ECHO_N "(cached) $ECHO_C" >&6
  2570. fi
  2571. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2572. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2573. else
  2574. # Is the header compilable?
  2575. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2576. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2577. cat >conftest.$ac_ext <<_ACEOF
  2578. /* confdefs.h. */
  2579. _ACEOF
  2580. cat confdefs.h >>conftest.$ac_ext
  2581. cat >>conftest.$ac_ext <<_ACEOF
  2582. /* end confdefs.h. */
  2583. $ac_includes_default
  2584. #include <minix/config.h>
  2585. _ACEOF
  2586. rm -f conftest.$ac_objext
  2587. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2588. (eval $ac_compile) 2>conftest.er1
  2589. ac_status=$?
  2590. grep -v '^ *+' conftest.er1 >conftest.err
  2591. rm -f conftest.er1
  2592. cat conftest.err >&5
  2593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2594. (exit $ac_status); } &&
  2595. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2596. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2597. (eval $ac_try) 2>&5
  2598. ac_status=$?
  2599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2600. (exit $ac_status); }; } &&
  2601. { ac_try='test -s conftest.$ac_objext'
  2602. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2603. (eval $ac_try) 2>&5
  2604. ac_status=$?
  2605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2606. (exit $ac_status); }; }; then
  2607. ac_header_compiler=yes
  2608. else
  2609. echo "$as_me: failed program was:" >&5
  2610. sed 's/^/| /' conftest.$ac_ext >&5
  2611. ac_header_compiler=no
  2612. fi
  2613. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2614. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2615. echo "${ECHO_T}$ac_header_compiler" >&6
  2616. # Is the header present?
  2617. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2618. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2619. cat >conftest.$ac_ext <<_ACEOF
  2620. /* confdefs.h. */
  2621. _ACEOF
  2622. cat confdefs.h >>conftest.$ac_ext
  2623. cat >>conftest.$ac_ext <<_ACEOF
  2624. /* end confdefs.h. */
  2625. #include <minix/config.h>
  2626. _ACEOF
  2627. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2628. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2629. ac_status=$?
  2630. grep -v '^ *+' conftest.er1 >conftest.err
  2631. rm -f conftest.er1
  2632. cat conftest.err >&5
  2633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2634. (exit $ac_status); } >/dev/null; then
  2635. if test -s conftest.err; then
  2636. ac_cpp_err=$ac_c_preproc_warn_flag
  2637. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2638. else
  2639. ac_cpp_err=
  2640. fi
  2641. else
  2642. ac_cpp_err=yes
  2643. fi
  2644. if test -z "$ac_cpp_err"; then
  2645. ac_header_preproc=yes
  2646. else
  2647. echo "$as_me: failed program was:" >&5
  2648. sed 's/^/| /' conftest.$ac_ext >&5
  2649. ac_header_preproc=no
  2650. fi
  2651. rm -f conftest.err conftest.$ac_ext
  2652. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2653. echo "${ECHO_T}$ac_header_preproc" >&6
  2654. # So? What about this header?
  2655. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  2656. yes:no: )
  2657. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2658. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2659. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2660. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2661. ac_header_preproc=yes
  2662. ;;
  2663. no:yes:* )
  2664. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2665. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2666. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2667. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2668. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2669. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2670. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2671. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2672. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2673. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2674. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2675. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2676. (
  2677. cat <<\_ASBOX
  2678. ## ------------------------------------------ ##
  2679. ## Report this to the AC_PACKAGE_NAME lists. ##
  2680. ## ------------------------------------------ ##
  2681. _ASBOX
  2682. ) |
  2683. sed "s/^/$as_me: WARNING: /" >&2
  2684. ;;
  2685. esac
  2686. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2687. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2688. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2689. echo $ECHO_N "(cached) $ECHO_C" >&6
  2690. else
  2691. ac_cv_header_minix_config_h=$ac_header_preproc
  2692. fi
  2693. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2694. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2695. fi
  2696. if test $ac_cv_header_minix_config_h = yes; then
  2697. MINIX=yes
  2698. else
  2699. MINIX=
  2700. fi
  2701. if test "$MINIX" = yes; then
  2702. cat >>confdefs.h <<\_ACEOF
  2703. #define _POSIX_SOURCE 1
  2704. _ACEOF
  2705. cat >>confdefs.h <<\_ACEOF
  2706. #define _POSIX_1_SOURCE 2
  2707. _ACEOF
  2708. cat >>confdefs.h <<\_ACEOF
  2709. #define _MINIX 1
  2710. _ACEOF
  2711. fi
  2712. #checkpoint
  2713. cat >confcache <<\_ACEOF
  2714. # This file is a shell script that caches the results of configure
  2715. # tests run on this system so they can be shared between configure
  2716. # scripts and configure runs, see configure's option --config-cache.
  2717. # It is not useful on other systems. If it contains results you don't
  2718. # want to keep, you may remove or edit it.
  2719. #
  2720. # config.status only pays attention to the cache file if you give it
  2721. # the --recheck option to rerun configure.
  2722. #
  2723. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2724. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2725. # following values.
  2726. _ACEOF
  2727. # The following way of writing the cache mishandles newlines in values,
  2728. # but we know of no workaround that is simple, portable, and efficient.
  2729. # So, don't put newlines in cache variables' values.
  2730. # Ultrix sh set writes to stderr and can't be redirected directly,
  2731. # and sets the high bit in the cache file unless we assign to the vars.
  2732. {
  2733. (set) 2>&1 |
  2734. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2735. *ac_space=\ *)
  2736. # `set' does not quote correctly, so add quotes (double-quote
  2737. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2738. sed -n \
  2739. "s/'/'\\\\''/g;
  2740. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2741. ;;
  2742. *)
  2743. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2744. sed -n \
  2745. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2746. ;;
  2747. esac;
  2748. } |
  2749. sed '
  2750. t clear
  2751. : clear
  2752. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2753. t end
  2754. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2755. : end' >>confcache
  2756. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2757. if test -w $cache_file; then
  2758. test "x$cache_file" != "x/dev/null"
  2759. cat confcache >$cache_file
  2760. else
  2761. echo "not updating unwritable cache $cache_file"
  2762. fi
  2763. fi
  2764. rm -f confcache
  2765. # Speedup compile
  2766. if test -z "$no_pipe"
  2767. then
  2768. if test -n "$GCC"
  2769. then
  2770. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2771. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2772. if test "${egg_cv_var_ccpipe+set}" = set; then
  2773. echo $ECHO_N "(cached) $ECHO_C" >&6
  2774. else
  2775. ac_old_CC="$CC"
  2776. CC="$CC -pipe"
  2777. cat >conftest.$ac_ext <<_ACEOF
  2778. /* confdefs.h. */
  2779. _ACEOF
  2780. cat confdefs.h >>conftest.$ac_ext
  2781. cat >>conftest.$ac_ext <<_ACEOF
  2782. /* end confdefs.h. */
  2783. int
  2784. main ()
  2785. {
  2786. ;
  2787. return 0;
  2788. }
  2789. _ACEOF
  2790. rm -f conftest.$ac_objext
  2791. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2792. (eval $ac_compile) 2>conftest.er1
  2793. ac_status=$?
  2794. grep -v '^ *+' conftest.er1 >conftest.err
  2795. rm -f conftest.er1
  2796. cat conftest.err >&5
  2797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2798. (exit $ac_status); } &&
  2799. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2801. (eval $ac_try) 2>&5
  2802. ac_status=$?
  2803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2804. (exit $ac_status); }; } &&
  2805. { ac_try='test -s conftest.$ac_objext'
  2806. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2807. (eval $ac_try) 2>&5
  2808. ac_status=$?
  2809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2810. (exit $ac_status); }; }; then
  2811. egg_cv_var_ccpipe="yes"
  2812. else
  2813. echo "$as_me: failed program was:" >&5
  2814. sed 's/^/| /' conftest.$ac_ext >&5
  2815. egg_cv_var_ccpipe="no"
  2816. fi
  2817. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2818. CC="$ac_old_CC"
  2819. fi
  2820. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2821. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2822. if test "$egg_cv_var_ccpipe" = "yes"
  2823. then
  2824. CC="$CC -pipe"
  2825. fi
  2826. fi
  2827. fi
  2828. # Create static binaries
  2829. if test -z "$no_static"
  2830. then
  2831. if test -n "$GCC"
  2832. then
  2833. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  2834. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  2835. if test "${egg_cv_var_ccstatic+set}" = set; then
  2836. echo $ECHO_N "(cached) $ECHO_C" >&6
  2837. else
  2838. ac_old_CC="$CC"
  2839. CC="$CC -static"
  2840. cat >conftest.$ac_ext <<_ACEOF
  2841. /* confdefs.h. */
  2842. _ACEOF
  2843. cat confdefs.h >>conftest.$ac_ext
  2844. cat >>conftest.$ac_ext <<_ACEOF
  2845. /* end confdefs.h. */
  2846. int
  2847. main ()
  2848. {
  2849. ;
  2850. return 0;
  2851. }
  2852. _ACEOF
  2853. rm -f conftest.$ac_objext
  2854. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2855. (eval $ac_compile) 2>conftest.er1
  2856. ac_status=$?
  2857. grep -v '^ *+' conftest.er1 >conftest.err
  2858. rm -f conftest.er1
  2859. cat conftest.err >&5
  2860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2861. (exit $ac_status); } &&
  2862. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2863. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2864. (eval $ac_try) 2>&5
  2865. ac_status=$?
  2866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2867. (exit $ac_status); }; } &&
  2868. { ac_try='test -s conftest.$ac_objext'
  2869. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2870. (eval $ac_try) 2>&5
  2871. ac_status=$?
  2872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2873. (exit $ac_status); }; }; then
  2874. egg_cv_var_ccstatic="yes"
  2875. else
  2876. echo "$as_me: failed program was:" >&5
  2877. sed 's/^/| /' conftest.$ac_ext >&5
  2878. egg_cv_var_ccstatic="no"
  2879. fi
  2880. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2881. CC="$ac_old_CC"
  2882. fi
  2883. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  2884. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  2885. if test "$egg_cv_var_ccstatic" = "yes"
  2886. then
  2887. CCDEBUG="$CC"
  2888. CC="$CC -static"
  2889. else
  2890. cat << 'EOF' >&2
  2891. configure: error:
  2892. Your C compiler does not support -static.
  2893. This compile flag is required for the botpack.
  2894. EOF
  2895. exit 1
  2896. fi
  2897. fi
  2898. fi
  2899. # Checks for programs
  2900. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2901. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2902. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2903. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2904. echo $ECHO_N "(cached) $ECHO_C" >&6
  2905. else
  2906. cat >conftest.make <<\_ACEOF
  2907. all:
  2908. @echo 'ac_maketemp="$(MAKE)"'
  2909. _ACEOF
  2910. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2911. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2912. if test -n "$ac_maketemp"; then
  2913. eval ac_cv_prog_make_${ac_make}_set=yes
  2914. else
  2915. eval ac_cv_prog_make_${ac_make}_set=no
  2916. fi
  2917. rm -f conftest.make
  2918. fi
  2919. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2920. echo "$as_me:$LINENO: result: yes" >&5
  2921. echo "${ECHO_T}yes" >&6
  2922. SET_MAKE=
  2923. else
  2924. echo "$as_me:$LINENO: result: no" >&5
  2925. echo "${ECHO_T}no" >&6
  2926. SET_MAKE="MAKE=${MAKE-make}"
  2927. fi
  2928. cat << 'EOF' > conftest.head
  2929. a
  2930. b
  2931. c
  2932. EOF
  2933. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  2934. do
  2935. echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  2936. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6
  2937. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  2938. echo $ECHO_N "(cached) $ECHO_C" >&6
  2939. else
  2940. if test -n "$HEAD_1"
  2941. then
  2942. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  2943. else
  2944. if test "`cat conftest.head | $ac_prog`" = "a";
  2945. then
  2946. echo "$as_me:$LINENO: result: yes" >&5
  2947. echo "${ECHO_T}yes" >&6
  2948. ac_cv_prog_HEAD_1=$ac_prog
  2949. else
  2950. echo "$as_me:$LINENO: result: no" >&5
  2951. echo "${ECHO_T}no" >&6
  2952. fi
  2953. fi
  2954. fi
  2955. test -n "$ac_cv_prog_HEAD_1" && break
  2956. done
  2957. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  2958. then
  2959. cat << 'EOF' >&2
  2960. configure: error:
  2961. This system seems to lack a working 'head -1' or 'head -n 1' command.
  2962. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  2963. EOF
  2964. exit 1
  2965. fi
  2966. rm -f conftest.head
  2967. HEAD_1=$ac_cv_prog_HEAD_1
  2968. # Extract the first word of "strip", so it can be a program name with args.
  2969. set dummy strip; ac_word=$2
  2970. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2971. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2972. if test "${ac_cv_prog_STRIP+set}" = set; then
  2973. echo $ECHO_N "(cached) $ECHO_C" >&6
  2974. else
  2975. if test -n "$STRIP"; then
  2976. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2977. else
  2978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2979. for as_dir in $PATH
  2980. do
  2981. IFS=$as_save_IFS
  2982. test -z "$as_dir" && as_dir=.
  2983. for ac_exec_ext in '' $ac_executable_extensions; do
  2984. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2985. ac_cv_prog_STRIP="strip"
  2986. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2987. break 2
  2988. fi
  2989. done
  2990. done
  2991. fi
  2992. fi
  2993. STRIP=$ac_cv_prog_STRIP
  2994. if test -n "$STRIP"; then
  2995. echo "$as_me:$LINENO: result: $STRIP" >&5
  2996. echo "${ECHO_T}$STRIP" >&6
  2997. else
  2998. echo "$as_me:$LINENO: result: no" >&5
  2999. echo "${ECHO_T}no" >&6
  3000. fi
  3001. if test "${STRIP-x}" = "x"
  3002. then
  3003. STRIP=touch
  3004. fi
  3005. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3006. for ac_prog in gawk mawk nawk awk
  3007. do
  3008. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3009. set dummy $ac_prog; ac_word=$2
  3010. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3011. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3012. if test "${ac_cv_prog_AWK+set}" = set; then
  3013. echo $ECHO_N "(cached) $ECHO_C" >&6
  3014. else
  3015. if test -n "$AWK"; then
  3016. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3017. else
  3018. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3019. for as_dir in $PATH
  3020. do
  3021. IFS=$as_save_IFS
  3022. test -z "$as_dir" && as_dir=.
  3023. for ac_exec_ext in '' $ac_executable_extensions; do
  3024. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3025. ac_cv_prog_AWK="$ac_prog"
  3026. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3027. break 2
  3028. fi
  3029. done
  3030. done
  3031. fi
  3032. fi
  3033. AWK=$ac_cv_prog_AWK
  3034. if test -n "$AWK"; then
  3035. echo "$as_me:$LINENO: result: $AWK" >&5
  3036. echo "${ECHO_T}$AWK" >&6
  3037. else
  3038. echo "$as_me:$LINENO: result: no" >&5
  3039. echo "${ECHO_T}no" >&6
  3040. fi
  3041. test -n "$AWK" && break
  3042. done
  3043. if test "${AWK-x}" = "x"
  3044. then
  3045. cat << 'EOF' >&2
  3046. configure: error:
  3047. This system seems to lack a working 'awk' command.
  3048. A working 'awk' command is required to compile Eggdrop.
  3049. EOF
  3050. exit 1
  3051. fi
  3052. # basename is needed for Tcl library and header checks
  3053. # Extract the first word of "basename", so it can be a program name with args.
  3054. set dummy basename; ac_word=$2
  3055. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3056. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3057. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3058. echo $ECHO_N "(cached) $ECHO_C" >&6
  3059. else
  3060. if test -n "$BASENAME"; then
  3061. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3062. else
  3063. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3064. for as_dir in $PATH
  3065. do
  3066. IFS=$as_save_IFS
  3067. test -z "$as_dir" && as_dir=.
  3068. for ac_exec_ext in '' $ac_executable_extensions; do
  3069. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3070. ac_cv_prog_BASENAME="basename"
  3071. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3072. break 2
  3073. fi
  3074. done
  3075. done
  3076. fi
  3077. fi
  3078. BASENAME=$ac_cv_prog_BASENAME
  3079. if test -n "$BASENAME"; then
  3080. echo "$as_me:$LINENO: result: $BASENAME" >&5
  3081. echo "${ECHO_T}$BASENAME" >&6
  3082. else
  3083. echo "$as_me:$LINENO: result: no" >&5
  3084. echo "${ECHO_T}no" >&6
  3085. fi
  3086. if test "${BASENAME-x}" = "x"
  3087. then
  3088. cat << 'EOF' >&2
  3089. configure: error:
  3090. This system seems to lack a working 'basename' command.
  3091. A working 'basename' command is required to compile Eggdrop.
  3092. EOF
  3093. exit 1
  3094. fi
  3095. # Extract the first word of "uname", so it can be a program name with args.
  3096. set dummy uname; ac_word=$2
  3097. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3098. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3099. if test "${ac_cv_prog_UNAME+set}" = set; then
  3100. echo $ECHO_N "(cached) $ECHO_C" >&6
  3101. else
  3102. if test -n "$UNAME"; then
  3103. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3104. else
  3105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3106. for as_dir in $PATH
  3107. do
  3108. IFS=$as_save_IFS
  3109. test -z "$as_dir" && as_dir=.
  3110. for ac_exec_ext in '' $ac_executable_extensions; do
  3111. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3112. ac_cv_prog_UNAME="uname"
  3113. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3114. break 2
  3115. fi
  3116. done
  3117. done
  3118. fi
  3119. fi
  3120. UNAME=$ac_cv_prog_UNAME
  3121. if test -n "$UNAME"; then
  3122. echo "$as_me:$LINENO: result: $UNAME" >&5
  3123. echo "${ECHO_T}$UNAME" >&6
  3124. else
  3125. echo "$as_me:$LINENO: result: no" >&5
  3126. echo "${ECHO_T}no" >&6
  3127. fi
  3128. # Test the os and set the module linking settings
  3129. LINUX=no
  3130. IRIX=no
  3131. SUNOS=no
  3132. HPUX=no
  3133. EGG_CYGWIN=no
  3134. echo "$as_me:$LINENO: checking system type" >&5
  3135. echo $ECHO_N "checking system type... $ECHO_C" >&6
  3136. if test "${egg_cv_var_system_type+set}" = set; then
  3137. echo $ECHO_N "(cached) $ECHO_C" >&6
  3138. else
  3139. egg_cv_var_system_type=`$UNAME -s`
  3140. fi
  3141. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3142. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3143. echo "$as_me:$LINENO: checking system release" >&5
  3144. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3145. if test "${egg_cv_var_system_release+set}" = set; then
  3146. echo $ECHO_N "(cached) $ECHO_C" >&6
  3147. else
  3148. egg_cv_var_system_release=`$UNAME -r`
  3149. fi
  3150. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3151. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3152. case "$egg_cv_var_system_type" in
  3153. BSD/OS)
  3154. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3155. 2)
  3156. ;;
  3157. *)
  3158. CFLAGS="$CFLAGS -Wall"
  3159. ;;
  3160. esac
  3161. ;;
  3162. CYGWI*)
  3163. case "`echo $egg_cv_var_system_release | cut -c 1-3`" in
  3164. 1.*)
  3165. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3166. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3167. WIN32FLAGS=
  3168. cat >conftest.$ac_ext <<_ACEOF
  3169. /* confdefs.h. */
  3170. _ACEOF
  3171. cat confdefs.h >>conftest.$ac_ext
  3172. cat >>conftest.$ac_ext <<_ACEOF
  3173. /* end confdefs.h. */
  3174. int
  3175. main ()
  3176. {
  3177. #ifndef WIN32
  3178. # ifndef _WIN32
  3179. # error WIN32 or _WIN32 not defined
  3180. # endif
  3181. #endif
  3182. ;
  3183. return 0;
  3184. }
  3185. _ACEOF
  3186. rm -f conftest.$ac_objext
  3187. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3188. (eval $ac_compile) 2>conftest.er1
  3189. ac_status=$?
  3190. grep -v '^ *+' conftest.er1 >conftest.err
  3191. rm -f conftest.er1
  3192. cat conftest.err >&5
  3193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3194. (exit $ac_status); } &&
  3195. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3196. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3197. (eval $ac_try) 2>&5
  3198. ac_status=$?
  3199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3200. (exit $ac_status); }; } &&
  3201. { ac_try='test -s conftest.$ac_objext'
  3202. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3203. (eval $ac_try) 2>&5
  3204. ac_status=$?
  3205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3206. (exit $ac_status); }; }; then
  3207. echo "$as_me:$LINENO: result: present by default" >&5
  3208. echo "${ECHO_T}present by default" >&6
  3209. else
  3210. echo "$as_me: failed program was:" >&5
  3211. sed 's/^/| /' conftest.$ac_ext >&5
  3212. ac_compile_save="$ac_compile"
  3213. save_CC="$CC"
  3214. ac_compile="$ac_compile -mwin32"
  3215. CC="$CC -mwin32"
  3216. cat >conftest.$ac_ext <<_ACEOF
  3217. /* confdefs.h. */
  3218. _ACEOF
  3219. cat confdefs.h >>conftest.$ac_ext
  3220. cat >>conftest.$ac_ext <<_ACEOF
  3221. /* end confdefs.h. */
  3222. int
  3223. main ()
  3224. {
  3225. #ifndef WIN32
  3226. # ifndef _WIN32
  3227. # error WIN32 or _WIN32 not defined
  3228. # endif
  3229. #endif
  3230. ;
  3231. return 0;
  3232. }
  3233. _ACEOF
  3234. rm -f conftest.$ac_objext
  3235. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3236. (eval $ac_compile) 2>conftest.er1
  3237. ac_status=$?
  3238. grep -v '^ *+' conftest.er1 >conftest.err
  3239. rm -f conftest.er1
  3240. cat conftest.err >&5
  3241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3242. (exit $ac_status); } &&
  3243. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3244. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3245. (eval $ac_try) 2>&5
  3246. ac_status=$?
  3247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3248. (exit $ac_status); }; } &&
  3249. { ac_try='test -s conftest.$ac_objext'
  3250. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3251. (eval $ac_try) 2>&5
  3252. ac_status=$?
  3253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3254. (exit $ac_status); }; }; then
  3255. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3256. echo "${ECHO_T}found via -mwin32" >&6
  3257. ac_compile="$ac_compile_save"
  3258. CC="$save_CC"
  3259. WIN32FLAGS="-mwin32"
  3260. else
  3261. echo "$as_me: failed program was:" >&5
  3262. sed 's/^/| /' conftest.$ac_ext >&5
  3263. ac_compile="$ac_compile_save"
  3264. CC="$save_CC"
  3265. echo "$as_me:$LINENO: result: not found" >&5
  3266. echo "${ECHO_T}not found" >&6
  3267. fi
  3268. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3269. fi
  3270. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3271. CC="$CC $WIN32FLAGS"
  3272. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3273. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3274. if test -r /usr/lib/binmode.o
  3275. then
  3276. echo "$as_me:$LINENO: result: yes" >&5
  3277. echo "${ECHO_T}yes" >&6
  3278. LIBS="$LIBS /usr/lib/binmode.o"
  3279. else
  3280. echo "$as_me:$LINENO: result: no" >&5
  3281. echo "${ECHO_T}no" >&6
  3282. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3283. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3284. fi
  3285. ;;
  3286. *)
  3287. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3288. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3289. ;;
  3290. esac
  3291. EGG_CYGWIN=yes
  3292. cat >>confdefs.h <<\_ACEOF
  3293. #define CYGWIN_HACKS 1
  3294. _ACEOF
  3295. ;;
  3296. HP-UX)
  3297. HPUX=yes
  3298. cat >>confdefs.h <<\_ACEOF
  3299. #define HPUX_HACKS 1
  3300. _ACEOF
  3301. if test "`echo $egg_cv_var_system_release | cut -d . -f 2`" = "10"
  3302. then
  3303. cat >>confdefs.h <<\_ACEOF
  3304. #define HPUX10_HACKS 1
  3305. _ACEOF
  3306. fi
  3307. ;;
  3308. dell)
  3309. echo "$as_me:$LINENO: result: Dell SVR4" >&5
  3310. echo "${ECHO_T}Dell SVR4" >&6
  3311. ;;
  3312. IRIX)
  3313. IRIX=yes
  3314. ;;
  3315. Ultrix)
  3316. SHELL=/bin/sh5
  3317. ;;
  3318. SINIX*)
  3319. ;;
  3320. BeOS)
  3321. ;;
  3322. Linux)
  3323. LINUX=yes
  3324. CFLAGS="$CFLAGS -Wall"
  3325. ;;
  3326. Lynx)
  3327. ;;
  3328. QNX)
  3329. ;;
  3330. OSF1)
  3331. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3332. V*)
  3333. # FIXME: we should check this in a separate test
  3334. # Digital OSF uses an ancient version of gawk
  3335. if test "$AWK" = "gawk"
  3336. then
  3337. AWK=awk
  3338. fi
  3339. ;;
  3340. 1.0|1.1|1.2)
  3341. cat >>confdefs.h <<\_ACEOF
  3342. #define OSF1_HACKS 1
  3343. _ACEOF
  3344. ;;
  3345. 1.*)
  3346. cat >>confdefs.h <<\_ACEOF
  3347. #define OSF1_HACKS 1
  3348. _ACEOF
  3349. ;;
  3350. *)
  3351. ;;
  3352. esac
  3353. cat >>confdefs.h <<\_ACEOF
  3354. #define STOP_UAC 1
  3355. _ACEOF
  3356. cat >>confdefs.h <<\_ACEOF
  3357. #define BROKEN_SNPRINTF 1
  3358. _ACEOF
  3359. ;;
  3360. SunOS)
  3361. if ! test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"
  3362. then
  3363. # SunOS 4
  3364. SUNOS=yes
  3365. fi
  3366. ;;
  3367. *BSD)
  3368. # FreeBSD/OpenBSD/NetBSD
  3369. ;;
  3370. *)
  3371. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3372. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3373. if test -r /mach
  3374. then
  3375. echo "$as_me:$LINENO: result: yes" >&5
  3376. echo "${ECHO_T}yes" >&6
  3377. cat >>confdefs.h <<\_ACEOF
  3378. #define BORGCUBES 1
  3379. _ACEOF
  3380. else
  3381. echo "$as_me:$LINENO: result: no" >&5
  3382. echo "${ECHO_T}no" >&6
  3383. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3384. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3385. if test -r /cmds
  3386. then
  3387. echo "$as_me:$LINENO: result: yes" >&5
  3388. echo "${ECHO_T}yes" >&6
  3389. else
  3390. echo "$as_me:$LINENO: result: no" >&5
  3391. echo "${ECHO_T}no" >&6
  3392. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3393. echo "${ECHO_T}Something unknown!" >&6
  3394. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3395. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3396. fi
  3397. fi
  3398. ;;
  3399. esac
  3400. #checkpoint
  3401. cat >confcache <<\_ACEOF
  3402. # This file is a shell script that caches the results of configure
  3403. # tests run on this system so they can be shared between configure
  3404. # scripts and configure runs, see configure's option --config-cache.
  3405. # It is not useful on other systems. If it contains results you don't
  3406. # want to keep, you may remove or edit it.
  3407. #
  3408. # config.status only pays attention to the cache file if you give it
  3409. # the --recheck option to rerun configure.
  3410. #
  3411. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3412. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3413. # following values.
  3414. _ACEOF
  3415. # The following way of writing the cache mishandles newlines in values,
  3416. # but we know of no workaround that is simple, portable, and efficient.
  3417. # So, don't put newlines in cache variables' values.
  3418. # Ultrix sh set writes to stderr and can't be redirected directly,
  3419. # and sets the high bit in the cache file unless we assign to the vars.
  3420. {
  3421. (set) 2>&1 |
  3422. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  3423. *ac_space=\ *)
  3424. # `set' does not quote correctly, so add quotes (double-quote
  3425. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3426. sed -n \
  3427. "s/'/'\\\\''/g;
  3428. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3429. ;;
  3430. *)
  3431. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3432. sed -n \
  3433. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  3434. ;;
  3435. esac;
  3436. } |
  3437. sed '
  3438. t clear
  3439. : clear
  3440. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3441. t end
  3442. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3443. : end' >>confcache
  3444. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  3445. if test -w $cache_file; then
  3446. test "x$cache_file" != "x/dev/null"
  3447. cat confcache >$cache_file
  3448. else
  3449. echo "not updating unwritable cache $cache_file"
  3450. fi
  3451. fi
  3452. rm -f confcache
  3453. # Checks for system libraries
  3454. # FIXME: this needs to be fixed so that it works on IRIX
  3455. if test "$IRIX" = "yes"
  3456. then
  3457. { echo "$as_me:$LINENO: WARNING: Skipping library tests because they CONFUSE Irix." >&5
  3458. echo "$as_me: WARNING: Skipping library tests because they CONFUSE Irix." >&2;}
  3459. else
  3460. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  3461. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  3462. if test "${ac_cv_lib_socket_socket+set}" = set; then
  3463. echo $ECHO_N "(cached) $ECHO_C" >&6
  3464. else
  3465. ac_check_lib_save_LIBS=$LIBS
  3466. LIBS="-lsocket $LIBS"
  3467. cat >conftest.$ac_ext <<_ACEOF
  3468. /* confdefs.h. */
  3469. _ACEOF
  3470. cat confdefs.h >>conftest.$ac_ext
  3471. cat >>conftest.$ac_ext <<_ACEOF
  3472. /* end confdefs.h. */
  3473. /* Override any gcc2 internal prototype to avoid an error. */
  3474. #ifdef __cplusplus
  3475. extern "C"
  3476. #endif
  3477. /* We use char because int might match the return type of a gcc2
  3478. builtin and then its argument prototype would still apply. */
  3479. char socket ();
  3480. int
  3481. main ()
  3482. {
  3483. socket ();
  3484. ;
  3485. return 0;
  3486. }
  3487. _ACEOF
  3488. rm -f conftest.$ac_objext conftest$ac_exeext
  3489. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3490. (eval $ac_link) 2>conftest.er1
  3491. ac_status=$?
  3492. grep -v '^ *+' conftest.er1 >conftest.err
  3493. rm -f conftest.er1
  3494. cat conftest.err >&5
  3495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3496. (exit $ac_status); } &&
  3497. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3498. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3499. (eval $ac_try) 2>&5
  3500. ac_status=$?
  3501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3502. (exit $ac_status); }; } &&
  3503. { ac_try='test -s conftest$ac_exeext'
  3504. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3505. (eval $ac_try) 2>&5
  3506. ac_status=$?
  3507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3508. (exit $ac_status); }; }; then
  3509. ac_cv_lib_socket_socket=yes
  3510. else
  3511. echo "$as_me: failed program was:" >&5
  3512. sed 's/^/| /' conftest.$ac_ext >&5
  3513. ac_cv_lib_socket_socket=no
  3514. fi
  3515. rm -f conftest.err conftest.$ac_objext \
  3516. conftest$ac_exeext conftest.$ac_ext
  3517. LIBS=$ac_check_lib_save_LIBS
  3518. fi
  3519. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  3520. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  3521. if test $ac_cv_lib_socket_socket = yes; then
  3522. cat >>confdefs.h <<_ACEOF
  3523. #define HAVE_LIBSOCKET 1
  3524. _ACEOF
  3525. LIBS="-lsocket $LIBS"
  3526. fi
  3527. echo "$as_me:$LINENO: checking for connect in -lnsl" >&5
  3528. echo $ECHO_N "checking for connect in -lnsl... $ECHO_C" >&6
  3529. if test "${ac_cv_lib_nsl_connect+set}" = set; then
  3530. echo $ECHO_N "(cached) $ECHO_C" >&6
  3531. else
  3532. ac_check_lib_save_LIBS=$LIBS
  3533. LIBS="-lnsl $LIBS"
  3534. cat >conftest.$ac_ext <<_ACEOF
  3535. /* confdefs.h. */
  3536. _ACEOF
  3537. cat confdefs.h >>conftest.$ac_ext
  3538. cat >>conftest.$ac_ext <<_ACEOF
  3539. /* end confdefs.h. */
  3540. /* Override any gcc2 internal prototype to avoid an error. */
  3541. #ifdef __cplusplus
  3542. extern "C"
  3543. #endif
  3544. /* We use char because int might match the return type of a gcc2
  3545. builtin and then its argument prototype would still apply. */
  3546. char connect ();
  3547. int
  3548. main ()
  3549. {
  3550. connect ();
  3551. ;
  3552. return 0;
  3553. }
  3554. _ACEOF
  3555. rm -f conftest.$ac_objext conftest$ac_exeext
  3556. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3557. (eval $ac_link) 2>conftest.er1
  3558. ac_status=$?
  3559. grep -v '^ *+' conftest.er1 >conftest.err
  3560. rm -f conftest.er1
  3561. cat conftest.err >&5
  3562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3563. (exit $ac_status); } &&
  3564. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3565. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3566. (eval $ac_try) 2>&5
  3567. ac_status=$?
  3568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3569. (exit $ac_status); }; } &&
  3570. { ac_try='test -s conftest$ac_exeext'
  3571. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3572. (eval $ac_try) 2>&5
  3573. ac_status=$?
  3574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3575. (exit $ac_status); }; }; then
  3576. ac_cv_lib_nsl_connect=yes
  3577. else
  3578. echo "$as_me: failed program was:" >&5
  3579. sed 's/^/| /' conftest.$ac_ext >&5
  3580. ac_cv_lib_nsl_connect=no
  3581. fi
  3582. rm -f conftest.err conftest.$ac_objext \
  3583. conftest$ac_exeext conftest.$ac_ext
  3584. LIBS=$ac_check_lib_save_LIBS
  3585. fi
  3586. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_connect" >&5
  3587. echo "${ECHO_T}$ac_cv_lib_nsl_connect" >&6
  3588. if test $ac_cv_lib_nsl_connect = yes; then
  3589. cat >>confdefs.h <<_ACEOF
  3590. #define HAVE_LIBNSL 1
  3591. _ACEOF
  3592. LIBS="-lnsl $LIBS"
  3593. fi
  3594. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  3595. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  3596. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  3597. echo $ECHO_N "(cached) $ECHO_C" >&6
  3598. else
  3599. ac_check_lib_save_LIBS=$LIBS
  3600. LIBS="-ldns $LIBS"
  3601. cat >conftest.$ac_ext <<_ACEOF
  3602. /* confdefs.h. */
  3603. _ACEOF
  3604. cat confdefs.h >>conftest.$ac_ext
  3605. cat >>conftest.$ac_ext <<_ACEOF
  3606. /* end confdefs.h. */
  3607. /* Override any gcc2 internal prototype to avoid an error. */
  3608. #ifdef __cplusplus
  3609. extern "C"
  3610. #endif
  3611. /* We use char because int might match the return type of a gcc2
  3612. builtin and then its argument prototype would still apply. */
  3613. char gethostbyname ();
  3614. int
  3615. main ()
  3616. {
  3617. gethostbyname ();
  3618. ;
  3619. return 0;
  3620. }
  3621. _ACEOF
  3622. rm -f conftest.$ac_objext conftest$ac_exeext
  3623. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3624. (eval $ac_link) 2>conftest.er1
  3625. ac_status=$?
  3626. grep -v '^ *+' conftest.er1 >conftest.err
  3627. rm -f conftest.er1
  3628. cat conftest.err >&5
  3629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3630. (exit $ac_status); } &&
  3631. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3632. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3633. (eval $ac_try) 2>&5
  3634. ac_status=$?
  3635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3636. (exit $ac_status); }; } &&
  3637. { ac_try='test -s conftest$ac_exeext'
  3638. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3639. (eval $ac_try) 2>&5
  3640. ac_status=$?
  3641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3642. (exit $ac_status); }; }; then
  3643. ac_cv_lib_dns_gethostbyname=yes
  3644. else
  3645. echo "$as_me: failed program was:" >&5
  3646. sed 's/^/| /' conftest.$ac_ext >&5
  3647. ac_cv_lib_dns_gethostbyname=no
  3648. fi
  3649. rm -f conftest.err conftest.$ac_objext \
  3650. conftest$ac_exeext conftest.$ac_ext
  3651. LIBS=$ac_check_lib_save_LIBS
  3652. fi
  3653. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  3654. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  3655. if test $ac_cv_lib_dns_gethostbyname = yes; then
  3656. cat >>confdefs.h <<_ACEOF
  3657. #define HAVE_LIBDNS 1
  3658. _ACEOF
  3659. LIBS="-ldns $LIBS"
  3660. fi
  3661. echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
  3662. echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
  3663. if test "${ac_cv_lib_z_gzopen+set}" = set; then
  3664. echo $ECHO_N "(cached) $ECHO_C" >&6
  3665. else
  3666. ac_check_lib_save_LIBS=$LIBS
  3667. LIBS="-lz $LIBS"
  3668. cat >conftest.$ac_ext <<_ACEOF
  3669. /* confdefs.h. */
  3670. _ACEOF
  3671. cat confdefs.h >>conftest.$ac_ext
  3672. cat >>conftest.$ac_ext <<_ACEOF
  3673. /* end confdefs.h. */
  3674. /* Override any gcc2 internal prototype to avoid an error. */
  3675. #ifdef __cplusplus
  3676. extern "C"
  3677. #endif
  3678. /* We use char because int might match the return type of a gcc2
  3679. builtin and then its argument prototype would still apply. */
  3680. char gzopen ();
  3681. int
  3682. main ()
  3683. {
  3684. gzopen ();
  3685. ;
  3686. return 0;
  3687. }
  3688. _ACEOF
  3689. rm -f conftest.$ac_objext conftest$ac_exeext
  3690. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3691. (eval $ac_link) 2>conftest.er1
  3692. ac_status=$?
  3693. grep -v '^ *+' conftest.er1 >conftest.err
  3694. rm -f conftest.er1
  3695. cat conftest.err >&5
  3696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3697. (exit $ac_status); } &&
  3698. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3699. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3700. (eval $ac_try) 2>&5
  3701. ac_status=$?
  3702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3703. (exit $ac_status); }; } &&
  3704. { ac_try='test -s conftest$ac_exeext'
  3705. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3706. (eval $ac_try) 2>&5
  3707. ac_status=$?
  3708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3709. (exit $ac_status); }; }; then
  3710. ac_cv_lib_z_gzopen=yes
  3711. else
  3712. echo "$as_me: failed program was:" >&5
  3713. sed 's/^/| /' conftest.$ac_ext >&5
  3714. ac_cv_lib_z_gzopen=no
  3715. fi
  3716. rm -f conftest.err conftest.$ac_objext \
  3717. conftest$ac_exeext conftest.$ac_ext
  3718. LIBS=$ac_check_lib_save_LIBS
  3719. fi
  3720. echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
  3721. echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
  3722. if test $ac_cv_lib_z_gzopen = yes; then
  3723. ZLIB="-lz"
  3724. fi
  3725. echo "$as_me:$LINENO: checking for SSL_accept in -lssl" >&5
  3726. echo $ECHO_N "checking for SSL_accept in -lssl... $ECHO_C" >&6
  3727. if test "${ac_cv_lib_ssl_SSL_accept+set}" = set; then
  3728. echo $ECHO_N "(cached) $ECHO_C" >&6
  3729. else
  3730. ac_check_lib_save_LIBS=$LIBS
  3731. LIBS="-lssl -lcrypto $LIBS"
  3732. cat >conftest.$ac_ext <<_ACEOF
  3733. /* confdefs.h. */
  3734. _ACEOF
  3735. cat confdefs.h >>conftest.$ac_ext
  3736. cat >>conftest.$ac_ext <<_ACEOF
  3737. /* end confdefs.h. */
  3738. /* Override any gcc2 internal prototype to avoid an error. */
  3739. #ifdef __cplusplus
  3740. extern "C"
  3741. #endif
  3742. /* We use char because int might match the return type of a gcc2
  3743. builtin and then its argument prototype would still apply. */
  3744. char SSL_accept ();
  3745. int
  3746. main ()
  3747. {
  3748. SSL_accept ();
  3749. ;
  3750. return 0;
  3751. }
  3752. _ACEOF
  3753. rm -f conftest.$ac_objext conftest$ac_exeext
  3754. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3755. (eval $ac_link) 2>conftest.er1
  3756. ac_status=$?
  3757. grep -v '^ *+' conftest.er1 >conftest.err
  3758. rm -f conftest.er1
  3759. cat conftest.err >&5
  3760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3761. (exit $ac_status); } &&
  3762. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3763. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3764. (eval $ac_try) 2>&5
  3765. ac_status=$?
  3766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3767. (exit $ac_status); }; } &&
  3768. { ac_try='test -s conftest$ac_exeext'
  3769. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3770. (eval $ac_try) 2>&5
  3771. ac_status=$?
  3772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3773. (exit $ac_status); }; }; then
  3774. ac_cv_lib_ssl_SSL_accept=yes
  3775. else
  3776. echo "$as_me: failed program was:" >&5
  3777. sed 's/^/| /' conftest.$ac_ext >&5
  3778. ac_cv_lib_ssl_SSL_accept=no
  3779. fi
  3780. rm -f conftest.err conftest.$ac_objext \
  3781. conftest$ac_exeext conftest.$ac_ext
  3782. LIBS=$ac_check_lib_save_LIBS
  3783. fi
  3784. echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_accept" >&5
  3785. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_accept" >&6
  3786. if test $ac_cv_lib_ssl_SSL_accept = yes; then
  3787. SSL="-lssl -lcrypto"
  3788. else
  3789. SSL=""
  3790. fi
  3791. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  3792. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  3793. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  3794. echo $ECHO_N "(cached) $ECHO_C" >&6
  3795. else
  3796. ac_check_lib_save_LIBS=$LIBS
  3797. LIBS="-ldl $LIBS"
  3798. cat >conftest.$ac_ext <<_ACEOF
  3799. /* confdefs.h. */
  3800. _ACEOF
  3801. cat confdefs.h >>conftest.$ac_ext
  3802. cat >>conftest.$ac_ext <<_ACEOF
  3803. /* end confdefs.h. */
  3804. /* Override any gcc2 internal prototype to avoid an error. */
  3805. #ifdef __cplusplus
  3806. extern "C"
  3807. #endif
  3808. /* We use char because int might match the return type of a gcc2
  3809. builtin and then its argument prototype would still apply. */
  3810. char dlopen ();
  3811. int
  3812. main ()
  3813. {
  3814. dlopen ();
  3815. ;
  3816. return 0;
  3817. }
  3818. _ACEOF
  3819. rm -f conftest.$ac_objext conftest$ac_exeext
  3820. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3821. (eval $ac_link) 2>conftest.er1
  3822. ac_status=$?
  3823. grep -v '^ *+' conftest.er1 >conftest.err
  3824. rm -f conftest.er1
  3825. cat conftest.err >&5
  3826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3827. (exit $ac_status); } &&
  3828. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3829. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3830. (eval $ac_try) 2>&5
  3831. ac_status=$?
  3832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3833. (exit $ac_status); }; } &&
  3834. { ac_try='test -s conftest$ac_exeext'
  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); }; }; then
  3840. ac_cv_lib_dl_dlopen=yes
  3841. else
  3842. echo "$as_me: failed program was:" >&5
  3843. sed 's/^/| /' conftest.$ac_ext >&5
  3844. ac_cv_lib_dl_dlopen=no
  3845. fi
  3846. rm -f conftest.err conftest.$ac_objext \
  3847. conftest$ac_exeext conftest.$ac_ext
  3848. LIBS=$ac_check_lib_save_LIBS
  3849. fi
  3850. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  3851. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  3852. if test $ac_cv_lib_dl_dlopen = yes; then
  3853. cat >>confdefs.h <<_ACEOF
  3854. #define HAVE_LIBDL 1
  3855. _ACEOF
  3856. LIBS="-ldl $LIBS"
  3857. fi
  3858. echo "$as_me:$LINENO: checking for tan in -lm" >&5
  3859. echo $ECHO_N "checking for tan in -lm... $ECHO_C" >&6
  3860. if test "${ac_cv_lib_m_tan+set}" = set; then
  3861. echo $ECHO_N "(cached) $ECHO_C" >&6
  3862. else
  3863. ac_check_lib_save_LIBS=$LIBS
  3864. LIBS="-lm $LIBS"
  3865. cat >conftest.$ac_ext <<_ACEOF
  3866. /* confdefs.h. */
  3867. _ACEOF
  3868. cat confdefs.h >>conftest.$ac_ext
  3869. cat >>conftest.$ac_ext <<_ACEOF
  3870. /* end confdefs.h. */
  3871. /* Override any gcc2 internal prototype to avoid an error. */
  3872. #ifdef __cplusplus
  3873. extern "C"
  3874. #endif
  3875. /* We use char because int might match the return type of a gcc2
  3876. builtin and then its argument prototype would still apply. */
  3877. char tan ();
  3878. int
  3879. main ()
  3880. {
  3881. tan ();
  3882. ;
  3883. return 0;
  3884. }
  3885. _ACEOF
  3886. rm -f conftest.$ac_objext conftest$ac_exeext
  3887. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3888. (eval $ac_link) 2>conftest.er1
  3889. ac_status=$?
  3890. grep -v '^ *+' conftest.er1 >conftest.err
  3891. rm -f conftest.er1
  3892. cat conftest.err >&5
  3893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3894. (exit $ac_status); } &&
  3895. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3896. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3897. (eval $ac_try) 2>&5
  3898. ac_status=$?
  3899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3900. (exit $ac_status); }; } &&
  3901. { ac_try='test -s conftest$ac_exeext'
  3902. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3903. (eval $ac_try) 2>&5
  3904. ac_status=$?
  3905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3906. (exit $ac_status); }; }; then
  3907. ac_cv_lib_m_tan=yes
  3908. else
  3909. echo "$as_me: failed program was:" >&5
  3910. sed 's/^/| /' conftest.$ac_ext >&5
  3911. ac_cv_lib_m_tan=no
  3912. fi
  3913. rm -f conftest.err conftest.$ac_objext \
  3914. conftest$ac_exeext conftest.$ac_ext
  3915. LIBS=$ac_check_lib_save_LIBS
  3916. fi
  3917. echo "$as_me:$LINENO: result: $ac_cv_lib_m_tan" >&5
  3918. echo "${ECHO_T}$ac_cv_lib_m_tan" >&6
  3919. if test $ac_cv_lib_m_tan = yes; then
  3920. EGG_MATH_LIB="-lm"
  3921. fi
  3922. # This is needed for Tcl libraries compiled with thread support
  3923. echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
  3924. echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
  3925. if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
  3926. echo $ECHO_N "(cached) $ECHO_C" >&6
  3927. else
  3928. ac_check_lib_save_LIBS=$LIBS
  3929. LIBS="-lpthread $LIBS"
  3930. cat >conftest.$ac_ext <<_ACEOF
  3931. /* confdefs.h. */
  3932. _ACEOF
  3933. cat confdefs.h >>conftest.$ac_ext
  3934. cat >>conftest.$ac_ext <<_ACEOF
  3935. /* end confdefs.h. */
  3936. /* Override any gcc2 internal prototype to avoid an error. */
  3937. #ifdef __cplusplus
  3938. extern "C"
  3939. #endif
  3940. /* We use char because int might match the return type of a gcc2
  3941. builtin and then its argument prototype would still apply. */
  3942. char pthread_mutex_init ();
  3943. int
  3944. main ()
  3945. {
  3946. pthread_mutex_init ();
  3947. ;
  3948. return 0;
  3949. }
  3950. _ACEOF
  3951. rm -f conftest.$ac_objext conftest$ac_exeext
  3952. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3953. (eval $ac_link) 2>conftest.er1
  3954. ac_status=$?
  3955. grep -v '^ *+' conftest.er1 >conftest.err
  3956. rm -f conftest.er1
  3957. cat conftest.err >&5
  3958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3959. (exit $ac_status); } &&
  3960. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3961. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3962. (eval $ac_try) 2>&5
  3963. ac_status=$?
  3964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3965. (exit $ac_status); }; } &&
  3966. { ac_try='test -s conftest$ac_exeext'
  3967. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3968. (eval $ac_try) 2>&5
  3969. ac_status=$?
  3970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3971. (exit $ac_status); }; }; then
  3972. ac_cv_lib_pthread_pthread_mutex_init=yes
  3973. else
  3974. echo "$as_me: failed program was:" >&5
  3975. sed 's/^/| /' conftest.$ac_ext >&5
  3976. ac_cv_lib_pthread_pthread_mutex_init=no
  3977. fi
  3978. rm -f conftest.err conftest.$ac_objext \
  3979. conftest$ac_exeext conftest.$ac_ext
  3980. LIBS=$ac_check_lib_save_LIBS
  3981. fi
  3982. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
  3983. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
  3984. if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
  3985. ac_cv_lib_pthread_pthread_mutex_init=yes
  3986. ac_cv_lib_pthread="-lpthread"
  3987. else
  3988. echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5
  3989. echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6
  3990. if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then
  3991. echo $ECHO_N "(cached) $ECHO_C" >&6
  3992. else
  3993. ac_check_lib_save_LIBS=$LIBS
  3994. LIBS="-lpthread $LIBS"
  3995. cat >conftest.$ac_ext <<_ACEOF
  3996. /* confdefs.h. */
  3997. _ACEOF
  3998. cat confdefs.h >>conftest.$ac_ext
  3999. cat >>conftest.$ac_ext <<_ACEOF
  4000. /* end confdefs.h. */
  4001. /* Override any gcc2 internal prototype to avoid an error. */
  4002. #ifdef __cplusplus
  4003. extern "C"
  4004. #endif
  4005. /* We use char because int might match the return type of a gcc2
  4006. builtin and then its argument prototype would still apply. */
  4007. char __pthread_mutex_init ();
  4008. int
  4009. main ()
  4010. {
  4011. __pthread_mutex_init ();
  4012. ;
  4013. return 0;
  4014. }
  4015. _ACEOF
  4016. rm -f conftest.$ac_objext conftest$ac_exeext
  4017. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4018. (eval $ac_link) 2>conftest.er1
  4019. ac_status=$?
  4020. grep -v '^ *+' conftest.er1 >conftest.err
  4021. rm -f conftest.er1
  4022. cat conftest.err >&5
  4023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4024. (exit $ac_status); } &&
  4025. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4026. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4027. (eval $ac_try) 2>&5
  4028. ac_status=$?
  4029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4030. (exit $ac_status); }; } &&
  4031. { ac_try='test -s conftest$ac_exeext'
  4032. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4033. (eval $ac_try) 2>&5
  4034. ac_status=$?
  4035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4036. (exit $ac_status); }; }; then
  4037. ac_cv_lib_pthread___pthread_mutex_init=yes
  4038. else
  4039. echo "$as_me: failed program was:" >&5
  4040. sed 's/^/| /' conftest.$ac_ext >&5
  4041. ac_cv_lib_pthread___pthread_mutex_init=no
  4042. fi
  4043. rm -f conftest.err conftest.$ac_objext \
  4044. conftest$ac_exeext conftest.$ac_ext
  4045. LIBS=$ac_check_lib_save_LIBS
  4046. fi
  4047. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
  4048. echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6
  4049. if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then
  4050. ac_cv_lib_pthread_pthread_mutex_init=yes
  4051. ac_cv_lib_pthread="-lpthread"
  4052. else
  4053. echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5
  4054. echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6
  4055. if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then
  4056. echo $ECHO_N "(cached) $ECHO_C" >&6
  4057. else
  4058. ac_check_lib_save_LIBS=$LIBS
  4059. LIBS="-lpthreads $LIBS"
  4060. cat >conftest.$ac_ext <<_ACEOF
  4061. /* confdefs.h. */
  4062. _ACEOF
  4063. cat confdefs.h >>conftest.$ac_ext
  4064. cat >>conftest.$ac_ext <<_ACEOF
  4065. /* end confdefs.h. */
  4066. /* Override any gcc2 internal prototype to avoid an error. */
  4067. #ifdef __cplusplus
  4068. extern "C"
  4069. #endif
  4070. /* We use char because int might match the return type of a gcc2
  4071. builtin and then its argument prototype would still apply. */
  4072. char pthread_mutex_init ();
  4073. int
  4074. main ()
  4075. {
  4076. pthread_mutex_init ();
  4077. ;
  4078. return 0;
  4079. }
  4080. _ACEOF
  4081. rm -f conftest.$ac_objext conftest$ac_exeext
  4082. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4083. (eval $ac_link) 2>conftest.er1
  4084. ac_status=$?
  4085. grep -v '^ *+' conftest.er1 >conftest.err
  4086. rm -f conftest.er1
  4087. cat conftest.err >&5
  4088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4089. (exit $ac_status); } &&
  4090. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4091. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4092. (eval $ac_try) 2>&5
  4093. ac_status=$?
  4094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4095. (exit $ac_status); }; } &&
  4096. { ac_try='test -s conftest$ac_exeext'
  4097. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4098. (eval $ac_try) 2>&5
  4099. ac_status=$?
  4100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4101. (exit $ac_status); }; }; then
  4102. ac_cv_lib_pthreads_pthread_mutex_init=yes
  4103. else
  4104. echo "$as_me: failed program was:" >&5
  4105. sed 's/^/| /' conftest.$ac_ext >&5
  4106. ac_cv_lib_pthreads_pthread_mutex_init=no
  4107. fi
  4108. rm -f conftest.err conftest.$ac_objext \
  4109. conftest$ac_exeext conftest.$ac_ext
  4110. LIBS=$ac_check_lib_save_LIBS
  4111. fi
  4112. echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
  4113. echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6
  4114. if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then
  4115. ac_cv_lib_pthread_pthread_mutex_init=yes
  4116. ac_cv_lib_pthread="-lpthreads"
  4117. else
  4118. echo "$as_me:$LINENO: checking for pthread_mutex_init" >&5
  4119. echo $ECHO_N "checking for pthread_mutex_init... $ECHO_C" >&6
  4120. if test "${ac_cv_func_pthread_mutex_init+set}" = set; then
  4121. echo $ECHO_N "(cached) $ECHO_C" >&6
  4122. else
  4123. cat >conftest.$ac_ext <<_ACEOF
  4124. /* confdefs.h. */
  4125. _ACEOF
  4126. cat confdefs.h >>conftest.$ac_ext
  4127. cat >>conftest.$ac_ext <<_ACEOF
  4128. /* end confdefs.h. */
  4129. /* Define pthread_mutex_init to an innocuous variant, in case <limits.h> declares pthread_mutex_init.
  4130. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4131. #define pthread_mutex_init innocuous_pthread_mutex_init
  4132. /* System header to define __stub macros and hopefully few prototypes,
  4133. which can conflict with char pthread_mutex_init (); below.
  4134. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4135. <limits.h> exists even on freestanding compilers. */
  4136. #ifdef __STDC__
  4137. # include <limits.h>
  4138. #else
  4139. # include <assert.h>
  4140. #endif
  4141. #undef pthread_mutex_init
  4142. /* Override any gcc2 internal prototype to avoid an error. */
  4143. #ifdef __cplusplus
  4144. extern "C"
  4145. {
  4146. #endif
  4147. /* We use char because int might match the return type of a gcc2
  4148. builtin and then its argument prototype would still apply. */
  4149. char pthread_mutex_init ();
  4150. /* The GNU C library defines this for functions which it implements
  4151. to always fail with ENOSYS. Some functions are actually named
  4152. something starting with __ and the normal name is an alias. */
  4153. #if defined (__stub_pthread_mutex_init) || defined (__stub___pthread_mutex_init)
  4154. choke me
  4155. #else
  4156. char (*f) () = pthread_mutex_init;
  4157. #endif
  4158. #ifdef __cplusplus
  4159. }
  4160. #endif
  4161. int
  4162. main ()
  4163. {
  4164. return f != pthread_mutex_init;
  4165. ;
  4166. return 0;
  4167. }
  4168. _ACEOF
  4169. rm -f conftest.$ac_objext conftest$ac_exeext
  4170. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4171. (eval $ac_link) 2>conftest.er1
  4172. ac_status=$?
  4173. grep -v '^ *+' conftest.er1 >conftest.err
  4174. rm -f conftest.er1
  4175. cat conftest.err >&5
  4176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4177. (exit $ac_status); } &&
  4178. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4179. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4180. (eval $ac_try) 2>&5
  4181. ac_status=$?
  4182. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4183. (exit $ac_status); }; } &&
  4184. { ac_try='test -s conftest$ac_exeext'
  4185. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4186. (eval $ac_try) 2>&5
  4187. ac_status=$?
  4188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4189. (exit $ac_status); }; }; then
  4190. ac_cv_func_pthread_mutex_init=yes
  4191. else
  4192. echo "$as_me: failed program was:" >&5
  4193. sed 's/^/| /' conftest.$ac_ext >&5
  4194. ac_cv_func_pthread_mutex_init=no
  4195. fi
  4196. rm -f conftest.err conftest.$ac_objext \
  4197. conftest$ac_exeext conftest.$ac_ext
  4198. fi
  4199. echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_init" >&5
  4200. echo "${ECHO_T}$ac_cv_func_pthread_mutex_init" >&6
  4201. if test $ac_cv_func_pthread_mutex_init = yes; then
  4202. ac_cv_lib_pthread_pthread_mutex_init=yes
  4203. ac_cv_lib_pthread=""
  4204. else
  4205. ac_cv_lib_pthread_pthread_mutex_init=no
  4206. fi
  4207. fi
  4208. fi
  4209. fi
  4210. if test "$SUNOS" = "yes"
  4211. then
  4212. # For suns without yp or something like that
  4213. echo "$as_me:$LINENO: checking for main in -ldl" >&5
  4214. echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
  4215. if test "${ac_cv_lib_dl_main+set}" = set; then
  4216. echo $ECHO_N "(cached) $ECHO_C" >&6
  4217. else
  4218. ac_check_lib_save_LIBS=$LIBS
  4219. LIBS="-ldl $LIBS"
  4220. cat >conftest.$ac_ext <<_ACEOF
  4221. /* confdefs.h. */
  4222. _ACEOF
  4223. cat confdefs.h >>conftest.$ac_ext
  4224. cat >>conftest.$ac_ext <<_ACEOF
  4225. /* end confdefs.h. */
  4226. int
  4227. main ()
  4228. {
  4229. main ();
  4230. ;
  4231. return 0;
  4232. }
  4233. _ACEOF
  4234. rm -f conftest.$ac_objext conftest$ac_exeext
  4235. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4236. (eval $ac_link) 2>conftest.er1
  4237. ac_status=$?
  4238. grep -v '^ *+' conftest.er1 >conftest.err
  4239. rm -f conftest.er1
  4240. cat conftest.err >&5
  4241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4242. (exit $ac_status); } &&
  4243. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4244. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4245. (eval $ac_try) 2>&5
  4246. ac_status=$?
  4247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4248. (exit $ac_status); }; } &&
  4249. { ac_try='test -s conftest$ac_exeext'
  4250. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4251. (eval $ac_try) 2>&5
  4252. ac_status=$?
  4253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4254. (exit $ac_status); }; }; then
  4255. ac_cv_lib_dl_main=yes
  4256. else
  4257. echo "$as_me: failed program was:" >&5
  4258. sed 's/^/| /' conftest.$ac_ext >&5
  4259. ac_cv_lib_dl_main=no
  4260. fi
  4261. rm -f conftest.err conftest.$ac_objext \
  4262. conftest$ac_exeext conftest.$ac_ext
  4263. LIBS=$ac_check_lib_save_LIBS
  4264. fi
  4265. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
  4266. echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
  4267. if test $ac_cv_lib_dl_main = yes; then
  4268. cat >>confdefs.h <<_ACEOF
  4269. #define HAVE_LIBDL 1
  4270. _ACEOF
  4271. LIBS="-ldl $LIBS"
  4272. fi
  4273. else
  4274. if test "$HPUX" = "yes"
  4275. then
  4276. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  4277. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  4278. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  4279. echo $ECHO_N "(cached) $ECHO_C" >&6
  4280. else
  4281. ac_check_lib_save_LIBS=$LIBS
  4282. LIBS="-ldld $LIBS"
  4283. cat >conftest.$ac_ext <<_ACEOF
  4284. /* confdefs.h. */
  4285. _ACEOF
  4286. cat confdefs.h >>conftest.$ac_ext
  4287. cat >>conftest.$ac_ext <<_ACEOF
  4288. /* end confdefs.h. */
  4289. /* Override any gcc2 internal prototype to avoid an error. */
  4290. #ifdef __cplusplus
  4291. extern "C"
  4292. #endif
  4293. /* We use char because int might match the return type of a gcc2
  4294. builtin and then its argument prototype would still apply. */
  4295. char shl_load ();
  4296. int
  4297. main ()
  4298. {
  4299. shl_load ();
  4300. ;
  4301. return 0;
  4302. }
  4303. _ACEOF
  4304. rm -f conftest.$ac_objext conftest$ac_exeext
  4305. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4306. (eval $ac_link) 2>conftest.er1
  4307. ac_status=$?
  4308. grep -v '^ *+' conftest.er1 >conftest.err
  4309. rm -f conftest.er1
  4310. cat conftest.err >&5
  4311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4312. (exit $ac_status); } &&
  4313. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4314. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4315. (eval $ac_try) 2>&5
  4316. ac_status=$?
  4317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4318. (exit $ac_status); }; } &&
  4319. { ac_try='test -s conftest$ac_exeext'
  4320. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4321. (eval $ac_try) 2>&5
  4322. ac_status=$?
  4323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4324. (exit $ac_status); }; }; then
  4325. ac_cv_lib_dld_shl_load=yes
  4326. else
  4327. echo "$as_me: failed program was:" >&5
  4328. sed 's/^/| /' conftest.$ac_ext >&5
  4329. ac_cv_lib_dld_shl_load=no
  4330. fi
  4331. rm -f conftest.err conftest.$ac_objext \
  4332. conftest$ac_exeext conftest.$ac_ext
  4333. LIBS=$ac_check_lib_save_LIBS
  4334. fi
  4335. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  4336. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  4337. if test $ac_cv_lib_dld_shl_load = yes; then
  4338. cat >>confdefs.h <<_ACEOF
  4339. #define HAVE_LIBDLD 1
  4340. _ACEOF
  4341. LIBS="-ldld $LIBS"
  4342. fi
  4343. fi
  4344. fi
  4345. fi
  4346. # Checks for header files
  4347. ac_header_dirent=no
  4348. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4349. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4350. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4351. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4352. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4353. echo $ECHO_N "(cached) $ECHO_C" >&6
  4354. else
  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. #include <sys/types.h>
  4362. #include <$ac_hdr>
  4363. int
  4364. main ()
  4365. {
  4366. if ((DIR *) 0)
  4367. return 0;
  4368. ;
  4369. return 0;
  4370. }
  4371. _ACEOF
  4372. rm -f conftest.$ac_objext
  4373. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4374. (eval $ac_compile) 2>conftest.er1
  4375. ac_status=$?
  4376. grep -v '^ *+' conftest.er1 >conftest.err
  4377. rm -f conftest.er1
  4378. cat conftest.err >&5
  4379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4380. (exit $ac_status); } &&
  4381. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4382. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4383. (eval $ac_try) 2>&5
  4384. ac_status=$?
  4385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4386. (exit $ac_status); }; } &&
  4387. { ac_try='test -s conftest.$ac_objext'
  4388. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4389. (eval $ac_try) 2>&5
  4390. ac_status=$?
  4391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4392. (exit $ac_status); }; }; then
  4393. eval "$as_ac_Header=yes"
  4394. else
  4395. echo "$as_me: failed program was:" >&5
  4396. sed 's/^/| /' conftest.$ac_ext >&5
  4397. eval "$as_ac_Header=no"
  4398. fi
  4399. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4400. fi
  4401. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4402. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4403. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4404. cat >>confdefs.h <<_ACEOF
  4405. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4406. _ACEOF
  4407. ac_header_dirent=$ac_hdr; break
  4408. fi
  4409. done
  4410. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4411. if test $ac_header_dirent = dirent.h; then
  4412. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4413. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4414. if test "${ac_cv_search_opendir+set}" = set; then
  4415. echo $ECHO_N "(cached) $ECHO_C" >&6
  4416. else
  4417. ac_func_search_save_LIBS=$LIBS
  4418. ac_cv_search_opendir=no
  4419. cat >conftest.$ac_ext <<_ACEOF
  4420. /* confdefs.h. */
  4421. _ACEOF
  4422. cat confdefs.h >>conftest.$ac_ext
  4423. cat >>conftest.$ac_ext <<_ACEOF
  4424. /* end confdefs.h. */
  4425. /* Override any gcc2 internal prototype to avoid an error. */
  4426. #ifdef __cplusplus
  4427. extern "C"
  4428. #endif
  4429. /* We use char because int might match the return type of a gcc2
  4430. builtin and then its argument prototype would still apply. */
  4431. char opendir ();
  4432. int
  4433. main ()
  4434. {
  4435. opendir ();
  4436. ;
  4437. return 0;
  4438. }
  4439. _ACEOF
  4440. rm -f conftest.$ac_objext conftest$ac_exeext
  4441. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4442. (eval $ac_link) 2>conftest.er1
  4443. ac_status=$?
  4444. grep -v '^ *+' conftest.er1 >conftest.err
  4445. rm -f conftest.er1
  4446. cat conftest.err >&5
  4447. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4448. (exit $ac_status); } &&
  4449. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4450. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4451. (eval $ac_try) 2>&5
  4452. ac_status=$?
  4453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4454. (exit $ac_status); }; } &&
  4455. { ac_try='test -s conftest$ac_exeext'
  4456. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4457. (eval $ac_try) 2>&5
  4458. ac_status=$?
  4459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4460. (exit $ac_status); }; }; then
  4461. ac_cv_search_opendir="none required"
  4462. else
  4463. echo "$as_me: failed program was:" >&5
  4464. sed 's/^/| /' conftest.$ac_ext >&5
  4465. fi
  4466. rm -f conftest.err conftest.$ac_objext \
  4467. conftest$ac_exeext conftest.$ac_ext
  4468. if test "$ac_cv_search_opendir" = no; then
  4469. for ac_lib in dir; do
  4470. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4471. cat >conftest.$ac_ext <<_ACEOF
  4472. /* confdefs.h. */
  4473. _ACEOF
  4474. cat confdefs.h >>conftest.$ac_ext
  4475. cat >>conftest.$ac_ext <<_ACEOF
  4476. /* end confdefs.h. */
  4477. /* Override any gcc2 internal prototype to avoid an error. */
  4478. #ifdef __cplusplus
  4479. extern "C"
  4480. #endif
  4481. /* We use char because int might match the return type of a gcc2
  4482. builtin and then its argument prototype would still apply. */
  4483. char opendir ();
  4484. int
  4485. main ()
  4486. {
  4487. opendir ();
  4488. ;
  4489. return 0;
  4490. }
  4491. _ACEOF
  4492. rm -f conftest.$ac_objext conftest$ac_exeext
  4493. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4494. (eval $ac_link) 2>conftest.er1
  4495. ac_status=$?
  4496. grep -v '^ *+' conftest.er1 >conftest.err
  4497. rm -f conftest.er1
  4498. cat conftest.err >&5
  4499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4500. (exit $ac_status); } &&
  4501. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4502. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4503. (eval $ac_try) 2>&5
  4504. ac_status=$?
  4505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4506. (exit $ac_status); }; } &&
  4507. { ac_try='test -s conftest$ac_exeext'
  4508. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4509. (eval $ac_try) 2>&5
  4510. ac_status=$?
  4511. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4512. (exit $ac_status); }; }; then
  4513. ac_cv_search_opendir="-l$ac_lib"
  4514. break
  4515. else
  4516. echo "$as_me: failed program was:" >&5
  4517. sed 's/^/| /' conftest.$ac_ext >&5
  4518. fi
  4519. rm -f conftest.err conftest.$ac_objext \
  4520. conftest$ac_exeext conftest.$ac_ext
  4521. done
  4522. fi
  4523. LIBS=$ac_func_search_save_LIBS
  4524. fi
  4525. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4526. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4527. if test "$ac_cv_search_opendir" != no; then
  4528. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4529. fi
  4530. else
  4531. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4532. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4533. if test "${ac_cv_search_opendir+set}" = set; then
  4534. echo $ECHO_N "(cached) $ECHO_C" >&6
  4535. else
  4536. ac_func_search_save_LIBS=$LIBS
  4537. ac_cv_search_opendir=no
  4538. cat >conftest.$ac_ext <<_ACEOF
  4539. /* confdefs.h. */
  4540. _ACEOF
  4541. cat confdefs.h >>conftest.$ac_ext
  4542. cat >>conftest.$ac_ext <<_ACEOF
  4543. /* end confdefs.h. */
  4544. /* Override any gcc2 internal prototype to avoid an error. */
  4545. #ifdef __cplusplus
  4546. extern "C"
  4547. #endif
  4548. /* We use char because int might match the return type of a gcc2
  4549. builtin and then its argument prototype would still apply. */
  4550. char opendir ();
  4551. int
  4552. main ()
  4553. {
  4554. opendir ();
  4555. ;
  4556. return 0;
  4557. }
  4558. _ACEOF
  4559. rm -f conftest.$ac_objext conftest$ac_exeext
  4560. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4561. (eval $ac_link) 2>conftest.er1
  4562. ac_status=$?
  4563. grep -v '^ *+' conftest.er1 >conftest.err
  4564. rm -f conftest.er1
  4565. cat conftest.err >&5
  4566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4567. (exit $ac_status); } &&
  4568. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4569. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4570. (eval $ac_try) 2>&5
  4571. ac_status=$?
  4572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4573. (exit $ac_status); }; } &&
  4574. { ac_try='test -s conftest$ac_exeext'
  4575. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4576. (eval $ac_try) 2>&5
  4577. ac_status=$?
  4578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4579. (exit $ac_status); }; }; then
  4580. ac_cv_search_opendir="none required"
  4581. else
  4582. echo "$as_me: failed program was:" >&5
  4583. sed 's/^/| /' conftest.$ac_ext >&5
  4584. fi
  4585. rm -f conftest.err conftest.$ac_objext \
  4586. conftest$ac_exeext conftest.$ac_ext
  4587. if test "$ac_cv_search_opendir" = no; then
  4588. for ac_lib in x; do
  4589. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4590. cat >conftest.$ac_ext <<_ACEOF
  4591. /* confdefs.h. */
  4592. _ACEOF
  4593. cat confdefs.h >>conftest.$ac_ext
  4594. cat >>conftest.$ac_ext <<_ACEOF
  4595. /* end confdefs.h. */
  4596. /* Override any gcc2 internal prototype to avoid an error. */
  4597. #ifdef __cplusplus
  4598. extern "C"
  4599. #endif
  4600. /* We use char because int might match the return type of a gcc2
  4601. builtin and then its argument prototype would still apply. */
  4602. char opendir ();
  4603. int
  4604. main ()
  4605. {
  4606. opendir ();
  4607. ;
  4608. return 0;
  4609. }
  4610. _ACEOF
  4611. rm -f conftest.$ac_objext conftest$ac_exeext
  4612. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4613. (eval $ac_link) 2>conftest.er1
  4614. ac_status=$?
  4615. grep -v '^ *+' conftest.er1 >conftest.err
  4616. rm -f conftest.er1
  4617. cat conftest.err >&5
  4618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4619. (exit $ac_status); } &&
  4620. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4621. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4622. (eval $ac_try) 2>&5
  4623. ac_status=$?
  4624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4625. (exit $ac_status); }; } &&
  4626. { ac_try='test -s conftest$ac_exeext'
  4627. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4628. (eval $ac_try) 2>&5
  4629. ac_status=$?
  4630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4631. (exit $ac_status); }; }; then
  4632. ac_cv_search_opendir="-l$ac_lib"
  4633. break
  4634. else
  4635. echo "$as_me: failed program was:" >&5
  4636. sed 's/^/| /' conftest.$ac_ext >&5
  4637. fi
  4638. rm -f conftest.err conftest.$ac_objext \
  4639. conftest$ac_exeext conftest.$ac_ext
  4640. done
  4641. fi
  4642. LIBS=$ac_func_search_save_LIBS
  4643. fi
  4644. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4645. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4646. if test "$ac_cv_search_opendir" != no; then
  4647. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4648. fi
  4649. fi
  4650. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4651. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  4652. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4653. echo $ECHO_N "(cached) $ECHO_C" >&6
  4654. else
  4655. cat >conftest.$ac_ext <<_ACEOF
  4656. /* confdefs.h. */
  4657. _ACEOF
  4658. cat confdefs.h >>conftest.$ac_ext
  4659. cat >>conftest.$ac_ext <<_ACEOF
  4660. /* end confdefs.h. */
  4661. #include <sys/types.h>
  4662. #include <sys/wait.h>
  4663. #ifndef WEXITSTATUS
  4664. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  4665. #endif
  4666. #ifndef WIFEXITED
  4667. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4668. #endif
  4669. int
  4670. main ()
  4671. {
  4672. int s;
  4673. wait (&s);
  4674. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4675. ;
  4676. return 0;
  4677. }
  4678. _ACEOF
  4679. rm -f conftest.$ac_objext
  4680. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4681. (eval $ac_compile) 2>conftest.er1
  4682. ac_status=$?
  4683. grep -v '^ *+' conftest.er1 >conftest.err
  4684. rm -f conftest.er1
  4685. cat conftest.err >&5
  4686. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4687. (exit $ac_status); } &&
  4688. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4689. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4690. (eval $ac_try) 2>&5
  4691. ac_status=$?
  4692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4693. (exit $ac_status); }; } &&
  4694. { ac_try='test -s conftest.$ac_objext'
  4695. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4696. (eval $ac_try) 2>&5
  4697. ac_status=$?
  4698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4699. (exit $ac_status); }; }; then
  4700. ac_cv_header_sys_wait_h=yes
  4701. else
  4702. echo "$as_me: failed program was:" >&5
  4703. sed 's/^/| /' conftest.$ac_ext >&5
  4704. ac_cv_header_sys_wait_h=no
  4705. fi
  4706. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4707. fi
  4708. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  4709. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  4710. if test $ac_cv_header_sys_wait_h = yes; then
  4711. cat >>confdefs.h <<\_ACEOF
  4712. #define HAVE_SYS_WAIT_H 1
  4713. _ACEOF
  4714. fi
  4715. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4716. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  4717. if test "${ac_cv_header_time+set}" = set; then
  4718. echo $ECHO_N "(cached) $ECHO_C" >&6
  4719. else
  4720. cat >conftest.$ac_ext <<_ACEOF
  4721. /* confdefs.h. */
  4722. _ACEOF
  4723. cat confdefs.h >>conftest.$ac_ext
  4724. cat >>conftest.$ac_ext <<_ACEOF
  4725. /* end confdefs.h. */
  4726. #include <sys/types.h>
  4727. #include <sys/time.h>
  4728. #include <time.h>
  4729. int
  4730. main ()
  4731. {
  4732. if ((struct tm *) 0)
  4733. return 0;
  4734. ;
  4735. return 0;
  4736. }
  4737. _ACEOF
  4738. rm -f conftest.$ac_objext
  4739. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4740. (eval $ac_compile) 2>conftest.er1
  4741. ac_status=$?
  4742. grep -v '^ *+' conftest.er1 >conftest.err
  4743. rm -f conftest.er1
  4744. cat conftest.err >&5
  4745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4746. (exit $ac_status); } &&
  4747. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4748. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4749. (eval $ac_try) 2>&5
  4750. ac_status=$?
  4751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4752. (exit $ac_status); }; } &&
  4753. { ac_try='test -s conftest.$ac_objext'
  4754. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4755. (eval $ac_try) 2>&5
  4756. ac_status=$?
  4757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4758. (exit $ac_status); }; }; then
  4759. ac_cv_header_time=yes
  4760. else
  4761. echo "$as_me: failed program was:" >&5
  4762. sed 's/^/| /' conftest.$ac_ext >&5
  4763. ac_cv_header_time=no
  4764. fi
  4765. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4766. fi
  4767. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4768. echo "${ECHO_T}$ac_cv_header_time" >&6
  4769. if test $ac_cv_header_time = yes; then
  4770. cat >>confdefs.h <<\_ACEOF
  4771. #define TIME_WITH_SYS_TIME 1
  4772. _ACEOF
  4773. fi
  4774. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  4775. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  4776. if test "${ac_cv_header_stat_broken+set}" = set; then
  4777. echo $ECHO_N "(cached) $ECHO_C" >&6
  4778. else
  4779. cat >conftest.$ac_ext <<_ACEOF
  4780. /* confdefs.h. */
  4781. _ACEOF
  4782. cat confdefs.h >>conftest.$ac_ext
  4783. cat >>conftest.$ac_ext <<_ACEOF
  4784. /* end confdefs.h. */
  4785. #include <sys/types.h>
  4786. #include <sys/stat.h>
  4787. #if defined(S_ISBLK) && defined(S_IFDIR)
  4788. # if S_ISBLK (S_IFDIR)
  4789. You lose.
  4790. # endif
  4791. #endif
  4792. #if defined(S_ISBLK) && defined(S_IFCHR)
  4793. # if S_ISBLK (S_IFCHR)
  4794. You lose.
  4795. # endif
  4796. #endif
  4797. #if defined(S_ISLNK) && defined(S_IFREG)
  4798. # if S_ISLNK (S_IFREG)
  4799. You lose.
  4800. # endif
  4801. #endif
  4802. #if defined(S_ISSOCK) && defined(S_IFREG)
  4803. # if S_ISSOCK (S_IFREG)
  4804. You lose.
  4805. # endif
  4806. #endif
  4807. _ACEOF
  4808. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4809. $EGREP "You lose" >/dev/null 2>&1; then
  4810. ac_cv_header_stat_broken=yes
  4811. else
  4812. ac_cv_header_stat_broken=no
  4813. fi
  4814. rm -f conftest*
  4815. fi
  4816. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  4817. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  4818. if test $ac_cv_header_stat_broken = yes; then
  4819. cat >>confdefs.h <<\_ACEOF
  4820. #define STAT_MACROS_BROKEN 1
  4821. _ACEOF
  4822. fi
  4823. #checkpoint
  4824. cat >confcache <<\_ACEOF
  4825. # This file is a shell script that caches the results of configure
  4826. # tests run on this system so they can be shared between configure
  4827. # scripts and configure runs, see configure's option --config-cache.
  4828. # It is not useful on other systems. If it contains results you don't
  4829. # want to keep, you may remove or edit it.
  4830. #
  4831. # config.status only pays attention to the cache file if you give it
  4832. # the --recheck option to rerun configure.
  4833. #
  4834. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4835. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4836. # following values.
  4837. _ACEOF
  4838. # The following way of writing the cache mishandles newlines in values,
  4839. # but we know of no workaround that is simple, portable, and efficient.
  4840. # So, don't put newlines in cache variables' values.
  4841. # Ultrix sh set writes to stderr and can't be redirected directly,
  4842. # and sets the high bit in the cache file unless we assign to the vars.
  4843. {
  4844. (set) 2>&1 |
  4845. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4846. *ac_space=\ *)
  4847. # `set' does not quote correctly, so add quotes (double-quote
  4848. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4849. sed -n \
  4850. "s/'/'\\\\''/g;
  4851. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4852. ;;
  4853. *)
  4854. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4855. sed -n \
  4856. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4857. ;;
  4858. esac;
  4859. } |
  4860. sed '
  4861. t clear
  4862. : clear
  4863. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4864. t end
  4865. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4866. : end' >>confcache
  4867. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4868. if test -w $cache_file; then
  4869. test "x$cache_file" != "x/dev/null"
  4870. cat confcache >$cache_file
  4871. else
  4872. echo "not updating unwritable cache $cache_file"
  4873. fi
  4874. fi
  4875. rm -f confcache
  4876. for ac_header in arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  4877. do
  4878. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4879. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4880. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4881. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4882. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4883. echo $ECHO_N "(cached) $ECHO_C" >&6
  4884. fi
  4885. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4886. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4887. else
  4888. # Is the header compilable?
  4889. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4890. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4891. cat >conftest.$ac_ext <<_ACEOF
  4892. /* confdefs.h. */
  4893. _ACEOF
  4894. cat confdefs.h >>conftest.$ac_ext
  4895. cat >>conftest.$ac_ext <<_ACEOF
  4896. /* end confdefs.h. */
  4897. $ac_includes_default
  4898. #include <$ac_header>
  4899. _ACEOF
  4900. rm -f conftest.$ac_objext
  4901. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4902. (eval $ac_compile) 2>conftest.er1
  4903. ac_status=$?
  4904. grep -v '^ *+' conftest.er1 >conftest.err
  4905. rm -f conftest.er1
  4906. cat conftest.err >&5
  4907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4908. (exit $ac_status); } &&
  4909. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4910. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4911. (eval $ac_try) 2>&5
  4912. ac_status=$?
  4913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4914. (exit $ac_status); }; } &&
  4915. { ac_try='test -s conftest.$ac_objext'
  4916. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4917. (eval $ac_try) 2>&5
  4918. ac_status=$?
  4919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4920. (exit $ac_status); }; }; then
  4921. ac_header_compiler=yes
  4922. else
  4923. echo "$as_me: failed program was:" >&5
  4924. sed 's/^/| /' conftest.$ac_ext >&5
  4925. ac_header_compiler=no
  4926. fi
  4927. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4928. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4929. echo "${ECHO_T}$ac_header_compiler" >&6
  4930. # Is the header present?
  4931. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4932. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4933. cat >conftest.$ac_ext <<_ACEOF
  4934. /* confdefs.h. */
  4935. _ACEOF
  4936. cat confdefs.h >>conftest.$ac_ext
  4937. cat >>conftest.$ac_ext <<_ACEOF
  4938. /* end confdefs.h. */
  4939. #include <$ac_header>
  4940. _ACEOF
  4941. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4942. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4943. ac_status=$?
  4944. grep -v '^ *+' conftest.er1 >conftest.err
  4945. rm -f conftest.er1
  4946. cat conftest.err >&5
  4947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4948. (exit $ac_status); } >/dev/null; then
  4949. if test -s conftest.err; then
  4950. ac_cpp_err=$ac_c_preproc_warn_flag
  4951. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4952. else
  4953. ac_cpp_err=
  4954. fi
  4955. else
  4956. ac_cpp_err=yes
  4957. fi
  4958. if test -z "$ac_cpp_err"; then
  4959. ac_header_preproc=yes
  4960. else
  4961. echo "$as_me: failed program was:" >&5
  4962. sed 's/^/| /' conftest.$ac_ext >&5
  4963. ac_header_preproc=no
  4964. fi
  4965. rm -f conftest.err conftest.$ac_ext
  4966. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4967. echo "${ECHO_T}$ac_header_preproc" >&6
  4968. # So? What about this header?
  4969. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4970. yes:no: )
  4971. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4972. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4973. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4974. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4975. ac_header_preproc=yes
  4976. ;;
  4977. no:yes:* )
  4978. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4979. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4980. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4981. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4982. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4983. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4984. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4985. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4986. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4987. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4988. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4989. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4990. (
  4991. cat <<\_ASBOX
  4992. ## ------------------------------------------ ##
  4993. ## Report this to the AC_PACKAGE_NAME lists. ##
  4994. ## ------------------------------------------ ##
  4995. _ASBOX
  4996. ) |
  4997. sed "s/^/$as_me: WARNING: /" >&2
  4998. ;;
  4999. esac
  5000. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5001. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5002. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5003. echo $ECHO_N "(cached) $ECHO_C" >&6
  5004. else
  5005. eval "$as_ac_Header=\$ac_header_preproc"
  5006. fi
  5007. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5008. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5009. fi
  5010. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5011. cat >>confdefs.h <<_ACEOF
  5012. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5013. _ACEOF
  5014. fi
  5015. done
  5016. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5017. do
  5018. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5019. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5020. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5021. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5022. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5023. echo $ECHO_N "(cached) $ECHO_C" >&6
  5024. fi
  5025. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5026. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5027. else
  5028. # Is the header compilable?
  5029. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5030. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5031. cat >conftest.$ac_ext <<_ACEOF
  5032. /* confdefs.h. */
  5033. _ACEOF
  5034. cat confdefs.h >>conftest.$ac_ext
  5035. cat >>conftest.$ac_ext <<_ACEOF
  5036. /* end confdefs.h. */
  5037. $ac_includes_default
  5038. #include <$ac_header>
  5039. _ACEOF
  5040. rm -f conftest.$ac_objext
  5041. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5042. (eval $ac_compile) 2>conftest.er1
  5043. ac_status=$?
  5044. grep -v '^ *+' conftest.er1 >conftest.err
  5045. rm -f conftest.er1
  5046. cat conftest.err >&5
  5047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5048. (exit $ac_status); } &&
  5049. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5050. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5051. (eval $ac_try) 2>&5
  5052. ac_status=$?
  5053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5054. (exit $ac_status); }; } &&
  5055. { ac_try='test -s conftest.$ac_objext'
  5056. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5057. (eval $ac_try) 2>&5
  5058. ac_status=$?
  5059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5060. (exit $ac_status); }; }; then
  5061. ac_header_compiler=yes
  5062. else
  5063. echo "$as_me: failed program was:" >&5
  5064. sed 's/^/| /' conftest.$ac_ext >&5
  5065. ac_header_compiler=no
  5066. fi
  5067. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5068. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5069. echo "${ECHO_T}$ac_header_compiler" >&6
  5070. # Is the header present?
  5071. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5072. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5073. cat >conftest.$ac_ext <<_ACEOF
  5074. /* confdefs.h. */
  5075. _ACEOF
  5076. cat confdefs.h >>conftest.$ac_ext
  5077. cat >>conftest.$ac_ext <<_ACEOF
  5078. /* end confdefs.h. */
  5079. #include <$ac_header>
  5080. _ACEOF
  5081. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5082. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5083. ac_status=$?
  5084. grep -v '^ *+' conftest.er1 >conftest.err
  5085. rm -f conftest.er1
  5086. cat conftest.err >&5
  5087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5088. (exit $ac_status); } >/dev/null; then
  5089. if test -s conftest.err; then
  5090. ac_cpp_err=$ac_c_preproc_warn_flag
  5091. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5092. else
  5093. ac_cpp_err=
  5094. fi
  5095. else
  5096. ac_cpp_err=yes
  5097. fi
  5098. if test -z "$ac_cpp_err"; then
  5099. ac_header_preproc=yes
  5100. else
  5101. echo "$as_me: failed program was:" >&5
  5102. sed 's/^/| /' conftest.$ac_ext >&5
  5103. ac_header_preproc=no
  5104. fi
  5105. rm -f conftest.err conftest.$ac_ext
  5106. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5107. echo "${ECHO_T}$ac_header_preproc" >&6
  5108. # So? What about this header?
  5109. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5110. yes:no: )
  5111. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5112. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5113. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5114. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5115. ac_header_preproc=yes
  5116. ;;
  5117. no:yes:* )
  5118. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5119. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5120. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5121. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5122. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5123. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5124. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5125. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5126. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5127. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5128. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5129. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5130. (
  5131. cat <<\_ASBOX
  5132. ## ------------------------------------------ ##
  5133. ## Report this to the AC_PACKAGE_NAME lists. ##
  5134. ## ------------------------------------------ ##
  5135. _ASBOX
  5136. ) |
  5137. sed "s/^/$as_me: WARNING: /" >&2
  5138. ;;
  5139. esac
  5140. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5141. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5142. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5143. echo $ECHO_N "(cached) $ECHO_C" >&6
  5144. else
  5145. eval "$as_ac_Header=\$ac_header_preproc"
  5146. fi
  5147. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5148. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5149. fi
  5150. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5151. cat >>confdefs.h <<_ACEOF
  5152. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5153. _ACEOF
  5154. fi
  5155. done
  5156. #checkpoint
  5157. cat >confcache <<\_ACEOF
  5158. # This file is a shell script that caches the results of configure
  5159. # tests run on this system so they can be shared between configure
  5160. # scripts and configure runs, see configure's option --config-cache.
  5161. # It is not useful on other systems. If it contains results you don't
  5162. # want to keep, you may remove or edit it.
  5163. #
  5164. # config.status only pays attention to the cache file if you give it
  5165. # the --recheck option to rerun configure.
  5166. #
  5167. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5168. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5169. # following values.
  5170. _ACEOF
  5171. # The following way of writing the cache mishandles newlines in values,
  5172. # but we know of no workaround that is simple, portable, and efficient.
  5173. # So, don't put newlines in cache variables' values.
  5174. # Ultrix sh set writes to stderr and can't be redirected directly,
  5175. # and sets the high bit in the cache file unless we assign to the vars.
  5176. {
  5177. (set) 2>&1 |
  5178. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5179. *ac_space=\ *)
  5180. # `set' does not quote correctly, so add quotes (double-quote
  5181. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5182. sed -n \
  5183. "s/'/'\\\\''/g;
  5184. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5185. ;;
  5186. *)
  5187. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5188. sed -n \
  5189. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5190. ;;
  5191. esac;
  5192. } |
  5193. sed '
  5194. t clear
  5195. : clear
  5196. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5197. t end
  5198. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5199. : end' >>confcache
  5200. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5201. if test -w $cache_file; then
  5202. test "x$cache_file" != "x/dev/null"
  5203. cat confcache >$cache_file
  5204. else
  5205. echo "not updating unwritable cache $cache_file"
  5206. fi
  5207. fi
  5208. rm -f confcache
  5209. for ac_header in openssl/ssl.h openssl/crypto.h
  5210. do
  5211. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5212. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5213. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5214. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5215. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5216. echo $ECHO_N "(cached) $ECHO_C" >&6
  5217. fi
  5218. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5219. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5220. else
  5221. # Is the header compilable?
  5222. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5223. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5224. cat >conftest.$ac_ext <<_ACEOF
  5225. /* confdefs.h. */
  5226. _ACEOF
  5227. cat confdefs.h >>conftest.$ac_ext
  5228. cat >>conftest.$ac_ext <<_ACEOF
  5229. /* end confdefs.h. */
  5230. $ac_includes_default
  5231. #include <$ac_header>
  5232. _ACEOF
  5233. rm -f conftest.$ac_objext
  5234. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5235. (eval $ac_compile) 2>conftest.er1
  5236. ac_status=$?
  5237. grep -v '^ *+' conftest.er1 >conftest.err
  5238. rm -f conftest.er1
  5239. cat conftest.err >&5
  5240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5241. (exit $ac_status); } &&
  5242. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5243. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5244. (eval $ac_try) 2>&5
  5245. ac_status=$?
  5246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5247. (exit $ac_status); }; } &&
  5248. { ac_try='test -s conftest.$ac_objext'
  5249. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5250. (eval $ac_try) 2>&5
  5251. ac_status=$?
  5252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5253. (exit $ac_status); }; }; then
  5254. ac_header_compiler=yes
  5255. else
  5256. echo "$as_me: failed program was:" >&5
  5257. sed 's/^/| /' conftest.$ac_ext >&5
  5258. ac_header_compiler=no
  5259. fi
  5260. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5261. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5262. echo "${ECHO_T}$ac_header_compiler" >&6
  5263. # Is the header present?
  5264. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5265. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5266. cat >conftest.$ac_ext <<_ACEOF
  5267. /* confdefs.h. */
  5268. _ACEOF
  5269. cat confdefs.h >>conftest.$ac_ext
  5270. cat >>conftest.$ac_ext <<_ACEOF
  5271. /* end confdefs.h. */
  5272. #include <$ac_header>
  5273. _ACEOF
  5274. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5275. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5276. ac_status=$?
  5277. grep -v '^ *+' conftest.er1 >conftest.err
  5278. rm -f conftest.er1
  5279. cat conftest.err >&5
  5280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5281. (exit $ac_status); } >/dev/null; then
  5282. if test -s conftest.err; then
  5283. ac_cpp_err=$ac_c_preproc_warn_flag
  5284. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5285. else
  5286. ac_cpp_err=
  5287. fi
  5288. else
  5289. ac_cpp_err=yes
  5290. fi
  5291. if test -z "$ac_cpp_err"; then
  5292. ac_header_preproc=yes
  5293. else
  5294. echo "$as_me: failed program was:" >&5
  5295. sed 's/^/| /' conftest.$ac_ext >&5
  5296. ac_header_preproc=no
  5297. fi
  5298. rm -f conftest.err conftest.$ac_ext
  5299. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5300. echo "${ECHO_T}$ac_header_preproc" >&6
  5301. # So? What about this header?
  5302. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5303. yes:no: )
  5304. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5305. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5306. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5307. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5308. ac_header_preproc=yes
  5309. ;;
  5310. no:yes:* )
  5311. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5312. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5313. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5314. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5315. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5316. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5317. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5318. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5319. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5320. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5321. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5322. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5323. (
  5324. cat <<\_ASBOX
  5325. ## ------------------------------------------ ##
  5326. ## Report this to the AC_PACKAGE_NAME lists. ##
  5327. ## ------------------------------------------ ##
  5328. _ASBOX
  5329. ) |
  5330. sed "s/^/$as_me: WARNING: /" >&2
  5331. ;;
  5332. esac
  5333. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5334. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5335. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5336. echo $ECHO_N "(cached) $ECHO_C" >&6
  5337. else
  5338. eval "$as_ac_Header=\$ac_header_preproc"
  5339. fi
  5340. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5341. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5342. fi
  5343. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5344. cat >>confdefs.h <<_ACEOF
  5345. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5346. _ACEOF
  5347. fi
  5348. done
  5349. for ac_header in zlib.h
  5350. do
  5351. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5352. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5353. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5354. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5355. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5356. echo $ECHO_N "(cached) $ECHO_C" >&6
  5357. fi
  5358. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5359. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5360. else
  5361. # Is the header compilable?
  5362. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5363. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5364. cat >conftest.$ac_ext <<_ACEOF
  5365. /* confdefs.h. */
  5366. _ACEOF
  5367. cat confdefs.h >>conftest.$ac_ext
  5368. cat >>conftest.$ac_ext <<_ACEOF
  5369. /* end confdefs.h. */
  5370. $ac_includes_default
  5371. #include <$ac_header>
  5372. _ACEOF
  5373. rm -f conftest.$ac_objext
  5374. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5375. (eval $ac_compile) 2>conftest.er1
  5376. ac_status=$?
  5377. grep -v '^ *+' conftest.er1 >conftest.err
  5378. rm -f conftest.er1
  5379. cat conftest.err >&5
  5380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5381. (exit $ac_status); } &&
  5382. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5383. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5384. (eval $ac_try) 2>&5
  5385. ac_status=$?
  5386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5387. (exit $ac_status); }; } &&
  5388. { ac_try='test -s conftest.$ac_objext'
  5389. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5390. (eval $ac_try) 2>&5
  5391. ac_status=$?
  5392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5393. (exit $ac_status); }; }; then
  5394. ac_header_compiler=yes
  5395. else
  5396. echo "$as_me: failed program was:" >&5
  5397. sed 's/^/| /' conftest.$ac_ext >&5
  5398. ac_header_compiler=no
  5399. fi
  5400. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5401. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5402. echo "${ECHO_T}$ac_header_compiler" >&6
  5403. # Is the header present?
  5404. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5405. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5406. cat >conftest.$ac_ext <<_ACEOF
  5407. /* confdefs.h. */
  5408. _ACEOF
  5409. cat confdefs.h >>conftest.$ac_ext
  5410. cat >>conftest.$ac_ext <<_ACEOF
  5411. /* end confdefs.h. */
  5412. #include <$ac_header>
  5413. _ACEOF
  5414. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5415. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5416. ac_status=$?
  5417. grep -v '^ *+' conftest.er1 >conftest.err
  5418. rm -f conftest.er1
  5419. cat conftest.err >&5
  5420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5421. (exit $ac_status); } >/dev/null; then
  5422. if test -s conftest.err; then
  5423. ac_cpp_err=$ac_c_preproc_warn_flag
  5424. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5425. else
  5426. ac_cpp_err=
  5427. fi
  5428. else
  5429. ac_cpp_err=yes
  5430. fi
  5431. if test -z "$ac_cpp_err"; then
  5432. ac_header_preproc=yes
  5433. else
  5434. echo "$as_me: failed program was:" >&5
  5435. sed 's/^/| /' conftest.$ac_ext >&5
  5436. ac_header_preproc=no
  5437. fi
  5438. rm -f conftest.err conftest.$ac_ext
  5439. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5440. echo "${ECHO_T}$ac_header_preproc" >&6
  5441. # So? What about this header?
  5442. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5443. yes:no: )
  5444. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5445. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5446. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5447. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5448. ac_header_preproc=yes
  5449. ;;
  5450. no:yes:* )
  5451. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5452. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5453. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5454. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5455. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5456. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5457. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5458. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5459. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5460. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5461. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5462. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5463. (
  5464. cat <<\_ASBOX
  5465. ## ------------------------------------------ ##
  5466. ## Report this to the AC_PACKAGE_NAME lists. ##
  5467. ## ------------------------------------------ ##
  5468. _ASBOX
  5469. ) |
  5470. sed "s/^/$as_me: WARNING: /" >&2
  5471. ;;
  5472. esac
  5473. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5474. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5475. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5476. echo $ECHO_N "(cached) $ECHO_C" >&6
  5477. else
  5478. eval "$as_ac_Header=\$ac_header_preproc"
  5479. fi
  5480. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5481. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5482. fi
  5483. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5484. cat >>confdefs.h <<_ACEOF
  5485. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5486. _ACEOF
  5487. fi
  5488. done
  5489. if test "x${ZLIB}" = x; then
  5490. cat >&2 <<EOF
  5491. configure: error:
  5492. Your system does not provide a working zlib compression library.
  5493. It is required.
  5494. EOF
  5495. exit 1
  5496. else
  5497. if test "${ac_cv_header_zlib_h}" != yes; then
  5498. cat >&2 <<EOF
  5499. configure: error:
  5500. Your system does not provide the necessary zlib header file.
  5501. It is required.
  5502. EOF
  5503. exit 1
  5504. fi
  5505. fi
  5506. if test "x${SSL}" = x; then
  5507. cat >&2 <<EOF
  5508. configure: error:
  5509. Your system does not provide a working ssl library.
  5510. It is required. Download openssl at www.openssl.org
  5511. EOF
  5512. exit 1
  5513. else
  5514. if test "${ac_cv_header_openssl_ssl_h}" != yes; then
  5515. cat >&2 <<EOF
  5516. configure: error:
  5517. Your system does not provide the necessary ssl header file.
  5518. It is required. Download openssl at www.openssl.org
  5519. EOF
  5520. exit 1
  5521. fi
  5522. fi
  5523. # Checks for typedefs, structures, and compiler characteristics
  5524. echo "$as_me:$LINENO: checking for pid_t" >&5
  5525. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  5526. if test "${ac_cv_type_pid_t+set}" = set; then
  5527. echo $ECHO_N "(cached) $ECHO_C" >&6
  5528. else
  5529. cat >conftest.$ac_ext <<_ACEOF
  5530. /* confdefs.h. */
  5531. _ACEOF
  5532. cat confdefs.h >>conftest.$ac_ext
  5533. cat >>conftest.$ac_ext <<_ACEOF
  5534. /* end confdefs.h. */
  5535. $ac_includes_default
  5536. int
  5537. main ()
  5538. {
  5539. if ((pid_t *) 0)
  5540. return 0;
  5541. if (sizeof (pid_t))
  5542. return 0;
  5543. ;
  5544. return 0;
  5545. }
  5546. _ACEOF
  5547. rm -f conftest.$ac_objext
  5548. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5549. (eval $ac_compile) 2>conftest.er1
  5550. ac_status=$?
  5551. grep -v '^ *+' conftest.er1 >conftest.err
  5552. rm -f conftest.er1
  5553. cat conftest.err >&5
  5554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5555. (exit $ac_status); } &&
  5556. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5557. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5558. (eval $ac_try) 2>&5
  5559. ac_status=$?
  5560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5561. (exit $ac_status); }; } &&
  5562. { ac_try='test -s conftest.$ac_objext'
  5563. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5564. (eval $ac_try) 2>&5
  5565. ac_status=$?
  5566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5567. (exit $ac_status); }; }; then
  5568. ac_cv_type_pid_t=yes
  5569. else
  5570. echo "$as_me: failed program was:" >&5
  5571. sed 's/^/| /' conftest.$ac_ext >&5
  5572. ac_cv_type_pid_t=no
  5573. fi
  5574. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5575. fi
  5576. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5577. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  5578. if test $ac_cv_type_pid_t = yes; then
  5579. :
  5580. else
  5581. cat >>confdefs.h <<_ACEOF
  5582. #define pid_t int
  5583. _ACEOF
  5584. fi
  5585. echo "$as_me:$LINENO: checking for size_t" >&5
  5586. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5587. if test "${ac_cv_type_size_t+set}" = set; then
  5588. echo $ECHO_N "(cached) $ECHO_C" >&6
  5589. else
  5590. cat >conftest.$ac_ext <<_ACEOF
  5591. /* confdefs.h. */
  5592. _ACEOF
  5593. cat confdefs.h >>conftest.$ac_ext
  5594. cat >>conftest.$ac_ext <<_ACEOF
  5595. /* end confdefs.h. */
  5596. $ac_includes_default
  5597. int
  5598. main ()
  5599. {
  5600. if ((size_t *) 0)
  5601. return 0;
  5602. if (sizeof (size_t))
  5603. return 0;
  5604. ;
  5605. return 0;
  5606. }
  5607. _ACEOF
  5608. rm -f conftest.$ac_objext
  5609. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5610. (eval $ac_compile) 2>conftest.er1
  5611. ac_status=$?
  5612. grep -v '^ *+' conftest.er1 >conftest.err
  5613. rm -f conftest.er1
  5614. cat conftest.err >&5
  5615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5616. (exit $ac_status); } &&
  5617. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5618. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5619. (eval $ac_try) 2>&5
  5620. ac_status=$?
  5621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5622. (exit $ac_status); }; } &&
  5623. { ac_try='test -s conftest.$ac_objext'
  5624. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5625. (eval $ac_try) 2>&5
  5626. ac_status=$?
  5627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5628. (exit $ac_status); }; }; then
  5629. ac_cv_type_size_t=yes
  5630. else
  5631. echo "$as_me: failed program was:" >&5
  5632. sed 's/^/| /' conftest.$ac_ext >&5
  5633. ac_cv_type_size_t=no
  5634. fi
  5635. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5636. fi
  5637. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5638. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5639. if test $ac_cv_type_size_t = yes; then
  5640. :
  5641. else
  5642. cat >>confdefs.h <<_ACEOF
  5643. #define size_t unsigned
  5644. _ACEOF
  5645. fi
  5646. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5647. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  5648. if test "${ac_cv_type_uid_t+set}" = set; then
  5649. echo $ECHO_N "(cached) $ECHO_C" >&6
  5650. else
  5651. cat >conftest.$ac_ext <<_ACEOF
  5652. /* confdefs.h. */
  5653. _ACEOF
  5654. cat confdefs.h >>conftest.$ac_ext
  5655. cat >>conftest.$ac_ext <<_ACEOF
  5656. /* end confdefs.h. */
  5657. #include <sys/types.h>
  5658. _ACEOF
  5659. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5660. $EGREP "uid_t" >/dev/null 2>&1; then
  5661. ac_cv_type_uid_t=yes
  5662. else
  5663. ac_cv_type_uid_t=no
  5664. fi
  5665. rm -f conftest*
  5666. fi
  5667. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5668. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  5669. if test $ac_cv_type_uid_t = no; then
  5670. cat >>confdefs.h <<\_ACEOF
  5671. #define uid_t int
  5672. _ACEOF
  5673. cat >>confdefs.h <<\_ACEOF
  5674. #define gid_t int
  5675. _ACEOF
  5676. fi
  5677. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5678. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5679. if test "${ac_cv_c_const+set}" = set; then
  5680. echo $ECHO_N "(cached) $ECHO_C" >&6
  5681. else
  5682. cat >conftest.$ac_ext <<_ACEOF
  5683. /* confdefs.h. */
  5684. _ACEOF
  5685. cat confdefs.h >>conftest.$ac_ext
  5686. cat >>conftest.$ac_ext <<_ACEOF
  5687. /* end confdefs.h. */
  5688. int
  5689. main ()
  5690. {
  5691. /* FIXME: Include the comments suggested by Paul. */
  5692. #ifndef __cplusplus
  5693. /* Ultrix mips cc rejects this. */
  5694. typedef int charset[2];
  5695. const charset x;
  5696. /* SunOS 4.1.1 cc rejects this. */
  5697. char const *const *ccp;
  5698. char **p;
  5699. /* NEC SVR4.0.2 mips cc rejects this. */
  5700. struct point {int x, y;};
  5701. static struct point const zero = {0,0};
  5702. /* AIX XL C 1.02.0.0 rejects this.
  5703. It does not let you subtract one const X* pointer from another in
  5704. an arm of an if-expression whose if-part is not a constant
  5705. expression */
  5706. const char *g = "string";
  5707. ccp = &g + (g ? g-g : 0);
  5708. /* HPUX 7.0 cc rejects these. */
  5709. ++ccp;
  5710. p = (char**) ccp;
  5711. ccp = (char const *const *) p;
  5712. { /* SCO 3.2v4 cc rejects this. */
  5713. char *t;
  5714. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5715. *t++ = 0;
  5716. }
  5717. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5718. int x[] = {25, 17};
  5719. const int *foo = &x[0];
  5720. ++foo;
  5721. }
  5722. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5723. typedef const int *iptr;
  5724. iptr p = 0;
  5725. ++p;
  5726. }
  5727. { /* AIX XL C 1.02.0.0 rejects this saying
  5728. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5729. struct s { int j; const int *ap[3]; };
  5730. struct s *b; b->j = 5;
  5731. }
  5732. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5733. const int foo = 10;
  5734. }
  5735. #endif
  5736. ;
  5737. return 0;
  5738. }
  5739. _ACEOF
  5740. rm -f conftest.$ac_objext
  5741. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5742. (eval $ac_compile) 2>conftest.er1
  5743. ac_status=$?
  5744. grep -v '^ *+' conftest.er1 >conftest.err
  5745. rm -f conftest.er1
  5746. cat conftest.err >&5
  5747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5748. (exit $ac_status); } &&
  5749. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5750. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5751. (eval $ac_try) 2>&5
  5752. ac_status=$?
  5753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5754. (exit $ac_status); }; } &&
  5755. { ac_try='test -s conftest.$ac_objext'
  5756. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5757. (eval $ac_try) 2>&5
  5758. ac_status=$?
  5759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5760. (exit $ac_status); }; }; then
  5761. ac_cv_c_const=yes
  5762. else
  5763. echo "$as_me: failed program was:" >&5
  5764. sed 's/^/| /' conftest.$ac_ext >&5
  5765. ac_cv_c_const=no
  5766. fi
  5767. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5768. fi
  5769. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5770. echo "${ECHO_T}$ac_cv_c_const" >&6
  5771. if test $ac_cv_c_const = no; then
  5772. cat >>confdefs.h <<\_ACEOF
  5773. #define const
  5774. _ACEOF
  5775. fi
  5776. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5777. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  5778. if test "${ac_cv_c_bigendian+set}" = set; then
  5779. echo $ECHO_N "(cached) $ECHO_C" >&6
  5780. else
  5781. # See if sys/param.h defines the BYTE_ORDER macro.
  5782. cat >conftest.$ac_ext <<_ACEOF
  5783. /* confdefs.h. */
  5784. _ACEOF
  5785. cat confdefs.h >>conftest.$ac_ext
  5786. cat >>conftest.$ac_ext <<_ACEOF
  5787. /* end confdefs.h. */
  5788. #include <sys/types.h>
  5789. #include <sys/param.h>
  5790. int
  5791. main ()
  5792. {
  5793. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  5794. bogus endian macros
  5795. #endif
  5796. ;
  5797. return 0;
  5798. }
  5799. _ACEOF
  5800. rm -f conftest.$ac_objext
  5801. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5802. (eval $ac_compile) 2>conftest.er1
  5803. ac_status=$?
  5804. grep -v '^ *+' conftest.er1 >conftest.err
  5805. rm -f conftest.er1
  5806. cat conftest.err >&5
  5807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5808. (exit $ac_status); } &&
  5809. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5810. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5811. (eval $ac_try) 2>&5
  5812. ac_status=$?
  5813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5814. (exit $ac_status); }; } &&
  5815. { ac_try='test -s conftest.$ac_objext'
  5816. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5817. (eval $ac_try) 2>&5
  5818. ac_status=$?
  5819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5820. (exit $ac_status); }; }; then
  5821. # It does; now see whether it defined to BIG_ENDIAN or not.
  5822. cat >conftest.$ac_ext <<_ACEOF
  5823. /* confdefs.h. */
  5824. _ACEOF
  5825. cat confdefs.h >>conftest.$ac_ext
  5826. cat >>conftest.$ac_ext <<_ACEOF
  5827. /* end confdefs.h. */
  5828. #include <sys/types.h>
  5829. #include <sys/param.h>
  5830. int
  5831. main ()
  5832. {
  5833. #if BYTE_ORDER != BIG_ENDIAN
  5834. not big endian
  5835. #endif
  5836. ;
  5837. return 0;
  5838. }
  5839. _ACEOF
  5840. rm -f conftest.$ac_objext
  5841. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5842. (eval $ac_compile) 2>conftest.er1
  5843. ac_status=$?
  5844. grep -v '^ *+' conftest.er1 >conftest.err
  5845. rm -f conftest.er1
  5846. cat conftest.err >&5
  5847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5848. (exit $ac_status); } &&
  5849. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5850. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5851. (eval $ac_try) 2>&5
  5852. ac_status=$?
  5853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5854. (exit $ac_status); }; } &&
  5855. { ac_try='test -s conftest.$ac_objext'
  5856. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5857. (eval $ac_try) 2>&5
  5858. ac_status=$?
  5859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5860. (exit $ac_status); }; }; then
  5861. ac_cv_c_bigendian=yes
  5862. else
  5863. echo "$as_me: failed program was:" >&5
  5864. sed 's/^/| /' conftest.$ac_ext >&5
  5865. ac_cv_c_bigendian=no
  5866. fi
  5867. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5868. else
  5869. echo "$as_me: failed program was:" >&5
  5870. sed 's/^/| /' conftest.$ac_ext >&5
  5871. # It does not; compile a test program.
  5872. if test "$cross_compiling" = yes; then
  5873. # try to guess the endianness by grepping values into an object file
  5874. ac_cv_c_bigendian=unknown
  5875. cat >conftest.$ac_ext <<_ACEOF
  5876. /* confdefs.h. */
  5877. _ACEOF
  5878. cat confdefs.h >>conftest.$ac_ext
  5879. cat >>conftest.$ac_ext <<_ACEOF
  5880. /* end confdefs.h. */
  5881. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5882. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5883. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  5884. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5885. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5886. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  5887. int
  5888. main ()
  5889. {
  5890. _ascii (); _ebcdic ();
  5891. ;
  5892. return 0;
  5893. }
  5894. _ACEOF
  5895. rm -f conftest.$ac_objext
  5896. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5897. (eval $ac_compile) 2>conftest.er1
  5898. ac_status=$?
  5899. grep -v '^ *+' conftest.er1 >conftest.err
  5900. rm -f conftest.er1
  5901. cat conftest.err >&5
  5902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5903. (exit $ac_status); } &&
  5904. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5905. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5906. (eval $ac_try) 2>&5
  5907. ac_status=$?
  5908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5909. (exit $ac_status); }; } &&
  5910. { ac_try='test -s conftest.$ac_objext'
  5911. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5912. (eval $ac_try) 2>&5
  5913. ac_status=$?
  5914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5915. (exit $ac_status); }; }; then
  5916. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  5917. ac_cv_c_bigendian=yes
  5918. fi
  5919. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5920. if test "$ac_cv_c_bigendian" = unknown; then
  5921. ac_cv_c_bigendian=no
  5922. else
  5923. # finding both strings is unlikely to happen, but who knows?
  5924. ac_cv_c_bigendian=unknown
  5925. fi
  5926. fi
  5927. else
  5928. echo "$as_me: failed program was:" >&5
  5929. sed 's/^/| /' conftest.$ac_ext >&5
  5930. fi
  5931. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5932. else
  5933. cat >conftest.$ac_ext <<_ACEOF
  5934. /* confdefs.h. */
  5935. _ACEOF
  5936. cat confdefs.h >>conftest.$ac_ext
  5937. cat >>conftest.$ac_ext <<_ACEOF
  5938. /* end confdefs.h. */
  5939. int
  5940. main ()
  5941. {
  5942. /* Are we little or big endian? From Harbison&Steele. */
  5943. union
  5944. {
  5945. long l;
  5946. char c[sizeof (long)];
  5947. } u;
  5948. u.l = 1;
  5949. exit (u.c[sizeof (long) - 1] == 1);
  5950. }
  5951. _ACEOF
  5952. rm -f conftest$ac_exeext
  5953. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5954. (eval $ac_link) 2>&5
  5955. ac_status=$?
  5956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5957. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5958. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5959. (eval $ac_try) 2>&5
  5960. ac_status=$?
  5961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5962. (exit $ac_status); }; }; then
  5963. ac_cv_c_bigendian=no
  5964. else
  5965. echo "$as_me: program exited with status $ac_status" >&5
  5966. echo "$as_me: failed program was:" >&5
  5967. sed 's/^/| /' conftest.$ac_ext >&5
  5968. ( exit $ac_status )
  5969. ac_cv_c_bigendian=yes
  5970. fi
  5971. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5972. fi
  5973. fi
  5974. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5975. fi
  5976. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  5977. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  5978. case $ac_cv_c_bigendian in
  5979. yes)
  5980. cat >>confdefs.h <<\_ACEOF
  5981. #define WORDS_BIGENDIAN 1
  5982. _ACEOF
  5983. ;;
  5984. no)
  5985. ;;
  5986. *)
  5987. { { echo "$as_me:$LINENO: error: unknown endianness
  5988. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  5989. echo "$as_me: error: unknown endianness
  5990. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  5991. { (exit 1); exit 1; }; } ;;
  5992. esac
  5993. echo "$as_me:$LINENO: checking for inline" >&5
  5994. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  5995. if test "${ac_cv_c_inline+set}" = set; then
  5996. echo $ECHO_N "(cached) $ECHO_C" >&6
  5997. else
  5998. ac_cv_c_inline=no
  5999. for ac_kw in inline __inline__ __inline; do
  6000. cat >conftest.$ac_ext <<_ACEOF
  6001. /* confdefs.h. */
  6002. _ACEOF
  6003. cat confdefs.h >>conftest.$ac_ext
  6004. cat >>conftest.$ac_ext <<_ACEOF
  6005. /* end confdefs.h. */
  6006. #ifndef __cplusplus
  6007. typedef int foo_t;
  6008. static $ac_kw foo_t static_foo () {return 0; }
  6009. $ac_kw foo_t foo () {return 0; }
  6010. #endif
  6011. _ACEOF
  6012. rm -f conftest.$ac_objext
  6013. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6014. (eval $ac_compile) 2>conftest.er1
  6015. ac_status=$?
  6016. grep -v '^ *+' conftest.er1 >conftest.err
  6017. rm -f conftest.er1
  6018. cat conftest.err >&5
  6019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6020. (exit $ac_status); } &&
  6021. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6022. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6023. (eval $ac_try) 2>&5
  6024. ac_status=$?
  6025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6026. (exit $ac_status); }; } &&
  6027. { ac_try='test -s conftest.$ac_objext'
  6028. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6029. (eval $ac_try) 2>&5
  6030. ac_status=$?
  6031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6032. (exit $ac_status); }; }; then
  6033. ac_cv_c_inline=$ac_kw; break
  6034. else
  6035. echo "$as_me: failed program was:" >&5
  6036. sed 's/^/| /' conftest.$ac_ext >&5
  6037. fi
  6038. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6039. done
  6040. fi
  6041. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6042. echo "${ECHO_T}$ac_cv_c_inline" >&6
  6043. case $ac_cv_c_inline in
  6044. inline | yes) ;;
  6045. *)
  6046. case $ac_cv_c_inline in
  6047. no) ac_val=;;
  6048. *) ac_val=$ac_cv_c_inline;;
  6049. esac
  6050. cat >>confdefs.h <<_ACEOF
  6051. #ifndef __cplusplus
  6052. #define inline $ac_val
  6053. #endif
  6054. _ACEOF
  6055. ;;
  6056. esac
  6057. echo "$as_me:$LINENO: checking for long" >&5
  6058. echo $ECHO_N "checking for long... $ECHO_C" >&6
  6059. if test "${ac_cv_type_long+set}" = set; then
  6060. echo $ECHO_N "(cached) $ECHO_C" >&6
  6061. else
  6062. cat >conftest.$ac_ext <<_ACEOF
  6063. /* confdefs.h. */
  6064. _ACEOF
  6065. cat confdefs.h >>conftest.$ac_ext
  6066. cat >>conftest.$ac_ext <<_ACEOF
  6067. /* end confdefs.h. */
  6068. $ac_includes_default
  6069. int
  6070. main ()
  6071. {
  6072. if ((long *) 0)
  6073. return 0;
  6074. if (sizeof (long))
  6075. return 0;
  6076. ;
  6077. return 0;
  6078. }
  6079. _ACEOF
  6080. rm -f conftest.$ac_objext
  6081. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6082. (eval $ac_compile) 2>conftest.er1
  6083. ac_status=$?
  6084. grep -v '^ *+' conftest.er1 >conftest.err
  6085. rm -f conftest.er1
  6086. cat conftest.err >&5
  6087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6088. (exit $ac_status); } &&
  6089. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6090. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6091. (eval $ac_try) 2>&5
  6092. ac_status=$?
  6093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6094. (exit $ac_status); }; } &&
  6095. { ac_try='test -s conftest.$ac_objext'
  6096. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6097. (eval $ac_try) 2>&5
  6098. ac_status=$?
  6099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6100. (exit $ac_status); }; }; then
  6101. ac_cv_type_long=yes
  6102. else
  6103. echo "$as_me: failed program was:" >&5
  6104. sed 's/^/| /' conftest.$ac_ext >&5
  6105. ac_cv_type_long=no
  6106. fi
  6107. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6108. fi
  6109. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  6110. echo "${ECHO_T}$ac_cv_type_long" >&6
  6111. echo "$as_me:$LINENO: checking size of long" >&5
  6112. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  6113. if test "${ac_cv_sizeof_long+set}" = set; then
  6114. echo $ECHO_N "(cached) $ECHO_C" >&6
  6115. else
  6116. if test "$ac_cv_type_long" = yes; then
  6117. # The cast to unsigned long works around a bug in the HP C Compiler
  6118. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6119. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6120. # This bug is HP SR number 8606223364.
  6121. if test "$cross_compiling" = yes; then
  6122. # Depending upon the size, compute the lo and hi bounds.
  6123. cat >conftest.$ac_ext <<_ACEOF
  6124. /* confdefs.h. */
  6125. _ACEOF
  6126. cat confdefs.h >>conftest.$ac_ext
  6127. cat >>conftest.$ac_ext <<_ACEOF
  6128. /* end confdefs.h. */
  6129. $ac_includes_default
  6130. int
  6131. main ()
  6132. {
  6133. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  6134. test_array [0] = 0
  6135. ;
  6136. return 0;
  6137. }
  6138. _ACEOF
  6139. rm -f conftest.$ac_objext
  6140. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6141. (eval $ac_compile) 2>conftest.er1
  6142. ac_status=$?
  6143. grep -v '^ *+' conftest.er1 >conftest.err
  6144. rm -f conftest.er1
  6145. cat conftest.err >&5
  6146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6147. (exit $ac_status); } &&
  6148. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6149. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6150. (eval $ac_try) 2>&5
  6151. ac_status=$?
  6152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6153. (exit $ac_status); }; } &&
  6154. { ac_try='test -s conftest.$ac_objext'
  6155. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6156. (eval $ac_try) 2>&5
  6157. ac_status=$?
  6158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6159. (exit $ac_status); }; }; then
  6160. ac_lo=0 ac_mid=0
  6161. while :; do
  6162. cat >conftest.$ac_ext <<_ACEOF
  6163. /* confdefs.h. */
  6164. _ACEOF
  6165. cat confdefs.h >>conftest.$ac_ext
  6166. cat >>conftest.$ac_ext <<_ACEOF
  6167. /* end confdefs.h. */
  6168. $ac_includes_default
  6169. int
  6170. main ()
  6171. {
  6172. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6173. test_array [0] = 0
  6174. ;
  6175. return 0;
  6176. }
  6177. _ACEOF
  6178. rm -f conftest.$ac_objext
  6179. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6180. (eval $ac_compile) 2>conftest.er1
  6181. ac_status=$?
  6182. grep -v '^ *+' conftest.er1 >conftest.err
  6183. rm -f conftest.er1
  6184. cat conftest.err >&5
  6185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6186. (exit $ac_status); } &&
  6187. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6188. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6189. (eval $ac_try) 2>&5
  6190. ac_status=$?
  6191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6192. (exit $ac_status); }; } &&
  6193. { ac_try='test -s conftest.$ac_objext'
  6194. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6195. (eval $ac_try) 2>&5
  6196. ac_status=$?
  6197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6198. (exit $ac_status); }; }; then
  6199. ac_hi=$ac_mid; break
  6200. else
  6201. echo "$as_me: failed program was:" >&5
  6202. sed 's/^/| /' conftest.$ac_ext >&5
  6203. ac_lo=`expr $ac_mid + 1`
  6204. if test $ac_lo -le $ac_mid; then
  6205. ac_lo= ac_hi=
  6206. break
  6207. fi
  6208. ac_mid=`expr 2 '*' $ac_mid + 1`
  6209. fi
  6210. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6211. done
  6212. else
  6213. echo "$as_me: failed program was:" >&5
  6214. sed 's/^/| /' conftest.$ac_ext >&5
  6215. cat >conftest.$ac_ext <<_ACEOF
  6216. /* confdefs.h. */
  6217. _ACEOF
  6218. cat confdefs.h >>conftest.$ac_ext
  6219. cat >>conftest.$ac_ext <<_ACEOF
  6220. /* end confdefs.h. */
  6221. $ac_includes_default
  6222. int
  6223. main ()
  6224. {
  6225. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  6226. test_array [0] = 0
  6227. ;
  6228. return 0;
  6229. }
  6230. _ACEOF
  6231. rm -f conftest.$ac_objext
  6232. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6233. (eval $ac_compile) 2>conftest.er1
  6234. ac_status=$?
  6235. grep -v '^ *+' conftest.er1 >conftest.err
  6236. rm -f conftest.er1
  6237. cat conftest.err >&5
  6238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6239. (exit $ac_status); } &&
  6240. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6241. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6242. (eval $ac_try) 2>&5
  6243. ac_status=$?
  6244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6245. (exit $ac_status); }; } &&
  6246. { ac_try='test -s conftest.$ac_objext'
  6247. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6248. (eval $ac_try) 2>&5
  6249. ac_status=$?
  6250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6251. (exit $ac_status); }; }; then
  6252. ac_hi=-1 ac_mid=-1
  6253. while :; do
  6254. cat >conftest.$ac_ext <<_ACEOF
  6255. /* confdefs.h. */
  6256. _ACEOF
  6257. cat confdefs.h >>conftest.$ac_ext
  6258. cat >>conftest.$ac_ext <<_ACEOF
  6259. /* end confdefs.h. */
  6260. $ac_includes_default
  6261. int
  6262. main ()
  6263. {
  6264. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  6265. test_array [0] = 0
  6266. ;
  6267. return 0;
  6268. }
  6269. _ACEOF
  6270. rm -f conftest.$ac_objext
  6271. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6272. (eval $ac_compile) 2>conftest.er1
  6273. ac_status=$?
  6274. grep -v '^ *+' conftest.er1 >conftest.err
  6275. rm -f conftest.er1
  6276. cat conftest.err >&5
  6277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6278. (exit $ac_status); } &&
  6279. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6280. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6281. (eval $ac_try) 2>&5
  6282. ac_status=$?
  6283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6284. (exit $ac_status); }; } &&
  6285. { ac_try='test -s conftest.$ac_objext'
  6286. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6287. (eval $ac_try) 2>&5
  6288. ac_status=$?
  6289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6290. (exit $ac_status); }; }; then
  6291. ac_lo=$ac_mid; break
  6292. else
  6293. echo "$as_me: failed program was:" >&5
  6294. sed 's/^/| /' conftest.$ac_ext >&5
  6295. ac_hi=`expr '(' $ac_mid ')' - 1`
  6296. if test $ac_mid -le $ac_hi; then
  6297. ac_lo= ac_hi=
  6298. break
  6299. fi
  6300. ac_mid=`expr 2 '*' $ac_mid`
  6301. fi
  6302. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6303. done
  6304. else
  6305. echo "$as_me: failed program was:" >&5
  6306. sed 's/^/| /' conftest.$ac_ext >&5
  6307. ac_lo= ac_hi=
  6308. fi
  6309. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6310. fi
  6311. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6312. # Binary search between lo and hi bounds.
  6313. while test "x$ac_lo" != "x$ac_hi"; do
  6314. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6315. cat >conftest.$ac_ext <<_ACEOF
  6316. /* confdefs.h. */
  6317. _ACEOF
  6318. cat confdefs.h >>conftest.$ac_ext
  6319. cat >>conftest.$ac_ext <<_ACEOF
  6320. /* end confdefs.h. */
  6321. $ac_includes_default
  6322. int
  6323. main ()
  6324. {
  6325. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6326. test_array [0] = 0
  6327. ;
  6328. return 0;
  6329. }
  6330. _ACEOF
  6331. rm -f conftest.$ac_objext
  6332. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6333. (eval $ac_compile) 2>conftest.er1
  6334. ac_status=$?
  6335. grep -v '^ *+' conftest.er1 >conftest.err
  6336. rm -f conftest.er1
  6337. cat conftest.err >&5
  6338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6339. (exit $ac_status); } &&
  6340. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6341. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6342. (eval $ac_try) 2>&5
  6343. ac_status=$?
  6344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6345. (exit $ac_status); }; } &&
  6346. { ac_try='test -s conftest.$ac_objext'
  6347. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6348. (eval $ac_try) 2>&5
  6349. ac_status=$?
  6350. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6351. (exit $ac_status); }; }; then
  6352. ac_hi=$ac_mid
  6353. else
  6354. echo "$as_me: failed program was:" >&5
  6355. sed 's/^/| /' conftest.$ac_ext >&5
  6356. ac_lo=`expr '(' $ac_mid ')' + 1`
  6357. fi
  6358. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6359. done
  6360. case $ac_lo in
  6361. ?*) ac_cv_sizeof_long=$ac_lo;;
  6362. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6363. See \`config.log' for more details." >&5
  6364. echo "$as_me: error: cannot compute sizeof (long), 77
  6365. See \`config.log' for more details." >&2;}
  6366. { (exit 1); exit 1; }; } ;;
  6367. esac
  6368. else
  6369. if test "$cross_compiling" = yes; then
  6370. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6371. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6372. { (exit 1); exit 1; }; }
  6373. else
  6374. cat >conftest.$ac_ext <<_ACEOF
  6375. /* confdefs.h. */
  6376. _ACEOF
  6377. cat confdefs.h >>conftest.$ac_ext
  6378. cat >>conftest.$ac_ext <<_ACEOF
  6379. /* end confdefs.h. */
  6380. $ac_includes_default
  6381. long longval () { return (long) (sizeof (long)); }
  6382. unsigned long ulongval () { return (long) (sizeof (long)); }
  6383. #include <stdio.h>
  6384. #include <stdlib.h>
  6385. int
  6386. main ()
  6387. {
  6388. FILE *f = fopen ("conftest.val", "w");
  6389. if (! f)
  6390. exit (1);
  6391. if (((long) (sizeof (long))) < 0)
  6392. {
  6393. long i = longval ();
  6394. if (i != ((long) (sizeof (long))))
  6395. exit (1);
  6396. fprintf (f, "%ld\n", i);
  6397. }
  6398. else
  6399. {
  6400. unsigned long i = ulongval ();
  6401. if (i != ((long) (sizeof (long))))
  6402. exit (1);
  6403. fprintf (f, "%lu\n", i);
  6404. }
  6405. exit (ferror (f) || fclose (f) != 0);
  6406. ;
  6407. return 0;
  6408. }
  6409. _ACEOF
  6410. rm -f conftest$ac_exeext
  6411. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6412. (eval $ac_link) 2>&5
  6413. ac_status=$?
  6414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6415. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6416. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6417. (eval $ac_try) 2>&5
  6418. ac_status=$?
  6419. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6420. (exit $ac_status); }; }; then
  6421. ac_cv_sizeof_long=`cat conftest.val`
  6422. else
  6423. echo "$as_me: program exited with status $ac_status" >&5
  6424. echo "$as_me: failed program was:" >&5
  6425. sed 's/^/| /' conftest.$ac_ext >&5
  6426. ( exit $ac_status )
  6427. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6428. See \`config.log' for more details." >&5
  6429. echo "$as_me: error: cannot compute sizeof (long), 77
  6430. See \`config.log' for more details." >&2;}
  6431. { (exit 1); exit 1; }; }
  6432. fi
  6433. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6434. fi
  6435. fi
  6436. rm -f conftest.val
  6437. else
  6438. ac_cv_sizeof_long=0
  6439. fi
  6440. fi
  6441. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  6442. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  6443. cat >>confdefs.h <<_ACEOF
  6444. #define SIZEOF_LONG $ac_cv_sizeof_long
  6445. _ACEOF
  6446. echo "$as_me:$LINENO: checking for int" >&5
  6447. echo $ECHO_N "checking for int... $ECHO_C" >&6
  6448. if test "${ac_cv_type_int+set}" = set; then
  6449. echo $ECHO_N "(cached) $ECHO_C" >&6
  6450. else
  6451. cat >conftest.$ac_ext <<_ACEOF
  6452. /* confdefs.h. */
  6453. _ACEOF
  6454. cat confdefs.h >>conftest.$ac_ext
  6455. cat >>conftest.$ac_ext <<_ACEOF
  6456. /* end confdefs.h. */
  6457. $ac_includes_default
  6458. int
  6459. main ()
  6460. {
  6461. if ((int *) 0)
  6462. return 0;
  6463. if (sizeof (int))
  6464. return 0;
  6465. ;
  6466. return 0;
  6467. }
  6468. _ACEOF
  6469. rm -f conftest.$ac_objext
  6470. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6471. (eval $ac_compile) 2>conftest.er1
  6472. ac_status=$?
  6473. grep -v '^ *+' conftest.er1 >conftest.err
  6474. rm -f conftest.er1
  6475. cat conftest.err >&5
  6476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6477. (exit $ac_status); } &&
  6478. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6479. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6480. (eval $ac_try) 2>&5
  6481. ac_status=$?
  6482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6483. (exit $ac_status); }; } &&
  6484. { ac_try='test -s conftest.$ac_objext'
  6485. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6486. (eval $ac_try) 2>&5
  6487. ac_status=$?
  6488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6489. (exit $ac_status); }; }; then
  6490. ac_cv_type_int=yes
  6491. else
  6492. echo "$as_me: failed program was:" >&5
  6493. sed 's/^/| /' conftest.$ac_ext >&5
  6494. ac_cv_type_int=no
  6495. fi
  6496. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6497. fi
  6498. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  6499. echo "${ECHO_T}$ac_cv_type_int" >&6
  6500. echo "$as_me:$LINENO: checking size of int" >&5
  6501. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  6502. if test "${ac_cv_sizeof_int+set}" = set; then
  6503. echo $ECHO_N "(cached) $ECHO_C" >&6
  6504. else
  6505. if test "$ac_cv_type_int" = yes; then
  6506. # The cast to unsigned long works around a bug in the HP C Compiler
  6507. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6508. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6509. # This bug is HP SR number 8606223364.
  6510. if test "$cross_compiling" = yes; then
  6511. # Depending upon the size, compute the lo and hi bounds.
  6512. cat >conftest.$ac_ext <<_ACEOF
  6513. /* confdefs.h. */
  6514. _ACEOF
  6515. cat confdefs.h >>conftest.$ac_ext
  6516. cat >>conftest.$ac_ext <<_ACEOF
  6517. /* end confdefs.h. */
  6518. $ac_includes_default
  6519. int
  6520. main ()
  6521. {
  6522. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  6523. test_array [0] = 0
  6524. ;
  6525. return 0;
  6526. }
  6527. _ACEOF
  6528. rm -f conftest.$ac_objext
  6529. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6530. (eval $ac_compile) 2>conftest.er1
  6531. ac_status=$?
  6532. grep -v '^ *+' conftest.er1 >conftest.err
  6533. rm -f conftest.er1
  6534. cat conftest.err >&5
  6535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6536. (exit $ac_status); } &&
  6537. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6538. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6539. (eval $ac_try) 2>&5
  6540. ac_status=$?
  6541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6542. (exit $ac_status); }; } &&
  6543. { ac_try='test -s conftest.$ac_objext'
  6544. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6545. (eval $ac_try) 2>&5
  6546. ac_status=$?
  6547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6548. (exit $ac_status); }; }; then
  6549. ac_lo=0 ac_mid=0
  6550. while :; do
  6551. cat >conftest.$ac_ext <<_ACEOF
  6552. /* confdefs.h. */
  6553. _ACEOF
  6554. cat confdefs.h >>conftest.$ac_ext
  6555. cat >>conftest.$ac_ext <<_ACEOF
  6556. /* end confdefs.h. */
  6557. $ac_includes_default
  6558. int
  6559. main ()
  6560. {
  6561. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6562. test_array [0] = 0
  6563. ;
  6564. return 0;
  6565. }
  6566. _ACEOF
  6567. rm -f conftest.$ac_objext
  6568. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6569. (eval $ac_compile) 2>conftest.er1
  6570. ac_status=$?
  6571. grep -v '^ *+' conftest.er1 >conftest.err
  6572. rm -f conftest.er1
  6573. cat conftest.err >&5
  6574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6575. (exit $ac_status); } &&
  6576. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6577. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6578. (eval $ac_try) 2>&5
  6579. ac_status=$?
  6580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6581. (exit $ac_status); }; } &&
  6582. { ac_try='test -s conftest.$ac_objext'
  6583. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6584. (eval $ac_try) 2>&5
  6585. ac_status=$?
  6586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6587. (exit $ac_status); }; }; then
  6588. ac_hi=$ac_mid; break
  6589. else
  6590. echo "$as_me: failed program was:" >&5
  6591. sed 's/^/| /' conftest.$ac_ext >&5
  6592. ac_lo=`expr $ac_mid + 1`
  6593. if test $ac_lo -le $ac_mid; then
  6594. ac_lo= ac_hi=
  6595. break
  6596. fi
  6597. ac_mid=`expr 2 '*' $ac_mid + 1`
  6598. fi
  6599. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6600. done
  6601. else
  6602. echo "$as_me: failed program was:" >&5
  6603. sed 's/^/| /' conftest.$ac_ext >&5
  6604. cat >conftest.$ac_ext <<_ACEOF
  6605. /* confdefs.h. */
  6606. _ACEOF
  6607. cat confdefs.h >>conftest.$ac_ext
  6608. cat >>conftest.$ac_ext <<_ACEOF
  6609. /* end confdefs.h. */
  6610. $ac_includes_default
  6611. int
  6612. main ()
  6613. {
  6614. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  6615. test_array [0] = 0
  6616. ;
  6617. return 0;
  6618. }
  6619. _ACEOF
  6620. rm -f conftest.$ac_objext
  6621. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6622. (eval $ac_compile) 2>conftest.er1
  6623. ac_status=$?
  6624. grep -v '^ *+' conftest.er1 >conftest.err
  6625. rm -f conftest.er1
  6626. cat conftest.err >&5
  6627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6628. (exit $ac_status); } &&
  6629. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6630. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6631. (eval $ac_try) 2>&5
  6632. ac_status=$?
  6633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6634. (exit $ac_status); }; } &&
  6635. { ac_try='test -s conftest.$ac_objext'
  6636. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6637. (eval $ac_try) 2>&5
  6638. ac_status=$?
  6639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6640. (exit $ac_status); }; }; then
  6641. ac_hi=-1 ac_mid=-1
  6642. while :; do
  6643. cat >conftest.$ac_ext <<_ACEOF
  6644. /* confdefs.h. */
  6645. _ACEOF
  6646. cat confdefs.h >>conftest.$ac_ext
  6647. cat >>conftest.$ac_ext <<_ACEOF
  6648. /* end confdefs.h. */
  6649. $ac_includes_default
  6650. int
  6651. main ()
  6652. {
  6653. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  6654. test_array [0] = 0
  6655. ;
  6656. return 0;
  6657. }
  6658. _ACEOF
  6659. rm -f conftest.$ac_objext
  6660. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6661. (eval $ac_compile) 2>conftest.er1
  6662. ac_status=$?
  6663. grep -v '^ *+' conftest.er1 >conftest.err
  6664. rm -f conftest.er1
  6665. cat conftest.err >&5
  6666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6667. (exit $ac_status); } &&
  6668. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6669. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6670. (eval $ac_try) 2>&5
  6671. ac_status=$?
  6672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6673. (exit $ac_status); }; } &&
  6674. { ac_try='test -s conftest.$ac_objext'
  6675. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6676. (eval $ac_try) 2>&5
  6677. ac_status=$?
  6678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6679. (exit $ac_status); }; }; then
  6680. ac_lo=$ac_mid; break
  6681. else
  6682. echo "$as_me: failed program was:" >&5
  6683. sed 's/^/| /' conftest.$ac_ext >&5
  6684. ac_hi=`expr '(' $ac_mid ')' - 1`
  6685. if test $ac_mid -le $ac_hi; then
  6686. ac_lo= ac_hi=
  6687. break
  6688. fi
  6689. ac_mid=`expr 2 '*' $ac_mid`
  6690. fi
  6691. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6692. done
  6693. else
  6694. echo "$as_me: failed program was:" >&5
  6695. sed 's/^/| /' conftest.$ac_ext >&5
  6696. ac_lo= ac_hi=
  6697. fi
  6698. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6699. fi
  6700. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6701. # Binary search between lo and hi bounds.
  6702. while test "x$ac_lo" != "x$ac_hi"; do
  6703. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6704. cat >conftest.$ac_ext <<_ACEOF
  6705. /* confdefs.h. */
  6706. _ACEOF
  6707. cat confdefs.h >>conftest.$ac_ext
  6708. cat >>conftest.$ac_ext <<_ACEOF
  6709. /* end confdefs.h. */
  6710. $ac_includes_default
  6711. int
  6712. main ()
  6713. {
  6714. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6715. test_array [0] = 0
  6716. ;
  6717. return 0;
  6718. }
  6719. _ACEOF
  6720. rm -f conftest.$ac_objext
  6721. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6722. (eval $ac_compile) 2>conftest.er1
  6723. ac_status=$?
  6724. grep -v '^ *+' conftest.er1 >conftest.err
  6725. rm -f conftest.er1
  6726. cat conftest.err >&5
  6727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6728. (exit $ac_status); } &&
  6729. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6730. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6731. (eval $ac_try) 2>&5
  6732. ac_status=$?
  6733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6734. (exit $ac_status); }; } &&
  6735. { ac_try='test -s conftest.$ac_objext'
  6736. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6737. (eval $ac_try) 2>&5
  6738. ac_status=$?
  6739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6740. (exit $ac_status); }; }; then
  6741. ac_hi=$ac_mid
  6742. else
  6743. echo "$as_me: failed program was:" >&5
  6744. sed 's/^/| /' conftest.$ac_ext >&5
  6745. ac_lo=`expr '(' $ac_mid ')' + 1`
  6746. fi
  6747. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6748. done
  6749. case $ac_lo in
  6750. ?*) ac_cv_sizeof_int=$ac_lo;;
  6751. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6752. See \`config.log' for more details." >&5
  6753. echo "$as_me: error: cannot compute sizeof (int), 77
  6754. See \`config.log' for more details." >&2;}
  6755. { (exit 1); exit 1; }; } ;;
  6756. esac
  6757. else
  6758. if test "$cross_compiling" = yes; then
  6759. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6760. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6761. { (exit 1); exit 1; }; }
  6762. else
  6763. cat >conftest.$ac_ext <<_ACEOF
  6764. /* confdefs.h. */
  6765. _ACEOF
  6766. cat confdefs.h >>conftest.$ac_ext
  6767. cat >>conftest.$ac_ext <<_ACEOF
  6768. /* end confdefs.h. */
  6769. $ac_includes_default
  6770. long longval () { return (long) (sizeof (int)); }
  6771. unsigned long ulongval () { return (long) (sizeof (int)); }
  6772. #include <stdio.h>
  6773. #include <stdlib.h>
  6774. int
  6775. main ()
  6776. {
  6777. FILE *f = fopen ("conftest.val", "w");
  6778. if (! f)
  6779. exit (1);
  6780. if (((long) (sizeof (int))) < 0)
  6781. {
  6782. long i = longval ();
  6783. if (i != ((long) (sizeof (int))))
  6784. exit (1);
  6785. fprintf (f, "%ld\n", i);
  6786. }
  6787. else
  6788. {
  6789. unsigned long i = ulongval ();
  6790. if (i != ((long) (sizeof (int))))
  6791. exit (1);
  6792. fprintf (f, "%lu\n", i);
  6793. }
  6794. exit (ferror (f) || fclose (f) != 0);
  6795. ;
  6796. return 0;
  6797. }
  6798. _ACEOF
  6799. rm -f conftest$ac_exeext
  6800. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6801. (eval $ac_link) 2>&5
  6802. ac_status=$?
  6803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6804. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6805. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6806. (eval $ac_try) 2>&5
  6807. ac_status=$?
  6808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6809. (exit $ac_status); }; }; then
  6810. ac_cv_sizeof_int=`cat conftest.val`
  6811. else
  6812. echo "$as_me: program exited with status $ac_status" >&5
  6813. echo "$as_me: failed program was:" >&5
  6814. sed 's/^/| /' conftest.$ac_ext >&5
  6815. ( exit $ac_status )
  6816. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6817. See \`config.log' for more details." >&5
  6818. echo "$as_me: error: cannot compute sizeof (int), 77
  6819. See \`config.log' for more details." >&2;}
  6820. { (exit 1); exit 1; }; }
  6821. fi
  6822. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6823. fi
  6824. fi
  6825. rm -f conftest.val
  6826. else
  6827. ac_cv_sizeof_int=0
  6828. fi
  6829. fi
  6830. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  6831. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  6832. cat >>confdefs.h <<_ACEOF
  6833. #define SIZEOF_INT $ac_cv_sizeof_int
  6834. _ACEOF
  6835. #checkpoint
  6836. cat >confcache <<\_ACEOF
  6837. # This file is a shell script that caches the results of configure
  6838. # tests run on this system so they can be shared between configure
  6839. # scripts and configure runs, see configure's option --config-cache.
  6840. # It is not useful on other systems. If it contains results you don't
  6841. # want to keep, you may remove or edit it.
  6842. #
  6843. # config.status only pays attention to the cache file if you give it
  6844. # the --recheck option to rerun configure.
  6845. #
  6846. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6847. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6848. # following values.
  6849. _ACEOF
  6850. # The following way of writing the cache mishandles newlines in values,
  6851. # but we know of no workaround that is simple, portable, and efficient.
  6852. # So, don't put newlines in cache variables' values.
  6853. # Ultrix sh set writes to stderr and can't be redirected directly,
  6854. # and sets the high bit in the cache file unless we assign to the vars.
  6855. {
  6856. (set) 2>&1 |
  6857. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6858. *ac_space=\ *)
  6859. # `set' does not quote correctly, so add quotes (double-quote
  6860. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6861. sed -n \
  6862. "s/'/'\\\\''/g;
  6863. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6864. ;;
  6865. *)
  6866. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6867. sed -n \
  6868. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  6869. ;;
  6870. esac;
  6871. } |
  6872. sed '
  6873. t clear
  6874. : clear
  6875. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6876. t end
  6877. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6878. : end' >>confcache
  6879. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  6880. if test -w $cache_file; then
  6881. test "x$cache_file" != "x/dev/null"
  6882. cat confcache >$cache_file
  6883. else
  6884. echo "not updating unwritable cache $cache_file"
  6885. fi
  6886. fi
  6887. rm -f confcache
  6888. echo "$as_me:$LINENO: checking for working volatile" >&5
  6889. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  6890. if test "${ac_cv_c_volatile+set}" = set; then
  6891. echo $ECHO_N "(cached) $ECHO_C" >&6
  6892. else
  6893. cat >conftest.$ac_ext <<_ACEOF
  6894. /* confdefs.h. */
  6895. _ACEOF
  6896. cat confdefs.h >>conftest.$ac_ext
  6897. cat >>conftest.$ac_ext <<_ACEOF
  6898. /* end confdefs.h. */
  6899. int
  6900. main ()
  6901. {
  6902. volatile int x;
  6903. int * volatile y;
  6904. ;
  6905. return 0;
  6906. }
  6907. _ACEOF
  6908. rm -f conftest.$ac_objext
  6909. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6910. (eval $ac_compile) 2>conftest.er1
  6911. ac_status=$?
  6912. grep -v '^ *+' conftest.er1 >conftest.err
  6913. rm -f conftest.er1
  6914. cat conftest.err >&5
  6915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6916. (exit $ac_status); } &&
  6917. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6918. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6919. (eval $ac_try) 2>&5
  6920. ac_status=$?
  6921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6922. (exit $ac_status); }; } &&
  6923. { ac_try='test -s conftest.$ac_objext'
  6924. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6925. (eval $ac_try) 2>&5
  6926. ac_status=$?
  6927. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6928. (exit $ac_status); }; }; then
  6929. ac_cv_c_volatile=yes
  6930. else
  6931. echo "$as_me: failed program was:" >&5
  6932. sed 's/^/| /' conftest.$ac_ext >&5
  6933. ac_cv_c_volatile=no
  6934. fi
  6935. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6936. fi
  6937. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  6938. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  6939. if test $ac_cv_c_volatile = no; then
  6940. cat >>confdefs.h <<\_ACEOF
  6941. #define volatile
  6942. _ACEOF
  6943. fi
  6944. if test $ac_cv_c_compiler_gnu = yes; then
  6945. echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  6946. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  6947. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  6948. echo $ECHO_N "(cached) $ECHO_C" >&6
  6949. else
  6950. ac_pattern="Autoconf.*'x'"
  6951. cat >conftest.$ac_ext <<_ACEOF
  6952. /* confdefs.h. */
  6953. _ACEOF
  6954. cat confdefs.h >>conftest.$ac_ext
  6955. cat >>conftest.$ac_ext <<_ACEOF
  6956. /* end confdefs.h. */
  6957. #include <sgtty.h>
  6958. Autoconf TIOCGETP
  6959. _ACEOF
  6960. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6961. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  6962. ac_cv_prog_gcc_traditional=yes
  6963. else
  6964. ac_cv_prog_gcc_traditional=no
  6965. fi
  6966. rm -f conftest*
  6967. if test $ac_cv_prog_gcc_traditional = no; then
  6968. cat >conftest.$ac_ext <<_ACEOF
  6969. /* confdefs.h. */
  6970. _ACEOF
  6971. cat confdefs.h >>conftest.$ac_ext
  6972. cat >>conftest.$ac_ext <<_ACEOF
  6973. /* end confdefs.h. */
  6974. #include <termio.h>
  6975. Autoconf TCGETA
  6976. _ACEOF
  6977. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6978. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  6979. ac_cv_prog_gcc_traditional=yes
  6980. fi
  6981. rm -f conftest*
  6982. fi
  6983. fi
  6984. echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  6985. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  6986. if test $ac_cv_prog_gcc_traditional = yes; then
  6987. CC="$CC -traditional"
  6988. fi
  6989. fi
  6990. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  6991. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  6992. if test "${ac_cv_struct_tm+set}" = set; then
  6993. echo $ECHO_N "(cached) $ECHO_C" >&6
  6994. else
  6995. cat >conftest.$ac_ext <<_ACEOF
  6996. /* confdefs.h. */
  6997. _ACEOF
  6998. cat confdefs.h >>conftest.$ac_ext
  6999. cat >>conftest.$ac_ext <<_ACEOF
  7000. /* end confdefs.h. */
  7001. #include <sys/types.h>
  7002. #include <time.h>
  7003. int
  7004. main ()
  7005. {
  7006. struct tm *tp; tp->tm_sec;
  7007. ;
  7008. return 0;
  7009. }
  7010. _ACEOF
  7011. rm -f conftest.$ac_objext
  7012. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7013. (eval $ac_compile) 2>conftest.er1
  7014. ac_status=$?
  7015. grep -v '^ *+' conftest.er1 >conftest.err
  7016. rm -f conftest.er1
  7017. cat conftest.err >&5
  7018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7019. (exit $ac_status); } &&
  7020. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7021. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7022. (eval $ac_try) 2>&5
  7023. ac_status=$?
  7024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7025. (exit $ac_status); }; } &&
  7026. { ac_try='test -s conftest.$ac_objext'
  7027. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7028. (eval $ac_try) 2>&5
  7029. ac_status=$?
  7030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7031. (exit $ac_status); }; }; then
  7032. ac_cv_struct_tm=time.h
  7033. else
  7034. echo "$as_me: failed program was:" >&5
  7035. sed 's/^/| /' conftest.$ac_ext >&5
  7036. ac_cv_struct_tm=sys/time.h
  7037. fi
  7038. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7039. fi
  7040. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7041. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7042. if test $ac_cv_struct_tm = sys/time.h; then
  7043. cat >>confdefs.h <<\_ACEOF
  7044. #define TM_IN_SYS_TIME 1
  7045. _ACEOF
  7046. fi
  7047. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  7048. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  7049. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  7050. echo $ECHO_N "(cached) $ECHO_C" >&6
  7051. else
  7052. cat >conftest.$ac_ext <<_ACEOF
  7053. /* confdefs.h. */
  7054. _ACEOF
  7055. cat confdefs.h >>conftest.$ac_ext
  7056. cat >>conftest.$ac_ext <<_ACEOF
  7057. /* end confdefs.h. */
  7058. #include <sys/types.h>
  7059. #include <$ac_cv_struct_tm>
  7060. int
  7061. main ()
  7062. {
  7063. static struct tm ac_aggr;
  7064. if (ac_aggr.tm_zone)
  7065. return 0;
  7066. ;
  7067. return 0;
  7068. }
  7069. _ACEOF
  7070. rm -f conftest.$ac_objext
  7071. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7072. (eval $ac_compile) 2>conftest.er1
  7073. ac_status=$?
  7074. grep -v '^ *+' conftest.er1 >conftest.err
  7075. rm -f conftest.er1
  7076. cat conftest.err >&5
  7077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7078. (exit $ac_status); } &&
  7079. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7080. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7081. (eval $ac_try) 2>&5
  7082. ac_status=$?
  7083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7084. (exit $ac_status); }; } &&
  7085. { ac_try='test -s conftest.$ac_objext'
  7086. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7087. (eval $ac_try) 2>&5
  7088. ac_status=$?
  7089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7090. (exit $ac_status); }; }; then
  7091. ac_cv_member_struct_tm_tm_zone=yes
  7092. else
  7093. echo "$as_me: failed program was:" >&5
  7094. sed 's/^/| /' conftest.$ac_ext >&5
  7095. cat >conftest.$ac_ext <<_ACEOF
  7096. /* confdefs.h. */
  7097. _ACEOF
  7098. cat confdefs.h >>conftest.$ac_ext
  7099. cat >>conftest.$ac_ext <<_ACEOF
  7100. /* end confdefs.h. */
  7101. #include <sys/types.h>
  7102. #include <$ac_cv_struct_tm>
  7103. int
  7104. main ()
  7105. {
  7106. static struct tm ac_aggr;
  7107. if (sizeof ac_aggr.tm_zone)
  7108. return 0;
  7109. ;
  7110. return 0;
  7111. }
  7112. _ACEOF
  7113. rm -f conftest.$ac_objext
  7114. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7115. (eval $ac_compile) 2>conftest.er1
  7116. ac_status=$?
  7117. grep -v '^ *+' conftest.er1 >conftest.err
  7118. rm -f conftest.er1
  7119. cat conftest.err >&5
  7120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7121. (exit $ac_status); } &&
  7122. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7123. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7124. (eval $ac_try) 2>&5
  7125. ac_status=$?
  7126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7127. (exit $ac_status); }; } &&
  7128. { ac_try='test -s conftest.$ac_objext'
  7129. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7130. (eval $ac_try) 2>&5
  7131. ac_status=$?
  7132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7133. (exit $ac_status); }; }; then
  7134. ac_cv_member_struct_tm_tm_zone=yes
  7135. else
  7136. echo "$as_me: failed program was:" >&5
  7137. sed 's/^/| /' conftest.$ac_ext >&5
  7138. ac_cv_member_struct_tm_tm_zone=no
  7139. fi
  7140. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7141. fi
  7142. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7143. fi
  7144. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  7145. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  7146. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  7147. cat >>confdefs.h <<_ACEOF
  7148. #define HAVE_STRUCT_TM_TM_ZONE 1
  7149. _ACEOF
  7150. fi
  7151. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  7152. cat >>confdefs.h <<\_ACEOF
  7153. #define HAVE_TM_ZONE 1
  7154. _ACEOF
  7155. else
  7156. echo "$as_me:$LINENO: checking for tzname" >&5
  7157. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  7158. if test "${ac_cv_var_tzname+set}" = set; then
  7159. echo $ECHO_N "(cached) $ECHO_C" >&6
  7160. else
  7161. cat >conftest.$ac_ext <<_ACEOF
  7162. /* confdefs.h. */
  7163. _ACEOF
  7164. cat confdefs.h >>conftest.$ac_ext
  7165. cat >>conftest.$ac_ext <<_ACEOF
  7166. /* end confdefs.h. */
  7167. #include <time.h>
  7168. #ifndef tzname /* For SGI. */
  7169. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  7170. #endif
  7171. int
  7172. main ()
  7173. {
  7174. atoi(*tzname);
  7175. ;
  7176. return 0;
  7177. }
  7178. _ACEOF
  7179. rm -f conftest.$ac_objext conftest$ac_exeext
  7180. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7181. (eval $ac_link) 2>conftest.er1
  7182. ac_status=$?
  7183. grep -v '^ *+' conftest.er1 >conftest.err
  7184. rm -f conftest.er1
  7185. cat conftest.err >&5
  7186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7187. (exit $ac_status); } &&
  7188. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7189. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7190. (eval $ac_try) 2>&5
  7191. ac_status=$?
  7192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7193. (exit $ac_status); }; } &&
  7194. { ac_try='test -s conftest$ac_exeext'
  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); }; }; then
  7200. ac_cv_var_tzname=yes
  7201. else
  7202. echo "$as_me: failed program was:" >&5
  7203. sed 's/^/| /' conftest.$ac_ext >&5
  7204. ac_cv_var_tzname=no
  7205. fi
  7206. rm -f conftest.err conftest.$ac_objext \
  7207. conftest$ac_exeext conftest.$ac_ext
  7208. fi
  7209. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  7210. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  7211. if test $ac_cv_var_tzname = yes; then
  7212. cat >>confdefs.h <<\_ACEOF
  7213. #define HAVE_TZNAME 1
  7214. _ACEOF
  7215. fi
  7216. fi
  7217. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7218. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7219. if test "${ac_cv_struct_tm+set}" = set; then
  7220. echo $ECHO_N "(cached) $ECHO_C" >&6
  7221. else
  7222. cat >conftest.$ac_ext <<_ACEOF
  7223. /* confdefs.h. */
  7224. _ACEOF
  7225. cat confdefs.h >>conftest.$ac_ext
  7226. cat >>conftest.$ac_ext <<_ACEOF
  7227. /* end confdefs.h. */
  7228. #include <sys/types.h>
  7229. #include <time.h>
  7230. int
  7231. main ()
  7232. {
  7233. struct tm *tp; tp->tm_sec;
  7234. ;
  7235. return 0;
  7236. }
  7237. _ACEOF
  7238. rm -f conftest.$ac_objext
  7239. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7240. (eval $ac_compile) 2>conftest.er1
  7241. ac_status=$?
  7242. grep -v '^ *+' conftest.er1 >conftest.err
  7243. rm -f conftest.er1
  7244. cat conftest.err >&5
  7245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7246. (exit $ac_status); } &&
  7247. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7248. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7249. (eval $ac_try) 2>&5
  7250. ac_status=$?
  7251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7252. (exit $ac_status); }; } &&
  7253. { ac_try='test -s conftest.$ac_objext'
  7254. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7255. (eval $ac_try) 2>&5
  7256. ac_status=$?
  7257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7258. (exit $ac_status); }; }; then
  7259. ac_cv_struct_tm=time.h
  7260. else
  7261. echo "$as_me: failed program was:" >&5
  7262. sed 's/^/| /' conftest.$ac_ext >&5
  7263. ac_cv_struct_tm=sys/time.h
  7264. fi
  7265. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7266. fi
  7267. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7268. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7269. if test $ac_cv_struct_tm = sys/time.h; then
  7270. cat >>confdefs.h <<\_ACEOF
  7271. #define TM_IN_SYS_TIME 1
  7272. _ACEOF
  7273. fi
  7274. #checkpoint
  7275. cat >confcache <<\_ACEOF
  7276. # This file is a shell script that caches the results of configure
  7277. # tests run on this system so they can be shared between configure
  7278. # scripts and configure runs, see configure's option --config-cache.
  7279. # It is not useful on other systems. If it contains results you don't
  7280. # want to keep, you may remove or edit it.
  7281. #
  7282. # config.status only pays attention to the cache file if you give it
  7283. # the --recheck option to rerun configure.
  7284. #
  7285. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7286. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7287. # following values.
  7288. _ACEOF
  7289. # The following way of writing the cache mishandles newlines in values,
  7290. # but we know of no workaround that is simple, portable, and efficient.
  7291. # So, don't put newlines in cache variables' values.
  7292. # Ultrix sh set writes to stderr and can't be redirected directly,
  7293. # and sets the high bit in the cache file unless we assign to the vars.
  7294. {
  7295. (set) 2>&1 |
  7296. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7297. *ac_space=\ *)
  7298. # `set' does not quote correctly, so add quotes (double-quote
  7299. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7300. sed -n \
  7301. "s/'/'\\\\''/g;
  7302. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7303. ;;
  7304. *)
  7305. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7306. sed -n \
  7307. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7308. ;;
  7309. esac;
  7310. } |
  7311. sed '
  7312. t clear
  7313. : clear
  7314. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7315. t end
  7316. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7317. : end' >>confcache
  7318. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7319. if test -w $cache_file; then
  7320. test "x$cache_file" != "x/dev/null"
  7321. cat confcache >$cache_file
  7322. else
  7323. echo "not updating unwritable cache $cache_file"
  7324. fi
  7325. fi
  7326. rm -f confcache
  7327. # Check for IPv6 support
  7328. #EGG_IPV6_SUPPORTED
  7329. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  7330. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  7331. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  7332. if test "${enable_ipv6+set}" = set; then
  7333. enableval="$enable_ipv6"
  7334. ac_cv_dipv6="yes"
  7335. echo "$as_me:$LINENO: result: yes" >&5
  7336. echo "${ECHO_T}yes" >&6
  7337. else
  7338. ac_cv_dipv6="no"
  7339. if test "$egg_cv_ipv6_supported" = "no"; then
  7340. ac_cv_dipv6="no"
  7341. fi
  7342. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  7343. echo "${ECHO_T}$ac_cv_dipv6" >&6
  7344. fi;
  7345. if test "$ac_cv_dipv6" = "no"; then
  7346. cat >>confdefs.h <<\_ACEOF
  7347. #define USE_IPV6 1
  7348. _ACEOF
  7349. fi
  7350. echo "$as_me:$LINENO: checking for socklen_t" >&5
  7351. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  7352. if test "${egg_cv_socklen_t+set}" = set; then
  7353. echo $ECHO_N "(cached) $ECHO_C" >&6
  7354. else
  7355. if test "$cross_compiling" = yes; then
  7356. egg_cv_socklen_t=no
  7357. else
  7358. cat >conftest.$ac_ext <<_ACEOF
  7359. /* confdefs.h. */
  7360. _ACEOF
  7361. cat confdefs.h >>conftest.$ac_ext
  7362. cat >>conftest.$ac_ext <<_ACEOF
  7363. /* end confdefs.h. */
  7364. #include <unistd.h>
  7365. #include <sys/types.h>
  7366. #include <sys/socket.h>
  7367. #include <netinet/in.h>
  7368. #include <arpa/inet.h>
  7369. int main()
  7370. {
  7371. socklen_t test = sizeof(int);
  7372. return 0;
  7373. }
  7374. _ACEOF
  7375. rm -f conftest$ac_exeext
  7376. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7377. (eval $ac_link) 2>&5
  7378. ac_status=$?
  7379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7380. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7381. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7382. (eval $ac_try) 2>&5
  7383. ac_status=$?
  7384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7385. (exit $ac_status); }; }; then
  7386. egg_cv_socklen_t=yes
  7387. else
  7388. echo "$as_me: program exited with status $ac_status" >&5
  7389. echo "$as_me: failed program was:" >&5
  7390. sed 's/^/| /' conftest.$ac_ext >&5
  7391. ( exit $ac_status )
  7392. egg_cv_socklen_t=no
  7393. fi
  7394. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7395. fi
  7396. fi
  7397. if test "$egg_cv_socklen_t" = "yes"; then
  7398. cat >>confdefs.h <<\_ACEOF
  7399. #define HAVE_SOCKLEN_T 1
  7400. _ACEOF
  7401. echo "$as_me:$LINENO: result: yes" >&5
  7402. echo "${ECHO_T}yes" >&6
  7403. else
  7404. echo "$as_me:$LINENO: result: no" >&5
  7405. echo "${ECHO_T}no" >&6
  7406. fi
  7407. # Checks for library functions
  7408. #checkpoint
  7409. cat >confcache <<\_ACEOF
  7410. # This file is a shell script that caches the results of configure
  7411. # tests run on this system so they can be shared between configure
  7412. # scripts and configure runs, see configure's option --config-cache.
  7413. # It is not useful on other systems. If it contains results you don't
  7414. # want to keep, you may remove or edit it.
  7415. #
  7416. # config.status only pays attention to the cache file if you give it
  7417. # the --recheck option to rerun configure.
  7418. #
  7419. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7420. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7421. # following values.
  7422. _ACEOF
  7423. # The following way of writing the cache mishandles newlines in values,
  7424. # but we know of no workaround that is simple, portable, and efficient.
  7425. # So, don't put newlines in cache variables' values.
  7426. # Ultrix sh set writes to stderr and can't be redirected directly,
  7427. # and sets the high bit in the cache file unless we assign to the vars.
  7428. {
  7429. (set) 2>&1 |
  7430. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7431. *ac_space=\ *)
  7432. # `set' does not quote correctly, so add quotes (double-quote
  7433. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7434. sed -n \
  7435. "s/'/'\\\\''/g;
  7436. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7437. ;;
  7438. *)
  7439. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7440. sed -n \
  7441. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7442. ;;
  7443. esac;
  7444. } |
  7445. sed '
  7446. t clear
  7447. : clear
  7448. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7449. t end
  7450. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7451. : end' >>confcache
  7452. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7453. if test -w $cache_file; then
  7454. test "x$cache_file" != "x/dev/null"
  7455. cat confcache >$cache_file
  7456. else
  7457. echo "not updating unwritable cache $cache_file"
  7458. fi
  7459. fi
  7460. rm -f confcache
  7461. # Checks for library functions.
  7462. for ac_header in unistd.h vfork.h
  7463. do
  7464. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7465. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7466. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7467. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7468. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7469. echo $ECHO_N "(cached) $ECHO_C" >&6
  7470. fi
  7471. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7472. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7473. else
  7474. # Is the header compilable?
  7475. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7476. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7477. cat >conftest.$ac_ext <<_ACEOF
  7478. /* confdefs.h. */
  7479. _ACEOF
  7480. cat confdefs.h >>conftest.$ac_ext
  7481. cat >>conftest.$ac_ext <<_ACEOF
  7482. /* end confdefs.h. */
  7483. $ac_includes_default
  7484. #include <$ac_header>
  7485. _ACEOF
  7486. rm -f conftest.$ac_objext
  7487. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7488. (eval $ac_compile) 2>conftest.er1
  7489. ac_status=$?
  7490. grep -v '^ *+' conftest.er1 >conftest.err
  7491. rm -f conftest.er1
  7492. cat conftest.err >&5
  7493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7494. (exit $ac_status); } &&
  7495. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7496. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7497. (eval $ac_try) 2>&5
  7498. ac_status=$?
  7499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7500. (exit $ac_status); }; } &&
  7501. { ac_try='test -s conftest.$ac_objext'
  7502. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7503. (eval $ac_try) 2>&5
  7504. ac_status=$?
  7505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7506. (exit $ac_status); }; }; then
  7507. ac_header_compiler=yes
  7508. else
  7509. echo "$as_me: failed program was:" >&5
  7510. sed 's/^/| /' conftest.$ac_ext >&5
  7511. ac_header_compiler=no
  7512. fi
  7513. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7514. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7515. echo "${ECHO_T}$ac_header_compiler" >&6
  7516. # Is the header present?
  7517. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7518. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7519. cat >conftest.$ac_ext <<_ACEOF
  7520. /* confdefs.h. */
  7521. _ACEOF
  7522. cat confdefs.h >>conftest.$ac_ext
  7523. cat >>conftest.$ac_ext <<_ACEOF
  7524. /* end confdefs.h. */
  7525. #include <$ac_header>
  7526. _ACEOF
  7527. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7528. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7529. ac_status=$?
  7530. grep -v '^ *+' conftest.er1 >conftest.err
  7531. rm -f conftest.er1
  7532. cat conftest.err >&5
  7533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7534. (exit $ac_status); } >/dev/null; then
  7535. if test -s conftest.err; then
  7536. ac_cpp_err=$ac_c_preproc_warn_flag
  7537. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7538. else
  7539. ac_cpp_err=
  7540. fi
  7541. else
  7542. ac_cpp_err=yes
  7543. fi
  7544. if test -z "$ac_cpp_err"; then
  7545. ac_header_preproc=yes
  7546. else
  7547. echo "$as_me: failed program was:" >&5
  7548. sed 's/^/| /' conftest.$ac_ext >&5
  7549. ac_header_preproc=no
  7550. fi
  7551. rm -f conftest.err conftest.$ac_ext
  7552. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7553. echo "${ECHO_T}$ac_header_preproc" >&6
  7554. # So? What about this header?
  7555. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7556. yes:no: )
  7557. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7558. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7559. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7560. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7561. ac_header_preproc=yes
  7562. ;;
  7563. no:yes:* )
  7564. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7565. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7566. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7567. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7568. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7569. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7570. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7571. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7572. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7573. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7574. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7575. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7576. (
  7577. cat <<\_ASBOX
  7578. ## ------------------------------------------ ##
  7579. ## Report this to the AC_PACKAGE_NAME lists. ##
  7580. ## ------------------------------------------ ##
  7581. _ASBOX
  7582. ) |
  7583. sed "s/^/$as_me: WARNING: /" >&2
  7584. ;;
  7585. esac
  7586. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7587. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7588. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7589. echo $ECHO_N "(cached) $ECHO_C" >&6
  7590. else
  7591. eval "$as_ac_Header=\$ac_header_preproc"
  7592. fi
  7593. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7594. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7595. fi
  7596. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7597. cat >>confdefs.h <<_ACEOF
  7598. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7599. _ACEOF
  7600. fi
  7601. done
  7602. for ac_func in fork vfork
  7603. do
  7604. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7605. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7606. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7607. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7608. echo $ECHO_N "(cached) $ECHO_C" >&6
  7609. else
  7610. cat >conftest.$ac_ext <<_ACEOF
  7611. /* confdefs.h. */
  7612. _ACEOF
  7613. cat confdefs.h >>conftest.$ac_ext
  7614. cat >>conftest.$ac_ext <<_ACEOF
  7615. /* end confdefs.h. */
  7616. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7617. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7618. #define $ac_func innocuous_$ac_func
  7619. /* System header to define __stub macros and hopefully few prototypes,
  7620. which can conflict with char $ac_func (); below.
  7621. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7622. <limits.h> exists even on freestanding compilers. */
  7623. #ifdef __STDC__
  7624. # include <limits.h>
  7625. #else
  7626. # include <assert.h>
  7627. #endif
  7628. #undef $ac_func
  7629. /* Override any gcc2 internal prototype to avoid an error. */
  7630. #ifdef __cplusplus
  7631. extern "C"
  7632. {
  7633. #endif
  7634. /* We use char because int might match the return type of a gcc2
  7635. builtin and then its argument prototype would still apply. */
  7636. char $ac_func ();
  7637. /* The GNU C library defines this for functions which it implements
  7638. to always fail with ENOSYS. Some functions are actually named
  7639. something starting with __ and the normal name is an alias. */
  7640. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7641. choke me
  7642. #else
  7643. char (*f) () = $ac_func;
  7644. #endif
  7645. #ifdef __cplusplus
  7646. }
  7647. #endif
  7648. int
  7649. main ()
  7650. {
  7651. return f != $ac_func;
  7652. ;
  7653. return 0;
  7654. }
  7655. _ACEOF
  7656. rm -f conftest.$ac_objext conftest$ac_exeext
  7657. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7658. (eval $ac_link) 2>conftest.er1
  7659. ac_status=$?
  7660. grep -v '^ *+' conftest.er1 >conftest.err
  7661. rm -f conftest.er1
  7662. cat conftest.err >&5
  7663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7664. (exit $ac_status); } &&
  7665. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7666. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7667. (eval $ac_try) 2>&5
  7668. ac_status=$?
  7669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7670. (exit $ac_status); }; } &&
  7671. { ac_try='test -s conftest$ac_exeext'
  7672. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7673. (eval $ac_try) 2>&5
  7674. ac_status=$?
  7675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7676. (exit $ac_status); }; }; then
  7677. eval "$as_ac_var=yes"
  7678. else
  7679. echo "$as_me: failed program was:" >&5
  7680. sed 's/^/| /' conftest.$ac_ext >&5
  7681. eval "$as_ac_var=no"
  7682. fi
  7683. rm -f conftest.err conftest.$ac_objext \
  7684. conftest$ac_exeext conftest.$ac_ext
  7685. fi
  7686. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7687. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7688. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7689. cat >>confdefs.h <<_ACEOF
  7690. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7691. _ACEOF
  7692. fi
  7693. done
  7694. if test "x$ac_cv_func_fork" = xyes; then
  7695. echo "$as_me:$LINENO: checking for working fork" >&5
  7696. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  7697. if test "${ac_cv_func_fork_works+set}" = set; then
  7698. echo $ECHO_N "(cached) $ECHO_C" >&6
  7699. else
  7700. if test "$cross_compiling" = yes; then
  7701. ac_cv_func_fork_works=cross
  7702. else
  7703. cat >conftest.$ac_ext <<_ACEOF
  7704. /* By Ruediger Kuhlmann. */
  7705. #include <sys/types.h>
  7706. #if HAVE_UNISTD_H
  7707. # include <unistd.h>
  7708. #endif
  7709. /* Some systems only have a dummy stub for fork() */
  7710. int main ()
  7711. {
  7712. if (fork() < 0)
  7713. exit (1);
  7714. exit (0);
  7715. }
  7716. _ACEOF
  7717. rm -f conftest$ac_exeext
  7718. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7719. (eval $ac_link) 2>&5
  7720. ac_status=$?
  7721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7722. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7723. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7724. (eval $ac_try) 2>&5
  7725. ac_status=$?
  7726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7727. (exit $ac_status); }; }; then
  7728. ac_cv_func_fork_works=yes
  7729. else
  7730. echo "$as_me: program exited with status $ac_status" >&5
  7731. echo "$as_me: failed program was:" >&5
  7732. sed 's/^/| /' conftest.$ac_ext >&5
  7733. ( exit $ac_status )
  7734. ac_cv_func_fork_works=no
  7735. fi
  7736. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7737. fi
  7738. fi
  7739. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  7740. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  7741. else
  7742. ac_cv_func_fork_works=$ac_cv_func_fork
  7743. fi
  7744. if test "x$ac_cv_func_fork_works" = xcross; then
  7745. case $host in
  7746. *-*-amigaos* | *-*-msdosdjgpp*)
  7747. # Override, as these systems have only a dummy fork() stub
  7748. ac_cv_func_fork_works=no
  7749. ;;
  7750. *)
  7751. ac_cv_func_fork_works=yes
  7752. ;;
  7753. esac
  7754. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  7755. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  7756. fi
  7757. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7758. if test "x$ac_cv_func_vfork" = xyes; then
  7759. echo "$as_me:$LINENO: checking for working vfork" >&5
  7760. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  7761. if test "${ac_cv_func_vfork_works+set}" = set; then
  7762. echo $ECHO_N "(cached) $ECHO_C" >&6
  7763. else
  7764. if test "$cross_compiling" = yes; then
  7765. ac_cv_func_vfork_works=cross
  7766. else
  7767. cat >conftest.$ac_ext <<_ACEOF
  7768. /* confdefs.h. */
  7769. _ACEOF
  7770. cat confdefs.h >>conftest.$ac_ext
  7771. cat >>conftest.$ac_ext <<_ACEOF
  7772. /* end confdefs.h. */
  7773. /* Thanks to Paul Eggert for this test. */
  7774. #include <stdio.h>
  7775. #include <stdlib.h>
  7776. #include <sys/types.h>
  7777. #include <sys/stat.h>
  7778. #include <sys/wait.h>
  7779. #if HAVE_UNISTD_H
  7780. # include <unistd.h>
  7781. #endif
  7782. #if HAVE_VFORK_H
  7783. # include <vfork.h>
  7784. #endif
  7785. /* On some sparc systems, changes by the child to local and incoming
  7786. argument registers are propagated back to the parent. The compiler
  7787. is told about this with #include <vfork.h>, but some compilers
  7788. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  7789. static variable whose address is put into a register that is
  7790. clobbered by the vfork. */
  7791. static void
  7792. #ifdef __cplusplus
  7793. sparc_address_test (int arg)
  7794. # else
  7795. sparc_address_test (arg) int arg;
  7796. #endif
  7797. {
  7798. static pid_t child;
  7799. if (!child) {
  7800. child = vfork ();
  7801. if (child < 0) {
  7802. perror ("vfork");
  7803. _exit(2);
  7804. }
  7805. if (!child) {
  7806. arg = getpid();
  7807. write(-1, "", 0);
  7808. _exit (arg);
  7809. }
  7810. }
  7811. }
  7812. int
  7813. main ()
  7814. {
  7815. pid_t parent = getpid ();
  7816. pid_t child;
  7817. sparc_address_test (0);
  7818. child = vfork ();
  7819. if (child == 0) {
  7820. /* Here is another test for sparc vfork register problems. This
  7821. test uses lots of local variables, at least as many local
  7822. variables as main has allocated so far including compiler
  7823. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  7824. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  7825. reuse the register of parent for one of the local variables,
  7826. since it will think that parent can't possibly be used any more
  7827. in this routine. Assigning to the local variable will thus
  7828. munge parent in the parent process. */
  7829. pid_t
  7830. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  7831. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  7832. /* Convince the compiler that p..p7 are live; otherwise, it might
  7833. use the same hardware register for all 8 local variables. */
  7834. if (p != p1 || p != p2 || p != p3 || p != p4
  7835. || p != p5 || p != p6 || p != p7)
  7836. _exit(1);
  7837. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  7838. from child file descriptors. If the child closes a descriptor
  7839. before it execs or exits, this munges the parent's descriptor
  7840. as well. Test for this by closing stdout in the child. */
  7841. _exit(close(fileno(stdout)) != 0);
  7842. } else {
  7843. int status;
  7844. struct stat st;
  7845. while (wait(&status) != child)
  7846. ;
  7847. exit(
  7848. /* Was there some problem with vforking? */
  7849. child < 0
  7850. /* Did the child fail? (This shouldn't happen.) */
  7851. || status
  7852. /* Did the vfork/compiler bug occur? */
  7853. || parent != getpid()
  7854. /* Did the file descriptor bug occur? */
  7855. || fstat(fileno(stdout), &st) != 0
  7856. );
  7857. }
  7858. }
  7859. _ACEOF
  7860. rm -f conftest$ac_exeext
  7861. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7862. (eval $ac_link) 2>&5
  7863. ac_status=$?
  7864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7865. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7866. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7867. (eval $ac_try) 2>&5
  7868. ac_status=$?
  7869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7870. (exit $ac_status); }; }; then
  7871. ac_cv_func_vfork_works=yes
  7872. else
  7873. echo "$as_me: program exited with status $ac_status" >&5
  7874. echo "$as_me: failed program was:" >&5
  7875. sed 's/^/| /' conftest.$ac_ext >&5
  7876. ( exit $ac_status )
  7877. ac_cv_func_vfork_works=no
  7878. fi
  7879. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7880. fi
  7881. fi
  7882. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  7883. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  7884. fi;
  7885. if test "x$ac_cv_func_fork_works" = xcross; then
  7886. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7887. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  7888. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  7889. fi
  7890. if test "x$ac_cv_func_vfork_works" = xyes; then
  7891. cat >>confdefs.h <<\_ACEOF
  7892. #define HAVE_WORKING_VFORK 1
  7893. _ACEOF
  7894. else
  7895. cat >>confdefs.h <<\_ACEOF
  7896. #define vfork fork
  7897. _ACEOF
  7898. fi
  7899. if test "x$ac_cv_func_fork_works" = xyes; then
  7900. cat >>confdefs.h <<\_ACEOF
  7901. #define HAVE_WORKING_FORK 1
  7902. _ACEOF
  7903. fi
  7904. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  7905. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  7906. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  7907. echo $ECHO_N "(cached) $ECHO_C" >&6
  7908. else
  7909. rm -f conftest.sym conftest.file
  7910. echo >conftest.file
  7911. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  7912. if test "$cross_compiling" = yes; then
  7913. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7914. else
  7915. cat >conftest.$ac_ext <<_ACEOF
  7916. /* confdefs.h. */
  7917. _ACEOF
  7918. cat confdefs.h >>conftest.$ac_ext
  7919. cat >>conftest.$ac_ext <<_ACEOF
  7920. /* end confdefs.h. */
  7921. $ac_includes_default
  7922. int
  7923. main ()
  7924. {
  7925. struct stat sbuf;
  7926. /* Linux will dereference the symlink and fail.
  7927. That is better in the sense that it means we will not
  7928. have to compile and use the lstat wrapper. */
  7929. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  7930. ;
  7931. return 0;
  7932. }
  7933. _ACEOF
  7934. rm -f conftest$ac_exeext
  7935. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7936. (eval $ac_link) 2>&5
  7937. ac_status=$?
  7938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7939. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7940. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7941. (eval $ac_try) 2>&5
  7942. ac_status=$?
  7943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7944. (exit $ac_status); }; }; then
  7945. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  7946. else
  7947. echo "$as_me: program exited with status $ac_status" >&5
  7948. echo "$as_me: failed program was:" >&5
  7949. sed 's/^/| /' conftest.$ac_ext >&5
  7950. ( exit $ac_status )
  7951. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7952. fi
  7953. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7954. fi
  7955. else
  7956. # If the `ln -s' command failed, then we probably don't even
  7957. # have an lstat function.
  7958. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7959. fi
  7960. rm -f conftest.sym conftest.file
  7961. fi
  7962. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  7963. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  7964. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  7965. cat >>confdefs.h <<_ACEOF
  7966. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  7967. _ACEOF
  7968. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  7969. case $LIBOBJS in
  7970. "lstat.$ac_objext" | \
  7971. *" lstat.$ac_objext" | \
  7972. "lstat.$ac_objext "* | \
  7973. *" lstat.$ac_objext "* ) ;;
  7974. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  7975. esac
  7976. fi
  7977. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  7978. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  7979. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  7980. echo $ECHO_N "(cached) $ECHO_C" >&6
  7981. else
  7982. if test "$cross_compiling" = yes; then
  7983. ac_cv_func_lstat_empty_string_bug=yes
  7984. else
  7985. cat >conftest.$ac_ext <<_ACEOF
  7986. /* confdefs.h. */
  7987. _ACEOF
  7988. cat confdefs.h >>conftest.$ac_ext
  7989. cat >>conftest.$ac_ext <<_ACEOF
  7990. /* end confdefs.h. */
  7991. $ac_includes_default
  7992. int
  7993. main ()
  7994. {
  7995. struct stat sbuf;
  7996. exit (lstat ("", &sbuf) ? 1 : 0);
  7997. ;
  7998. return 0;
  7999. }
  8000. _ACEOF
  8001. rm -f conftest$ac_exeext
  8002. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8003. (eval $ac_link) 2>&5
  8004. ac_status=$?
  8005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8006. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8007. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8008. (eval $ac_try) 2>&5
  8009. ac_status=$?
  8010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8011. (exit $ac_status); }; }; then
  8012. ac_cv_func_lstat_empty_string_bug=yes
  8013. else
  8014. echo "$as_me: program exited with status $ac_status" >&5
  8015. echo "$as_me: failed program was:" >&5
  8016. sed 's/^/| /' conftest.$ac_ext >&5
  8017. ( exit $ac_status )
  8018. ac_cv_func_lstat_empty_string_bug=no
  8019. fi
  8020. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8021. fi
  8022. fi
  8023. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  8024. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  8025. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  8026. case $LIBOBJS in
  8027. "lstat.$ac_objext" | \
  8028. *" lstat.$ac_objext" | \
  8029. "lstat.$ac_objext "* | \
  8030. *" lstat.$ac_objext "* ) ;;
  8031. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8032. esac
  8033. cat >>confdefs.h <<_ACEOF
  8034. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  8035. _ACEOF
  8036. fi
  8037. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8038. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8039. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8040. echo $ECHO_N "(cached) $ECHO_C" >&6
  8041. else
  8042. rm -f conftest.sym conftest.file
  8043. echo >conftest.file
  8044. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8045. if test "$cross_compiling" = yes; then
  8046. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8047. else
  8048. cat >conftest.$ac_ext <<_ACEOF
  8049. /* confdefs.h. */
  8050. _ACEOF
  8051. cat confdefs.h >>conftest.$ac_ext
  8052. cat >>conftest.$ac_ext <<_ACEOF
  8053. /* end confdefs.h. */
  8054. $ac_includes_default
  8055. int
  8056. main ()
  8057. {
  8058. struct stat sbuf;
  8059. /* Linux will dereference the symlink and fail.
  8060. That is better in the sense that it means we will not
  8061. have to compile and use the lstat wrapper. */
  8062. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8063. ;
  8064. return 0;
  8065. }
  8066. _ACEOF
  8067. rm -f conftest$ac_exeext
  8068. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8069. (eval $ac_link) 2>&5
  8070. ac_status=$?
  8071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8072. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8073. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8074. (eval $ac_try) 2>&5
  8075. ac_status=$?
  8076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8077. (exit $ac_status); }; }; then
  8078. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8079. else
  8080. echo "$as_me: program exited with status $ac_status" >&5
  8081. echo "$as_me: failed program was:" >&5
  8082. sed 's/^/| /' conftest.$ac_ext >&5
  8083. ( exit $ac_status )
  8084. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8085. fi
  8086. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8087. fi
  8088. else
  8089. # If the `ln -s' command failed, then we probably don't even
  8090. # have an lstat function.
  8091. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8092. fi
  8093. rm -f conftest.sym conftest.file
  8094. fi
  8095. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8096. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8097. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8098. cat >>confdefs.h <<_ACEOF
  8099. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8100. _ACEOF
  8101. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8102. case $LIBOBJS in
  8103. "lstat.$ac_objext" | \
  8104. *" lstat.$ac_objext" | \
  8105. "lstat.$ac_objext "* | \
  8106. *" lstat.$ac_objext "* ) ;;
  8107. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8108. esac
  8109. fi
  8110. for ac_header in stdlib.h
  8111. do
  8112. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8113. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8114. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8115. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8116. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8117. echo $ECHO_N "(cached) $ECHO_C" >&6
  8118. fi
  8119. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8120. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8121. else
  8122. # Is the header compilable?
  8123. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8124. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8125. cat >conftest.$ac_ext <<_ACEOF
  8126. /* confdefs.h. */
  8127. _ACEOF
  8128. cat confdefs.h >>conftest.$ac_ext
  8129. cat >>conftest.$ac_ext <<_ACEOF
  8130. /* end confdefs.h. */
  8131. $ac_includes_default
  8132. #include <$ac_header>
  8133. _ACEOF
  8134. rm -f conftest.$ac_objext
  8135. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8136. (eval $ac_compile) 2>conftest.er1
  8137. ac_status=$?
  8138. grep -v '^ *+' conftest.er1 >conftest.err
  8139. rm -f conftest.er1
  8140. cat conftest.err >&5
  8141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8142. (exit $ac_status); } &&
  8143. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8144. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8145. (eval $ac_try) 2>&5
  8146. ac_status=$?
  8147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8148. (exit $ac_status); }; } &&
  8149. { ac_try='test -s conftest.$ac_objext'
  8150. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8151. (eval $ac_try) 2>&5
  8152. ac_status=$?
  8153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8154. (exit $ac_status); }; }; then
  8155. ac_header_compiler=yes
  8156. else
  8157. echo "$as_me: failed program was:" >&5
  8158. sed 's/^/| /' conftest.$ac_ext >&5
  8159. ac_header_compiler=no
  8160. fi
  8161. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8162. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8163. echo "${ECHO_T}$ac_header_compiler" >&6
  8164. # Is the header present?
  8165. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8166. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8167. cat >conftest.$ac_ext <<_ACEOF
  8168. /* confdefs.h. */
  8169. _ACEOF
  8170. cat confdefs.h >>conftest.$ac_ext
  8171. cat >>conftest.$ac_ext <<_ACEOF
  8172. /* end confdefs.h. */
  8173. #include <$ac_header>
  8174. _ACEOF
  8175. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8176. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8177. ac_status=$?
  8178. grep -v '^ *+' conftest.er1 >conftest.err
  8179. rm -f conftest.er1
  8180. cat conftest.err >&5
  8181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8182. (exit $ac_status); } >/dev/null; then
  8183. if test -s conftest.err; then
  8184. ac_cpp_err=$ac_c_preproc_warn_flag
  8185. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8186. else
  8187. ac_cpp_err=
  8188. fi
  8189. else
  8190. ac_cpp_err=yes
  8191. fi
  8192. if test -z "$ac_cpp_err"; then
  8193. ac_header_preproc=yes
  8194. else
  8195. echo "$as_me: failed program was:" >&5
  8196. sed 's/^/| /' conftest.$ac_ext >&5
  8197. ac_header_preproc=no
  8198. fi
  8199. rm -f conftest.err conftest.$ac_ext
  8200. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8201. echo "${ECHO_T}$ac_header_preproc" >&6
  8202. # So? What about this header?
  8203. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8204. yes:no: )
  8205. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8206. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8207. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8208. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8209. ac_header_preproc=yes
  8210. ;;
  8211. no:yes:* )
  8212. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8213. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8214. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8215. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8216. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8217. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8218. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8219. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8220. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8221. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8222. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8223. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8224. (
  8225. cat <<\_ASBOX
  8226. ## ------------------------------------------ ##
  8227. ## Report this to the AC_PACKAGE_NAME lists. ##
  8228. ## ------------------------------------------ ##
  8229. _ASBOX
  8230. ) |
  8231. sed "s/^/$as_me: WARNING: /" >&2
  8232. ;;
  8233. esac
  8234. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8235. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8236. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8237. echo $ECHO_N "(cached) $ECHO_C" >&6
  8238. else
  8239. eval "$as_ac_Header=\$ac_header_preproc"
  8240. fi
  8241. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8242. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8243. fi
  8244. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8245. cat >>confdefs.h <<_ACEOF
  8246. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8247. _ACEOF
  8248. fi
  8249. done
  8250. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8251. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  8252. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8253. echo $ECHO_N "(cached) $ECHO_C" >&6
  8254. else
  8255. if test "$cross_compiling" = yes; then
  8256. ac_cv_func_malloc_0_nonnull=no
  8257. else
  8258. cat >conftest.$ac_ext <<_ACEOF
  8259. /* confdefs.h. */
  8260. _ACEOF
  8261. cat confdefs.h >>conftest.$ac_ext
  8262. cat >>conftest.$ac_ext <<_ACEOF
  8263. /* end confdefs.h. */
  8264. #if STDC_HEADERS || HAVE_STDLIB_H
  8265. # include <stdlib.h>
  8266. #else
  8267. char *malloc ();
  8268. #endif
  8269. int
  8270. main ()
  8271. {
  8272. exit (malloc (0) ? 0 : 1);
  8273. ;
  8274. return 0;
  8275. }
  8276. _ACEOF
  8277. rm -f conftest$ac_exeext
  8278. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8279. (eval $ac_link) 2>&5
  8280. ac_status=$?
  8281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8282. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8283. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8284. (eval $ac_try) 2>&5
  8285. ac_status=$?
  8286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8287. (exit $ac_status); }; }; then
  8288. ac_cv_func_malloc_0_nonnull=yes
  8289. else
  8290. echo "$as_me: program exited with status $ac_status" >&5
  8291. echo "$as_me: failed program was:" >&5
  8292. sed 's/^/| /' conftest.$ac_ext >&5
  8293. ( exit $ac_status )
  8294. ac_cv_func_malloc_0_nonnull=no
  8295. fi
  8296. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8297. fi
  8298. fi
  8299. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  8300. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  8301. if test $ac_cv_func_malloc_0_nonnull = yes; then
  8302. cat >>confdefs.h <<\_ACEOF
  8303. #define HAVE_MALLOC 1
  8304. _ACEOF
  8305. else
  8306. cat >>confdefs.h <<\_ACEOF
  8307. #define HAVE_MALLOC 0
  8308. _ACEOF
  8309. case $LIBOBJS in
  8310. "malloc.$ac_objext" | \
  8311. *" malloc.$ac_objext" | \
  8312. "malloc.$ac_objext "* | \
  8313. *" malloc.$ac_objext "* ) ;;
  8314. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  8315. esac
  8316. cat >>confdefs.h <<\_ACEOF
  8317. #define malloc rpl_malloc
  8318. _ACEOF
  8319. fi
  8320. for ac_header in stdlib.h sys/time.h unistd.h
  8321. do
  8322. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8323. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8324. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8325. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8326. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8327. echo $ECHO_N "(cached) $ECHO_C" >&6
  8328. fi
  8329. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8330. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8331. else
  8332. # Is the header compilable?
  8333. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8334. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8335. cat >conftest.$ac_ext <<_ACEOF
  8336. /* confdefs.h. */
  8337. _ACEOF
  8338. cat confdefs.h >>conftest.$ac_ext
  8339. cat >>conftest.$ac_ext <<_ACEOF
  8340. /* end confdefs.h. */
  8341. $ac_includes_default
  8342. #include <$ac_header>
  8343. _ACEOF
  8344. rm -f conftest.$ac_objext
  8345. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8346. (eval $ac_compile) 2>conftest.er1
  8347. ac_status=$?
  8348. grep -v '^ *+' conftest.er1 >conftest.err
  8349. rm -f conftest.er1
  8350. cat conftest.err >&5
  8351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8352. (exit $ac_status); } &&
  8353. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8354. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8355. (eval $ac_try) 2>&5
  8356. ac_status=$?
  8357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8358. (exit $ac_status); }; } &&
  8359. { ac_try='test -s conftest.$ac_objext'
  8360. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8361. (eval $ac_try) 2>&5
  8362. ac_status=$?
  8363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8364. (exit $ac_status); }; }; then
  8365. ac_header_compiler=yes
  8366. else
  8367. echo "$as_me: failed program was:" >&5
  8368. sed 's/^/| /' conftest.$ac_ext >&5
  8369. ac_header_compiler=no
  8370. fi
  8371. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8372. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8373. echo "${ECHO_T}$ac_header_compiler" >&6
  8374. # Is the header present?
  8375. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8376. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8377. cat >conftest.$ac_ext <<_ACEOF
  8378. /* confdefs.h. */
  8379. _ACEOF
  8380. cat confdefs.h >>conftest.$ac_ext
  8381. cat >>conftest.$ac_ext <<_ACEOF
  8382. /* end confdefs.h. */
  8383. #include <$ac_header>
  8384. _ACEOF
  8385. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8386. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8387. ac_status=$?
  8388. grep -v '^ *+' conftest.er1 >conftest.err
  8389. rm -f conftest.er1
  8390. cat conftest.err >&5
  8391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8392. (exit $ac_status); } >/dev/null; then
  8393. if test -s conftest.err; then
  8394. ac_cpp_err=$ac_c_preproc_warn_flag
  8395. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8396. else
  8397. ac_cpp_err=
  8398. fi
  8399. else
  8400. ac_cpp_err=yes
  8401. fi
  8402. if test -z "$ac_cpp_err"; then
  8403. ac_header_preproc=yes
  8404. else
  8405. echo "$as_me: failed program was:" >&5
  8406. sed 's/^/| /' conftest.$ac_ext >&5
  8407. ac_header_preproc=no
  8408. fi
  8409. rm -f conftest.err conftest.$ac_ext
  8410. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8411. echo "${ECHO_T}$ac_header_preproc" >&6
  8412. # So? What about this header?
  8413. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8414. yes:no: )
  8415. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8416. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8417. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8418. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8419. ac_header_preproc=yes
  8420. ;;
  8421. no:yes:* )
  8422. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8423. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8424. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8425. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8426. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8427. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8428. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8429. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8430. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8431. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8432. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8433. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8434. (
  8435. cat <<\_ASBOX
  8436. ## ------------------------------------------ ##
  8437. ## Report this to the AC_PACKAGE_NAME lists. ##
  8438. ## ------------------------------------------ ##
  8439. _ASBOX
  8440. ) |
  8441. sed "s/^/$as_me: WARNING: /" >&2
  8442. ;;
  8443. esac
  8444. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8445. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8446. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8447. echo $ECHO_N "(cached) $ECHO_C" >&6
  8448. else
  8449. eval "$as_ac_Header=\$ac_header_preproc"
  8450. fi
  8451. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8452. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8453. fi
  8454. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8455. cat >>confdefs.h <<_ACEOF
  8456. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8457. _ACEOF
  8458. fi
  8459. done
  8460. for ac_func in alarm
  8461. do
  8462. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8463. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8464. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8465. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8466. echo $ECHO_N "(cached) $ECHO_C" >&6
  8467. else
  8468. cat >conftest.$ac_ext <<_ACEOF
  8469. /* confdefs.h. */
  8470. _ACEOF
  8471. cat confdefs.h >>conftest.$ac_ext
  8472. cat >>conftest.$ac_ext <<_ACEOF
  8473. /* end confdefs.h. */
  8474. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8475. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8476. #define $ac_func innocuous_$ac_func
  8477. /* System header to define __stub macros and hopefully few prototypes,
  8478. which can conflict with char $ac_func (); below.
  8479. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8480. <limits.h> exists even on freestanding compilers. */
  8481. #ifdef __STDC__
  8482. # include <limits.h>
  8483. #else
  8484. # include <assert.h>
  8485. #endif
  8486. #undef $ac_func
  8487. /* Override any gcc2 internal prototype to avoid an error. */
  8488. #ifdef __cplusplus
  8489. extern "C"
  8490. {
  8491. #endif
  8492. /* We use char because int might match the return type of a gcc2
  8493. builtin and then its argument prototype would still apply. */
  8494. char $ac_func ();
  8495. /* The GNU C library defines this for functions which it implements
  8496. to always fail with ENOSYS. Some functions are actually named
  8497. something starting with __ and the normal name is an alias. */
  8498. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8499. choke me
  8500. #else
  8501. char (*f) () = $ac_func;
  8502. #endif
  8503. #ifdef __cplusplus
  8504. }
  8505. #endif
  8506. int
  8507. main ()
  8508. {
  8509. return f != $ac_func;
  8510. ;
  8511. return 0;
  8512. }
  8513. _ACEOF
  8514. rm -f conftest.$ac_objext conftest$ac_exeext
  8515. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8516. (eval $ac_link) 2>conftest.er1
  8517. ac_status=$?
  8518. grep -v '^ *+' conftest.er1 >conftest.err
  8519. rm -f conftest.er1
  8520. cat conftest.err >&5
  8521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8522. (exit $ac_status); } &&
  8523. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8524. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8525. (eval $ac_try) 2>&5
  8526. ac_status=$?
  8527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8528. (exit $ac_status); }; } &&
  8529. { ac_try='test -s conftest$ac_exeext'
  8530. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8531. (eval $ac_try) 2>&5
  8532. ac_status=$?
  8533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8534. (exit $ac_status); }; }; then
  8535. eval "$as_ac_var=yes"
  8536. else
  8537. echo "$as_me: failed program was:" >&5
  8538. sed 's/^/| /' conftest.$ac_ext >&5
  8539. eval "$as_ac_var=no"
  8540. fi
  8541. rm -f conftest.err conftest.$ac_objext \
  8542. conftest$ac_exeext conftest.$ac_ext
  8543. fi
  8544. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8545. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8546. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8547. cat >>confdefs.h <<_ACEOF
  8548. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8549. _ACEOF
  8550. fi
  8551. done
  8552. echo "$as_me:$LINENO: checking for working mktime" >&5
  8553. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  8554. if test "${ac_cv_func_working_mktime+set}" = set; then
  8555. echo $ECHO_N "(cached) $ECHO_C" >&6
  8556. else
  8557. if test "$cross_compiling" = yes; then
  8558. ac_cv_func_working_mktime=no
  8559. else
  8560. cat >conftest.$ac_ext <<_ACEOF
  8561. /* confdefs.h. */
  8562. _ACEOF
  8563. cat confdefs.h >>conftest.$ac_ext
  8564. cat >>conftest.$ac_ext <<_ACEOF
  8565. /* end confdefs.h. */
  8566. /* Test program from Paul Eggert and Tony Leneis. */
  8567. #if TIME_WITH_SYS_TIME
  8568. # include <sys/time.h>
  8569. # include <time.h>
  8570. #else
  8571. # if HAVE_SYS_TIME_H
  8572. # include <sys/time.h>
  8573. # else
  8574. # include <time.h>
  8575. # endif
  8576. #endif
  8577. #if HAVE_STDLIB_H
  8578. # include <stdlib.h>
  8579. #endif
  8580. #if HAVE_UNISTD_H
  8581. # include <unistd.h>
  8582. #endif
  8583. #if !HAVE_ALARM
  8584. # define alarm(X) /* empty */
  8585. #endif
  8586. /* Work around redefinition to rpl_putenv by other config tests. */
  8587. #undef putenv
  8588. static time_t time_t_max;
  8589. static time_t time_t_min;
  8590. /* Values we'll use to set the TZ environment variable. */
  8591. static char *tz_strings[] = {
  8592. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  8593. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  8594. };
  8595. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  8596. /* Fail if mktime fails to convert a date in the spring-forward gap.
  8597. Based on a problem report from Andreas Jaeger. */
  8598. static void
  8599. spring_forward_gap ()
  8600. {
  8601. /* glibc (up to about 1998-10-07) failed this test. */
  8602. struct tm tm;
  8603. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  8604. instead of "TZ=America/Vancouver" in order to detect the bug even
  8605. on systems that don't support the Olson extension, or don't have the
  8606. full zoneinfo tables installed. */
  8607. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  8608. tm.tm_year = 98;
  8609. tm.tm_mon = 3;
  8610. tm.tm_mday = 5;
  8611. tm.tm_hour = 2;
  8612. tm.tm_min = 0;
  8613. tm.tm_sec = 0;
  8614. tm.tm_isdst = -1;
  8615. if (mktime (&tm) == (time_t)-1)
  8616. exit (1);
  8617. }
  8618. static void
  8619. mktime_test1 (now)
  8620. time_t now;
  8621. {
  8622. struct tm *lt;
  8623. if ((lt = localtime (&now)) && mktime (lt) != now)
  8624. exit (1);
  8625. }
  8626. static void
  8627. mktime_test (now)
  8628. time_t now;
  8629. {
  8630. mktime_test1 (now);
  8631. mktime_test1 ((time_t) (time_t_max - now));
  8632. mktime_test1 ((time_t) (time_t_min + now));
  8633. }
  8634. static void
  8635. irix_6_4_bug ()
  8636. {
  8637. /* Based on code from Ariel Faigon. */
  8638. struct tm tm;
  8639. tm.tm_year = 96;
  8640. tm.tm_mon = 3;
  8641. tm.tm_mday = 0;
  8642. tm.tm_hour = 0;
  8643. tm.tm_min = 0;
  8644. tm.tm_sec = 0;
  8645. tm.tm_isdst = -1;
  8646. mktime (&tm);
  8647. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  8648. exit (1);
  8649. }
  8650. static void
  8651. bigtime_test (j)
  8652. int j;
  8653. {
  8654. struct tm tm;
  8655. time_t now;
  8656. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  8657. now = mktime (&tm);
  8658. if (now != (time_t) -1)
  8659. {
  8660. struct tm *lt = localtime (&now);
  8661. if (! (lt
  8662. && lt->tm_year == tm.tm_year
  8663. && lt->tm_mon == tm.tm_mon
  8664. && lt->tm_mday == tm.tm_mday
  8665. && lt->tm_hour == tm.tm_hour
  8666. && lt->tm_min == tm.tm_min
  8667. && lt->tm_sec == tm.tm_sec
  8668. && lt->tm_yday == tm.tm_yday
  8669. && lt->tm_wday == tm.tm_wday
  8670. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  8671. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  8672. exit (1);
  8673. }
  8674. }
  8675. int
  8676. main ()
  8677. {
  8678. time_t t, delta;
  8679. int i, j;
  8680. /* This test makes some buggy mktime implementations loop.
  8681. Give up after 60 seconds; a mktime slower than that
  8682. isn't worth using anyway. */
  8683. alarm (60);
  8684. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  8685. continue;
  8686. time_t_max--;
  8687. if ((time_t) -1 < 0)
  8688. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  8689. continue;
  8690. delta = time_t_max / 997; /* a suitable prime number */
  8691. for (i = 0; i < N_STRINGS; i++)
  8692. {
  8693. if (tz_strings[i])
  8694. putenv (tz_strings[i]);
  8695. for (t = 0; t <= time_t_max - delta; t += delta)
  8696. mktime_test (t);
  8697. mktime_test ((time_t) 1);
  8698. mktime_test ((time_t) (60 * 60));
  8699. mktime_test ((time_t) (60 * 60 * 24));
  8700. for (j = 1; 0 < j; j *= 2)
  8701. bigtime_test (j);
  8702. bigtime_test (j - 1);
  8703. }
  8704. irix_6_4_bug ();
  8705. spring_forward_gap ();
  8706. exit (0);
  8707. }
  8708. _ACEOF
  8709. rm -f conftest$ac_exeext
  8710. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8711. (eval $ac_link) 2>&5
  8712. ac_status=$?
  8713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8714. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8715. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8716. (eval $ac_try) 2>&5
  8717. ac_status=$?
  8718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8719. (exit $ac_status); }; }; then
  8720. ac_cv_func_working_mktime=yes
  8721. else
  8722. echo "$as_me: program exited with status $ac_status" >&5
  8723. echo "$as_me: failed program was:" >&5
  8724. sed 's/^/| /' conftest.$ac_ext >&5
  8725. ( exit $ac_status )
  8726. ac_cv_func_working_mktime=no
  8727. fi
  8728. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8729. fi
  8730. fi
  8731. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  8732. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  8733. if test $ac_cv_func_working_mktime = no; then
  8734. case $LIBOBJS in
  8735. "mktime.$ac_objext" | \
  8736. *" mktime.$ac_objext" | \
  8737. "mktime.$ac_objext "* | \
  8738. *" mktime.$ac_objext "* ) ;;
  8739. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  8740. esac
  8741. fi
  8742. for ac_header in stdlib.h unistd.h
  8743. do
  8744. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8745. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8746. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8747. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8748. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8749. echo $ECHO_N "(cached) $ECHO_C" >&6
  8750. fi
  8751. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8752. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8753. else
  8754. # Is the header compilable?
  8755. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8756. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8757. cat >conftest.$ac_ext <<_ACEOF
  8758. /* confdefs.h. */
  8759. _ACEOF
  8760. cat confdefs.h >>conftest.$ac_ext
  8761. cat >>conftest.$ac_ext <<_ACEOF
  8762. /* end confdefs.h. */
  8763. $ac_includes_default
  8764. #include <$ac_header>
  8765. _ACEOF
  8766. rm -f conftest.$ac_objext
  8767. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8768. (eval $ac_compile) 2>conftest.er1
  8769. ac_status=$?
  8770. grep -v '^ *+' conftest.er1 >conftest.err
  8771. rm -f conftest.er1
  8772. cat conftest.err >&5
  8773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8774. (exit $ac_status); } &&
  8775. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8776. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8777. (eval $ac_try) 2>&5
  8778. ac_status=$?
  8779. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8780. (exit $ac_status); }; } &&
  8781. { ac_try='test -s conftest.$ac_objext'
  8782. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8783. (eval $ac_try) 2>&5
  8784. ac_status=$?
  8785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8786. (exit $ac_status); }; }; then
  8787. ac_header_compiler=yes
  8788. else
  8789. echo "$as_me: failed program was:" >&5
  8790. sed 's/^/| /' conftest.$ac_ext >&5
  8791. ac_header_compiler=no
  8792. fi
  8793. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8794. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8795. echo "${ECHO_T}$ac_header_compiler" >&6
  8796. # Is the header present?
  8797. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8798. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8799. cat >conftest.$ac_ext <<_ACEOF
  8800. /* confdefs.h. */
  8801. _ACEOF
  8802. cat confdefs.h >>conftest.$ac_ext
  8803. cat >>conftest.$ac_ext <<_ACEOF
  8804. /* end confdefs.h. */
  8805. #include <$ac_header>
  8806. _ACEOF
  8807. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8808. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8809. ac_status=$?
  8810. grep -v '^ *+' conftest.er1 >conftest.err
  8811. rm -f conftest.er1
  8812. cat conftest.err >&5
  8813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8814. (exit $ac_status); } >/dev/null; then
  8815. if test -s conftest.err; then
  8816. ac_cpp_err=$ac_c_preproc_warn_flag
  8817. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8818. else
  8819. ac_cpp_err=
  8820. fi
  8821. else
  8822. ac_cpp_err=yes
  8823. fi
  8824. if test -z "$ac_cpp_err"; then
  8825. ac_header_preproc=yes
  8826. else
  8827. echo "$as_me: failed program was:" >&5
  8828. sed 's/^/| /' conftest.$ac_ext >&5
  8829. ac_header_preproc=no
  8830. fi
  8831. rm -f conftest.err conftest.$ac_ext
  8832. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8833. echo "${ECHO_T}$ac_header_preproc" >&6
  8834. # So? What about this header?
  8835. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8836. yes:no: )
  8837. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8838. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8839. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8840. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8841. ac_header_preproc=yes
  8842. ;;
  8843. no:yes:* )
  8844. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8845. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8846. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8847. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8848. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8849. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8850. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8851. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8852. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8853. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8854. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8855. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8856. (
  8857. cat <<\_ASBOX
  8858. ## ------------------------------------------ ##
  8859. ## Report this to the AC_PACKAGE_NAME lists. ##
  8860. ## ------------------------------------------ ##
  8861. _ASBOX
  8862. ) |
  8863. sed "s/^/$as_me: WARNING: /" >&2
  8864. ;;
  8865. esac
  8866. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8867. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8868. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8869. echo $ECHO_N "(cached) $ECHO_C" >&6
  8870. else
  8871. eval "$as_ac_Header=\$ac_header_preproc"
  8872. fi
  8873. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8874. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8875. fi
  8876. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8877. cat >>confdefs.h <<_ACEOF
  8878. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8879. _ACEOF
  8880. fi
  8881. done
  8882. for ac_func in getpagesize
  8883. do
  8884. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8885. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8886. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8887. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8888. echo $ECHO_N "(cached) $ECHO_C" >&6
  8889. else
  8890. cat >conftest.$ac_ext <<_ACEOF
  8891. /* confdefs.h. */
  8892. _ACEOF
  8893. cat confdefs.h >>conftest.$ac_ext
  8894. cat >>conftest.$ac_ext <<_ACEOF
  8895. /* end confdefs.h. */
  8896. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8897. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8898. #define $ac_func innocuous_$ac_func
  8899. /* System header to define __stub macros and hopefully few prototypes,
  8900. which can conflict with char $ac_func (); below.
  8901. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8902. <limits.h> exists even on freestanding compilers. */
  8903. #ifdef __STDC__
  8904. # include <limits.h>
  8905. #else
  8906. # include <assert.h>
  8907. #endif
  8908. #undef $ac_func
  8909. /* Override any gcc2 internal prototype to avoid an error. */
  8910. #ifdef __cplusplus
  8911. extern "C"
  8912. {
  8913. #endif
  8914. /* We use char because int might match the return type of a gcc2
  8915. builtin and then its argument prototype would still apply. */
  8916. char $ac_func ();
  8917. /* The GNU C library defines this for functions which it implements
  8918. to always fail with ENOSYS. Some functions are actually named
  8919. something starting with __ and the normal name is an alias. */
  8920. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8921. choke me
  8922. #else
  8923. char (*f) () = $ac_func;
  8924. #endif
  8925. #ifdef __cplusplus
  8926. }
  8927. #endif
  8928. int
  8929. main ()
  8930. {
  8931. return f != $ac_func;
  8932. ;
  8933. return 0;
  8934. }
  8935. _ACEOF
  8936. rm -f conftest.$ac_objext conftest$ac_exeext
  8937. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8938. (eval $ac_link) 2>conftest.er1
  8939. ac_status=$?
  8940. grep -v '^ *+' conftest.er1 >conftest.err
  8941. rm -f conftest.er1
  8942. cat conftest.err >&5
  8943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8944. (exit $ac_status); } &&
  8945. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8946. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8947. (eval $ac_try) 2>&5
  8948. ac_status=$?
  8949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8950. (exit $ac_status); }; } &&
  8951. { ac_try='test -s conftest$ac_exeext'
  8952. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8953. (eval $ac_try) 2>&5
  8954. ac_status=$?
  8955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8956. (exit $ac_status); }; }; then
  8957. eval "$as_ac_var=yes"
  8958. else
  8959. echo "$as_me: failed program was:" >&5
  8960. sed 's/^/| /' conftest.$ac_ext >&5
  8961. eval "$as_ac_var=no"
  8962. fi
  8963. rm -f conftest.err conftest.$ac_objext \
  8964. conftest$ac_exeext conftest.$ac_ext
  8965. fi
  8966. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8967. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8968. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8969. cat >>confdefs.h <<_ACEOF
  8970. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8971. _ACEOF
  8972. fi
  8973. done
  8974. echo "$as_me:$LINENO: checking for working mmap" >&5
  8975. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  8976. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  8977. echo $ECHO_N "(cached) $ECHO_C" >&6
  8978. else
  8979. if test "$cross_compiling" = yes; then
  8980. ac_cv_func_mmap_fixed_mapped=no
  8981. else
  8982. cat >conftest.$ac_ext <<_ACEOF
  8983. /* confdefs.h. */
  8984. _ACEOF
  8985. cat confdefs.h >>conftest.$ac_ext
  8986. cat >>conftest.$ac_ext <<_ACEOF
  8987. /* end confdefs.h. */
  8988. $ac_includes_default
  8989. /* malloc might have been renamed as rpl_malloc. */
  8990. #undef malloc
  8991. /* Thanks to Mike Haertel and Jim Avera for this test.
  8992. Here is a matrix of mmap possibilities:
  8993. mmap private not fixed
  8994. mmap private fixed at somewhere currently unmapped
  8995. mmap private fixed at somewhere already mapped
  8996. mmap shared not fixed
  8997. mmap shared fixed at somewhere currently unmapped
  8998. mmap shared fixed at somewhere already mapped
  8999. For private mappings, we should verify that changes cannot be read()
  9000. back from the file, nor mmap's back from the file at a different
  9001. address. (There have been systems where private was not correctly
  9002. implemented like the infamous i386 svr4.0, and systems where the
  9003. VM page cache was not coherent with the file system buffer cache
  9004. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9005. For shared mappings, we should conversely verify that changes get
  9006. propagated back to all the places they're supposed to be.
  9007. Grep wants private fixed already mapped.
  9008. The main things grep needs to know about mmap are:
  9009. * does it exist and is it safe to write into the mmap'd area
  9010. * how to use it (BSD variants) */
  9011. #include <fcntl.h>
  9012. #include <sys/mman.h>
  9013. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9014. char *malloc ();
  9015. #endif
  9016. /* This mess was copied from the GNU getpagesize.h. */
  9017. #if !HAVE_GETPAGESIZE
  9018. /* Assume that all systems that can run configure have sys/param.h. */
  9019. # if !HAVE_SYS_PARAM_H
  9020. # define HAVE_SYS_PARAM_H 1
  9021. # endif
  9022. # ifdef _SC_PAGESIZE
  9023. # define getpagesize() sysconf(_SC_PAGESIZE)
  9024. # else /* no _SC_PAGESIZE */
  9025. # if HAVE_SYS_PARAM_H
  9026. # include <sys/param.h>
  9027. # ifdef EXEC_PAGESIZE
  9028. # define getpagesize() EXEC_PAGESIZE
  9029. # else /* no EXEC_PAGESIZE */
  9030. # ifdef NBPG
  9031. # define getpagesize() NBPG * CLSIZE
  9032. # ifndef CLSIZE
  9033. # define CLSIZE 1
  9034. # endif /* no CLSIZE */
  9035. # else /* no NBPG */
  9036. # ifdef NBPC
  9037. # define getpagesize() NBPC
  9038. # else /* no NBPC */
  9039. # ifdef PAGESIZE
  9040. # define getpagesize() PAGESIZE
  9041. # endif /* PAGESIZE */
  9042. # endif /* no NBPC */
  9043. # endif /* no NBPG */
  9044. # endif /* no EXEC_PAGESIZE */
  9045. # else /* no HAVE_SYS_PARAM_H */
  9046. # define getpagesize() 8192 /* punt totally */
  9047. # endif /* no HAVE_SYS_PARAM_H */
  9048. # endif /* no _SC_PAGESIZE */
  9049. #endif /* no HAVE_GETPAGESIZE */
  9050. int
  9051. main ()
  9052. {
  9053. char *data, *data2, *data3;
  9054. int i, pagesize;
  9055. int fd;
  9056. pagesize = getpagesize ();
  9057. /* First, make a file with some known garbage in it. */
  9058. data = (char *) malloc (pagesize);
  9059. if (!data)
  9060. exit (1);
  9061. for (i = 0; i < pagesize; ++i)
  9062. *(data + i) = rand ();
  9063. umask (0);
  9064. fd = creat ("conftest.mmap", 0600);
  9065. if (fd < 0)
  9066. exit (1);
  9067. if (write (fd, data, pagesize) != pagesize)
  9068. exit (1);
  9069. close (fd);
  9070. /* Next, try to mmap the file at a fixed address which already has
  9071. something else allocated at it. If we can, also make sure that
  9072. we see the same garbage. */
  9073. fd = open ("conftest.mmap", O_RDWR);
  9074. if (fd < 0)
  9075. exit (1);
  9076. data2 = (char *) malloc (2 * pagesize);
  9077. if (!data2)
  9078. exit (1);
  9079. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9080. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9081. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9082. exit (1);
  9083. for (i = 0; i < pagesize; ++i)
  9084. if (*(data + i) != *(data2 + i))
  9085. exit (1);
  9086. /* Finally, make sure that changes to the mapped area do not
  9087. percolate back to the file as seen by read(). (This is a bug on
  9088. some variants of i386 svr4.0.) */
  9089. for (i = 0; i < pagesize; ++i)
  9090. *(data2 + i) = *(data2 + i) + 1;
  9091. data3 = (char *) malloc (pagesize);
  9092. if (!data3)
  9093. exit (1);
  9094. if (read (fd, data3, pagesize) != pagesize)
  9095. exit (1);
  9096. for (i = 0; i < pagesize; ++i)
  9097. if (*(data + i) != *(data3 + i))
  9098. exit (1);
  9099. close (fd);
  9100. exit (0);
  9101. }
  9102. _ACEOF
  9103. rm -f conftest$ac_exeext
  9104. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9105. (eval $ac_link) 2>&5
  9106. ac_status=$?
  9107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9108. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9109. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9110. (eval $ac_try) 2>&5
  9111. ac_status=$?
  9112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9113. (exit $ac_status); }; }; then
  9114. ac_cv_func_mmap_fixed_mapped=yes
  9115. else
  9116. echo "$as_me: program exited with status $ac_status" >&5
  9117. echo "$as_me: failed program was:" >&5
  9118. sed 's/^/| /' conftest.$ac_ext >&5
  9119. ( exit $ac_status )
  9120. ac_cv_func_mmap_fixed_mapped=no
  9121. fi
  9122. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9123. fi
  9124. fi
  9125. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9126. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9127. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9128. cat >>confdefs.h <<\_ACEOF
  9129. #define HAVE_MMAP 1
  9130. _ACEOF
  9131. fi
  9132. rm -f conftest.mmap
  9133. for ac_header in stdlib.h
  9134. do
  9135. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9136. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9137. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9138. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9139. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9140. echo $ECHO_N "(cached) $ECHO_C" >&6
  9141. fi
  9142. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9143. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9144. else
  9145. # Is the header compilable?
  9146. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9147. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9148. cat >conftest.$ac_ext <<_ACEOF
  9149. /* confdefs.h. */
  9150. _ACEOF
  9151. cat confdefs.h >>conftest.$ac_ext
  9152. cat >>conftest.$ac_ext <<_ACEOF
  9153. /* end confdefs.h. */
  9154. $ac_includes_default
  9155. #include <$ac_header>
  9156. _ACEOF
  9157. rm -f conftest.$ac_objext
  9158. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9159. (eval $ac_compile) 2>conftest.er1
  9160. ac_status=$?
  9161. grep -v '^ *+' conftest.er1 >conftest.err
  9162. rm -f conftest.er1
  9163. cat conftest.err >&5
  9164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9165. (exit $ac_status); } &&
  9166. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9167. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9168. (eval $ac_try) 2>&5
  9169. ac_status=$?
  9170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9171. (exit $ac_status); }; } &&
  9172. { ac_try='test -s conftest.$ac_objext'
  9173. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9174. (eval $ac_try) 2>&5
  9175. ac_status=$?
  9176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9177. (exit $ac_status); }; }; then
  9178. ac_header_compiler=yes
  9179. else
  9180. echo "$as_me: failed program was:" >&5
  9181. sed 's/^/| /' conftest.$ac_ext >&5
  9182. ac_header_compiler=no
  9183. fi
  9184. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9185. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9186. echo "${ECHO_T}$ac_header_compiler" >&6
  9187. # Is the header present?
  9188. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9189. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9190. cat >conftest.$ac_ext <<_ACEOF
  9191. /* confdefs.h. */
  9192. _ACEOF
  9193. cat confdefs.h >>conftest.$ac_ext
  9194. cat >>conftest.$ac_ext <<_ACEOF
  9195. /* end confdefs.h. */
  9196. #include <$ac_header>
  9197. _ACEOF
  9198. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9199. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9200. ac_status=$?
  9201. grep -v '^ *+' conftest.er1 >conftest.err
  9202. rm -f conftest.er1
  9203. cat conftest.err >&5
  9204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9205. (exit $ac_status); } >/dev/null; then
  9206. if test -s conftest.err; then
  9207. ac_cpp_err=$ac_c_preproc_warn_flag
  9208. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9209. else
  9210. ac_cpp_err=
  9211. fi
  9212. else
  9213. ac_cpp_err=yes
  9214. fi
  9215. if test -z "$ac_cpp_err"; then
  9216. ac_header_preproc=yes
  9217. else
  9218. echo "$as_me: failed program was:" >&5
  9219. sed 's/^/| /' conftest.$ac_ext >&5
  9220. ac_header_preproc=no
  9221. fi
  9222. rm -f conftest.err conftest.$ac_ext
  9223. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9224. echo "${ECHO_T}$ac_header_preproc" >&6
  9225. # So? What about this header?
  9226. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9227. yes:no: )
  9228. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9229. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9230. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9231. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9232. ac_header_preproc=yes
  9233. ;;
  9234. no:yes:* )
  9235. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9236. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9237. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9238. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9239. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9240. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9241. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9242. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9243. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9244. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9245. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9246. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9247. (
  9248. cat <<\_ASBOX
  9249. ## ------------------------------------------ ##
  9250. ## Report this to the AC_PACKAGE_NAME lists. ##
  9251. ## ------------------------------------------ ##
  9252. _ASBOX
  9253. ) |
  9254. sed "s/^/$as_me: WARNING: /" >&2
  9255. ;;
  9256. esac
  9257. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9258. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9259. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9260. echo $ECHO_N "(cached) $ECHO_C" >&6
  9261. else
  9262. eval "$as_ac_Header=\$ac_header_preproc"
  9263. fi
  9264. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9265. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9266. fi
  9267. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9268. cat >>confdefs.h <<_ACEOF
  9269. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9270. _ACEOF
  9271. fi
  9272. done
  9273. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9274. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  9275. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9276. echo $ECHO_N "(cached) $ECHO_C" >&6
  9277. else
  9278. if test "$cross_compiling" = yes; then
  9279. ac_cv_func_realloc_0_nonnull=no
  9280. else
  9281. cat >conftest.$ac_ext <<_ACEOF
  9282. /* confdefs.h. */
  9283. _ACEOF
  9284. cat confdefs.h >>conftest.$ac_ext
  9285. cat >>conftest.$ac_ext <<_ACEOF
  9286. /* end confdefs.h. */
  9287. #if STDC_HEADERS || HAVE_STDLIB_H
  9288. # include <stdlib.h>
  9289. #else
  9290. char *realloc ();
  9291. #endif
  9292. int
  9293. main ()
  9294. {
  9295. exit (realloc (0, 0) ? 0 : 1);
  9296. ;
  9297. return 0;
  9298. }
  9299. _ACEOF
  9300. rm -f conftest$ac_exeext
  9301. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9302. (eval $ac_link) 2>&5
  9303. ac_status=$?
  9304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9305. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9306. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9307. (eval $ac_try) 2>&5
  9308. ac_status=$?
  9309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9310. (exit $ac_status); }; }; then
  9311. ac_cv_func_realloc_0_nonnull=yes
  9312. else
  9313. echo "$as_me: program exited with status $ac_status" >&5
  9314. echo "$as_me: failed program was:" >&5
  9315. sed 's/^/| /' conftest.$ac_ext >&5
  9316. ( exit $ac_status )
  9317. ac_cv_func_realloc_0_nonnull=no
  9318. fi
  9319. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9320. fi
  9321. fi
  9322. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9323. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  9324. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9325. cat >>confdefs.h <<\_ACEOF
  9326. #define HAVE_REALLOC 1
  9327. _ACEOF
  9328. else
  9329. cat >>confdefs.h <<\_ACEOF
  9330. #define HAVE_REALLOC 0
  9331. _ACEOF
  9332. case $LIBOBJS in
  9333. "realloc.$ac_objext" | \
  9334. *" realloc.$ac_objext" | \
  9335. "realloc.$ac_objext "* | \
  9336. *" realloc.$ac_objext "* ) ;;
  9337. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  9338. esac
  9339. cat >>confdefs.h <<\_ACEOF
  9340. #define realloc rpl_realloc
  9341. _ACEOF
  9342. fi
  9343. for ac_header in sys/select.h sys/socket.h
  9344. do
  9345. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9346. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9347. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9348. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9349. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9350. echo $ECHO_N "(cached) $ECHO_C" >&6
  9351. fi
  9352. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9353. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9354. else
  9355. # Is the header compilable?
  9356. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9357. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9358. cat >conftest.$ac_ext <<_ACEOF
  9359. /* confdefs.h. */
  9360. _ACEOF
  9361. cat confdefs.h >>conftest.$ac_ext
  9362. cat >>conftest.$ac_ext <<_ACEOF
  9363. /* end confdefs.h. */
  9364. $ac_includes_default
  9365. #include <$ac_header>
  9366. _ACEOF
  9367. rm -f conftest.$ac_objext
  9368. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9369. (eval $ac_compile) 2>conftest.er1
  9370. ac_status=$?
  9371. grep -v '^ *+' conftest.er1 >conftest.err
  9372. rm -f conftest.er1
  9373. cat conftest.err >&5
  9374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9375. (exit $ac_status); } &&
  9376. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9377. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9378. (eval $ac_try) 2>&5
  9379. ac_status=$?
  9380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9381. (exit $ac_status); }; } &&
  9382. { ac_try='test -s conftest.$ac_objext'
  9383. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9384. (eval $ac_try) 2>&5
  9385. ac_status=$?
  9386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9387. (exit $ac_status); }; }; then
  9388. ac_header_compiler=yes
  9389. else
  9390. echo "$as_me: failed program was:" >&5
  9391. sed 's/^/| /' conftest.$ac_ext >&5
  9392. ac_header_compiler=no
  9393. fi
  9394. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9395. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9396. echo "${ECHO_T}$ac_header_compiler" >&6
  9397. # Is the header present?
  9398. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9399. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9400. cat >conftest.$ac_ext <<_ACEOF
  9401. /* confdefs.h. */
  9402. _ACEOF
  9403. cat confdefs.h >>conftest.$ac_ext
  9404. cat >>conftest.$ac_ext <<_ACEOF
  9405. /* end confdefs.h. */
  9406. #include <$ac_header>
  9407. _ACEOF
  9408. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9409. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9410. ac_status=$?
  9411. grep -v '^ *+' conftest.er1 >conftest.err
  9412. rm -f conftest.er1
  9413. cat conftest.err >&5
  9414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9415. (exit $ac_status); } >/dev/null; then
  9416. if test -s conftest.err; then
  9417. ac_cpp_err=$ac_c_preproc_warn_flag
  9418. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9419. else
  9420. ac_cpp_err=
  9421. fi
  9422. else
  9423. ac_cpp_err=yes
  9424. fi
  9425. if test -z "$ac_cpp_err"; then
  9426. ac_header_preproc=yes
  9427. else
  9428. echo "$as_me: failed program was:" >&5
  9429. sed 's/^/| /' conftest.$ac_ext >&5
  9430. ac_header_preproc=no
  9431. fi
  9432. rm -f conftest.err conftest.$ac_ext
  9433. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9434. echo "${ECHO_T}$ac_header_preproc" >&6
  9435. # So? What about this header?
  9436. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9437. yes:no: )
  9438. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9439. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9440. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9441. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9442. ac_header_preproc=yes
  9443. ;;
  9444. no:yes:* )
  9445. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9446. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9447. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9448. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9449. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9450. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9451. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9452. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9453. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9454. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9455. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9456. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9457. (
  9458. cat <<\_ASBOX
  9459. ## ------------------------------------------ ##
  9460. ## Report this to the AC_PACKAGE_NAME lists. ##
  9461. ## ------------------------------------------ ##
  9462. _ASBOX
  9463. ) |
  9464. sed "s/^/$as_me: WARNING: /" >&2
  9465. ;;
  9466. esac
  9467. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9468. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9469. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9470. echo $ECHO_N "(cached) $ECHO_C" >&6
  9471. else
  9472. eval "$as_ac_Header=\$ac_header_preproc"
  9473. fi
  9474. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9475. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9476. fi
  9477. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9478. cat >>confdefs.h <<_ACEOF
  9479. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9480. _ACEOF
  9481. fi
  9482. done
  9483. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  9484. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  9485. if test "${ac_cv_func_select_args+set}" = set; then
  9486. echo $ECHO_N "(cached) $ECHO_C" >&6
  9487. else
  9488. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  9489. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  9490. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  9491. cat >conftest.$ac_ext <<_ACEOF
  9492. /* confdefs.h. */
  9493. _ACEOF
  9494. cat confdefs.h >>conftest.$ac_ext
  9495. cat >>conftest.$ac_ext <<_ACEOF
  9496. /* end confdefs.h. */
  9497. $ac_includes_default
  9498. #if HAVE_SYS_SELECT_H
  9499. # include <sys/select.h>
  9500. #endif
  9501. #if HAVE_SYS_SOCKET_H
  9502. # include <sys/socket.h>
  9503. #endif
  9504. int
  9505. main ()
  9506. {
  9507. extern int select ($ac_arg1,
  9508. $ac_arg234, $ac_arg234, $ac_arg234,
  9509. $ac_arg5);
  9510. ;
  9511. return 0;
  9512. }
  9513. _ACEOF
  9514. rm -f conftest.$ac_objext
  9515. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9516. (eval $ac_compile) 2>conftest.er1
  9517. ac_status=$?
  9518. grep -v '^ *+' conftest.er1 >conftest.err
  9519. rm -f conftest.er1
  9520. cat conftest.err >&5
  9521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9522. (exit $ac_status); } &&
  9523. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9524. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9525. (eval $ac_try) 2>&5
  9526. ac_status=$?
  9527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9528. (exit $ac_status); }; } &&
  9529. { ac_try='test -s conftest.$ac_objext'
  9530. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9531. (eval $ac_try) 2>&5
  9532. ac_status=$?
  9533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9534. (exit $ac_status); }; }; then
  9535. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  9536. else
  9537. echo "$as_me: failed program was:" >&5
  9538. sed 's/^/| /' conftest.$ac_ext >&5
  9539. fi
  9540. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9541. done
  9542. done
  9543. done
  9544. # Provide a safe default value.
  9545. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  9546. fi
  9547. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  9548. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  9549. ac_save_IFS=$IFS; IFS=','
  9550. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  9551. IFS=$ac_save_IFS
  9552. shift
  9553. cat >>confdefs.h <<_ACEOF
  9554. #define SELECT_TYPE_ARG1 $1
  9555. _ACEOF
  9556. cat >>confdefs.h <<_ACEOF
  9557. #define SELECT_TYPE_ARG234 ($2)
  9558. _ACEOF
  9559. cat >>confdefs.h <<_ACEOF
  9560. #define SELECT_TYPE_ARG5 ($3)
  9561. _ACEOF
  9562. rm -f conftest*
  9563. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  9564. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  9565. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  9566. echo $ECHO_N "(cached) $ECHO_C" >&6
  9567. else
  9568. if test "$cross_compiling" = yes; then
  9569. ac_cv_func_stat_empty_string_bug=yes
  9570. else
  9571. cat >conftest.$ac_ext <<_ACEOF
  9572. /* confdefs.h. */
  9573. _ACEOF
  9574. cat confdefs.h >>conftest.$ac_ext
  9575. cat >>conftest.$ac_ext <<_ACEOF
  9576. /* end confdefs.h. */
  9577. $ac_includes_default
  9578. int
  9579. main ()
  9580. {
  9581. struct stat sbuf;
  9582. exit (stat ("", &sbuf) ? 1 : 0);
  9583. ;
  9584. return 0;
  9585. }
  9586. _ACEOF
  9587. rm -f conftest$ac_exeext
  9588. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9589. (eval $ac_link) 2>&5
  9590. ac_status=$?
  9591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9592. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9593. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9594. (eval $ac_try) 2>&5
  9595. ac_status=$?
  9596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9597. (exit $ac_status); }; }; then
  9598. ac_cv_func_stat_empty_string_bug=yes
  9599. else
  9600. echo "$as_me: program exited with status $ac_status" >&5
  9601. echo "$as_me: failed program was:" >&5
  9602. sed 's/^/| /' conftest.$ac_ext >&5
  9603. ( exit $ac_status )
  9604. ac_cv_func_stat_empty_string_bug=no
  9605. fi
  9606. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9607. fi
  9608. fi
  9609. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  9610. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  9611. if test $ac_cv_func_stat_empty_string_bug = yes; then
  9612. case $LIBOBJS in
  9613. "stat.$ac_objext" | \
  9614. *" stat.$ac_objext" | \
  9615. "stat.$ac_objext "* | \
  9616. *" stat.$ac_objext "* ) ;;
  9617. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  9618. esac
  9619. cat >>confdefs.h <<_ACEOF
  9620. #define HAVE_STAT_EMPTY_STRING_BUG 1
  9621. _ACEOF
  9622. fi
  9623. for ac_func in strftime
  9624. do
  9625. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9626. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9627. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9628. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9629. echo $ECHO_N "(cached) $ECHO_C" >&6
  9630. else
  9631. cat >conftest.$ac_ext <<_ACEOF
  9632. /* confdefs.h. */
  9633. _ACEOF
  9634. cat confdefs.h >>conftest.$ac_ext
  9635. cat >>conftest.$ac_ext <<_ACEOF
  9636. /* end confdefs.h. */
  9637. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9638. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9639. #define $ac_func innocuous_$ac_func
  9640. /* System header to define __stub macros and hopefully few prototypes,
  9641. which can conflict with char $ac_func (); below.
  9642. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9643. <limits.h> exists even on freestanding compilers. */
  9644. #ifdef __STDC__
  9645. # include <limits.h>
  9646. #else
  9647. # include <assert.h>
  9648. #endif
  9649. #undef $ac_func
  9650. /* Override any gcc2 internal prototype to avoid an error. */
  9651. #ifdef __cplusplus
  9652. extern "C"
  9653. {
  9654. #endif
  9655. /* We use char because int might match the return type of a gcc2
  9656. builtin and then its argument prototype would still apply. */
  9657. char $ac_func ();
  9658. /* The GNU C library defines this for functions which it implements
  9659. to always fail with ENOSYS. Some functions are actually named
  9660. something starting with __ and the normal name is an alias. */
  9661. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9662. choke me
  9663. #else
  9664. char (*f) () = $ac_func;
  9665. #endif
  9666. #ifdef __cplusplus
  9667. }
  9668. #endif
  9669. int
  9670. main ()
  9671. {
  9672. return f != $ac_func;
  9673. ;
  9674. return 0;
  9675. }
  9676. _ACEOF
  9677. rm -f conftest.$ac_objext conftest$ac_exeext
  9678. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9679. (eval $ac_link) 2>conftest.er1
  9680. ac_status=$?
  9681. grep -v '^ *+' conftest.er1 >conftest.err
  9682. rm -f conftest.er1
  9683. cat conftest.err >&5
  9684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9685. (exit $ac_status); } &&
  9686. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9687. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9688. (eval $ac_try) 2>&5
  9689. ac_status=$?
  9690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9691. (exit $ac_status); }; } &&
  9692. { ac_try='test -s conftest$ac_exeext'
  9693. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9694. (eval $ac_try) 2>&5
  9695. ac_status=$?
  9696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9697. (exit $ac_status); }; }; then
  9698. eval "$as_ac_var=yes"
  9699. else
  9700. echo "$as_me: failed program was:" >&5
  9701. sed 's/^/| /' conftest.$ac_ext >&5
  9702. eval "$as_ac_var=no"
  9703. fi
  9704. rm -f conftest.err conftest.$ac_objext \
  9705. conftest$ac_exeext conftest.$ac_ext
  9706. fi
  9707. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9708. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9709. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9710. cat >>confdefs.h <<_ACEOF
  9711. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9712. _ACEOF
  9713. else
  9714. # strftime is in -lintl on SCO UNIX.
  9715. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  9716. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  9717. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  9718. echo $ECHO_N "(cached) $ECHO_C" >&6
  9719. else
  9720. ac_check_lib_save_LIBS=$LIBS
  9721. LIBS="-lintl $LIBS"
  9722. cat >conftest.$ac_ext <<_ACEOF
  9723. /* confdefs.h. */
  9724. _ACEOF
  9725. cat confdefs.h >>conftest.$ac_ext
  9726. cat >>conftest.$ac_ext <<_ACEOF
  9727. /* end confdefs.h. */
  9728. /* Override any gcc2 internal prototype to avoid an error. */
  9729. #ifdef __cplusplus
  9730. extern "C"
  9731. #endif
  9732. /* We use char because int might match the return type of a gcc2
  9733. builtin and then its argument prototype would still apply. */
  9734. char strftime ();
  9735. int
  9736. main ()
  9737. {
  9738. strftime ();
  9739. ;
  9740. return 0;
  9741. }
  9742. _ACEOF
  9743. rm -f conftest.$ac_objext conftest$ac_exeext
  9744. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9745. (eval $ac_link) 2>conftest.er1
  9746. ac_status=$?
  9747. grep -v '^ *+' conftest.er1 >conftest.err
  9748. rm -f conftest.er1
  9749. cat conftest.err >&5
  9750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9751. (exit $ac_status); } &&
  9752. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9753. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9754. (eval $ac_try) 2>&5
  9755. ac_status=$?
  9756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9757. (exit $ac_status); }; } &&
  9758. { ac_try='test -s conftest$ac_exeext'
  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); }; }; then
  9764. ac_cv_lib_intl_strftime=yes
  9765. else
  9766. echo "$as_me: failed program was:" >&5
  9767. sed 's/^/| /' conftest.$ac_ext >&5
  9768. ac_cv_lib_intl_strftime=no
  9769. fi
  9770. rm -f conftest.err conftest.$ac_objext \
  9771. conftest$ac_exeext conftest.$ac_ext
  9772. LIBS=$ac_check_lib_save_LIBS
  9773. fi
  9774. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  9775. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  9776. if test $ac_cv_lib_intl_strftime = yes; then
  9777. cat >>confdefs.h <<\_ACEOF
  9778. #define HAVE_STRFTIME 1
  9779. _ACEOF
  9780. LIBS="-lintl $LIBS"
  9781. fi
  9782. fi
  9783. done
  9784. #checkpoint
  9785. cat >confcache <<\_ACEOF
  9786. # This file is a shell script that caches the results of configure
  9787. # tests run on this system so they can be shared between configure
  9788. # scripts and configure runs, see configure's option --config-cache.
  9789. # It is not useful on other systems. If it contains results you don't
  9790. # want to keep, you may remove or edit it.
  9791. #
  9792. # config.status only pays attention to the cache file if you give it
  9793. # the --recheck option to rerun configure.
  9794. #
  9795. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9796. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9797. # following values.
  9798. _ACEOF
  9799. # The following way of writing the cache mishandles newlines in values,
  9800. # but we know of no workaround that is simple, portable, and efficient.
  9801. # So, don't put newlines in cache variables' values.
  9802. # Ultrix sh set writes to stderr and can't be redirected directly,
  9803. # and sets the high bit in the cache file unless we assign to the vars.
  9804. {
  9805. (set) 2>&1 |
  9806. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9807. *ac_space=\ *)
  9808. # `set' does not quote correctly, so add quotes (double-quote
  9809. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9810. sed -n \
  9811. "s/'/'\\\\''/g;
  9812. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9813. ;;
  9814. *)
  9815. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9816. sed -n \
  9817. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9818. ;;
  9819. esac;
  9820. } |
  9821. sed '
  9822. t clear
  9823. : clear
  9824. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9825. t end
  9826. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9827. : end' >>confcache
  9828. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9829. if test -w $cache_file; then
  9830. test "x$cache_file" != "x/dev/null"
  9831. cat confcache >$cache_file
  9832. else
  9833. echo "not updating unwritable cache $cache_file"
  9834. fi
  9835. fi
  9836. rm -f confcache
  9837. for ac_func in clock dprintf fsync getdtablesize getrusage inet_aton isascii gethostbyname2
  9838. do
  9839. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9840. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9841. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9842. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9843. echo $ECHO_N "(cached) $ECHO_C" >&6
  9844. else
  9845. cat >conftest.$ac_ext <<_ACEOF
  9846. /* confdefs.h. */
  9847. _ACEOF
  9848. cat confdefs.h >>conftest.$ac_ext
  9849. cat >>conftest.$ac_ext <<_ACEOF
  9850. /* end confdefs.h. */
  9851. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9852. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9853. #define $ac_func innocuous_$ac_func
  9854. /* System header to define __stub macros and hopefully few prototypes,
  9855. which can conflict with char $ac_func (); below.
  9856. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9857. <limits.h> exists even on freestanding compilers. */
  9858. #ifdef __STDC__
  9859. # include <limits.h>
  9860. #else
  9861. # include <assert.h>
  9862. #endif
  9863. #undef $ac_func
  9864. /* Override any gcc2 internal prototype to avoid an error. */
  9865. #ifdef __cplusplus
  9866. extern "C"
  9867. {
  9868. #endif
  9869. /* We use char because int might match the return type of a gcc2
  9870. builtin and then its argument prototype would still apply. */
  9871. char $ac_func ();
  9872. /* The GNU C library defines this for functions which it implements
  9873. to always fail with ENOSYS. Some functions are actually named
  9874. something starting with __ and the normal name is an alias. */
  9875. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9876. choke me
  9877. #else
  9878. char (*f) () = $ac_func;
  9879. #endif
  9880. #ifdef __cplusplus
  9881. }
  9882. #endif
  9883. int
  9884. main ()
  9885. {
  9886. return f != $ac_func;
  9887. ;
  9888. return 0;
  9889. }
  9890. _ACEOF
  9891. rm -f conftest.$ac_objext conftest$ac_exeext
  9892. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9893. (eval $ac_link) 2>conftest.er1
  9894. ac_status=$?
  9895. grep -v '^ *+' conftest.er1 >conftest.err
  9896. rm -f conftest.er1
  9897. cat conftest.err >&5
  9898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9899. (exit $ac_status); } &&
  9900. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9901. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9902. (eval $ac_try) 2>&5
  9903. ac_status=$?
  9904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9905. (exit $ac_status); }; } &&
  9906. { ac_try='test -s conftest$ac_exeext'
  9907. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9908. (eval $ac_try) 2>&5
  9909. ac_status=$?
  9910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9911. (exit $ac_status); }; }; then
  9912. eval "$as_ac_var=yes"
  9913. else
  9914. echo "$as_me: failed program was:" >&5
  9915. sed 's/^/| /' conftest.$ac_ext >&5
  9916. eval "$as_ac_var=no"
  9917. fi
  9918. rm -f conftest.err conftest.$ac_objext \
  9919. conftest$ac_exeext conftest.$ac_ext
  9920. fi
  9921. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9922. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9923. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9924. cat >>confdefs.h <<_ACEOF
  9925. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9926. _ACEOF
  9927. fi
  9928. done
  9929. for ac_func in getipnodebyname memcpy memset random rename setpgid sigaction sigemptyset snprintf srandom
  9930. do
  9931. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9932. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9933. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9934. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9935. echo $ECHO_N "(cached) $ECHO_C" >&6
  9936. else
  9937. cat >conftest.$ac_ext <<_ACEOF
  9938. /* confdefs.h. */
  9939. _ACEOF
  9940. cat confdefs.h >>conftest.$ac_ext
  9941. cat >>conftest.$ac_ext <<_ACEOF
  9942. /* end confdefs.h. */
  9943. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9944. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9945. #define $ac_func innocuous_$ac_func
  9946. /* System header to define __stub macros and hopefully few prototypes,
  9947. which can conflict with char $ac_func (); below.
  9948. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9949. <limits.h> exists even on freestanding compilers. */
  9950. #ifdef __STDC__
  9951. # include <limits.h>
  9952. #else
  9953. # include <assert.h>
  9954. #endif
  9955. #undef $ac_func
  9956. /* Override any gcc2 internal prototype to avoid an error. */
  9957. #ifdef __cplusplus
  9958. extern "C"
  9959. {
  9960. #endif
  9961. /* We use char because int might match the return type of a gcc2
  9962. builtin and then its argument prototype would still apply. */
  9963. char $ac_func ();
  9964. /* The GNU C library defines this for functions which it implements
  9965. to always fail with ENOSYS. Some functions are actually named
  9966. something starting with __ and the normal name is an alias. */
  9967. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9968. choke me
  9969. #else
  9970. char (*f) () = $ac_func;
  9971. #endif
  9972. #ifdef __cplusplus
  9973. }
  9974. #endif
  9975. int
  9976. main ()
  9977. {
  9978. return f != $ac_func;
  9979. ;
  9980. return 0;
  9981. }
  9982. _ACEOF
  9983. rm -f conftest.$ac_objext conftest$ac_exeext
  9984. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9985. (eval $ac_link) 2>conftest.er1
  9986. ac_status=$?
  9987. grep -v '^ *+' conftest.er1 >conftest.err
  9988. rm -f conftest.er1
  9989. cat conftest.err >&5
  9990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9991. (exit $ac_status); } &&
  9992. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9993. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9994. (eval $ac_try) 2>&5
  9995. ac_status=$?
  9996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9997. (exit $ac_status); }; } &&
  9998. { ac_try='test -s conftest$ac_exeext'
  9999. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10000. (eval $ac_try) 2>&5
  10001. ac_status=$?
  10002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10003. (exit $ac_status); }; }; then
  10004. eval "$as_ac_var=yes"
  10005. else
  10006. echo "$as_me: failed program was:" >&5
  10007. sed 's/^/| /' conftest.$ac_ext >&5
  10008. eval "$as_ac_var=no"
  10009. fi
  10010. rm -f conftest.err conftest.$ac_objext \
  10011. conftest$ac_exeext conftest.$ac_ext
  10012. fi
  10013. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10014. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10015. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10016. cat >>confdefs.h <<_ACEOF
  10017. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10018. _ACEOF
  10019. fi
  10020. done
  10021. #checkpoint
  10022. cat >confcache <<\_ACEOF
  10023. # This file is a shell script that caches the results of configure
  10024. # tests run on this system so they can be shared between configure
  10025. # scripts and configure runs, see configure's option --config-cache.
  10026. # It is not useful on other systems. If it contains results you don't
  10027. # want to keep, you may remove or edit it.
  10028. #
  10029. # config.status only pays attention to the cache file if you give it
  10030. # the --recheck option to rerun configure.
  10031. #
  10032. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10033. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10034. # following values.
  10035. _ACEOF
  10036. # The following way of writing the cache mishandles newlines in values,
  10037. # but we know of no workaround that is simple, portable, and efficient.
  10038. # So, don't put newlines in cache variables' values.
  10039. # Ultrix sh set writes to stderr and can't be redirected directly,
  10040. # and sets the high bit in the cache file unless we assign to the vars.
  10041. {
  10042. (set) 2>&1 |
  10043. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10044. *ac_space=\ *)
  10045. # `set' does not quote correctly, so add quotes (double-quote
  10046. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10047. sed -n \
  10048. "s/'/'\\\\''/g;
  10049. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10050. ;;
  10051. *)
  10052. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10053. sed -n \
  10054. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10055. ;;
  10056. esac;
  10057. } |
  10058. sed '
  10059. t clear
  10060. : clear
  10061. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10062. t end
  10063. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10064. : end' >>confcache
  10065. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10066. if test -w $cache_file; then
  10067. test "x$cache_file" != "x/dev/null"
  10068. cat confcache >$cache_file
  10069. else
  10070. echo "not updating unwritable cache $cache_file"
  10071. fi
  10072. fi
  10073. rm -f confcache
  10074. for ac_func in strcasecmp strncasecmp vsnprintf
  10075. do
  10076. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10077. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10078. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10079. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10080. echo $ECHO_N "(cached) $ECHO_C" >&6
  10081. else
  10082. cat >conftest.$ac_ext <<_ACEOF
  10083. /* confdefs.h. */
  10084. _ACEOF
  10085. cat confdefs.h >>conftest.$ac_ext
  10086. cat >>conftest.$ac_ext <<_ACEOF
  10087. /* end confdefs.h. */
  10088. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10089. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10090. #define $ac_func innocuous_$ac_func
  10091. /* System header to define __stub macros and hopefully few prototypes,
  10092. which can conflict with char $ac_func (); below.
  10093. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10094. <limits.h> exists even on freestanding compilers. */
  10095. #ifdef __STDC__
  10096. # include <limits.h>
  10097. #else
  10098. # include <assert.h>
  10099. #endif
  10100. #undef $ac_func
  10101. /* Override any gcc2 internal prototype to avoid an error. */
  10102. #ifdef __cplusplus
  10103. extern "C"
  10104. {
  10105. #endif
  10106. /* We use char because int might match the return type of a gcc2
  10107. builtin and then its argument prototype would still apply. */
  10108. char $ac_func ();
  10109. /* The GNU C library defines this for functions which it implements
  10110. to always fail with ENOSYS. Some functions are actually named
  10111. something starting with __ and the normal name is an alias. */
  10112. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10113. choke me
  10114. #else
  10115. char (*f) () = $ac_func;
  10116. #endif
  10117. #ifdef __cplusplus
  10118. }
  10119. #endif
  10120. int
  10121. main ()
  10122. {
  10123. return f != $ac_func;
  10124. ;
  10125. return 0;
  10126. }
  10127. _ACEOF
  10128. rm -f conftest.$ac_objext conftest$ac_exeext
  10129. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10130. (eval $ac_link) 2>conftest.er1
  10131. ac_status=$?
  10132. grep -v '^ *+' conftest.er1 >conftest.err
  10133. rm -f conftest.er1
  10134. cat conftest.err >&5
  10135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10136. (exit $ac_status); } &&
  10137. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10138. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10139. (eval $ac_try) 2>&5
  10140. ac_status=$?
  10141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10142. (exit $ac_status); }; } &&
  10143. { ac_try='test -s conftest$ac_exeext'
  10144. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10145. (eval $ac_try) 2>&5
  10146. ac_status=$?
  10147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10148. (exit $ac_status); }; }; then
  10149. eval "$as_ac_var=yes"
  10150. else
  10151. echo "$as_me: failed program was:" >&5
  10152. sed 's/^/| /' conftest.$ac_ext >&5
  10153. eval "$as_ac_var=no"
  10154. fi
  10155. rm -f conftest.err conftest.$ac_objext \
  10156. conftest$ac_exeext conftest.$ac_ext
  10157. fi
  10158. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10159. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10160. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10161. cat >>confdefs.h <<_ACEOF
  10162. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10163. _ACEOF
  10164. fi
  10165. done
  10166. #autoscan suggested this....
  10167. #These are recommended by autoscan, but no code supports it currently
  10168. #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])
  10169. for ac_func in vsprintf
  10170. do
  10171. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10172. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10173. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10174. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10175. echo $ECHO_N "(cached) $ECHO_C" >&6
  10176. else
  10177. cat >conftest.$ac_ext <<_ACEOF
  10178. /* confdefs.h. */
  10179. _ACEOF
  10180. cat confdefs.h >>conftest.$ac_ext
  10181. cat >>conftest.$ac_ext <<_ACEOF
  10182. /* end confdefs.h. */
  10183. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10184. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10185. #define $ac_func innocuous_$ac_func
  10186. /* System header to define __stub macros and hopefully few prototypes,
  10187. which can conflict with char $ac_func (); below.
  10188. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10189. <limits.h> exists even on freestanding compilers. */
  10190. #ifdef __STDC__
  10191. # include <limits.h>
  10192. #else
  10193. # include <assert.h>
  10194. #endif
  10195. #undef $ac_func
  10196. /* Override any gcc2 internal prototype to avoid an error. */
  10197. #ifdef __cplusplus
  10198. extern "C"
  10199. {
  10200. #endif
  10201. /* We use char because int might match the return type of a gcc2
  10202. builtin and then its argument prototype would still apply. */
  10203. char $ac_func ();
  10204. /* The GNU C library defines this for functions which it implements
  10205. to always fail with ENOSYS. Some functions are actually named
  10206. something starting with __ and the normal name is an alias. */
  10207. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10208. choke me
  10209. #else
  10210. char (*f) () = $ac_func;
  10211. #endif
  10212. #ifdef __cplusplus
  10213. }
  10214. #endif
  10215. int
  10216. main ()
  10217. {
  10218. return f != $ac_func;
  10219. ;
  10220. return 0;
  10221. }
  10222. _ACEOF
  10223. rm -f conftest.$ac_objext conftest$ac_exeext
  10224. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10225. (eval $ac_link) 2>conftest.er1
  10226. ac_status=$?
  10227. grep -v '^ *+' conftest.er1 >conftest.err
  10228. rm -f conftest.er1
  10229. cat conftest.err >&5
  10230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10231. (exit $ac_status); } &&
  10232. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10233. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10234. (eval $ac_try) 2>&5
  10235. ac_status=$?
  10236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10237. (exit $ac_status); }; } &&
  10238. { ac_try='test -s conftest$ac_exeext'
  10239. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10240. (eval $ac_try) 2>&5
  10241. ac_status=$?
  10242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10243. (exit $ac_status); }; }; then
  10244. eval "$as_ac_var=yes"
  10245. else
  10246. echo "$as_me: failed program was:" >&5
  10247. sed 's/^/| /' conftest.$ac_ext >&5
  10248. eval "$as_ac_var=no"
  10249. fi
  10250. rm -f conftest.err conftest.$ac_objext \
  10251. conftest$ac_exeext conftest.$ac_ext
  10252. fi
  10253. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10254. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10255. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10256. cat >>confdefs.h <<_ACEOF
  10257. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10258. _ACEOF
  10259. fi
  10260. done
  10261. if test "$ac_cv_func_vsprintf" = "no"
  10262. then
  10263. cat << 'EOF' >&2
  10264. configure: error:
  10265. Your system does not have the sprintf/vsprintf libraries.
  10266. These are required to compile almost anything. Sorry.
  10267. EOF
  10268. exit 1
  10269. fi
  10270. for ac_func in uname
  10271. do
  10272. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10273. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10274. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10275. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10276. echo $ECHO_N "(cached) $ECHO_C" >&6
  10277. else
  10278. cat >conftest.$ac_ext <<_ACEOF
  10279. /* confdefs.h. */
  10280. _ACEOF
  10281. cat confdefs.h >>conftest.$ac_ext
  10282. cat >>conftest.$ac_ext <<_ACEOF
  10283. /* end confdefs.h. */
  10284. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10285. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10286. #define $ac_func innocuous_$ac_func
  10287. /* System header to define __stub macros and hopefully few prototypes,
  10288. which can conflict with char $ac_func (); below.
  10289. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10290. <limits.h> exists even on freestanding compilers. */
  10291. #ifdef __STDC__
  10292. # include <limits.h>
  10293. #else
  10294. # include <assert.h>
  10295. #endif
  10296. #undef $ac_func
  10297. /* Override any gcc2 internal prototype to avoid an error. */
  10298. #ifdef __cplusplus
  10299. extern "C"
  10300. {
  10301. #endif
  10302. /* We use char because int might match the return type of a gcc2
  10303. builtin and then its argument prototype would still apply. */
  10304. char $ac_func ();
  10305. /* The GNU C library defines this for functions which it implements
  10306. to always fail with ENOSYS. Some functions are actually named
  10307. something starting with __ and the normal name is an alias. */
  10308. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10309. choke me
  10310. #else
  10311. char (*f) () = $ac_func;
  10312. #endif
  10313. #ifdef __cplusplus
  10314. }
  10315. #endif
  10316. int
  10317. main ()
  10318. {
  10319. return f != $ac_func;
  10320. ;
  10321. return 0;
  10322. }
  10323. _ACEOF
  10324. rm -f conftest.$ac_objext conftest$ac_exeext
  10325. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10326. (eval $ac_link) 2>conftest.er1
  10327. ac_status=$?
  10328. grep -v '^ *+' conftest.er1 >conftest.err
  10329. rm -f conftest.er1
  10330. cat conftest.err >&5
  10331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10332. (exit $ac_status); } &&
  10333. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10334. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10335. (eval $ac_try) 2>&5
  10336. ac_status=$?
  10337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10338. (exit $ac_status); }; } &&
  10339. { ac_try='test -s conftest$ac_exeext'
  10340. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10341. (eval $ac_try) 2>&5
  10342. ac_status=$?
  10343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10344. (exit $ac_status); }; }; then
  10345. eval "$as_ac_var=yes"
  10346. else
  10347. echo "$as_me: failed program was:" >&5
  10348. sed 's/^/| /' conftest.$ac_ext >&5
  10349. eval "$as_ac_var=no"
  10350. fi
  10351. rm -f conftest.err conftest.$ac_objext \
  10352. conftest$ac_exeext conftest.$ac_ext
  10353. fi
  10354. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10355. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10356. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10357. cat >>confdefs.h <<_ACEOF
  10358. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10359. _ACEOF
  10360. fi
  10361. done
  10362. if test "$ac_cv_func_uname" = "no"
  10363. then
  10364. cat << 'EOF' >&2
  10365. configure: error:
  10366. Your system does not have the uname() function.
  10367. This is required for the botpack.
  10368. EOF
  10369. exit 1
  10370. fi
  10371. # Make sure we have stdc headers, since we can't compile without them
  10372. if test "$ac_cv_header_stdc" = "no"
  10373. then
  10374. cat << 'EOF' >&2
  10375. configure: error:
  10376. Your system must support ANSI C Header files.
  10377. These are required for the language support. Sorry.
  10378. EOF
  10379. exit 1
  10380. fi
  10381. #checkpoint
  10382. cat >confcache <<\_ACEOF
  10383. # This file is a shell script that caches the results of configure
  10384. # tests run on this system so they can be shared between configure
  10385. # scripts and configure runs, see configure's option --config-cache.
  10386. # It is not useful on other systems. If it contains results you don't
  10387. # want to keep, you may remove or edit it.
  10388. #
  10389. # config.status only pays attention to the cache file if you give it
  10390. # the --recheck option to rerun configure.
  10391. #
  10392. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10393. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10394. # following values.
  10395. _ACEOF
  10396. # The following way of writing the cache mishandles newlines in values,
  10397. # but we know of no workaround that is simple, portable, and efficient.
  10398. # So, don't put newlines in cache variables' values.
  10399. # Ultrix sh set writes to stderr and can't be redirected directly,
  10400. # and sets the high bit in the cache file unless we assign to the vars.
  10401. {
  10402. (set) 2>&1 |
  10403. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10404. *ac_space=\ *)
  10405. # `set' does not quote correctly, so add quotes (double-quote
  10406. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10407. sed -n \
  10408. "s/'/'\\\\''/g;
  10409. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10410. ;;
  10411. *)
  10412. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10413. sed -n \
  10414. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10415. ;;
  10416. esac;
  10417. } |
  10418. sed '
  10419. t clear
  10420. : clear
  10421. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10422. t end
  10423. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10424. : end' >>confcache
  10425. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10426. if test -w $cache_file; then
  10427. test "x$cache_file" != "x/dev/null"
  10428. cat confcache >$cache_file
  10429. else
  10430. echo "not updating unwritable cache $cache_file"
  10431. fi
  10432. fi
  10433. rm -f confcache
  10434. # Where is Tcl? Is it here?
  10435. # ---------- begin robey's Tcl thingies
  10436. # (well, what used to be robey's Tcl thingies...)
  10437. # Latest tested Tcl version to recommend if Tcl isn't found
  10438. tclrecommendver="8.4"
  10439. # Site recommended to download Tcl from
  10440. tclrecommendsite="http://www.tcl.tk/software/tcltk/download84.html"
  10441. # Tcl library filename prefixes (also used for Tcl header dir on FreeBSD)
  10442. tcllibnames="tcl tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 tcl8.1 tcl81 \
  10443. tcl8.0 tcl80"
  10444. # Tcl library filename suffixes
  10445. tcllibextensions=".a .so .so.1 .so.1.0 .so.1.2 .sl .dll .dylib"
  10446. # Tcl library search paths
  10447. tcllibpaths="${HOME}/lib ${HOME}/tcl/lib ${HOME} \
  10448. /usr/local/lib /usr/local/pkgs/tcl/lib \
  10449. /usr/lib /lib /usr/i486-linuxaout/lib \
  10450. /beos/system/lib /sys/lib"
  10451. # Tcl header filenames
  10452. tclheadernames="tcl.h"
  10453. # Tcl header search paths
  10454. tclheaderpaths="${HOME}/include ${HOME}/tcl/include ${HOME} \
  10455. /usr/local/include /usr/local/pkgs/tcl/include \
  10456. /usr/include /beos/system/include /beos/devel/include \
  10457. /sys/include"
  10458. # oohh new configure --variables for those with multiple Tcl libs
  10459. # Check whether --with-tcllib or --without-tcllib was given.
  10460. if test "${with_tcllib+set}" = set; then
  10461. withval="$with_tcllib"
  10462. tcllibname="$withval"
  10463. fi;
  10464. # Check whether --with-tclinc or --without-tclinc was given.
  10465. if test "${with_tclinc+set}" = set; then
  10466. withval="$with_tclinc"
  10467. tclincname="$withval"
  10468. fi;
  10469. WARN=0
  10470. # Make sure either both or neither $tcllibname and $tclincname are set
  10471. if test ! "${tcllibname-x}" = "x"
  10472. then
  10473. if test "${tclincname-x}" = "x"
  10474. then
  10475. WARN=1
  10476. tcllibname=""
  10477. TCLLIB=""
  10478. TCLINC=""
  10479. fi
  10480. else
  10481. if test ! "${tclincname-x}" = "x"
  10482. then
  10483. WARN=1
  10484. tclincname=""
  10485. TCLLIB=""
  10486. TCLINC=""
  10487. fi
  10488. fi
  10489. if test "$WARN" = 1
  10490. then
  10491. cat << 'EOF' >&2
  10492. configure: warning:
  10493. You must specify both --with-tcllib and --with-tclinc for them to work.
  10494. configure will now attempt to autodetect both the Tcl library and header...
  10495. EOF
  10496. fi
  10497. WARN=0
  10498. # Make sure either both or neither $TCLLIB and $TCLINC are set
  10499. if test ! "${TCLLIB-x}" = "x"
  10500. then
  10501. if test "${TCLINC-x}" = "x"
  10502. then
  10503. WARN=1
  10504. WVAR1=TCLLIB
  10505. WVAR2=TCLINC
  10506. TCLLIB=""
  10507. fi
  10508. else
  10509. if test ! "${TCLINC-x}" = "x"
  10510. then
  10511. WARN=1
  10512. WVAR1=TCLINC
  10513. WVAR2=TCLLIB
  10514. TCLINC=""
  10515. fi
  10516. fi
  10517. if test "$WARN" = 1
  10518. then
  10519. cat << EOF >&2
  10520. configure: warning:
  10521. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  10522. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  10523. configure will now attempt to autodetect both the Tcl library and header...
  10524. EOF
  10525. fi
  10526. # Look for Tcl library: if $tcllibname is set, check there first
  10527. if test ! "${tcllibname-x}" = "x"
  10528. then
  10529. if test -f "$tcllibname" && test -r "$tcllibname"
  10530. then
  10531. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  10532. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  10533. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  10534. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  10535. else
  10536. cat << EOF >&2
  10537. configure: warning:
  10538. The file '$tcllibname' given to option --with-tcllib is not valid.
  10539. configure will now attempt to autodetect both the Tcl library and header...
  10540. EOF
  10541. tcllibname=""
  10542. tclincname=""
  10543. TCLLIB=""
  10544. TCLLIBFN=""
  10545. TCLINC=""
  10546. TCLINCFN=""
  10547. fi
  10548. fi
  10549. # Look for Tcl header: if $tclincname is set, check there first
  10550. if test ! "${tclincname-x}" = "x"
  10551. then
  10552. if test -f "$tclincname" && test -r "$tclincname"
  10553. then
  10554. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  10555. TCLINCFN=`$BASENAME $tclincname`
  10556. else
  10557. cat << EOF >&2
  10558. configure: warning:
  10559. The file '$tclincname' given to option --with-tclinc is not valid.
  10560. configure will now attempt to autodetect both the Tcl library and header...
  10561. EOF
  10562. tcllibname=""
  10563. tclincname=""
  10564. TCLLIB=""
  10565. TCLLIBFN=""
  10566. TCLINC=""
  10567. TCLINCFN=""
  10568. fi
  10569. fi
  10570. # Look for Tcl library: if $TCLLIB is set, check there first
  10571. if test "${TCLLIBFN-x}" = "x"
  10572. then
  10573. if test ! "${TCLLIB-x}" = "x"
  10574. then
  10575. if test -d "$TCLLIB"
  10576. then
  10577. for tcllibfns in $tcllibnames
  10578. do
  10579. for tcllibext in $tcllibextensions
  10580. do
  10581. if test -r "$TCLLIB/lib$tcllibfns$tcllibext"
  10582. then
  10583. TCLLIBFN="$tcllibfns$tcllibext"
  10584. TCLLIBEXT="$tcllibext"
  10585. TCLLIBFNS="$tcllibfns"
  10586. break 2
  10587. fi
  10588. done
  10589. done
  10590. fi
  10591. if test "${TCLLIBFN-x}" = "x"
  10592. then
  10593. cat << 'EOF' >&2
  10594. configure: warning:
  10595. Environment variable TCLLIB was set, but incorrect.
  10596. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  10597. configure will now attempt to autodetect both the Tcl library and header...
  10598. EOF
  10599. TCLLIB=""
  10600. TCLLIBFN=""
  10601. TCLINC=""
  10602. TCLINCFN=""
  10603. fi
  10604. fi
  10605. fi
  10606. # Look for Tcl header: if $TCLINC is set, check there first
  10607. if test "${TCLINCFN-x}" = "x"
  10608. then
  10609. if test ! "${TCLINC-x}" = "x"
  10610. then
  10611. if test -d "$TCLINC"
  10612. then
  10613. for tclheaderfn in $tclheadernames
  10614. do
  10615. if test -r "$TCLINC/$tclheaderfn"
  10616. then
  10617. TCLINCFN="$tclheaderfn"
  10618. break
  10619. fi
  10620. done
  10621. fi
  10622. if test "${TCLINCFN-x}" = "x"
  10623. then
  10624. cat << 'EOF' >&2
  10625. configure: warning:
  10626. Environment variable TCLINC was set, but incorrect.
  10627. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  10628. configure will now attempt to autodetect both the Tcl library and header...
  10629. EOF
  10630. TCLLIB=""
  10631. TCLLIBFN=""
  10632. TCLINC=""
  10633. TCLINCFN=""
  10634. fi
  10635. fi
  10636. fi
  10637. echo "$as_me:$LINENO: checking for Tcl library" >&5
  10638. echo $ECHO_N "checking for Tcl library... $ECHO_C" >&6
  10639. # Attempt autodetect for $TCLLIBFN if it's not set
  10640. if test ! "${TCLLIBFN-x}" = "x"
  10641. then
  10642. echo "$as_me:$LINENO: result: using $TCLLIB/lib$TCLLIBFN" >&5
  10643. echo "${ECHO_T}using $TCLLIB/lib$TCLLIBFN" >&6
  10644. else
  10645. for tcllibfns in $tcllibnames
  10646. do
  10647. for tcllibext in $tcllibextensions
  10648. do
  10649. for tcllibpath in $tcllibpaths
  10650. do
  10651. if test -r "$tcllibpath/lib$tcllibfns$tcllibext"
  10652. then
  10653. echo "$as_me:$LINENO: result: found $tcllibpath/lib$tcllibfns$tcllibext" >&5
  10654. echo "${ECHO_T}found $tcllibpath/lib$tcllibfns$tcllibext" >&6
  10655. TCLLIB="$tcllibpath"
  10656. TCLLIBFN="$tcllibfns$tcllibext"
  10657. TCLLIBEXT="$tcllibext"
  10658. TCLLIBFNS="$tcllibfns"
  10659. break 3
  10660. fi
  10661. done
  10662. done
  10663. done
  10664. fi
  10665. # Show if $TCLLIBFN wasn't found
  10666. if test "${TCLLIBFN-x}" = "x"
  10667. then
  10668. echo "$as_me:$LINENO: result: not found" >&5
  10669. echo "${ECHO_T}not found" >&6
  10670. fi
  10671. echo "$as_me:$LINENO: checking for Tcl header" >&5
  10672. echo $ECHO_N "checking for Tcl header... $ECHO_C" >&6
  10673. # Attempt autodetect for $TCLINCFN if it's not set
  10674. if test ! "${TCLINCFN-x}" = "x"
  10675. then
  10676. echo "$as_me:$LINENO: result: using $TCLINC/$TCLINCFN" >&5
  10677. echo "${ECHO_T}using $TCLINC/$TCLINCFN" >&6
  10678. else
  10679. for tclheaderpath in $tclheaderpaths
  10680. do
  10681. for tclheaderfn in $tclheadernames
  10682. do
  10683. if test -r "$tclheaderpath/$tclheaderfn"
  10684. then
  10685. echo "$as_me:$LINENO: result: found $tclheaderpath/$tclheaderfn" >&5
  10686. echo "${ECHO_T}found $tclheaderpath/$tclheaderfn" >&6
  10687. TCLINC="$tclheaderpath"
  10688. TCLINCFN="$tclheaderfn"
  10689. break 2
  10690. fi
  10691. done
  10692. done
  10693. # FreeBSD hack ...
  10694. if test "${TCLINCFN-x}" = "x"
  10695. then
  10696. for tcllibfns in $tcllibnames
  10697. do
  10698. for tclheaderpath in $tclheaderpaths
  10699. do
  10700. for tclheaderfn in $tclheadernames
  10701. do
  10702. if test -r "$tclheaderpath/$tcllibfns/$tclheaderfn"
  10703. then
  10704. echo "$as_me:$LINENO: result: found $tclheaderpath/$tcllibfns/$tclheaderfn" >&5
  10705. echo "${ECHO_T}found $tclheaderpath/$tcllibfns/$tclheaderfn" >&6
  10706. TCLINC="$tclheaderpath/$tcllibfns"
  10707. TCLINCFN="$tclheaderfn"
  10708. break 3
  10709. fi
  10710. done
  10711. done
  10712. done
  10713. fi
  10714. fi
  10715. # Show if $TCLINCFN wasn't found
  10716. if test "${TCLINCFN-x}" = "x"
  10717. then
  10718. echo "$as_me:$LINENO: result: not found" >&5
  10719. echo "${ECHO_T}not found" >&6
  10720. fi
  10721. echo "$as_me:$LINENO: checking whether the Tcl system has changed" >&5
  10722. echo $ECHO_N "checking whether the Tcl system has changed... $ECHO_C" >&6
  10723. egg_tcl_changed=yes
  10724. egg_tcl_id="$TCLLIB:$TCLLIBFN:$TCLINC:$TCLINCFN"
  10725. if test ! "$egg_tcl_id" = ":::"
  10726. then
  10727. egg_tcl_cached=yes
  10728. if test "${egg_cv_var_tcl_id+set}" = set; then
  10729. echo $ECHO_N "(cached) $ECHO_C" >&6
  10730. else
  10731. egg_cv_var_tcl_id="$egg_tcl_id"
  10732. egg_tcl_cached=no
  10733. fi
  10734. if test "$egg_tcl_cached" = "yes"
  10735. then
  10736. if test "${egg_cv_var_tcl_id-x}" = "${egg_tcl_id-x}"
  10737. then
  10738. egg_tcl_changed=no
  10739. else
  10740. egg_cv_var_tcl_id="$egg_tcl_id"
  10741. fi
  10742. fi
  10743. fi
  10744. if test "$egg_tcl_changed" = "yes"
  10745. then
  10746. echo "$as_me:$LINENO: result: yes" >&5
  10747. echo "${ECHO_T}yes" >&6
  10748. else
  10749. echo "$as_me:$LINENO: result: no" >&5
  10750. echo "${ECHO_T}no" >&6
  10751. fi
  10752. #checkpoint
  10753. cat >confcache <<\_ACEOF
  10754. # This file is a shell script that caches the results of configure
  10755. # tests run on this system so they can be shared between configure
  10756. # scripts and configure runs, see configure's option --config-cache.
  10757. # It is not useful on other systems. If it contains results you don't
  10758. # want to keep, you may remove or edit it.
  10759. #
  10760. # config.status only pays attention to the cache file if you give it
  10761. # the --recheck option to rerun configure.
  10762. #
  10763. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10764. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10765. # following values.
  10766. _ACEOF
  10767. # The following way of writing the cache mishandles newlines in values,
  10768. # but we know of no workaround that is simple, portable, and efficient.
  10769. # So, don't put newlines in cache variables' values.
  10770. # Ultrix sh set writes to stderr and can't be redirected directly,
  10771. # and sets the high bit in the cache file unless we assign to the vars.
  10772. {
  10773. (set) 2>&1 |
  10774. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10775. *ac_space=\ *)
  10776. # `set' does not quote correctly, so add quotes (double-quote
  10777. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10778. sed -n \
  10779. "s/'/'\\\\''/g;
  10780. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10781. ;;
  10782. *)
  10783. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10784. sed -n \
  10785. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10786. ;;
  10787. esac;
  10788. } |
  10789. sed '
  10790. t clear
  10791. : clear
  10792. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10793. t end
  10794. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10795. : end' >>confcache
  10796. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10797. if test -w $cache_file; then
  10798. test "x$cache_file" != "x/dev/null"
  10799. cat confcache >$cache_file
  10800. else
  10801. echo "not updating unwritable cache $cache_file"
  10802. fi
  10803. fi
  10804. rm -f confcache
  10805. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  10806. TCL_FOUND=0
  10807. if test ! "${TCLLIBFN-x}" = "x" && test ! "${TCLINCFN-x}" = "x"
  10808. then
  10809. TCL_FOUND=1
  10810. # Check Tcl's version
  10811. if test "$egg_tcl_changed" = "yes"
  10812. then
  10813. unset egg_cv_var_tcl_version
  10814. fi
  10815. echo "$as_me:$LINENO: checking for Tcl version" >&5
  10816. echo $ECHO_N "checking for Tcl version... $ECHO_C" >&6
  10817. if test "${egg_cv_var_tcl_version+set}" = set; then
  10818. echo $ECHO_N "(cached) $ECHO_C" >&6
  10819. else
  10820. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`
  10821. fi
  10822. if test ! "${egg_cv_var_tcl_version-x}" = "x"
  10823. then
  10824. echo "$as_me:$LINENO: result: $egg_cv_var_tcl_version" >&5
  10825. echo "${ECHO_T}$egg_cv_var_tcl_version" >&6
  10826. else
  10827. echo "$as_me:$LINENO: result: not found" >&5
  10828. echo "${ECHO_T}not found" >&6
  10829. TCL_FOUND=0
  10830. fi
  10831. # Check Tcl's patch level (if available)
  10832. if test "$egg_tcl_changed" = "yes"
  10833. then
  10834. unset egg_cv_var_tcl_patch_level
  10835. fi
  10836. echo "$as_me:$LINENO: checking for Tcl patch level" >&5
  10837. echo $ECHO_N "checking for Tcl patch level... $ECHO_C" >&6
  10838. if test "${egg_cv_var_tcl_patch_level+set}" = set; then
  10839. echo $ECHO_N "(cached) $ECHO_C" >&6
  10840. else
  10841. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`"
  10842. fi
  10843. if test ! "${egg_cv_var_tcl_patch_level-x}" = "x"
  10844. then
  10845. echo "$as_me:$LINENO: result: $egg_cv_var_tcl_patch_level" >&5
  10846. echo "${ECHO_T}$egg_cv_var_tcl_patch_level" >&6
  10847. else
  10848. egg_cv_var_tcl_patch_level="unknown"
  10849. echo "$as_me:$LINENO: result: unknown" >&5
  10850. echo "${ECHO_T}unknown" >&6
  10851. fi
  10852. fi
  10853. # Check if we found Tcl's version
  10854. if test "$TCL_FOUND" = 0
  10855. then
  10856. cat << 'EOF' >&2
  10857. configure: error:
  10858. I can't find Tcl on this system.
  10859. The download website is at:
  10860. http://www.tcl.tk/software/tcltk/download84.html
  10861. A nice direct link for the tarball is:
  10862. http://aleron.dl.sourceforge.net/sourceforge/tcl/tcl8.4.4-src.tar.gz
  10863. OR
  10864. Just type: ./build -T
  10865. EOF
  10866. exit 1
  10867. fi
  10868. # Is this version of Tcl too old for us to use ?
  10869. TCL_VER_PRE80=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 8) print "yes"; else print "no"}'`
  10870. if test "$TCL_VER_PRE80" = "yes"
  10871. then
  10872. cat << EOF >&2
  10873. configure: error:
  10874. Your Tcl version is much too old for Eggdrop to use.
  10875. I suggest you download and compile a more recent version.
  10876. The most reliable current version is $tclrecommendver and
  10877. can be downloaded from $tclrecommendsite
  10878. EOF
  10879. exit 1
  10880. fi
  10881. # Set variables for Tcl library tests
  10882. TCL_TEST_LIB="$TCLLIBFNS"
  10883. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  10884. if test ! "${ac_cv_lib_pthread-x}" = "x"
  10885. then
  10886. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  10887. fi
  10888. if test "$egg_tcl_changed" = "yes"
  10889. then
  10890. unset egg_cv_var_tcl_free
  10891. fi
  10892. # Check for Tcl_Free()
  10893. as_ac_Lib=`echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_Free" | $as_tr_sh`
  10894. echo "$as_me:$LINENO: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  10895. echo $ECHO_N "checking for Tcl_Free in -l$TCL_TEST_LIB... $ECHO_C" >&6
  10896. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  10897. echo $ECHO_N "(cached) $ECHO_C" >&6
  10898. else
  10899. ac_check_lib_save_LIBS=$LIBS
  10900. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  10901. cat >conftest.$ac_ext <<_ACEOF
  10902. /* confdefs.h. */
  10903. _ACEOF
  10904. cat confdefs.h >>conftest.$ac_ext
  10905. cat >>conftest.$ac_ext <<_ACEOF
  10906. /* end confdefs.h. */
  10907. /* Override any gcc2 internal prototype to avoid an error. */
  10908. #ifdef __cplusplus
  10909. extern "C"
  10910. #endif
  10911. /* We use char because int might match the return type of a gcc2
  10912. builtin and then its argument prototype would still apply. */
  10913. char Tcl_Free ();
  10914. int
  10915. main ()
  10916. {
  10917. Tcl_Free ();
  10918. ;
  10919. return 0;
  10920. }
  10921. _ACEOF
  10922. rm -f conftest.$ac_objext conftest$ac_exeext
  10923. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10924. (eval $ac_link) 2>conftest.er1
  10925. ac_status=$?
  10926. grep -v '^ *+' conftest.er1 >conftest.err
  10927. rm -f conftest.er1
  10928. cat conftest.err >&5
  10929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10930. (exit $ac_status); } &&
  10931. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10932. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10933. (eval $ac_try) 2>&5
  10934. ac_status=$?
  10935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10936. (exit $ac_status); }; } &&
  10937. { ac_try='test -s conftest$ac_exeext'
  10938. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10939. (eval $ac_try) 2>&5
  10940. ac_status=$?
  10941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10942. (exit $ac_status); }; }; then
  10943. eval "$as_ac_Lib=yes"
  10944. else
  10945. echo "$as_me: failed program was:" >&5
  10946. sed 's/^/| /' conftest.$ac_ext >&5
  10947. eval "$as_ac_Lib=no"
  10948. fi
  10949. rm -f conftest.err conftest.$ac_objext \
  10950. conftest$ac_exeext conftest.$ac_ext
  10951. LIBS=$ac_check_lib_save_LIBS
  10952. fi
  10953. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  10954. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  10955. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  10956. egg_cv_var_tcl_free="yes"
  10957. else
  10958. egg_cv_var_tcl_free="no"
  10959. fi
  10960. if test "$egg_cv_var_tcl_free" = "yes"
  10961. then
  10962. cat >>confdefs.h <<\_ACEOF
  10963. #define HAVE_TCL_FREE 1
  10964. _ACEOF
  10965. fi
  10966. if test "$egg_tcl_changed" = "yes"
  10967. then
  10968. unset egg_cv_var_tcl_threaded
  10969. fi
  10970. # Check for TclpFinalizeThreadData()
  10971. as_ac_Lib=`echo "ac_cv_lib_$TCL_TEST_LIB''_TclpFinalizeThreadData" | $as_tr_sh`
  10972. echo "$as_me:$LINENO: checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB" >&5
  10973. echo $ECHO_N "checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB... $ECHO_C" >&6
  10974. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  10975. echo $ECHO_N "(cached) $ECHO_C" >&6
  10976. else
  10977. ac_check_lib_save_LIBS=$LIBS
  10978. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  10979. cat >conftest.$ac_ext <<_ACEOF
  10980. /* confdefs.h. */
  10981. _ACEOF
  10982. cat confdefs.h >>conftest.$ac_ext
  10983. cat >>conftest.$ac_ext <<_ACEOF
  10984. /* end confdefs.h. */
  10985. /* Override any gcc2 internal prototype to avoid an error. */
  10986. #ifdef __cplusplus
  10987. extern "C"
  10988. #endif
  10989. /* We use char because int might match the return type of a gcc2
  10990. builtin and then its argument prototype would still apply. */
  10991. char TclpFinalizeThreadData ();
  10992. int
  10993. main ()
  10994. {
  10995. TclpFinalizeThreadData ();
  10996. ;
  10997. return 0;
  10998. }
  10999. _ACEOF
  11000. rm -f conftest.$ac_objext conftest$ac_exeext
  11001. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11002. (eval $ac_link) 2>conftest.er1
  11003. ac_status=$?
  11004. grep -v '^ *+' conftest.er1 >conftest.err
  11005. rm -f conftest.er1
  11006. cat conftest.err >&5
  11007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11008. (exit $ac_status); } &&
  11009. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11010. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11011. (eval $ac_try) 2>&5
  11012. ac_status=$?
  11013. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11014. (exit $ac_status); }; } &&
  11015. { ac_try='test -s conftest$ac_exeext'
  11016. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11017. (eval $ac_try) 2>&5
  11018. ac_status=$?
  11019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11020. (exit $ac_status); }; }; then
  11021. eval "$as_ac_Lib=yes"
  11022. else
  11023. echo "$as_me: failed program was:" >&5
  11024. sed 's/^/| /' conftest.$ac_ext >&5
  11025. eval "$as_ac_Lib=no"
  11026. fi
  11027. rm -f conftest.err conftest.$ac_objext \
  11028. conftest$ac_exeext conftest.$ac_ext
  11029. LIBS=$ac_check_lib_save_LIBS
  11030. fi
  11031. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  11032. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  11033. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  11034. egg_cv_var_tcl_threaded="yes"
  11035. else
  11036. egg_cv_var_tcl_threaded="no"
  11037. fi
  11038. enable_tcl_threads=no
  11039. if test "$egg_cv_var_tcl_threaded" = "yes"
  11040. then
  11041. if test "$enable_tcl_threads" = "no"
  11042. then
  11043. cat << 'EOF' >&2
  11044. configure: warning:
  11045. You have disabled threads support on a system with a threaded Tcl library.
  11046. Tcl features that rely on scheduled events may not function properly.
  11047. EOF
  11048. fi
  11049. # Add pthread library to $LIBS if we need it
  11050. if test ! "${ac_cv_lib_pthread-x}" = "x"
  11051. then
  11052. LIBS="$ac_cv_lib_pthread $LIBS"
  11053. fi
  11054. fi
  11055. if test "$EGG_CYGWIN" = "yes"
  11056. then
  11057. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  11058. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  11059. else
  11060. if test ! "$TCLLIBEXT" = ".a"
  11061. then
  11062. cat << 'EOF' >&2
  11063. configure: warning:
  11064. Your Tcl library is not compiled statically.
  11065. You will need to compile Tcl statically to successfully compile wraith.
  11066. EOF
  11067. exit 1
  11068. else
  11069. # Was the --with-tcllib option given ?
  11070. if test ! "${tcllibname-x}" = "x"
  11071. then
  11072. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  11073. TCL_LIBS="$TCLLIB/lib$TCLLIBFN $EGG_MATH_LIB"
  11074. else
  11075. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  11076. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  11077. fi
  11078. fi
  11079. fi
  11080. ac_config_commands="$ac_config_commands replace-if-changed"
  11081. #checkpoint
  11082. cat >confcache <<\_ACEOF
  11083. # This file is a shell script that caches the results of configure
  11084. # tests run on this system so they can be shared between configure
  11085. # scripts and configure runs, see configure's option --config-cache.
  11086. # It is not useful on other systems. If it contains results you don't
  11087. # want to keep, you may remove or edit it.
  11088. #
  11089. # config.status only pays attention to the cache file if you give it
  11090. # the --recheck option to rerun configure.
  11091. #
  11092. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11093. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11094. # following values.
  11095. _ACEOF
  11096. # The following way of writing the cache mishandles newlines in values,
  11097. # but we know of no workaround that is simple, portable, and efficient.
  11098. # So, don't put newlines in cache variables' values.
  11099. # Ultrix sh set writes to stderr and can't be redirected directly,
  11100. # and sets the high bit in the cache file unless we assign to the vars.
  11101. {
  11102. (set) 2>&1 |
  11103. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11104. *ac_space=\ *)
  11105. # `set' does not quote correctly, so add quotes (double-quote
  11106. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11107. sed -n \
  11108. "s/'/'\\\\''/g;
  11109. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11110. ;;
  11111. *)
  11112. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11113. sed -n \
  11114. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11115. ;;
  11116. esac;
  11117. } |
  11118. sed '
  11119. t clear
  11120. : clear
  11121. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11122. t end
  11123. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11124. : end' >>confcache
  11125. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11126. if test -w $cache_file; then
  11127. test "x$cache_file" != "x/dev/null"
  11128. cat confcache >$cache_file
  11129. else
  11130. echo "not updating unwritable cache $cache_file"
  11131. fi
  11132. fi
  11133. rm -f confcache
  11134. # ---------- end of (what used to be) robey's Tcl thingies
  11135. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  11136. NUMVER=`grep "int" $srcdir/src/main.c | $AWK '/egg_numver =/ {print $5}' | sed -e 's/\;//g'`
  11137. if ! test -f $srcdir/pack/pack.cfg; then
  11138. cat << 'EOF' >&2
  11139. configure: error:
  11140. Your pack cfg is missing, please copy it to $srcdir/pack/pack.cfg
  11141. EOF
  11142. exit 1
  11143. fi
  11144. PACKNAME=`grep "PACKNAME " $srcdir/pack/pack.cfg | $AWK '/PACKNAME/ {print $2}'`
  11145. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  11146. cat >>confdefs.h <<_ACEOF
  11147. #define EGG_VERSION $version_num
  11148. _ACEOF
  11149. case "$srcdir" in
  11150. [\\/]* | ?:[\\/]*)
  11151. MOD_UPDIR=""
  11152. ;;
  11153. *)
  11154. MOD_UPDIR="../"
  11155. ;;
  11156. esac
  11157. ac_config_commands="$ac_config_commands catch-make-rebuild"
  11158. files="src/Makefile.in src/compat/Makefile.in src/mod/channels.mod/Makefile src/mod/compress.mod/Makefile src/mod/console.mod/Makefile src/mod/ctcp.mod/Makefile src/mod/dns.mod/Makefile.in src/mod/irc.mod/Makefile src/mod/notes.mod/Makefile src/mod/server.mod/Makefile src/mod/share.mod/Makefile src/mod/transfer.mod/Makefile src/mod/update.mod/Makefile"
  11159. for mf in $files; do
  11160. # Strip MF so we end up with the name of the file.
  11161. # echo "MF: $mf"
  11162. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11163. dirpart=`(dirname "$mf") 2>/dev/null ||
  11164. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11165. X"$mf" : 'X\(//\)[^/]' \| \
  11166. X"$mf" : 'X\(//\)$' \| \
  11167. X"$mf" : 'X\(/\)' \| \
  11168. . : '\(.\)' 2>/dev/null ||
  11169. echo X"$mf" |
  11170. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11171. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11172. /^X\(\/\/\)$/{ s//\1/; q; }
  11173. /^X\(\/\).*/{ s//\1/; q; }
  11174. s/.*/./; q'`
  11175. # echo "dirpart: $dirpart mf: $mf"
  11176. rm -rf "$dirpart/.deps/"
  11177. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  11178. for file in `sed -n -e '
  11179. /^OBJS = .*\\\\$/ {
  11180. s/^OBJS = //
  11181. :loop s/\\\\$//
  11182. p
  11183. n
  11184. /\\\\$/ b loop
  11185. p
  11186. }
  11187. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  11188. do
  11189. base=`basename $file .o`
  11190. test -f "$dirpart/$base.c" || continue
  11191. # fdir=`AS_DIRNAME(["$file"])`
  11192. # AS_MKDIR_P([$dirpart/$fdir])
  11193. # echo "creating $dirpart/.deps/$base.Po"
  11194. echo '# dummy' > "$dirpart/.deps/$base.Po"
  11195. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  11196. done
  11197. done
  11198. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/mod/Makefile"
  11199. cat >confcache <<\_ACEOF
  11200. # This file is a shell script that caches the results of configure
  11201. # tests run on this system so they can be shared between configure
  11202. # scripts and configure runs, see configure's option --config-cache.
  11203. # It is not useful on other systems. If it contains results you don't
  11204. # want to keep, you may remove or edit it.
  11205. #
  11206. # config.status only pays attention to the cache file if you give it
  11207. # the --recheck option to rerun configure.
  11208. #
  11209. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11210. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11211. # following values.
  11212. _ACEOF
  11213. # The following way of writing the cache mishandles newlines in values,
  11214. # but we know of no workaround that is simple, portable, and efficient.
  11215. # So, don't put newlines in cache variables' values.
  11216. # Ultrix sh set writes to stderr and can't be redirected directly,
  11217. # and sets the high bit in the cache file unless we assign to the vars.
  11218. {
  11219. (set) 2>&1 |
  11220. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11221. *ac_space=\ *)
  11222. # `set' does not quote correctly, so add quotes (double-quote
  11223. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11224. sed -n \
  11225. "s/'/'\\\\''/g;
  11226. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11227. ;;
  11228. *)
  11229. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11230. sed -n \
  11231. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11232. ;;
  11233. esac;
  11234. } |
  11235. sed '
  11236. t clear
  11237. : clear
  11238. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11239. t end
  11240. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11241. : end' >>confcache
  11242. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11243. if test -w $cache_file; then
  11244. test "x$cache_file" != "x/dev/null"
  11245. cat confcache >$cache_file
  11246. else
  11247. echo "not updating unwritable cache $cache_file"
  11248. fi
  11249. fi
  11250. rm -f confcache
  11251. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11252. # Let make expand exec_prefix.
  11253. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11254. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11255. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11256. # trailing colons and then remove the whole line if VPATH becomes empty
  11257. # (actually we leave an empty line to preserve line numbers).
  11258. if test "x$srcdir" = x.; then
  11259. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11260. s/:*\$(srcdir):*/:/;
  11261. s/:*\${srcdir}:*/:/;
  11262. s/:*@srcdir@:*/:/;
  11263. s/^\([^=]*=[ ]*\):*/\1/;
  11264. s/:*$//;
  11265. s/^[^=]*=[ ]*$//;
  11266. }'
  11267. fi
  11268. DEFS=-DHAVE_CONFIG_H
  11269. ac_libobjs=
  11270. ac_ltlibobjs=
  11271. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11272. # 1. Remove the extension, and $U if already installed.
  11273. ac_i=`echo "$ac_i" |
  11274. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  11275. # 2. Add them.
  11276. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  11277. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  11278. done
  11279. LIBOBJS=$ac_libobjs
  11280. LTLIBOBJS=$ac_ltlibobjs
  11281. : ${CONFIG_STATUS=./config.status}
  11282. ac_clean_files_save=$ac_clean_files
  11283. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11284. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  11285. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11286. cat >$CONFIG_STATUS <<_ACEOF
  11287. #! $SHELL
  11288. # Generated by $as_me.
  11289. # Run this file to recreate the current configuration.
  11290. # Compiler output produced by configure, useful for debugging
  11291. # configure, is in config.log if it exists.
  11292. debug=false
  11293. ac_cs_recheck=false
  11294. ac_cs_silent=false
  11295. SHELL=\${CONFIG_SHELL-$SHELL}
  11296. _ACEOF
  11297. cat >>$CONFIG_STATUS <<\_ACEOF
  11298. ## --------------------- ##
  11299. ## M4sh Initialization. ##
  11300. ## --------------------- ##
  11301. # Be Bourne compatible
  11302. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  11303. emulate sh
  11304. NULLCMD=:
  11305. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  11306. # is contrary to our usage. Disable this feature.
  11307. alias -g '${1+"$@"}'='"$@"'
  11308. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  11309. set -o posix
  11310. fi
  11311. DUALCASE=1; export DUALCASE # for MKS sh
  11312. # Support unset when possible.
  11313. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11314. as_unset=unset
  11315. else
  11316. as_unset=false
  11317. fi
  11318. # Work around bugs in pre-3.0 UWIN ksh.
  11319. $as_unset ENV MAIL MAILPATH
  11320. PS1='$ '
  11321. PS2='> '
  11322. PS4='+ '
  11323. # NLS nuisances.
  11324. for as_var in \
  11325. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  11326. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  11327. LC_TELEPHONE LC_TIME
  11328. do
  11329. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  11330. eval $as_var=C; export $as_var
  11331. else
  11332. $as_unset $as_var
  11333. fi
  11334. done
  11335. # Required to use basename.
  11336. if expr a : '\(a\)' >/dev/null 2>&1; then
  11337. as_expr=expr
  11338. else
  11339. as_expr=false
  11340. fi
  11341. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  11342. as_basename=basename
  11343. else
  11344. as_basename=false
  11345. fi
  11346. # Name of the executable.
  11347. as_me=`$as_basename "$0" ||
  11348. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11349. X"$0" : 'X\(//\)$' \| \
  11350. X"$0" : 'X\(/\)$' \| \
  11351. . : '\(.\)' 2>/dev/null ||
  11352. echo X/"$0" |
  11353. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  11354. /^X\/\(\/\/\)$/{ s//\1/; q; }
  11355. /^X\/\(\/\).*/{ s//\1/; q; }
  11356. s/.*/./; q'`
  11357. # PATH needs CR, and LINENO needs CR and PATH.
  11358. # Avoid depending upon Character Ranges.
  11359. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11360. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11361. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11362. as_cr_digits='0123456789'
  11363. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11364. # The user is always right.
  11365. if test "${PATH_SEPARATOR+set}" != set; then
  11366. echo "#! /bin/sh" >conf$$.sh
  11367. echo "exit 0" >>conf$$.sh
  11368. chmod +x conf$$.sh
  11369. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11370. PATH_SEPARATOR=';'
  11371. else
  11372. PATH_SEPARATOR=:
  11373. fi
  11374. rm -f conf$$.sh
  11375. fi
  11376. as_lineno_1=$LINENO
  11377. as_lineno_2=$LINENO
  11378. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11379. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11380. test "x$as_lineno_3" = "x$as_lineno_2" || {
  11381. # Find who we are. Look in the path if we contain no path at all
  11382. # relative or not.
  11383. case $0 in
  11384. *[\\/]* ) as_myself=$0 ;;
  11385. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11386. for as_dir in $PATH
  11387. do
  11388. IFS=$as_save_IFS
  11389. test -z "$as_dir" && as_dir=.
  11390. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11391. done
  11392. ;;
  11393. esac
  11394. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11395. # in which case we are not to be found in the path.
  11396. if test "x$as_myself" = x; then
  11397. as_myself=$0
  11398. fi
  11399. if test ! -f "$as_myself"; then
  11400. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  11401. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  11402. { (exit 1); exit 1; }; }
  11403. fi
  11404. case $CONFIG_SHELL in
  11405. '')
  11406. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11407. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  11408. do
  11409. IFS=$as_save_IFS
  11410. test -z "$as_dir" && as_dir=.
  11411. for as_base in sh bash ksh sh5; do
  11412. case $as_dir in
  11413. /*)
  11414. if ("$as_dir/$as_base" -c '
  11415. as_lineno_1=$LINENO
  11416. as_lineno_2=$LINENO
  11417. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11418. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11419. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  11420. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  11421. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  11422. CONFIG_SHELL=$as_dir/$as_base
  11423. export CONFIG_SHELL
  11424. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  11425. fi;;
  11426. esac
  11427. done
  11428. done
  11429. ;;
  11430. esac
  11431. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11432. # uniformly replaced by the line number. The first 'sed' inserts a
  11433. # line-number line before each line; the second 'sed' does the real
  11434. # work. The second script uses 'N' to pair each line-number line
  11435. # with the numbered line, and appends trailing '-' during
  11436. # substitution so that $LINENO is not a special case at line end.
  11437. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11438. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  11439. sed '=' <$as_myself |
  11440. sed '
  11441. N
  11442. s,$,-,
  11443. : loop
  11444. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  11445. t loop
  11446. s,-$,,
  11447. s,^['$as_cr_digits']*\n,,
  11448. ' >$as_me.lineno &&
  11449. chmod +x $as_me.lineno ||
  11450. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  11451. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  11452. { (exit 1); exit 1; }; }
  11453. # Don't try to exec as it changes $[0], causing all sort of problems
  11454. # (the dirname of $[0] is not the place where we might find the
  11455. # original and so on. Autoconf is especially sensible to this).
  11456. . ./$as_me.lineno
  11457. # Exit status is that of the last command.
  11458. exit
  11459. }
  11460. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  11461. *c*,-n*) ECHO_N= ECHO_C='
  11462. ' ECHO_T=' ' ;;
  11463. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  11464. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  11465. esac
  11466. if expr a : '\(a\)' >/dev/null 2>&1; then
  11467. as_expr=expr
  11468. else
  11469. as_expr=false
  11470. fi
  11471. rm -f conf$$ conf$$.exe conf$$.file
  11472. echo >conf$$.file
  11473. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11474. # We could just check for DJGPP; but this test a) works b) is more generic
  11475. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  11476. if test -f conf$$.exe; then
  11477. # Don't use ln at all; we don't have any links
  11478. as_ln_s='cp -p'
  11479. else
  11480. as_ln_s='ln -s'
  11481. fi
  11482. elif ln conf$$.file conf$$ 2>/dev/null; then
  11483. as_ln_s=ln
  11484. else
  11485. as_ln_s='cp -p'
  11486. fi
  11487. rm -f conf$$ conf$$.exe conf$$.file
  11488. if mkdir -p . 2>/dev/null; then
  11489. as_mkdir_p=:
  11490. else
  11491. test -d ./-p && rmdir ./-p
  11492. as_mkdir_p=false
  11493. fi
  11494. as_executable_p="test -f"
  11495. # Sed expression to map a string onto a valid CPP name.
  11496. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11497. # Sed expression to map a string onto a valid variable name.
  11498. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11499. # IFS
  11500. # We need space, tab and new line, in precisely that order.
  11501. as_nl='
  11502. '
  11503. IFS=" $as_nl"
  11504. # CDPATH.
  11505. $as_unset CDPATH
  11506. exec 6>&1
  11507. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  11508. # report actual input values of CONFIG_FILES etc. instead of their
  11509. # values after options handling. Logging --version etc. is OK.
  11510. exec 5>>config.log
  11511. {
  11512. echo
  11513. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11514. ## Running $as_me. ##
  11515. _ASBOX
  11516. } >&5
  11517. cat >&5 <<_CSEOF
  11518. This file was extended by $as_me, which was
  11519. generated by GNU Autoconf 2.59. Invocation command line was
  11520. CONFIG_FILES = $CONFIG_FILES
  11521. CONFIG_HEADERS = $CONFIG_HEADERS
  11522. CONFIG_LINKS = $CONFIG_LINKS
  11523. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11524. $ $0 $@
  11525. _CSEOF
  11526. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  11527. echo >&5
  11528. _ACEOF
  11529. # Files that config.status was made for.
  11530. if test -n "$ac_config_files"; then
  11531. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  11532. fi
  11533. if test -n "$ac_config_headers"; then
  11534. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  11535. fi
  11536. if test -n "$ac_config_links"; then
  11537. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  11538. fi
  11539. if test -n "$ac_config_commands"; then
  11540. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  11541. fi
  11542. cat >>$CONFIG_STATUS <<\_ACEOF
  11543. ac_cs_usage="\
  11544. \`$as_me' instantiates files from templates according to the
  11545. current configuration.
  11546. Usage: $0 [OPTIONS] [FILE]...
  11547. -h, --help print this help, then exit
  11548. -V, --version print version number, then exit
  11549. -q, --quiet do not print progress messages
  11550. -d, --debug don't remove temporary files
  11551. --recheck update $as_me by reconfiguring in the same conditions
  11552. --file=FILE[:TEMPLATE]
  11553. instantiate the configuration file FILE
  11554. --header=FILE[:TEMPLATE]
  11555. instantiate the configuration header FILE
  11556. Configuration files:
  11557. $config_files
  11558. Configuration headers:
  11559. $config_headers
  11560. Configuration commands:
  11561. $config_commands
  11562. Report bugs to <bug-autoconf@gnu.org>."
  11563. _ACEOF
  11564. cat >>$CONFIG_STATUS <<_ACEOF
  11565. ac_cs_version="\\
  11566. config.status
  11567. configured by $0, generated by GNU Autoconf 2.59,
  11568. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  11569. Copyright (C) 2003 Free Software Foundation, Inc.
  11570. This config.status script is free software; the Free Software Foundation
  11571. gives unlimited permission to copy, distribute and modify it."
  11572. srcdir=$srcdir
  11573. _ACEOF
  11574. cat >>$CONFIG_STATUS <<\_ACEOF
  11575. # If no file are specified by the user, then we need to provide default
  11576. # value. By we need to know if files were specified by the user.
  11577. ac_need_defaults=:
  11578. while test $# != 0
  11579. do
  11580. case $1 in
  11581. --*=*)
  11582. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  11583. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  11584. ac_shift=:
  11585. ;;
  11586. -*)
  11587. ac_option=$1
  11588. ac_optarg=$2
  11589. ac_shift=shift
  11590. ;;
  11591. *) # This is not an option, so the user has probably given explicit
  11592. # arguments.
  11593. ac_option=$1
  11594. ac_need_defaults=false;;
  11595. esac
  11596. case $ac_option in
  11597. # Handling of the options.
  11598. _ACEOF
  11599. cat >>$CONFIG_STATUS <<\_ACEOF
  11600. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11601. ac_cs_recheck=: ;;
  11602. --version | --vers* | -V )
  11603. echo "$ac_cs_version"; exit 0 ;;
  11604. --he | --h)
  11605. # Conflict between --help and --header
  11606. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  11607. Try \`$0 --help' for more information." >&5
  11608. echo "$as_me: error: ambiguous option: $1
  11609. Try \`$0 --help' for more information." >&2;}
  11610. { (exit 1); exit 1; }; };;
  11611. --help | --hel | -h )
  11612. echo "$ac_cs_usage"; exit 0 ;;
  11613. --debug | --d* | -d )
  11614. debug=: ;;
  11615. --file | --fil | --fi | --f )
  11616. $ac_shift
  11617. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11618. ac_need_defaults=false;;
  11619. --header | --heade | --head | --hea )
  11620. $ac_shift
  11621. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11622. ac_need_defaults=false;;
  11623. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11624. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11625. ac_cs_silent=: ;;
  11626. # This is an error.
  11627. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  11628. Try \`$0 --help' for more information." >&5
  11629. echo "$as_me: error: unrecognized option: $1
  11630. Try \`$0 --help' for more information." >&2;}
  11631. { (exit 1); exit 1; }; } ;;
  11632. *) ac_config_targets="$ac_config_targets $1" ;;
  11633. esac
  11634. shift
  11635. done
  11636. ac_configure_extra_args=
  11637. if $ac_cs_silent; then
  11638. exec 6>/dev/null
  11639. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11640. fi
  11641. _ACEOF
  11642. cat >>$CONFIG_STATUS <<_ACEOF
  11643. if \$ac_cs_recheck; then
  11644. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11645. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11646. fi
  11647. _ACEOF
  11648. cat >>$CONFIG_STATUS <<_ACEOF
  11649. #
  11650. # INIT-COMMANDS section.
  11651. #
  11652. egg_tclinc="$TCLINC"
  11653. egg_tclincfn="$TCLINCFN"
  11654. _ACEOF
  11655. cat >>$CONFIG_STATUS <<\_ACEOF
  11656. for ac_config_target in $ac_config_targets
  11657. do
  11658. case "$ac_config_target" in
  11659. # Handling of arguments.
  11660. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11661. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11662. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  11663. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  11664. "replace-if-changed" ) CONFIG_COMMANDS="$CONFIG_COMMANDS replace-if-changed" ;;
  11665. "catch-make-rebuild" ) CONFIG_COMMANDS="$CONFIG_COMMANDS catch-make-rebuild" ;;
  11666. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11667. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11668. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11669. { (exit 1); exit 1; }; };;
  11670. esac
  11671. done
  11672. # If the user did not use the arguments to specify the items to instantiate,
  11673. # then the envvar interface is used. Set only those that are not.
  11674. # We use the long form for the default assignment because of an extremely
  11675. # bizarre bug on SunOS 4.1.3.
  11676. if $ac_need_defaults; then
  11677. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11678. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11679. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11680. fi
  11681. # Have a temporary directory for convenience. Make it in the build tree
  11682. # simply because there is no reason to put it here, and in addition,
  11683. # creating and moving files from /tmp can sometimes cause problems.
  11684. # Create a temporary directory, and hook for its removal unless debugging.
  11685. $debug ||
  11686. {
  11687. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11688. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11689. }
  11690. # Create a (secure) tmp directory for tmp files.
  11691. {
  11692. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11693. test -n "$tmp" && test -d "$tmp"
  11694. } ||
  11695. {
  11696. tmp=./confstat$$-$RANDOM
  11697. (umask 077 && mkdir $tmp)
  11698. } ||
  11699. {
  11700. echo "$me: cannot create a temporary directory in ." >&2
  11701. { (exit 1); exit 1; }
  11702. }
  11703. _ACEOF
  11704. cat >>$CONFIG_STATUS <<_ACEOF
  11705. #
  11706. # CONFIG_FILES section.
  11707. #
  11708. # No need to generate the scripts if there are no CONFIG_FILES.
  11709. # This happens for instance when ./config.status config.h
  11710. if test -n "\$CONFIG_FILES"; then
  11711. # Protect against being on the right side of a sed subst in config.status.
  11712. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11713. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11714. s,@SHELL@,$SHELL,;t t
  11715. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11716. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11717. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11718. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11719. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11720. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11721. s,@exec_prefix@,$exec_prefix,;t t
  11722. s,@prefix@,$prefix,;t t
  11723. s,@program_transform_name@,$program_transform_name,;t t
  11724. s,@bindir@,$bindir,;t t
  11725. s,@sbindir@,$sbindir,;t t
  11726. s,@libexecdir@,$libexecdir,;t t
  11727. s,@datadir@,$datadir,;t t
  11728. s,@sysconfdir@,$sysconfdir,;t t
  11729. s,@sharedstatedir@,$sharedstatedir,;t t
  11730. s,@localstatedir@,$localstatedir,;t t
  11731. s,@libdir@,$libdir,;t t
  11732. s,@includedir@,$includedir,;t t
  11733. s,@oldincludedir@,$oldincludedir,;t t
  11734. s,@infodir@,$infodir,;t t
  11735. s,@mandir@,$mandir,;t t
  11736. s,@build_alias@,$build_alias,;t t
  11737. s,@host_alias@,$host_alias,;t t
  11738. s,@target_alias@,$target_alias,;t t
  11739. s,@DEFS@,$DEFS,;t t
  11740. s,@ECHO_C@,$ECHO_C,;t t
  11741. s,@ECHO_N@,$ECHO_N,;t t
  11742. s,@ECHO_T@,$ECHO_T,;t t
  11743. s,@LIBS@,$LIBS,;t t
  11744. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  11745. s,@CC@,$CC,;t t
  11746. s,@CFLAGS@,$CFLAGS,;t t
  11747. s,@LDFLAGS@,$LDFLAGS,;t t
  11748. s,@CPPFLAGS@,$CPPFLAGS,;t t
  11749. s,@ac_ct_CC@,$ac_ct_CC,;t t
  11750. s,@EXEEXT@,$EXEEXT,;t t
  11751. s,@OBJEXT@,$OBJEXT,;t t
  11752. s,@CPP@,$CPP,;t t
  11753. s,@EGREP@,$EGREP,;t t
  11754. s,@CCDEBUG@,$CCDEBUG,;t t
  11755. s,@SET_MAKE@,$SET_MAKE,;t t
  11756. s,@HEAD_1@,$HEAD_1,;t t
  11757. s,@STRIP@,$STRIP,;t t
  11758. s,@AWK@,$AWK,;t t
  11759. s,@BASENAME@,$BASENAME,;t t
  11760. s,@UNAME@,$UNAME,;t t
  11761. s,@ZLIB@,$ZLIB,;t t
  11762. s,@SSL@,$SSL,;t t
  11763. s,@LIBOBJS@,$LIBOBJS,;t t
  11764. s,@TCLLIB@,$TCLLIB,;t t
  11765. s,@TCLLIBFN@,$TCLLIBFN,;t t
  11766. s,@TCLINC@,$TCLINC,;t t
  11767. s,@TCLINCFN@,$TCLINCFN,;t t
  11768. s,@TCL_REQS@,$TCL_REQS,;t t
  11769. s,@TCL_LIBS@,$TCL_LIBS,;t t
  11770. s,@VERSION@,$VERSION,;t t
  11771. s,@NUMVER@,$NUMVER,;t t
  11772. s,@PACKNAME@,$PACKNAME,;t t
  11773. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  11774. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11775. CEOF
  11776. _ACEOF
  11777. cat >>$CONFIG_STATUS <<\_ACEOF
  11778. # Split the substitutions into bite-sized pieces for seds with
  11779. # small command number limits, like on Digital OSF/1 and HP-UX.
  11780. ac_max_sed_lines=48
  11781. ac_sed_frag=1 # Number of current file.
  11782. ac_beg=1 # First line for current file.
  11783. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11784. ac_more_lines=:
  11785. ac_sed_cmds=
  11786. while $ac_more_lines; do
  11787. if test $ac_beg -gt 1; then
  11788. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11789. else
  11790. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11791. fi
  11792. if test ! -s $tmp/subs.frag; then
  11793. ac_more_lines=false
  11794. else
  11795. # The purpose of the label and of the branching condition is to
  11796. # speed up the sed processing (if there are no `@' at all, there
  11797. # is no need to browse any of the substitutions).
  11798. # These are the two extra sed commands mentioned above.
  11799. (echo ':t
  11800. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11801. if test -z "$ac_sed_cmds"; then
  11802. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11803. else
  11804. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11805. fi
  11806. ac_sed_frag=`expr $ac_sed_frag + 1`
  11807. ac_beg=$ac_end
  11808. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11809. fi
  11810. done
  11811. if test -z "$ac_sed_cmds"; then
  11812. ac_sed_cmds=cat
  11813. fi
  11814. fi # test -n "$CONFIG_FILES"
  11815. _ACEOF
  11816. cat >>$CONFIG_STATUS <<\_ACEOF
  11817. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11818. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11819. case $ac_file in
  11820. - | *:- | *:-:* ) # input from stdin
  11821. cat >$tmp/stdin
  11822. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11823. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11824. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11825. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11826. * ) ac_file_in=$ac_file.in ;;
  11827. esac
  11828. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11829. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11830. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11831. X"$ac_file" : 'X\(//\)[^/]' \| \
  11832. X"$ac_file" : 'X\(//\)$' \| \
  11833. X"$ac_file" : 'X\(/\)' \| \
  11834. . : '\(.\)' 2>/dev/null ||
  11835. echo X"$ac_file" |
  11836. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11837. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11838. /^X\(\/\/\)$/{ s//\1/; q; }
  11839. /^X\(\/\).*/{ s//\1/; q; }
  11840. s/.*/./; q'`
  11841. { if $as_mkdir_p; then
  11842. mkdir -p "$ac_dir"
  11843. else
  11844. as_dir="$ac_dir"
  11845. as_dirs=
  11846. while test ! -d "$as_dir"; do
  11847. as_dirs="$as_dir $as_dirs"
  11848. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11849. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11850. X"$as_dir" : 'X\(//\)[^/]' \| \
  11851. X"$as_dir" : 'X\(//\)$' \| \
  11852. X"$as_dir" : 'X\(/\)' \| \
  11853. . : '\(.\)' 2>/dev/null ||
  11854. echo X"$as_dir" |
  11855. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11856. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11857. /^X\(\/\/\)$/{ s//\1/; q; }
  11858. /^X\(\/\).*/{ s//\1/; q; }
  11859. s/.*/./; q'`
  11860. done
  11861. test ! -n "$as_dirs" || mkdir $as_dirs
  11862. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11863. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11864. { (exit 1); exit 1; }; }; }
  11865. ac_builddir=.
  11866. if test "$ac_dir" != .; then
  11867. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11868. # A "../" for each directory in $ac_dir_suffix.
  11869. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11870. else
  11871. ac_dir_suffix= ac_top_builddir=
  11872. fi
  11873. case $srcdir in
  11874. .) # No --srcdir option. We are building in place.
  11875. ac_srcdir=.
  11876. if test -z "$ac_top_builddir"; then
  11877. ac_top_srcdir=.
  11878. else
  11879. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11880. fi ;;
  11881. [\\/]* | ?:[\\/]* ) # Absolute path.
  11882. ac_srcdir=$srcdir$ac_dir_suffix;
  11883. ac_top_srcdir=$srcdir ;;
  11884. *) # Relative path.
  11885. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11886. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11887. esac
  11888. # Do not use `cd foo && pwd` to compute absolute paths, because
  11889. # the directories may not exist.
  11890. case `pwd` in
  11891. .) ac_abs_builddir="$ac_dir";;
  11892. *)
  11893. case "$ac_dir" in
  11894. .) ac_abs_builddir=`pwd`;;
  11895. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11896. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11897. esac;;
  11898. esac
  11899. case $ac_abs_builddir in
  11900. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11901. *)
  11902. case ${ac_top_builddir}. in
  11903. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11904. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11905. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11906. esac;;
  11907. esac
  11908. case $ac_abs_builddir in
  11909. .) ac_abs_srcdir=$ac_srcdir;;
  11910. *)
  11911. case $ac_srcdir in
  11912. .) ac_abs_srcdir=$ac_abs_builddir;;
  11913. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11914. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11915. esac;;
  11916. esac
  11917. case $ac_abs_builddir in
  11918. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11919. *)
  11920. case $ac_top_srcdir in
  11921. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11922. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11923. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11924. esac;;
  11925. esac
  11926. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11927. # use $as_me), people would be surprised to read:
  11928. # /* config.h. Generated by config.status. */
  11929. if test x"$ac_file" = x-; then
  11930. configure_input=
  11931. else
  11932. configure_input="$ac_file. "
  11933. fi
  11934. configure_input=$configure_input"Generated from `echo $ac_file_in |
  11935. sed 's,.*/,,'` by configure."
  11936. # First look for the input files in the build tree, otherwise in the
  11937. # src tree.
  11938. ac_file_inputs=`IFS=:
  11939. for f in $ac_file_in; do
  11940. case $f in
  11941. -) echo $tmp/stdin ;;
  11942. [\\/$]*)
  11943. # Absolute (can't be DOS-style, as IFS=:)
  11944. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11945. echo "$as_me: error: cannot find input file: $f" >&2;}
  11946. { (exit 1); exit 1; }; }
  11947. echo "$f";;
  11948. *) # Relative
  11949. if test -f "$f"; then
  11950. # Build tree
  11951. echo "$f"
  11952. elif test -f "$srcdir/$f"; then
  11953. # Source tree
  11954. echo "$srcdir/$f"
  11955. else
  11956. # /dev/null tree
  11957. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11958. echo "$as_me: error: cannot find input file: $f" >&2;}
  11959. { (exit 1); exit 1; }; }
  11960. fi;;
  11961. esac
  11962. done` || { (exit 1); exit 1; }
  11963. if test x"$ac_file" != x-; then
  11964. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11965. echo "$as_me: creating $ac_file" >&6;}
  11966. rm -f "$ac_file"
  11967. fi
  11968. _ACEOF
  11969. cat >>$CONFIG_STATUS <<_ACEOF
  11970. sed "$ac_vpsub
  11971. $extrasub
  11972. _ACEOF
  11973. cat >>$CONFIG_STATUS <<\_ACEOF
  11974. :t
  11975. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11976. s,@configure_input@,$configure_input,;t t
  11977. s,@srcdir@,$ac_srcdir,;t t
  11978. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  11979. s,@top_srcdir@,$ac_top_srcdir,;t t
  11980. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  11981. s,@builddir@,$ac_builddir,;t t
  11982. s,@abs_builddir@,$ac_abs_builddir,;t t
  11983. s,@top_builddir@,$ac_top_builddir,;t t
  11984. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  11985. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  11986. rm -f $tmp/stdin
  11987. if test x"$ac_file" != x-; then
  11988. mv $tmp/out $ac_file
  11989. else
  11990. cat $tmp/out
  11991. rm -f $tmp/out
  11992. fi
  11993. done
  11994. _ACEOF
  11995. cat >>$CONFIG_STATUS <<\_ACEOF
  11996. #
  11997. # CONFIG_HEADER section.
  11998. #
  11999. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  12000. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  12001. #
  12002. # ac_d sets the value in "#define NAME VALUE" lines.
  12003. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  12004. ac_dB='[ ].*$,\1#\2'
  12005. ac_dC=' '
  12006. ac_dD=',;t'
  12007. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  12008. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  12009. ac_uB='$,\1#\2define\3'
  12010. ac_uC=' '
  12011. ac_uD=',;t'
  12012. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  12013. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  12014. case $ac_file in
  12015. - | *:- | *:-:* ) # input from stdin
  12016. cat >$tmp/stdin
  12017. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12018. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12019. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12020. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12021. * ) ac_file_in=$ac_file.in ;;
  12022. esac
  12023. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  12024. echo "$as_me: creating $ac_file" >&6;}
  12025. # First look for the input files in the build tree, otherwise in the
  12026. # src tree.
  12027. ac_file_inputs=`IFS=:
  12028. for f in $ac_file_in; do
  12029. case $f in
  12030. -) echo $tmp/stdin ;;
  12031. [\\/$]*)
  12032. # Absolute (can't be DOS-style, as IFS=:)
  12033. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12034. echo "$as_me: error: cannot find input file: $f" >&2;}
  12035. { (exit 1); exit 1; }; }
  12036. # Do quote $f, to prevent DOS paths from being IFS'd.
  12037. echo "$f";;
  12038. *) # Relative
  12039. if test -f "$f"; then
  12040. # Build tree
  12041. echo "$f"
  12042. elif test -f "$srcdir/$f"; then
  12043. # Source tree
  12044. echo "$srcdir/$f"
  12045. else
  12046. # /dev/null tree
  12047. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12048. echo "$as_me: error: cannot find input file: $f" >&2;}
  12049. { (exit 1); exit 1; }; }
  12050. fi;;
  12051. esac
  12052. done` || { (exit 1); exit 1; }
  12053. # Remove the trailing spaces.
  12054. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  12055. _ACEOF
  12056. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  12057. # `conftest.undefs', that substitutes the proper values into
  12058. # config.h.in to produce config.h. The first handles `#define'
  12059. # templates, and the second `#undef' templates.
  12060. # And first: Protect against being on the right side of a sed subst in
  12061. # config.status. Protect against being in an unquoted here document
  12062. # in config.status.
  12063. rm -f conftest.defines conftest.undefs
  12064. # Using a here document instead of a string reduces the quoting nightmare.
  12065. # Putting comments in sed scripts is not portable.
  12066. #
  12067. # `end' is used to avoid that the second main sed command (meant for
  12068. # 0-ary CPP macros) applies to n-ary macro definitions.
  12069. # See the Autoconf documentation for `clear'.
  12070. cat >confdef2sed.sed <<\_ACEOF
  12071. s/[\\&,]/\\&/g
  12072. s,[\\$`],\\&,g
  12073. t clear
  12074. : clear
  12075. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  12076. t end
  12077. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  12078. : end
  12079. _ACEOF
  12080. # If some macros were called several times there might be several times
  12081. # the same #defines, which is useless. Nevertheless, we may not want to
  12082. # sort them, since we want the *last* AC-DEFINE to be honored.
  12083. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  12084. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  12085. rm -f confdef2sed.sed
  12086. # This sed command replaces #undef with comments. This is necessary, for
  12087. # example, in the case of _POSIX_SOURCE, which is predefined and required
  12088. # on some systems where configure will not decide to define it.
  12089. cat >>conftest.undefs <<\_ACEOF
  12090. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  12091. _ACEOF
  12092. # Break up conftest.defines because some shells have a limit on the size
  12093. # of here documents, and old seds have small limits too (100 cmds).
  12094. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  12095. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  12096. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  12097. echo ' :' >>$CONFIG_STATUS
  12098. rm -f conftest.tail
  12099. while grep . conftest.defines >/dev/null
  12100. do
  12101. # Write a limited-size here document to $tmp/defines.sed.
  12102. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  12103. # Speed up: don't consider the non `#define' lines.
  12104. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  12105. # Work around the forget-to-reset-the-flag bug.
  12106. echo 't clr' >>$CONFIG_STATUS
  12107. echo ': clr' >>$CONFIG_STATUS
  12108. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  12109. echo 'CEOF
  12110. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  12111. rm -f $tmp/in
  12112. mv $tmp/out $tmp/in
  12113. ' >>$CONFIG_STATUS
  12114. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  12115. rm -f conftest.defines
  12116. mv conftest.tail conftest.defines
  12117. done
  12118. rm -f conftest.defines
  12119. echo ' fi # grep' >>$CONFIG_STATUS
  12120. echo >>$CONFIG_STATUS
  12121. # Break up conftest.undefs because some shells have a limit on the size
  12122. # of here documents, and old seds have small limits too (100 cmds).
  12123. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  12124. rm -f conftest.tail
  12125. while grep . conftest.undefs >/dev/null
  12126. do
  12127. # Write a limited-size here document to $tmp/undefs.sed.
  12128. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  12129. # Speed up: don't consider the non `#undef'
  12130. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  12131. # Work around the forget-to-reset-the-flag bug.
  12132. echo 't clr' >>$CONFIG_STATUS
  12133. echo ': clr' >>$CONFIG_STATUS
  12134. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  12135. echo 'CEOF
  12136. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  12137. rm -f $tmp/in
  12138. mv $tmp/out $tmp/in
  12139. ' >>$CONFIG_STATUS
  12140. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  12141. rm -f conftest.undefs
  12142. mv conftest.tail conftest.undefs
  12143. done
  12144. rm -f conftest.undefs
  12145. cat >>$CONFIG_STATUS <<\_ACEOF
  12146. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12147. # use $as_me), people would be surprised to read:
  12148. # /* config.h. Generated by config.status. */
  12149. if test x"$ac_file" = x-; then
  12150. echo "/* Generated by configure. */" >$tmp/config.h
  12151. else
  12152. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  12153. fi
  12154. cat $tmp/in >>$tmp/config.h
  12155. rm -f $tmp/in
  12156. if test x"$ac_file" != x-; then
  12157. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  12158. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  12159. echo "$as_me: $ac_file is unchanged" >&6;}
  12160. else
  12161. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  12162. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12163. X"$ac_file" : 'X\(//\)[^/]' \| \
  12164. X"$ac_file" : 'X\(//\)$' \| \
  12165. X"$ac_file" : 'X\(/\)' \| \
  12166. . : '\(.\)' 2>/dev/null ||
  12167. echo X"$ac_file" |
  12168. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12169. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12170. /^X\(\/\/\)$/{ s//\1/; q; }
  12171. /^X\(\/\).*/{ s//\1/; q; }
  12172. s/.*/./; q'`
  12173. { if $as_mkdir_p; then
  12174. mkdir -p "$ac_dir"
  12175. else
  12176. as_dir="$ac_dir"
  12177. as_dirs=
  12178. while test ! -d "$as_dir"; do
  12179. as_dirs="$as_dir $as_dirs"
  12180. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12181. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12182. X"$as_dir" : 'X\(//\)[^/]' \| \
  12183. X"$as_dir" : 'X\(//\)$' \| \
  12184. X"$as_dir" : 'X\(/\)' \| \
  12185. . : '\(.\)' 2>/dev/null ||
  12186. echo X"$as_dir" |
  12187. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12188. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12189. /^X\(\/\/\)$/{ s//\1/; q; }
  12190. /^X\(\/\).*/{ s//\1/; q; }
  12191. s/.*/./; q'`
  12192. done
  12193. test ! -n "$as_dirs" || mkdir $as_dirs
  12194. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12195. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12196. { (exit 1); exit 1; }; }; }
  12197. rm -f $ac_file
  12198. mv $tmp/config.h $ac_file
  12199. fi
  12200. else
  12201. cat $tmp/config.h
  12202. rm -f $tmp/config.h
  12203. fi
  12204. done
  12205. _ACEOF
  12206. cat >>$CONFIG_STATUS <<\_ACEOF
  12207. #
  12208. # CONFIG_COMMANDS section.
  12209. #
  12210. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  12211. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  12212. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12213. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  12214. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12215. X"$ac_dest" : 'X\(//\)[^/]' \| \
  12216. X"$ac_dest" : 'X\(//\)$' \| \
  12217. X"$ac_dest" : 'X\(/\)' \| \
  12218. . : '\(.\)' 2>/dev/null ||
  12219. echo X"$ac_dest" |
  12220. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12221. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12222. /^X\(\/\/\)$/{ s//\1/; q; }
  12223. /^X\(\/\).*/{ s//\1/; q; }
  12224. s/.*/./; q'`
  12225. { if $as_mkdir_p; then
  12226. mkdir -p "$ac_dir"
  12227. else
  12228. as_dir="$ac_dir"
  12229. as_dirs=
  12230. while test ! -d "$as_dir"; do
  12231. as_dirs="$as_dir $as_dirs"
  12232. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12233. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12234. X"$as_dir" : 'X\(//\)[^/]' \| \
  12235. X"$as_dir" : 'X\(//\)$' \| \
  12236. X"$as_dir" : 'X\(/\)' \| \
  12237. . : '\(.\)' 2>/dev/null ||
  12238. echo X"$as_dir" |
  12239. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12240. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12241. /^X\(\/\/\)$/{ s//\1/; q; }
  12242. /^X\(\/\).*/{ s//\1/; q; }
  12243. s/.*/./; q'`
  12244. done
  12245. test ! -n "$as_dirs" || mkdir $as_dirs
  12246. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12247. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12248. { (exit 1); exit 1; }; }; }
  12249. ac_builddir=.
  12250. if test "$ac_dir" != .; then
  12251. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  12252. # A "../" for each directory in $ac_dir_suffix.
  12253. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  12254. else
  12255. ac_dir_suffix= ac_top_builddir=
  12256. fi
  12257. case $srcdir in
  12258. .) # No --srcdir option. We are building in place.
  12259. ac_srcdir=.
  12260. if test -z "$ac_top_builddir"; then
  12261. ac_top_srcdir=.
  12262. else
  12263. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  12264. fi ;;
  12265. [\\/]* | ?:[\\/]* ) # Absolute path.
  12266. ac_srcdir=$srcdir$ac_dir_suffix;
  12267. ac_top_srcdir=$srcdir ;;
  12268. *) # Relative path.
  12269. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  12270. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  12271. esac
  12272. # Do not use `cd foo && pwd` to compute absolute paths, because
  12273. # the directories may not exist.
  12274. case `pwd` in
  12275. .) ac_abs_builddir="$ac_dir";;
  12276. *)
  12277. case "$ac_dir" in
  12278. .) ac_abs_builddir=`pwd`;;
  12279. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  12280. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  12281. esac;;
  12282. esac
  12283. case $ac_abs_builddir in
  12284. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  12285. *)
  12286. case ${ac_top_builddir}. in
  12287. .) ac_abs_top_builddir=$ac_abs_builddir;;
  12288. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  12289. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  12290. esac;;
  12291. esac
  12292. case $ac_abs_builddir in
  12293. .) ac_abs_srcdir=$ac_srcdir;;
  12294. *)
  12295. case $ac_srcdir in
  12296. .) ac_abs_srcdir=$ac_abs_builddir;;
  12297. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  12298. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  12299. esac;;
  12300. esac
  12301. case $ac_abs_builddir in
  12302. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  12303. *)
  12304. case $ac_top_srcdir in
  12305. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  12306. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  12307. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  12308. esac;;
  12309. esac
  12310. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  12311. echo "$as_me: executing $ac_dest commands" >&6;}
  12312. case $ac_dest in
  12313. replace-if-changed )
  12314. egg_replace_file="lush.h"
  12315. cat > conftest.out << EOF
  12316. /* Ignore me but do not erase me. I am a kludge. */
  12317. #include "${egg_tclinc}/${egg_tclincfn}"
  12318. EOF
  12319. if test -f "$egg_replace_file" && cmp -s conftest.out $egg_replace_file; then
  12320. echo "lush.h is unchanged"
  12321. else
  12322. echo "creating lush.h"
  12323. mv conftest.out $egg_replace_file
  12324. fi
  12325. rm -f conftest.out
  12326. ;;
  12327. catch-make-rebuild )
  12328. if test -f .modules; then
  12329. $srcdir/misc/modconfig --top_srcdir="$srcdir/src" Makefile
  12330. fi
  12331. ;;
  12332. esac
  12333. done
  12334. _ACEOF
  12335. cat >>$CONFIG_STATUS <<\_ACEOF
  12336. { (exit 0); exit 0; }
  12337. _ACEOF
  12338. chmod +x $CONFIG_STATUS
  12339. ac_clean_files=$ac_clean_files_save
  12340. # configure is writing to config.log, and then calls config.status.
  12341. # config.status does its own redirection, appending to config.log.
  12342. # Unfortunately, on DOS this fails, as config.log is still kept open
  12343. # by configure, so config.status won't be able to write to it; its
  12344. # output is simply discarded. So we exec the FD to /dev/null,
  12345. # effectively closing config.log, so it can be properly (re)opened and
  12346. # appended to by config.status. When coming back to configure, we
  12347. # need to make the FD available again.
  12348. if test "$no_create" != yes; then
  12349. ac_cs_success=:
  12350. ac_config_status_args=
  12351. test "$silent" = yes &&
  12352. ac_config_status_args="$ac_config_status_args --quiet"
  12353. exec 5>/dev/null
  12354. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12355. exec 5>>config.log
  12356. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12357. # would make configure fail if this is the last instruction.
  12358. $ac_cs_success || { (exit 1); exit 1; }
  12359. fi