configure 350 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051
  1. #! /bin/sh
  2. # From configure.ac Revision: 3087 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.61.
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. #
  11. # Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  12. ## --------------------- ##
  13. ## M4sh Initialization. ##
  14. ## --------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  18. emulate sh
  19. NULLCMD=:
  20. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  21. # is contrary to our usage. Disable this feature.
  22. alias -g '${1+"$@"}'='"$@"'
  23. setopt NO_GLOB_SUBST
  24. else
  25. case `(set -o) 2>/dev/null` in
  26. *posix*) set -o posix ;;
  27. esac
  28. fi
  29. # PATH needs CR
  30. # Avoid depending upon Character Ranges.
  31. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  32. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  33. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  34. as_cr_digits='0123456789'
  35. as_cr_alnum=$as_cr_Letters$as_cr_digits
  36. # The user is always right.
  37. if test "${PATH_SEPARATOR+set}" != set; then
  38. echo "#! /bin/sh" >conf$$.sh
  39. echo "exit 0" >>conf$$.sh
  40. chmod +x conf$$.sh
  41. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  42. PATH_SEPARATOR=';'
  43. else
  44. PATH_SEPARATOR=:
  45. fi
  46. rm -f conf$$.sh
  47. fi
  48. # Support unset when possible.
  49. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  50. as_unset=unset
  51. else
  52. as_unset=false
  53. fi
  54. # IFS
  55. # We need space, tab and new line, in precisely that order. Quoting is
  56. # there to prevent editors from complaining about space-tab.
  57. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  58. # splitting by setting IFS to empty value.)
  59. as_nl='
  60. '
  61. IFS=" "" $as_nl"
  62. # Find who we are. Look in the path if we contain no directory separator.
  63. case $0 in
  64. *[\\/]* ) as_myself=$0 ;;
  65. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  66. for as_dir in $PATH
  67. do
  68. IFS=$as_save_IFS
  69. test -z "$as_dir" && as_dir=.
  70. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  71. done
  72. IFS=$as_save_IFS
  73. ;;
  74. esac
  75. # We did not find ourselves, most probably we were run as `sh COMMAND'
  76. # in which case we are not to be found in the path.
  77. if test "x$as_myself" = x; then
  78. as_myself=$0
  79. fi
  80. if test ! -f "$as_myself"; then
  81. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  82. { (exit 1); exit 1; }
  83. fi
  84. # Work around bugs in pre-3.0 UWIN ksh.
  85. for as_var in ENV MAIL MAILPATH
  86. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  87. done
  88. PS1='$ '
  89. PS2='> '
  90. PS4='+ '
  91. # NLS nuisances.
  92. for as_var in \
  93. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  94. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  95. LC_TELEPHONE LC_TIME
  96. do
  97. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  98. eval $as_var=C; export $as_var
  99. else
  100. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  101. fi
  102. done
  103. # Required to use basename.
  104. if expr a : '\(a\)' >/dev/null 2>&1 &&
  105. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  106. as_expr=expr
  107. else
  108. as_expr=false
  109. fi
  110. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  111. as_basename=basename
  112. else
  113. as_basename=false
  114. fi
  115. # Name of the executable.
  116. as_me=`$as_basename -- "$0" ||
  117. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  118. X"$0" : 'X\(//\)$' \| \
  119. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  120. echo X/"$0" |
  121. sed '/^.*\/\([^/][^/]*\)\/*$/{
  122. s//\1/
  123. q
  124. }
  125. /^X\/\(\/\/\)$/{
  126. s//\1/
  127. q
  128. }
  129. /^X\/\(\/\).*/{
  130. s//\1/
  131. q
  132. }
  133. s/.*/./; q'`
  134. # CDPATH.
  135. $as_unset CDPATH
  136. if test "x$CONFIG_SHELL" = x; then
  137. if (eval ":") 2>/dev/null; then
  138. as_have_required=yes
  139. else
  140. as_have_required=no
  141. fi
  142. if test $as_have_required = yes && (eval ":
  143. (as_func_return () {
  144. (exit \$1)
  145. }
  146. as_func_success () {
  147. as_func_return 0
  148. }
  149. as_func_failure () {
  150. as_func_return 1
  151. }
  152. as_func_ret_success () {
  153. return 0
  154. }
  155. as_func_ret_failure () {
  156. return 1
  157. }
  158. exitcode=0
  159. if as_func_success; then
  160. :
  161. else
  162. exitcode=1
  163. echo as_func_success failed.
  164. fi
  165. if as_func_failure; then
  166. exitcode=1
  167. echo as_func_failure succeeded.
  168. fi
  169. if as_func_ret_success; then
  170. :
  171. else
  172. exitcode=1
  173. echo as_func_ret_success failed.
  174. fi
  175. if as_func_ret_failure; then
  176. exitcode=1
  177. echo as_func_ret_failure succeeded.
  178. fi
  179. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  180. :
  181. else
  182. exitcode=1
  183. echo positional parameters were not saved.
  184. fi
  185. test \$exitcode = 0) || { (exit 1); exit 1; }
  186. (
  187. as_lineno_1=\$LINENO
  188. as_lineno_2=\$LINENO
  189. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  190. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  191. ") 2> /dev/null; then
  192. :
  193. else
  194. as_candidate_shells=
  195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  196. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  197. do
  198. IFS=$as_save_IFS
  199. test -z "$as_dir" && as_dir=.
  200. case $as_dir in
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  204. done;;
  205. esac
  206. done
  207. IFS=$as_save_IFS
  208. for as_shell in $as_candidate_shells $SHELL; do
  209. # Try only shells that exist, to save several forks.
  210. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  211. { ("$as_shell") 2> /dev/null <<\_ASEOF
  212. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  213. emulate sh
  214. NULLCMD=:
  215. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  216. # is contrary to our usage. Disable this feature.
  217. alias -g '${1+"$@"}'='"$@"'
  218. setopt NO_GLOB_SUBST
  219. else
  220. case `(set -o) 2>/dev/null` in
  221. *posix*) set -o posix ;;
  222. esac
  223. fi
  224. :
  225. _ASEOF
  226. }; then
  227. CONFIG_SHELL=$as_shell
  228. as_have_required=yes
  229. if { "$as_shell" 2> /dev/null <<\_ASEOF
  230. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  231. emulate sh
  232. NULLCMD=:
  233. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  234. # is contrary to our usage. Disable this feature.
  235. alias -g '${1+"$@"}'='"$@"'
  236. setopt NO_GLOB_SUBST
  237. else
  238. case `(set -o) 2>/dev/null` in
  239. *posix*) set -o posix ;;
  240. esac
  241. fi
  242. :
  243. (as_func_return () {
  244. (exit $1)
  245. }
  246. as_func_success () {
  247. as_func_return 0
  248. }
  249. as_func_failure () {
  250. as_func_return 1
  251. }
  252. as_func_ret_success () {
  253. return 0
  254. }
  255. as_func_ret_failure () {
  256. return 1
  257. }
  258. exitcode=0
  259. if as_func_success; then
  260. :
  261. else
  262. exitcode=1
  263. echo as_func_success failed.
  264. fi
  265. if as_func_failure; then
  266. exitcode=1
  267. echo as_func_failure succeeded.
  268. fi
  269. if as_func_ret_success; then
  270. :
  271. else
  272. exitcode=1
  273. echo as_func_ret_success failed.
  274. fi
  275. if as_func_ret_failure; then
  276. exitcode=1
  277. echo as_func_ret_failure succeeded.
  278. fi
  279. if ( set x; as_func_ret_success y && test x = "$1" ); then
  280. :
  281. else
  282. exitcode=1
  283. echo positional parameters were not saved.
  284. fi
  285. test $exitcode = 0) || { (exit 1); exit 1; }
  286. (
  287. as_lineno_1=$LINENO
  288. as_lineno_2=$LINENO
  289. test "x$as_lineno_1" != "x$as_lineno_2" &&
  290. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  291. _ASEOF
  292. }; then
  293. break
  294. fi
  295. fi
  296. done
  297. if test "x$CONFIG_SHELL" != x; then
  298. for as_var in BASH_ENV ENV
  299. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  300. done
  301. export CONFIG_SHELL
  302. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  303. fi
  304. if test $as_have_required = no; then
  305. echo This script requires a shell more modern than all the
  306. echo shells that I found on your system. Please install a
  307. echo modern shell, or manually run the script under such a
  308. echo shell if you do have one.
  309. { (exit 1); exit 1; }
  310. fi
  311. fi
  312. fi
  313. (eval "as_func_return () {
  314. (exit \$1)
  315. }
  316. as_func_success () {
  317. as_func_return 0
  318. }
  319. as_func_failure () {
  320. as_func_return 1
  321. }
  322. as_func_ret_success () {
  323. return 0
  324. }
  325. as_func_ret_failure () {
  326. return 1
  327. }
  328. exitcode=0
  329. if as_func_success; then
  330. :
  331. else
  332. exitcode=1
  333. echo as_func_success failed.
  334. fi
  335. if as_func_failure; then
  336. exitcode=1
  337. echo as_func_failure succeeded.
  338. fi
  339. if as_func_ret_success; then
  340. :
  341. else
  342. exitcode=1
  343. echo as_func_ret_success failed.
  344. fi
  345. if as_func_ret_failure; then
  346. exitcode=1
  347. echo as_func_ret_failure succeeded.
  348. fi
  349. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  350. :
  351. else
  352. exitcode=1
  353. echo positional parameters were not saved.
  354. fi
  355. test \$exitcode = 0") || {
  356. echo No shell found that supports shell functions.
  357. echo Please tell autoconf@gnu.org about your system,
  358. echo including any error possibly output before this
  359. echo message
  360. }
  361. as_lineno_1=$LINENO
  362. as_lineno_2=$LINENO
  363. test "x$as_lineno_1" != "x$as_lineno_2" &&
  364. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  365. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  366. # uniformly replaced by the line number. The first 'sed' inserts a
  367. # line-number line after each line using $LINENO; the second 'sed'
  368. # does the real work. The second script uses 'N' to pair each
  369. # line-number line with the line containing $LINENO, and appends
  370. # trailing '-' during substitution so that $LINENO is not a special
  371. # case at line end.
  372. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  373. # scripts with optimization help from Paolo Bonzini. Blame Lee
  374. # E. McMahon (1931-1989) for sed's syntax. :-)
  375. sed -n '
  376. p
  377. /[$]LINENO/=
  378. ' <$as_myself |
  379. sed '
  380. s/[$]LINENO.*/&-/
  381. t lineno
  382. b
  383. :lineno
  384. N
  385. :loop
  386. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  387. t loop
  388. s/-\n.*//
  389. ' >$as_me.lineno &&
  390. chmod +x "$as_me.lineno" ||
  391. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  392. { (exit 1); exit 1; }; }
  393. # Don't try to exec as it changes $[0], causing all sort of problems
  394. # (the dirname of $[0] is not the place where we might find the
  395. # original and so on. Autoconf is especially sensitive to this).
  396. . "./$as_me.lineno"
  397. # Exit status is that of the last command.
  398. exit
  399. }
  400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  401. as_dirname=dirname
  402. else
  403. as_dirname=false
  404. fi
  405. ECHO_C= ECHO_N= ECHO_T=
  406. case `echo -n x` in
  407. -n*)
  408. case `echo 'x\c'` in
  409. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  410. *) ECHO_C='\c';;
  411. esac;;
  412. *)
  413. ECHO_N='-n';;
  414. esac
  415. if expr a : '\(a\)' >/dev/null 2>&1 &&
  416. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  417. as_expr=expr
  418. else
  419. as_expr=false
  420. fi
  421. rm -f conf$$ conf$$.exe conf$$.file
  422. if test -d conf$$.dir; then
  423. rm -f conf$$.dir/conf$$.file
  424. else
  425. rm -f conf$$.dir
  426. mkdir conf$$.dir
  427. fi
  428. echo >conf$$.file
  429. if ln -s conf$$.file conf$$ 2>/dev/null; then
  430. as_ln_s='ln -s'
  431. # ... but there are two gotchas:
  432. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  433. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  434. # In both cases, we have to default to `cp -p'.
  435. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  436. as_ln_s='cp -p'
  437. elif ln conf$$.file conf$$ 2>/dev/null; then
  438. as_ln_s=ln
  439. else
  440. as_ln_s='cp -p'
  441. fi
  442. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  443. rmdir conf$$.dir 2>/dev/null
  444. if mkdir -p . 2>/dev/null; then
  445. as_mkdir_p=:
  446. else
  447. test -d ./-p && rmdir ./-p
  448. as_mkdir_p=false
  449. fi
  450. if test -x / >/dev/null 2>&1; then
  451. as_test_x='test -x'
  452. else
  453. if ls -dL / >/dev/null 2>&1; then
  454. as_ls_L_option=L
  455. else
  456. as_ls_L_option=
  457. fi
  458. as_test_x='
  459. eval sh -c '\''
  460. if test -d "$1"; then
  461. test -d "$1/.";
  462. else
  463. case $1 in
  464. -*)set "./$1";;
  465. esac;
  466. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  467. ???[sx]*):;;*)false;;esac;fi
  468. '\'' sh
  469. '
  470. fi
  471. as_executable_p=$as_test_x
  472. # Sed expression to map a string onto a valid CPP name.
  473. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  474. # Sed expression to map a string onto a valid variable name.
  475. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  476. exec 7<&0 </dev/null 6>&1
  477. # Name of the host.
  478. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  479. # so uname gets run too.
  480. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  481. #
  482. # Initializations.
  483. #
  484. ac_default_prefix=/usr/local
  485. ac_clean_files=
  486. ac_config_libobj_dir=.
  487. LIBOBJS=
  488. cross_compiling=no
  489. subdirs=
  490. MFLAGS=
  491. MAKEFLAGS=
  492. SHELL=${CONFIG_SHELL-/bin/sh}
  493. # Identity of this package.
  494. PACKAGE_NAME=
  495. PACKAGE_TARNAME=
  496. PACKAGE_VERSION=
  497. PACKAGE_STRING=
  498. PACKAGE_BUGREPORT=
  499. ac_unique_file="wraith"
  500. ac_unique_file="src/eggdrop.h"
  501. # Factoring default headers for most tests.
  502. ac_includes_default="\
  503. #include <stdio.h>
  504. #ifdef HAVE_SYS_TYPES_H
  505. # include <sys/types.h>
  506. #endif
  507. #ifdef HAVE_SYS_STAT_H
  508. # include <sys/stat.h>
  509. #endif
  510. #ifdef STDC_HEADERS
  511. # include <stdlib.h>
  512. # include <stddef.h>
  513. #else
  514. # ifdef HAVE_STDLIB_H
  515. # include <stdlib.h>
  516. # endif
  517. #endif
  518. #ifdef HAVE_STRING_H
  519. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  520. # include <memory.h>
  521. # endif
  522. # include <string.h>
  523. #endif
  524. #ifdef HAVE_STRINGS_H
  525. # include <strings.h>
  526. #endif
  527. #ifdef HAVE_INTTYPES_H
  528. # include <inttypes.h>
  529. #endif
  530. #ifdef HAVE_STDINT_H
  531. # include <stdint.h>
  532. #endif
  533. #ifdef HAVE_UNISTD_H
  534. # include <unistd.h>
  535. #endif"
  536. ac_header_list=
  537. ac_func_list=
  538. ac_subst_vars='SHELL
  539. PATH_SEPARATOR
  540. PACKAGE_NAME
  541. PACKAGE_TARNAME
  542. PACKAGE_VERSION
  543. PACKAGE_STRING
  544. PACKAGE_BUGREPORT
  545. exec_prefix
  546. prefix
  547. program_transform_name
  548. bindir
  549. sbindir
  550. libexecdir
  551. datarootdir
  552. datadir
  553. sysconfdir
  554. sharedstatedir
  555. localstatedir
  556. includedir
  557. oldincludedir
  558. docdir
  559. infodir
  560. htmldir
  561. dvidir
  562. pdfdir
  563. psdir
  564. libdir
  565. localedir
  566. mandir
  567. DEFS
  568. ECHO_C
  569. ECHO_N
  570. ECHO_T
  571. LIBS
  572. build_alias
  573. host_alias
  574. target_alias
  575. egg_ac_parameters
  576. CXX
  577. CXXFLAGS
  578. LDFLAGS
  579. CPPFLAGS
  580. ac_ct_CXX
  581. EXEEXT
  582. OBJEXT
  583. CXXCPP
  584. GREP
  585. EGREP
  586. CCDEPMODE
  587. GCC3
  588. SET_MAKE
  589. HEAD_1
  590. AWK
  591. BASENAME
  592. OBJCOPY
  593. STRIP
  594. DIFF
  595. UNAME
  596. CCACHE
  597. DISTCC
  598. BUILDOS
  599. BUILDARCH
  600. CCDEBUG
  601. ZLIB
  602. LIBOBJS
  603. VERSION
  604. NUMVER
  605. MOD_UPDIR
  606. LTLIBOBJS'
  607. ac_subst_files=''
  608. ac_precious_vars='build_alias
  609. host_alias
  610. target_alias
  611. CXX
  612. CXXFLAGS
  613. LDFLAGS
  614. LIBS
  615. CPPFLAGS
  616. CCC
  617. CXXCPP'
  618. # Initialize some variables set by options.
  619. ac_init_help=
  620. ac_init_version=false
  621. # The variables have the same names as the options, with
  622. # dashes changed to underlines.
  623. cache_file=./config.cache
  624. exec_prefix=NONE
  625. no_create=
  626. no_recursion=
  627. prefix=NONE
  628. program_prefix=NONE
  629. program_suffix=NONE
  630. program_transform_name=s,x,x,
  631. silent=
  632. site=
  633. srcdir=
  634. verbose=
  635. x_includes=NONE
  636. x_libraries=NONE
  637. # Installation directory options.
  638. # These are left unexpanded so users can "make install exec_prefix=/foo"
  639. # and all the variables that are supposed to be based on exec_prefix
  640. # by default will actually change.
  641. # Use braces instead of parens because sh, perl, etc. also accept them.
  642. # (The list follows the same order as the GNU Coding Standards.)
  643. bindir='${exec_prefix}/bin'
  644. sbindir='${exec_prefix}/sbin'
  645. libexecdir='${exec_prefix}/libexec'
  646. datarootdir='${prefix}/share'
  647. datadir='${datarootdir}'
  648. sysconfdir='${prefix}/etc'
  649. sharedstatedir='${prefix}/com'
  650. localstatedir='${prefix}/var'
  651. includedir='${prefix}/include'
  652. oldincludedir='/usr/include'
  653. docdir='${datarootdir}/doc/${PACKAGE}'
  654. infodir='${datarootdir}/info'
  655. htmldir='${docdir}'
  656. dvidir='${docdir}'
  657. pdfdir='${docdir}'
  658. psdir='${docdir}'
  659. libdir='${exec_prefix}/lib'
  660. localedir='${datarootdir}/locale'
  661. mandir='${datarootdir}/man'
  662. ac_prev=
  663. ac_dashdash=
  664. for ac_option
  665. do
  666. # If the previous option needs an argument, assign it.
  667. if test -n "$ac_prev"; then
  668. eval $ac_prev=\$ac_option
  669. ac_prev=
  670. continue
  671. fi
  672. case $ac_option in
  673. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  674. *) ac_optarg=yes ;;
  675. esac
  676. # Accept the important Cygnus configure options, so we can diagnose typos.
  677. case $ac_dashdash$ac_option in
  678. --)
  679. ac_dashdash=yes ;;
  680. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  681. ac_prev=bindir ;;
  682. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  683. bindir=$ac_optarg ;;
  684. -build | --build | --buil | --bui | --bu)
  685. ac_prev=build_alias ;;
  686. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  687. build_alias=$ac_optarg ;;
  688. -cache-file | --cache-file | --cache-fil | --cache-fi \
  689. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  690. ac_prev=cache_file ;;
  691. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  692. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  693. cache_file=$ac_optarg ;;
  694. --config-cache | -C)
  695. cache_file=config.cache ;;
  696. -datadir | --datadir | --datadi | --datad)
  697. ac_prev=datadir ;;
  698. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  699. datadir=$ac_optarg ;;
  700. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  701. | --dataroo | --dataro | --datar)
  702. ac_prev=datarootdir ;;
  703. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  704. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  705. datarootdir=$ac_optarg ;;
  706. -disable-* | --disable-*)
  707. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  708. # Reject names that are not valid shell variable names.
  709. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  710. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  711. { (exit 1); exit 1; }; }
  712. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  713. eval enable_$ac_feature=no ;;
  714. -docdir | --docdir | --docdi | --doc | --do)
  715. ac_prev=docdir ;;
  716. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  717. docdir=$ac_optarg ;;
  718. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  719. ac_prev=dvidir ;;
  720. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  721. dvidir=$ac_optarg ;;
  722. -enable-* | --enable-*)
  723. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  724. # Reject names that are not valid shell variable names.
  725. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  726. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  727. { (exit 1); exit 1; }; }
  728. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  729. eval enable_$ac_feature=\$ac_optarg ;;
  730. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  731. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  732. | --exec | --exe | --ex)
  733. ac_prev=exec_prefix ;;
  734. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  735. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  736. | --exec=* | --exe=* | --ex=*)
  737. exec_prefix=$ac_optarg ;;
  738. -gas | --gas | --ga | --g)
  739. # Obsolete; use --with-gas.
  740. with_gas=yes ;;
  741. -help | --help | --hel | --he | -h)
  742. ac_init_help=long ;;
  743. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  744. ac_init_help=recursive ;;
  745. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  746. ac_init_help=short ;;
  747. -host | --host | --hos | --ho)
  748. ac_prev=host_alias ;;
  749. -host=* | --host=* | --hos=* | --ho=*)
  750. host_alias=$ac_optarg ;;
  751. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  752. ac_prev=htmldir ;;
  753. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  754. | --ht=*)
  755. htmldir=$ac_optarg ;;
  756. -includedir | --includedir | --includedi | --included | --include \
  757. | --includ | --inclu | --incl | --inc)
  758. ac_prev=includedir ;;
  759. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  760. | --includ=* | --inclu=* | --incl=* | --inc=*)
  761. includedir=$ac_optarg ;;
  762. -infodir | --infodir | --infodi | --infod | --info | --inf)
  763. ac_prev=infodir ;;
  764. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  765. infodir=$ac_optarg ;;
  766. -libdir | --libdir | --libdi | --libd)
  767. ac_prev=libdir ;;
  768. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  769. libdir=$ac_optarg ;;
  770. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  771. | --libexe | --libex | --libe)
  772. ac_prev=libexecdir ;;
  773. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  774. | --libexe=* | --libex=* | --libe=*)
  775. libexecdir=$ac_optarg ;;
  776. -localedir | --localedir | --localedi | --localed | --locale)
  777. ac_prev=localedir ;;
  778. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  779. localedir=$ac_optarg ;;
  780. -localstatedir | --localstatedir | --localstatedi | --localstated \
  781. | --localstate | --localstat | --localsta | --localst | --locals)
  782. ac_prev=localstatedir ;;
  783. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  784. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  785. localstatedir=$ac_optarg ;;
  786. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  787. ac_prev=mandir ;;
  788. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  789. mandir=$ac_optarg ;;
  790. -nfp | --nfp | --nf)
  791. # Obsolete; use --without-fp.
  792. with_fp=no ;;
  793. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  794. | --no-cr | --no-c | -n)
  795. no_create=yes ;;
  796. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  797. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  798. no_recursion=yes ;;
  799. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  800. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  801. | --oldin | --oldi | --old | --ol | --o)
  802. ac_prev=oldincludedir ;;
  803. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  804. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  805. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  806. oldincludedir=$ac_optarg ;;
  807. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  808. ac_prev=prefix ;;
  809. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  810. prefix=$ac_optarg ;;
  811. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  812. | --program-pre | --program-pr | --program-p)
  813. ac_prev=program_prefix ;;
  814. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  815. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  816. program_prefix=$ac_optarg ;;
  817. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  818. | --program-suf | --program-su | --program-s)
  819. ac_prev=program_suffix ;;
  820. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  821. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  822. program_suffix=$ac_optarg ;;
  823. -program-transform-name | --program-transform-name \
  824. | --program-transform-nam | --program-transform-na \
  825. | --program-transform-n | --program-transform- \
  826. | --program-transform | --program-transfor \
  827. | --program-transfo | --program-transf \
  828. | --program-trans | --program-tran \
  829. | --progr-tra | --program-tr | --program-t)
  830. ac_prev=program_transform_name ;;
  831. -program-transform-name=* | --program-transform-name=* \
  832. | --program-transform-nam=* | --program-transform-na=* \
  833. | --program-transform-n=* | --program-transform-=* \
  834. | --program-transform=* | --program-transfor=* \
  835. | --program-transfo=* | --program-transf=* \
  836. | --program-trans=* | --program-tran=* \
  837. | --progr-tra=* | --program-tr=* | --program-t=*)
  838. program_transform_name=$ac_optarg ;;
  839. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  840. ac_prev=pdfdir ;;
  841. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  842. pdfdir=$ac_optarg ;;
  843. -psdir | --psdir | --psdi | --psd | --ps)
  844. ac_prev=psdir ;;
  845. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  846. psdir=$ac_optarg ;;
  847. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  848. | -silent | --silent | --silen | --sile | --sil)
  849. silent=yes ;;
  850. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  851. ac_prev=sbindir ;;
  852. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  853. | --sbi=* | --sb=*)
  854. sbindir=$ac_optarg ;;
  855. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  856. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  857. | --sharedst | --shareds | --shared | --share | --shar \
  858. | --sha | --sh)
  859. ac_prev=sharedstatedir ;;
  860. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  861. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  862. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  863. | --sha=* | --sh=*)
  864. sharedstatedir=$ac_optarg ;;
  865. -site | --site | --sit)
  866. ac_prev=site ;;
  867. -site=* | --site=* | --sit=*)
  868. site=$ac_optarg ;;
  869. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  870. ac_prev=srcdir ;;
  871. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  872. srcdir=$ac_optarg ;;
  873. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  874. | --syscon | --sysco | --sysc | --sys | --sy)
  875. ac_prev=sysconfdir ;;
  876. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  877. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  878. sysconfdir=$ac_optarg ;;
  879. -target | --target | --targe | --targ | --tar | --ta | --t)
  880. ac_prev=target_alias ;;
  881. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  882. target_alias=$ac_optarg ;;
  883. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  884. verbose=yes ;;
  885. -version | --version | --versio | --versi | --vers | -V)
  886. ac_init_version=: ;;
  887. -with-* | --with-*)
  888. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  889. # Reject names that are not valid shell variable names.
  890. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  891. { echo "$as_me: error: invalid package name: $ac_package" >&2
  892. { (exit 1); exit 1; }; }
  893. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  894. eval with_$ac_package=\$ac_optarg ;;
  895. -without-* | --without-*)
  896. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  897. # Reject names that are not valid shell variable names.
  898. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  899. { echo "$as_me: error: invalid package name: $ac_package" >&2
  900. { (exit 1); exit 1; }; }
  901. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  902. eval with_$ac_package=no ;;
  903. --x)
  904. # Obsolete; use --with-x.
  905. with_x=yes ;;
  906. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  907. | --x-incl | --x-inc | --x-in | --x-i)
  908. ac_prev=x_includes ;;
  909. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  910. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  911. x_includes=$ac_optarg ;;
  912. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  913. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  914. ac_prev=x_libraries ;;
  915. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  916. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  917. x_libraries=$ac_optarg ;;
  918. -*) { echo "$as_me: error: unrecognized option: $ac_option
  919. Try \`$0 --help' for more information." >&2
  920. { (exit 1); exit 1; }; }
  921. ;;
  922. *=*)
  923. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  924. # Reject names that are not valid shell variable names.
  925. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  926. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  927. { (exit 1); exit 1; }; }
  928. eval $ac_envvar=\$ac_optarg
  929. export $ac_envvar ;;
  930. *)
  931. # FIXME: should be removed in autoconf 3.0.
  932. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  933. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  934. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  935. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  936. ;;
  937. esac
  938. done
  939. if test -n "$ac_prev"; then
  940. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  941. { echo "$as_me: error: missing argument to $ac_option" >&2
  942. { (exit 1); exit 1; }; }
  943. fi
  944. # Be sure to have absolute directory names.
  945. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  946. datadir sysconfdir sharedstatedir localstatedir includedir \
  947. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  948. libdir localedir mandir
  949. do
  950. eval ac_val=\$$ac_var
  951. case $ac_val in
  952. [\\/$]* | ?:[\\/]* ) continue;;
  953. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  954. esac
  955. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  956. { (exit 1); exit 1; }; }
  957. done
  958. # There might be people who depend on the old broken behavior: `$host'
  959. # used to hold the argument of --host etc.
  960. # FIXME: To remove some day.
  961. build=$build_alias
  962. host=$host_alias
  963. target=$target_alias
  964. # FIXME: To remove some day.
  965. if test "x$host_alias" != x; then
  966. if test "x$build_alias" = x; then
  967. cross_compiling=maybe
  968. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  969. If a cross compiler is detected then cross compile mode will be used." >&2
  970. elif test "x$build_alias" != "x$host_alias"; then
  971. cross_compiling=yes
  972. fi
  973. fi
  974. ac_tool_prefix=
  975. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  976. test "$silent" = yes && exec 6>/dev/null
  977. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  978. ac_ls_di=`ls -di .` &&
  979. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  980. { echo "$as_me: error: Working directory cannot be determined" >&2
  981. { (exit 1); exit 1; }; }
  982. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  983. { echo "$as_me: error: pwd does not report name of working directory" >&2
  984. { (exit 1); exit 1; }; }
  985. # Find the source files, if location was not specified.
  986. if test -z "$srcdir"; then
  987. ac_srcdir_defaulted=yes
  988. # Try the directory containing this script, then the parent directory.
  989. ac_confdir=`$as_dirname -- "$0" ||
  990. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  991. X"$0" : 'X\(//\)[^/]' \| \
  992. X"$0" : 'X\(//\)$' \| \
  993. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  994. echo X"$0" |
  995. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  996. s//\1/
  997. q
  998. }
  999. /^X\(\/\/\)[^/].*/{
  1000. s//\1/
  1001. q
  1002. }
  1003. /^X\(\/\/\)$/{
  1004. s//\1/
  1005. q
  1006. }
  1007. /^X\(\/\).*/{
  1008. s//\1/
  1009. q
  1010. }
  1011. s/.*/./; q'`
  1012. srcdir=$ac_confdir
  1013. if test ! -r "$srcdir/$ac_unique_file"; then
  1014. srcdir=..
  1015. fi
  1016. else
  1017. ac_srcdir_defaulted=no
  1018. fi
  1019. if test ! -r "$srcdir/$ac_unique_file"; then
  1020. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1021. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1022. { (exit 1); exit 1; }; }
  1023. fi
  1024. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1025. ac_abs_confdir=`(
  1026. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1027. { (exit 1); exit 1; }; }
  1028. pwd)`
  1029. # When building in place, set srcdir=.
  1030. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1031. srcdir=.
  1032. fi
  1033. # Remove unnecessary trailing slashes from srcdir.
  1034. # Double slashes in file names in object file debugging info
  1035. # mess up M-x gdb in Emacs.
  1036. case $srcdir in
  1037. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1038. esac
  1039. for ac_var in $ac_precious_vars; do
  1040. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1041. eval ac_env_${ac_var}_value=\$${ac_var}
  1042. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1043. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1044. done
  1045. #
  1046. # Report the --help message.
  1047. #
  1048. if test "$ac_init_help" = "long"; then
  1049. # Omit some internal or obsolete options to make the list less imposing.
  1050. # This message is too long to be a string in the A/UX 3.1 sh.
  1051. cat <<_ACEOF
  1052. \`configure' configures this package to adapt to many kinds of systems.
  1053. Usage: $0 [OPTION]... [VAR=VALUE]...
  1054. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1055. VAR=VALUE. See below for descriptions of some of the useful variables.
  1056. Defaults for the options are specified in brackets.
  1057. Configuration:
  1058. -h, --help display this help and exit
  1059. --help=short display options specific to this package
  1060. --help=recursive display the short help of all the included packages
  1061. -V, --version display version information and exit
  1062. -q, --quiet, --silent do not print \`checking...' messages
  1063. --cache-file=FILE cache test results in FILE [disabled]
  1064. -C, --config-cache alias for \`--cache-file=config.cache'
  1065. -n, --no-create do not create output files
  1066. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1067. Installation directories:
  1068. --prefix=PREFIX install architecture-independent files in PREFIX
  1069. [$ac_default_prefix]
  1070. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1071. [PREFIX]
  1072. By default, \`make install' will install all the files in
  1073. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1074. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1075. for instance \`--prefix=\$HOME'.
  1076. For better control, use the options below.
  1077. Fine tuning of the installation directories:
  1078. --bindir=DIR user executables [EPREFIX/bin]
  1079. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1080. --libexecdir=DIR program executables [EPREFIX/libexec]
  1081. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1082. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1083. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1084. --libdir=DIR object code libraries [EPREFIX/lib]
  1085. --includedir=DIR C header files [PREFIX/include]
  1086. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1087. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1088. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1089. --infodir=DIR info documentation [DATAROOTDIR/info]
  1090. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1091. --mandir=DIR man documentation [DATAROOTDIR/man]
  1092. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1093. --htmldir=DIR html documentation [DOCDIR]
  1094. --dvidir=DIR dvi documentation [DOCDIR]
  1095. --pdfdir=DIR pdf documentation [DOCDIR]
  1096. --psdir=DIR ps documentation [DOCDIR]
  1097. _ACEOF
  1098. cat <<\_ACEOF
  1099. _ACEOF
  1100. fi
  1101. if test -n "$ac_init_help"; then
  1102. cat <<\_ACEOF
  1103. Optional Features:
  1104. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1105. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1106. --disable-ipv6 disable IPv6 support
  1107. Some influential environment variables:
  1108. CXX C++ compiler command
  1109. CXXFLAGS C++ compiler flags
  1110. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1111. nonstandard directory <lib dir>
  1112. LIBS libraries to pass to the linker, e.g. -l<library>
  1113. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1114. you have headers in a nonstandard directory <include dir>
  1115. CXXCPP C++ preprocessor
  1116. Use these variables to override the choices made by `configure' or to help
  1117. it to find libraries and programs with nonstandard names/locations.
  1118. _ACEOF
  1119. ac_status=$?
  1120. fi
  1121. if test "$ac_init_help" = "recursive"; then
  1122. # If there are subdirs, report their specific --help.
  1123. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1124. test -d "$ac_dir" || continue
  1125. ac_builddir=.
  1126. case "$ac_dir" in
  1127. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1128. *)
  1129. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1130. # A ".." for each directory in $ac_dir_suffix.
  1131. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1132. case $ac_top_builddir_sub in
  1133. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1134. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1135. esac ;;
  1136. esac
  1137. ac_abs_top_builddir=$ac_pwd
  1138. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1139. # for backward compatibility:
  1140. ac_top_builddir=$ac_top_build_prefix
  1141. case $srcdir in
  1142. .) # We are building in place.
  1143. ac_srcdir=.
  1144. ac_top_srcdir=$ac_top_builddir_sub
  1145. ac_abs_top_srcdir=$ac_pwd ;;
  1146. [\\/]* | ?:[\\/]* ) # Absolute name.
  1147. ac_srcdir=$srcdir$ac_dir_suffix;
  1148. ac_top_srcdir=$srcdir
  1149. ac_abs_top_srcdir=$srcdir ;;
  1150. *) # Relative name.
  1151. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1152. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1153. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1154. esac
  1155. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1156. cd "$ac_dir" || { ac_status=$?; continue; }
  1157. # Check for guested configure.
  1158. if test -f "$ac_srcdir/configure.gnu"; then
  1159. echo &&
  1160. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1161. elif test -f "$ac_srcdir/configure"; then
  1162. echo &&
  1163. $SHELL "$ac_srcdir/configure" --help=recursive
  1164. else
  1165. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1166. fi || ac_status=$?
  1167. cd "$ac_pwd" || { ac_status=$?; break; }
  1168. done
  1169. fi
  1170. test -n "$ac_init_help" && exit $ac_status
  1171. if $ac_init_version; then
  1172. cat <<\_ACEOF
  1173. configure
  1174. generated by GNU Autoconf 2.61
  1175. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1176. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1177. This configure script is free software; the Free Software Foundation
  1178. gives unlimited permission to copy, distribute and modify it.
  1179. Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  1180. _ACEOF
  1181. exit
  1182. fi
  1183. cat >config.log <<_ACEOF
  1184. This file contains any messages produced by compilers while
  1185. running configure, to aid debugging if configure makes a mistake.
  1186. It was created by $as_me, which was
  1187. generated by GNU Autoconf 2.61. Invocation command line was
  1188. $ $0 $@
  1189. _ACEOF
  1190. exec 5>>config.log
  1191. {
  1192. cat <<_ASUNAME
  1193. ## --------- ##
  1194. ## Platform. ##
  1195. ## --------- ##
  1196. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1197. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1198. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1199. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1200. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1201. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1202. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1203. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1204. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1205. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1206. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1207. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1208. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1209. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1210. _ASUNAME
  1211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1212. for as_dir in $PATH
  1213. do
  1214. IFS=$as_save_IFS
  1215. test -z "$as_dir" && as_dir=.
  1216. echo "PATH: $as_dir"
  1217. done
  1218. IFS=$as_save_IFS
  1219. } >&5
  1220. cat >&5 <<_ACEOF
  1221. ## ----------- ##
  1222. ## Core tests. ##
  1223. ## ----------- ##
  1224. _ACEOF
  1225. # Keep a trace of the command line.
  1226. # Strip out --no-create and --no-recursion so they do not pile up.
  1227. # Strip out --silent because we don't want to record it for future runs.
  1228. # Also quote any args containing shell meta-characters.
  1229. # Make two passes to allow for proper duplicate-argument suppression.
  1230. ac_configure_args=
  1231. ac_configure_args0=
  1232. ac_configure_args1=
  1233. ac_must_keep_next=false
  1234. for ac_pass in 1 2
  1235. do
  1236. for ac_arg
  1237. do
  1238. case $ac_arg in
  1239. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1240. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1241. | -silent | --silent | --silen | --sile | --sil)
  1242. continue ;;
  1243. *\'*)
  1244. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1245. esac
  1246. case $ac_pass in
  1247. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1248. 2)
  1249. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1250. if test $ac_must_keep_next = true; then
  1251. ac_must_keep_next=false # Got value, back to normal.
  1252. else
  1253. case $ac_arg in
  1254. *=* | --config-cache | -C | -disable-* | --disable-* \
  1255. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1256. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1257. | -with-* | --with-* | -without-* | --without-* | --x)
  1258. case "$ac_configure_args0 " in
  1259. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1260. esac
  1261. ;;
  1262. -* ) ac_must_keep_next=true ;;
  1263. esac
  1264. fi
  1265. ac_configure_args="$ac_configure_args '$ac_arg'"
  1266. ;;
  1267. esac
  1268. done
  1269. done
  1270. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1271. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1272. # When interrupted or exit'd, cleanup temporary files, and complete
  1273. # config.log. We remove comments because anyway the quotes in there
  1274. # would cause problems or look ugly.
  1275. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1276. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1277. trap 'exit_status=$?
  1278. # Save into config.log some information that might help in debugging.
  1279. {
  1280. echo
  1281. cat <<\_ASBOX
  1282. ## ---------------- ##
  1283. ## Cache variables. ##
  1284. ## ---------------- ##
  1285. _ASBOX
  1286. echo
  1287. # The following way of writing the cache mishandles newlines in values,
  1288. (
  1289. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1290. eval ac_val=\$$ac_var
  1291. case $ac_val in #(
  1292. *${as_nl}*)
  1293. case $ac_var in #(
  1294. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1295. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1296. esac
  1297. case $ac_var in #(
  1298. _ | IFS | as_nl) ;; #(
  1299. *) $as_unset $ac_var ;;
  1300. esac ;;
  1301. esac
  1302. done
  1303. (set) 2>&1 |
  1304. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1305. *${as_nl}ac_space=\ *)
  1306. sed -n \
  1307. "s/'\''/'\''\\\\'\'''\''/g;
  1308. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1309. ;; #(
  1310. *)
  1311. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1312. ;;
  1313. esac |
  1314. sort
  1315. )
  1316. echo
  1317. cat <<\_ASBOX
  1318. ## ----------------- ##
  1319. ## Output variables. ##
  1320. ## ----------------- ##
  1321. _ASBOX
  1322. echo
  1323. for ac_var in $ac_subst_vars
  1324. do
  1325. eval ac_val=\$$ac_var
  1326. case $ac_val in
  1327. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1328. esac
  1329. echo "$ac_var='\''$ac_val'\''"
  1330. done | sort
  1331. echo
  1332. if test -n "$ac_subst_files"; then
  1333. cat <<\_ASBOX
  1334. ## ------------------- ##
  1335. ## File substitutions. ##
  1336. ## ------------------- ##
  1337. _ASBOX
  1338. echo
  1339. for ac_var in $ac_subst_files
  1340. do
  1341. eval ac_val=\$$ac_var
  1342. case $ac_val in
  1343. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1344. esac
  1345. echo "$ac_var='\''$ac_val'\''"
  1346. done | sort
  1347. echo
  1348. fi
  1349. if test -s confdefs.h; then
  1350. cat <<\_ASBOX
  1351. ## ----------- ##
  1352. ## confdefs.h. ##
  1353. ## ----------- ##
  1354. _ASBOX
  1355. echo
  1356. cat confdefs.h
  1357. echo
  1358. fi
  1359. test "$ac_signal" != 0 &&
  1360. echo "$as_me: caught signal $ac_signal"
  1361. echo "$as_me: exit $exit_status"
  1362. } >&5
  1363. rm -f core *.core core.conftest.* &&
  1364. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1365. exit $exit_status
  1366. ' 0
  1367. for ac_signal in 1 2 13 15; do
  1368. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1369. done
  1370. ac_signal=0
  1371. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1372. rm -f -r conftest* confdefs.h
  1373. # Predefined preprocessor variables.
  1374. cat >>confdefs.h <<_ACEOF
  1375. #define PACKAGE_NAME "$PACKAGE_NAME"
  1376. _ACEOF
  1377. cat >>confdefs.h <<_ACEOF
  1378. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1379. _ACEOF
  1380. cat >>confdefs.h <<_ACEOF
  1381. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1382. _ACEOF
  1383. cat >>confdefs.h <<_ACEOF
  1384. #define PACKAGE_STRING "$PACKAGE_STRING"
  1385. _ACEOF
  1386. cat >>confdefs.h <<_ACEOF
  1387. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1388. _ACEOF
  1389. # Let the site file select an alternate cache file if it wants to.
  1390. # Prefer explicitly selected file to automatically selected ones.
  1391. if test -n "$CONFIG_SITE"; then
  1392. set x "$CONFIG_SITE"
  1393. elif test "x$prefix" != xNONE; then
  1394. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1395. else
  1396. set x "$ac_default_prefix/share/config.site" \
  1397. "$ac_default_prefix/etc/config.site"
  1398. fi
  1399. shift
  1400. for ac_site_file
  1401. do
  1402. if test -r "$ac_site_file"; then
  1403. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1404. echo "$as_me: loading site script $ac_site_file" >&6;}
  1405. sed 's/^/| /' "$ac_site_file" >&5
  1406. . "$ac_site_file"
  1407. fi
  1408. done
  1409. if test -r "$cache_file"; then
  1410. # Some versions of bash will fail to source /dev/null (special
  1411. # files actually), so we avoid doing that.
  1412. if test -f "$cache_file"; then
  1413. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1414. echo "$as_me: loading cache $cache_file" >&6;}
  1415. case $cache_file in
  1416. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1417. *) . "./$cache_file";;
  1418. esac
  1419. fi
  1420. else
  1421. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1422. echo "$as_me: creating cache $cache_file" >&6;}
  1423. >$cache_file
  1424. fi
  1425. ac_header_list="$ac_header_list sys/time.h"
  1426. ac_header_list="$ac_header_list unistd.h"
  1427. ac_func_list="$ac_func_list alarm"
  1428. # Check that the precious variables saved in the cache have kept the same
  1429. # value.
  1430. ac_cache_corrupted=false
  1431. for ac_var in $ac_precious_vars; do
  1432. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1433. eval ac_new_set=\$ac_env_${ac_var}_set
  1434. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1435. eval ac_new_val=\$ac_env_${ac_var}_value
  1436. case $ac_old_set,$ac_new_set in
  1437. set,)
  1438. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1439. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1440. ac_cache_corrupted=: ;;
  1441. ,set)
  1442. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1443. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1444. ac_cache_corrupted=: ;;
  1445. ,);;
  1446. *)
  1447. if test "x$ac_old_val" != "x$ac_new_val"; then
  1448. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1449. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1450. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1451. echo "$as_me: former value: $ac_old_val" >&2;}
  1452. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1453. echo "$as_me: current value: $ac_new_val" >&2;}
  1454. ac_cache_corrupted=:
  1455. fi;;
  1456. esac
  1457. # Pass precious variables to config.status.
  1458. if test "$ac_new_set" = set; then
  1459. case $ac_new_val in
  1460. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1461. *) ac_arg=$ac_var=$ac_new_val ;;
  1462. esac
  1463. case " $ac_configure_args " in
  1464. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1465. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1466. esac
  1467. fi
  1468. done
  1469. if $ac_cache_corrupted; then
  1470. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1471. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1472. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1473. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1474. { (exit 1); exit 1; }; }
  1475. fi
  1476. ac_ext=c
  1477. ac_cpp='$CPP $CPPFLAGS'
  1478. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1479. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1480. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1481. ac_config_headers="$ac_config_headers config.h"
  1482. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1483. egg_ac_parameters=
  1484. ac_prev=
  1485. for ac_arg in $ac_configure_args; do
  1486. if test -n "$ac_prev"; then
  1487. ac_prev=
  1488. continue
  1489. fi
  1490. case $ac_arg in
  1491. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1492. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1493. ac_prev=cache_file ;;
  1494. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1495. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1496. | --c=*)
  1497. ;;
  1498. --config-cache | -C)
  1499. ;;
  1500. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1501. ac_prev=srcdir ;;
  1502. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1503. ;;
  1504. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1505. esac
  1506. done
  1507. # Setup build environment
  1508. #AC_REQUIRE_CPP
  1509. ac_ext=cpp
  1510. ac_cpp='$CXXCPP $CPPFLAGS'
  1511. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1512. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1513. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1514. ac_ext=cpp
  1515. ac_cpp='$CXXCPP $CPPFLAGS'
  1516. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1517. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1518. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1519. if test -z "$CXX"; then
  1520. if test -n "$CCC"; then
  1521. CXX=$CCC
  1522. else
  1523. if test -n "$ac_tool_prefix"; then
  1524. for ac_prog in g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1525. do
  1526. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1527. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1528. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1529. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1530. if test "${ac_cv_prog_CXX+set}" = set; then
  1531. echo $ECHO_N "(cached) $ECHO_C" >&6
  1532. else
  1533. if test -n "$CXX"; then
  1534. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1535. else
  1536. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1537. for as_dir in $PATH
  1538. do
  1539. IFS=$as_save_IFS
  1540. test -z "$as_dir" && as_dir=.
  1541. for ac_exec_ext in '' $ac_executable_extensions; do
  1542. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1543. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1544. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1545. break 2
  1546. fi
  1547. done
  1548. done
  1549. IFS=$as_save_IFS
  1550. fi
  1551. fi
  1552. CXX=$ac_cv_prog_CXX
  1553. if test -n "$CXX"; then
  1554. { echo "$as_me:$LINENO: result: $CXX" >&5
  1555. echo "${ECHO_T}$CXX" >&6; }
  1556. else
  1557. { echo "$as_me:$LINENO: result: no" >&5
  1558. echo "${ECHO_T}no" >&6; }
  1559. fi
  1560. test -n "$CXX" && break
  1561. done
  1562. fi
  1563. if test -z "$CXX"; then
  1564. ac_ct_CXX=$CXX
  1565. for ac_prog in g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1566. do
  1567. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1568. set dummy $ac_prog; ac_word=$2
  1569. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1570. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1571. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1572. echo $ECHO_N "(cached) $ECHO_C" >&6
  1573. else
  1574. if test -n "$ac_ct_CXX"; then
  1575. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1576. else
  1577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1578. for as_dir in $PATH
  1579. do
  1580. IFS=$as_save_IFS
  1581. test -z "$as_dir" && as_dir=.
  1582. for ac_exec_ext in '' $ac_executable_extensions; do
  1583. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1584. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1585. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1586. break 2
  1587. fi
  1588. done
  1589. done
  1590. IFS=$as_save_IFS
  1591. fi
  1592. fi
  1593. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1594. if test -n "$ac_ct_CXX"; then
  1595. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1596. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  1597. else
  1598. { echo "$as_me:$LINENO: result: no" >&5
  1599. echo "${ECHO_T}no" >&6; }
  1600. fi
  1601. test -n "$ac_ct_CXX" && break
  1602. done
  1603. if test "x$ac_ct_CXX" = x; then
  1604. CXX="g++"
  1605. else
  1606. case $cross_compiling:$ac_tool_warned in
  1607. yes:)
  1608. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1609. whose name does not start with the host triplet. If you think this
  1610. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1611. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1612. whose name does not start with the host triplet. If you think this
  1613. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1614. ac_tool_warned=yes ;;
  1615. esac
  1616. CXX=$ac_ct_CXX
  1617. fi
  1618. fi
  1619. fi
  1620. fi
  1621. # Provide some information about the compiler.
  1622. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  1623. ac_compiler=`set X $ac_compile; echo $2`
  1624. { (ac_try="$ac_compiler --version >&5"
  1625. case "(($ac_try" in
  1626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1627. *) ac_try_echo=$ac_try;;
  1628. esac
  1629. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1630. (eval "$ac_compiler --version >&5") 2>&5
  1631. ac_status=$?
  1632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1633. (exit $ac_status); }
  1634. { (ac_try="$ac_compiler -v >&5"
  1635. case "(($ac_try" in
  1636. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1637. *) ac_try_echo=$ac_try;;
  1638. esac
  1639. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1640. (eval "$ac_compiler -v >&5") 2>&5
  1641. ac_status=$?
  1642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1643. (exit $ac_status); }
  1644. { (ac_try="$ac_compiler -V >&5"
  1645. case "(($ac_try" in
  1646. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1647. *) ac_try_echo=$ac_try;;
  1648. esac
  1649. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1650. (eval "$ac_compiler -V >&5") 2>&5
  1651. ac_status=$?
  1652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1653. (exit $ac_status); }
  1654. cat >conftest.$ac_ext <<_ACEOF
  1655. /* confdefs.h. */
  1656. _ACEOF
  1657. cat confdefs.h >>conftest.$ac_ext
  1658. cat >>conftest.$ac_ext <<_ACEOF
  1659. /* end confdefs.h. */
  1660. int
  1661. main ()
  1662. {
  1663. ;
  1664. return 0;
  1665. }
  1666. _ACEOF
  1667. ac_clean_files_save=$ac_clean_files
  1668. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1669. # Try to create an executable without -o first, disregard a.out.
  1670. # It will help us diagnose broken compilers, and finding out an intuition
  1671. # of exeext.
  1672. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1673. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  1674. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1675. #
  1676. # List of possible output files, starting from the most likely.
  1677. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  1678. # only as a last resort. b.out is created by i960 compilers.
  1679. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  1680. #
  1681. # The IRIX 6 linker writes into existing files which may not be
  1682. # executable, retaining their permissions. Remove them first so a
  1683. # subsequent execution test works.
  1684. ac_rmfiles=
  1685. for ac_file in $ac_files
  1686. do
  1687. case $ac_file in
  1688. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  1689. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  1690. esac
  1691. done
  1692. rm -f $ac_rmfiles
  1693. if { (ac_try="$ac_link_default"
  1694. case "(($ac_try" in
  1695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1696. *) ac_try_echo=$ac_try;;
  1697. esac
  1698. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1699. (eval "$ac_link_default") 2>&5
  1700. ac_status=$?
  1701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1702. (exit $ac_status); }; then
  1703. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  1704. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  1705. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  1706. # so that the user can short-circuit this test for compilers unknown to
  1707. # Autoconf.
  1708. for ac_file in $ac_files ''
  1709. do
  1710. test -f "$ac_file" || continue
  1711. case $ac_file in
  1712. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  1713. ;;
  1714. [ab].out )
  1715. # We found the default executable, but exeext='' is most
  1716. # certainly right.
  1717. break;;
  1718. *.* )
  1719. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  1720. then :; else
  1721. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1722. fi
  1723. # We set ac_cv_exeext here because the later test for it is not
  1724. # safe: cross compilers may not add the suffix if given an `-o'
  1725. # argument, so we may need to know it at that point already.
  1726. # Even if this section looks crufty: it has the advantage of
  1727. # actually working.
  1728. break;;
  1729. * )
  1730. break;;
  1731. esac
  1732. done
  1733. test "$ac_cv_exeext" = no && ac_cv_exeext=
  1734. else
  1735. ac_file=''
  1736. fi
  1737. { echo "$as_me:$LINENO: result: $ac_file" >&5
  1738. echo "${ECHO_T}$ac_file" >&6; }
  1739. if test -z "$ac_file"; then
  1740. echo "$as_me: failed program was:" >&5
  1741. sed 's/^/| /' conftest.$ac_ext >&5
  1742. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1743. See \`config.log' for more details." >&5
  1744. echo "$as_me: error: C++ compiler cannot create executables
  1745. See \`config.log' for more details." >&2;}
  1746. { (exit 77); exit 77; }; }
  1747. fi
  1748. ac_exeext=$ac_cv_exeext
  1749. # Check that the compiler produces executables we can run. If not, either
  1750. # the compiler is broken, or we cross compile.
  1751. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1752. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  1753. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1754. # If not cross compiling, check that we can run a simple program.
  1755. if test "$cross_compiling" != yes; then
  1756. if { ac_try='./$ac_file'
  1757. { (case "(($ac_try" in
  1758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1759. *) ac_try_echo=$ac_try;;
  1760. esac
  1761. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1762. (eval "$ac_try") 2>&5
  1763. ac_status=$?
  1764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1765. (exit $ac_status); }; }; then
  1766. cross_compiling=no
  1767. else
  1768. if test "$cross_compiling" = maybe; then
  1769. cross_compiling=yes
  1770. else
  1771. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1772. If you meant to cross compile, use \`--host'.
  1773. See \`config.log' for more details." >&5
  1774. echo "$as_me: error: cannot run C++ compiled programs.
  1775. If you meant to cross compile, use \`--host'.
  1776. See \`config.log' for more details." >&2;}
  1777. { (exit 1); exit 1; }; }
  1778. fi
  1779. fi
  1780. fi
  1781. { echo "$as_me:$LINENO: result: yes" >&5
  1782. echo "${ECHO_T}yes" >&6; }
  1783. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1784. ac_clean_files=$ac_clean_files_save
  1785. # Check that the compiler produces executables we can run. If not, either
  1786. # the compiler is broken, or we cross compile.
  1787. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1788. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  1789. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1790. echo "${ECHO_T}$cross_compiling" >&6; }
  1791. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1792. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  1793. if { (ac_try="$ac_link"
  1794. case "(($ac_try" in
  1795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1796. *) ac_try_echo=$ac_try;;
  1797. esac
  1798. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1799. (eval "$ac_link") 2>&5
  1800. ac_status=$?
  1801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1802. (exit $ac_status); }; then
  1803. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1804. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1805. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1806. # `rm'.
  1807. for ac_file in conftest.exe conftest conftest.*; do
  1808. test -f "$ac_file" || continue
  1809. case $ac_file in
  1810. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  1811. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1812. break;;
  1813. * ) break;;
  1814. esac
  1815. done
  1816. else
  1817. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1818. See \`config.log' for more details." >&5
  1819. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1820. See \`config.log' for more details." >&2;}
  1821. { (exit 1); exit 1; }; }
  1822. fi
  1823. rm -f conftest$ac_cv_exeext
  1824. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1825. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  1826. rm -f conftest.$ac_ext
  1827. EXEEXT=$ac_cv_exeext
  1828. ac_exeext=$EXEEXT
  1829. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1830. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  1831. if test "${ac_cv_objext+set}" = set; then
  1832. echo $ECHO_N "(cached) $ECHO_C" >&6
  1833. else
  1834. cat >conftest.$ac_ext <<_ACEOF
  1835. /* confdefs.h. */
  1836. _ACEOF
  1837. cat confdefs.h >>conftest.$ac_ext
  1838. cat >>conftest.$ac_ext <<_ACEOF
  1839. /* end confdefs.h. */
  1840. int
  1841. main ()
  1842. {
  1843. ;
  1844. return 0;
  1845. }
  1846. _ACEOF
  1847. rm -f conftest.o conftest.obj
  1848. if { (ac_try="$ac_compile"
  1849. case "(($ac_try" in
  1850. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1851. *) ac_try_echo=$ac_try;;
  1852. esac
  1853. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1854. (eval "$ac_compile") 2>&5
  1855. ac_status=$?
  1856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1857. (exit $ac_status); }; then
  1858. for ac_file in conftest.o conftest.obj conftest.*; do
  1859. test -f "$ac_file" || continue;
  1860. case $ac_file in
  1861. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  1862. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1863. break;;
  1864. esac
  1865. done
  1866. else
  1867. echo "$as_me: failed program was:" >&5
  1868. sed 's/^/| /' conftest.$ac_ext >&5
  1869. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1870. See \`config.log' for more details." >&5
  1871. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1872. See \`config.log' for more details." >&2;}
  1873. { (exit 1); exit 1; }; }
  1874. fi
  1875. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1876. fi
  1877. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1878. echo "${ECHO_T}$ac_cv_objext" >&6; }
  1879. OBJEXT=$ac_cv_objext
  1880. ac_objext=$OBJEXT
  1881. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  1882. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  1883. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  1884. echo $ECHO_N "(cached) $ECHO_C" >&6
  1885. else
  1886. cat >conftest.$ac_ext <<_ACEOF
  1887. /* confdefs.h. */
  1888. _ACEOF
  1889. cat confdefs.h >>conftest.$ac_ext
  1890. cat >>conftest.$ac_ext <<_ACEOF
  1891. /* end confdefs.h. */
  1892. int
  1893. main ()
  1894. {
  1895. #ifndef __GNUC__
  1896. choke me
  1897. #endif
  1898. ;
  1899. return 0;
  1900. }
  1901. _ACEOF
  1902. rm -f conftest.$ac_objext
  1903. if { (ac_try="$ac_compile"
  1904. case "(($ac_try" in
  1905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1906. *) ac_try_echo=$ac_try;;
  1907. esac
  1908. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1909. (eval "$ac_compile") 2>conftest.er1
  1910. ac_status=$?
  1911. grep -v '^ *+' conftest.er1 >conftest.err
  1912. rm -f conftest.er1
  1913. cat conftest.err >&5
  1914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1915. (exit $ac_status); } && {
  1916. test -z "$ac_cxx_werror_flag" ||
  1917. test ! -s conftest.err
  1918. } && test -s conftest.$ac_objext; then
  1919. ac_compiler_gnu=yes
  1920. else
  1921. echo "$as_me: failed program was:" >&5
  1922. sed 's/^/| /' conftest.$ac_ext >&5
  1923. ac_compiler_gnu=no
  1924. fi
  1925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1926. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  1927. fi
  1928. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  1929. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  1930. GXX=`test $ac_compiler_gnu = yes && echo yes`
  1931. ac_test_CXXFLAGS=${CXXFLAGS+set}
  1932. ac_save_CXXFLAGS=$CXXFLAGS
  1933. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  1934. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  1935. if test "${ac_cv_prog_cxx_g+set}" = set; then
  1936. echo $ECHO_N "(cached) $ECHO_C" >&6
  1937. else
  1938. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  1939. ac_cxx_werror_flag=yes
  1940. ac_cv_prog_cxx_g=no
  1941. CXXFLAGS="-g"
  1942. cat >conftest.$ac_ext <<_ACEOF
  1943. /* confdefs.h. */
  1944. _ACEOF
  1945. cat confdefs.h >>conftest.$ac_ext
  1946. cat >>conftest.$ac_ext <<_ACEOF
  1947. /* end confdefs.h. */
  1948. int
  1949. main ()
  1950. {
  1951. ;
  1952. return 0;
  1953. }
  1954. _ACEOF
  1955. rm -f conftest.$ac_objext
  1956. if { (ac_try="$ac_compile"
  1957. case "(($ac_try" in
  1958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1959. *) ac_try_echo=$ac_try;;
  1960. esac
  1961. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1962. (eval "$ac_compile") 2>conftest.er1
  1963. ac_status=$?
  1964. grep -v '^ *+' conftest.er1 >conftest.err
  1965. rm -f conftest.er1
  1966. cat conftest.err >&5
  1967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1968. (exit $ac_status); } && {
  1969. test -z "$ac_cxx_werror_flag" ||
  1970. test ! -s conftest.err
  1971. } && test -s conftest.$ac_objext; then
  1972. ac_cv_prog_cxx_g=yes
  1973. else
  1974. echo "$as_me: failed program was:" >&5
  1975. sed 's/^/| /' conftest.$ac_ext >&5
  1976. CXXFLAGS=""
  1977. cat >conftest.$ac_ext <<_ACEOF
  1978. /* confdefs.h. */
  1979. _ACEOF
  1980. cat confdefs.h >>conftest.$ac_ext
  1981. cat >>conftest.$ac_ext <<_ACEOF
  1982. /* end confdefs.h. */
  1983. int
  1984. main ()
  1985. {
  1986. ;
  1987. return 0;
  1988. }
  1989. _ACEOF
  1990. rm -f conftest.$ac_objext
  1991. if { (ac_try="$ac_compile"
  1992. case "(($ac_try" in
  1993. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1994. *) ac_try_echo=$ac_try;;
  1995. esac
  1996. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1997. (eval "$ac_compile") 2>conftest.er1
  1998. ac_status=$?
  1999. grep -v '^ *+' conftest.er1 >conftest.err
  2000. rm -f conftest.er1
  2001. cat conftest.err >&5
  2002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2003. (exit $ac_status); } && {
  2004. test -z "$ac_cxx_werror_flag" ||
  2005. test ! -s conftest.err
  2006. } && test -s conftest.$ac_objext; then
  2007. :
  2008. else
  2009. echo "$as_me: failed program was:" >&5
  2010. sed 's/^/| /' conftest.$ac_ext >&5
  2011. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2012. CXXFLAGS="-g"
  2013. cat >conftest.$ac_ext <<_ACEOF
  2014. /* confdefs.h. */
  2015. _ACEOF
  2016. cat confdefs.h >>conftest.$ac_ext
  2017. cat >>conftest.$ac_ext <<_ACEOF
  2018. /* end confdefs.h. */
  2019. int
  2020. main ()
  2021. {
  2022. ;
  2023. return 0;
  2024. }
  2025. _ACEOF
  2026. rm -f conftest.$ac_objext
  2027. if { (ac_try="$ac_compile"
  2028. case "(($ac_try" in
  2029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2030. *) ac_try_echo=$ac_try;;
  2031. esac
  2032. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2033. (eval "$ac_compile") 2>conftest.er1
  2034. ac_status=$?
  2035. grep -v '^ *+' conftest.er1 >conftest.err
  2036. rm -f conftest.er1
  2037. cat conftest.err >&5
  2038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2039. (exit $ac_status); } && {
  2040. test -z "$ac_cxx_werror_flag" ||
  2041. test ! -s conftest.err
  2042. } && test -s conftest.$ac_objext; then
  2043. ac_cv_prog_cxx_g=yes
  2044. else
  2045. echo "$as_me: failed program was:" >&5
  2046. sed 's/^/| /' conftest.$ac_ext >&5
  2047. fi
  2048. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2049. fi
  2050. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2051. fi
  2052. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2053. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2054. fi
  2055. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2056. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2057. if test "$ac_test_CXXFLAGS" = set; then
  2058. CXXFLAGS=$ac_save_CXXFLAGS
  2059. elif test $ac_cv_prog_cxx_g = yes; then
  2060. if test "$GXX" = yes; then
  2061. CXXFLAGS="-g -O2"
  2062. else
  2063. CXXFLAGS="-g"
  2064. fi
  2065. else
  2066. if test "$GXX" = yes; then
  2067. CXXFLAGS="-O2"
  2068. else
  2069. CXXFLAGS=
  2070. fi
  2071. fi
  2072. ac_ext=cpp
  2073. ac_cpp='$CXXCPP $CPPFLAGS'
  2074. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2075. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2076. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2077. if test "${cross_compiling-x}" = "x"
  2078. then
  2079. cat << 'EOF' >&2
  2080. configure: error:
  2081. This system does not appear to have a working C compiler.
  2082. A working C compiler is required to compile Eggdrop.
  2083. EOF
  2084. exit 1
  2085. fi
  2086. if test -n "$GXX"; then
  2087. CXXFLAGS="$CXXFLAGS -O3"
  2088. fi
  2089. # Crazy machines
  2090. ac_ext=cpp
  2091. ac_cpp='$CXXCPP $CPPFLAGS'
  2092. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2093. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2094. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2095. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  2096. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  2097. if test -z "$CXXCPP"; then
  2098. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  2099. echo $ECHO_N "(cached) $ECHO_C" >&6
  2100. else
  2101. # Double quotes because CXXCPP needs to be expanded
  2102. for CXXCPP in "$CXX -E" "/lib/cpp"
  2103. do
  2104. ac_preproc_ok=false
  2105. for ac_cxx_preproc_warn_flag in '' yes
  2106. do
  2107. # Use a header file that comes with gcc, so configuring glibc
  2108. # with a fresh cross-compiler works.
  2109. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2110. # <limits.h> exists even on freestanding compilers.
  2111. # On the NeXT, cc -E runs the code through the compiler's parser,
  2112. # not just through cpp. "Syntax error" is here to catch this case.
  2113. cat >conftest.$ac_ext <<_ACEOF
  2114. /* confdefs.h. */
  2115. _ACEOF
  2116. cat confdefs.h >>conftest.$ac_ext
  2117. cat >>conftest.$ac_ext <<_ACEOF
  2118. /* end confdefs.h. */
  2119. #ifdef __STDC__
  2120. # include <limits.h>
  2121. #else
  2122. # include <assert.h>
  2123. #endif
  2124. Syntax error
  2125. _ACEOF
  2126. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2127. case "(($ac_try" in
  2128. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2129. *) ac_try_echo=$ac_try;;
  2130. esac
  2131. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2132. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2133. ac_status=$?
  2134. grep -v '^ *+' conftest.er1 >conftest.err
  2135. rm -f conftest.er1
  2136. cat conftest.err >&5
  2137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2138. (exit $ac_status); } >/dev/null && {
  2139. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2140. test ! -s conftest.err
  2141. }; then
  2142. :
  2143. else
  2144. echo "$as_me: failed program was:" >&5
  2145. sed 's/^/| /' conftest.$ac_ext >&5
  2146. # Broken: fails on valid input.
  2147. continue
  2148. fi
  2149. rm -f conftest.err conftest.$ac_ext
  2150. # OK, works on sane cases. Now check whether nonexistent headers
  2151. # can be detected and how.
  2152. cat >conftest.$ac_ext <<_ACEOF
  2153. /* confdefs.h. */
  2154. _ACEOF
  2155. cat confdefs.h >>conftest.$ac_ext
  2156. cat >>conftest.$ac_ext <<_ACEOF
  2157. /* end confdefs.h. */
  2158. #include <ac_nonexistent.h>
  2159. _ACEOF
  2160. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2161. case "(($ac_try" in
  2162. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2163. *) ac_try_echo=$ac_try;;
  2164. esac
  2165. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2166. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2167. ac_status=$?
  2168. grep -v '^ *+' conftest.er1 >conftest.err
  2169. rm -f conftest.er1
  2170. cat conftest.err >&5
  2171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2172. (exit $ac_status); } >/dev/null && {
  2173. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2174. test ! -s conftest.err
  2175. }; then
  2176. # Broken: success on invalid input.
  2177. continue
  2178. else
  2179. echo "$as_me: failed program was:" >&5
  2180. sed 's/^/| /' conftest.$ac_ext >&5
  2181. # Passes both tests.
  2182. ac_preproc_ok=:
  2183. break
  2184. fi
  2185. rm -f conftest.err conftest.$ac_ext
  2186. done
  2187. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2188. rm -f conftest.err conftest.$ac_ext
  2189. if $ac_preproc_ok; then
  2190. break
  2191. fi
  2192. done
  2193. ac_cv_prog_CXXCPP=$CXXCPP
  2194. fi
  2195. CXXCPP=$ac_cv_prog_CXXCPP
  2196. else
  2197. ac_cv_prog_CXXCPP=$CXXCPP
  2198. fi
  2199. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  2200. echo "${ECHO_T}$CXXCPP" >&6; }
  2201. ac_preproc_ok=false
  2202. for ac_cxx_preproc_warn_flag in '' yes
  2203. do
  2204. # Use a header file that comes with gcc, so configuring glibc
  2205. # with a fresh cross-compiler works.
  2206. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2207. # <limits.h> exists even on freestanding compilers.
  2208. # On the NeXT, cc -E runs the code through the compiler's parser,
  2209. # not just through cpp. "Syntax error" is here to catch this case.
  2210. cat >conftest.$ac_ext <<_ACEOF
  2211. /* confdefs.h. */
  2212. _ACEOF
  2213. cat confdefs.h >>conftest.$ac_ext
  2214. cat >>conftest.$ac_ext <<_ACEOF
  2215. /* end confdefs.h. */
  2216. #ifdef __STDC__
  2217. # include <limits.h>
  2218. #else
  2219. # include <assert.h>
  2220. #endif
  2221. Syntax error
  2222. _ACEOF
  2223. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2224. case "(($ac_try" in
  2225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2226. *) ac_try_echo=$ac_try;;
  2227. esac
  2228. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2229. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2230. ac_status=$?
  2231. grep -v '^ *+' conftest.er1 >conftest.err
  2232. rm -f conftest.er1
  2233. cat conftest.err >&5
  2234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2235. (exit $ac_status); } >/dev/null && {
  2236. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2237. test ! -s conftest.err
  2238. }; then
  2239. :
  2240. else
  2241. echo "$as_me: failed program was:" >&5
  2242. sed 's/^/| /' conftest.$ac_ext >&5
  2243. # Broken: fails on valid input.
  2244. continue
  2245. fi
  2246. rm -f conftest.err conftest.$ac_ext
  2247. # OK, works on sane cases. Now check whether nonexistent headers
  2248. # can be detected and how.
  2249. cat >conftest.$ac_ext <<_ACEOF
  2250. /* confdefs.h. */
  2251. _ACEOF
  2252. cat confdefs.h >>conftest.$ac_ext
  2253. cat >>conftest.$ac_ext <<_ACEOF
  2254. /* end confdefs.h. */
  2255. #include <ac_nonexistent.h>
  2256. _ACEOF
  2257. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2258. case "(($ac_try" in
  2259. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2260. *) ac_try_echo=$ac_try;;
  2261. esac
  2262. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2263. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2264. ac_status=$?
  2265. grep -v '^ *+' conftest.er1 >conftest.err
  2266. rm -f conftest.er1
  2267. cat conftest.err >&5
  2268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2269. (exit $ac_status); } >/dev/null && {
  2270. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2271. test ! -s conftest.err
  2272. }; then
  2273. # Broken: success on invalid input.
  2274. continue
  2275. else
  2276. echo "$as_me: failed program was:" >&5
  2277. sed 's/^/| /' conftest.$ac_ext >&5
  2278. # Passes both tests.
  2279. ac_preproc_ok=:
  2280. break
  2281. fi
  2282. rm -f conftest.err conftest.$ac_ext
  2283. done
  2284. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2285. rm -f conftest.err conftest.$ac_ext
  2286. if $ac_preproc_ok; then
  2287. :
  2288. else
  2289. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  2290. See \`config.log' for more details." >&5
  2291. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  2292. See \`config.log' for more details." >&2;}
  2293. { (exit 1); exit 1; }; }
  2294. fi
  2295. ac_ext=cpp
  2296. ac_cpp='$CXXCPP $CPPFLAGS'
  2297. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2298. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2299. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2300. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  2301. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  2302. if test "${ac_cv_path_GREP+set}" = set; then
  2303. echo $ECHO_N "(cached) $ECHO_C" >&6
  2304. else
  2305. # Extract the first word of "grep ggrep" to use in msg output
  2306. if test -z "$GREP"; then
  2307. set dummy grep ggrep; ac_prog_name=$2
  2308. if test "${ac_cv_path_GREP+set}" = set; then
  2309. echo $ECHO_N "(cached) $ECHO_C" >&6
  2310. else
  2311. ac_path_GREP_found=false
  2312. # Loop through the user's path and test for each of PROGNAME-LIST
  2313. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2314. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2315. do
  2316. IFS=$as_save_IFS
  2317. test -z "$as_dir" && as_dir=.
  2318. for ac_prog in grep ggrep; do
  2319. for ac_exec_ext in '' $ac_executable_extensions; do
  2320. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2321. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  2322. # Check for GNU ac_path_GREP and select it if it is found.
  2323. # Check for GNU $ac_path_GREP
  2324. case `"$ac_path_GREP" --version 2>&1` in
  2325. *GNU*)
  2326. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2327. *)
  2328. ac_count=0
  2329. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  2330. while :
  2331. do
  2332. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2333. mv "conftest.tmp" "conftest.in"
  2334. cp "conftest.in" "conftest.nl"
  2335. echo 'GREP' >> "conftest.nl"
  2336. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2337. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2338. ac_count=`expr $ac_count + 1`
  2339. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2340. # Best one so far, save it but keep looking for a better one
  2341. ac_cv_path_GREP="$ac_path_GREP"
  2342. ac_path_GREP_max=$ac_count
  2343. fi
  2344. # 10*(2^10) chars as input seems more than enough
  2345. test $ac_count -gt 10 && break
  2346. done
  2347. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2348. esac
  2349. $ac_path_GREP_found && break 3
  2350. done
  2351. done
  2352. done
  2353. IFS=$as_save_IFS
  2354. fi
  2355. GREP="$ac_cv_path_GREP"
  2356. if test -z "$GREP"; then
  2357. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2358. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2359. { (exit 1); exit 1; }; }
  2360. fi
  2361. else
  2362. ac_cv_path_GREP=$GREP
  2363. fi
  2364. fi
  2365. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  2366. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  2367. GREP="$ac_cv_path_GREP"
  2368. { echo "$as_me:$LINENO: checking for egrep" >&5
  2369. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  2370. if test "${ac_cv_path_EGREP+set}" = set; then
  2371. echo $ECHO_N "(cached) $ECHO_C" >&6
  2372. else
  2373. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2374. then ac_cv_path_EGREP="$GREP -E"
  2375. else
  2376. # Extract the first word of "egrep" to use in msg output
  2377. if test -z "$EGREP"; then
  2378. set dummy egrep; ac_prog_name=$2
  2379. if test "${ac_cv_path_EGREP+set}" = set; then
  2380. echo $ECHO_N "(cached) $ECHO_C" >&6
  2381. else
  2382. ac_path_EGREP_found=false
  2383. # Loop through the user's path and test for each of PROGNAME-LIST
  2384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2385. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2386. do
  2387. IFS=$as_save_IFS
  2388. test -z "$as_dir" && as_dir=.
  2389. for ac_prog in egrep; do
  2390. for ac_exec_ext in '' $ac_executable_extensions; do
  2391. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  2392. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  2393. # Check for GNU ac_path_EGREP and select it if it is found.
  2394. # Check for GNU $ac_path_EGREP
  2395. case `"$ac_path_EGREP" --version 2>&1` in
  2396. *GNU*)
  2397. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  2398. *)
  2399. ac_count=0
  2400. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  2401. while :
  2402. do
  2403. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2404. mv "conftest.tmp" "conftest.in"
  2405. cp "conftest.in" "conftest.nl"
  2406. echo 'EGREP' >> "conftest.nl"
  2407. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2408. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2409. ac_count=`expr $ac_count + 1`
  2410. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  2411. # Best one so far, save it but keep looking for a better one
  2412. ac_cv_path_EGREP="$ac_path_EGREP"
  2413. ac_path_EGREP_max=$ac_count
  2414. fi
  2415. # 10*(2^10) chars as input seems more than enough
  2416. test $ac_count -gt 10 && break
  2417. done
  2418. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2419. esac
  2420. $ac_path_EGREP_found && break 3
  2421. done
  2422. done
  2423. done
  2424. IFS=$as_save_IFS
  2425. fi
  2426. EGREP="$ac_cv_path_EGREP"
  2427. if test -z "$EGREP"; then
  2428. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2429. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2430. { (exit 1); exit 1; }; }
  2431. fi
  2432. else
  2433. ac_cv_path_EGREP=$EGREP
  2434. fi
  2435. fi
  2436. fi
  2437. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  2438. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  2439. EGREP="$ac_cv_path_EGREP"
  2440. { echo "$as_me:$LINENO: checking for AIX" >&5
  2441. echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
  2442. cat >conftest.$ac_ext <<_ACEOF
  2443. /* confdefs.h. */
  2444. _ACEOF
  2445. cat confdefs.h >>conftest.$ac_ext
  2446. cat >>conftest.$ac_ext <<_ACEOF
  2447. /* end confdefs.h. */
  2448. #ifdef _AIX
  2449. yes
  2450. #endif
  2451. _ACEOF
  2452. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2453. $EGREP "yes" >/dev/null 2>&1; then
  2454. { echo "$as_me:$LINENO: result: yes" >&5
  2455. echo "${ECHO_T}yes" >&6; }
  2456. cat >>confdefs.h <<\_ACEOF
  2457. #define _ALL_SOURCE 1
  2458. _ACEOF
  2459. else
  2460. { echo "$as_me:$LINENO: result: no" >&5
  2461. echo "${ECHO_T}no" >&6; }
  2462. fi
  2463. rm -f conftest*
  2464. { echo "$as_me:$LINENO: checking for library containing strerror" >&5
  2465. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
  2466. if test "${ac_cv_search_strerror+set}" = set; then
  2467. echo $ECHO_N "(cached) $ECHO_C" >&6
  2468. else
  2469. ac_func_search_save_LIBS=$LIBS
  2470. cat >conftest.$ac_ext <<_ACEOF
  2471. /* confdefs.h. */
  2472. _ACEOF
  2473. cat confdefs.h >>conftest.$ac_ext
  2474. cat >>conftest.$ac_ext <<_ACEOF
  2475. /* end confdefs.h. */
  2476. /* Override any GCC internal prototype to avoid an error.
  2477. Use char because int might match the return type of a GCC
  2478. builtin and then its argument prototype would still apply. */
  2479. #ifdef __cplusplus
  2480. extern "C"
  2481. #endif
  2482. char strerror ();
  2483. int
  2484. main ()
  2485. {
  2486. return strerror ();
  2487. ;
  2488. return 0;
  2489. }
  2490. _ACEOF
  2491. for ac_lib in '' cposix; do
  2492. if test -z "$ac_lib"; then
  2493. ac_res="none required"
  2494. else
  2495. ac_res=-l$ac_lib
  2496. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  2497. fi
  2498. rm -f conftest.$ac_objext conftest$ac_exeext
  2499. if { (ac_try="$ac_link"
  2500. case "(($ac_try" in
  2501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2502. *) ac_try_echo=$ac_try;;
  2503. esac
  2504. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2505. (eval "$ac_link") 2>conftest.er1
  2506. ac_status=$?
  2507. grep -v '^ *+' conftest.er1 >conftest.err
  2508. rm -f conftest.er1
  2509. cat conftest.err >&5
  2510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2511. (exit $ac_status); } && {
  2512. test -z "$ac_cxx_werror_flag" ||
  2513. test ! -s conftest.err
  2514. } && test -s conftest$ac_exeext &&
  2515. $as_test_x conftest$ac_exeext; then
  2516. ac_cv_search_strerror=$ac_res
  2517. else
  2518. echo "$as_me: failed program was:" >&5
  2519. sed 's/^/| /' conftest.$ac_ext >&5
  2520. fi
  2521. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2522. conftest$ac_exeext
  2523. if test "${ac_cv_search_strerror+set}" = set; then
  2524. break
  2525. fi
  2526. done
  2527. if test "${ac_cv_search_strerror+set}" = set; then
  2528. :
  2529. else
  2530. ac_cv_search_strerror=no
  2531. fi
  2532. rm conftest.$ac_ext
  2533. LIBS=$ac_func_search_save_LIBS
  2534. fi
  2535. { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  2536. echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
  2537. ac_res=$ac_cv_search_strerror
  2538. if test "$ac_res" != no; then
  2539. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  2540. fi
  2541. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2542. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  2543. if test "${ac_cv_header_stdc+set}" = set; then
  2544. echo $ECHO_N "(cached) $ECHO_C" >&6
  2545. else
  2546. cat >conftest.$ac_ext <<_ACEOF
  2547. /* confdefs.h. */
  2548. _ACEOF
  2549. cat confdefs.h >>conftest.$ac_ext
  2550. cat >>conftest.$ac_ext <<_ACEOF
  2551. /* end confdefs.h. */
  2552. #include <stdlib.h>
  2553. #include <stdarg.h>
  2554. #include <string.h>
  2555. #include <float.h>
  2556. int
  2557. main ()
  2558. {
  2559. ;
  2560. return 0;
  2561. }
  2562. _ACEOF
  2563. rm -f conftest.$ac_objext
  2564. if { (ac_try="$ac_compile"
  2565. case "(($ac_try" in
  2566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2567. *) ac_try_echo=$ac_try;;
  2568. esac
  2569. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2570. (eval "$ac_compile") 2>conftest.er1
  2571. ac_status=$?
  2572. grep -v '^ *+' conftest.er1 >conftest.err
  2573. rm -f conftest.er1
  2574. cat conftest.err >&5
  2575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2576. (exit $ac_status); } && {
  2577. test -z "$ac_cxx_werror_flag" ||
  2578. test ! -s conftest.err
  2579. } && test -s conftest.$ac_objext; then
  2580. ac_cv_header_stdc=yes
  2581. else
  2582. echo "$as_me: failed program was:" >&5
  2583. sed 's/^/| /' conftest.$ac_ext >&5
  2584. ac_cv_header_stdc=no
  2585. fi
  2586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2587. if test $ac_cv_header_stdc = yes; then
  2588. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2589. cat >conftest.$ac_ext <<_ACEOF
  2590. /* confdefs.h. */
  2591. _ACEOF
  2592. cat confdefs.h >>conftest.$ac_ext
  2593. cat >>conftest.$ac_ext <<_ACEOF
  2594. /* end confdefs.h. */
  2595. #include <string.h>
  2596. _ACEOF
  2597. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2598. $EGREP "memchr" >/dev/null 2>&1; then
  2599. :
  2600. else
  2601. ac_cv_header_stdc=no
  2602. fi
  2603. rm -f conftest*
  2604. fi
  2605. if test $ac_cv_header_stdc = yes; then
  2606. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2607. cat >conftest.$ac_ext <<_ACEOF
  2608. /* confdefs.h. */
  2609. _ACEOF
  2610. cat confdefs.h >>conftest.$ac_ext
  2611. cat >>conftest.$ac_ext <<_ACEOF
  2612. /* end confdefs.h. */
  2613. #include <stdlib.h>
  2614. _ACEOF
  2615. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2616. $EGREP "free" >/dev/null 2>&1; then
  2617. :
  2618. else
  2619. ac_cv_header_stdc=no
  2620. fi
  2621. rm -f conftest*
  2622. fi
  2623. if test $ac_cv_header_stdc = yes; then
  2624. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2625. if test "$cross_compiling" = yes; then
  2626. :
  2627. else
  2628. cat >conftest.$ac_ext <<_ACEOF
  2629. /* confdefs.h. */
  2630. _ACEOF
  2631. cat confdefs.h >>conftest.$ac_ext
  2632. cat >>conftest.$ac_ext <<_ACEOF
  2633. /* end confdefs.h. */
  2634. #include <ctype.h>
  2635. #include <stdlib.h>
  2636. #if ((' ' & 0x0FF) == 0x020)
  2637. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2638. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2639. #else
  2640. # define ISLOWER(c) \
  2641. (('a' <= (c) && (c) <= 'i') \
  2642. || ('j' <= (c) && (c) <= 'r') \
  2643. || ('s' <= (c) && (c) <= 'z'))
  2644. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2645. #endif
  2646. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2647. int
  2648. main ()
  2649. {
  2650. int i;
  2651. for (i = 0; i < 256; i++)
  2652. if (XOR (islower (i), ISLOWER (i))
  2653. || toupper (i) != TOUPPER (i))
  2654. return 2;
  2655. return 0;
  2656. }
  2657. _ACEOF
  2658. rm -f conftest$ac_exeext
  2659. if { (ac_try="$ac_link"
  2660. case "(($ac_try" in
  2661. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2662. *) ac_try_echo=$ac_try;;
  2663. esac
  2664. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2665. (eval "$ac_link") 2>&5
  2666. ac_status=$?
  2667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2668. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2669. { (case "(($ac_try" in
  2670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2671. *) ac_try_echo=$ac_try;;
  2672. esac
  2673. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2674. (eval "$ac_try") 2>&5
  2675. ac_status=$?
  2676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2677. (exit $ac_status); }; }; then
  2678. :
  2679. else
  2680. echo "$as_me: program exited with status $ac_status" >&5
  2681. echo "$as_me: failed program was:" >&5
  2682. sed 's/^/| /' conftest.$ac_ext >&5
  2683. ( exit $ac_status )
  2684. ac_cv_header_stdc=no
  2685. fi
  2686. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2687. fi
  2688. fi
  2689. fi
  2690. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2691. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  2692. if test $ac_cv_header_stdc = yes; then
  2693. cat >>confdefs.h <<\_ACEOF
  2694. #define STDC_HEADERS 1
  2695. _ACEOF
  2696. fi
  2697. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2698. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2699. inttypes.h stdint.h unistd.h
  2700. do
  2701. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2702. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  2703. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  2704. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  2705. echo $ECHO_N "(cached) $ECHO_C" >&6
  2706. else
  2707. cat >conftest.$ac_ext <<_ACEOF
  2708. /* confdefs.h. */
  2709. _ACEOF
  2710. cat confdefs.h >>conftest.$ac_ext
  2711. cat >>conftest.$ac_ext <<_ACEOF
  2712. /* end confdefs.h. */
  2713. $ac_includes_default
  2714. #include <$ac_header>
  2715. _ACEOF
  2716. rm -f conftest.$ac_objext
  2717. if { (ac_try="$ac_compile"
  2718. case "(($ac_try" in
  2719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2720. *) ac_try_echo=$ac_try;;
  2721. esac
  2722. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2723. (eval "$ac_compile") 2>conftest.er1
  2724. ac_status=$?
  2725. grep -v '^ *+' conftest.er1 >conftest.err
  2726. rm -f conftest.er1
  2727. cat conftest.err >&5
  2728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2729. (exit $ac_status); } && {
  2730. test -z "$ac_cxx_werror_flag" ||
  2731. test ! -s conftest.err
  2732. } && test -s conftest.$ac_objext; then
  2733. eval "$as_ac_Header=yes"
  2734. else
  2735. echo "$as_me: failed program was:" >&5
  2736. sed 's/^/| /' conftest.$ac_ext >&5
  2737. eval "$as_ac_Header=no"
  2738. fi
  2739. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2740. fi
  2741. ac_res=`eval echo '${'$as_ac_Header'}'`
  2742. { echo "$as_me:$LINENO: result: $ac_res" >&5
  2743. echo "${ECHO_T}$ac_res" >&6; }
  2744. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2745. cat >>confdefs.h <<_ACEOF
  2746. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2747. _ACEOF
  2748. fi
  2749. done
  2750. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2751. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2752. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  2753. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2754. echo $ECHO_N "(cached) $ECHO_C" >&6
  2755. fi
  2756. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2757. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  2758. else
  2759. # Is the header compilable?
  2760. { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2761. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
  2762. cat >conftest.$ac_ext <<_ACEOF
  2763. /* confdefs.h. */
  2764. _ACEOF
  2765. cat confdefs.h >>conftest.$ac_ext
  2766. cat >>conftest.$ac_ext <<_ACEOF
  2767. /* end confdefs.h. */
  2768. $ac_includes_default
  2769. #include <minix/config.h>
  2770. _ACEOF
  2771. rm -f conftest.$ac_objext
  2772. if { (ac_try="$ac_compile"
  2773. case "(($ac_try" in
  2774. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2775. *) ac_try_echo=$ac_try;;
  2776. esac
  2777. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2778. (eval "$ac_compile") 2>conftest.er1
  2779. ac_status=$?
  2780. grep -v '^ *+' conftest.er1 >conftest.err
  2781. rm -f conftest.er1
  2782. cat conftest.err >&5
  2783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2784. (exit $ac_status); } && {
  2785. test -z "$ac_cxx_werror_flag" ||
  2786. test ! -s conftest.err
  2787. } && test -s conftest.$ac_objext; then
  2788. ac_header_compiler=yes
  2789. else
  2790. echo "$as_me: failed program was:" >&5
  2791. sed 's/^/| /' conftest.$ac_ext >&5
  2792. ac_header_compiler=no
  2793. fi
  2794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2795. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2796. echo "${ECHO_T}$ac_header_compiler" >&6; }
  2797. # Is the header present?
  2798. { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2799. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
  2800. cat >conftest.$ac_ext <<_ACEOF
  2801. /* confdefs.h. */
  2802. _ACEOF
  2803. cat confdefs.h >>conftest.$ac_ext
  2804. cat >>conftest.$ac_ext <<_ACEOF
  2805. /* end confdefs.h. */
  2806. #include <minix/config.h>
  2807. _ACEOF
  2808. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2809. case "(($ac_try" in
  2810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2811. *) ac_try_echo=$ac_try;;
  2812. esac
  2813. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2814. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2815. ac_status=$?
  2816. grep -v '^ *+' conftest.er1 >conftest.err
  2817. rm -f conftest.er1
  2818. cat conftest.err >&5
  2819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2820. (exit $ac_status); } >/dev/null && {
  2821. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2822. test ! -s conftest.err
  2823. }; then
  2824. ac_header_preproc=yes
  2825. else
  2826. echo "$as_me: failed program was:" >&5
  2827. sed 's/^/| /' conftest.$ac_ext >&5
  2828. ac_header_preproc=no
  2829. fi
  2830. rm -f conftest.err conftest.$ac_ext
  2831. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2832. echo "${ECHO_T}$ac_header_preproc" >&6; }
  2833. # So? What about this header?
  2834. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  2835. yes:no: )
  2836. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2837. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2838. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2839. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2840. ac_header_preproc=yes
  2841. ;;
  2842. no:yes:* )
  2843. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2844. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2845. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2846. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2847. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2848. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2849. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2850. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2851. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2852. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2853. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2854. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2855. ;;
  2856. esac
  2857. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2858. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  2859. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2860. echo $ECHO_N "(cached) $ECHO_C" >&6
  2861. else
  2862. ac_cv_header_minix_config_h=$ac_header_preproc
  2863. fi
  2864. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2865. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  2866. fi
  2867. if test $ac_cv_header_minix_config_h = yes; then
  2868. MINIX=yes
  2869. else
  2870. MINIX=
  2871. fi
  2872. if test "$MINIX" = yes; then
  2873. cat >>confdefs.h <<\_ACEOF
  2874. #define _POSIX_SOURCE 1
  2875. _ACEOF
  2876. cat >>confdefs.h <<\_ACEOF
  2877. #define _POSIX_1_SOURCE 2
  2878. _ACEOF
  2879. cat >>confdefs.h <<\_ACEOF
  2880. #define _MINIX 1
  2881. _ACEOF
  2882. fi
  2883. #checkpoint
  2884. cat >confcache <<\_ACEOF
  2885. # This file is a shell script that caches the results of configure
  2886. # tests run on this system so they can be shared between configure
  2887. # scripts and configure runs, see configure's option --config-cache.
  2888. # It is not useful on other systems. If it contains results you don't
  2889. # want to keep, you may remove or edit it.
  2890. #
  2891. # config.status only pays attention to the cache file if you give it
  2892. # the --recheck option to rerun configure.
  2893. #
  2894. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2895. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2896. # following values.
  2897. _ACEOF
  2898. # The following way of writing the cache mishandles newlines in values,
  2899. # but we know of no workaround that is simple, portable, and efficient.
  2900. # So, we kill variables containing newlines.
  2901. # Ultrix sh set writes to stderr and can't be redirected directly,
  2902. # and sets the high bit in the cache file unless we assign to the vars.
  2903. (
  2904. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  2905. eval ac_val=\$$ac_var
  2906. case $ac_val in #(
  2907. *${as_nl}*)
  2908. case $ac_var in #(
  2909. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  2910. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  2911. esac
  2912. case $ac_var in #(
  2913. _ | IFS | as_nl) ;; #(
  2914. *) $as_unset $ac_var ;;
  2915. esac ;;
  2916. esac
  2917. done
  2918. (set) 2>&1 |
  2919. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  2920. *${as_nl}ac_space=\ *)
  2921. # `set' does not quote correctly, so add quotes (double-quote
  2922. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2923. sed -n \
  2924. "s/'/'\\\\''/g;
  2925. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2926. ;; #(
  2927. *)
  2928. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2929. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2930. ;;
  2931. esac |
  2932. sort
  2933. ) |
  2934. sed '
  2935. /^ac_cv_env_/b end
  2936. t clear
  2937. :clear
  2938. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2939. t end
  2940. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2941. :end' >>confcache
  2942. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  2943. if test -w "$cache_file"; then
  2944. test "x$cache_file" != "x/dev/null" &&
  2945. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  2946. echo "$as_me: updating cache $cache_file" >&6;}
  2947. cat confcache >$cache_file
  2948. else
  2949. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  2950. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  2951. fi
  2952. fi
  2953. rm -f confcache
  2954. # Speedup compile
  2955. if test -n "$GXX" && test -z "$no_wall"; then
  2956. { echo "$as_me:$LINENO: checking whether the compiler understands -Wall" >&5
  2957. echo $ECHO_N "checking whether the compiler understands -Wall... $ECHO_C" >&6; }
  2958. if test "${egg_cv_var_ccwall+set}" = set; then
  2959. echo $ECHO_N "(cached) $ECHO_C" >&6
  2960. else
  2961. ac_old_CXXFLAGS="$CXXFLAGS"
  2962. CXXFLAGS="$CXXFLAGS -Wall"
  2963. cat >conftest.$ac_ext <<_ACEOF
  2964. int main ()
  2965. {
  2966. return(0);
  2967. }
  2968. _ACEOF
  2969. rm -f conftest.$ac_objext
  2970. if { (ac_try="$ac_compile"
  2971. case "(($ac_try" in
  2972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2973. *) ac_try_echo=$ac_try;;
  2974. esac
  2975. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2976. (eval "$ac_compile") 2>conftest.er1
  2977. ac_status=$?
  2978. grep -v '^ *+' conftest.er1 >conftest.err
  2979. rm -f conftest.er1
  2980. cat conftest.err >&5
  2981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2982. (exit $ac_status); } && {
  2983. test -z "$ac_cxx_werror_flag" ||
  2984. test ! -s conftest.err
  2985. } && test -s conftest.$ac_objext; then
  2986. egg_cv_var_ccwall="yes"
  2987. else
  2988. echo "$as_me: failed program was:" >&5
  2989. sed 's/^/| /' conftest.$ac_ext >&5
  2990. egg_cv_var_ccwall="no"
  2991. fi
  2992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2993. CXXFLAGS="$ac_old_CXXFLAGS"
  2994. fi
  2995. { echo "$as_me:$LINENO: result: $egg_cv_var_ccwall" >&5
  2996. echo "${ECHO_T}$egg_cv_var_ccwall" >&6; }
  2997. if test "$egg_cv_var_ccwall" = "yes"; then
  2998. CXXFLAGS="$CXXFLAGS -Wall"
  2999. fi
  3000. fi
  3001. if test -n "$GXX" && test -z "$no_pipe"; then
  3002. { echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  3003. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6; }
  3004. if test "${egg_cv_var_ccpipe+set}" = set; then
  3005. echo $ECHO_N "(cached) $ECHO_C" >&6
  3006. else
  3007. ac_old_CXX="$CXX"
  3008. CXX="$CXX -pipe"
  3009. cat >conftest.$ac_ext <<_ACEOF
  3010. int main ()
  3011. {
  3012. return(0);
  3013. }
  3014. _ACEOF
  3015. rm -f conftest.$ac_objext
  3016. if { (ac_try="$ac_compile"
  3017. case "(($ac_try" in
  3018. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3019. *) ac_try_echo=$ac_try;;
  3020. esac
  3021. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3022. (eval "$ac_compile") 2>conftest.er1
  3023. ac_status=$?
  3024. grep -v '^ *+' conftest.er1 >conftest.err
  3025. rm -f conftest.er1
  3026. cat conftest.err >&5
  3027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3028. (exit $ac_status); } && {
  3029. test -z "$ac_cxx_werror_flag" ||
  3030. test ! -s conftest.err
  3031. } && test -s conftest.$ac_objext; then
  3032. egg_cv_var_ccpipe="yes"
  3033. else
  3034. echo "$as_me: failed program was:" >&5
  3035. sed 's/^/| /' conftest.$ac_ext >&5
  3036. egg_cv_var_ccpipe="no"
  3037. fi
  3038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3039. CXX="$ac_old_CXX"
  3040. fi
  3041. { echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  3042. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6; }
  3043. if test "$egg_cv_var_ccpipe" = "yes"; then
  3044. CXX="$CXX -pipe"
  3045. fi
  3046. fi
  3047. CCDEPMODE=gcc
  3048. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  3049. if test $num = "3"; then
  3050. CCDEPMODE=gcc3
  3051. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  3052. GCC3="-W -Wno-unused-parameter -Wdisabled-optimization -Wmissing-format-attribute"
  3053. fi
  3054. #checkpoint
  3055. cat >confcache <<\_ACEOF
  3056. # This file is a shell script that caches the results of configure
  3057. # tests run on this system so they can be shared between configure
  3058. # scripts and configure runs, see configure's option --config-cache.
  3059. # It is not useful on other systems. If it contains results you don't
  3060. # want to keep, you may remove or edit it.
  3061. #
  3062. # config.status only pays attention to the cache file if you give it
  3063. # the --recheck option to rerun configure.
  3064. #
  3065. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3066. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3067. # following values.
  3068. _ACEOF
  3069. # The following way of writing the cache mishandles newlines in values,
  3070. # but we know of no workaround that is simple, portable, and efficient.
  3071. # So, we kill variables containing newlines.
  3072. # Ultrix sh set writes to stderr and can't be redirected directly,
  3073. # and sets the high bit in the cache file unless we assign to the vars.
  3074. (
  3075. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3076. eval ac_val=\$$ac_var
  3077. case $ac_val in #(
  3078. *${as_nl}*)
  3079. case $ac_var in #(
  3080. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  3081. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  3082. esac
  3083. case $ac_var in #(
  3084. _ | IFS | as_nl) ;; #(
  3085. *) $as_unset $ac_var ;;
  3086. esac ;;
  3087. esac
  3088. done
  3089. (set) 2>&1 |
  3090. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3091. *${as_nl}ac_space=\ *)
  3092. # `set' does not quote correctly, so add quotes (double-quote
  3093. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3094. sed -n \
  3095. "s/'/'\\\\''/g;
  3096. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3097. ;; #(
  3098. *)
  3099. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3100. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3101. ;;
  3102. esac |
  3103. sort
  3104. ) |
  3105. sed '
  3106. /^ac_cv_env_/b end
  3107. t clear
  3108. :clear
  3109. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3110. t end
  3111. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3112. :end' >>confcache
  3113. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3114. if test -w "$cache_file"; then
  3115. test "x$cache_file" != "x/dev/null" &&
  3116. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3117. echo "$as_me: updating cache $cache_file" >&6;}
  3118. cat confcache >$cache_file
  3119. else
  3120. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3121. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3122. fi
  3123. fi
  3124. rm -f confcache
  3125. # Checks for programs
  3126. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3127. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  3128. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3129. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  3130. echo $ECHO_N "(cached) $ECHO_C" >&6
  3131. else
  3132. cat >conftest.make <<\_ACEOF
  3133. SHELL = /bin/sh
  3134. all:
  3135. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3136. _ACEOF
  3137. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3138. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3139. *@@@%%%=?*=@@@%%%*)
  3140. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3141. *)
  3142. eval ac_cv_prog_make_${ac_make}_set=no;;
  3143. esac
  3144. rm -f conftest.make
  3145. fi
  3146. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3147. { echo "$as_me:$LINENO: result: yes" >&5
  3148. echo "${ECHO_T}yes" >&6; }
  3149. SET_MAKE=
  3150. else
  3151. { echo "$as_me:$LINENO: result: no" >&5
  3152. echo "${ECHO_T}no" >&6; }
  3153. SET_MAKE="MAKE=${MAKE-make}"
  3154. fi
  3155. cat << 'EOF' > conftest.head
  3156. a
  3157. b
  3158. c
  3159. EOF
  3160. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  3161. do
  3162. { echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  3163. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6; }
  3164. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  3165. echo $ECHO_N "(cached) $ECHO_C" >&6
  3166. else
  3167. if test -n "$HEAD_1"
  3168. then
  3169. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  3170. else
  3171. if test "`cat conftest.head | $ac_prog`" = "a";
  3172. then
  3173. { echo "$as_me:$LINENO: result: yes" >&5
  3174. echo "${ECHO_T}yes" >&6; }
  3175. ac_cv_prog_HEAD_1=$ac_prog
  3176. else
  3177. { echo "$as_me:$LINENO: result: no" >&5
  3178. echo "${ECHO_T}no" >&6; }
  3179. fi
  3180. fi
  3181. fi
  3182. test -n "$ac_cv_prog_HEAD_1" && break
  3183. done
  3184. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  3185. then
  3186. cat << 'EOF' >&2
  3187. configure: error:
  3188. This system seems to lack a working 'head -1' or 'head -n 1' command.
  3189. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  3190. EOF
  3191. exit 1
  3192. fi
  3193. rm -f conftest.head
  3194. HEAD_1=$ac_cv_prog_HEAD_1
  3195. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3196. for ac_prog in gawk mawk nawk awk
  3197. do
  3198. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3199. set dummy $ac_prog; ac_word=$2
  3200. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3201. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3202. if test "${ac_cv_prog_AWK+set}" = set; then
  3203. echo $ECHO_N "(cached) $ECHO_C" >&6
  3204. else
  3205. if test -n "$AWK"; then
  3206. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3207. else
  3208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3209. for as_dir in $PATH
  3210. do
  3211. IFS=$as_save_IFS
  3212. test -z "$as_dir" && as_dir=.
  3213. for ac_exec_ext in '' $ac_executable_extensions; do
  3214. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3215. ac_cv_prog_AWK="$ac_prog"
  3216. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3217. break 2
  3218. fi
  3219. done
  3220. done
  3221. IFS=$as_save_IFS
  3222. fi
  3223. fi
  3224. AWK=$ac_cv_prog_AWK
  3225. if test -n "$AWK"; then
  3226. { echo "$as_me:$LINENO: result: $AWK" >&5
  3227. echo "${ECHO_T}$AWK" >&6; }
  3228. else
  3229. { echo "$as_me:$LINENO: result: no" >&5
  3230. echo "${ECHO_T}no" >&6; }
  3231. fi
  3232. test -n "$AWK" && break
  3233. done
  3234. if test "${AWK-x}" = "x"
  3235. then
  3236. cat << 'EOF' >&2
  3237. configure: error:
  3238. This system seems to lack a working 'awk' command.
  3239. A working 'awk' command is required to compile Eggdrop.
  3240. EOF
  3241. exit 1
  3242. fi
  3243. # basename is needed for Tcl library and header checks
  3244. # Extract the first word of "basename", so it can be a program name with args.
  3245. set dummy basename; ac_word=$2
  3246. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3247. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3248. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3249. echo $ECHO_N "(cached) $ECHO_C" >&6
  3250. else
  3251. if test -n "$BASENAME"; then
  3252. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3253. else
  3254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3255. for as_dir in $PATH
  3256. do
  3257. IFS=$as_save_IFS
  3258. test -z "$as_dir" && as_dir=.
  3259. for ac_exec_ext in '' $ac_executable_extensions; do
  3260. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3261. ac_cv_prog_BASENAME="basename"
  3262. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3263. break 2
  3264. fi
  3265. done
  3266. done
  3267. IFS=$as_save_IFS
  3268. fi
  3269. fi
  3270. BASENAME=$ac_cv_prog_BASENAME
  3271. if test -n "$BASENAME"; then
  3272. { echo "$as_me:$LINENO: result: $BASENAME" >&5
  3273. echo "${ECHO_T}$BASENAME" >&6; }
  3274. else
  3275. { echo "$as_me:$LINENO: result: no" >&5
  3276. echo "${ECHO_T}no" >&6; }
  3277. fi
  3278. if test "${BASENAME-x}" = "x"
  3279. then
  3280. cat << 'EOF' >&2
  3281. configure: error:
  3282. This system seems to lack a working 'basename' command.
  3283. A working 'basename' command is required to compile Eggdrop.
  3284. EOF
  3285. exit 1
  3286. fi
  3287. # Extract the first word of "objcopy", so it can be a program name with args.
  3288. set dummy objcopy; ac_word=$2
  3289. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3290. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3291. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  3292. echo $ECHO_N "(cached) $ECHO_C" >&6
  3293. else
  3294. if test -n "$OBJCOPY"; then
  3295. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3296. else
  3297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3298. for as_dir in $PATH
  3299. do
  3300. IFS=$as_save_IFS
  3301. test -z "$as_dir" && as_dir=.
  3302. for ac_exec_ext in '' $ac_executable_extensions; do
  3303. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3304. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3305. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3306. break 2
  3307. fi
  3308. done
  3309. done
  3310. IFS=$as_save_IFS
  3311. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  3312. fi
  3313. fi
  3314. OBJCOPY=$ac_cv_prog_OBJCOPY
  3315. if test -n "$OBJCOPY"; then
  3316. { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  3317. echo "${ECHO_T}$OBJCOPY" >&6; }
  3318. else
  3319. { echo "$as_me:$LINENO: result: no" >&5
  3320. echo "${ECHO_T}no" >&6; }
  3321. fi
  3322. # Extract the first word of "strip", so it can be a program name with args.
  3323. set dummy strip; ac_word=$2
  3324. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3325. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3326. if test "${ac_cv_prog_STRIP+set}" = set; then
  3327. echo $ECHO_N "(cached) $ECHO_C" >&6
  3328. else
  3329. if test -n "$STRIP"; then
  3330. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3331. else
  3332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3333. for as_dir in $PATH
  3334. do
  3335. IFS=$as_save_IFS
  3336. test -z "$as_dir" && as_dir=.
  3337. for ac_exec_ext in '' $ac_executable_extensions; do
  3338. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3339. ac_cv_prog_STRIP="strip"
  3340. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3341. break 2
  3342. fi
  3343. done
  3344. done
  3345. IFS=$as_save_IFS
  3346. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3347. fi
  3348. fi
  3349. STRIP=$ac_cv_prog_STRIP
  3350. if test -n "$STRIP"; then
  3351. { echo "$as_me:$LINENO: result: $STRIP" >&5
  3352. echo "${ECHO_T}$STRIP" >&6; }
  3353. else
  3354. { echo "$as_me:$LINENO: result: no" >&5
  3355. echo "${ECHO_T}no" >&6; }
  3356. fi
  3357. # Extract the first word of "gdiff", so it can be a program name with args.
  3358. set dummy gdiff; ac_word=$2
  3359. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3360. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3361. if test "${ac_cv_prog_DIFF+set}" = set; then
  3362. echo $ECHO_N "(cached) $ECHO_C" >&6
  3363. else
  3364. if test -n "$DIFF"; then
  3365. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  3366. else
  3367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3368. for as_dir in $PATH
  3369. do
  3370. IFS=$as_save_IFS
  3371. test -z "$as_dir" && as_dir=.
  3372. for ac_exec_ext in '' $ac_executable_extensions; do
  3373. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3374. ac_cv_prog_DIFF="gdiff"
  3375. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3376. break 2
  3377. fi
  3378. done
  3379. done
  3380. IFS=$as_save_IFS
  3381. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  3382. fi
  3383. fi
  3384. DIFF=$ac_cv_prog_DIFF
  3385. if test -n "$DIFF"; then
  3386. { echo "$as_me:$LINENO: result: $DIFF" >&5
  3387. echo "${ECHO_T}$DIFF" >&6; }
  3388. else
  3389. { echo "$as_me:$LINENO: result: no" >&5
  3390. echo "${ECHO_T}no" >&6; }
  3391. fi
  3392. # Extract the first word of "uname", so it can be a program name with args.
  3393. set dummy uname; ac_word=$2
  3394. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3395. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3396. if test "${ac_cv_prog_UNAME+set}" = set; then
  3397. echo $ECHO_N "(cached) $ECHO_C" >&6
  3398. else
  3399. if test -n "$UNAME"; then
  3400. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3401. else
  3402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3403. for as_dir in $PATH
  3404. do
  3405. IFS=$as_save_IFS
  3406. test -z "$as_dir" && as_dir=.
  3407. for ac_exec_ext in '' $ac_executable_extensions; do
  3408. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3409. ac_cv_prog_UNAME="uname"
  3410. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3411. break 2
  3412. fi
  3413. done
  3414. done
  3415. IFS=$as_save_IFS
  3416. fi
  3417. fi
  3418. UNAME=$ac_cv_prog_UNAME
  3419. if test -n "$UNAME"; then
  3420. { echo "$as_me:$LINENO: result: $UNAME" >&5
  3421. echo "${ECHO_T}$UNAME" >&6; }
  3422. else
  3423. { echo "$as_me:$LINENO: result: no" >&5
  3424. echo "${ECHO_T}no" >&6; }
  3425. fi
  3426. # Extract the first word of "ccache", so it can be a program name with args.
  3427. set dummy ccache; ac_word=$2
  3428. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3429. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3430. if test "${ac_cv_prog_CCACHE+set}" = set; then
  3431. echo $ECHO_N "(cached) $ECHO_C" >&6
  3432. else
  3433. if test -n "$CCACHE"; then
  3434. ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
  3435. else
  3436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3437. for as_dir in $PATH
  3438. do
  3439. IFS=$as_save_IFS
  3440. test -z "$as_dir" && as_dir=.
  3441. for ac_exec_ext in '' $ac_executable_extensions; do
  3442. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3443. ac_cv_prog_CCACHE="ccache"
  3444. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3445. break 2
  3446. fi
  3447. done
  3448. done
  3449. IFS=$as_save_IFS
  3450. fi
  3451. fi
  3452. CCACHE=$ac_cv_prog_CCACHE
  3453. if test -n "$CCACHE"; then
  3454. { echo "$as_me:$LINENO: result: $CCACHE" >&5
  3455. echo "${ECHO_T}$CCACHE" >&6; }
  3456. else
  3457. { echo "$as_me:$LINENO: result: no" >&5
  3458. echo "${ECHO_T}no" >&6; }
  3459. fi
  3460. # Extract the first word of "distcc", so it can be a program name with args.
  3461. set dummy distcc; ac_word=$2
  3462. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3463. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3464. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3465. echo $ECHO_N "(cached) $ECHO_C" >&6
  3466. else
  3467. if test -n "$DISTCC"; then
  3468. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3469. else
  3470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3471. for as_dir in $PATH
  3472. do
  3473. IFS=$as_save_IFS
  3474. test -z "$as_dir" && as_dir=.
  3475. for ac_exec_ext in '' $ac_executable_extensions; do
  3476. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3477. ac_cv_prog_DISTCC="distcc"
  3478. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3479. break 2
  3480. fi
  3481. done
  3482. done
  3483. IFS=$as_save_IFS
  3484. fi
  3485. fi
  3486. DISTCC=$ac_cv_prog_DISTCC
  3487. if test -n "$DISTCC"; then
  3488. { echo "$as_me:$LINENO: result: $DISTCC" >&5
  3489. echo "${ECHO_T}$DISTCC" >&6; }
  3490. else
  3491. { echo "$as_me:$LINENO: result: no" >&5
  3492. echo "${ECHO_T}no" >&6; }
  3493. fi
  3494. # Test the os and set the module linking settings
  3495. EGG_CYGWIN=no
  3496. { echo "$as_me:$LINENO: checking system type" >&5
  3497. echo $ECHO_N "checking system type... $ECHO_C" >&6; }
  3498. if test "${egg_cv_var_system_type+set}" = set; then
  3499. echo $ECHO_N "(cached) $ECHO_C" >&6
  3500. else
  3501. egg_cv_var_system_type=`$UNAME -s`
  3502. fi
  3503. { echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3504. echo "${ECHO_T}$egg_cv_var_system_type" >&6; }
  3505. { echo "$as_me:$LINENO: checking system release" >&5
  3506. echo $ECHO_N "checking system release... $ECHO_C" >&6; }
  3507. if test "${egg_cv_var_system_release+set}" = set; then
  3508. echo $ECHO_N "(cached) $ECHO_C" >&6
  3509. else
  3510. egg_cv_var_system_release=`$UNAME -r`
  3511. fi
  3512. { echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3513. echo "${ECHO_T}$egg_cv_var_system_release" >&6; }
  3514. { echo "$as_me:$LINENO: checking system machine" >&5
  3515. echo $ECHO_N "checking system machine... $ECHO_C" >&6; }
  3516. if test "${egg_cv_var_system_machine+set}" = set; then
  3517. echo $ECHO_N "(cached) $ECHO_C" >&6
  3518. else
  3519. egg_cv_var_system_machine=`$UNAME -m`
  3520. fi
  3521. { echo "$as_me:$LINENO: result: $egg_cv_var_system_machine" >&5
  3522. echo "${ECHO_T}$egg_cv_var_system_machine" >&6; }
  3523. BUILDOS="$egg_cv_var_system_type"
  3524. BUILDARCH="$egg_cv_var_system_machine"
  3525. case "$egg_cv_var_system_machine" in
  3526. i*)
  3527. CXX="$CXX -march=i486"
  3528. BUILDARCH="i486"
  3529. ;;
  3530. *)
  3531. ;;
  3532. esac
  3533. case "$egg_cv_var_system_type" in
  3534. BSD/OS)
  3535. ;;
  3536. CYGWI*)
  3537. { echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3538. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6; }
  3539. WIN32FLAGS=
  3540. cat >conftest.$ac_ext <<_ACEOF
  3541. /* confdefs.h. */
  3542. _ACEOF
  3543. cat confdefs.h >>conftest.$ac_ext
  3544. cat >>conftest.$ac_ext <<_ACEOF
  3545. /* end confdefs.h. */
  3546. int
  3547. main ()
  3548. {
  3549. #ifndef WIN32
  3550. # ifndef _WIN32
  3551. # error WIN32 or _WIN32 not defined
  3552. # endif
  3553. #endif
  3554. ;
  3555. return 0;
  3556. }
  3557. _ACEOF
  3558. rm -f conftest.$ac_objext
  3559. if { (ac_try="$ac_compile"
  3560. case "(($ac_try" in
  3561. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3562. *) ac_try_echo=$ac_try;;
  3563. esac
  3564. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3565. (eval "$ac_compile") 2>conftest.er1
  3566. ac_status=$?
  3567. grep -v '^ *+' conftest.er1 >conftest.err
  3568. rm -f conftest.er1
  3569. cat conftest.err >&5
  3570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3571. (exit $ac_status); } && {
  3572. test -z "$ac_cxx_werror_flag" ||
  3573. test ! -s conftest.err
  3574. } && test -s conftest.$ac_objext; then
  3575. { echo "$as_me:$LINENO: result: present by default" >&5
  3576. echo "${ECHO_T}present by default" >&6; }
  3577. else
  3578. echo "$as_me: failed program was:" >&5
  3579. sed 's/^/| /' conftest.$ac_ext >&5
  3580. ac_compile_save="$ac_compile"
  3581. save_CXX="$CXX"
  3582. ac_compile="$ac_compile -mwin32"
  3583. CXX="$CXX -mwin32"
  3584. cat >conftest.$ac_ext <<_ACEOF
  3585. /* confdefs.h. */
  3586. _ACEOF
  3587. cat confdefs.h >>conftest.$ac_ext
  3588. cat >>conftest.$ac_ext <<_ACEOF
  3589. /* end confdefs.h. */
  3590. int
  3591. main ()
  3592. {
  3593. #ifndef WIN32
  3594. # ifndef _WIN32
  3595. # error WIN32 or _WIN32 not defined
  3596. # endif
  3597. #endif
  3598. ;
  3599. return 0;
  3600. }
  3601. _ACEOF
  3602. rm -f conftest.$ac_objext
  3603. if { (ac_try="$ac_compile"
  3604. case "(($ac_try" in
  3605. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3606. *) ac_try_echo=$ac_try;;
  3607. esac
  3608. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3609. (eval "$ac_compile") 2>conftest.er1
  3610. ac_status=$?
  3611. grep -v '^ *+' conftest.er1 >conftest.err
  3612. rm -f conftest.er1
  3613. cat conftest.err >&5
  3614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3615. (exit $ac_status); } && {
  3616. test -z "$ac_cxx_werror_flag" ||
  3617. test ! -s conftest.err
  3618. } && test -s conftest.$ac_objext; then
  3619. { echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3620. echo "${ECHO_T}found via -mwin32" >&6; }
  3621. ac_compile="$ac_compile_save"
  3622. CXX="$save_CXX"
  3623. WIN32FLAGS="-mwin32"
  3624. else
  3625. echo "$as_me: failed program was:" >&5
  3626. sed 's/^/| /' conftest.$ac_ext >&5
  3627. ac_compile="$ac_compile_save"
  3628. CXX="$save_CXX"
  3629. { echo "$as_me:$LINENO: result: not found" >&5
  3630. echo "${ECHO_T}not found" >&6; }
  3631. fi
  3632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3633. fi
  3634. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3635. CXX="$CXX $WIN32FLAGS"
  3636. EGG_CYGWIN="yes"
  3637. if test $EGG_CYGWIN = "yes"; then
  3638. { echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3639. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6; }
  3640. if test -r /usr/lib/binmode.o; then
  3641. { echo "$as_me:$LINENO: result: yes" >&5
  3642. echo "${ECHO_T}yes" >&6; }
  3643. LIBS="$LIBS /usr/lib/binmode.o"
  3644. else
  3645. { echo "$as_me:$LINENO: result: no" >&5
  3646. echo "${ECHO_T}no" >&6; }
  3647. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3648. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3649. fi
  3650. fi
  3651. cat >>confdefs.h <<\_ACEOF
  3652. #define CYGWIN_HACKS 1
  3653. _ACEOF
  3654. cat >>confdefs.h <<\_ACEOF
  3655. #define WIN32_LEAN_AND_MEAN 1
  3656. _ACEOF
  3657. ;;
  3658. IRIX)
  3659. ;;
  3660. HP-UX)
  3661. cat >>confdefs.h <<\_ACEOF
  3662. #define MD32_XARRAY 1
  3663. _ACEOF
  3664. ;;
  3665. Ultrix)
  3666. SHELL=/bin/sh5
  3667. ;;
  3668. SINIX*)
  3669. ;;
  3670. BeOS)
  3671. ;;
  3672. Linux)
  3673. ;;
  3674. Lynx)
  3675. ;;
  3676. QNX)
  3677. ;;
  3678. OSF1)
  3679. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3680. V*)
  3681. if test "$AWK" = "gawk"
  3682. then
  3683. AWK=awk
  3684. fi
  3685. ;;
  3686. 1.0|1.1|1.2)
  3687. cat >>confdefs.h <<\_ACEOF
  3688. #define OSF1_HACKS 1
  3689. _ACEOF
  3690. ;;
  3691. 1.*)
  3692. cat >>confdefs.h <<\_ACEOF
  3693. #define OSF1_HACKS 1
  3694. _ACEOF
  3695. ;;
  3696. *)
  3697. ;;
  3698. esac
  3699. cat >>confdefs.h <<\_ACEOF
  3700. #define STOP_UAC 1
  3701. _ACEOF
  3702. cat >>confdefs.h <<\_ACEOF
  3703. #define BROKEN_SNPRINTF 1
  3704. _ACEOF
  3705. ;;
  3706. SunOS)
  3707. SUNOS="yes"
  3708. ;;
  3709. *BSD)
  3710. # FreeBSD/OpenBSD/NetBSD
  3711. ;;
  3712. *)
  3713. { echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3714. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6; }
  3715. if test -r /mach
  3716. then
  3717. { echo "$as_me:$LINENO: result: yes" >&5
  3718. echo "${ECHO_T}yes" >&6; }
  3719. cat >>confdefs.h <<\_ACEOF
  3720. #define BORGCUBES 1
  3721. _ACEOF
  3722. else
  3723. { echo "$as_me:$LINENO: result: no" >&5
  3724. echo "${ECHO_T}no" >&6; }
  3725. { echo "$as_me:$LINENO: checking if system is QNX" >&5
  3726. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6; }
  3727. if test -r /cmds
  3728. then
  3729. { echo "$as_me:$LINENO: result: yes" >&5
  3730. echo "${ECHO_T}yes" >&6; }
  3731. else
  3732. { echo "$as_me:$LINENO: result: no" >&5
  3733. echo "${ECHO_T}no" >&6; }
  3734. { echo "$as_me:$LINENO: result: Something unknown!" >&5
  3735. echo "${ECHO_T}Something unknown!" >&6; }
  3736. { echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3737. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6; }
  3738. fi
  3739. fi
  3740. ;;
  3741. esac
  3742. # Check for IPv6 support
  3743. #EGG_IPV6_SUPPORTED
  3744. { echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  3745. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6; }
  3746. # Check whether --enable-ipv6 was given.
  3747. if test "${enable_ipv6+set}" = set; then
  3748. enableval=$enable_ipv6; ac_cv_dipv6="yes"
  3749. { echo "$as_me:$LINENO: result: yes" >&5
  3750. echo "${ECHO_T}yes" >&6; }
  3751. else
  3752. ac_cv_dipv6="no"
  3753. if test "$egg_cv_ipv6_supported" = "no"; then
  3754. ac_cv_dipv6="no"
  3755. fi
  3756. { echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  3757. echo "${ECHO_T}$ac_cv_dipv6" >&6; }
  3758. fi
  3759. if ! test "$EGG_CYGWIN" = "yes"; then
  3760. if test "$ac_cv_dipv6" = "no"; then
  3761. cat >>confdefs.h <<\_ACEOF
  3762. #define USE_IPV6 1
  3763. _ACEOF
  3764. fi
  3765. fi
  3766. { echo "$as_me:$LINENO: checking for socklen_t" >&5
  3767. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
  3768. if test "${egg_cv_socklen_t+set}" = set; then
  3769. echo $ECHO_N "(cached) $ECHO_C" >&6
  3770. else
  3771. if test "$cross_compiling" = yes; then
  3772. egg_cv_socklen_t=no
  3773. else
  3774. cat >conftest.$ac_ext <<_ACEOF
  3775. /* confdefs.h. */
  3776. _ACEOF
  3777. cat confdefs.h >>conftest.$ac_ext
  3778. cat >>conftest.$ac_ext <<_ACEOF
  3779. /* end confdefs.h. */
  3780. #include <unistd.h>
  3781. #include <sys/types.h>
  3782. #include <sys/socket.h>
  3783. #include <netinet/in.h>
  3784. #include <arpa/inet.h>
  3785. int main()
  3786. {
  3787. socklen_t test = sizeof(int);
  3788. return 0;
  3789. }
  3790. _ACEOF
  3791. rm -f conftest$ac_exeext
  3792. if { (ac_try="$ac_link"
  3793. case "(($ac_try" in
  3794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3795. *) ac_try_echo=$ac_try;;
  3796. esac
  3797. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3798. (eval "$ac_link") 2>&5
  3799. ac_status=$?
  3800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3801. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3802. { (case "(($ac_try" in
  3803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3804. *) ac_try_echo=$ac_try;;
  3805. esac
  3806. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3807. (eval "$ac_try") 2>&5
  3808. ac_status=$?
  3809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3810. (exit $ac_status); }; }; then
  3811. egg_cv_socklen_t=yes
  3812. else
  3813. echo "$as_me: program exited with status $ac_status" >&5
  3814. echo "$as_me: failed program was:" >&5
  3815. sed 's/^/| /' conftest.$ac_ext >&5
  3816. ( exit $ac_status )
  3817. egg_cv_socklen_t=no
  3818. fi
  3819. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3820. fi
  3821. fi
  3822. if test "$egg_cv_socklen_t" = "yes"; then
  3823. cat >>confdefs.h <<\_ACEOF
  3824. #define HAVE_SOCKLEN_T 1
  3825. _ACEOF
  3826. { echo "$as_me:$LINENO: result: yes" >&5
  3827. echo "${ECHO_T}yes" >&6; }
  3828. else
  3829. { echo "$as_me:$LINENO: result: no" >&5
  3830. echo "${ECHO_T}no" >&6; }
  3831. fi
  3832. # Check for inconsistent random() functions
  3833. { echo "$as_me:$LINENO: checking for random limit" >&5
  3834. echo $ECHO_N "checking for random limit... $ECHO_C" >&6; }
  3835. case "$egg_cv_var_system_type" in
  3836. SunOS) RMAX=0x7FFFFFFF
  3837. ;;
  3838. *) RMAX=RAND_MAX
  3839. ;;
  3840. esac
  3841. { echo "$as_me:$LINENO: result: $RMAX" >&5
  3842. echo "${ECHO_T}$RMAX" >&6; }
  3843. cat >>confdefs.h <<_ACEOF
  3844. #define RANDOM_MAX $RMAX
  3845. _ACEOF
  3846. # Create static binaries
  3847. if test -z "$no_static"
  3848. then
  3849. if test -n "$GXX"
  3850. then
  3851. { echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  3852. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6; }
  3853. if test "${egg_cv_var_ccstatic+set}" = set; then
  3854. echo $ECHO_N "(cached) $ECHO_C" >&6
  3855. else
  3856. ac_old_CXX="$CXX"
  3857. CXX="$CXX -static"
  3858. cat >conftest.$ac_ext <<_ACEOF
  3859. /* confdefs.h. */
  3860. _ACEOF
  3861. cat confdefs.h >>conftest.$ac_ext
  3862. cat >>conftest.$ac_ext <<_ACEOF
  3863. /* end confdefs.h. */
  3864. int
  3865. main ()
  3866. {
  3867. ;
  3868. return 0;
  3869. }
  3870. _ACEOF
  3871. rm -f conftest.$ac_objext
  3872. if { (ac_try="$ac_compile"
  3873. case "(($ac_try" in
  3874. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3875. *) ac_try_echo=$ac_try;;
  3876. esac
  3877. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3878. (eval "$ac_compile") 2>conftest.er1
  3879. ac_status=$?
  3880. grep -v '^ *+' conftest.er1 >conftest.err
  3881. rm -f conftest.er1
  3882. cat conftest.err >&5
  3883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3884. (exit $ac_status); } && {
  3885. test -z "$ac_cxx_werror_flag" ||
  3886. test ! -s conftest.err
  3887. } && test -s conftest.$ac_objext; then
  3888. egg_cv_var_ccstatic="yes"
  3889. else
  3890. echo "$as_me: failed program was:" >&5
  3891. sed 's/^/| /' conftest.$ac_ext >&5
  3892. egg_cv_var_ccstatic="no"
  3893. fi
  3894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3895. CXX="$ac_old_CXX"
  3896. fi
  3897. { echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  3898. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6; }
  3899. if test "$egg_cv_var_ccstatic" = "yes"
  3900. then
  3901. CCDEBUG="$CXX"
  3902. CXX="$CXX -static"
  3903. else
  3904. cat << 'EOF' >&2
  3905. configure: error:
  3906. Your C compiler does not support -static.
  3907. This compile flag is required for the botpack.
  3908. EOF
  3909. exit 1
  3910. fi
  3911. fi
  3912. fi
  3913. #checkpoint
  3914. cat >confcache <<\_ACEOF
  3915. # This file is a shell script that caches the results of configure
  3916. # tests run on this system so they can be shared between configure
  3917. # scripts and configure runs, see configure's option --config-cache.
  3918. # It is not useful on other systems. If it contains results you don't
  3919. # want to keep, you may remove or edit it.
  3920. #
  3921. # config.status only pays attention to the cache file if you give it
  3922. # the --recheck option to rerun configure.
  3923. #
  3924. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3925. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3926. # following values.
  3927. _ACEOF
  3928. # The following way of writing the cache mishandles newlines in values,
  3929. # but we know of no workaround that is simple, portable, and efficient.
  3930. # So, we kill variables containing newlines.
  3931. # Ultrix sh set writes to stderr and can't be redirected directly,
  3932. # and sets the high bit in the cache file unless we assign to the vars.
  3933. (
  3934. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3935. eval ac_val=\$$ac_var
  3936. case $ac_val in #(
  3937. *${as_nl}*)
  3938. case $ac_var in #(
  3939. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  3940. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  3941. esac
  3942. case $ac_var in #(
  3943. _ | IFS | as_nl) ;; #(
  3944. *) $as_unset $ac_var ;;
  3945. esac ;;
  3946. esac
  3947. done
  3948. (set) 2>&1 |
  3949. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3950. *${as_nl}ac_space=\ *)
  3951. # `set' does not quote correctly, so add quotes (double-quote
  3952. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3953. sed -n \
  3954. "s/'/'\\\\''/g;
  3955. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3956. ;; #(
  3957. *)
  3958. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3959. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3960. ;;
  3961. esac |
  3962. sort
  3963. ) |
  3964. sed '
  3965. /^ac_cv_env_/b end
  3966. t clear
  3967. :clear
  3968. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3969. t end
  3970. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3971. :end' >>confcache
  3972. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3973. if test -w "$cache_file"; then
  3974. test "x$cache_file" != "x/dev/null" &&
  3975. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3976. echo "$as_me: updating cache $cache_file" >&6;}
  3977. cat confcache >$cache_file
  3978. else
  3979. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3980. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3981. fi
  3982. fi
  3983. rm -f confcache
  3984. # Checks for system libraries
  3985. { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  3986. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
  3987. if test "${ac_cv_lib_socket_socket+set}" = set; then
  3988. echo $ECHO_N "(cached) $ECHO_C" >&6
  3989. else
  3990. ac_check_lib_save_LIBS=$LIBS
  3991. LIBS="-lsocket $LIBS"
  3992. cat >conftest.$ac_ext <<_ACEOF
  3993. /* confdefs.h. */
  3994. _ACEOF
  3995. cat confdefs.h >>conftest.$ac_ext
  3996. cat >>conftest.$ac_ext <<_ACEOF
  3997. /* end confdefs.h. */
  3998. /* Override any GCC internal prototype to avoid an error.
  3999. Use char because int might match the return type of a GCC
  4000. builtin and then its argument prototype would still apply. */
  4001. #ifdef __cplusplus
  4002. extern "C"
  4003. #endif
  4004. char socket ();
  4005. int
  4006. main ()
  4007. {
  4008. return socket ();
  4009. ;
  4010. return 0;
  4011. }
  4012. _ACEOF
  4013. rm -f conftest.$ac_objext conftest$ac_exeext
  4014. if { (ac_try="$ac_link"
  4015. case "(($ac_try" in
  4016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4017. *) ac_try_echo=$ac_try;;
  4018. esac
  4019. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4020. (eval "$ac_link") 2>conftest.er1
  4021. ac_status=$?
  4022. grep -v '^ *+' conftest.er1 >conftest.err
  4023. rm -f conftest.er1
  4024. cat conftest.err >&5
  4025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4026. (exit $ac_status); } && {
  4027. test -z "$ac_cxx_werror_flag" ||
  4028. test ! -s conftest.err
  4029. } && test -s conftest$ac_exeext &&
  4030. $as_test_x conftest$ac_exeext; then
  4031. ac_cv_lib_socket_socket=yes
  4032. else
  4033. echo "$as_me: failed program was:" >&5
  4034. sed 's/^/| /' conftest.$ac_ext >&5
  4035. ac_cv_lib_socket_socket=no
  4036. fi
  4037. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4038. conftest$ac_exeext conftest.$ac_ext
  4039. LIBS=$ac_check_lib_save_LIBS
  4040. fi
  4041. { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4042. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
  4043. if test $ac_cv_lib_socket_socket = yes; then
  4044. cat >>confdefs.h <<_ACEOF
  4045. #define HAVE_LIBSOCKET 1
  4046. _ACEOF
  4047. LIBS="-lsocket $LIBS"
  4048. fi
  4049. # AC_CHECK_LIB(nsl, connect)
  4050. # AC_CHECK_LIB(dl, dlopen)
  4051. # AC_CHECK_LIB(nsl, gethostbyname)
  4052. # AC_CHECK_LIB(dns, gethostbyname)
  4053. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4054. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
  4055. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lcrypto", SSL="", -lcrypto)
  4056. # This is needed for Tcl libraries compiled with thread support
  4057. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4058. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4059. # ac_cv_lib_pthread="-lpthread"], [dnl
  4060. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4061. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4062. # ac_cv_lib_pthread="-lpthread"], [dnl
  4063. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4064. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4065. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4066. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4067. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4068. # ac_cv_lib_pthread=""],
  4069. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4070. if test "$SUNOS" = "yes"; then
  4071. # For suns without yp
  4072. { echo "$as_me:$LINENO: checking for main in -ldl" >&5
  4073. echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
  4074. if test "${ac_cv_lib_dl_main+set}" = set; then
  4075. echo $ECHO_N "(cached) $ECHO_C" >&6
  4076. else
  4077. ac_check_lib_save_LIBS=$LIBS
  4078. LIBS="-ldl $LIBS"
  4079. cat >conftest.$ac_ext <<_ACEOF
  4080. /* confdefs.h. */
  4081. _ACEOF
  4082. cat confdefs.h >>conftest.$ac_ext
  4083. cat >>conftest.$ac_ext <<_ACEOF
  4084. /* end confdefs.h. */
  4085. int
  4086. main ()
  4087. {
  4088. return main ();
  4089. ;
  4090. return 0;
  4091. }
  4092. _ACEOF
  4093. rm -f conftest.$ac_objext conftest$ac_exeext
  4094. if { (ac_try="$ac_link"
  4095. case "(($ac_try" in
  4096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4097. *) ac_try_echo=$ac_try;;
  4098. esac
  4099. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4100. (eval "$ac_link") 2>conftest.er1
  4101. ac_status=$?
  4102. grep -v '^ *+' conftest.er1 >conftest.err
  4103. rm -f conftest.er1
  4104. cat conftest.err >&5
  4105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4106. (exit $ac_status); } && {
  4107. test -z "$ac_cxx_werror_flag" ||
  4108. test ! -s conftest.err
  4109. } && test -s conftest$ac_exeext &&
  4110. $as_test_x conftest$ac_exeext; then
  4111. ac_cv_lib_dl_main=yes
  4112. else
  4113. echo "$as_me: failed program was:" >&5
  4114. sed 's/^/| /' conftest.$ac_ext >&5
  4115. ac_cv_lib_dl_main=no
  4116. fi
  4117. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4118. conftest$ac_exeext conftest.$ac_ext
  4119. LIBS=$ac_check_lib_save_LIBS
  4120. fi
  4121. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
  4122. echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
  4123. if test $ac_cv_lib_dl_main = yes; then
  4124. cat >>confdefs.h <<_ACEOF
  4125. #define HAVE_LIBDL 1
  4126. _ACEOF
  4127. LIBS="-ldl $LIBS"
  4128. fi
  4129. { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
  4130. echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
  4131. if test "${ac_cv_lib_socket_main+set}" = set; then
  4132. echo $ECHO_N "(cached) $ECHO_C" >&6
  4133. else
  4134. ac_check_lib_save_LIBS=$LIBS
  4135. LIBS="-lsocket $LIBS"
  4136. cat >conftest.$ac_ext <<_ACEOF
  4137. /* confdefs.h. */
  4138. _ACEOF
  4139. cat confdefs.h >>conftest.$ac_ext
  4140. cat >>conftest.$ac_ext <<_ACEOF
  4141. /* end confdefs.h. */
  4142. int
  4143. main ()
  4144. {
  4145. return main ();
  4146. ;
  4147. return 0;
  4148. }
  4149. _ACEOF
  4150. rm -f conftest.$ac_objext conftest$ac_exeext
  4151. if { (ac_try="$ac_link"
  4152. case "(($ac_try" in
  4153. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4154. *) ac_try_echo=$ac_try;;
  4155. esac
  4156. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4157. (eval "$ac_link") 2>conftest.er1
  4158. ac_status=$?
  4159. grep -v '^ *+' conftest.er1 >conftest.err
  4160. rm -f conftest.er1
  4161. cat conftest.err >&5
  4162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4163. (exit $ac_status); } && {
  4164. test -z "$ac_cxx_werror_flag" ||
  4165. test ! -s conftest.err
  4166. } && test -s conftest$ac_exeext &&
  4167. $as_test_x conftest$ac_exeext; then
  4168. ac_cv_lib_socket_main=yes
  4169. else
  4170. echo "$as_me: failed program was:" >&5
  4171. sed 's/^/| /' conftest.$ac_ext >&5
  4172. ac_cv_lib_socket_main=no
  4173. fi
  4174. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4175. conftest$ac_exeext conftest.$ac_ext
  4176. LIBS=$ac_check_lib_save_LIBS
  4177. fi
  4178. { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
  4179. echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
  4180. if test $ac_cv_lib_socket_main = yes; then
  4181. cat >>confdefs.h <<_ACEOF
  4182. #define HAVE_LIBSOCKET 1
  4183. _ACEOF
  4184. LIBS="-lsocket $LIBS"
  4185. fi
  4186. { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
  4187. echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
  4188. if test "${ac_cv_lib_nsl_main+set}" = set; then
  4189. echo $ECHO_N "(cached) $ECHO_C" >&6
  4190. else
  4191. ac_check_lib_save_LIBS=$LIBS
  4192. LIBS="-lnsl $LIBS"
  4193. cat >conftest.$ac_ext <<_ACEOF
  4194. /* confdefs.h. */
  4195. _ACEOF
  4196. cat confdefs.h >>conftest.$ac_ext
  4197. cat >>conftest.$ac_ext <<_ACEOF
  4198. /* end confdefs.h. */
  4199. int
  4200. main ()
  4201. {
  4202. return main ();
  4203. ;
  4204. return 0;
  4205. }
  4206. _ACEOF
  4207. rm -f conftest.$ac_objext conftest$ac_exeext
  4208. if { (ac_try="$ac_link"
  4209. case "(($ac_try" in
  4210. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4211. *) ac_try_echo=$ac_try;;
  4212. esac
  4213. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4214. (eval "$ac_link") 2>conftest.er1
  4215. ac_status=$?
  4216. grep -v '^ *+' conftest.er1 >conftest.err
  4217. rm -f conftest.er1
  4218. cat conftest.err >&5
  4219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4220. (exit $ac_status); } && {
  4221. test -z "$ac_cxx_werror_flag" ||
  4222. test ! -s conftest.err
  4223. } && test -s conftest$ac_exeext &&
  4224. $as_test_x conftest$ac_exeext; then
  4225. ac_cv_lib_nsl_main=yes
  4226. else
  4227. echo "$as_me: failed program was:" >&5
  4228. sed 's/^/| /' conftest.$ac_ext >&5
  4229. ac_cv_lib_nsl_main=no
  4230. fi
  4231. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4232. conftest$ac_exeext conftest.$ac_ext
  4233. LIBS=$ac_check_lib_save_LIBS
  4234. fi
  4235. { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
  4236. echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
  4237. if test $ac_cv_lib_nsl_main = yes; then
  4238. cat >>confdefs.h <<_ACEOF
  4239. #define HAVE_LIBNSL 1
  4240. _ACEOF
  4241. LIBS="-lnsl $LIBS"
  4242. fi
  4243. fi
  4244. # Checks for header files
  4245. ac_header_dirent=no
  4246. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4247. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4248. { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4249. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
  4250. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4251. echo $ECHO_N "(cached) $ECHO_C" >&6
  4252. else
  4253. cat >conftest.$ac_ext <<_ACEOF
  4254. /* confdefs.h. */
  4255. _ACEOF
  4256. cat confdefs.h >>conftest.$ac_ext
  4257. cat >>conftest.$ac_ext <<_ACEOF
  4258. /* end confdefs.h. */
  4259. #include <sys/types.h>
  4260. #include <$ac_hdr>
  4261. int
  4262. main ()
  4263. {
  4264. if ((DIR *) 0)
  4265. return 0;
  4266. ;
  4267. return 0;
  4268. }
  4269. _ACEOF
  4270. rm -f conftest.$ac_objext
  4271. if { (ac_try="$ac_compile"
  4272. case "(($ac_try" in
  4273. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4274. *) ac_try_echo=$ac_try;;
  4275. esac
  4276. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4277. (eval "$ac_compile") 2>conftest.er1
  4278. ac_status=$?
  4279. grep -v '^ *+' conftest.er1 >conftest.err
  4280. rm -f conftest.er1
  4281. cat conftest.err >&5
  4282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4283. (exit $ac_status); } && {
  4284. test -z "$ac_cxx_werror_flag" ||
  4285. test ! -s conftest.err
  4286. } && test -s conftest.$ac_objext; then
  4287. eval "$as_ac_Header=yes"
  4288. else
  4289. echo "$as_me: failed program was:" >&5
  4290. sed 's/^/| /' conftest.$ac_ext >&5
  4291. eval "$as_ac_Header=no"
  4292. fi
  4293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4294. fi
  4295. ac_res=`eval echo '${'$as_ac_Header'}'`
  4296. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4297. echo "${ECHO_T}$ac_res" >&6; }
  4298. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4299. cat >>confdefs.h <<_ACEOF
  4300. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4301. _ACEOF
  4302. ac_header_dirent=$ac_hdr; break
  4303. fi
  4304. done
  4305. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4306. if test $ac_header_dirent = dirent.h; then
  4307. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4308. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  4309. if test "${ac_cv_search_opendir+set}" = set; then
  4310. echo $ECHO_N "(cached) $ECHO_C" >&6
  4311. else
  4312. ac_func_search_save_LIBS=$LIBS
  4313. cat >conftest.$ac_ext <<_ACEOF
  4314. /* confdefs.h. */
  4315. _ACEOF
  4316. cat confdefs.h >>conftest.$ac_ext
  4317. cat >>conftest.$ac_ext <<_ACEOF
  4318. /* end confdefs.h. */
  4319. /* Override any GCC internal prototype to avoid an error.
  4320. Use char because int might match the return type of a GCC
  4321. builtin and then its argument prototype would still apply. */
  4322. #ifdef __cplusplus
  4323. extern "C"
  4324. #endif
  4325. char opendir ();
  4326. int
  4327. main ()
  4328. {
  4329. return opendir ();
  4330. ;
  4331. return 0;
  4332. }
  4333. _ACEOF
  4334. for ac_lib in '' dir; do
  4335. if test -z "$ac_lib"; then
  4336. ac_res="none required"
  4337. else
  4338. ac_res=-l$ac_lib
  4339. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4340. fi
  4341. rm -f conftest.$ac_objext conftest$ac_exeext
  4342. if { (ac_try="$ac_link"
  4343. case "(($ac_try" in
  4344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4345. *) ac_try_echo=$ac_try;;
  4346. esac
  4347. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4348. (eval "$ac_link") 2>conftest.er1
  4349. ac_status=$?
  4350. grep -v '^ *+' conftest.er1 >conftest.err
  4351. rm -f conftest.er1
  4352. cat conftest.err >&5
  4353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4354. (exit $ac_status); } && {
  4355. test -z "$ac_cxx_werror_flag" ||
  4356. test ! -s conftest.err
  4357. } && test -s conftest$ac_exeext &&
  4358. $as_test_x conftest$ac_exeext; then
  4359. ac_cv_search_opendir=$ac_res
  4360. else
  4361. echo "$as_me: failed program was:" >&5
  4362. sed 's/^/| /' conftest.$ac_ext >&5
  4363. fi
  4364. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4365. conftest$ac_exeext
  4366. if test "${ac_cv_search_opendir+set}" = set; then
  4367. break
  4368. fi
  4369. done
  4370. if test "${ac_cv_search_opendir+set}" = set; then
  4371. :
  4372. else
  4373. ac_cv_search_opendir=no
  4374. fi
  4375. rm conftest.$ac_ext
  4376. LIBS=$ac_func_search_save_LIBS
  4377. fi
  4378. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4379. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  4380. ac_res=$ac_cv_search_opendir
  4381. if test "$ac_res" != no; then
  4382. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4383. fi
  4384. else
  4385. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4386. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  4387. if test "${ac_cv_search_opendir+set}" = set; then
  4388. echo $ECHO_N "(cached) $ECHO_C" >&6
  4389. else
  4390. ac_func_search_save_LIBS=$LIBS
  4391. cat >conftest.$ac_ext <<_ACEOF
  4392. /* confdefs.h. */
  4393. _ACEOF
  4394. cat confdefs.h >>conftest.$ac_ext
  4395. cat >>conftest.$ac_ext <<_ACEOF
  4396. /* end confdefs.h. */
  4397. /* Override any GCC internal prototype to avoid an error.
  4398. Use char because int might match the return type of a GCC
  4399. builtin and then its argument prototype would still apply. */
  4400. #ifdef __cplusplus
  4401. extern "C"
  4402. #endif
  4403. char opendir ();
  4404. int
  4405. main ()
  4406. {
  4407. return opendir ();
  4408. ;
  4409. return 0;
  4410. }
  4411. _ACEOF
  4412. for ac_lib in '' x; do
  4413. if test -z "$ac_lib"; then
  4414. ac_res="none required"
  4415. else
  4416. ac_res=-l$ac_lib
  4417. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4418. fi
  4419. rm -f conftest.$ac_objext conftest$ac_exeext
  4420. if { (ac_try="$ac_link"
  4421. case "(($ac_try" in
  4422. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4423. *) ac_try_echo=$ac_try;;
  4424. esac
  4425. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4426. (eval "$ac_link") 2>conftest.er1
  4427. ac_status=$?
  4428. grep -v '^ *+' conftest.er1 >conftest.err
  4429. rm -f conftest.er1
  4430. cat conftest.err >&5
  4431. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4432. (exit $ac_status); } && {
  4433. test -z "$ac_cxx_werror_flag" ||
  4434. test ! -s conftest.err
  4435. } && test -s conftest$ac_exeext &&
  4436. $as_test_x conftest$ac_exeext; then
  4437. ac_cv_search_opendir=$ac_res
  4438. else
  4439. echo "$as_me: failed program was:" >&5
  4440. sed 's/^/| /' conftest.$ac_ext >&5
  4441. fi
  4442. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4443. conftest$ac_exeext
  4444. if test "${ac_cv_search_opendir+set}" = set; then
  4445. break
  4446. fi
  4447. done
  4448. if test "${ac_cv_search_opendir+set}" = set; then
  4449. :
  4450. else
  4451. ac_cv_search_opendir=no
  4452. fi
  4453. rm conftest.$ac_ext
  4454. LIBS=$ac_func_search_save_LIBS
  4455. fi
  4456. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4457. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  4458. ac_res=$ac_cv_search_opendir
  4459. if test "$ac_res" != no; then
  4460. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4461. fi
  4462. fi
  4463. { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4464. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
  4465. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4466. echo $ECHO_N "(cached) $ECHO_C" >&6
  4467. else
  4468. cat >conftest.$ac_ext <<_ACEOF
  4469. /* confdefs.h. */
  4470. _ACEOF
  4471. cat confdefs.h >>conftest.$ac_ext
  4472. cat >>conftest.$ac_ext <<_ACEOF
  4473. /* end confdefs.h. */
  4474. #include <sys/types.h>
  4475. #include <sys/wait.h>
  4476. #ifndef WEXITSTATUS
  4477. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  4478. #endif
  4479. #ifndef WIFEXITED
  4480. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4481. #endif
  4482. int
  4483. main ()
  4484. {
  4485. int s;
  4486. wait (&s);
  4487. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4488. ;
  4489. return 0;
  4490. }
  4491. _ACEOF
  4492. rm -f conftest.$ac_objext
  4493. if { (ac_try="$ac_compile"
  4494. case "(($ac_try" in
  4495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4496. *) ac_try_echo=$ac_try;;
  4497. esac
  4498. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4499. (eval "$ac_compile") 2>conftest.er1
  4500. ac_status=$?
  4501. grep -v '^ *+' conftest.er1 >conftest.err
  4502. rm -f conftest.er1
  4503. cat conftest.err >&5
  4504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4505. (exit $ac_status); } && {
  4506. test -z "$ac_cxx_werror_flag" ||
  4507. test ! -s conftest.err
  4508. } && test -s conftest.$ac_objext; then
  4509. ac_cv_header_sys_wait_h=yes
  4510. else
  4511. echo "$as_me: failed program was:" >&5
  4512. sed 's/^/| /' conftest.$ac_ext >&5
  4513. ac_cv_header_sys_wait_h=no
  4514. fi
  4515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4516. fi
  4517. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  4518. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
  4519. if test $ac_cv_header_sys_wait_h = yes; then
  4520. cat >>confdefs.h <<\_ACEOF
  4521. #define HAVE_SYS_WAIT_H 1
  4522. _ACEOF
  4523. fi
  4524. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4525. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  4526. if test "${ac_cv_header_time+set}" = set; then
  4527. echo $ECHO_N "(cached) $ECHO_C" >&6
  4528. else
  4529. cat >conftest.$ac_ext <<_ACEOF
  4530. /* confdefs.h. */
  4531. _ACEOF
  4532. cat confdefs.h >>conftest.$ac_ext
  4533. cat >>conftest.$ac_ext <<_ACEOF
  4534. /* end confdefs.h. */
  4535. #include <sys/types.h>
  4536. #include <sys/time.h>
  4537. #include <time.h>
  4538. int
  4539. main ()
  4540. {
  4541. if ((struct tm *) 0)
  4542. return 0;
  4543. ;
  4544. return 0;
  4545. }
  4546. _ACEOF
  4547. rm -f conftest.$ac_objext
  4548. if { (ac_try="$ac_compile"
  4549. case "(($ac_try" in
  4550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4551. *) ac_try_echo=$ac_try;;
  4552. esac
  4553. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4554. (eval "$ac_compile") 2>conftest.er1
  4555. ac_status=$?
  4556. grep -v '^ *+' conftest.er1 >conftest.err
  4557. rm -f conftest.er1
  4558. cat conftest.err >&5
  4559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4560. (exit $ac_status); } && {
  4561. test -z "$ac_cxx_werror_flag" ||
  4562. test ! -s conftest.err
  4563. } && test -s conftest.$ac_objext; then
  4564. ac_cv_header_time=yes
  4565. else
  4566. echo "$as_me: failed program was:" >&5
  4567. sed 's/^/| /' conftest.$ac_ext >&5
  4568. ac_cv_header_time=no
  4569. fi
  4570. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4571. fi
  4572. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4573. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  4574. if test $ac_cv_header_time = yes; then
  4575. cat >>confdefs.h <<\_ACEOF
  4576. #define TIME_WITH_SYS_TIME 1
  4577. _ACEOF
  4578. fi
  4579. { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  4580. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
  4581. if test "${ac_cv_header_stat_broken+set}" = set; then
  4582. echo $ECHO_N "(cached) $ECHO_C" >&6
  4583. else
  4584. cat >conftest.$ac_ext <<_ACEOF
  4585. /* confdefs.h. */
  4586. _ACEOF
  4587. cat confdefs.h >>conftest.$ac_ext
  4588. cat >>conftest.$ac_ext <<_ACEOF
  4589. /* end confdefs.h. */
  4590. #include <sys/types.h>
  4591. #include <sys/stat.h>
  4592. #if defined S_ISBLK && defined S_IFDIR
  4593. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  4594. #endif
  4595. #if defined S_ISBLK && defined S_IFCHR
  4596. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  4597. #endif
  4598. #if defined S_ISLNK && defined S_IFREG
  4599. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  4600. #endif
  4601. #if defined S_ISSOCK && defined S_IFREG
  4602. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  4603. #endif
  4604. _ACEOF
  4605. rm -f conftest.$ac_objext
  4606. if { (ac_try="$ac_compile"
  4607. case "(($ac_try" in
  4608. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4609. *) ac_try_echo=$ac_try;;
  4610. esac
  4611. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4612. (eval "$ac_compile") 2>conftest.er1
  4613. ac_status=$?
  4614. grep -v '^ *+' conftest.er1 >conftest.err
  4615. rm -f conftest.er1
  4616. cat conftest.err >&5
  4617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4618. (exit $ac_status); } && {
  4619. test -z "$ac_cxx_werror_flag" ||
  4620. test ! -s conftest.err
  4621. } && test -s conftest.$ac_objext; then
  4622. ac_cv_header_stat_broken=no
  4623. else
  4624. echo "$as_me: failed program was:" >&5
  4625. sed 's/^/| /' conftest.$ac_ext >&5
  4626. ac_cv_header_stat_broken=yes
  4627. fi
  4628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4629. fi
  4630. { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  4631. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
  4632. if test $ac_cv_header_stat_broken = yes; then
  4633. cat >>confdefs.h <<\_ACEOF
  4634. #define STAT_MACROS_BROKEN 1
  4635. _ACEOF
  4636. fi
  4637. #checkpoint
  4638. cat >confcache <<\_ACEOF
  4639. # This file is a shell script that caches the results of configure
  4640. # tests run on this system so they can be shared between configure
  4641. # scripts and configure runs, see configure's option --config-cache.
  4642. # It is not useful on other systems. If it contains results you don't
  4643. # want to keep, you may remove or edit it.
  4644. #
  4645. # config.status only pays attention to the cache file if you give it
  4646. # the --recheck option to rerun configure.
  4647. #
  4648. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4649. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4650. # following values.
  4651. _ACEOF
  4652. # The following way of writing the cache mishandles newlines in values,
  4653. # but we know of no workaround that is simple, portable, and efficient.
  4654. # So, we kill variables containing newlines.
  4655. # Ultrix sh set writes to stderr and can't be redirected directly,
  4656. # and sets the high bit in the cache file unless we assign to the vars.
  4657. (
  4658. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4659. eval ac_val=\$$ac_var
  4660. case $ac_val in #(
  4661. *${as_nl}*)
  4662. case $ac_var in #(
  4663. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  4664. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  4665. esac
  4666. case $ac_var in #(
  4667. _ | IFS | as_nl) ;; #(
  4668. *) $as_unset $ac_var ;;
  4669. esac ;;
  4670. esac
  4671. done
  4672. (set) 2>&1 |
  4673. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4674. *${as_nl}ac_space=\ *)
  4675. # `set' does not quote correctly, so add quotes (double-quote
  4676. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4677. sed -n \
  4678. "s/'/'\\\\''/g;
  4679. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4680. ;; #(
  4681. *)
  4682. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4683. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4684. ;;
  4685. esac |
  4686. sort
  4687. ) |
  4688. sed '
  4689. /^ac_cv_env_/b end
  4690. t clear
  4691. :clear
  4692. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4693. t end
  4694. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4695. :end' >>confcache
  4696. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4697. if test -w "$cache_file"; then
  4698. test "x$cache_file" != "x/dev/null" &&
  4699. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  4700. echo "$as_me: updating cache $cache_file" >&6;}
  4701. cat confcache >$cache_file
  4702. else
  4703. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  4704. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4705. fi
  4706. fi
  4707. rm -f confcache
  4708. for ac_header in stdarg.h std_arg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  4709. do
  4710. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4711. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4712. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4713. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4714. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4715. echo $ECHO_N "(cached) $ECHO_C" >&6
  4716. fi
  4717. ac_res=`eval echo '${'$as_ac_Header'}'`
  4718. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4719. echo "${ECHO_T}$ac_res" >&6; }
  4720. else
  4721. # Is the header compilable?
  4722. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4723. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4724. cat >conftest.$ac_ext <<_ACEOF
  4725. /* confdefs.h. */
  4726. _ACEOF
  4727. cat confdefs.h >>conftest.$ac_ext
  4728. cat >>conftest.$ac_ext <<_ACEOF
  4729. /* end confdefs.h. */
  4730. $ac_includes_default
  4731. #include <$ac_header>
  4732. _ACEOF
  4733. rm -f conftest.$ac_objext
  4734. if { (ac_try="$ac_compile"
  4735. case "(($ac_try" in
  4736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4737. *) ac_try_echo=$ac_try;;
  4738. esac
  4739. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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. test -z "$ac_cxx_werror_flag" ||
  4748. test ! -s conftest.err
  4749. } && test -s conftest.$ac_objext; then
  4750. ac_header_compiler=yes
  4751. else
  4752. echo "$as_me: failed program was:" >&5
  4753. sed 's/^/| /' conftest.$ac_ext >&5
  4754. ac_header_compiler=no
  4755. fi
  4756. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4757. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4758. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4759. # Is the header present?
  4760. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4761. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4762. cat >conftest.$ac_ext <<_ACEOF
  4763. /* confdefs.h. */
  4764. _ACEOF
  4765. cat confdefs.h >>conftest.$ac_ext
  4766. cat >>conftest.$ac_ext <<_ACEOF
  4767. /* end confdefs.h. */
  4768. #include <$ac_header>
  4769. _ACEOF
  4770. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4771. case "(($ac_try" in
  4772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4773. *) ac_try_echo=$ac_try;;
  4774. esac
  4775. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4776. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4777. ac_status=$?
  4778. grep -v '^ *+' conftest.er1 >conftest.err
  4779. rm -f conftest.er1
  4780. cat conftest.err >&5
  4781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4782. (exit $ac_status); } >/dev/null && {
  4783. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4784. test ! -s conftest.err
  4785. }; then
  4786. ac_header_preproc=yes
  4787. else
  4788. echo "$as_me: failed program was:" >&5
  4789. sed 's/^/| /' conftest.$ac_ext >&5
  4790. ac_header_preproc=no
  4791. fi
  4792. rm -f conftest.err conftest.$ac_ext
  4793. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4794. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4795. # So? What about this header?
  4796. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4797. yes:no: )
  4798. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4799. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4800. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4801. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4802. ac_header_preproc=yes
  4803. ;;
  4804. no:yes:* )
  4805. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4806. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4807. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4808. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4809. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4810. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4811. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4812. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4813. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4814. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4815. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4816. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4817. ;;
  4818. esac
  4819. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4820. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4821. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4822. echo $ECHO_N "(cached) $ECHO_C" >&6
  4823. else
  4824. eval "$as_ac_Header=\$ac_header_preproc"
  4825. fi
  4826. ac_res=`eval echo '${'$as_ac_Header'}'`
  4827. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4828. echo "${ECHO_T}$ac_res" >&6; }
  4829. fi
  4830. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4831. cat >>confdefs.h <<_ACEOF
  4832. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4833. _ACEOF
  4834. fi
  4835. done
  4836. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h sys/ptrace.h paths.h
  4837. do
  4838. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4839. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4840. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4841. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4842. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4843. echo $ECHO_N "(cached) $ECHO_C" >&6
  4844. fi
  4845. ac_res=`eval echo '${'$as_ac_Header'}'`
  4846. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4847. echo "${ECHO_T}$ac_res" >&6; }
  4848. else
  4849. # Is the header compilable?
  4850. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4851. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4852. cat >conftest.$ac_ext <<_ACEOF
  4853. /* confdefs.h. */
  4854. _ACEOF
  4855. cat confdefs.h >>conftest.$ac_ext
  4856. cat >>conftest.$ac_ext <<_ACEOF
  4857. /* end confdefs.h. */
  4858. $ac_includes_default
  4859. #include <$ac_header>
  4860. _ACEOF
  4861. rm -f conftest.$ac_objext
  4862. if { (ac_try="$ac_compile"
  4863. case "(($ac_try" in
  4864. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4865. *) ac_try_echo=$ac_try;;
  4866. esac
  4867. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4868. (eval "$ac_compile") 2>conftest.er1
  4869. ac_status=$?
  4870. grep -v '^ *+' conftest.er1 >conftest.err
  4871. rm -f conftest.er1
  4872. cat conftest.err >&5
  4873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4874. (exit $ac_status); } && {
  4875. test -z "$ac_cxx_werror_flag" ||
  4876. test ! -s conftest.err
  4877. } && test -s conftest.$ac_objext; then
  4878. ac_header_compiler=yes
  4879. else
  4880. echo "$as_me: failed program was:" >&5
  4881. sed 's/^/| /' conftest.$ac_ext >&5
  4882. ac_header_compiler=no
  4883. fi
  4884. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4885. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4886. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4887. # Is the header present?
  4888. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4889. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4890. cat >conftest.$ac_ext <<_ACEOF
  4891. /* confdefs.h. */
  4892. _ACEOF
  4893. cat confdefs.h >>conftest.$ac_ext
  4894. cat >>conftest.$ac_ext <<_ACEOF
  4895. /* end confdefs.h. */
  4896. #include <$ac_header>
  4897. _ACEOF
  4898. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4899. case "(($ac_try" in
  4900. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4901. *) ac_try_echo=$ac_try;;
  4902. esac
  4903. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4904. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4905. ac_status=$?
  4906. grep -v '^ *+' conftest.er1 >conftest.err
  4907. rm -f conftest.er1
  4908. cat conftest.err >&5
  4909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4910. (exit $ac_status); } >/dev/null && {
  4911. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4912. test ! -s conftest.err
  4913. }; then
  4914. ac_header_preproc=yes
  4915. else
  4916. echo "$as_me: failed program was:" >&5
  4917. sed 's/^/| /' conftest.$ac_ext >&5
  4918. ac_header_preproc=no
  4919. fi
  4920. rm -f conftest.err conftest.$ac_ext
  4921. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4922. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4923. # So? What about this header?
  4924. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4925. yes:no: )
  4926. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4927. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4928. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4929. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4930. ac_header_preproc=yes
  4931. ;;
  4932. no:yes:* )
  4933. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4934. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4935. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4936. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4937. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4938. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4939. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4940. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4941. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4942. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4943. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4944. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4945. ;;
  4946. esac
  4947. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4948. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4949. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4950. echo $ECHO_N "(cached) $ECHO_C" >&6
  4951. else
  4952. eval "$as_ac_Header=\$ac_header_preproc"
  4953. fi
  4954. ac_res=`eval echo '${'$as_ac_Header'}'`
  4955. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4956. echo "${ECHO_T}$ac_res" >&6; }
  4957. fi
  4958. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4959. cat >>confdefs.h <<_ACEOF
  4960. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4961. _ACEOF
  4962. fi
  4963. done
  4964. #checkpoint
  4965. cat >confcache <<\_ACEOF
  4966. # This file is a shell script that caches the results of configure
  4967. # tests run on this system so they can be shared between configure
  4968. # scripts and configure runs, see configure's option --config-cache.
  4969. # It is not useful on other systems. If it contains results you don't
  4970. # want to keep, you may remove or edit it.
  4971. #
  4972. # config.status only pays attention to the cache file if you give it
  4973. # the --recheck option to rerun configure.
  4974. #
  4975. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4976. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4977. # following values.
  4978. _ACEOF
  4979. # The following way of writing the cache mishandles newlines in values,
  4980. # but we know of no workaround that is simple, portable, and efficient.
  4981. # So, we kill variables containing newlines.
  4982. # Ultrix sh set writes to stderr and can't be redirected directly,
  4983. # and sets the high bit in the cache file unless we assign to the vars.
  4984. (
  4985. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4986. eval ac_val=\$$ac_var
  4987. case $ac_val in #(
  4988. *${as_nl}*)
  4989. case $ac_var in #(
  4990. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  4991. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  4992. esac
  4993. case $ac_var in #(
  4994. _ | IFS | as_nl) ;; #(
  4995. *) $as_unset $ac_var ;;
  4996. esac ;;
  4997. esac
  4998. done
  4999. (set) 2>&1 |
  5000. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5001. *${as_nl}ac_space=\ *)
  5002. # `set' does not quote correctly, so add quotes (double-quote
  5003. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5004. sed -n \
  5005. "s/'/'\\\\''/g;
  5006. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5007. ;; #(
  5008. *)
  5009. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5010. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5011. ;;
  5012. esac |
  5013. sort
  5014. ) |
  5015. sed '
  5016. /^ac_cv_env_/b end
  5017. t clear
  5018. :clear
  5019. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5020. t end
  5021. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5022. :end' >>confcache
  5023. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5024. if test -w "$cache_file"; then
  5025. test "x$cache_file" != "x/dev/null" &&
  5026. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  5027. echo "$as_me: updating cache $cache_file" >&6;}
  5028. cat confcache >$cache_file
  5029. else
  5030. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  5031. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5032. fi
  5033. fi
  5034. rm -f confcache
  5035. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5036. #AC_CHECK_HEADERS(zlib.h)
  5037. #EGG_CHECK_ZLIB
  5038. #EGG_CHECK_SSL
  5039. #AC_SUBST(SSL)dnl
  5040. # Checks for typedefs, structures, and compiler characteristics
  5041. { echo "$as_me:$LINENO: checking for pid_t" >&5
  5042. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
  5043. if test "${ac_cv_type_pid_t+set}" = set; then
  5044. echo $ECHO_N "(cached) $ECHO_C" >&6
  5045. else
  5046. cat >conftest.$ac_ext <<_ACEOF
  5047. /* confdefs.h. */
  5048. _ACEOF
  5049. cat confdefs.h >>conftest.$ac_ext
  5050. cat >>conftest.$ac_ext <<_ACEOF
  5051. /* end confdefs.h. */
  5052. $ac_includes_default
  5053. typedef pid_t ac__type_new_;
  5054. int
  5055. main ()
  5056. {
  5057. if ((ac__type_new_ *) 0)
  5058. return 0;
  5059. if (sizeof (ac__type_new_))
  5060. return 0;
  5061. ;
  5062. return 0;
  5063. }
  5064. _ACEOF
  5065. rm -f conftest.$ac_objext
  5066. if { (ac_try="$ac_compile"
  5067. case "(($ac_try" in
  5068. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5069. *) ac_try_echo=$ac_try;;
  5070. esac
  5071. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5072. (eval "$ac_compile") 2>conftest.er1
  5073. ac_status=$?
  5074. grep -v '^ *+' conftest.er1 >conftest.err
  5075. rm -f conftest.er1
  5076. cat conftest.err >&5
  5077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5078. (exit $ac_status); } && {
  5079. test -z "$ac_cxx_werror_flag" ||
  5080. test ! -s conftest.err
  5081. } && test -s conftest.$ac_objext; then
  5082. ac_cv_type_pid_t=yes
  5083. else
  5084. echo "$as_me: failed program was:" >&5
  5085. sed 's/^/| /' conftest.$ac_ext >&5
  5086. ac_cv_type_pid_t=no
  5087. fi
  5088. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5089. fi
  5090. { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5091. echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
  5092. if test $ac_cv_type_pid_t = yes; then
  5093. :
  5094. else
  5095. cat >>confdefs.h <<_ACEOF
  5096. #define pid_t int
  5097. _ACEOF
  5098. fi
  5099. { echo "$as_me:$LINENO: checking for size_t" >&5
  5100. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  5101. if test "${ac_cv_type_size_t+set}" = set; then
  5102. echo $ECHO_N "(cached) $ECHO_C" >&6
  5103. else
  5104. cat >conftest.$ac_ext <<_ACEOF
  5105. /* confdefs.h. */
  5106. _ACEOF
  5107. cat confdefs.h >>conftest.$ac_ext
  5108. cat >>conftest.$ac_ext <<_ACEOF
  5109. /* end confdefs.h. */
  5110. $ac_includes_default
  5111. typedef size_t ac__type_new_;
  5112. int
  5113. main ()
  5114. {
  5115. if ((ac__type_new_ *) 0)
  5116. return 0;
  5117. if (sizeof (ac__type_new_))
  5118. return 0;
  5119. ;
  5120. return 0;
  5121. }
  5122. _ACEOF
  5123. rm -f conftest.$ac_objext
  5124. if { (ac_try="$ac_compile"
  5125. case "(($ac_try" in
  5126. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5127. *) ac_try_echo=$ac_try;;
  5128. esac
  5129. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5130. (eval "$ac_compile") 2>conftest.er1
  5131. ac_status=$?
  5132. grep -v '^ *+' conftest.er1 >conftest.err
  5133. rm -f conftest.er1
  5134. cat conftest.err >&5
  5135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5136. (exit $ac_status); } && {
  5137. test -z "$ac_cxx_werror_flag" ||
  5138. test ! -s conftest.err
  5139. } && test -s conftest.$ac_objext; then
  5140. ac_cv_type_size_t=yes
  5141. else
  5142. echo "$as_me: failed program was:" >&5
  5143. sed 's/^/| /' conftest.$ac_ext >&5
  5144. ac_cv_type_size_t=no
  5145. fi
  5146. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5147. fi
  5148. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5149. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  5150. if test $ac_cv_type_size_t = yes; then
  5151. :
  5152. else
  5153. cat >>confdefs.h <<_ACEOF
  5154. #define size_t unsigned int
  5155. _ACEOF
  5156. fi
  5157. { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5158. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
  5159. if test "${ac_cv_type_uid_t+set}" = set; then
  5160. echo $ECHO_N "(cached) $ECHO_C" >&6
  5161. else
  5162. cat >conftest.$ac_ext <<_ACEOF
  5163. /* confdefs.h. */
  5164. _ACEOF
  5165. cat confdefs.h >>conftest.$ac_ext
  5166. cat >>conftest.$ac_ext <<_ACEOF
  5167. /* end confdefs.h. */
  5168. #include <sys/types.h>
  5169. _ACEOF
  5170. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5171. $EGREP "uid_t" >/dev/null 2>&1; then
  5172. ac_cv_type_uid_t=yes
  5173. else
  5174. ac_cv_type_uid_t=no
  5175. fi
  5176. rm -f conftest*
  5177. fi
  5178. { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5179. echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
  5180. if test $ac_cv_type_uid_t = no; then
  5181. cat >>confdefs.h <<\_ACEOF
  5182. #define uid_t int
  5183. _ACEOF
  5184. cat >>confdefs.h <<\_ACEOF
  5185. #define gid_t int
  5186. _ACEOF
  5187. fi
  5188. #AC_C_CONST
  5189. { echo "$as_me:$LINENO: checking for working volatile" >&5
  5190. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  5191. if test "${ac_cv_c_volatile+set}" = set; then
  5192. echo $ECHO_N "(cached) $ECHO_C" >&6
  5193. else
  5194. cat >conftest.$ac_ext <<_ACEOF
  5195. /* confdefs.h. */
  5196. _ACEOF
  5197. cat confdefs.h >>conftest.$ac_ext
  5198. cat >>conftest.$ac_ext <<_ACEOF
  5199. /* end confdefs.h. */
  5200. int
  5201. main ()
  5202. {
  5203. volatile int x;
  5204. int * volatile y = (int *) 0;
  5205. return !x && !y;
  5206. ;
  5207. return 0;
  5208. }
  5209. _ACEOF
  5210. rm -f conftest.$ac_objext
  5211. if { (ac_try="$ac_compile"
  5212. case "(($ac_try" in
  5213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5214. *) ac_try_echo=$ac_try;;
  5215. esac
  5216. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5217. (eval "$ac_compile") 2>conftest.er1
  5218. ac_status=$?
  5219. grep -v '^ *+' conftest.er1 >conftest.err
  5220. rm -f conftest.er1
  5221. cat conftest.err >&5
  5222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5223. (exit $ac_status); } && {
  5224. test -z "$ac_cxx_werror_flag" ||
  5225. test ! -s conftest.err
  5226. } && test -s conftest.$ac_objext; then
  5227. ac_cv_c_volatile=yes
  5228. else
  5229. echo "$as_me: failed program was:" >&5
  5230. sed 's/^/| /' conftest.$ac_ext >&5
  5231. ac_cv_c_volatile=no
  5232. fi
  5233. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5234. fi
  5235. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5236. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  5237. if test $ac_cv_c_volatile = no; then
  5238. cat >>confdefs.h <<\_ACEOF
  5239. #define volatile
  5240. _ACEOF
  5241. fi
  5242. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5243. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  5244. if test "${ac_cv_c_bigendian+set}" = set; then
  5245. echo $ECHO_N "(cached) $ECHO_C" >&6
  5246. else
  5247. # See if sys/param.h defines the BYTE_ORDER macro.
  5248. cat >conftest.$ac_ext <<_ACEOF
  5249. /* confdefs.h. */
  5250. _ACEOF
  5251. cat confdefs.h >>conftest.$ac_ext
  5252. cat >>conftest.$ac_ext <<_ACEOF
  5253. /* end confdefs.h. */
  5254. #include <sys/types.h>
  5255. #include <sys/param.h>
  5256. int
  5257. main ()
  5258. {
  5259. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  5260. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  5261. bogus endian macros
  5262. #endif
  5263. ;
  5264. return 0;
  5265. }
  5266. _ACEOF
  5267. rm -f conftest.$ac_objext
  5268. if { (ac_try="$ac_compile"
  5269. case "(($ac_try" in
  5270. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5271. *) ac_try_echo=$ac_try;;
  5272. esac
  5273. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5274. (eval "$ac_compile") 2>conftest.er1
  5275. ac_status=$?
  5276. grep -v '^ *+' conftest.er1 >conftest.err
  5277. rm -f conftest.er1
  5278. cat conftest.err >&5
  5279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5280. (exit $ac_status); } && {
  5281. test -z "$ac_cxx_werror_flag" ||
  5282. test ! -s conftest.err
  5283. } && test -s conftest.$ac_objext; then
  5284. # It does; now see whether it defined to BIG_ENDIAN or not.
  5285. cat >conftest.$ac_ext <<_ACEOF
  5286. /* confdefs.h. */
  5287. _ACEOF
  5288. cat confdefs.h >>conftest.$ac_ext
  5289. cat >>conftest.$ac_ext <<_ACEOF
  5290. /* end confdefs.h. */
  5291. #include <sys/types.h>
  5292. #include <sys/param.h>
  5293. int
  5294. main ()
  5295. {
  5296. #if BYTE_ORDER != BIG_ENDIAN
  5297. not big endian
  5298. #endif
  5299. ;
  5300. return 0;
  5301. }
  5302. _ACEOF
  5303. rm -f conftest.$ac_objext
  5304. if { (ac_try="$ac_compile"
  5305. case "(($ac_try" in
  5306. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5307. *) ac_try_echo=$ac_try;;
  5308. esac
  5309. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5310. (eval "$ac_compile") 2>conftest.er1
  5311. ac_status=$?
  5312. grep -v '^ *+' conftest.er1 >conftest.err
  5313. rm -f conftest.er1
  5314. cat conftest.err >&5
  5315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5316. (exit $ac_status); } && {
  5317. test -z "$ac_cxx_werror_flag" ||
  5318. test ! -s conftest.err
  5319. } && test -s conftest.$ac_objext; then
  5320. ac_cv_c_bigendian=yes
  5321. else
  5322. echo "$as_me: failed program was:" >&5
  5323. sed 's/^/| /' conftest.$ac_ext >&5
  5324. ac_cv_c_bigendian=no
  5325. fi
  5326. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5327. else
  5328. echo "$as_me: failed program was:" >&5
  5329. sed 's/^/| /' conftest.$ac_ext >&5
  5330. # It does not; compile a test program.
  5331. if test "$cross_compiling" = yes; then
  5332. # try to guess the endianness by grepping values into an object file
  5333. ac_cv_c_bigendian=unknown
  5334. cat >conftest.$ac_ext <<_ACEOF
  5335. /* confdefs.h. */
  5336. _ACEOF
  5337. cat confdefs.h >>conftest.$ac_ext
  5338. cat >>conftest.$ac_ext <<_ACEOF
  5339. /* end confdefs.h. */
  5340. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5341. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5342. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  5343. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5344. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5345. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  5346. int
  5347. main ()
  5348. {
  5349. _ascii (); _ebcdic ();
  5350. ;
  5351. return 0;
  5352. }
  5353. _ACEOF
  5354. rm -f conftest.$ac_objext
  5355. if { (ac_try="$ac_compile"
  5356. case "(($ac_try" in
  5357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5358. *) ac_try_echo=$ac_try;;
  5359. esac
  5360. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5361. (eval "$ac_compile") 2>conftest.er1
  5362. ac_status=$?
  5363. grep -v '^ *+' conftest.er1 >conftest.err
  5364. rm -f conftest.er1
  5365. cat conftest.err >&5
  5366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5367. (exit $ac_status); } && {
  5368. test -z "$ac_cxx_werror_flag" ||
  5369. test ! -s conftest.err
  5370. } && test -s conftest.$ac_objext; then
  5371. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  5372. ac_cv_c_bigendian=yes
  5373. fi
  5374. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5375. if test "$ac_cv_c_bigendian" = unknown; then
  5376. ac_cv_c_bigendian=no
  5377. else
  5378. # finding both strings is unlikely to happen, but who knows?
  5379. ac_cv_c_bigendian=unknown
  5380. fi
  5381. fi
  5382. else
  5383. echo "$as_me: failed program was:" >&5
  5384. sed 's/^/| /' conftest.$ac_ext >&5
  5385. fi
  5386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5387. else
  5388. cat >conftest.$ac_ext <<_ACEOF
  5389. /* confdefs.h. */
  5390. _ACEOF
  5391. cat confdefs.h >>conftest.$ac_ext
  5392. cat >>conftest.$ac_ext <<_ACEOF
  5393. /* end confdefs.h. */
  5394. $ac_includes_default
  5395. int
  5396. main ()
  5397. {
  5398. /* Are we little or big endian? From Harbison&Steele. */
  5399. union
  5400. {
  5401. long int l;
  5402. char c[sizeof (long int)];
  5403. } u;
  5404. u.l = 1;
  5405. return u.c[sizeof (long int) - 1] == 1;
  5406. ;
  5407. return 0;
  5408. }
  5409. _ACEOF
  5410. rm -f conftest$ac_exeext
  5411. if { (ac_try="$ac_link"
  5412. case "(($ac_try" in
  5413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5414. *) ac_try_echo=$ac_try;;
  5415. esac
  5416. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5417. (eval "$ac_link") 2>&5
  5418. ac_status=$?
  5419. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5420. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5421. { (case "(($ac_try" in
  5422. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5423. *) ac_try_echo=$ac_try;;
  5424. esac
  5425. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5426. (eval "$ac_try") 2>&5
  5427. ac_status=$?
  5428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5429. (exit $ac_status); }; }; then
  5430. ac_cv_c_bigendian=no
  5431. else
  5432. echo "$as_me: program exited with status $ac_status" >&5
  5433. echo "$as_me: failed program was:" >&5
  5434. sed 's/^/| /' conftest.$ac_ext >&5
  5435. ( exit $ac_status )
  5436. ac_cv_c_bigendian=yes
  5437. fi
  5438. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5439. fi
  5440. fi
  5441. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5442. fi
  5443. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  5444. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  5445. case $ac_cv_c_bigendian in
  5446. yes)
  5447. cat >>confdefs.h <<\_ACEOF
  5448. #define B_ENDIAN 1
  5449. _ACEOF
  5450. ;;
  5451. no)
  5452. cat >>confdefs.h <<\_ACEOF
  5453. #define L_ENDIAN 1
  5454. _ACEOF
  5455. ;;
  5456. *)
  5457. { { echo "$as_me:$LINENO: error: unknown endianness
  5458. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  5459. echo "$as_me: error: unknown endianness
  5460. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  5461. { (exit 1); exit 1; }; } ;;
  5462. esac
  5463. #AC_C_INLINE
  5464. { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
  5465. echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
  5466. if test "${ac_cv_c_char_unsigned+set}" = set; then
  5467. echo $ECHO_N "(cached) $ECHO_C" >&6
  5468. else
  5469. cat >conftest.$ac_ext <<_ACEOF
  5470. /* confdefs.h. */
  5471. _ACEOF
  5472. cat confdefs.h >>conftest.$ac_ext
  5473. cat >>conftest.$ac_ext <<_ACEOF
  5474. /* end confdefs.h. */
  5475. $ac_includes_default
  5476. int
  5477. main ()
  5478. {
  5479. static int test_array [1 - 2 * !(((char) -1) < 0)];
  5480. test_array [0] = 0
  5481. ;
  5482. return 0;
  5483. }
  5484. _ACEOF
  5485. rm -f conftest.$ac_objext
  5486. if { (ac_try="$ac_compile"
  5487. case "(($ac_try" in
  5488. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5489. *) ac_try_echo=$ac_try;;
  5490. esac
  5491. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5492. (eval "$ac_compile") 2>conftest.er1
  5493. ac_status=$?
  5494. grep -v '^ *+' conftest.er1 >conftest.err
  5495. rm -f conftest.er1
  5496. cat conftest.err >&5
  5497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5498. (exit $ac_status); } && {
  5499. test -z "$ac_cxx_werror_flag" ||
  5500. test ! -s conftest.err
  5501. } && test -s conftest.$ac_objext; then
  5502. ac_cv_c_char_unsigned=no
  5503. else
  5504. echo "$as_me: failed program was:" >&5
  5505. sed 's/^/| /' conftest.$ac_ext >&5
  5506. ac_cv_c_char_unsigned=yes
  5507. fi
  5508. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5509. fi
  5510. { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
  5511. echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
  5512. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  5513. cat >>confdefs.h <<\_ACEOF
  5514. #define __CHAR_UNSIGNED__ 1
  5515. _ACEOF
  5516. fi
  5517. #AC_C_STRINGIZE
  5518. #AC_C_PROTOTYPES
  5519. #checkpoint
  5520. cat >confcache <<\_ACEOF
  5521. # This file is a shell script that caches the results of configure
  5522. # tests run on this system so they can be shared between configure
  5523. # scripts and configure runs, see configure's option --config-cache.
  5524. # It is not useful on other systems. If it contains results you don't
  5525. # want to keep, you may remove or edit it.
  5526. #
  5527. # config.status only pays attention to the cache file if you give it
  5528. # the --recheck option to rerun configure.
  5529. #
  5530. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5531. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5532. # following values.
  5533. _ACEOF
  5534. # The following way of writing the cache mishandles newlines in values,
  5535. # but we know of no workaround that is simple, portable, and efficient.
  5536. # So, we kill variables containing newlines.
  5537. # Ultrix sh set writes to stderr and can't be redirected directly,
  5538. # and sets the high bit in the cache file unless we assign to the vars.
  5539. (
  5540. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5541. eval ac_val=\$$ac_var
  5542. case $ac_val in #(
  5543. *${as_nl}*)
  5544. case $ac_var in #(
  5545. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  5546. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  5547. esac
  5548. case $ac_var in #(
  5549. _ | IFS | as_nl) ;; #(
  5550. *) $as_unset $ac_var ;;
  5551. esac ;;
  5552. esac
  5553. done
  5554. (set) 2>&1 |
  5555. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5556. *${as_nl}ac_space=\ *)
  5557. # `set' does not quote correctly, so add quotes (double-quote
  5558. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5559. sed -n \
  5560. "s/'/'\\\\''/g;
  5561. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5562. ;; #(
  5563. *)
  5564. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5565. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5566. ;;
  5567. esac |
  5568. sort
  5569. ) |
  5570. sed '
  5571. /^ac_cv_env_/b end
  5572. t clear
  5573. :clear
  5574. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5575. t end
  5576. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5577. :end' >>confcache
  5578. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5579. if test -w "$cache_file"; then
  5580. test "x$cache_file" != "x/dev/null" &&
  5581. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  5582. echo "$as_me: updating cache $cache_file" >&6;}
  5583. cat confcache >$cache_file
  5584. else
  5585. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  5586. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5587. fi
  5588. fi
  5589. rm -f confcache
  5590. { echo "$as_me:$LINENO: checking for int" >&5
  5591. echo $ECHO_N "checking for int... $ECHO_C" >&6; }
  5592. if test "${ac_cv_type_int+set}" = set; then
  5593. echo $ECHO_N "(cached) $ECHO_C" >&6
  5594. else
  5595. cat >conftest.$ac_ext <<_ACEOF
  5596. /* confdefs.h. */
  5597. _ACEOF
  5598. cat confdefs.h >>conftest.$ac_ext
  5599. cat >>conftest.$ac_ext <<_ACEOF
  5600. /* end confdefs.h. */
  5601. $ac_includes_default
  5602. typedef int ac__type_new_;
  5603. int
  5604. main ()
  5605. {
  5606. if ((ac__type_new_ *) 0)
  5607. return 0;
  5608. if (sizeof (ac__type_new_))
  5609. return 0;
  5610. ;
  5611. return 0;
  5612. }
  5613. _ACEOF
  5614. rm -f conftest.$ac_objext
  5615. if { (ac_try="$ac_compile"
  5616. case "(($ac_try" in
  5617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5618. *) ac_try_echo=$ac_try;;
  5619. esac
  5620. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5621. (eval "$ac_compile") 2>conftest.er1
  5622. ac_status=$?
  5623. grep -v '^ *+' conftest.er1 >conftest.err
  5624. rm -f conftest.er1
  5625. cat conftest.err >&5
  5626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5627. (exit $ac_status); } && {
  5628. test -z "$ac_cxx_werror_flag" ||
  5629. test ! -s conftest.err
  5630. } && test -s conftest.$ac_objext; then
  5631. ac_cv_type_int=yes
  5632. else
  5633. echo "$as_me: failed program was:" >&5
  5634. sed 's/^/| /' conftest.$ac_ext >&5
  5635. ac_cv_type_int=no
  5636. fi
  5637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5638. fi
  5639. { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  5640. echo "${ECHO_T}$ac_cv_type_int" >&6; }
  5641. # The cast to long int works around a bug in the HP C Compiler
  5642. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5643. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5644. # This bug is HP SR number 8606223364.
  5645. { echo "$as_me:$LINENO: checking size of int" >&5
  5646. echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
  5647. if test "${ac_cv_sizeof_int+set}" = set; then
  5648. echo $ECHO_N "(cached) $ECHO_C" >&6
  5649. else
  5650. if test "$cross_compiling" = yes; then
  5651. # Depending upon the size, compute the lo and hi bounds.
  5652. cat >conftest.$ac_ext <<_ACEOF
  5653. /* confdefs.h. */
  5654. _ACEOF
  5655. cat confdefs.h >>conftest.$ac_ext
  5656. cat >>conftest.$ac_ext <<_ACEOF
  5657. /* end confdefs.h. */
  5658. $ac_includes_default
  5659. typedef int ac__type_sizeof_;
  5660. int
  5661. main ()
  5662. {
  5663. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  5664. test_array [0] = 0
  5665. ;
  5666. return 0;
  5667. }
  5668. _ACEOF
  5669. rm -f conftest.$ac_objext
  5670. if { (ac_try="$ac_compile"
  5671. case "(($ac_try" in
  5672. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5673. *) ac_try_echo=$ac_try;;
  5674. esac
  5675. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5676. (eval "$ac_compile") 2>conftest.er1
  5677. ac_status=$?
  5678. grep -v '^ *+' conftest.er1 >conftest.err
  5679. rm -f conftest.er1
  5680. cat conftest.err >&5
  5681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5682. (exit $ac_status); } && {
  5683. test -z "$ac_cxx_werror_flag" ||
  5684. test ! -s conftest.err
  5685. } && test -s conftest.$ac_objext; then
  5686. ac_lo=0 ac_mid=0
  5687. while :; do
  5688. cat >conftest.$ac_ext <<_ACEOF
  5689. /* confdefs.h. */
  5690. _ACEOF
  5691. cat confdefs.h >>conftest.$ac_ext
  5692. cat >>conftest.$ac_ext <<_ACEOF
  5693. /* end confdefs.h. */
  5694. $ac_includes_default
  5695. typedef int ac__type_sizeof_;
  5696. int
  5697. main ()
  5698. {
  5699. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  5700. test_array [0] = 0
  5701. ;
  5702. return 0;
  5703. }
  5704. _ACEOF
  5705. rm -f conftest.$ac_objext
  5706. if { (ac_try="$ac_compile"
  5707. case "(($ac_try" in
  5708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5709. *) ac_try_echo=$ac_try;;
  5710. esac
  5711. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5712. (eval "$ac_compile") 2>conftest.er1
  5713. ac_status=$?
  5714. grep -v '^ *+' conftest.er1 >conftest.err
  5715. rm -f conftest.er1
  5716. cat conftest.err >&5
  5717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5718. (exit $ac_status); } && {
  5719. test -z "$ac_cxx_werror_flag" ||
  5720. test ! -s conftest.err
  5721. } && test -s conftest.$ac_objext; then
  5722. ac_hi=$ac_mid; break
  5723. else
  5724. echo "$as_me: failed program was:" >&5
  5725. sed 's/^/| /' conftest.$ac_ext >&5
  5726. ac_lo=`expr $ac_mid + 1`
  5727. if test $ac_lo -le $ac_mid; then
  5728. ac_lo= ac_hi=
  5729. break
  5730. fi
  5731. ac_mid=`expr 2 '*' $ac_mid + 1`
  5732. fi
  5733. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5734. done
  5735. else
  5736. echo "$as_me: failed program was:" >&5
  5737. sed 's/^/| /' conftest.$ac_ext >&5
  5738. cat >conftest.$ac_ext <<_ACEOF
  5739. /* confdefs.h. */
  5740. _ACEOF
  5741. cat confdefs.h >>conftest.$ac_ext
  5742. cat >>conftest.$ac_ext <<_ACEOF
  5743. /* end confdefs.h. */
  5744. $ac_includes_default
  5745. typedef int ac__type_sizeof_;
  5746. int
  5747. main ()
  5748. {
  5749. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  5750. test_array [0] = 0
  5751. ;
  5752. return 0;
  5753. }
  5754. _ACEOF
  5755. rm -f conftest.$ac_objext
  5756. if { (ac_try="$ac_compile"
  5757. case "(($ac_try" in
  5758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5759. *) ac_try_echo=$ac_try;;
  5760. esac
  5761. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5762. (eval "$ac_compile") 2>conftest.er1
  5763. ac_status=$?
  5764. grep -v '^ *+' conftest.er1 >conftest.err
  5765. rm -f conftest.er1
  5766. cat conftest.err >&5
  5767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5768. (exit $ac_status); } && {
  5769. test -z "$ac_cxx_werror_flag" ||
  5770. test ! -s conftest.err
  5771. } && test -s conftest.$ac_objext; then
  5772. ac_hi=-1 ac_mid=-1
  5773. while :; do
  5774. cat >conftest.$ac_ext <<_ACEOF
  5775. /* confdefs.h. */
  5776. _ACEOF
  5777. cat confdefs.h >>conftest.$ac_ext
  5778. cat >>conftest.$ac_ext <<_ACEOF
  5779. /* end confdefs.h. */
  5780. $ac_includes_default
  5781. typedef int ac__type_sizeof_;
  5782. int
  5783. main ()
  5784. {
  5785. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  5786. test_array [0] = 0
  5787. ;
  5788. return 0;
  5789. }
  5790. _ACEOF
  5791. rm -f conftest.$ac_objext
  5792. if { (ac_try="$ac_compile"
  5793. case "(($ac_try" in
  5794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5795. *) ac_try_echo=$ac_try;;
  5796. esac
  5797. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5798. (eval "$ac_compile") 2>conftest.er1
  5799. ac_status=$?
  5800. grep -v '^ *+' conftest.er1 >conftest.err
  5801. rm -f conftest.er1
  5802. cat conftest.err >&5
  5803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5804. (exit $ac_status); } && {
  5805. test -z "$ac_cxx_werror_flag" ||
  5806. test ! -s conftest.err
  5807. } && test -s conftest.$ac_objext; then
  5808. ac_lo=$ac_mid; break
  5809. else
  5810. echo "$as_me: failed program was:" >&5
  5811. sed 's/^/| /' conftest.$ac_ext >&5
  5812. ac_hi=`expr '(' $ac_mid ')' - 1`
  5813. if test $ac_mid -le $ac_hi; then
  5814. ac_lo= ac_hi=
  5815. break
  5816. fi
  5817. ac_mid=`expr 2 '*' $ac_mid`
  5818. fi
  5819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5820. done
  5821. else
  5822. echo "$as_me: failed program was:" >&5
  5823. sed 's/^/| /' conftest.$ac_ext >&5
  5824. ac_lo= ac_hi=
  5825. fi
  5826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5827. fi
  5828. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5829. # Binary search between lo and hi bounds.
  5830. while test "x$ac_lo" != "x$ac_hi"; do
  5831. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5832. cat >conftest.$ac_ext <<_ACEOF
  5833. /* confdefs.h. */
  5834. _ACEOF
  5835. cat confdefs.h >>conftest.$ac_ext
  5836. cat >>conftest.$ac_ext <<_ACEOF
  5837. /* end confdefs.h. */
  5838. $ac_includes_default
  5839. typedef int ac__type_sizeof_;
  5840. int
  5841. main ()
  5842. {
  5843. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  5844. test_array [0] = 0
  5845. ;
  5846. return 0;
  5847. }
  5848. _ACEOF
  5849. rm -f conftest.$ac_objext
  5850. if { (ac_try="$ac_compile"
  5851. case "(($ac_try" in
  5852. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5853. *) ac_try_echo=$ac_try;;
  5854. esac
  5855. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5856. (eval "$ac_compile") 2>conftest.er1
  5857. ac_status=$?
  5858. grep -v '^ *+' conftest.er1 >conftest.err
  5859. rm -f conftest.er1
  5860. cat conftest.err >&5
  5861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5862. (exit $ac_status); } && {
  5863. test -z "$ac_cxx_werror_flag" ||
  5864. test ! -s conftest.err
  5865. } && test -s conftest.$ac_objext; then
  5866. ac_hi=$ac_mid
  5867. else
  5868. echo "$as_me: failed program was:" >&5
  5869. sed 's/^/| /' conftest.$ac_ext >&5
  5870. ac_lo=`expr '(' $ac_mid ')' + 1`
  5871. fi
  5872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5873. done
  5874. case $ac_lo in
  5875. ?*) ac_cv_sizeof_int=$ac_lo;;
  5876. '') if test "$ac_cv_type_int" = yes; then
  5877. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  5878. See \`config.log' for more details." >&5
  5879. echo "$as_me: error: cannot compute sizeof (int)
  5880. See \`config.log' for more details." >&2;}
  5881. { (exit 77); exit 77; }; }
  5882. else
  5883. ac_cv_sizeof_int=0
  5884. fi ;;
  5885. esac
  5886. else
  5887. cat >conftest.$ac_ext <<_ACEOF
  5888. /* confdefs.h. */
  5889. _ACEOF
  5890. cat confdefs.h >>conftest.$ac_ext
  5891. cat >>conftest.$ac_ext <<_ACEOF
  5892. /* end confdefs.h. */
  5893. $ac_includes_default
  5894. typedef int ac__type_sizeof_;
  5895. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  5896. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  5897. #include <stdio.h>
  5898. #include <stdlib.h>
  5899. int
  5900. main ()
  5901. {
  5902. FILE *f = fopen ("conftest.val", "w");
  5903. if (! f)
  5904. return 1;
  5905. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  5906. {
  5907. long int i = longval ();
  5908. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  5909. return 1;
  5910. fprintf (f, "%ld\n", i);
  5911. }
  5912. else
  5913. {
  5914. unsigned long int i = ulongval ();
  5915. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  5916. return 1;
  5917. fprintf (f, "%lu\n", i);
  5918. }
  5919. return ferror (f) || fclose (f) != 0;
  5920. ;
  5921. return 0;
  5922. }
  5923. _ACEOF
  5924. rm -f conftest$ac_exeext
  5925. if { (ac_try="$ac_link"
  5926. case "(($ac_try" in
  5927. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5928. *) ac_try_echo=$ac_try;;
  5929. esac
  5930. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5931. (eval "$ac_link") 2>&5
  5932. ac_status=$?
  5933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5934. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5935. { (case "(($ac_try" in
  5936. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5937. *) ac_try_echo=$ac_try;;
  5938. esac
  5939. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5940. (eval "$ac_try") 2>&5
  5941. ac_status=$?
  5942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5943. (exit $ac_status); }; }; then
  5944. ac_cv_sizeof_int=`cat conftest.val`
  5945. else
  5946. echo "$as_me: program exited with status $ac_status" >&5
  5947. echo "$as_me: failed program was:" >&5
  5948. sed 's/^/| /' conftest.$ac_ext >&5
  5949. ( exit $ac_status )
  5950. if test "$ac_cv_type_int" = yes; then
  5951. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  5952. See \`config.log' for more details." >&5
  5953. echo "$as_me: error: cannot compute sizeof (int)
  5954. See \`config.log' for more details." >&2;}
  5955. { (exit 77); exit 77; }; }
  5956. else
  5957. ac_cv_sizeof_int=0
  5958. fi
  5959. fi
  5960. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5961. fi
  5962. rm -f conftest.val
  5963. fi
  5964. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  5965. echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
  5966. cat >>confdefs.h <<_ACEOF
  5967. #define SIZEOF_INT $ac_cv_sizeof_int
  5968. _ACEOF
  5969. { echo "$as_me:$LINENO: checking for short" >&5
  5970. echo $ECHO_N "checking for short... $ECHO_C" >&6; }
  5971. if test "${ac_cv_type_short+set}" = set; then
  5972. echo $ECHO_N "(cached) $ECHO_C" >&6
  5973. else
  5974. cat >conftest.$ac_ext <<_ACEOF
  5975. /* confdefs.h. */
  5976. _ACEOF
  5977. cat confdefs.h >>conftest.$ac_ext
  5978. cat >>conftest.$ac_ext <<_ACEOF
  5979. /* end confdefs.h. */
  5980. $ac_includes_default
  5981. typedef short ac__type_new_;
  5982. int
  5983. main ()
  5984. {
  5985. if ((ac__type_new_ *) 0)
  5986. return 0;
  5987. if (sizeof (ac__type_new_))
  5988. return 0;
  5989. ;
  5990. return 0;
  5991. }
  5992. _ACEOF
  5993. rm -f conftest.$ac_objext
  5994. if { (ac_try="$ac_compile"
  5995. case "(($ac_try" in
  5996. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5997. *) ac_try_echo=$ac_try;;
  5998. esac
  5999. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6000. (eval "$ac_compile") 2>conftest.er1
  6001. ac_status=$?
  6002. grep -v '^ *+' conftest.er1 >conftest.err
  6003. rm -f conftest.er1
  6004. cat conftest.err >&5
  6005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6006. (exit $ac_status); } && {
  6007. test -z "$ac_cxx_werror_flag" ||
  6008. test ! -s conftest.err
  6009. } && test -s conftest.$ac_objext; then
  6010. ac_cv_type_short=yes
  6011. else
  6012. echo "$as_me: failed program was:" >&5
  6013. sed 's/^/| /' conftest.$ac_ext >&5
  6014. ac_cv_type_short=no
  6015. fi
  6016. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6017. fi
  6018. { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  6019. echo "${ECHO_T}$ac_cv_type_short" >&6; }
  6020. # The cast to long int works around a bug in the HP C Compiler
  6021. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6022. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6023. # This bug is HP SR number 8606223364.
  6024. { echo "$as_me:$LINENO: checking size of short" >&5
  6025. echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
  6026. if test "${ac_cv_sizeof_short+set}" = set; then
  6027. echo $ECHO_N "(cached) $ECHO_C" >&6
  6028. else
  6029. if test "$cross_compiling" = yes; then
  6030. # Depending upon the size, compute the lo and hi bounds.
  6031. cat >conftest.$ac_ext <<_ACEOF
  6032. /* confdefs.h. */
  6033. _ACEOF
  6034. cat confdefs.h >>conftest.$ac_ext
  6035. cat >>conftest.$ac_ext <<_ACEOF
  6036. /* end confdefs.h. */
  6037. $ac_includes_default
  6038. typedef short ac__type_sizeof_;
  6039. int
  6040. main ()
  6041. {
  6042. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  6043. test_array [0] = 0
  6044. ;
  6045. return 0;
  6046. }
  6047. _ACEOF
  6048. rm -f conftest.$ac_objext
  6049. if { (ac_try="$ac_compile"
  6050. case "(($ac_try" in
  6051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6052. *) ac_try_echo=$ac_try;;
  6053. esac
  6054. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6055. (eval "$ac_compile") 2>conftest.er1
  6056. ac_status=$?
  6057. grep -v '^ *+' conftest.er1 >conftest.err
  6058. rm -f conftest.er1
  6059. cat conftest.err >&5
  6060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6061. (exit $ac_status); } && {
  6062. test -z "$ac_cxx_werror_flag" ||
  6063. test ! -s conftest.err
  6064. } && test -s conftest.$ac_objext; then
  6065. ac_lo=0 ac_mid=0
  6066. while :; do
  6067. cat >conftest.$ac_ext <<_ACEOF
  6068. /* confdefs.h. */
  6069. _ACEOF
  6070. cat confdefs.h >>conftest.$ac_ext
  6071. cat >>conftest.$ac_ext <<_ACEOF
  6072. /* end confdefs.h. */
  6073. $ac_includes_default
  6074. typedef short ac__type_sizeof_;
  6075. int
  6076. main ()
  6077. {
  6078. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6079. test_array [0] = 0
  6080. ;
  6081. return 0;
  6082. }
  6083. _ACEOF
  6084. rm -f conftest.$ac_objext
  6085. if { (ac_try="$ac_compile"
  6086. case "(($ac_try" in
  6087. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6088. *) ac_try_echo=$ac_try;;
  6089. esac
  6090. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6091. (eval "$ac_compile") 2>conftest.er1
  6092. ac_status=$?
  6093. grep -v '^ *+' conftest.er1 >conftest.err
  6094. rm -f conftest.er1
  6095. cat conftest.err >&5
  6096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6097. (exit $ac_status); } && {
  6098. test -z "$ac_cxx_werror_flag" ||
  6099. test ! -s conftest.err
  6100. } && test -s conftest.$ac_objext; then
  6101. ac_hi=$ac_mid; break
  6102. else
  6103. echo "$as_me: failed program was:" >&5
  6104. sed 's/^/| /' conftest.$ac_ext >&5
  6105. ac_lo=`expr $ac_mid + 1`
  6106. if test $ac_lo -le $ac_mid; then
  6107. ac_lo= ac_hi=
  6108. break
  6109. fi
  6110. ac_mid=`expr 2 '*' $ac_mid + 1`
  6111. fi
  6112. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6113. done
  6114. else
  6115. echo "$as_me: failed program was:" >&5
  6116. sed 's/^/| /' conftest.$ac_ext >&5
  6117. cat >conftest.$ac_ext <<_ACEOF
  6118. /* confdefs.h. */
  6119. _ACEOF
  6120. cat confdefs.h >>conftest.$ac_ext
  6121. cat >>conftest.$ac_ext <<_ACEOF
  6122. /* end confdefs.h. */
  6123. $ac_includes_default
  6124. typedef short ac__type_sizeof_;
  6125. int
  6126. main ()
  6127. {
  6128. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  6129. test_array [0] = 0
  6130. ;
  6131. return 0;
  6132. }
  6133. _ACEOF
  6134. rm -f conftest.$ac_objext
  6135. if { (ac_try="$ac_compile"
  6136. case "(($ac_try" in
  6137. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6138. *) ac_try_echo=$ac_try;;
  6139. esac
  6140. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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. test -z "$ac_cxx_werror_flag" ||
  6149. test ! -s conftest.err
  6150. } && test -s conftest.$ac_objext; then
  6151. ac_hi=-1 ac_mid=-1
  6152. while :; do
  6153. cat >conftest.$ac_ext <<_ACEOF
  6154. /* confdefs.h. */
  6155. _ACEOF
  6156. cat confdefs.h >>conftest.$ac_ext
  6157. cat >>conftest.$ac_ext <<_ACEOF
  6158. /* end confdefs.h. */
  6159. $ac_includes_default
  6160. typedef short ac__type_sizeof_;
  6161. int
  6162. main ()
  6163. {
  6164. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  6165. test_array [0] = 0
  6166. ;
  6167. return 0;
  6168. }
  6169. _ACEOF
  6170. rm -f conftest.$ac_objext
  6171. if { (ac_try="$ac_compile"
  6172. case "(($ac_try" in
  6173. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6174. *) ac_try_echo=$ac_try;;
  6175. esac
  6176. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6177. (eval "$ac_compile") 2>conftest.er1
  6178. ac_status=$?
  6179. grep -v '^ *+' conftest.er1 >conftest.err
  6180. rm -f conftest.er1
  6181. cat conftest.err >&5
  6182. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6183. (exit $ac_status); } && {
  6184. test -z "$ac_cxx_werror_flag" ||
  6185. test ! -s conftest.err
  6186. } && test -s conftest.$ac_objext; then
  6187. ac_lo=$ac_mid; break
  6188. else
  6189. echo "$as_me: failed program was:" >&5
  6190. sed 's/^/| /' conftest.$ac_ext >&5
  6191. ac_hi=`expr '(' $ac_mid ')' - 1`
  6192. if test $ac_mid -le $ac_hi; then
  6193. ac_lo= ac_hi=
  6194. break
  6195. fi
  6196. ac_mid=`expr 2 '*' $ac_mid`
  6197. fi
  6198. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6199. done
  6200. else
  6201. echo "$as_me: failed program was:" >&5
  6202. sed 's/^/| /' conftest.$ac_ext >&5
  6203. ac_lo= ac_hi=
  6204. fi
  6205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6206. fi
  6207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6208. # Binary search between lo and hi bounds.
  6209. while test "x$ac_lo" != "x$ac_hi"; do
  6210. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6211. cat >conftest.$ac_ext <<_ACEOF
  6212. /* confdefs.h. */
  6213. _ACEOF
  6214. cat confdefs.h >>conftest.$ac_ext
  6215. cat >>conftest.$ac_ext <<_ACEOF
  6216. /* end confdefs.h. */
  6217. $ac_includes_default
  6218. typedef short ac__type_sizeof_;
  6219. int
  6220. main ()
  6221. {
  6222. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6223. test_array [0] = 0
  6224. ;
  6225. return 0;
  6226. }
  6227. _ACEOF
  6228. rm -f conftest.$ac_objext
  6229. if { (ac_try="$ac_compile"
  6230. case "(($ac_try" in
  6231. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6232. *) ac_try_echo=$ac_try;;
  6233. esac
  6234. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6235. (eval "$ac_compile") 2>conftest.er1
  6236. ac_status=$?
  6237. grep -v '^ *+' conftest.er1 >conftest.err
  6238. rm -f conftest.er1
  6239. cat conftest.err >&5
  6240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6241. (exit $ac_status); } && {
  6242. test -z "$ac_cxx_werror_flag" ||
  6243. test ! -s conftest.err
  6244. } && test -s conftest.$ac_objext; then
  6245. ac_hi=$ac_mid
  6246. else
  6247. echo "$as_me: failed program was:" >&5
  6248. sed 's/^/| /' conftest.$ac_ext >&5
  6249. ac_lo=`expr '(' $ac_mid ')' + 1`
  6250. fi
  6251. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6252. done
  6253. case $ac_lo in
  6254. ?*) ac_cv_sizeof_short=$ac_lo;;
  6255. '') if test "$ac_cv_type_short" = yes; then
  6256. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  6257. See \`config.log' for more details." >&5
  6258. echo "$as_me: error: cannot compute sizeof (short)
  6259. See \`config.log' for more details." >&2;}
  6260. { (exit 77); exit 77; }; }
  6261. else
  6262. ac_cv_sizeof_short=0
  6263. fi ;;
  6264. esac
  6265. else
  6266. cat >conftest.$ac_ext <<_ACEOF
  6267. /* confdefs.h. */
  6268. _ACEOF
  6269. cat confdefs.h >>conftest.$ac_ext
  6270. cat >>conftest.$ac_ext <<_ACEOF
  6271. /* end confdefs.h. */
  6272. $ac_includes_default
  6273. typedef short ac__type_sizeof_;
  6274. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6275. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6276. #include <stdio.h>
  6277. #include <stdlib.h>
  6278. int
  6279. main ()
  6280. {
  6281. FILE *f = fopen ("conftest.val", "w");
  6282. if (! f)
  6283. return 1;
  6284. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  6285. {
  6286. long int i = longval ();
  6287. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  6288. return 1;
  6289. fprintf (f, "%ld\n", i);
  6290. }
  6291. else
  6292. {
  6293. unsigned long int i = ulongval ();
  6294. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  6295. return 1;
  6296. fprintf (f, "%lu\n", i);
  6297. }
  6298. return ferror (f) || fclose (f) != 0;
  6299. ;
  6300. return 0;
  6301. }
  6302. _ACEOF
  6303. rm -f conftest$ac_exeext
  6304. if { (ac_try="$ac_link"
  6305. case "(($ac_try" in
  6306. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6307. *) ac_try_echo=$ac_try;;
  6308. esac
  6309. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6310. (eval "$ac_link") 2>&5
  6311. ac_status=$?
  6312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6313. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6314. { (case "(($ac_try" in
  6315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6316. *) ac_try_echo=$ac_try;;
  6317. esac
  6318. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6319. (eval "$ac_try") 2>&5
  6320. ac_status=$?
  6321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6322. (exit $ac_status); }; }; then
  6323. ac_cv_sizeof_short=`cat conftest.val`
  6324. else
  6325. echo "$as_me: program exited with status $ac_status" >&5
  6326. echo "$as_me: failed program was:" >&5
  6327. sed 's/^/| /' conftest.$ac_ext >&5
  6328. ( exit $ac_status )
  6329. if test "$ac_cv_type_short" = yes; then
  6330. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  6331. See \`config.log' for more details." >&5
  6332. echo "$as_me: error: cannot compute sizeof (short)
  6333. See \`config.log' for more details." >&2;}
  6334. { (exit 77); exit 77; }; }
  6335. else
  6336. ac_cv_sizeof_short=0
  6337. fi
  6338. fi
  6339. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6340. fi
  6341. rm -f conftest.val
  6342. fi
  6343. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  6344. echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
  6345. cat >>confdefs.h <<_ACEOF
  6346. #define SIZEOF_SHORT $ac_cv_sizeof_short
  6347. _ACEOF
  6348. { echo "$as_me:$LINENO: checking for long" >&5
  6349. echo $ECHO_N "checking for long... $ECHO_C" >&6; }
  6350. if test "${ac_cv_type_long+set}" = set; then
  6351. echo $ECHO_N "(cached) $ECHO_C" >&6
  6352. else
  6353. cat >conftest.$ac_ext <<_ACEOF
  6354. /* confdefs.h. */
  6355. _ACEOF
  6356. cat confdefs.h >>conftest.$ac_ext
  6357. cat >>conftest.$ac_ext <<_ACEOF
  6358. /* end confdefs.h. */
  6359. $ac_includes_default
  6360. typedef long ac__type_new_;
  6361. int
  6362. main ()
  6363. {
  6364. if ((ac__type_new_ *) 0)
  6365. return 0;
  6366. if (sizeof (ac__type_new_))
  6367. return 0;
  6368. ;
  6369. return 0;
  6370. }
  6371. _ACEOF
  6372. rm -f conftest.$ac_objext
  6373. if { (ac_try="$ac_compile"
  6374. case "(($ac_try" in
  6375. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6376. *) ac_try_echo=$ac_try;;
  6377. esac
  6378. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6379. (eval "$ac_compile") 2>conftest.er1
  6380. ac_status=$?
  6381. grep -v '^ *+' conftest.er1 >conftest.err
  6382. rm -f conftest.er1
  6383. cat conftest.err >&5
  6384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6385. (exit $ac_status); } && {
  6386. test -z "$ac_cxx_werror_flag" ||
  6387. test ! -s conftest.err
  6388. } && test -s conftest.$ac_objext; then
  6389. ac_cv_type_long=yes
  6390. else
  6391. echo "$as_me: failed program was:" >&5
  6392. sed 's/^/| /' conftest.$ac_ext >&5
  6393. ac_cv_type_long=no
  6394. fi
  6395. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6396. fi
  6397. { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  6398. echo "${ECHO_T}$ac_cv_type_long" >&6; }
  6399. # The cast to long int works around a bug in the HP C Compiler
  6400. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6401. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6402. # This bug is HP SR number 8606223364.
  6403. { echo "$as_me:$LINENO: checking size of long" >&5
  6404. echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
  6405. if test "${ac_cv_sizeof_long+set}" = set; then
  6406. echo $ECHO_N "(cached) $ECHO_C" >&6
  6407. else
  6408. if test "$cross_compiling" = yes; then
  6409. # Depending upon the size, compute the lo and hi bounds.
  6410. cat >conftest.$ac_ext <<_ACEOF
  6411. /* confdefs.h. */
  6412. _ACEOF
  6413. cat confdefs.h >>conftest.$ac_ext
  6414. cat >>conftest.$ac_ext <<_ACEOF
  6415. /* end confdefs.h. */
  6416. $ac_includes_default
  6417. typedef long ac__type_sizeof_;
  6418. int
  6419. main ()
  6420. {
  6421. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  6422. test_array [0] = 0
  6423. ;
  6424. return 0;
  6425. }
  6426. _ACEOF
  6427. rm -f conftest.$ac_objext
  6428. if { (ac_try="$ac_compile"
  6429. case "(($ac_try" in
  6430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6431. *) ac_try_echo=$ac_try;;
  6432. esac
  6433. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6434. (eval "$ac_compile") 2>conftest.er1
  6435. ac_status=$?
  6436. grep -v '^ *+' conftest.er1 >conftest.err
  6437. rm -f conftest.er1
  6438. cat conftest.err >&5
  6439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6440. (exit $ac_status); } && {
  6441. test -z "$ac_cxx_werror_flag" ||
  6442. test ! -s conftest.err
  6443. } && test -s conftest.$ac_objext; then
  6444. ac_lo=0 ac_mid=0
  6445. while :; do
  6446. cat >conftest.$ac_ext <<_ACEOF
  6447. /* confdefs.h. */
  6448. _ACEOF
  6449. cat confdefs.h >>conftest.$ac_ext
  6450. cat >>conftest.$ac_ext <<_ACEOF
  6451. /* end confdefs.h. */
  6452. $ac_includes_default
  6453. typedef long ac__type_sizeof_;
  6454. int
  6455. main ()
  6456. {
  6457. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6458. test_array [0] = 0
  6459. ;
  6460. return 0;
  6461. }
  6462. _ACEOF
  6463. rm -f conftest.$ac_objext
  6464. if { (ac_try="$ac_compile"
  6465. case "(($ac_try" in
  6466. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6467. *) ac_try_echo=$ac_try;;
  6468. esac
  6469. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6470. (eval "$ac_compile") 2>conftest.er1
  6471. ac_status=$?
  6472. grep -v '^ *+' conftest.er1 >conftest.err
  6473. rm -f conftest.er1
  6474. cat conftest.err >&5
  6475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6476. (exit $ac_status); } && {
  6477. test -z "$ac_cxx_werror_flag" ||
  6478. test ! -s conftest.err
  6479. } && test -s conftest.$ac_objext; then
  6480. ac_hi=$ac_mid; break
  6481. else
  6482. echo "$as_me: failed program was:" >&5
  6483. sed 's/^/| /' conftest.$ac_ext >&5
  6484. ac_lo=`expr $ac_mid + 1`
  6485. if test $ac_lo -le $ac_mid; then
  6486. ac_lo= ac_hi=
  6487. break
  6488. fi
  6489. ac_mid=`expr 2 '*' $ac_mid + 1`
  6490. fi
  6491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6492. done
  6493. else
  6494. echo "$as_me: failed program was:" >&5
  6495. sed 's/^/| /' conftest.$ac_ext >&5
  6496. cat >conftest.$ac_ext <<_ACEOF
  6497. /* confdefs.h. */
  6498. _ACEOF
  6499. cat confdefs.h >>conftest.$ac_ext
  6500. cat >>conftest.$ac_ext <<_ACEOF
  6501. /* end confdefs.h. */
  6502. $ac_includes_default
  6503. typedef long ac__type_sizeof_;
  6504. int
  6505. main ()
  6506. {
  6507. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  6508. test_array [0] = 0
  6509. ;
  6510. return 0;
  6511. }
  6512. _ACEOF
  6513. rm -f conftest.$ac_objext
  6514. if { (ac_try="$ac_compile"
  6515. case "(($ac_try" in
  6516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6517. *) ac_try_echo=$ac_try;;
  6518. esac
  6519. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6520. (eval "$ac_compile") 2>conftest.er1
  6521. ac_status=$?
  6522. grep -v '^ *+' conftest.er1 >conftest.err
  6523. rm -f conftest.er1
  6524. cat conftest.err >&5
  6525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6526. (exit $ac_status); } && {
  6527. test -z "$ac_cxx_werror_flag" ||
  6528. test ! -s conftest.err
  6529. } && test -s conftest.$ac_objext; then
  6530. ac_hi=-1 ac_mid=-1
  6531. while :; do
  6532. cat >conftest.$ac_ext <<_ACEOF
  6533. /* confdefs.h. */
  6534. _ACEOF
  6535. cat confdefs.h >>conftest.$ac_ext
  6536. cat >>conftest.$ac_ext <<_ACEOF
  6537. /* end confdefs.h. */
  6538. $ac_includes_default
  6539. typedef long ac__type_sizeof_;
  6540. int
  6541. main ()
  6542. {
  6543. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  6544. test_array [0] = 0
  6545. ;
  6546. return 0;
  6547. }
  6548. _ACEOF
  6549. rm -f conftest.$ac_objext
  6550. if { (ac_try="$ac_compile"
  6551. case "(($ac_try" in
  6552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6553. *) ac_try_echo=$ac_try;;
  6554. esac
  6555. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6556. (eval "$ac_compile") 2>conftest.er1
  6557. ac_status=$?
  6558. grep -v '^ *+' conftest.er1 >conftest.err
  6559. rm -f conftest.er1
  6560. cat conftest.err >&5
  6561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6562. (exit $ac_status); } && {
  6563. test -z "$ac_cxx_werror_flag" ||
  6564. test ! -s conftest.err
  6565. } && test -s conftest.$ac_objext; then
  6566. ac_lo=$ac_mid; break
  6567. else
  6568. echo "$as_me: failed program was:" >&5
  6569. sed 's/^/| /' conftest.$ac_ext >&5
  6570. ac_hi=`expr '(' $ac_mid ')' - 1`
  6571. if test $ac_mid -le $ac_hi; then
  6572. ac_lo= ac_hi=
  6573. break
  6574. fi
  6575. ac_mid=`expr 2 '*' $ac_mid`
  6576. fi
  6577. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6578. done
  6579. else
  6580. echo "$as_me: failed program was:" >&5
  6581. sed 's/^/| /' conftest.$ac_ext >&5
  6582. ac_lo= ac_hi=
  6583. fi
  6584. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6585. fi
  6586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6587. # Binary search between lo and hi bounds.
  6588. while test "x$ac_lo" != "x$ac_hi"; do
  6589. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6590. cat >conftest.$ac_ext <<_ACEOF
  6591. /* confdefs.h. */
  6592. _ACEOF
  6593. cat confdefs.h >>conftest.$ac_ext
  6594. cat >>conftest.$ac_ext <<_ACEOF
  6595. /* end confdefs.h. */
  6596. $ac_includes_default
  6597. typedef long ac__type_sizeof_;
  6598. int
  6599. main ()
  6600. {
  6601. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6602. test_array [0] = 0
  6603. ;
  6604. return 0;
  6605. }
  6606. _ACEOF
  6607. rm -f conftest.$ac_objext
  6608. if { (ac_try="$ac_compile"
  6609. case "(($ac_try" in
  6610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6611. *) ac_try_echo=$ac_try;;
  6612. esac
  6613. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6614. (eval "$ac_compile") 2>conftest.er1
  6615. ac_status=$?
  6616. grep -v '^ *+' conftest.er1 >conftest.err
  6617. rm -f conftest.er1
  6618. cat conftest.err >&5
  6619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6620. (exit $ac_status); } && {
  6621. test -z "$ac_cxx_werror_flag" ||
  6622. test ! -s conftest.err
  6623. } && test -s conftest.$ac_objext; then
  6624. ac_hi=$ac_mid
  6625. else
  6626. echo "$as_me: failed program was:" >&5
  6627. sed 's/^/| /' conftest.$ac_ext >&5
  6628. ac_lo=`expr '(' $ac_mid ')' + 1`
  6629. fi
  6630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6631. done
  6632. case $ac_lo in
  6633. ?*) ac_cv_sizeof_long=$ac_lo;;
  6634. '') if test "$ac_cv_type_long" = yes; then
  6635. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  6636. See \`config.log' for more details." >&5
  6637. echo "$as_me: error: cannot compute sizeof (long)
  6638. See \`config.log' for more details." >&2;}
  6639. { (exit 77); exit 77; }; }
  6640. else
  6641. ac_cv_sizeof_long=0
  6642. fi ;;
  6643. esac
  6644. else
  6645. cat >conftest.$ac_ext <<_ACEOF
  6646. /* confdefs.h. */
  6647. _ACEOF
  6648. cat confdefs.h >>conftest.$ac_ext
  6649. cat >>conftest.$ac_ext <<_ACEOF
  6650. /* end confdefs.h. */
  6651. $ac_includes_default
  6652. typedef long ac__type_sizeof_;
  6653. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6654. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6655. #include <stdio.h>
  6656. #include <stdlib.h>
  6657. int
  6658. main ()
  6659. {
  6660. FILE *f = fopen ("conftest.val", "w");
  6661. if (! f)
  6662. return 1;
  6663. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  6664. {
  6665. long int i = longval ();
  6666. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  6667. return 1;
  6668. fprintf (f, "%ld\n", i);
  6669. }
  6670. else
  6671. {
  6672. unsigned long int i = ulongval ();
  6673. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  6674. return 1;
  6675. fprintf (f, "%lu\n", i);
  6676. }
  6677. return ferror (f) || fclose (f) != 0;
  6678. ;
  6679. return 0;
  6680. }
  6681. _ACEOF
  6682. rm -f conftest$ac_exeext
  6683. if { (ac_try="$ac_link"
  6684. case "(($ac_try" in
  6685. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6686. *) ac_try_echo=$ac_try;;
  6687. esac
  6688. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6689. (eval "$ac_link") 2>&5
  6690. ac_status=$?
  6691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6692. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6693. { (case "(($ac_try" in
  6694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6695. *) ac_try_echo=$ac_try;;
  6696. esac
  6697. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6698. (eval "$ac_try") 2>&5
  6699. ac_status=$?
  6700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6701. (exit $ac_status); }; }; then
  6702. ac_cv_sizeof_long=`cat conftest.val`
  6703. else
  6704. echo "$as_me: program exited with status $ac_status" >&5
  6705. echo "$as_me: failed program was:" >&5
  6706. sed 's/^/| /' conftest.$ac_ext >&5
  6707. ( exit $ac_status )
  6708. if test "$ac_cv_type_long" = yes; then
  6709. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  6710. See \`config.log' for more details." >&5
  6711. echo "$as_me: error: cannot compute sizeof (long)
  6712. See \`config.log' for more details." >&2;}
  6713. { (exit 77); exit 77; }; }
  6714. else
  6715. ac_cv_sizeof_long=0
  6716. fi
  6717. fi
  6718. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6719. fi
  6720. rm -f conftest.val
  6721. fi
  6722. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  6723. echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
  6724. cat >>confdefs.h <<_ACEOF
  6725. #define SIZEOF_LONG $ac_cv_sizeof_long
  6726. _ACEOF
  6727. { echo "$as_me:$LINENO: checking for long long" >&5
  6728. echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
  6729. if test "${ac_cv_type_long_long+set}" = set; then
  6730. echo $ECHO_N "(cached) $ECHO_C" >&6
  6731. else
  6732. cat >conftest.$ac_ext <<_ACEOF
  6733. /* confdefs.h. */
  6734. _ACEOF
  6735. cat confdefs.h >>conftest.$ac_ext
  6736. cat >>conftest.$ac_ext <<_ACEOF
  6737. /* end confdefs.h. */
  6738. $ac_includes_default
  6739. typedef long long ac__type_new_;
  6740. int
  6741. main ()
  6742. {
  6743. if ((ac__type_new_ *) 0)
  6744. return 0;
  6745. if (sizeof (ac__type_new_))
  6746. return 0;
  6747. ;
  6748. return 0;
  6749. }
  6750. _ACEOF
  6751. rm -f conftest.$ac_objext
  6752. if { (ac_try="$ac_compile"
  6753. case "(($ac_try" in
  6754. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6755. *) ac_try_echo=$ac_try;;
  6756. esac
  6757. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6758. (eval "$ac_compile") 2>conftest.er1
  6759. ac_status=$?
  6760. grep -v '^ *+' conftest.er1 >conftest.err
  6761. rm -f conftest.er1
  6762. cat conftest.err >&5
  6763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6764. (exit $ac_status); } && {
  6765. test -z "$ac_cxx_werror_flag" ||
  6766. test ! -s conftest.err
  6767. } && test -s conftest.$ac_objext; then
  6768. ac_cv_type_long_long=yes
  6769. else
  6770. echo "$as_me: failed program was:" >&5
  6771. sed 's/^/| /' conftest.$ac_ext >&5
  6772. ac_cv_type_long_long=no
  6773. fi
  6774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6775. fi
  6776. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  6777. echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
  6778. # The cast to long int works around a bug in the HP C Compiler
  6779. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6780. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6781. # This bug is HP SR number 8606223364.
  6782. { echo "$as_me:$LINENO: checking size of long long" >&5
  6783. echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
  6784. if test "${ac_cv_sizeof_long_long+set}" = set; then
  6785. echo $ECHO_N "(cached) $ECHO_C" >&6
  6786. else
  6787. if test "$cross_compiling" = yes; then
  6788. # Depending upon the size, compute the lo and hi bounds.
  6789. cat >conftest.$ac_ext <<_ACEOF
  6790. /* confdefs.h. */
  6791. _ACEOF
  6792. cat confdefs.h >>conftest.$ac_ext
  6793. cat >>conftest.$ac_ext <<_ACEOF
  6794. /* end confdefs.h. */
  6795. $ac_includes_default
  6796. typedef long long ac__type_sizeof_;
  6797. int
  6798. main ()
  6799. {
  6800. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  6801. test_array [0] = 0
  6802. ;
  6803. return 0;
  6804. }
  6805. _ACEOF
  6806. rm -f conftest.$ac_objext
  6807. if { (ac_try="$ac_compile"
  6808. case "(($ac_try" in
  6809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6810. *) ac_try_echo=$ac_try;;
  6811. esac
  6812. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6813. (eval "$ac_compile") 2>conftest.er1
  6814. ac_status=$?
  6815. grep -v '^ *+' conftest.er1 >conftest.err
  6816. rm -f conftest.er1
  6817. cat conftest.err >&5
  6818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6819. (exit $ac_status); } && {
  6820. test -z "$ac_cxx_werror_flag" ||
  6821. test ! -s conftest.err
  6822. } && test -s conftest.$ac_objext; then
  6823. ac_lo=0 ac_mid=0
  6824. while :; do
  6825. cat >conftest.$ac_ext <<_ACEOF
  6826. /* confdefs.h. */
  6827. _ACEOF
  6828. cat confdefs.h >>conftest.$ac_ext
  6829. cat >>conftest.$ac_ext <<_ACEOF
  6830. /* end confdefs.h. */
  6831. $ac_includes_default
  6832. typedef long long ac__type_sizeof_;
  6833. int
  6834. main ()
  6835. {
  6836. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6837. test_array [0] = 0
  6838. ;
  6839. return 0;
  6840. }
  6841. _ACEOF
  6842. rm -f conftest.$ac_objext
  6843. if { (ac_try="$ac_compile"
  6844. case "(($ac_try" in
  6845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6846. *) ac_try_echo=$ac_try;;
  6847. esac
  6848. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6849. (eval "$ac_compile") 2>conftest.er1
  6850. ac_status=$?
  6851. grep -v '^ *+' conftest.er1 >conftest.err
  6852. rm -f conftest.er1
  6853. cat conftest.err >&5
  6854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6855. (exit $ac_status); } && {
  6856. test -z "$ac_cxx_werror_flag" ||
  6857. test ! -s conftest.err
  6858. } && test -s conftest.$ac_objext; then
  6859. ac_hi=$ac_mid; break
  6860. else
  6861. echo "$as_me: failed program was:" >&5
  6862. sed 's/^/| /' conftest.$ac_ext >&5
  6863. ac_lo=`expr $ac_mid + 1`
  6864. if test $ac_lo -le $ac_mid; then
  6865. ac_lo= ac_hi=
  6866. break
  6867. fi
  6868. ac_mid=`expr 2 '*' $ac_mid + 1`
  6869. fi
  6870. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6871. done
  6872. else
  6873. echo "$as_me: failed program was:" >&5
  6874. sed 's/^/| /' conftest.$ac_ext >&5
  6875. cat >conftest.$ac_ext <<_ACEOF
  6876. /* confdefs.h. */
  6877. _ACEOF
  6878. cat confdefs.h >>conftest.$ac_ext
  6879. cat >>conftest.$ac_ext <<_ACEOF
  6880. /* end confdefs.h. */
  6881. $ac_includes_default
  6882. typedef long long ac__type_sizeof_;
  6883. int
  6884. main ()
  6885. {
  6886. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  6887. test_array [0] = 0
  6888. ;
  6889. return 0;
  6890. }
  6891. _ACEOF
  6892. rm -f conftest.$ac_objext
  6893. if { (ac_try="$ac_compile"
  6894. case "(($ac_try" in
  6895. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6896. *) ac_try_echo=$ac_try;;
  6897. esac
  6898. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6899. (eval "$ac_compile") 2>conftest.er1
  6900. ac_status=$?
  6901. grep -v '^ *+' conftest.er1 >conftest.err
  6902. rm -f conftest.er1
  6903. cat conftest.err >&5
  6904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6905. (exit $ac_status); } && {
  6906. test -z "$ac_cxx_werror_flag" ||
  6907. test ! -s conftest.err
  6908. } && test -s conftest.$ac_objext; then
  6909. ac_hi=-1 ac_mid=-1
  6910. while :; do
  6911. cat >conftest.$ac_ext <<_ACEOF
  6912. /* confdefs.h. */
  6913. _ACEOF
  6914. cat confdefs.h >>conftest.$ac_ext
  6915. cat >>conftest.$ac_ext <<_ACEOF
  6916. /* end confdefs.h. */
  6917. $ac_includes_default
  6918. typedef long long ac__type_sizeof_;
  6919. int
  6920. main ()
  6921. {
  6922. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  6923. test_array [0] = 0
  6924. ;
  6925. return 0;
  6926. }
  6927. _ACEOF
  6928. rm -f conftest.$ac_objext
  6929. if { (ac_try="$ac_compile"
  6930. case "(($ac_try" in
  6931. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6932. *) ac_try_echo=$ac_try;;
  6933. esac
  6934. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6935. (eval "$ac_compile") 2>conftest.er1
  6936. ac_status=$?
  6937. grep -v '^ *+' conftest.er1 >conftest.err
  6938. rm -f conftest.er1
  6939. cat conftest.err >&5
  6940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6941. (exit $ac_status); } && {
  6942. test -z "$ac_cxx_werror_flag" ||
  6943. test ! -s conftest.err
  6944. } && test -s conftest.$ac_objext; then
  6945. ac_lo=$ac_mid; break
  6946. else
  6947. echo "$as_me: failed program was:" >&5
  6948. sed 's/^/| /' conftest.$ac_ext >&5
  6949. ac_hi=`expr '(' $ac_mid ')' - 1`
  6950. if test $ac_mid -le $ac_hi; then
  6951. ac_lo= ac_hi=
  6952. break
  6953. fi
  6954. ac_mid=`expr 2 '*' $ac_mid`
  6955. fi
  6956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6957. done
  6958. else
  6959. echo "$as_me: failed program was:" >&5
  6960. sed 's/^/| /' conftest.$ac_ext >&5
  6961. ac_lo= ac_hi=
  6962. fi
  6963. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6964. fi
  6965. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6966. # Binary search between lo and hi bounds.
  6967. while test "x$ac_lo" != "x$ac_hi"; do
  6968. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6969. cat >conftest.$ac_ext <<_ACEOF
  6970. /* confdefs.h. */
  6971. _ACEOF
  6972. cat confdefs.h >>conftest.$ac_ext
  6973. cat >>conftest.$ac_ext <<_ACEOF
  6974. /* end confdefs.h. */
  6975. $ac_includes_default
  6976. typedef long long ac__type_sizeof_;
  6977. int
  6978. main ()
  6979. {
  6980. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6981. test_array [0] = 0
  6982. ;
  6983. return 0;
  6984. }
  6985. _ACEOF
  6986. rm -f conftest.$ac_objext
  6987. if { (ac_try="$ac_compile"
  6988. case "(($ac_try" in
  6989. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6990. *) ac_try_echo=$ac_try;;
  6991. esac
  6992. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6993. (eval "$ac_compile") 2>conftest.er1
  6994. ac_status=$?
  6995. grep -v '^ *+' conftest.er1 >conftest.err
  6996. rm -f conftest.er1
  6997. cat conftest.err >&5
  6998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6999. (exit $ac_status); } && {
  7000. test -z "$ac_cxx_werror_flag" ||
  7001. test ! -s conftest.err
  7002. } && test -s conftest.$ac_objext; then
  7003. ac_hi=$ac_mid
  7004. else
  7005. echo "$as_me: failed program was:" >&5
  7006. sed 's/^/| /' conftest.$ac_ext >&5
  7007. ac_lo=`expr '(' $ac_mid ')' + 1`
  7008. fi
  7009. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7010. done
  7011. case $ac_lo in
  7012. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  7013. '') if test "$ac_cv_type_long_long" = yes; then
  7014. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  7015. See \`config.log' for more details." >&5
  7016. echo "$as_me: error: cannot compute sizeof (long long)
  7017. See \`config.log' for more details." >&2;}
  7018. { (exit 77); exit 77; }; }
  7019. else
  7020. ac_cv_sizeof_long_long=0
  7021. fi ;;
  7022. esac
  7023. else
  7024. cat >conftest.$ac_ext <<_ACEOF
  7025. /* confdefs.h. */
  7026. _ACEOF
  7027. cat confdefs.h >>conftest.$ac_ext
  7028. cat >>conftest.$ac_ext <<_ACEOF
  7029. /* end confdefs.h. */
  7030. $ac_includes_default
  7031. typedef long long ac__type_sizeof_;
  7032. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  7033. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  7034. #include <stdio.h>
  7035. #include <stdlib.h>
  7036. int
  7037. main ()
  7038. {
  7039. FILE *f = fopen ("conftest.val", "w");
  7040. if (! f)
  7041. return 1;
  7042. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  7043. {
  7044. long int i = longval ();
  7045. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  7046. return 1;
  7047. fprintf (f, "%ld\n", i);
  7048. }
  7049. else
  7050. {
  7051. unsigned long int i = ulongval ();
  7052. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  7053. return 1;
  7054. fprintf (f, "%lu\n", i);
  7055. }
  7056. return ferror (f) || fclose (f) != 0;
  7057. ;
  7058. return 0;
  7059. }
  7060. _ACEOF
  7061. rm -f conftest$ac_exeext
  7062. if { (ac_try="$ac_link"
  7063. case "(($ac_try" in
  7064. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7065. *) ac_try_echo=$ac_try;;
  7066. esac
  7067. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7068. (eval "$ac_link") 2>&5
  7069. ac_status=$?
  7070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7071. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7072. { (case "(($ac_try" in
  7073. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7074. *) ac_try_echo=$ac_try;;
  7075. esac
  7076. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7077. (eval "$ac_try") 2>&5
  7078. ac_status=$?
  7079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7080. (exit $ac_status); }; }; then
  7081. ac_cv_sizeof_long_long=`cat conftest.val`
  7082. else
  7083. echo "$as_me: program exited with status $ac_status" >&5
  7084. echo "$as_me: failed program was:" >&5
  7085. sed 's/^/| /' conftest.$ac_ext >&5
  7086. ( exit $ac_status )
  7087. if test "$ac_cv_type_long_long" = yes; then
  7088. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  7089. See \`config.log' for more details." >&5
  7090. echo "$as_me: error: cannot compute sizeof (long long)
  7091. See \`config.log' for more details." >&2;}
  7092. { (exit 77); exit 77; }; }
  7093. else
  7094. ac_cv_sizeof_long_long=0
  7095. fi
  7096. fi
  7097. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7098. fi
  7099. rm -f conftest.val
  7100. fi
  7101. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  7102. echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
  7103. cat >>confdefs.h <<_ACEOF
  7104. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  7105. _ACEOF
  7106. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7107. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  7108. if test "${ac_cv_struct_tm+set}" = set; then
  7109. echo $ECHO_N "(cached) $ECHO_C" >&6
  7110. else
  7111. cat >conftest.$ac_ext <<_ACEOF
  7112. /* confdefs.h. */
  7113. _ACEOF
  7114. cat confdefs.h >>conftest.$ac_ext
  7115. cat >>conftest.$ac_ext <<_ACEOF
  7116. /* end confdefs.h. */
  7117. #include <sys/types.h>
  7118. #include <time.h>
  7119. int
  7120. main ()
  7121. {
  7122. struct tm tm;
  7123. int *p = &tm.tm_sec;
  7124. return !p;
  7125. ;
  7126. return 0;
  7127. }
  7128. _ACEOF
  7129. rm -f conftest.$ac_objext
  7130. if { (ac_try="$ac_compile"
  7131. case "(($ac_try" in
  7132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7133. *) ac_try_echo=$ac_try;;
  7134. esac
  7135. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7136. (eval "$ac_compile") 2>conftest.er1
  7137. ac_status=$?
  7138. grep -v '^ *+' conftest.er1 >conftest.err
  7139. rm -f conftest.er1
  7140. cat conftest.err >&5
  7141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7142. (exit $ac_status); } && {
  7143. test -z "$ac_cxx_werror_flag" ||
  7144. test ! -s conftest.err
  7145. } && test -s conftest.$ac_objext; then
  7146. ac_cv_struct_tm=time.h
  7147. else
  7148. echo "$as_me: failed program was:" >&5
  7149. sed 's/^/| /' conftest.$ac_ext >&5
  7150. ac_cv_struct_tm=sys/time.h
  7151. fi
  7152. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7153. fi
  7154. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7155. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  7156. if test $ac_cv_struct_tm = sys/time.h; then
  7157. cat >>confdefs.h <<\_ACEOF
  7158. #define TM_IN_SYS_TIME 1
  7159. _ACEOF
  7160. fi
  7161. { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  7162. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
  7163. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  7164. echo $ECHO_N "(cached) $ECHO_C" >&6
  7165. else
  7166. cat >conftest.$ac_ext <<_ACEOF
  7167. /* confdefs.h. */
  7168. _ACEOF
  7169. cat confdefs.h >>conftest.$ac_ext
  7170. cat >>conftest.$ac_ext <<_ACEOF
  7171. /* end confdefs.h. */
  7172. #include <sys/types.h>
  7173. #include <$ac_cv_struct_tm>
  7174. int
  7175. main ()
  7176. {
  7177. static struct tm ac_aggr;
  7178. if (ac_aggr.tm_zone)
  7179. return 0;
  7180. ;
  7181. return 0;
  7182. }
  7183. _ACEOF
  7184. rm -f conftest.$ac_objext
  7185. if { (ac_try="$ac_compile"
  7186. case "(($ac_try" in
  7187. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7188. *) ac_try_echo=$ac_try;;
  7189. esac
  7190. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7191. (eval "$ac_compile") 2>conftest.er1
  7192. ac_status=$?
  7193. grep -v '^ *+' conftest.er1 >conftest.err
  7194. rm -f conftest.er1
  7195. cat conftest.err >&5
  7196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7197. (exit $ac_status); } && {
  7198. test -z "$ac_cxx_werror_flag" ||
  7199. test ! -s conftest.err
  7200. } && test -s conftest.$ac_objext; then
  7201. ac_cv_member_struct_tm_tm_zone=yes
  7202. else
  7203. echo "$as_me: failed program was:" >&5
  7204. sed 's/^/| /' conftest.$ac_ext >&5
  7205. cat >conftest.$ac_ext <<_ACEOF
  7206. /* confdefs.h. */
  7207. _ACEOF
  7208. cat confdefs.h >>conftest.$ac_ext
  7209. cat >>conftest.$ac_ext <<_ACEOF
  7210. /* end confdefs.h. */
  7211. #include <sys/types.h>
  7212. #include <$ac_cv_struct_tm>
  7213. int
  7214. main ()
  7215. {
  7216. static struct tm ac_aggr;
  7217. if (sizeof ac_aggr.tm_zone)
  7218. return 0;
  7219. ;
  7220. return 0;
  7221. }
  7222. _ACEOF
  7223. rm -f conftest.$ac_objext
  7224. if { (ac_try="$ac_compile"
  7225. case "(($ac_try" in
  7226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7227. *) ac_try_echo=$ac_try;;
  7228. esac
  7229. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7230. (eval "$ac_compile") 2>conftest.er1
  7231. ac_status=$?
  7232. grep -v '^ *+' conftest.er1 >conftest.err
  7233. rm -f conftest.er1
  7234. cat conftest.err >&5
  7235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7236. (exit $ac_status); } && {
  7237. test -z "$ac_cxx_werror_flag" ||
  7238. test ! -s conftest.err
  7239. } && test -s conftest.$ac_objext; then
  7240. ac_cv_member_struct_tm_tm_zone=yes
  7241. else
  7242. echo "$as_me: failed program was:" >&5
  7243. sed 's/^/| /' conftest.$ac_ext >&5
  7244. ac_cv_member_struct_tm_tm_zone=no
  7245. fi
  7246. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7247. fi
  7248. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7249. fi
  7250. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  7251. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
  7252. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  7253. cat >>confdefs.h <<_ACEOF
  7254. #define HAVE_STRUCT_TM_TM_ZONE 1
  7255. _ACEOF
  7256. fi
  7257. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  7258. cat >>confdefs.h <<\_ACEOF
  7259. #define HAVE_TM_ZONE 1
  7260. _ACEOF
  7261. else
  7262. { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
  7263. echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
  7264. if test "${ac_cv_have_decl_tzname+set}" = set; then
  7265. echo $ECHO_N "(cached) $ECHO_C" >&6
  7266. else
  7267. cat >conftest.$ac_ext <<_ACEOF
  7268. /* confdefs.h. */
  7269. _ACEOF
  7270. cat confdefs.h >>conftest.$ac_ext
  7271. cat >>conftest.$ac_ext <<_ACEOF
  7272. /* end confdefs.h. */
  7273. #include <time.h>
  7274. int
  7275. main ()
  7276. {
  7277. #ifndef tzname
  7278. (void) tzname;
  7279. #endif
  7280. ;
  7281. return 0;
  7282. }
  7283. _ACEOF
  7284. rm -f conftest.$ac_objext
  7285. if { (ac_try="$ac_compile"
  7286. case "(($ac_try" in
  7287. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7288. *) ac_try_echo=$ac_try;;
  7289. esac
  7290. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7291. (eval "$ac_compile") 2>conftest.er1
  7292. ac_status=$?
  7293. grep -v '^ *+' conftest.er1 >conftest.err
  7294. rm -f conftest.er1
  7295. cat conftest.err >&5
  7296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7297. (exit $ac_status); } && {
  7298. test -z "$ac_cxx_werror_flag" ||
  7299. test ! -s conftest.err
  7300. } && test -s conftest.$ac_objext; then
  7301. ac_cv_have_decl_tzname=yes
  7302. else
  7303. echo "$as_me: failed program was:" >&5
  7304. sed 's/^/| /' conftest.$ac_ext >&5
  7305. ac_cv_have_decl_tzname=no
  7306. fi
  7307. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7308. fi
  7309. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
  7310. echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
  7311. if test $ac_cv_have_decl_tzname = yes; then
  7312. cat >>confdefs.h <<_ACEOF
  7313. #define HAVE_DECL_TZNAME 1
  7314. _ACEOF
  7315. else
  7316. cat >>confdefs.h <<_ACEOF
  7317. #define HAVE_DECL_TZNAME 0
  7318. _ACEOF
  7319. fi
  7320. { echo "$as_me:$LINENO: checking for tzname" >&5
  7321. echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
  7322. if test "${ac_cv_var_tzname+set}" = set; then
  7323. echo $ECHO_N "(cached) $ECHO_C" >&6
  7324. else
  7325. cat >conftest.$ac_ext <<_ACEOF
  7326. /* confdefs.h. */
  7327. _ACEOF
  7328. cat confdefs.h >>conftest.$ac_ext
  7329. cat >>conftest.$ac_ext <<_ACEOF
  7330. /* end confdefs.h. */
  7331. #include <time.h>
  7332. #if !HAVE_DECL_TZNAME
  7333. extern char *tzname[];
  7334. #endif
  7335. int
  7336. main ()
  7337. {
  7338. return tzname[0][0];
  7339. ;
  7340. return 0;
  7341. }
  7342. _ACEOF
  7343. rm -f conftest.$ac_objext conftest$ac_exeext
  7344. if { (ac_try="$ac_link"
  7345. case "(($ac_try" in
  7346. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7347. *) ac_try_echo=$ac_try;;
  7348. esac
  7349. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7350. (eval "$ac_link") 2>conftest.er1
  7351. ac_status=$?
  7352. grep -v '^ *+' conftest.er1 >conftest.err
  7353. rm -f conftest.er1
  7354. cat conftest.err >&5
  7355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7356. (exit $ac_status); } && {
  7357. test -z "$ac_cxx_werror_flag" ||
  7358. test ! -s conftest.err
  7359. } && test -s conftest$ac_exeext &&
  7360. $as_test_x conftest$ac_exeext; then
  7361. ac_cv_var_tzname=yes
  7362. else
  7363. echo "$as_me: failed program was:" >&5
  7364. sed 's/^/| /' conftest.$ac_ext >&5
  7365. ac_cv_var_tzname=no
  7366. fi
  7367. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7368. conftest$ac_exeext conftest.$ac_ext
  7369. fi
  7370. { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  7371. echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
  7372. if test $ac_cv_var_tzname = yes; then
  7373. cat >>confdefs.h <<\_ACEOF
  7374. #define HAVE_TZNAME 1
  7375. _ACEOF
  7376. fi
  7377. fi
  7378. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7379. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  7380. if test "${ac_cv_struct_tm+set}" = set; then
  7381. echo $ECHO_N "(cached) $ECHO_C" >&6
  7382. else
  7383. cat >conftest.$ac_ext <<_ACEOF
  7384. /* confdefs.h. */
  7385. _ACEOF
  7386. cat confdefs.h >>conftest.$ac_ext
  7387. cat >>conftest.$ac_ext <<_ACEOF
  7388. /* end confdefs.h. */
  7389. #include <sys/types.h>
  7390. #include <time.h>
  7391. int
  7392. main ()
  7393. {
  7394. struct tm tm;
  7395. int *p = &tm.tm_sec;
  7396. return !p;
  7397. ;
  7398. return 0;
  7399. }
  7400. _ACEOF
  7401. rm -f conftest.$ac_objext
  7402. if { (ac_try="$ac_compile"
  7403. case "(($ac_try" in
  7404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7405. *) ac_try_echo=$ac_try;;
  7406. esac
  7407. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7408. (eval "$ac_compile") 2>conftest.er1
  7409. ac_status=$?
  7410. grep -v '^ *+' conftest.er1 >conftest.err
  7411. rm -f conftest.er1
  7412. cat conftest.err >&5
  7413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7414. (exit $ac_status); } && {
  7415. test -z "$ac_cxx_werror_flag" ||
  7416. test ! -s conftest.err
  7417. } && test -s conftest.$ac_objext; then
  7418. ac_cv_struct_tm=time.h
  7419. else
  7420. echo "$as_me: failed program was:" >&5
  7421. sed 's/^/| /' conftest.$ac_ext >&5
  7422. ac_cv_struct_tm=sys/time.h
  7423. fi
  7424. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7425. fi
  7426. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7427. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  7428. if test $ac_cv_struct_tm = sys/time.h; then
  7429. cat >>confdefs.h <<\_ACEOF
  7430. #define TM_IN_SYS_TIME 1
  7431. _ACEOF
  7432. fi
  7433. #checkpoint
  7434. cat >confcache <<\_ACEOF
  7435. # This file is a shell script that caches the results of configure
  7436. # tests run on this system so they can be shared between configure
  7437. # scripts and configure runs, see configure's option --config-cache.
  7438. # It is not useful on other systems. If it contains results you don't
  7439. # want to keep, you may remove or edit it.
  7440. #
  7441. # config.status only pays attention to the cache file if you give it
  7442. # the --recheck option to rerun configure.
  7443. #
  7444. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7445. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7446. # following values.
  7447. _ACEOF
  7448. # The following way of writing the cache mishandles newlines in values,
  7449. # but we know of no workaround that is simple, portable, and efficient.
  7450. # So, we kill variables containing newlines.
  7451. # Ultrix sh set writes to stderr and can't be redirected directly,
  7452. # and sets the high bit in the cache file unless we assign to the vars.
  7453. (
  7454. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7455. eval ac_val=\$$ac_var
  7456. case $ac_val in #(
  7457. *${as_nl}*)
  7458. case $ac_var in #(
  7459. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  7460. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  7461. esac
  7462. case $ac_var in #(
  7463. _ | IFS | as_nl) ;; #(
  7464. *) $as_unset $ac_var ;;
  7465. esac ;;
  7466. esac
  7467. done
  7468. (set) 2>&1 |
  7469. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7470. *${as_nl}ac_space=\ *)
  7471. # `set' does not quote correctly, so add quotes (double-quote
  7472. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7473. sed -n \
  7474. "s/'/'\\\\''/g;
  7475. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7476. ;; #(
  7477. *)
  7478. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7479. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7480. ;;
  7481. esac |
  7482. sort
  7483. ) |
  7484. sed '
  7485. /^ac_cv_env_/b end
  7486. t clear
  7487. :clear
  7488. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7489. t end
  7490. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7491. :end' >>confcache
  7492. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7493. if test -w "$cache_file"; then
  7494. test "x$cache_file" != "x/dev/null" &&
  7495. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  7496. echo "$as_me: updating cache $cache_file" >&6;}
  7497. cat confcache >$cache_file
  7498. else
  7499. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  7500. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7501. fi
  7502. fi
  7503. rm -f confcache
  7504. # Checks for library functions
  7505. for ac_header in vfork.h
  7506. do
  7507. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7508. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7509. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7510. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7511. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7512. echo $ECHO_N "(cached) $ECHO_C" >&6
  7513. fi
  7514. ac_res=`eval echo '${'$as_ac_Header'}'`
  7515. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7516. echo "${ECHO_T}$ac_res" >&6; }
  7517. else
  7518. # Is the header compilable?
  7519. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7520. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7521. cat >conftest.$ac_ext <<_ACEOF
  7522. /* confdefs.h. */
  7523. _ACEOF
  7524. cat confdefs.h >>conftest.$ac_ext
  7525. cat >>conftest.$ac_ext <<_ACEOF
  7526. /* end confdefs.h. */
  7527. $ac_includes_default
  7528. #include <$ac_header>
  7529. _ACEOF
  7530. rm -f conftest.$ac_objext
  7531. if { (ac_try="$ac_compile"
  7532. case "(($ac_try" in
  7533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7534. *) ac_try_echo=$ac_try;;
  7535. esac
  7536. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7537. (eval "$ac_compile") 2>conftest.er1
  7538. ac_status=$?
  7539. grep -v '^ *+' conftest.er1 >conftest.err
  7540. rm -f conftest.er1
  7541. cat conftest.err >&5
  7542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7543. (exit $ac_status); } && {
  7544. test -z "$ac_cxx_werror_flag" ||
  7545. test ! -s conftest.err
  7546. } && test -s conftest.$ac_objext; then
  7547. ac_header_compiler=yes
  7548. else
  7549. echo "$as_me: failed program was:" >&5
  7550. sed 's/^/| /' conftest.$ac_ext >&5
  7551. ac_header_compiler=no
  7552. fi
  7553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7554. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7555. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7556. # Is the header present?
  7557. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7558. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7559. cat >conftest.$ac_ext <<_ACEOF
  7560. /* confdefs.h. */
  7561. _ACEOF
  7562. cat confdefs.h >>conftest.$ac_ext
  7563. cat >>conftest.$ac_ext <<_ACEOF
  7564. /* end confdefs.h. */
  7565. #include <$ac_header>
  7566. _ACEOF
  7567. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7568. case "(($ac_try" in
  7569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7570. *) ac_try_echo=$ac_try;;
  7571. esac
  7572. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7573. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7574. ac_status=$?
  7575. grep -v '^ *+' conftest.er1 >conftest.err
  7576. rm -f conftest.er1
  7577. cat conftest.err >&5
  7578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7579. (exit $ac_status); } >/dev/null && {
  7580. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7581. test ! -s conftest.err
  7582. }; then
  7583. ac_header_preproc=yes
  7584. else
  7585. echo "$as_me: failed program was:" >&5
  7586. sed 's/^/| /' conftest.$ac_ext >&5
  7587. ac_header_preproc=no
  7588. fi
  7589. rm -f conftest.err conftest.$ac_ext
  7590. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7591. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7592. # So? What about this header?
  7593. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7594. yes:no: )
  7595. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7596. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7597. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7598. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7599. ac_header_preproc=yes
  7600. ;;
  7601. no:yes:* )
  7602. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7603. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7604. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7605. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7606. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7607. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7608. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7609. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7610. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7611. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7612. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7613. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7614. ;;
  7615. esac
  7616. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7617. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7618. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7619. echo $ECHO_N "(cached) $ECHO_C" >&6
  7620. else
  7621. eval "$as_ac_Header=\$ac_header_preproc"
  7622. fi
  7623. ac_res=`eval echo '${'$as_ac_Header'}'`
  7624. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7625. echo "${ECHO_T}$ac_res" >&6; }
  7626. fi
  7627. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7628. cat >>confdefs.h <<_ACEOF
  7629. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7630. _ACEOF
  7631. fi
  7632. done
  7633. for ac_func in fork vfork
  7634. do
  7635. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7636. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7637. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7638. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7639. echo $ECHO_N "(cached) $ECHO_C" >&6
  7640. else
  7641. cat >conftest.$ac_ext <<_ACEOF
  7642. /* confdefs.h. */
  7643. _ACEOF
  7644. cat confdefs.h >>conftest.$ac_ext
  7645. cat >>conftest.$ac_ext <<_ACEOF
  7646. /* end confdefs.h. */
  7647. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7648. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7649. #define $ac_func innocuous_$ac_func
  7650. /* System header to define __stub macros and hopefully few prototypes,
  7651. which can conflict with char $ac_func (); below.
  7652. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7653. <limits.h> exists even on freestanding compilers. */
  7654. #ifdef __STDC__
  7655. # include <limits.h>
  7656. #else
  7657. # include <assert.h>
  7658. #endif
  7659. #undef $ac_func
  7660. /* Override any GCC internal prototype to avoid an error.
  7661. Use char because int might match the return type of a GCC
  7662. builtin and then its argument prototype would still apply. */
  7663. #ifdef __cplusplus
  7664. extern "C"
  7665. #endif
  7666. char $ac_func ();
  7667. /* The GNU C library defines this for functions which it implements
  7668. to always fail with ENOSYS. Some functions are actually named
  7669. something starting with __ and the normal name is an alias. */
  7670. #if defined __stub_$ac_func || defined __stub___$ac_func
  7671. choke me
  7672. #endif
  7673. int
  7674. main ()
  7675. {
  7676. return $ac_func ();
  7677. ;
  7678. return 0;
  7679. }
  7680. _ACEOF
  7681. rm -f conftest.$ac_objext conftest$ac_exeext
  7682. if { (ac_try="$ac_link"
  7683. case "(($ac_try" in
  7684. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7685. *) ac_try_echo=$ac_try;;
  7686. esac
  7687. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7688. (eval "$ac_link") 2>conftest.er1
  7689. ac_status=$?
  7690. grep -v '^ *+' conftest.er1 >conftest.err
  7691. rm -f conftest.er1
  7692. cat conftest.err >&5
  7693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7694. (exit $ac_status); } && {
  7695. test -z "$ac_cxx_werror_flag" ||
  7696. test ! -s conftest.err
  7697. } && test -s conftest$ac_exeext &&
  7698. $as_test_x conftest$ac_exeext; then
  7699. eval "$as_ac_var=yes"
  7700. else
  7701. echo "$as_me: failed program was:" >&5
  7702. sed 's/^/| /' conftest.$ac_ext >&5
  7703. eval "$as_ac_var=no"
  7704. fi
  7705. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7706. conftest$ac_exeext conftest.$ac_ext
  7707. fi
  7708. ac_res=`eval echo '${'$as_ac_var'}'`
  7709. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7710. echo "${ECHO_T}$ac_res" >&6; }
  7711. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7712. cat >>confdefs.h <<_ACEOF
  7713. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7714. _ACEOF
  7715. fi
  7716. done
  7717. if test "x$ac_cv_func_fork" = xyes; then
  7718. { echo "$as_me:$LINENO: checking for working fork" >&5
  7719. echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
  7720. if test "${ac_cv_func_fork_works+set}" = set; then
  7721. echo $ECHO_N "(cached) $ECHO_C" >&6
  7722. else
  7723. if test "$cross_compiling" = yes; then
  7724. ac_cv_func_fork_works=cross
  7725. else
  7726. cat >conftest.$ac_ext <<_ACEOF
  7727. /* confdefs.h. */
  7728. _ACEOF
  7729. cat confdefs.h >>conftest.$ac_ext
  7730. cat >>conftest.$ac_ext <<_ACEOF
  7731. /* end confdefs.h. */
  7732. $ac_includes_default
  7733. int
  7734. main ()
  7735. {
  7736. /* By Ruediger Kuhlmann. */
  7737. return fork () < 0;
  7738. ;
  7739. return 0;
  7740. }
  7741. _ACEOF
  7742. rm -f conftest$ac_exeext
  7743. if { (ac_try="$ac_link"
  7744. case "(($ac_try" in
  7745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7746. *) ac_try_echo=$ac_try;;
  7747. esac
  7748. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7749. (eval "$ac_link") 2>&5
  7750. ac_status=$?
  7751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7752. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7753. { (case "(($ac_try" in
  7754. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7755. *) ac_try_echo=$ac_try;;
  7756. esac
  7757. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7758. (eval "$ac_try") 2>&5
  7759. ac_status=$?
  7760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7761. (exit $ac_status); }; }; then
  7762. ac_cv_func_fork_works=yes
  7763. else
  7764. echo "$as_me: program exited with status $ac_status" >&5
  7765. echo "$as_me: failed program was:" >&5
  7766. sed 's/^/| /' conftest.$ac_ext >&5
  7767. ( exit $ac_status )
  7768. ac_cv_func_fork_works=no
  7769. fi
  7770. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7771. fi
  7772. fi
  7773. { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  7774. echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
  7775. else
  7776. ac_cv_func_fork_works=$ac_cv_func_fork
  7777. fi
  7778. if test "x$ac_cv_func_fork_works" = xcross; then
  7779. case $host in
  7780. *-*-amigaos* | *-*-msdosdjgpp*)
  7781. # Override, as these systems have only a dummy fork() stub
  7782. ac_cv_func_fork_works=no
  7783. ;;
  7784. *)
  7785. ac_cv_func_fork_works=yes
  7786. ;;
  7787. esac
  7788. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  7789. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  7790. fi
  7791. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7792. if test "x$ac_cv_func_vfork" = xyes; then
  7793. { echo "$as_me:$LINENO: checking for working vfork" >&5
  7794. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
  7795. if test "${ac_cv_func_vfork_works+set}" = set; then
  7796. echo $ECHO_N "(cached) $ECHO_C" >&6
  7797. else
  7798. if test "$cross_compiling" = yes; then
  7799. ac_cv_func_vfork_works=cross
  7800. else
  7801. cat >conftest.$ac_ext <<_ACEOF
  7802. /* confdefs.h. */
  7803. _ACEOF
  7804. cat confdefs.h >>conftest.$ac_ext
  7805. cat >>conftest.$ac_ext <<_ACEOF
  7806. /* end confdefs.h. */
  7807. /* Thanks to Paul Eggert for this test. */
  7808. $ac_includes_default
  7809. #include <sys/wait.h>
  7810. #ifdef HAVE_VFORK_H
  7811. # include <vfork.h>
  7812. #endif
  7813. /* On some sparc systems, changes by the child to local and incoming
  7814. argument registers are propagated back to the parent. The compiler
  7815. is told about this with #include <vfork.h>, but some compilers
  7816. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  7817. static variable whose address is put into a register that is
  7818. clobbered by the vfork. */
  7819. static void
  7820. #ifdef __cplusplus
  7821. sparc_address_test (int arg)
  7822. # else
  7823. sparc_address_test (arg) int arg;
  7824. #endif
  7825. {
  7826. static pid_t child;
  7827. if (!child) {
  7828. child = vfork ();
  7829. if (child < 0) {
  7830. perror ("vfork");
  7831. _exit(2);
  7832. }
  7833. if (!child) {
  7834. arg = getpid();
  7835. write(-1, "", 0);
  7836. _exit (arg);
  7837. }
  7838. }
  7839. }
  7840. int
  7841. main ()
  7842. {
  7843. pid_t parent = getpid ();
  7844. pid_t child;
  7845. sparc_address_test (0);
  7846. child = vfork ();
  7847. if (child == 0) {
  7848. /* Here is another test for sparc vfork register problems. This
  7849. test uses lots of local variables, at least as many local
  7850. variables as main has allocated so far including compiler
  7851. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  7852. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  7853. reuse the register of parent for one of the local variables,
  7854. since it will think that parent can't possibly be used any more
  7855. in this routine. Assigning to the local variable will thus
  7856. munge parent in the parent process. */
  7857. pid_t
  7858. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  7859. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  7860. /* Convince the compiler that p..p7 are live; otherwise, it might
  7861. use the same hardware register for all 8 local variables. */
  7862. if (p != p1 || p != p2 || p != p3 || p != p4
  7863. || p != p5 || p != p6 || p != p7)
  7864. _exit(1);
  7865. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  7866. from child file descriptors. If the child closes a descriptor
  7867. before it execs or exits, this munges the parent's descriptor
  7868. as well. Test for this by closing stdout in the child. */
  7869. _exit(close(fileno(stdout)) != 0);
  7870. } else {
  7871. int status;
  7872. struct stat st;
  7873. while (wait(&status) != child)
  7874. ;
  7875. return (
  7876. /* Was there some problem with vforking? */
  7877. child < 0
  7878. /* Did the child fail? (This shouldn't happen.) */
  7879. || status
  7880. /* Did the vfork/compiler bug occur? */
  7881. || parent != getpid()
  7882. /* Did the file descriptor bug occur? */
  7883. || fstat(fileno(stdout), &st) != 0
  7884. );
  7885. }
  7886. }
  7887. _ACEOF
  7888. rm -f conftest$ac_exeext
  7889. if { (ac_try="$ac_link"
  7890. case "(($ac_try" in
  7891. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7892. *) ac_try_echo=$ac_try;;
  7893. esac
  7894. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7895. (eval "$ac_link") 2>&5
  7896. ac_status=$?
  7897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7898. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7899. { (case "(($ac_try" in
  7900. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7901. *) ac_try_echo=$ac_try;;
  7902. esac
  7903. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7904. (eval "$ac_try") 2>&5
  7905. ac_status=$?
  7906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7907. (exit $ac_status); }; }; then
  7908. ac_cv_func_vfork_works=yes
  7909. else
  7910. echo "$as_me: program exited with status $ac_status" >&5
  7911. echo "$as_me: failed program was:" >&5
  7912. sed 's/^/| /' conftest.$ac_ext >&5
  7913. ( exit $ac_status )
  7914. ac_cv_func_vfork_works=no
  7915. fi
  7916. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7917. fi
  7918. fi
  7919. { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  7920. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
  7921. fi;
  7922. if test "x$ac_cv_func_fork_works" = xcross; then
  7923. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7924. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  7925. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  7926. fi
  7927. if test "x$ac_cv_func_vfork_works" = xyes; then
  7928. cat >>confdefs.h <<\_ACEOF
  7929. #define HAVE_WORKING_VFORK 1
  7930. _ACEOF
  7931. else
  7932. cat >>confdefs.h <<\_ACEOF
  7933. #define vfork fork
  7934. _ACEOF
  7935. fi
  7936. if test "x$ac_cv_func_fork_works" = xyes; then
  7937. cat >>confdefs.h <<\_ACEOF
  7938. #define HAVE_WORKING_FORK 1
  7939. _ACEOF
  7940. fi
  7941. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  7942. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  7943. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  7944. echo $ECHO_N "(cached) $ECHO_C" >&6
  7945. else
  7946. rm -f conftest.sym conftest.file
  7947. echo >conftest.file
  7948. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  7949. if test "$cross_compiling" = yes; then
  7950. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7951. else
  7952. cat >conftest.$ac_ext <<_ACEOF
  7953. /* confdefs.h. */
  7954. _ACEOF
  7955. cat confdefs.h >>conftest.$ac_ext
  7956. cat >>conftest.$ac_ext <<_ACEOF
  7957. /* end confdefs.h. */
  7958. $ac_includes_default
  7959. int
  7960. main ()
  7961. {
  7962. struct stat sbuf;
  7963. /* Linux will dereference the symlink and fail.
  7964. That is better in the sense that it means we will not
  7965. have to compile and use the lstat wrapper. */
  7966. return lstat ("conftest.sym/", &sbuf) == 0;
  7967. ;
  7968. return 0;
  7969. }
  7970. _ACEOF
  7971. rm -f conftest$ac_exeext
  7972. if { (ac_try="$ac_link"
  7973. case "(($ac_try" in
  7974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7975. *) ac_try_echo=$ac_try;;
  7976. esac
  7977. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7978. (eval "$ac_link") 2>&5
  7979. ac_status=$?
  7980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7981. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7982. { (case "(($ac_try" in
  7983. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7984. *) ac_try_echo=$ac_try;;
  7985. esac
  7986. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7987. (eval "$ac_try") 2>&5
  7988. ac_status=$?
  7989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7990. (exit $ac_status); }; }; then
  7991. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  7992. else
  7993. echo "$as_me: program exited with status $ac_status" >&5
  7994. echo "$as_me: failed program was:" >&5
  7995. sed 's/^/| /' conftest.$ac_ext >&5
  7996. ( exit $ac_status )
  7997. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7998. fi
  7999. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8000. fi
  8001. else
  8002. # If the `ln -s' command failed, then we probably don't even
  8003. # have an lstat function.
  8004. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8005. fi
  8006. rm -f conftest.sym conftest.file
  8007. fi
  8008. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8009. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  8010. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8011. cat >>confdefs.h <<_ACEOF
  8012. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8013. _ACEOF
  8014. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8015. case " $LIBOBJS " in
  8016. *" lstat.$ac_objext "* ) ;;
  8017. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  8018. ;;
  8019. esac
  8020. fi
  8021. { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8022. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
  8023. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8024. echo $ECHO_N "(cached) $ECHO_C" >&6
  8025. else
  8026. if test "$cross_compiling" = yes; then
  8027. ac_cv_func_lstat_empty_string_bug=yes
  8028. else
  8029. cat >conftest.$ac_ext <<_ACEOF
  8030. /* confdefs.h. */
  8031. _ACEOF
  8032. cat confdefs.h >>conftest.$ac_ext
  8033. cat >>conftest.$ac_ext <<_ACEOF
  8034. /* end confdefs.h. */
  8035. $ac_includes_default
  8036. int
  8037. main ()
  8038. {
  8039. struct stat sbuf;
  8040. return lstat ("", &sbuf) == 0;
  8041. ;
  8042. return 0;
  8043. }
  8044. _ACEOF
  8045. rm -f conftest$ac_exeext
  8046. if { (ac_try="$ac_link"
  8047. case "(($ac_try" in
  8048. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8049. *) ac_try_echo=$ac_try;;
  8050. esac
  8051. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8052. (eval "$ac_link") 2>&5
  8053. ac_status=$?
  8054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8055. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8056. { (case "(($ac_try" in
  8057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8058. *) ac_try_echo=$ac_try;;
  8059. esac
  8060. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8061. (eval "$ac_try") 2>&5
  8062. ac_status=$?
  8063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8064. (exit $ac_status); }; }; then
  8065. ac_cv_func_lstat_empty_string_bug=no
  8066. else
  8067. echo "$as_me: program exited with status $ac_status" >&5
  8068. echo "$as_me: failed program was:" >&5
  8069. sed 's/^/| /' conftest.$ac_ext >&5
  8070. ( exit $ac_status )
  8071. ac_cv_func_lstat_empty_string_bug=yes
  8072. fi
  8073. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8074. fi
  8075. fi
  8076. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  8077. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
  8078. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  8079. case " $LIBOBJS " in
  8080. *" lstat.$ac_objext "* ) ;;
  8081. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  8082. ;;
  8083. esac
  8084. cat >>confdefs.h <<_ACEOF
  8085. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  8086. _ACEOF
  8087. fi
  8088. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8089. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  8090. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8091. echo $ECHO_N "(cached) $ECHO_C" >&6
  8092. else
  8093. rm -f conftest.sym conftest.file
  8094. echo >conftest.file
  8095. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8096. if test "$cross_compiling" = yes; then
  8097. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8098. else
  8099. cat >conftest.$ac_ext <<_ACEOF
  8100. /* confdefs.h. */
  8101. _ACEOF
  8102. cat confdefs.h >>conftest.$ac_ext
  8103. cat >>conftest.$ac_ext <<_ACEOF
  8104. /* end confdefs.h. */
  8105. $ac_includes_default
  8106. int
  8107. main ()
  8108. {
  8109. struct stat sbuf;
  8110. /* Linux will dereference the symlink and fail.
  8111. That is better in the sense that it means we will not
  8112. have to compile and use the lstat wrapper. */
  8113. return lstat ("conftest.sym/", &sbuf) == 0;
  8114. ;
  8115. return 0;
  8116. }
  8117. _ACEOF
  8118. rm -f conftest$ac_exeext
  8119. if { (ac_try="$ac_link"
  8120. case "(($ac_try" in
  8121. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8122. *) ac_try_echo=$ac_try;;
  8123. esac
  8124. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8125. (eval "$ac_link") 2>&5
  8126. ac_status=$?
  8127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8128. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8129. { (case "(($ac_try" in
  8130. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8131. *) ac_try_echo=$ac_try;;
  8132. esac
  8133. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8134. (eval "$ac_try") 2>&5
  8135. ac_status=$?
  8136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8137. (exit $ac_status); }; }; then
  8138. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8139. else
  8140. echo "$as_me: program exited with status $ac_status" >&5
  8141. echo "$as_me: failed program was:" >&5
  8142. sed 's/^/| /' conftest.$ac_ext >&5
  8143. ( exit $ac_status )
  8144. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8145. fi
  8146. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8147. fi
  8148. else
  8149. # If the `ln -s' command failed, then we probably don't even
  8150. # have an lstat function.
  8151. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8152. fi
  8153. rm -f conftest.sym conftest.file
  8154. fi
  8155. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8156. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  8157. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8158. cat >>confdefs.h <<_ACEOF
  8159. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8160. _ACEOF
  8161. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8162. case " $LIBOBJS " in
  8163. *" lstat.$ac_objext "* ) ;;
  8164. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  8165. ;;
  8166. esac
  8167. fi
  8168. for ac_header in stdlib.h
  8169. do
  8170. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8171. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8172. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8173. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8174. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8175. echo $ECHO_N "(cached) $ECHO_C" >&6
  8176. fi
  8177. ac_res=`eval echo '${'$as_ac_Header'}'`
  8178. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8179. echo "${ECHO_T}$ac_res" >&6; }
  8180. else
  8181. # Is the header compilable?
  8182. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8183. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8184. cat >conftest.$ac_ext <<_ACEOF
  8185. /* confdefs.h. */
  8186. _ACEOF
  8187. cat confdefs.h >>conftest.$ac_ext
  8188. cat >>conftest.$ac_ext <<_ACEOF
  8189. /* end confdefs.h. */
  8190. $ac_includes_default
  8191. #include <$ac_header>
  8192. _ACEOF
  8193. rm -f conftest.$ac_objext
  8194. if { (ac_try="$ac_compile"
  8195. case "(($ac_try" in
  8196. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8197. *) ac_try_echo=$ac_try;;
  8198. esac
  8199. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8200. (eval "$ac_compile") 2>conftest.er1
  8201. ac_status=$?
  8202. grep -v '^ *+' conftest.er1 >conftest.err
  8203. rm -f conftest.er1
  8204. cat conftest.err >&5
  8205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8206. (exit $ac_status); } && {
  8207. test -z "$ac_cxx_werror_flag" ||
  8208. test ! -s conftest.err
  8209. } && test -s conftest.$ac_objext; then
  8210. ac_header_compiler=yes
  8211. else
  8212. echo "$as_me: failed program was:" >&5
  8213. sed 's/^/| /' conftest.$ac_ext >&5
  8214. ac_header_compiler=no
  8215. fi
  8216. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8217. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8218. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8219. # Is the header present?
  8220. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8221. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8222. cat >conftest.$ac_ext <<_ACEOF
  8223. /* confdefs.h. */
  8224. _ACEOF
  8225. cat confdefs.h >>conftest.$ac_ext
  8226. cat >>conftest.$ac_ext <<_ACEOF
  8227. /* end confdefs.h. */
  8228. #include <$ac_header>
  8229. _ACEOF
  8230. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8231. case "(($ac_try" in
  8232. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8233. *) ac_try_echo=$ac_try;;
  8234. esac
  8235. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8236. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8237. ac_status=$?
  8238. grep -v '^ *+' conftest.er1 >conftest.err
  8239. rm -f conftest.er1
  8240. cat conftest.err >&5
  8241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8242. (exit $ac_status); } >/dev/null && {
  8243. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  8244. test ! -s conftest.err
  8245. }; then
  8246. ac_header_preproc=yes
  8247. else
  8248. echo "$as_me: failed program was:" >&5
  8249. sed 's/^/| /' conftest.$ac_ext >&5
  8250. ac_header_preproc=no
  8251. fi
  8252. rm -f conftest.err conftest.$ac_ext
  8253. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8254. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8255. # So? What about this header?
  8256. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8257. yes:no: )
  8258. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8259. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8260. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8261. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8262. ac_header_preproc=yes
  8263. ;;
  8264. no:yes:* )
  8265. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8266. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8267. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8268. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8269. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8270. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8271. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8272. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8273. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8274. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8275. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8276. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8277. ;;
  8278. esac
  8279. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8280. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8281. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8282. echo $ECHO_N "(cached) $ECHO_C" >&6
  8283. else
  8284. eval "$as_ac_Header=\$ac_header_preproc"
  8285. fi
  8286. ac_res=`eval echo '${'$as_ac_Header'}'`
  8287. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8288. echo "${ECHO_T}$ac_res" >&6; }
  8289. fi
  8290. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8291. cat >>confdefs.h <<_ACEOF
  8292. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8293. _ACEOF
  8294. fi
  8295. done
  8296. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8297. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  8298. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8299. echo $ECHO_N "(cached) $ECHO_C" >&6
  8300. else
  8301. if test "$cross_compiling" = yes; then
  8302. ac_cv_func_malloc_0_nonnull=no
  8303. else
  8304. cat >conftest.$ac_ext <<_ACEOF
  8305. /* confdefs.h. */
  8306. _ACEOF
  8307. cat confdefs.h >>conftest.$ac_ext
  8308. cat >>conftest.$ac_ext <<_ACEOF
  8309. /* end confdefs.h. */
  8310. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  8311. # include <stdlib.h>
  8312. #else
  8313. char *malloc ();
  8314. #endif
  8315. int
  8316. main ()
  8317. {
  8318. return ! malloc (0);
  8319. ;
  8320. return 0;
  8321. }
  8322. _ACEOF
  8323. rm -f conftest$ac_exeext
  8324. if { (ac_try="$ac_link"
  8325. case "(($ac_try" in
  8326. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8327. *) ac_try_echo=$ac_try;;
  8328. esac
  8329. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8330. (eval "$ac_link") 2>&5
  8331. ac_status=$?
  8332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8333. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8334. { (case "(($ac_try" in
  8335. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8336. *) ac_try_echo=$ac_try;;
  8337. esac
  8338. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8339. (eval "$ac_try") 2>&5
  8340. ac_status=$?
  8341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8342. (exit $ac_status); }; }; then
  8343. ac_cv_func_malloc_0_nonnull=yes
  8344. else
  8345. echo "$as_me: program exited with status $ac_status" >&5
  8346. echo "$as_me: failed program was:" >&5
  8347. sed 's/^/| /' conftest.$ac_ext >&5
  8348. ( exit $ac_status )
  8349. ac_cv_func_malloc_0_nonnull=no
  8350. fi
  8351. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8352. fi
  8353. fi
  8354. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  8355. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  8356. if test $ac_cv_func_malloc_0_nonnull = yes; then
  8357. cat >>confdefs.h <<\_ACEOF
  8358. #define HAVE_MALLOC 1
  8359. _ACEOF
  8360. else
  8361. cat >>confdefs.h <<\_ACEOF
  8362. #define HAVE_MALLOC 0
  8363. _ACEOF
  8364. case " $LIBOBJS " in
  8365. *" malloc.$ac_objext "* ) ;;
  8366. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  8367. ;;
  8368. esac
  8369. cat >>confdefs.h <<\_ACEOF
  8370. #define malloc rpl_malloc
  8371. _ACEOF
  8372. fi
  8373. for ac_header in $ac_header_list
  8374. do
  8375. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8376. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8377. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8378. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8379. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8380. echo $ECHO_N "(cached) $ECHO_C" >&6
  8381. fi
  8382. ac_res=`eval echo '${'$as_ac_Header'}'`
  8383. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8384. echo "${ECHO_T}$ac_res" >&6; }
  8385. else
  8386. # Is the header compilable?
  8387. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8388. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8389. cat >conftest.$ac_ext <<_ACEOF
  8390. /* confdefs.h. */
  8391. _ACEOF
  8392. cat confdefs.h >>conftest.$ac_ext
  8393. cat >>conftest.$ac_ext <<_ACEOF
  8394. /* end confdefs.h. */
  8395. $ac_includes_default
  8396. #include <$ac_header>
  8397. _ACEOF
  8398. rm -f conftest.$ac_objext
  8399. if { (ac_try="$ac_compile"
  8400. case "(($ac_try" in
  8401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8402. *) ac_try_echo=$ac_try;;
  8403. esac
  8404. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8405. (eval "$ac_compile") 2>conftest.er1
  8406. ac_status=$?
  8407. grep -v '^ *+' conftest.er1 >conftest.err
  8408. rm -f conftest.er1
  8409. cat conftest.err >&5
  8410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8411. (exit $ac_status); } && {
  8412. test -z "$ac_cxx_werror_flag" ||
  8413. test ! -s conftest.err
  8414. } && test -s conftest.$ac_objext; then
  8415. ac_header_compiler=yes
  8416. else
  8417. echo "$as_me: failed program was:" >&5
  8418. sed 's/^/| /' conftest.$ac_ext >&5
  8419. ac_header_compiler=no
  8420. fi
  8421. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8422. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8423. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8424. # Is the header present?
  8425. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8426. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8427. cat >conftest.$ac_ext <<_ACEOF
  8428. /* confdefs.h. */
  8429. _ACEOF
  8430. cat confdefs.h >>conftest.$ac_ext
  8431. cat >>conftest.$ac_ext <<_ACEOF
  8432. /* end confdefs.h. */
  8433. #include <$ac_header>
  8434. _ACEOF
  8435. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8436. case "(($ac_try" in
  8437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8438. *) ac_try_echo=$ac_try;;
  8439. esac
  8440. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8441. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8442. ac_status=$?
  8443. grep -v '^ *+' conftest.er1 >conftest.err
  8444. rm -f conftest.er1
  8445. cat conftest.err >&5
  8446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8447. (exit $ac_status); } >/dev/null && {
  8448. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  8449. test ! -s conftest.err
  8450. }; then
  8451. ac_header_preproc=yes
  8452. else
  8453. echo "$as_me: failed program was:" >&5
  8454. sed 's/^/| /' conftest.$ac_ext >&5
  8455. ac_header_preproc=no
  8456. fi
  8457. rm -f conftest.err conftest.$ac_ext
  8458. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8459. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8460. # So? What about this header?
  8461. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8462. yes:no: )
  8463. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8464. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8465. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8466. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8467. ac_header_preproc=yes
  8468. ;;
  8469. no:yes:* )
  8470. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8471. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8472. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8473. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8474. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8475. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8476. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8477. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8478. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8479. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8480. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8481. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8482. ;;
  8483. esac
  8484. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8485. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8486. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8487. echo $ECHO_N "(cached) $ECHO_C" >&6
  8488. else
  8489. eval "$as_ac_Header=\$ac_header_preproc"
  8490. fi
  8491. ac_res=`eval echo '${'$as_ac_Header'}'`
  8492. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8493. echo "${ECHO_T}$ac_res" >&6; }
  8494. fi
  8495. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8496. cat >>confdefs.h <<_ACEOF
  8497. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8498. _ACEOF
  8499. fi
  8500. done
  8501. for ac_func in $ac_func_list
  8502. do
  8503. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8504. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  8505. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8506. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8507. echo $ECHO_N "(cached) $ECHO_C" >&6
  8508. else
  8509. cat >conftest.$ac_ext <<_ACEOF
  8510. /* confdefs.h. */
  8511. _ACEOF
  8512. cat confdefs.h >>conftest.$ac_ext
  8513. cat >>conftest.$ac_ext <<_ACEOF
  8514. /* end confdefs.h. */
  8515. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8516. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8517. #define $ac_func innocuous_$ac_func
  8518. /* System header to define __stub macros and hopefully few prototypes,
  8519. which can conflict with char $ac_func (); below.
  8520. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8521. <limits.h> exists even on freestanding compilers. */
  8522. #ifdef __STDC__
  8523. # include <limits.h>
  8524. #else
  8525. # include <assert.h>
  8526. #endif
  8527. #undef $ac_func
  8528. /* Override any GCC internal prototype to avoid an error.
  8529. Use char because int might match the return type of a GCC
  8530. builtin and then its argument prototype would still apply. */
  8531. #ifdef __cplusplus
  8532. extern "C"
  8533. #endif
  8534. char $ac_func ();
  8535. /* The GNU C library defines this for functions which it implements
  8536. to always fail with ENOSYS. Some functions are actually named
  8537. something starting with __ and the normal name is an alias. */
  8538. #if defined __stub_$ac_func || defined __stub___$ac_func
  8539. choke me
  8540. #endif
  8541. int
  8542. main ()
  8543. {
  8544. return $ac_func ();
  8545. ;
  8546. return 0;
  8547. }
  8548. _ACEOF
  8549. rm -f conftest.$ac_objext conftest$ac_exeext
  8550. if { (ac_try="$ac_link"
  8551. case "(($ac_try" in
  8552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8553. *) ac_try_echo=$ac_try;;
  8554. esac
  8555. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8556. (eval "$ac_link") 2>conftest.er1
  8557. ac_status=$?
  8558. grep -v '^ *+' conftest.er1 >conftest.err
  8559. rm -f conftest.er1
  8560. cat conftest.err >&5
  8561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8562. (exit $ac_status); } && {
  8563. test -z "$ac_cxx_werror_flag" ||
  8564. test ! -s conftest.err
  8565. } && test -s conftest$ac_exeext &&
  8566. $as_test_x conftest$ac_exeext; then
  8567. eval "$as_ac_var=yes"
  8568. else
  8569. echo "$as_me: failed program was:" >&5
  8570. sed 's/^/| /' conftest.$ac_ext >&5
  8571. eval "$as_ac_var=no"
  8572. fi
  8573. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8574. conftest$ac_exeext conftest.$ac_ext
  8575. fi
  8576. ac_res=`eval echo '${'$as_ac_var'}'`
  8577. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8578. echo "${ECHO_T}$ac_res" >&6; }
  8579. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8580. cat >>confdefs.h <<_ACEOF
  8581. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8582. _ACEOF
  8583. fi
  8584. done
  8585. { echo "$as_me:$LINENO: checking for working mktime" >&5
  8586. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
  8587. if test "${ac_cv_func_working_mktime+set}" = set; then
  8588. echo $ECHO_N "(cached) $ECHO_C" >&6
  8589. else
  8590. if test "$cross_compiling" = yes; then
  8591. ac_cv_func_working_mktime=no
  8592. else
  8593. cat >conftest.$ac_ext <<_ACEOF
  8594. /* confdefs.h. */
  8595. _ACEOF
  8596. cat confdefs.h >>conftest.$ac_ext
  8597. cat >>conftest.$ac_ext <<_ACEOF
  8598. /* end confdefs.h. */
  8599. /* Test program from Paul Eggert and Tony Leneis. */
  8600. #ifdef TIME_WITH_SYS_TIME
  8601. # include <sys/time.h>
  8602. # include <time.h>
  8603. #else
  8604. # ifdef HAVE_SYS_TIME_H
  8605. # include <sys/time.h>
  8606. # else
  8607. # include <time.h>
  8608. # endif
  8609. #endif
  8610. #include <stdlib.h>
  8611. #ifdef HAVE_UNISTD_H
  8612. # include <unistd.h>
  8613. #endif
  8614. #ifndef HAVE_ALARM
  8615. # define alarm(X) /* empty */
  8616. #endif
  8617. /* Work around redefinition to rpl_putenv by other config tests. */
  8618. #undef putenv
  8619. static time_t time_t_max;
  8620. static time_t time_t_min;
  8621. /* Values we'll use to set the TZ environment variable. */
  8622. static char *tz_strings[] = {
  8623. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  8624. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  8625. };
  8626. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  8627. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  8628. Based on a problem report from Andreas Jaeger. */
  8629. static int
  8630. spring_forward_gap ()
  8631. {
  8632. /* glibc (up to about 1998-10-07) failed this test. */
  8633. struct tm tm;
  8634. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  8635. instead of "TZ=America/Vancouver" in order to detect the bug even
  8636. on systems that don't support the Olson extension, or don't have the
  8637. full zoneinfo tables installed. */
  8638. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  8639. tm.tm_year = 98;
  8640. tm.tm_mon = 3;
  8641. tm.tm_mday = 5;
  8642. tm.tm_hour = 2;
  8643. tm.tm_min = 0;
  8644. tm.tm_sec = 0;
  8645. tm.tm_isdst = -1;
  8646. return mktime (&tm) != (time_t) -1;
  8647. }
  8648. static int
  8649. mktime_test1 (now)
  8650. time_t now;
  8651. {
  8652. struct tm *lt;
  8653. return ! (lt = localtime (&now)) || mktime (lt) == now;
  8654. }
  8655. static int
  8656. mktime_test (now)
  8657. time_t now;
  8658. {
  8659. return (mktime_test1 (now)
  8660. && mktime_test1 ((time_t) (time_t_max - now))
  8661. && mktime_test1 ((time_t) (time_t_min + now)));
  8662. }
  8663. static int
  8664. irix_6_4_bug ()
  8665. {
  8666. /* Based on code from Ariel Faigon. */
  8667. struct tm tm;
  8668. tm.tm_year = 96;
  8669. tm.tm_mon = 3;
  8670. tm.tm_mday = 0;
  8671. tm.tm_hour = 0;
  8672. tm.tm_min = 0;
  8673. tm.tm_sec = 0;
  8674. tm.tm_isdst = -1;
  8675. mktime (&tm);
  8676. return tm.tm_mon == 2 && tm.tm_mday == 31;
  8677. }
  8678. static int
  8679. bigtime_test (j)
  8680. int j;
  8681. {
  8682. struct tm tm;
  8683. time_t now;
  8684. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  8685. now = mktime (&tm);
  8686. if (now != (time_t) -1)
  8687. {
  8688. struct tm *lt = localtime (&now);
  8689. if (! (lt
  8690. && lt->tm_year == tm.tm_year
  8691. && lt->tm_mon == tm.tm_mon
  8692. && lt->tm_mday == tm.tm_mday
  8693. && lt->tm_hour == tm.tm_hour
  8694. && lt->tm_min == tm.tm_min
  8695. && lt->tm_sec == tm.tm_sec
  8696. && lt->tm_yday == tm.tm_yday
  8697. && lt->tm_wday == tm.tm_wday
  8698. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  8699. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  8700. return 0;
  8701. }
  8702. return 1;
  8703. }
  8704. static int
  8705. year_2050_test ()
  8706. {
  8707. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  8708. ignoring leap seconds. */
  8709. unsigned long int answer = 2527315200UL;
  8710. struct tm tm;
  8711. time_t t;
  8712. tm.tm_year = 2050 - 1900;
  8713. tm.tm_mon = 2 - 1;
  8714. tm.tm_mday = 1;
  8715. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  8716. tm.tm_isdst = -1;
  8717. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  8718. instead of "TZ=America/Vancouver" in order to detect the bug even
  8719. on systems that don't support the Olson extension, or don't have the
  8720. full zoneinfo tables installed. */
  8721. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  8722. t = mktime (&tm);
  8723. /* Check that the result is either a failure, or close enough
  8724. to the correct answer that we can assume the discrepancy is
  8725. due to leap seconds. */
  8726. return (t == (time_t) -1
  8727. || (0 < t && answer - 120 <= t && t <= answer + 120));
  8728. }
  8729. int
  8730. main ()
  8731. {
  8732. time_t t, delta;
  8733. int i, j;
  8734. /* This test makes some buggy mktime implementations loop.
  8735. Give up after 60 seconds; a mktime slower than that
  8736. isn't worth using anyway. */
  8737. alarm (60);
  8738. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  8739. continue;
  8740. time_t_max--;
  8741. if ((time_t) -1 < 0)
  8742. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  8743. continue;
  8744. delta = time_t_max / 997; /* a suitable prime number */
  8745. for (i = 0; i < N_STRINGS; i++)
  8746. {
  8747. if (tz_strings[i])
  8748. putenv (tz_strings[i]);
  8749. for (t = 0; t <= time_t_max - delta; t += delta)
  8750. if (! mktime_test (t))
  8751. return 1;
  8752. if (! (mktime_test ((time_t) 1)
  8753. && mktime_test ((time_t) (60 * 60))
  8754. && mktime_test ((time_t) (60 * 60 * 24))))
  8755. return 1;
  8756. for (j = 1; 0 < j; j *= 2)
  8757. if (! bigtime_test (j))
  8758. return 1;
  8759. if (! bigtime_test (j - 1))
  8760. return 1;
  8761. }
  8762. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  8763. }
  8764. _ACEOF
  8765. rm -f conftest$ac_exeext
  8766. if { (ac_try="$ac_link"
  8767. case "(($ac_try" in
  8768. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8769. *) ac_try_echo=$ac_try;;
  8770. esac
  8771. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8772. (eval "$ac_link") 2>&5
  8773. ac_status=$?
  8774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8775. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8776. { (case "(($ac_try" in
  8777. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8778. *) ac_try_echo=$ac_try;;
  8779. esac
  8780. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8781. (eval "$ac_try") 2>&5
  8782. ac_status=$?
  8783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8784. (exit $ac_status); }; }; then
  8785. ac_cv_func_working_mktime=yes
  8786. else
  8787. echo "$as_me: program exited with status $ac_status" >&5
  8788. echo "$as_me: failed program was:" >&5
  8789. sed 's/^/| /' conftest.$ac_ext >&5
  8790. ( exit $ac_status )
  8791. ac_cv_func_working_mktime=no
  8792. fi
  8793. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8794. fi
  8795. fi
  8796. { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  8797. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
  8798. if test $ac_cv_func_working_mktime = no; then
  8799. case " $LIBOBJS " in
  8800. *" mktime.$ac_objext "* ) ;;
  8801. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  8802. ;;
  8803. esac
  8804. fi
  8805. for ac_header in stdlib.h unistd.h
  8806. do
  8807. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8808. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8809. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8810. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8811. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8812. echo $ECHO_N "(cached) $ECHO_C" >&6
  8813. fi
  8814. ac_res=`eval echo '${'$as_ac_Header'}'`
  8815. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8816. echo "${ECHO_T}$ac_res" >&6; }
  8817. else
  8818. # Is the header compilable?
  8819. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8820. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8821. cat >conftest.$ac_ext <<_ACEOF
  8822. /* confdefs.h. */
  8823. _ACEOF
  8824. cat confdefs.h >>conftest.$ac_ext
  8825. cat >>conftest.$ac_ext <<_ACEOF
  8826. /* end confdefs.h. */
  8827. $ac_includes_default
  8828. #include <$ac_header>
  8829. _ACEOF
  8830. rm -f conftest.$ac_objext
  8831. if { (ac_try="$ac_compile"
  8832. case "(($ac_try" in
  8833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8834. *) ac_try_echo=$ac_try;;
  8835. esac
  8836. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8837. (eval "$ac_compile") 2>conftest.er1
  8838. ac_status=$?
  8839. grep -v '^ *+' conftest.er1 >conftest.err
  8840. rm -f conftest.er1
  8841. cat conftest.err >&5
  8842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8843. (exit $ac_status); } && {
  8844. test -z "$ac_cxx_werror_flag" ||
  8845. test ! -s conftest.err
  8846. } && test -s conftest.$ac_objext; then
  8847. ac_header_compiler=yes
  8848. else
  8849. echo "$as_me: failed program was:" >&5
  8850. sed 's/^/| /' conftest.$ac_ext >&5
  8851. ac_header_compiler=no
  8852. fi
  8853. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8854. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8855. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8856. # Is the header present?
  8857. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8858. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8859. cat >conftest.$ac_ext <<_ACEOF
  8860. /* confdefs.h. */
  8861. _ACEOF
  8862. cat confdefs.h >>conftest.$ac_ext
  8863. cat >>conftest.$ac_ext <<_ACEOF
  8864. /* end confdefs.h. */
  8865. #include <$ac_header>
  8866. _ACEOF
  8867. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8868. case "(($ac_try" in
  8869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8870. *) ac_try_echo=$ac_try;;
  8871. esac
  8872. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8873. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8874. ac_status=$?
  8875. grep -v '^ *+' conftest.er1 >conftest.err
  8876. rm -f conftest.er1
  8877. cat conftest.err >&5
  8878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8879. (exit $ac_status); } >/dev/null && {
  8880. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  8881. test ! -s conftest.err
  8882. }; then
  8883. ac_header_preproc=yes
  8884. else
  8885. echo "$as_me: failed program was:" >&5
  8886. sed 's/^/| /' conftest.$ac_ext >&5
  8887. ac_header_preproc=no
  8888. fi
  8889. rm -f conftest.err conftest.$ac_ext
  8890. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8891. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8892. # So? What about this header?
  8893. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8894. yes:no: )
  8895. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8896. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8897. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8898. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8899. ac_header_preproc=yes
  8900. ;;
  8901. no:yes:* )
  8902. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8903. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8904. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8905. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8906. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8907. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8908. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8909. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8910. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8911. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8912. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8913. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8914. ;;
  8915. esac
  8916. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8917. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8918. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8919. echo $ECHO_N "(cached) $ECHO_C" >&6
  8920. else
  8921. eval "$as_ac_Header=\$ac_header_preproc"
  8922. fi
  8923. ac_res=`eval echo '${'$as_ac_Header'}'`
  8924. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8925. echo "${ECHO_T}$ac_res" >&6; }
  8926. fi
  8927. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8928. cat >>confdefs.h <<_ACEOF
  8929. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8930. _ACEOF
  8931. fi
  8932. done
  8933. for ac_func in getpagesize
  8934. do
  8935. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8936. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  8937. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8938. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8939. echo $ECHO_N "(cached) $ECHO_C" >&6
  8940. else
  8941. cat >conftest.$ac_ext <<_ACEOF
  8942. /* confdefs.h. */
  8943. _ACEOF
  8944. cat confdefs.h >>conftest.$ac_ext
  8945. cat >>conftest.$ac_ext <<_ACEOF
  8946. /* end confdefs.h. */
  8947. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8948. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8949. #define $ac_func innocuous_$ac_func
  8950. /* System header to define __stub macros and hopefully few prototypes,
  8951. which can conflict with char $ac_func (); below.
  8952. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8953. <limits.h> exists even on freestanding compilers. */
  8954. #ifdef __STDC__
  8955. # include <limits.h>
  8956. #else
  8957. # include <assert.h>
  8958. #endif
  8959. #undef $ac_func
  8960. /* Override any GCC internal prototype to avoid an error.
  8961. Use char because int might match the return type of a GCC
  8962. builtin and then its argument prototype would still apply. */
  8963. #ifdef __cplusplus
  8964. extern "C"
  8965. #endif
  8966. char $ac_func ();
  8967. /* The GNU C library defines this for functions which it implements
  8968. to always fail with ENOSYS. Some functions are actually named
  8969. something starting with __ and the normal name is an alias. */
  8970. #if defined __stub_$ac_func || defined __stub___$ac_func
  8971. choke me
  8972. #endif
  8973. int
  8974. main ()
  8975. {
  8976. return $ac_func ();
  8977. ;
  8978. return 0;
  8979. }
  8980. _ACEOF
  8981. rm -f conftest.$ac_objext conftest$ac_exeext
  8982. if { (ac_try="$ac_link"
  8983. case "(($ac_try" in
  8984. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8985. *) ac_try_echo=$ac_try;;
  8986. esac
  8987. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8988. (eval "$ac_link") 2>conftest.er1
  8989. ac_status=$?
  8990. grep -v '^ *+' conftest.er1 >conftest.err
  8991. rm -f conftest.er1
  8992. cat conftest.err >&5
  8993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8994. (exit $ac_status); } && {
  8995. test -z "$ac_cxx_werror_flag" ||
  8996. test ! -s conftest.err
  8997. } && test -s conftest$ac_exeext &&
  8998. $as_test_x conftest$ac_exeext; then
  8999. eval "$as_ac_var=yes"
  9000. else
  9001. echo "$as_me: failed program was:" >&5
  9002. sed 's/^/| /' conftest.$ac_ext >&5
  9003. eval "$as_ac_var=no"
  9004. fi
  9005. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9006. conftest$ac_exeext conftest.$ac_ext
  9007. fi
  9008. ac_res=`eval echo '${'$as_ac_var'}'`
  9009. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9010. echo "${ECHO_T}$ac_res" >&6; }
  9011. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9012. cat >>confdefs.h <<_ACEOF
  9013. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9014. _ACEOF
  9015. fi
  9016. done
  9017. { echo "$as_me:$LINENO: checking for working mmap" >&5
  9018. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  9019. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9020. echo $ECHO_N "(cached) $ECHO_C" >&6
  9021. else
  9022. if test "$cross_compiling" = yes; then
  9023. ac_cv_func_mmap_fixed_mapped=no
  9024. else
  9025. cat >conftest.$ac_ext <<_ACEOF
  9026. /* confdefs.h. */
  9027. _ACEOF
  9028. cat confdefs.h >>conftest.$ac_ext
  9029. cat >>conftest.$ac_ext <<_ACEOF
  9030. /* end confdefs.h. */
  9031. $ac_includes_default
  9032. /* malloc might have been renamed as rpl_malloc. */
  9033. #undef malloc
  9034. /* Thanks to Mike Haertel and Jim Avera for this test.
  9035. Here is a matrix of mmap possibilities:
  9036. mmap private not fixed
  9037. mmap private fixed at somewhere currently unmapped
  9038. mmap private fixed at somewhere already mapped
  9039. mmap shared not fixed
  9040. mmap shared fixed at somewhere currently unmapped
  9041. mmap shared fixed at somewhere already mapped
  9042. For private mappings, we should verify that changes cannot be read()
  9043. back from the file, nor mmap's back from the file at a different
  9044. address. (There have been systems where private was not correctly
  9045. implemented like the infamous i386 svr4.0, and systems where the
  9046. VM page cache was not coherent with the file system buffer cache
  9047. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9048. For shared mappings, we should conversely verify that changes get
  9049. propagated back to all the places they're supposed to be.
  9050. Grep wants private fixed already mapped.
  9051. The main things grep needs to know about mmap are:
  9052. * does it exist and is it safe to write into the mmap'd area
  9053. * how to use it (BSD variants) */
  9054. #include <fcntl.h>
  9055. #include <sys/mman.h>
  9056. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  9057. char *malloc ();
  9058. #endif
  9059. /* This mess was copied from the GNU getpagesize.h. */
  9060. #ifndef HAVE_GETPAGESIZE
  9061. /* Assume that all systems that can run configure have sys/param.h. */
  9062. # ifndef HAVE_SYS_PARAM_H
  9063. # define HAVE_SYS_PARAM_H 1
  9064. # endif
  9065. # ifdef _SC_PAGESIZE
  9066. # define getpagesize() sysconf(_SC_PAGESIZE)
  9067. # else /* no _SC_PAGESIZE */
  9068. # ifdef HAVE_SYS_PARAM_H
  9069. # include <sys/param.h>
  9070. # ifdef EXEC_PAGESIZE
  9071. # define getpagesize() EXEC_PAGESIZE
  9072. # else /* no EXEC_PAGESIZE */
  9073. # ifdef NBPG
  9074. # define getpagesize() NBPG * CLSIZE
  9075. # ifndef CLSIZE
  9076. # define CLSIZE 1
  9077. # endif /* no CLSIZE */
  9078. # else /* no NBPG */
  9079. # ifdef NBPC
  9080. # define getpagesize() NBPC
  9081. # else /* no NBPC */
  9082. # ifdef PAGESIZE
  9083. # define getpagesize() PAGESIZE
  9084. # endif /* PAGESIZE */
  9085. # endif /* no NBPC */
  9086. # endif /* no NBPG */
  9087. # endif /* no EXEC_PAGESIZE */
  9088. # else /* no HAVE_SYS_PARAM_H */
  9089. # define getpagesize() 8192 /* punt totally */
  9090. # endif /* no HAVE_SYS_PARAM_H */
  9091. # endif /* no _SC_PAGESIZE */
  9092. #endif /* no HAVE_GETPAGESIZE */
  9093. int
  9094. main ()
  9095. {
  9096. char *data, *data2, *data3;
  9097. int i, pagesize;
  9098. int fd;
  9099. pagesize = getpagesize ();
  9100. /* First, make a file with some known garbage in it. */
  9101. data = (char *) malloc (pagesize);
  9102. if (!data)
  9103. return 1;
  9104. for (i = 0; i < pagesize; ++i)
  9105. *(data + i) = rand ();
  9106. umask (0);
  9107. fd = creat ("conftest.mmap", 0600);
  9108. if (fd < 0)
  9109. return 1;
  9110. if (write (fd, data, pagesize) != pagesize)
  9111. return 1;
  9112. close (fd);
  9113. /* Next, try to mmap the file at a fixed address which already has
  9114. something else allocated at it. If we can, also make sure that
  9115. we see the same garbage. */
  9116. fd = open ("conftest.mmap", O_RDWR);
  9117. if (fd < 0)
  9118. return 1;
  9119. data2 = (char *) malloc (2 * pagesize);
  9120. if (!data2)
  9121. return 1;
  9122. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  9123. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9124. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9125. return 1;
  9126. for (i = 0; i < pagesize; ++i)
  9127. if (*(data + i) != *(data2 + i))
  9128. return 1;
  9129. /* Finally, make sure that changes to the mapped area do not
  9130. percolate back to the file as seen by read(). (This is a bug on
  9131. some variants of i386 svr4.0.) */
  9132. for (i = 0; i < pagesize; ++i)
  9133. *(data2 + i) = *(data2 + i) + 1;
  9134. data3 = (char *) malloc (pagesize);
  9135. if (!data3)
  9136. return 1;
  9137. if (read (fd, data3, pagesize) != pagesize)
  9138. return 1;
  9139. for (i = 0; i < pagesize; ++i)
  9140. if (*(data + i) != *(data3 + i))
  9141. return 1;
  9142. close (fd);
  9143. return 0;
  9144. }
  9145. _ACEOF
  9146. rm -f conftest$ac_exeext
  9147. if { (ac_try="$ac_link"
  9148. case "(($ac_try" in
  9149. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9150. *) ac_try_echo=$ac_try;;
  9151. esac
  9152. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9153. (eval "$ac_link") 2>&5
  9154. ac_status=$?
  9155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9156. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9157. { (case "(($ac_try" in
  9158. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9159. *) ac_try_echo=$ac_try;;
  9160. esac
  9161. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9162. (eval "$ac_try") 2>&5
  9163. ac_status=$?
  9164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9165. (exit $ac_status); }; }; then
  9166. ac_cv_func_mmap_fixed_mapped=yes
  9167. else
  9168. echo "$as_me: program exited with status $ac_status" >&5
  9169. echo "$as_me: failed program was:" >&5
  9170. sed 's/^/| /' conftest.$ac_ext >&5
  9171. ( exit $ac_status )
  9172. ac_cv_func_mmap_fixed_mapped=no
  9173. fi
  9174. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9175. fi
  9176. fi
  9177. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9178. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  9179. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9180. cat >>confdefs.h <<\_ACEOF
  9181. #define HAVE_MMAP 1
  9182. _ACEOF
  9183. fi
  9184. rm -f conftest.mmap
  9185. for ac_header in stdlib.h
  9186. do
  9187. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9188. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9189. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9190. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9191. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9192. echo $ECHO_N "(cached) $ECHO_C" >&6
  9193. fi
  9194. ac_res=`eval echo '${'$as_ac_Header'}'`
  9195. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9196. echo "${ECHO_T}$ac_res" >&6; }
  9197. else
  9198. # Is the header compilable?
  9199. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9200. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9201. cat >conftest.$ac_ext <<_ACEOF
  9202. /* confdefs.h. */
  9203. _ACEOF
  9204. cat confdefs.h >>conftest.$ac_ext
  9205. cat >>conftest.$ac_ext <<_ACEOF
  9206. /* end confdefs.h. */
  9207. $ac_includes_default
  9208. #include <$ac_header>
  9209. _ACEOF
  9210. rm -f conftest.$ac_objext
  9211. if { (ac_try="$ac_compile"
  9212. case "(($ac_try" in
  9213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9214. *) ac_try_echo=$ac_try;;
  9215. esac
  9216. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9217. (eval "$ac_compile") 2>conftest.er1
  9218. ac_status=$?
  9219. grep -v '^ *+' conftest.er1 >conftest.err
  9220. rm -f conftest.er1
  9221. cat conftest.err >&5
  9222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9223. (exit $ac_status); } && {
  9224. test -z "$ac_cxx_werror_flag" ||
  9225. test ! -s conftest.err
  9226. } && test -s conftest.$ac_objext; then
  9227. ac_header_compiler=yes
  9228. else
  9229. echo "$as_me: failed program was:" >&5
  9230. sed 's/^/| /' conftest.$ac_ext >&5
  9231. ac_header_compiler=no
  9232. fi
  9233. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9234. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9235. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9236. # Is the header present?
  9237. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9238. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9239. cat >conftest.$ac_ext <<_ACEOF
  9240. /* confdefs.h. */
  9241. _ACEOF
  9242. cat confdefs.h >>conftest.$ac_ext
  9243. cat >>conftest.$ac_ext <<_ACEOF
  9244. /* end confdefs.h. */
  9245. #include <$ac_header>
  9246. _ACEOF
  9247. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9248. case "(($ac_try" in
  9249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9250. *) ac_try_echo=$ac_try;;
  9251. esac
  9252. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9253. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9254. ac_status=$?
  9255. grep -v '^ *+' conftest.er1 >conftest.err
  9256. rm -f conftest.er1
  9257. cat conftest.err >&5
  9258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9259. (exit $ac_status); } >/dev/null && {
  9260. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9261. test ! -s conftest.err
  9262. }; then
  9263. ac_header_preproc=yes
  9264. else
  9265. echo "$as_me: failed program was:" >&5
  9266. sed 's/^/| /' conftest.$ac_ext >&5
  9267. ac_header_preproc=no
  9268. fi
  9269. rm -f conftest.err conftest.$ac_ext
  9270. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9271. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9272. # So? What about this header?
  9273. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9274. yes:no: )
  9275. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9276. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9277. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9278. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9279. ac_header_preproc=yes
  9280. ;;
  9281. no:yes:* )
  9282. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9283. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9284. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9285. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9286. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9287. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9288. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9289. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9290. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9291. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9292. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9293. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9294. ;;
  9295. esac
  9296. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9297. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9298. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9299. echo $ECHO_N "(cached) $ECHO_C" >&6
  9300. else
  9301. eval "$as_ac_Header=\$ac_header_preproc"
  9302. fi
  9303. ac_res=`eval echo '${'$as_ac_Header'}'`
  9304. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9305. echo "${ECHO_T}$ac_res" >&6; }
  9306. fi
  9307. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9308. cat >>confdefs.h <<_ACEOF
  9309. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9310. _ACEOF
  9311. fi
  9312. done
  9313. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9314. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  9315. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9316. echo $ECHO_N "(cached) $ECHO_C" >&6
  9317. else
  9318. if test "$cross_compiling" = yes; then
  9319. ac_cv_func_realloc_0_nonnull=no
  9320. else
  9321. cat >conftest.$ac_ext <<_ACEOF
  9322. /* confdefs.h. */
  9323. _ACEOF
  9324. cat confdefs.h >>conftest.$ac_ext
  9325. cat >>conftest.$ac_ext <<_ACEOF
  9326. /* end confdefs.h. */
  9327. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  9328. # include <stdlib.h>
  9329. #else
  9330. char *realloc ();
  9331. #endif
  9332. int
  9333. main ()
  9334. {
  9335. return ! realloc (0, 0);
  9336. ;
  9337. return 0;
  9338. }
  9339. _ACEOF
  9340. rm -f conftest$ac_exeext
  9341. if { (ac_try="$ac_link"
  9342. case "(($ac_try" in
  9343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9344. *) ac_try_echo=$ac_try;;
  9345. esac
  9346. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9347. (eval "$ac_link") 2>&5
  9348. ac_status=$?
  9349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9350. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9351. { (case "(($ac_try" in
  9352. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9353. *) ac_try_echo=$ac_try;;
  9354. esac
  9355. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9356. (eval "$ac_try") 2>&5
  9357. ac_status=$?
  9358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9359. (exit $ac_status); }; }; then
  9360. ac_cv_func_realloc_0_nonnull=yes
  9361. else
  9362. echo "$as_me: program exited with status $ac_status" >&5
  9363. echo "$as_me: failed program was:" >&5
  9364. sed 's/^/| /' conftest.$ac_ext >&5
  9365. ( exit $ac_status )
  9366. ac_cv_func_realloc_0_nonnull=no
  9367. fi
  9368. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9369. fi
  9370. fi
  9371. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9372. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  9373. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9374. cat >>confdefs.h <<\_ACEOF
  9375. #define HAVE_REALLOC 1
  9376. _ACEOF
  9377. else
  9378. cat >>confdefs.h <<\_ACEOF
  9379. #define HAVE_REALLOC 0
  9380. _ACEOF
  9381. case " $LIBOBJS " in
  9382. *" realloc.$ac_objext "* ) ;;
  9383. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  9384. ;;
  9385. esac
  9386. cat >>confdefs.h <<\_ACEOF
  9387. #define realloc rpl_realloc
  9388. _ACEOF
  9389. fi
  9390. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  9391. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  9392. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  9393. echo $ECHO_N "(cached) $ECHO_C" >&6
  9394. else
  9395. if test "$cross_compiling" = yes; then
  9396. ac_cv_func_stat_empty_string_bug=yes
  9397. else
  9398. cat >conftest.$ac_ext <<_ACEOF
  9399. /* confdefs.h. */
  9400. _ACEOF
  9401. cat confdefs.h >>conftest.$ac_ext
  9402. cat >>conftest.$ac_ext <<_ACEOF
  9403. /* end confdefs.h. */
  9404. $ac_includes_default
  9405. int
  9406. main ()
  9407. {
  9408. struct stat sbuf;
  9409. return stat ("", &sbuf) == 0;
  9410. ;
  9411. return 0;
  9412. }
  9413. _ACEOF
  9414. rm -f conftest$ac_exeext
  9415. if { (ac_try="$ac_link"
  9416. case "(($ac_try" in
  9417. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9418. *) ac_try_echo=$ac_try;;
  9419. esac
  9420. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9421. (eval "$ac_link") 2>&5
  9422. ac_status=$?
  9423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9424. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9425. { (case "(($ac_try" in
  9426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9427. *) ac_try_echo=$ac_try;;
  9428. esac
  9429. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9430. (eval "$ac_try") 2>&5
  9431. ac_status=$?
  9432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9433. (exit $ac_status); }; }; then
  9434. ac_cv_func_stat_empty_string_bug=no
  9435. else
  9436. echo "$as_me: program exited with status $ac_status" >&5
  9437. echo "$as_me: failed program was:" >&5
  9438. sed 's/^/| /' conftest.$ac_ext >&5
  9439. ( exit $ac_status )
  9440. ac_cv_func_stat_empty_string_bug=yes
  9441. fi
  9442. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9443. fi
  9444. fi
  9445. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  9446. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  9447. if test $ac_cv_func_stat_empty_string_bug = yes; then
  9448. case " $LIBOBJS " in
  9449. *" stat.$ac_objext "* ) ;;
  9450. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  9451. ;;
  9452. esac
  9453. cat >>confdefs.h <<_ACEOF
  9454. #define HAVE_STAT_EMPTY_STRING_BUG 1
  9455. _ACEOF
  9456. fi
  9457. { echo "$as_me:$LINENO: checking for struct timespec" >&5
  9458. echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
  9459. if test "${ac_cv_type_struct_timespec+set}" = set; then
  9460. echo $ECHO_N "(cached) $ECHO_C" >&6
  9461. else
  9462. cat >conftest.$ac_ext <<_ACEOF
  9463. /* confdefs.h. */
  9464. _ACEOF
  9465. cat confdefs.h >>conftest.$ac_ext
  9466. cat >>conftest.$ac_ext <<_ACEOF
  9467. /* end confdefs.h. */
  9468. #include <sys/types.h>
  9469. #include <sys/time.h>
  9470. #include <time.h>
  9471. typedef struct timespec ac__type_new_;
  9472. int
  9473. main ()
  9474. {
  9475. if ((ac__type_new_ *) 0)
  9476. return 0;
  9477. if (sizeof (ac__type_new_))
  9478. return 0;
  9479. ;
  9480. return 0;
  9481. }
  9482. _ACEOF
  9483. rm -f conftest.$ac_objext
  9484. if { (ac_try="$ac_compile"
  9485. case "(($ac_try" in
  9486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9487. *) ac_try_echo=$ac_try;;
  9488. esac
  9489. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9490. (eval "$ac_compile") 2>conftest.er1
  9491. ac_status=$?
  9492. grep -v '^ *+' conftest.er1 >conftest.err
  9493. rm -f conftest.er1
  9494. cat conftest.err >&5
  9495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9496. (exit $ac_status); } && {
  9497. test -z "$ac_cxx_werror_flag" ||
  9498. test ! -s conftest.err
  9499. } && test -s conftest.$ac_objext; then
  9500. ac_cv_type_struct_timespec=yes
  9501. else
  9502. echo "$as_me: failed program was:" >&5
  9503. sed 's/^/| /' conftest.$ac_ext >&5
  9504. ac_cv_type_struct_timespec=no
  9505. fi
  9506. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9507. fi
  9508. { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
  9509. echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
  9510. if test $ac_cv_type_struct_timespec = yes; then
  9511. cat >>confdefs.h <<\_ACEOF
  9512. #define HAVE_TIMESPEC 1
  9513. _ACEOF
  9514. fi
  9515. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  9516. { echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
  9517. echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6; }
  9518. if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
  9519. echo $ECHO_N "(cached) $ECHO_C" >&6
  9520. else
  9521. cat >conftest.$ac_ext <<_ACEOF
  9522. /* confdefs.h. */
  9523. _ACEOF
  9524. cat confdefs.h >>conftest.$ac_ext
  9525. cat >>conftest.$ac_ext <<_ACEOF
  9526. /* end confdefs.h. */
  9527. $ac_includes_default
  9528. int
  9529. main ()
  9530. {
  9531. static struct stat ac_aggr;
  9532. if (ac_aggr.st_mtim)
  9533. return 0;
  9534. ;
  9535. return 0;
  9536. }
  9537. _ACEOF
  9538. rm -f conftest.$ac_objext
  9539. if { (ac_try="$ac_compile"
  9540. case "(($ac_try" in
  9541. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9542. *) ac_try_echo=$ac_try;;
  9543. esac
  9544. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9545. (eval "$ac_compile") 2>conftest.er1
  9546. ac_status=$?
  9547. grep -v '^ *+' conftest.er1 >conftest.err
  9548. rm -f conftest.er1
  9549. cat conftest.err >&5
  9550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9551. (exit $ac_status); } && {
  9552. test -z "$ac_cxx_werror_flag" ||
  9553. test ! -s conftest.err
  9554. } && test -s conftest.$ac_objext; then
  9555. ac_cv_member_struct_stat_st_mtim=yes
  9556. else
  9557. echo "$as_me: failed program was:" >&5
  9558. sed 's/^/| /' conftest.$ac_ext >&5
  9559. cat >conftest.$ac_ext <<_ACEOF
  9560. /* confdefs.h. */
  9561. _ACEOF
  9562. cat confdefs.h >>conftest.$ac_ext
  9563. cat >>conftest.$ac_ext <<_ACEOF
  9564. /* end confdefs.h. */
  9565. $ac_includes_default
  9566. int
  9567. main ()
  9568. {
  9569. static struct stat ac_aggr;
  9570. if (sizeof ac_aggr.st_mtim)
  9571. return 0;
  9572. ;
  9573. return 0;
  9574. }
  9575. _ACEOF
  9576. rm -f conftest.$ac_objext
  9577. if { (ac_try="$ac_compile"
  9578. case "(($ac_try" in
  9579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9580. *) ac_try_echo=$ac_try;;
  9581. esac
  9582. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9583. (eval "$ac_compile") 2>conftest.er1
  9584. ac_status=$?
  9585. grep -v '^ *+' conftest.er1 >conftest.err
  9586. rm -f conftest.er1
  9587. cat conftest.err >&5
  9588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9589. (exit $ac_status); } && {
  9590. test -z "$ac_cxx_werror_flag" ||
  9591. test ! -s conftest.err
  9592. } && test -s conftest.$ac_objext; then
  9593. ac_cv_member_struct_stat_st_mtim=yes
  9594. else
  9595. echo "$as_me: failed program was:" >&5
  9596. sed 's/^/| /' conftest.$ac_ext >&5
  9597. ac_cv_member_struct_stat_st_mtim=no
  9598. fi
  9599. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9600. fi
  9601. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9602. fi
  9603. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
  9604. echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6; }
  9605. if test $ac_cv_member_struct_stat_st_mtim = yes; then
  9606. cat >>confdefs.h <<\_ACEOF
  9607. #define HAVE_ST_MTIM 1
  9608. _ACEOF
  9609. else
  9610. { echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
  9611. echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6; }
  9612. if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
  9613. echo $ECHO_N "(cached) $ECHO_C" >&6
  9614. else
  9615. cat >conftest.$ac_ext <<_ACEOF
  9616. /* confdefs.h. */
  9617. _ACEOF
  9618. cat confdefs.h >>conftest.$ac_ext
  9619. cat >>conftest.$ac_ext <<_ACEOF
  9620. /* end confdefs.h. */
  9621. $ac_includes_default
  9622. int
  9623. main ()
  9624. {
  9625. static struct stat ac_aggr;
  9626. if (ac_aggr.st_mtimespec)
  9627. return 0;
  9628. ;
  9629. return 0;
  9630. }
  9631. _ACEOF
  9632. rm -f conftest.$ac_objext
  9633. if { (ac_try="$ac_compile"
  9634. case "(($ac_try" in
  9635. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9636. *) ac_try_echo=$ac_try;;
  9637. esac
  9638. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9639. (eval "$ac_compile") 2>conftest.er1
  9640. ac_status=$?
  9641. grep -v '^ *+' conftest.er1 >conftest.err
  9642. rm -f conftest.er1
  9643. cat conftest.err >&5
  9644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9645. (exit $ac_status); } && {
  9646. test -z "$ac_cxx_werror_flag" ||
  9647. test ! -s conftest.err
  9648. } && test -s conftest.$ac_objext; then
  9649. ac_cv_member_struct_stat_st_mtimespec=yes
  9650. else
  9651. echo "$as_me: failed program was:" >&5
  9652. sed 's/^/| /' conftest.$ac_ext >&5
  9653. cat >conftest.$ac_ext <<_ACEOF
  9654. /* confdefs.h. */
  9655. _ACEOF
  9656. cat confdefs.h >>conftest.$ac_ext
  9657. cat >>conftest.$ac_ext <<_ACEOF
  9658. /* end confdefs.h. */
  9659. $ac_includes_default
  9660. int
  9661. main ()
  9662. {
  9663. static struct stat ac_aggr;
  9664. if (sizeof ac_aggr.st_mtimespec)
  9665. return 0;
  9666. ;
  9667. return 0;
  9668. }
  9669. _ACEOF
  9670. rm -f conftest.$ac_objext
  9671. if { (ac_try="$ac_compile"
  9672. case "(($ac_try" in
  9673. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9674. *) ac_try_echo=$ac_try;;
  9675. esac
  9676. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9677. (eval "$ac_compile") 2>conftest.er1
  9678. ac_status=$?
  9679. grep -v '^ *+' conftest.er1 >conftest.err
  9680. rm -f conftest.er1
  9681. cat conftest.err >&5
  9682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9683. (exit $ac_status); } && {
  9684. test -z "$ac_cxx_werror_flag" ||
  9685. test ! -s conftest.err
  9686. } && test -s conftest.$ac_objext; then
  9687. ac_cv_member_struct_stat_st_mtimespec=yes
  9688. else
  9689. echo "$as_me: failed program was:" >&5
  9690. sed 's/^/| /' conftest.$ac_ext >&5
  9691. ac_cv_member_struct_stat_st_mtimespec=no
  9692. fi
  9693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9694. fi
  9695. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9696. fi
  9697. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
  9698. echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6; }
  9699. if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
  9700. cat >>confdefs.h <<\_ACEOF
  9701. #define HAVE_ST_MTIMESPEC 1
  9702. _ACEOF
  9703. fi
  9704. fi
  9705. { echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
  9706. echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6; }
  9707. cat >conftest.$ac_ext <<_ACEOF
  9708. /* confdefs.h. */
  9709. _ACEOF
  9710. cat confdefs.h >>conftest.$ac_ext
  9711. cat >>conftest.$ac_ext <<_ACEOF
  9712. /* end confdefs.h. */
  9713. #include <sys/types.h>
  9714. #include <sys/time.h>
  9715. int
  9716. main ()
  9717. {
  9718. struct timespec ts1, ts2;
  9719. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  9720. #ifndef timespecsub
  9721. #error missing timespecsub
  9722. #endif
  9723. timespecsub(&ts1, &ts2);
  9724. ;
  9725. return 0;
  9726. }
  9727. _ACEOF
  9728. rm -f conftest.$ac_objext
  9729. if { (ac_try="$ac_compile"
  9730. case "(($ac_try" in
  9731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9732. *) ac_try_echo=$ac_try;;
  9733. esac
  9734. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9735. (eval "$ac_compile") 2>conftest.er1
  9736. ac_status=$?
  9737. grep -v '^ *+' conftest.er1 >conftest.err
  9738. rm -f conftest.er1
  9739. cat conftest.err >&5
  9740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9741. (exit $ac_status); } && {
  9742. test -z "$ac_cxx_werror_flag" ||
  9743. test ! -s conftest.err
  9744. } && test -s conftest.$ac_objext; then
  9745. cat >>confdefs.h <<\_ACEOF
  9746. #define HAVE_TIMESPECSUB2 1
  9747. _ACEOF
  9748. { echo "$as_me:$LINENO: result: yes" >&5
  9749. echo "${ECHO_T}yes" >&6; }
  9750. else
  9751. echo "$as_me: failed program was:" >&5
  9752. sed 's/^/| /' conftest.$ac_ext >&5
  9753. { echo "$as_me:$LINENO: result: no" >&5
  9754. echo "${ECHO_T}no" >&6; }
  9755. fi
  9756. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9757. fi
  9758. for ac_func in strftime
  9759. do
  9760. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9761. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9762. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9763. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9764. echo $ECHO_N "(cached) $ECHO_C" >&6
  9765. else
  9766. cat >conftest.$ac_ext <<_ACEOF
  9767. /* confdefs.h. */
  9768. _ACEOF
  9769. cat confdefs.h >>conftest.$ac_ext
  9770. cat >>conftest.$ac_ext <<_ACEOF
  9771. /* end confdefs.h. */
  9772. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9773. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9774. #define $ac_func innocuous_$ac_func
  9775. /* System header to define __stub macros and hopefully few prototypes,
  9776. which can conflict with char $ac_func (); below.
  9777. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9778. <limits.h> exists even on freestanding compilers. */
  9779. #ifdef __STDC__
  9780. # include <limits.h>
  9781. #else
  9782. # include <assert.h>
  9783. #endif
  9784. #undef $ac_func
  9785. /* Override any GCC internal prototype to avoid an error.
  9786. Use char because int might match the return type of a GCC
  9787. builtin and then its argument prototype would still apply. */
  9788. #ifdef __cplusplus
  9789. extern "C"
  9790. #endif
  9791. char $ac_func ();
  9792. /* The GNU C library defines this for functions which it implements
  9793. to always fail with ENOSYS. Some functions are actually named
  9794. something starting with __ and the normal name is an alias. */
  9795. #if defined __stub_$ac_func || defined __stub___$ac_func
  9796. choke me
  9797. #endif
  9798. int
  9799. main ()
  9800. {
  9801. return $ac_func ();
  9802. ;
  9803. return 0;
  9804. }
  9805. _ACEOF
  9806. rm -f conftest.$ac_objext conftest$ac_exeext
  9807. if { (ac_try="$ac_link"
  9808. case "(($ac_try" in
  9809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9810. *) ac_try_echo=$ac_try;;
  9811. esac
  9812. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9813. (eval "$ac_link") 2>conftest.er1
  9814. ac_status=$?
  9815. grep -v '^ *+' conftest.er1 >conftest.err
  9816. rm -f conftest.er1
  9817. cat conftest.err >&5
  9818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9819. (exit $ac_status); } && {
  9820. test -z "$ac_cxx_werror_flag" ||
  9821. test ! -s conftest.err
  9822. } && test -s conftest$ac_exeext &&
  9823. $as_test_x conftest$ac_exeext; then
  9824. eval "$as_ac_var=yes"
  9825. else
  9826. echo "$as_me: failed program was:" >&5
  9827. sed 's/^/| /' conftest.$ac_ext >&5
  9828. eval "$as_ac_var=no"
  9829. fi
  9830. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9831. conftest$ac_exeext conftest.$ac_ext
  9832. fi
  9833. ac_res=`eval echo '${'$as_ac_var'}'`
  9834. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9835. echo "${ECHO_T}$ac_res" >&6; }
  9836. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9837. cat >>confdefs.h <<_ACEOF
  9838. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9839. _ACEOF
  9840. else
  9841. # strftime is in -lintl on SCO UNIX.
  9842. { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  9843. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
  9844. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  9845. echo $ECHO_N "(cached) $ECHO_C" >&6
  9846. else
  9847. ac_check_lib_save_LIBS=$LIBS
  9848. LIBS="-lintl $LIBS"
  9849. cat >conftest.$ac_ext <<_ACEOF
  9850. /* confdefs.h. */
  9851. _ACEOF
  9852. cat confdefs.h >>conftest.$ac_ext
  9853. cat >>conftest.$ac_ext <<_ACEOF
  9854. /* end confdefs.h. */
  9855. /* Override any GCC internal prototype to avoid an error.
  9856. Use char because int might match the return type of a GCC
  9857. builtin and then its argument prototype would still apply. */
  9858. #ifdef __cplusplus
  9859. extern "C"
  9860. #endif
  9861. char strftime ();
  9862. int
  9863. main ()
  9864. {
  9865. return strftime ();
  9866. ;
  9867. return 0;
  9868. }
  9869. _ACEOF
  9870. rm -f conftest.$ac_objext conftest$ac_exeext
  9871. if { (ac_try="$ac_link"
  9872. case "(($ac_try" in
  9873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9874. *) ac_try_echo=$ac_try;;
  9875. esac
  9876. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9877. (eval "$ac_link") 2>conftest.er1
  9878. ac_status=$?
  9879. grep -v '^ *+' conftest.er1 >conftest.err
  9880. rm -f conftest.er1
  9881. cat conftest.err >&5
  9882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9883. (exit $ac_status); } && {
  9884. test -z "$ac_cxx_werror_flag" ||
  9885. test ! -s conftest.err
  9886. } && test -s conftest$ac_exeext &&
  9887. $as_test_x conftest$ac_exeext; then
  9888. ac_cv_lib_intl_strftime=yes
  9889. else
  9890. echo "$as_me: failed program was:" >&5
  9891. sed 's/^/| /' conftest.$ac_ext >&5
  9892. ac_cv_lib_intl_strftime=no
  9893. fi
  9894. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9895. conftest$ac_exeext conftest.$ac_ext
  9896. LIBS=$ac_check_lib_save_LIBS
  9897. fi
  9898. { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  9899. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
  9900. if test $ac_cv_lib_intl_strftime = yes; then
  9901. cat >>confdefs.h <<\_ACEOF
  9902. #define HAVE_STRFTIME 1
  9903. _ACEOF
  9904. LIBS="-lintl $LIBS"
  9905. fi
  9906. fi
  9907. done
  9908. #checkpoint
  9909. cat >confcache <<\_ACEOF
  9910. # This file is a shell script that caches the results of configure
  9911. # tests run on this system so they can be shared between configure
  9912. # scripts and configure runs, see configure's option --config-cache.
  9913. # It is not useful on other systems. If it contains results you don't
  9914. # want to keep, you may remove or edit it.
  9915. #
  9916. # config.status only pays attention to the cache file if you give it
  9917. # the --recheck option to rerun configure.
  9918. #
  9919. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9920. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9921. # following values.
  9922. _ACEOF
  9923. # The following way of writing the cache mishandles newlines in values,
  9924. # but we know of no workaround that is simple, portable, and efficient.
  9925. # So, we kill variables containing newlines.
  9926. # Ultrix sh set writes to stderr and can't be redirected directly,
  9927. # and sets the high bit in the cache file unless we assign to the vars.
  9928. (
  9929. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9930. eval ac_val=\$$ac_var
  9931. case $ac_val in #(
  9932. *${as_nl}*)
  9933. case $ac_var in #(
  9934. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  9935. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  9936. esac
  9937. case $ac_var in #(
  9938. _ | IFS | as_nl) ;; #(
  9939. *) $as_unset $ac_var ;;
  9940. esac ;;
  9941. esac
  9942. done
  9943. (set) 2>&1 |
  9944. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9945. *${as_nl}ac_space=\ *)
  9946. # `set' does not quote correctly, so add quotes (double-quote
  9947. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9948. sed -n \
  9949. "s/'/'\\\\''/g;
  9950. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9951. ;; #(
  9952. *)
  9953. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9954. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9955. ;;
  9956. esac |
  9957. sort
  9958. ) |
  9959. sed '
  9960. /^ac_cv_env_/b end
  9961. t clear
  9962. :clear
  9963. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9964. t end
  9965. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9966. :end' >>confcache
  9967. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9968. if test -w "$cache_file"; then
  9969. test "x$cache_file" != "x/dev/null" &&
  9970. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  9971. echo "$as_me: updating cache $cache_file" >&6;}
  9972. cat confcache >$cache_file
  9973. else
  9974. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  9975. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9976. fi
  9977. fi
  9978. rm -f confcache
  9979. for ac_func in clock fsync getrusage isascii
  9980. do
  9981. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9982. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9983. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9984. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9985. echo $ECHO_N "(cached) $ECHO_C" >&6
  9986. else
  9987. cat >conftest.$ac_ext <<_ACEOF
  9988. /* confdefs.h. */
  9989. _ACEOF
  9990. cat confdefs.h >>conftest.$ac_ext
  9991. cat >>conftest.$ac_ext <<_ACEOF
  9992. /* end confdefs.h. */
  9993. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9994. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9995. #define $ac_func innocuous_$ac_func
  9996. /* System header to define __stub macros and hopefully few prototypes,
  9997. which can conflict with char $ac_func (); below.
  9998. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9999. <limits.h> exists even on freestanding compilers. */
  10000. #ifdef __STDC__
  10001. # include <limits.h>
  10002. #else
  10003. # include <assert.h>
  10004. #endif
  10005. #undef $ac_func
  10006. /* Override any GCC internal prototype to avoid an error.
  10007. Use char because int might match the return type of a GCC
  10008. builtin and then its argument prototype would still apply. */
  10009. #ifdef __cplusplus
  10010. extern "C"
  10011. #endif
  10012. char $ac_func ();
  10013. /* The GNU C library defines this for functions which it implements
  10014. to always fail with ENOSYS. Some functions are actually named
  10015. something starting with __ and the normal name is an alias. */
  10016. #if defined __stub_$ac_func || defined __stub___$ac_func
  10017. choke me
  10018. #endif
  10019. int
  10020. main ()
  10021. {
  10022. return $ac_func ();
  10023. ;
  10024. return 0;
  10025. }
  10026. _ACEOF
  10027. rm -f conftest.$ac_objext conftest$ac_exeext
  10028. if { (ac_try="$ac_link"
  10029. case "(($ac_try" in
  10030. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10031. *) ac_try_echo=$ac_try;;
  10032. esac
  10033. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10034. (eval "$ac_link") 2>conftest.er1
  10035. ac_status=$?
  10036. grep -v '^ *+' conftest.er1 >conftest.err
  10037. rm -f conftest.er1
  10038. cat conftest.err >&5
  10039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10040. (exit $ac_status); } && {
  10041. test -z "$ac_cxx_werror_flag" ||
  10042. test ! -s conftest.err
  10043. } && test -s conftest$ac_exeext &&
  10044. $as_test_x conftest$ac_exeext; then
  10045. eval "$as_ac_var=yes"
  10046. else
  10047. echo "$as_me: failed program was:" >&5
  10048. sed 's/^/| /' conftest.$ac_ext >&5
  10049. eval "$as_ac_var=no"
  10050. fi
  10051. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10052. conftest$ac_exeext conftest.$ac_ext
  10053. fi
  10054. ac_res=`eval echo '${'$as_ac_var'}'`
  10055. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10056. echo "${ECHO_T}$ac_res" >&6; }
  10057. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10058. cat >>confdefs.h <<_ACEOF
  10059. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10060. _ACEOF
  10061. fi
  10062. done
  10063. for ac_func in memcpy memset random rename snprintf srandom gettime
  10064. do
  10065. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10066. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10067. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10068. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10069. echo $ECHO_N "(cached) $ECHO_C" >&6
  10070. else
  10071. cat >conftest.$ac_ext <<_ACEOF
  10072. /* confdefs.h. */
  10073. _ACEOF
  10074. cat confdefs.h >>conftest.$ac_ext
  10075. cat >>conftest.$ac_ext <<_ACEOF
  10076. /* end confdefs.h. */
  10077. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10078. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10079. #define $ac_func innocuous_$ac_func
  10080. /* System header to define __stub macros and hopefully few prototypes,
  10081. which can conflict with char $ac_func (); below.
  10082. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10083. <limits.h> exists even on freestanding compilers. */
  10084. #ifdef __STDC__
  10085. # include <limits.h>
  10086. #else
  10087. # include <assert.h>
  10088. #endif
  10089. #undef $ac_func
  10090. /* Override any GCC internal prototype to avoid an error.
  10091. Use char because int might match the return type of a GCC
  10092. builtin and then its argument prototype would still apply. */
  10093. #ifdef __cplusplus
  10094. extern "C"
  10095. #endif
  10096. char $ac_func ();
  10097. /* The GNU C library defines this for functions which it implements
  10098. to always fail with ENOSYS. Some functions are actually named
  10099. something starting with __ and the normal name is an alias. */
  10100. #if defined __stub_$ac_func || defined __stub___$ac_func
  10101. choke me
  10102. #endif
  10103. int
  10104. main ()
  10105. {
  10106. return $ac_func ();
  10107. ;
  10108. return 0;
  10109. }
  10110. _ACEOF
  10111. rm -f conftest.$ac_objext conftest$ac_exeext
  10112. if { (ac_try="$ac_link"
  10113. case "(($ac_try" in
  10114. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10115. *) ac_try_echo=$ac_try;;
  10116. esac
  10117. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10118. (eval "$ac_link") 2>conftest.er1
  10119. ac_status=$?
  10120. grep -v '^ *+' conftest.er1 >conftest.err
  10121. rm -f conftest.er1
  10122. cat conftest.err >&5
  10123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10124. (exit $ac_status); } && {
  10125. test -z "$ac_cxx_werror_flag" ||
  10126. test ! -s conftest.err
  10127. } && test -s conftest$ac_exeext &&
  10128. $as_test_x conftest$ac_exeext; then
  10129. eval "$as_ac_var=yes"
  10130. else
  10131. echo "$as_me: failed program was:" >&5
  10132. sed 's/^/| /' conftest.$ac_ext >&5
  10133. eval "$as_ac_var=no"
  10134. fi
  10135. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10136. conftest$ac_exeext conftest.$ac_ext
  10137. fi
  10138. ac_res=`eval echo '${'$as_ac_var'}'`
  10139. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10140. echo "${ECHO_T}$ac_res" >&6; }
  10141. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10142. cat >>confdefs.h <<_ACEOF
  10143. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10144. _ACEOF
  10145. fi
  10146. done
  10147. #checkpoint
  10148. cat >confcache <<\_ACEOF
  10149. # This file is a shell script that caches the results of configure
  10150. # tests run on this system so they can be shared between configure
  10151. # scripts and configure runs, see configure's option --config-cache.
  10152. # It is not useful on other systems. If it contains results you don't
  10153. # want to keep, you may remove or edit it.
  10154. #
  10155. # config.status only pays attention to the cache file if you give it
  10156. # the --recheck option to rerun configure.
  10157. #
  10158. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10159. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10160. # following values.
  10161. _ACEOF
  10162. # The following way of writing the cache mishandles newlines in values,
  10163. # but we know of no workaround that is simple, portable, and efficient.
  10164. # So, we kill variables containing newlines.
  10165. # Ultrix sh set writes to stderr and can't be redirected directly,
  10166. # and sets the high bit in the cache file unless we assign to the vars.
  10167. (
  10168. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10169. eval ac_val=\$$ac_var
  10170. case $ac_val in #(
  10171. *${as_nl}*)
  10172. case $ac_var in #(
  10173. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  10174. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  10175. esac
  10176. case $ac_var in #(
  10177. _ | IFS | as_nl) ;; #(
  10178. *) $as_unset $ac_var ;;
  10179. esac ;;
  10180. esac
  10181. done
  10182. (set) 2>&1 |
  10183. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10184. *${as_nl}ac_space=\ *)
  10185. # `set' does not quote correctly, so add quotes (double-quote
  10186. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10187. sed -n \
  10188. "s/'/'\\\\''/g;
  10189. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10190. ;; #(
  10191. *)
  10192. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10193. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10194. ;;
  10195. esac |
  10196. sort
  10197. ) |
  10198. sed '
  10199. /^ac_cv_env_/b end
  10200. t clear
  10201. :clear
  10202. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10203. t end
  10204. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10205. :end' >>confcache
  10206. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10207. if test -w "$cache_file"; then
  10208. test "x$cache_file" != "x/dev/null" &&
  10209. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  10210. echo "$as_me: updating cache $cache_file" >&6;}
  10211. cat confcache >$cache_file
  10212. else
  10213. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  10214. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10215. fi
  10216. fi
  10217. rm -f confcache
  10218. for ac_func in strcasecmp strncasecmp vsnprintf
  10219. do
  10220. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10221. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10222. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10223. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10224. echo $ECHO_N "(cached) $ECHO_C" >&6
  10225. else
  10226. cat >conftest.$ac_ext <<_ACEOF
  10227. /* confdefs.h. */
  10228. _ACEOF
  10229. cat confdefs.h >>conftest.$ac_ext
  10230. cat >>conftest.$ac_ext <<_ACEOF
  10231. /* end confdefs.h. */
  10232. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10233. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10234. #define $ac_func innocuous_$ac_func
  10235. /* System header to define __stub macros and hopefully few prototypes,
  10236. which can conflict with char $ac_func (); below.
  10237. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10238. <limits.h> exists even on freestanding compilers. */
  10239. #ifdef __STDC__
  10240. # include <limits.h>
  10241. #else
  10242. # include <assert.h>
  10243. #endif
  10244. #undef $ac_func
  10245. /* Override any GCC internal prototype to avoid an error.
  10246. Use char because int might match the return type of a GCC
  10247. builtin and then its argument prototype would still apply. */
  10248. #ifdef __cplusplus
  10249. extern "C"
  10250. #endif
  10251. char $ac_func ();
  10252. /* The GNU C library defines this for functions which it implements
  10253. to always fail with ENOSYS. Some functions are actually named
  10254. something starting with __ and the normal name is an alias. */
  10255. #if defined __stub_$ac_func || defined __stub___$ac_func
  10256. choke me
  10257. #endif
  10258. int
  10259. main ()
  10260. {
  10261. return $ac_func ();
  10262. ;
  10263. return 0;
  10264. }
  10265. _ACEOF
  10266. rm -f conftest.$ac_objext conftest$ac_exeext
  10267. if { (ac_try="$ac_link"
  10268. case "(($ac_try" in
  10269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10270. *) ac_try_echo=$ac_try;;
  10271. esac
  10272. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10273. (eval "$ac_link") 2>conftest.er1
  10274. ac_status=$?
  10275. grep -v '^ *+' conftest.er1 >conftest.err
  10276. rm -f conftest.er1
  10277. cat conftest.err >&5
  10278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10279. (exit $ac_status); } && {
  10280. test -z "$ac_cxx_werror_flag" ||
  10281. test ! -s conftest.err
  10282. } && test -s conftest$ac_exeext &&
  10283. $as_test_x conftest$ac_exeext; then
  10284. eval "$as_ac_var=yes"
  10285. else
  10286. echo "$as_me: failed program was:" >&5
  10287. sed 's/^/| /' conftest.$ac_ext >&5
  10288. eval "$as_ac_var=no"
  10289. fi
  10290. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10291. conftest$ac_exeext conftest.$ac_ext
  10292. fi
  10293. ac_res=`eval echo '${'$as_ac_var'}'`
  10294. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10295. echo "${ECHO_T}$ac_res" >&6; }
  10296. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10297. cat >>confdefs.h <<_ACEOF
  10298. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10299. _ACEOF
  10300. fi
  10301. done
  10302. #autoscan suggested this....
  10303. #These are recommended by autoscan, but no code supports it currently
  10304. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  10305. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  10306. for ac_func in vsprintf
  10307. do
  10308. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10309. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10310. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10311. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10312. echo $ECHO_N "(cached) $ECHO_C" >&6
  10313. else
  10314. cat >conftest.$ac_ext <<_ACEOF
  10315. /* confdefs.h. */
  10316. _ACEOF
  10317. cat confdefs.h >>conftest.$ac_ext
  10318. cat >>conftest.$ac_ext <<_ACEOF
  10319. /* end confdefs.h. */
  10320. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10321. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10322. #define $ac_func innocuous_$ac_func
  10323. /* System header to define __stub macros and hopefully few prototypes,
  10324. which can conflict with char $ac_func (); below.
  10325. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10326. <limits.h> exists even on freestanding compilers. */
  10327. #ifdef __STDC__
  10328. # include <limits.h>
  10329. #else
  10330. # include <assert.h>
  10331. #endif
  10332. #undef $ac_func
  10333. /* Override any GCC internal prototype to avoid an error.
  10334. Use char because int might match the return type of a GCC
  10335. builtin and then its argument prototype would still apply. */
  10336. #ifdef __cplusplus
  10337. extern "C"
  10338. #endif
  10339. char $ac_func ();
  10340. /* The GNU C library defines this for functions which it implements
  10341. to always fail with ENOSYS. Some functions are actually named
  10342. something starting with __ and the normal name is an alias. */
  10343. #if defined __stub_$ac_func || defined __stub___$ac_func
  10344. choke me
  10345. #endif
  10346. int
  10347. main ()
  10348. {
  10349. return $ac_func ();
  10350. ;
  10351. return 0;
  10352. }
  10353. _ACEOF
  10354. rm -f conftest.$ac_objext conftest$ac_exeext
  10355. if { (ac_try="$ac_link"
  10356. case "(($ac_try" in
  10357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10358. *) ac_try_echo=$ac_try;;
  10359. esac
  10360. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10361. (eval "$ac_link") 2>conftest.er1
  10362. ac_status=$?
  10363. grep -v '^ *+' conftest.er1 >conftest.err
  10364. rm -f conftest.er1
  10365. cat conftest.err >&5
  10366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10367. (exit $ac_status); } && {
  10368. test -z "$ac_cxx_werror_flag" ||
  10369. test ! -s conftest.err
  10370. } && test -s conftest$ac_exeext &&
  10371. $as_test_x conftest$ac_exeext; then
  10372. eval "$as_ac_var=yes"
  10373. else
  10374. echo "$as_me: failed program was:" >&5
  10375. sed 's/^/| /' conftest.$ac_ext >&5
  10376. eval "$as_ac_var=no"
  10377. fi
  10378. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10379. conftest$ac_exeext conftest.$ac_ext
  10380. fi
  10381. ac_res=`eval echo '${'$as_ac_var'}'`
  10382. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10383. echo "${ECHO_T}$ac_res" >&6; }
  10384. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10385. cat >>confdefs.h <<_ACEOF
  10386. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10387. _ACEOF
  10388. fi
  10389. done
  10390. if test "$ac_cv_func_vsprintf" = "no"
  10391. then
  10392. cat << 'EOF' >&2
  10393. configure: error:
  10394. Your system does not have the sprintf/vsprintf libraries.
  10395. These are required to compile almost anything. Sorry.
  10396. EOF
  10397. exit 1
  10398. fi
  10399. for ac_func in uname
  10400. do
  10401. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10402. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10403. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10404. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10405. echo $ECHO_N "(cached) $ECHO_C" >&6
  10406. else
  10407. cat >conftest.$ac_ext <<_ACEOF
  10408. /* confdefs.h. */
  10409. _ACEOF
  10410. cat confdefs.h >>conftest.$ac_ext
  10411. cat >>conftest.$ac_ext <<_ACEOF
  10412. /* end confdefs.h. */
  10413. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10414. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10415. #define $ac_func innocuous_$ac_func
  10416. /* System header to define __stub macros and hopefully few prototypes,
  10417. which can conflict with char $ac_func (); below.
  10418. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10419. <limits.h> exists even on freestanding compilers. */
  10420. #ifdef __STDC__
  10421. # include <limits.h>
  10422. #else
  10423. # include <assert.h>
  10424. #endif
  10425. #undef $ac_func
  10426. /* Override any GCC internal prototype to avoid an error.
  10427. Use char because int might match the return type of a GCC
  10428. builtin and then its argument prototype would still apply. */
  10429. #ifdef __cplusplus
  10430. extern "C"
  10431. #endif
  10432. char $ac_func ();
  10433. /* The GNU C library defines this for functions which it implements
  10434. to always fail with ENOSYS. Some functions are actually named
  10435. something starting with __ and the normal name is an alias. */
  10436. #if defined __stub_$ac_func || defined __stub___$ac_func
  10437. choke me
  10438. #endif
  10439. int
  10440. main ()
  10441. {
  10442. return $ac_func ();
  10443. ;
  10444. return 0;
  10445. }
  10446. _ACEOF
  10447. rm -f conftest.$ac_objext conftest$ac_exeext
  10448. if { (ac_try="$ac_link"
  10449. case "(($ac_try" in
  10450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10451. *) ac_try_echo=$ac_try;;
  10452. esac
  10453. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10454. (eval "$ac_link") 2>conftest.er1
  10455. ac_status=$?
  10456. grep -v '^ *+' conftest.er1 >conftest.err
  10457. rm -f conftest.er1
  10458. cat conftest.err >&5
  10459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10460. (exit $ac_status); } && {
  10461. test -z "$ac_cxx_werror_flag" ||
  10462. test ! -s conftest.err
  10463. } && test -s conftest$ac_exeext &&
  10464. $as_test_x conftest$ac_exeext; then
  10465. eval "$as_ac_var=yes"
  10466. else
  10467. echo "$as_me: failed program was:" >&5
  10468. sed 's/^/| /' conftest.$ac_ext >&5
  10469. eval "$as_ac_var=no"
  10470. fi
  10471. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10472. conftest$ac_exeext conftest.$ac_ext
  10473. fi
  10474. ac_res=`eval echo '${'$as_ac_var'}'`
  10475. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10476. echo "${ECHO_T}$ac_res" >&6; }
  10477. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10478. cat >>confdefs.h <<_ACEOF
  10479. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10480. _ACEOF
  10481. fi
  10482. done
  10483. if test "$ac_cv_func_uname" = "no"
  10484. then
  10485. cat << 'EOF' >&2
  10486. configure: error:
  10487. Your system does not have the uname() function.
  10488. This is required for the botpack.
  10489. EOF
  10490. exit 1
  10491. fi
  10492. # Make sure we have stdc headers, since we can't compile without them
  10493. if test "$ac_cv_header_stdc" = "no"
  10494. then
  10495. cat << 'EOF' >&2
  10496. configure: error:
  10497. Your system must support ANSI C Header files.
  10498. These are required for the language support. Sorry.
  10499. EOF
  10500. exit 1
  10501. fi
  10502. #checkpoint
  10503. cat >confcache <<\_ACEOF
  10504. # This file is a shell script that caches the results of configure
  10505. # tests run on this system so they can be shared between configure
  10506. # scripts and configure runs, see configure's option --config-cache.
  10507. # It is not useful on other systems. If it contains results you don't
  10508. # want to keep, you may remove or edit it.
  10509. #
  10510. # config.status only pays attention to the cache file if you give it
  10511. # the --recheck option to rerun configure.
  10512. #
  10513. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10514. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10515. # following values.
  10516. _ACEOF
  10517. # The following way of writing the cache mishandles newlines in values,
  10518. # but we know of no workaround that is simple, portable, and efficient.
  10519. # So, we kill variables containing newlines.
  10520. # Ultrix sh set writes to stderr and can't be redirected directly,
  10521. # and sets the high bit in the cache file unless we assign to the vars.
  10522. (
  10523. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10524. eval ac_val=\$$ac_var
  10525. case $ac_val in #(
  10526. *${as_nl}*)
  10527. case $ac_var in #(
  10528. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  10529. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  10530. esac
  10531. case $ac_var in #(
  10532. _ | IFS | as_nl) ;; #(
  10533. *) $as_unset $ac_var ;;
  10534. esac ;;
  10535. esac
  10536. done
  10537. (set) 2>&1 |
  10538. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10539. *${as_nl}ac_space=\ *)
  10540. # `set' does not quote correctly, so add quotes (double-quote
  10541. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10542. sed -n \
  10543. "s/'/'\\\\''/g;
  10544. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10545. ;; #(
  10546. *)
  10547. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10548. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10549. ;;
  10550. esac |
  10551. sort
  10552. ) |
  10553. sed '
  10554. /^ac_cv_env_/b end
  10555. t clear
  10556. :clear
  10557. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10558. t end
  10559. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10560. :end' >>confcache
  10561. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10562. if test -w "$cache_file"; then
  10563. test "x$cache_file" != "x/dev/null" &&
  10564. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  10565. echo "$as_me: updating cache $cache_file" >&6;}
  10566. cat confcache >$cache_file
  10567. else
  10568. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  10569. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10570. fi
  10571. fi
  10572. rm -f confcache
  10573. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  10574. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  10575. cat >>confdefs.h <<_ACEOF
  10576. #define EGG_VERSION $version_num
  10577. _ACEOF
  10578. #FIND_WRAPS
  10579. case "$srcdir" in
  10580. [\\/]* | ?:[\\/]*)
  10581. MOD_UPDIR=""
  10582. ;;
  10583. *)
  10584. MOD_UPDIR="../"
  10585. ;;
  10586. esac
  10587. files="src/Makefile.in src/compat/Makefile.in src/bdlib/Makefile.in src/crypto/Makefile.in src/mod/channels.mod/Makefile src/mod/compress.mod/Makefile src/mod/console.mod/Makefile src/mod/ctcp.mod/Makefile src/mod/irc.mod/Makefile src/mod/server.mod/Makefile src/mod/share.mod/Makefile src/mod/transfer.mod/Makefile src/mod/update.mod/Makefile"
  10588. for mf in $files; do
  10589. # Strip MF so we end up with the name of the file.
  10590. # echo "MF: $mf"
  10591. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10592. dirpart=`$as_dirname -- "$mf" ||
  10593. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10594. X"$mf" : 'X\(//\)[^/]' \| \
  10595. X"$mf" : 'X\(//\)$' \| \
  10596. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  10597. echo X"$mf" |
  10598. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10599. s//\1/
  10600. q
  10601. }
  10602. /^X\(\/\/\)[^/].*/{
  10603. s//\1/
  10604. q
  10605. }
  10606. /^X\(\/\/\)$/{
  10607. s//\1/
  10608. q
  10609. }
  10610. /^X\(\/\).*/{
  10611. s//\1/
  10612. q
  10613. }
  10614. s/.*/./; q'`
  10615. # echo "dirpart: $dirpart mf: $mf"
  10616. # rm -rf "$dirpart/.deps/"
  10617. rm -f "$dirpart/.deps/includes"
  10618. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  10619. for file in `sed -n -e '
  10620. /^OBJS = .*\\\\$/ {
  10621. s/^OBJS = //
  10622. :loop
  10623. s/\\\\$//
  10624. p
  10625. n
  10626. /\\\\$/ b loop
  10627. p
  10628. }
  10629. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  10630. do
  10631. base=`basename $file .o`
  10632. test -f "$dirpart/$base.c" || continue
  10633. if ! test -f "$dirpart/.deps/$base.Po"; then
  10634. echo '# dummy' > "$dirpart/.deps/$base.Po"
  10635. #Remove the .o file, because it needs to be recompiled for its dependancies.
  10636. if test -f "$dirpart/$base.o"; then
  10637. rm -f "$dirpart/$base.o"
  10638. fi
  10639. fi
  10640. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  10641. echo "_$base.c:" >> "$dirpart/.deps/includes"
  10642. done
  10643. done
  10644. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/bdlib/Makefile src/crypto/Makefile src/mod/Makefile src/buildinfo.h"
  10645. cat >confcache <<\_ACEOF
  10646. # This file is a shell script that caches the results of configure
  10647. # tests run on this system so they can be shared between configure
  10648. # scripts and configure runs, see configure's option --config-cache.
  10649. # It is not useful on other systems. If it contains results you don't
  10650. # want to keep, you may remove or edit it.
  10651. #
  10652. # config.status only pays attention to the cache file if you give it
  10653. # the --recheck option to rerun configure.
  10654. #
  10655. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10656. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10657. # following values.
  10658. _ACEOF
  10659. # The following way of writing the cache mishandles newlines in values,
  10660. # but we know of no workaround that is simple, portable, and efficient.
  10661. # So, we kill variables containing newlines.
  10662. # Ultrix sh set writes to stderr and can't be redirected directly,
  10663. # and sets the high bit in the cache file unless we assign to the vars.
  10664. (
  10665. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10666. eval ac_val=\$$ac_var
  10667. case $ac_val in #(
  10668. *${as_nl}*)
  10669. case $ac_var in #(
  10670. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  10671. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  10672. esac
  10673. case $ac_var in #(
  10674. _ | IFS | as_nl) ;; #(
  10675. *) $as_unset $ac_var ;;
  10676. esac ;;
  10677. esac
  10678. done
  10679. (set) 2>&1 |
  10680. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10681. *${as_nl}ac_space=\ *)
  10682. # `set' does not quote correctly, so add quotes (double-quote
  10683. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10684. sed -n \
  10685. "s/'/'\\\\''/g;
  10686. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10687. ;; #(
  10688. *)
  10689. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10690. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10691. ;;
  10692. esac |
  10693. sort
  10694. ) |
  10695. sed '
  10696. /^ac_cv_env_/b end
  10697. t clear
  10698. :clear
  10699. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10700. t end
  10701. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10702. :end' >>confcache
  10703. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10704. if test -w "$cache_file"; then
  10705. test "x$cache_file" != "x/dev/null" &&
  10706. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  10707. echo "$as_me: updating cache $cache_file" >&6;}
  10708. cat confcache >$cache_file
  10709. else
  10710. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  10711. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10712. fi
  10713. fi
  10714. rm -f confcache
  10715. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10716. # Let make expand exec_prefix.
  10717. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10718. DEFS=-DHAVE_CONFIG_H
  10719. ac_libobjs=
  10720. ac_ltlibobjs=
  10721. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10722. # 1. Remove the extension, and $U if already installed.
  10723. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10724. ac_i=`echo "$ac_i" | sed "$ac_script"`
  10725. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10726. # will be set to the directory where LIBOBJS objects are built.
  10727. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10728. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  10729. done
  10730. LIBOBJS=$ac_libobjs
  10731. LTLIBOBJS=$ac_ltlibobjs
  10732. : ${CONFIG_STATUS=./config.status}
  10733. ac_clean_files_save=$ac_clean_files
  10734. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10735. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  10736. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10737. cat >$CONFIG_STATUS <<_ACEOF
  10738. #! $SHELL
  10739. # Generated by $as_me.
  10740. # Run this file to recreate the current configuration.
  10741. # Compiler output produced by configure, useful for debugging
  10742. # configure, is in config.log if it exists.
  10743. debug=false
  10744. ac_cs_recheck=false
  10745. ac_cs_silent=false
  10746. SHELL=\${CONFIG_SHELL-$SHELL}
  10747. _ACEOF
  10748. cat >>$CONFIG_STATUS <<\_ACEOF
  10749. ## --------------------- ##
  10750. ## M4sh Initialization. ##
  10751. ## --------------------- ##
  10752. # Be more Bourne compatible
  10753. DUALCASE=1; export DUALCASE # for MKS sh
  10754. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10755. emulate sh
  10756. NULLCMD=:
  10757. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10758. # is contrary to our usage. Disable this feature.
  10759. alias -g '${1+"$@"}'='"$@"'
  10760. setopt NO_GLOB_SUBST
  10761. else
  10762. case `(set -o) 2>/dev/null` in
  10763. *posix*) set -o posix ;;
  10764. esac
  10765. fi
  10766. # PATH needs CR
  10767. # Avoid depending upon Character Ranges.
  10768. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10769. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10770. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10771. as_cr_digits='0123456789'
  10772. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10773. # The user is always right.
  10774. if test "${PATH_SEPARATOR+set}" != set; then
  10775. echo "#! /bin/sh" >conf$$.sh
  10776. echo "exit 0" >>conf$$.sh
  10777. chmod +x conf$$.sh
  10778. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10779. PATH_SEPARATOR=';'
  10780. else
  10781. PATH_SEPARATOR=:
  10782. fi
  10783. rm -f conf$$.sh
  10784. fi
  10785. # Support unset when possible.
  10786. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10787. as_unset=unset
  10788. else
  10789. as_unset=false
  10790. fi
  10791. # IFS
  10792. # We need space, tab and new line, in precisely that order. Quoting is
  10793. # there to prevent editors from complaining about space-tab.
  10794. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10795. # splitting by setting IFS to empty value.)
  10796. as_nl='
  10797. '
  10798. IFS=" "" $as_nl"
  10799. # Find who we are. Look in the path if we contain no directory separator.
  10800. case $0 in
  10801. *[\\/]* ) as_myself=$0 ;;
  10802. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10803. for as_dir in $PATH
  10804. do
  10805. IFS=$as_save_IFS
  10806. test -z "$as_dir" && as_dir=.
  10807. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10808. done
  10809. IFS=$as_save_IFS
  10810. ;;
  10811. esac
  10812. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10813. # in which case we are not to be found in the path.
  10814. if test "x$as_myself" = x; then
  10815. as_myself=$0
  10816. fi
  10817. if test ! -f "$as_myself"; then
  10818. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10819. { (exit 1); exit 1; }
  10820. fi
  10821. # Work around bugs in pre-3.0 UWIN ksh.
  10822. for as_var in ENV MAIL MAILPATH
  10823. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  10824. done
  10825. PS1='$ '
  10826. PS2='> '
  10827. PS4='+ '
  10828. # NLS nuisances.
  10829. for as_var in \
  10830. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  10831. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  10832. LC_TELEPHONE LC_TIME
  10833. do
  10834. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  10835. eval $as_var=C; export $as_var
  10836. else
  10837. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  10838. fi
  10839. done
  10840. # Required to use basename.
  10841. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10842. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10843. as_expr=expr
  10844. else
  10845. as_expr=false
  10846. fi
  10847. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10848. as_basename=basename
  10849. else
  10850. as_basename=false
  10851. fi
  10852. # Name of the executable.
  10853. as_me=`$as_basename -- "$0" ||
  10854. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10855. X"$0" : 'X\(//\)$' \| \
  10856. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10857. echo X/"$0" |
  10858. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10859. s//\1/
  10860. q
  10861. }
  10862. /^X\/\(\/\/\)$/{
  10863. s//\1/
  10864. q
  10865. }
  10866. /^X\/\(\/\).*/{
  10867. s//\1/
  10868. q
  10869. }
  10870. s/.*/./; q'`
  10871. # CDPATH.
  10872. $as_unset CDPATH
  10873. as_lineno_1=$LINENO
  10874. as_lineno_2=$LINENO
  10875. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10876. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  10877. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  10878. # uniformly replaced by the line number. The first 'sed' inserts a
  10879. # line-number line after each line using $LINENO; the second 'sed'
  10880. # does the real work. The second script uses 'N' to pair each
  10881. # line-number line with the line containing $LINENO, and appends
  10882. # trailing '-' during substitution so that $LINENO is not a special
  10883. # case at line end.
  10884. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  10885. # scripts with optimization help from Paolo Bonzini. Blame Lee
  10886. # E. McMahon (1931-1989) for sed's syntax. :-)
  10887. sed -n '
  10888. p
  10889. /[$]LINENO/=
  10890. ' <$as_myself |
  10891. sed '
  10892. s/[$]LINENO.*/&-/
  10893. t lineno
  10894. b
  10895. :lineno
  10896. N
  10897. :loop
  10898. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  10899. t loop
  10900. s/-\n.*//
  10901. ' >$as_me.lineno &&
  10902. chmod +x "$as_me.lineno" ||
  10903. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  10904. { (exit 1); exit 1; }; }
  10905. # Don't try to exec as it changes $[0], causing all sort of problems
  10906. # (the dirname of $[0] is not the place where we might find the
  10907. # original and so on. Autoconf is especially sensitive to this).
  10908. . "./$as_me.lineno"
  10909. # Exit status is that of the last command.
  10910. exit
  10911. }
  10912. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10913. as_dirname=dirname
  10914. else
  10915. as_dirname=false
  10916. fi
  10917. ECHO_C= ECHO_N= ECHO_T=
  10918. case `echo -n x` in
  10919. -n*)
  10920. case `echo 'x\c'` in
  10921. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10922. *) ECHO_C='\c';;
  10923. esac;;
  10924. *)
  10925. ECHO_N='-n';;
  10926. esac
  10927. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10928. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10929. as_expr=expr
  10930. else
  10931. as_expr=false
  10932. fi
  10933. rm -f conf$$ conf$$.exe conf$$.file
  10934. if test -d conf$$.dir; then
  10935. rm -f conf$$.dir/conf$$.file
  10936. else
  10937. rm -f conf$$.dir
  10938. mkdir conf$$.dir
  10939. fi
  10940. echo >conf$$.file
  10941. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10942. as_ln_s='ln -s'
  10943. # ... but there are two gotchas:
  10944. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10945. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10946. # In both cases, we have to default to `cp -p'.
  10947. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10948. as_ln_s='cp -p'
  10949. elif ln conf$$.file conf$$ 2>/dev/null; then
  10950. as_ln_s=ln
  10951. else
  10952. as_ln_s='cp -p'
  10953. fi
  10954. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10955. rmdir conf$$.dir 2>/dev/null
  10956. if mkdir -p . 2>/dev/null; then
  10957. as_mkdir_p=:
  10958. else
  10959. test -d ./-p && rmdir ./-p
  10960. as_mkdir_p=false
  10961. fi
  10962. if test -x / >/dev/null 2>&1; then
  10963. as_test_x='test -x'
  10964. else
  10965. if ls -dL / >/dev/null 2>&1; then
  10966. as_ls_L_option=L
  10967. else
  10968. as_ls_L_option=
  10969. fi
  10970. as_test_x='
  10971. eval sh -c '\''
  10972. if test -d "$1"; then
  10973. test -d "$1/.";
  10974. else
  10975. case $1 in
  10976. -*)set "./$1";;
  10977. esac;
  10978. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  10979. ???[sx]*):;;*)false;;esac;fi
  10980. '\'' sh
  10981. '
  10982. fi
  10983. as_executable_p=$as_test_x
  10984. # Sed expression to map a string onto a valid CPP name.
  10985. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10986. # Sed expression to map a string onto a valid variable name.
  10987. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10988. exec 6>&1
  10989. # Save the log message, to keep $[0] and so on meaningful, and to
  10990. # report actual input values of CONFIG_FILES etc. instead of their
  10991. # values after options handling.
  10992. ac_log="
  10993. This file was extended by $as_me, which was
  10994. generated by GNU Autoconf 2.61. Invocation command line was
  10995. CONFIG_FILES = $CONFIG_FILES
  10996. CONFIG_HEADERS = $CONFIG_HEADERS
  10997. CONFIG_LINKS = $CONFIG_LINKS
  10998. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10999. $ $0 $@
  11000. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11001. "
  11002. _ACEOF
  11003. cat >>$CONFIG_STATUS <<_ACEOF
  11004. # Files that config.status was made for.
  11005. config_files="$ac_config_files"
  11006. config_headers="$ac_config_headers"
  11007. _ACEOF
  11008. cat >>$CONFIG_STATUS <<\_ACEOF
  11009. ac_cs_usage="\
  11010. \`$as_me' instantiates files from templates according to the
  11011. current configuration.
  11012. Usage: $0 [OPTIONS] [FILE]...
  11013. -h, --help print this help, then exit
  11014. -V, --version print version number and configuration settings, then exit
  11015. -q, --quiet do not print progress messages
  11016. -d, --debug don't remove temporary files
  11017. --recheck update $as_me by reconfiguring in the same conditions
  11018. --file=FILE[:TEMPLATE]
  11019. instantiate the configuration file FILE
  11020. --header=FILE[:TEMPLATE]
  11021. instantiate the configuration header FILE
  11022. Configuration files:
  11023. $config_files
  11024. Configuration headers:
  11025. $config_headers
  11026. Report bugs to <bug-autoconf@gnu.org>."
  11027. _ACEOF
  11028. cat >>$CONFIG_STATUS <<_ACEOF
  11029. ac_cs_version="\\
  11030. config.status
  11031. configured by $0, generated by GNU Autoconf 2.61,
  11032. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  11033. Copyright (C) 2006 Free Software Foundation, Inc.
  11034. This config.status script is free software; the Free Software Foundation
  11035. gives unlimited permission to copy, distribute and modify it."
  11036. ac_pwd='$ac_pwd'
  11037. srcdir='$srcdir'
  11038. _ACEOF
  11039. cat >>$CONFIG_STATUS <<\_ACEOF
  11040. # If no file are specified by the user, then we need to provide default
  11041. # value. By we need to know if files were specified by the user.
  11042. ac_need_defaults=:
  11043. while test $# != 0
  11044. do
  11045. case $1 in
  11046. --*=*)
  11047. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11048. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11049. ac_shift=:
  11050. ;;
  11051. *)
  11052. ac_option=$1
  11053. ac_optarg=$2
  11054. ac_shift=shift
  11055. ;;
  11056. esac
  11057. case $ac_option in
  11058. # Handling of the options.
  11059. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11060. ac_cs_recheck=: ;;
  11061. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11062. echo "$ac_cs_version"; exit ;;
  11063. --debug | --debu | --deb | --de | --d | -d )
  11064. debug=: ;;
  11065. --file | --fil | --fi | --f )
  11066. $ac_shift
  11067. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11068. ac_need_defaults=false;;
  11069. --header | --heade | --head | --hea )
  11070. $ac_shift
  11071. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11072. ac_need_defaults=false;;
  11073. --he | --h)
  11074. # Conflict between --help and --header
  11075. { echo "$as_me: error: ambiguous option: $1
  11076. Try \`$0 --help' for more information." >&2
  11077. { (exit 1); exit 1; }; };;
  11078. --help | --hel | -h )
  11079. echo "$ac_cs_usage"; exit ;;
  11080. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11081. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11082. ac_cs_silent=: ;;
  11083. # This is an error.
  11084. -*) { echo "$as_me: error: unrecognized option: $1
  11085. Try \`$0 --help' for more information." >&2
  11086. { (exit 1); exit 1; }; } ;;
  11087. *) ac_config_targets="$ac_config_targets $1"
  11088. ac_need_defaults=false ;;
  11089. esac
  11090. shift
  11091. done
  11092. ac_configure_extra_args=
  11093. if $ac_cs_silent; then
  11094. exec 6>/dev/null
  11095. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11096. fi
  11097. _ACEOF
  11098. cat >>$CONFIG_STATUS <<_ACEOF
  11099. if \$ac_cs_recheck; then
  11100. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11101. CONFIG_SHELL=$SHELL
  11102. export CONFIG_SHELL
  11103. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11104. fi
  11105. _ACEOF
  11106. cat >>$CONFIG_STATUS <<\_ACEOF
  11107. exec 5>>config.log
  11108. {
  11109. echo
  11110. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11111. ## Running $as_me. ##
  11112. _ASBOX
  11113. echo "$ac_log"
  11114. } >&5
  11115. _ACEOF
  11116. cat >>$CONFIG_STATUS <<_ACEOF
  11117. _ACEOF
  11118. cat >>$CONFIG_STATUS <<\_ACEOF
  11119. # Handling of arguments.
  11120. for ac_config_target in $ac_config_targets
  11121. do
  11122. case $ac_config_target in
  11123. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11124. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11125. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11126. "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  11127. "src/bdlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/bdlib/Makefile" ;;
  11128. "src/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  11129. "src/mod/Makefile") CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  11130. "src/buildinfo.h") CONFIG_FILES="$CONFIG_FILES src/buildinfo.h" ;;
  11131. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11132. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11133. { (exit 1); exit 1; }; };;
  11134. esac
  11135. done
  11136. # If the user did not use the arguments to specify the items to instantiate,
  11137. # then the envvar interface is used. Set only those that are not.
  11138. # We use the long form for the default assignment because of an extremely
  11139. # bizarre bug on SunOS 4.1.3.
  11140. if $ac_need_defaults; then
  11141. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11142. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11143. fi
  11144. # Have a temporary directory for convenience. Make it in the build tree
  11145. # simply because there is no reason against having it here, and in addition,
  11146. # creating and moving files from /tmp can sometimes cause problems.
  11147. # Hook for its removal unless debugging.
  11148. # Note that there is a small window in which the directory will not be cleaned:
  11149. # after its creation but before its name has been assigned to `$tmp'.
  11150. $debug ||
  11151. {
  11152. tmp=
  11153. trap 'exit_status=$?
  11154. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  11155. ' 0
  11156. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11157. }
  11158. # Create a (secure) tmp directory for tmp files.
  11159. {
  11160. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11161. test -n "$tmp" && test -d "$tmp"
  11162. } ||
  11163. {
  11164. tmp=./conf$$-$RANDOM
  11165. (umask 077 && mkdir "$tmp")
  11166. } ||
  11167. {
  11168. echo "$me: cannot create a temporary directory in ." >&2
  11169. { (exit 1); exit 1; }
  11170. }
  11171. #
  11172. # Set up the sed scripts for CONFIG_FILES section.
  11173. #
  11174. # No need to generate the scripts if there are no CONFIG_FILES.
  11175. # This happens for instance when ./config.status config.h
  11176. if test -n "$CONFIG_FILES"; then
  11177. _ACEOF
  11178. ac_delim='%!_!# '
  11179. for ac_last_try in false false false false false :; do
  11180. cat >conf$$subs.sed <<_ACEOF
  11181. SHELL!$SHELL$ac_delim
  11182. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  11183. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  11184. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  11185. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  11186. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  11187. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  11188. exec_prefix!$exec_prefix$ac_delim
  11189. prefix!$prefix$ac_delim
  11190. program_transform_name!$program_transform_name$ac_delim
  11191. bindir!$bindir$ac_delim
  11192. sbindir!$sbindir$ac_delim
  11193. libexecdir!$libexecdir$ac_delim
  11194. datarootdir!$datarootdir$ac_delim
  11195. datadir!$datadir$ac_delim
  11196. sysconfdir!$sysconfdir$ac_delim
  11197. sharedstatedir!$sharedstatedir$ac_delim
  11198. localstatedir!$localstatedir$ac_delim
  11199. includedir!$includedir$ac_delim
  11200. oldincludedir!$oldincludedir$ac_delim
  11201. docdir!$docdir$ac_delim
  11202. infodir!$infodir$ac_delim
  11203. htmldir!$htmldir$ac_delim
  11204. dvidir!$dvidir$ac_delim
  11205. pdfdir!$pdfdir$ac_delim
  11206. psdir!$psdir$ac_delim
  11207. libdir!$libdir$ac_delim
  11208. localedir!$localedir$ac_delim
  11209. mandir!$mandir$ac_delim
  11210. DEFS!$DEFS$ac_delim
  11211. ECHO_C!$ECHO_C$ac_delim
  11212. ECHO_N!$ECHO_N$ac_delim
  11213. ECHO_T!$ECHO_T$ac_delim
  11214. LIBS!$LIBS$ac_delim
  11215. build_alias!$build_alias$ac_delim
  11216. host_alias!$host_alias$ac_delim
  11217. target_alias!$target_alias$ac_delim
  11218. egg_ac_parameters!$egg_ac_parameters$ac_delim
  11219. CXX!$CXX$ac_delim
  11220. CXXFLAGS!$CXXFLAGS$ac_delim
  11221. LDFLAGS!$LDFLAGS$ac_delim
  11222. CPPFLAGS!$CPPFLAGS$ac_delim
  11223. ac_ct_CXX!$ac_ct_CXX$ac_delim
  11224. EXEEXT!$EXEEXT$ac_delim
  11225. OBJEXT!$OBJEXT$ac_delim
  11226. CXXCPP!$CXXCPP$ac_delim
  11227. GREP!$GREP$ac_delim
  11228. EGREP!$EGREP$ac_delim
  11229. CCDEPMODE!$CCDEPMODE$ac_delim
  11230. GCC3!$GCC3$ac_delim
  11231. SET_MAKE!$SET_MAKE$ac_delim
  11232. HEAD_1!$HEAD_1$ac_delim
  11233. AWK!$AWK$ac_delim
  11234. BASENAME!$BASENAME$ac_delim
  11235. OBJCOPY!$OBJCOPY$ac_delim
  11236. STRIP!$STRIP$ac_delim
  11237. DIFF!$DIFF$ac_delim
  11238. UNAME!$UNAME$ac_delim
  11239. CCACHE!$CCACHE$ac_delim
  11240. DISTCC!$DISTCC$ac_delim
  11241. BUILDOS!$BUILDOS$ac_delim
  11242. BUILDARCH!$BUILDARCH$ac_delim
  11243. CCDEBUG!$CCDEBUG$ac_delim
  11244. ZLIB!$ZLIB$ac_delim
  11245. LIBOBJS!$LIBOBJS$ac_delim
  11246. VERSION!$VERSION$ac_delim
  11247. NUMVER!$NUMVER$ac_delim
  11248. MOD_UPDIR!$MOD_UPDIR$ac_delim
  11249. LTLIBOBJS!$LTLIBOBJS$ac_delim
  11250. _ACEOF
  11251. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 69; then
  11252. break
  11253. elif $ac_last_try; then
  11254. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  11255. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  11256. { (exit 1); exit 1; }; }
  11257. else
  11258. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11259. fi
  11260. done
  11261. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  11262. if test -n "$ac_eof"; then
  11263. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  11264. ac_eof=`expr $ac_eof + 1`
  11265. fi
  11266. cat >>$CONFIG_STATUS <<_ACEOF
  11267. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  11268. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  11269. _ACEOF
  11270. sed '
  11271. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  11272. s/^/s,@/; s/!/@,|#_!!_#|/
  11273. :n
  11274. t n
  11275. s/'"$ac_delim"'$/,g/; t
  11276. s/$/\\/; p
  11277. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  11278. ' >>$CONFIG_STATUS <conf$$subs.sed
  11279. rm -f conf$$subs.sed
  11280. cat >>$CONFIG_STATUS <<_ACEOF
  11281. :end
  11282. s/|#_!!_#|//g
  11283. CEOF$ac_eof
  11284. _ACEOF
  11285. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11286. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11287. # trailing colons and then remove the whole line if VPATH becomes empty
  11288. # (actually we leave an empty line to preserve line numbers).
  11289. if test "x$srcdir" = x.; then
  11290. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11291. s/:*\$(srcdir):*/:/
  11292. s/:*\${srcdir}:*/:/
  11293. s/:*@srcdir@:*/:/
  11294. s/^\([^=]*=[ ]*\):*/\1/
  11295. s/:*$//
  11296. s/^[^=]*=[ ]*$//
  11297. }'
  11298. fi
  11299. cat >>$CONFIG_STATUS <<\_ACEOF
  11300. fi # test -n "$CONFIG_FILES"
  11301. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
  11302. do
  11303. case $ac_tag in
  11304. :[FHLC]) ac_mode=$ac_tag; continue;;
  11305. esac
  11306. case $ac_mode$ac_tag in
  11307. :[FHL]*:*);;
  11308. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  11309. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  11310. { (exit 1); exit 1; }; };;
  11311. :[FH]-) ac_tag=-:-;;
  11312. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11313. esac
  11314. ac_save_IFS=$IFS
  11315. IFS=:
  11316. set x $ac_tag
  11317. IFS=$ac_save_IFS
  11318. shift
  11319. ac_file=$1
  11320. shift
  11321. case $ac_mode in
  11322. :L) ac_source=$1;;
  11323. :[FH])
  11324. ac_file_inputs=
  11325. for ac_f
  11326. do
  11327. case $ac_f in
  11328. -) ac_f="$tmp/stdin";;
  11329. *) # Look for the file first in the build tree, then in the source tree
  11330. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11331. # because $ac_f cannot contain `:'.
  11332. test -f "$ac_f" ||
  11333. case $ac_f in
  11334. [\\/$]*) false;;
  11335. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11336. esac ||
  11337. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  11338. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  11339. { (exit 1); exit 1; }; };;
  11340. esac
  11341. ac_file_inputs="$ac_file_inputs $ac_f"
  11342. done
  11343. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11344. # use $as_me), people would be surprised to read:
  11345. # /* config.h. Generated by config.status. */
  11346. configure_input="Generated from "`IFS=:
  11347. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  11348. if test x"$ac_file" != x-; then
  11349. configure_input="$ac_file. $configure_input"
  11350. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11351. echo "$as_me: creating $ac_file" >&6;}
  11352. fi
  11353. case $ac_tag in
  11354. *:-:* | *:-) cat >"$tmp/stdin";;
  11355. esac
  11356. ;;
  11357. esac
  11358. ac_dir=`$as_dirname -- "$ac_file" ||
  11359. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11360. X"$ac_file" : 'X\(//\)[^/]' \| \
  11361. X"$ac_file" : 'X\(//\)$' \| \
  11362. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11363. echo X"$ac_file" |
  11364. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11365. s//\1/
  11366. q
  11367. }
  11368. /^X\(\/\/\)[^/].*/{
  11369. s//\1/
  11370. q
  11371. }
  11372. /^X\(\/\/\)$/{
  11373. s//\1/
  11374. q
  11375. }
  11376. /^X\(\/\).*/{
  11377. s//\1/
  11378. q
  11379. }
  11380. s/.*/./; q'`
  11381. { as_dir="$ac_dir"
  11382. case $as_dir in #(
  11383. -*) as_dir=./$as_dir;;
  11384. esac
  11385. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  11386. as_dirs=
  11387. while :; do
  11388. case $as_dir in #(
  11389. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  11390. *) as_qdir=$as_dir;;
  11391. esac
  11392. as_dirs="'$as_qdir' $as_dirs"
  11393. as_dir=`$as_dirname -- "$as_dir" ||
  11394. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11395. X"$as_dir" : 'X\(//\)[^/]' \| \
  11396. X"$as_dir" : 'X\(//\)$' \| \
  11397. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11398. echo X"$as_dir" |
  11399. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11400. s//\1/
  11401. q
  11402. }
  11403. /^X\(\/\/\)[^/].*/{
  11404. s//\1/
  11405. q
  11406. }
  11407. /^X\(\/\/\)$/{
  11408. s//\1/
  11409. q
  11410. }
  11411. /^X\(\/\).*/{
  11412. s//\1/
  11413. q
  11414. }
  11415. s/.*/./; q'`
  11416. test -d "$as_dir" && break
  11417. done
  11418. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11419. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  11420. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  11421. { (exit 1); exit 1; }; }; }
  11422. ac_builddir=.
  11423. case "$ac_dir" in
  11424. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11425. *)
  11426. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11427. # A ".." for each directory in $ac_dir_suffix.
  11428. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  11429. case $ac_top_builddir_sub in
  11430. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11431. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11432. esac ;;
  11433. esac
  11434. ac_abs_top_builddir=$ac_pwd
  11435. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11436. # for backward compatibility:
  11437. ac_top_builddir=$ac_top_build_prefix
  11438. case $srcdir in
  11439. .) # We are building in place.
  11440. ac_srcdir=.
  11441. ac_top_srcdir=$ac_top_builddir_sub
  11442. ac_abs_top_srcdir=$ac_pwd ;;
  11443. [\\/]* | ?:[\\/]* ) # Absolute name.
  11444. ac_srcdir=$srcdir$ac_dir_suffix;
  11445. ac_top_srcdir=$srcdir
  11446. ac_abs_top_srcdir=$srcdir ;;
  11447. *) # Relative name.
  11448. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11449. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11450. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11451. esac
  11452. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11453. case $ac_mode in
  11454. :F)
  11455. #
  11456. # CONFIG_FILE
  11457. #
  11458. _ACEOF
  11459. cat >>$CONFIG_STATUS <<\_ACEOF
  11460. # If the template does not know about datarootdir, expand it.
  11461. # FIXME: This hack should be removed a few years after 2.60.
  11462. ac_datarootdir_hack=; ac_datarootdir_seen=
  11463. case `sed -n '/datarootdir/ {
  11464. p
  11465. q
  11466. }
  11467. /@datadir@/p
  11468. /@docdir@/p
  11469. /@infodir@/p
  11470. /@localedir@/p
  11471. /@mandir@/p
  11472. ' $ac_file_inputs` in
  11473. *datarootdir*) ac_datarootdir_seen=yes;;
  11474. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11475. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11476. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11477. _ACEOF
  11478. cat >>$CONFIG_STATUS <<_ACEOF
  11479. ac_datarootdir_hack='
  11480. s&@datadir@&$datadir&g
  11481. s&@docdir@&$docdir&g
  11482. s&@infodir@&$infodir&g
  11483. s&@localedir@&$localedir&g
  11484. s&@mandir@&$mandir&g
  11485. s&\\\${datarootdir}&$datarootdir&g' ;;
  11486. esac
  11487. _ACEOF
  11488. # Neutralize VPATH when `$srcdir' = `.'.
  11489. # Shell code in configure.ac might set extrasub.
  11490. # FIXME: do we really want to maintain this feature?
  11491. cat >>$CONFIG_STATUS <<_ACEOF
  11492. sed "$ac_vpsub
  11493. $extrasub
  11494. _ACEOF
  11495. cat >>$CONFIG_STATUS <<\_ACEOF
  11496. :t
  11497. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11498. s&@configure_input@&$configure_input&;t t
  11499. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11500. s&@srcdir@&$ac_srcdir&;t t
  11501. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11502. s&@top_srcdir@&$ac_top_srcdir&;t t
  11503. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11504. s&@builddir@&$ac_builddir&;t t
  11505. s&@abs_builddir@&$ac_abs_builddir&;t t
  11506. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11507. $ac_datarootdir_hack
  11508. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
  11509. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11510. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  11511. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  11512. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11513. which seems to be undefined. Please make sure it is defined." >&5
  11514. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11515. which seems to be undefined. Please make sure it is defined." >&2;}
  11516. rm -f "$tmp/stdin"
  11517. case $ac_file in
  11518. -) cat "$tmp/out"; rm -f "$tmp/out";;
  11519. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  11520. esac
  11521. ;;
  11522. :H)
  11523. #
  11524. # CONFIG_HEADER
  11525. #
  11526. _ACEOF
  11527. # Transform confdefs.h into a sed script `conftest.defines', that
  11528. # substitutes the proper values into config.h.in to produce config.h.
  11529. rm -f conftest.defines conftest.tail
  11530. # First, append a space to every undef/define line, to ease matching.
  11531. echo 's/$/ /' >conftest.defines
  11532. # Then, protect against being on the right side of a sed subst, or in
  11533. # an unquoted here document, in config.status. If some macros were
  11534. # called several times there might be several #defines for the same
  11535. # symbol, which is useless. But do not sort them, since the last
  11536. # AC_DEFINE must be honored.
  11537. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  11538. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  11539. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  11540. # PARAMS is the parameter list in the macro definition--in most cases, it's
  11541. # just an empty string.
  11542. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  11543. ac_dB='\\)[ (].*,\\1define\\2'
  11544. ac_dC=' '
  11545. ac_dD=' ,'
  11546. uniq confdefs.h |
  11547. sed -n '
  11548. t rset
  11549. :rset
  11550. s/^[ ]*#[ ]*define[ ][ ]*//
  11551. t ok
  11552. d
  11553. :ok
  11554. s/[\\&,]/\\&/g
  11555. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  11556. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  11557. ' >>conftest.defines
  11558. # Remove the space that was appended to ease matching.
  11559. # Then replace #undef with comments. This is necessary, for
  11560. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11561. # on some systems where configure will not decide to define it.
  11562. # (The regexp can be short, since the line contains either #define or #undef.)
  11563. echo 's/ $//
  11564. s,^[ #]*u.*,/* & */,' >>conftest.defines
  11565. # Break up conftest.defines:
  11566. ac_max_sed_lines=50
  11567. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  11568. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  11569. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  11570. # et cetera.
  11571. ac_in='$ac_file_inputs'
  11572. ac_out='"$tmp/out1"'
  11573. ac_nxt='"$tmp/out2"'
  11574. while :
  11575. do
  11576. # Write a here document:
  11577. cat >>$CONFIG_STATUS <<_ACEOF
  11578. # First, check the format of the line:
  11579. cat >"\$tmp/defines.sed" <<\\CEOF
  11580. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  11581. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  11582. b
  11583. :def
  11584. _ACEOF
  11585. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  11586. echo 'CEOF
  11587. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  11588. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  11589. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  11590. grep . conftest.tail >/dev/null || break
  11591. rm -f conftest.defines
  11592. mv conftest.tail conftest.defines
  11593. done
  11594. rm -f conftest.defines conftest.tail
  11595. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  11596. cat >>$CONFIG_STATUS <<\_ACEOF
  11597. if test x"$ac_file" != x-; then
  11598. echo "/* $configure_input */" >"$tmp/config.h"
  11599. cat "$ac_result" >>"$tmp/config.h"
  11600. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  11601. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11602. echo "$as_me: $ac_file is unchanged" >&6;}
  11603. else
  11604. rm -f $ac_file
  11605. mv "$tmp/config.h" $ac_file
  11606. fi
  11607. else
  11608. echo "/* $configure_input */"
  11609. cat "$ac_result"
  11610. fi
  11611. rm -f "$tmp/out12"
  11612. ;;
  11613. esac
  11614. done # for ac_tag
  11615. { (exit 0); exit 0; }
  11616. _ACEOF
  11617. chmod +x $CONFIG_STATUS
  11618. ac_clean_files=$ac_clean_files_save
  11619. # configure is writing to config.log, and then calls config.status.
  11620. # config.status does its own redirection, appending to config.log.
  11621. # Unfortunately, on DOS this fails, as config.log is still kept open
  11622. # by configure, so config.status won't be able to write to it; its
  11623. # output is simply discarded. So we exec the FD to /dev/null,
  11624. # effectively closing config.log, so it can be properly (re)opened and
  11625. # appended to by config.status. When coming back to configure, we
  11626. # need to make the FD available again.
  11627. if test "$no_create" != yes; then
  11628. ac_cs_success=:
  11629. ac_config_status_args=
  11630. test "$silent" = yes &&
  11631. ac_config_status_args="$ac_config_status_args --quiet"
  11632. exec 5>/dev/null
  11633. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11634. exec 5>>config.log
  11635. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11636. # would make configure fail if this is the last instruction.
  11637. $ac_cs_success || { (exit 1); exit 1; }
  11638. fi