configure 393 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461
  1. #! /bin/sh
  2. # From configure.ac Revision: 3021 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.60a.
  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 Bourne compatible
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  25. fi
  26. BIN_SH=xpg4; export BIN_SH # for Tru64
  27. DUALCASE=1; export DUALCASE # for MKS sh
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. # Be Bourne compatible
  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 *posix*) set -o posix;; esac
  221. fi
  222. BIN_SH=xpg4; export BIN_SH # for Tru64
  223. DUALCASE=1; export DUALCASE # for MKS sh
  224. :
  225. _ASEOF
  226. }; then
  227. CONFIG_SHELL=$as_shell
  228. as_have_required=yes
  229. if { "$as_shell" 2> /dev/null <<\_ASEOF
  230. # Be Bourne compatible
  231. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  232. emulate sh
  233. NULLCMD=:
  234. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  235. # is contrary to our usage. Disable this feature.
  236. alias -g '${1+"$@"}'='"$@"'
  237. setopt NO_GLOB_SUBST
  238. else
  239. case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  240. fi
  241. BIN_SH=xpg4; export BIN_SH # for Tru64
  242. DUALCASE=1; export DUALCASE # for MKS sh
  243. :
  244. (as_func_return () {
  245. (exit $1)
  246. }
  247. as_func_success () {
  248. as_func_return 0
  249. }
  250. as_func_failure () {
  251. as_func_return 1
  252. }
  253. as_func_ret_success () {
  254. return 0
  255. }
  256. as_func_ret_failure () {
  257. return 1
  258. }
  259. exitcode=0
  260. if as_func_success; then
  261. :
  262. else
  263. exitcode=1
  264. echo as_func_success failed.
  265. fi
  266. if as_func_failure; then
  267. exitcode=1
  268. echo as_func_failure succeeded.
  269. fi
  270. if as_func_ret_success; then
  271. :
  272. else
  273. exitcode=1
  274. echo as_func_ret_success failed.
  275. fi
  276. if as_func_ret_failure; then
  277. exitcode=1
  278. echo as_func_ret_failure succeeded.
  279. fi
  280. if ( set x; as_func_ret_success y && test x = "$1" ); then
  281. :
  282. else
  283. exitcode=1
  284. echo positional parameters were not saved.
  285. fi
  286. test $exitcode = 0) || { (exit 1); exit 1; }
  287. (
  288. as_lineno_1=$LINENO
  289. as_lineno_2=$LINENO
  290. test "x$as_lineno_1" != "x$as_lineno_2" &&
  291. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  292. _ASEOF
  293. }; then
  294. break
  295. fi
  296. fi
  297. done
  298. if test "x$CONFIG_SHELL" != x; then
  299. for as_var in BASH_ENV ENV
  300. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  301. done
  302. export CONFIG_SHELL
  303. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  304. fi
  305. if test $as_have_required = no; then
  306. echo This script requires a shell more modern than all the
  307. echo shells that I found on your system. Please install a
  308. echo modern shell, or manually run the script under such a
  309. echo shell if you do have one.
  310. { (exit 1); exit 1; }
  311. fi
  312. fi
  313. fi
  314. (eval "as_func_return () {
  315. (exit \$1)
  316. }
  317. as_func_success () {
  318. as_func_return 0
  319. }
  320. as_func_failure () {
  321. as_func_return 1
  322. }
  323. as_func_ret_success () {
  324. return 0
  325. }
  326. as_func_ret_failure () {
  327. return 1
  328. }
  329. exitcode=0
  330. if as_func_success; then
  331. :
  332. else
  333. exitcode=1
  334. echo as_func_success failed.
  335. fi
  336. if as_func_failure; then
  337. exitcode=1
  338. echo as_func_failure succeeded.
  339. fi
  340. if as_func_ret_success; then
  341. :
  342. else
  343. exitcode=1
  344. echo as_func_ret_success failed.
  345. fi
  346. if as_func_ret_failure; then
  347. exitcode=1
  348. echo as_func_ret_failure succeeded.
  349. fi
  350. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  351. :
  352. else
  353. exitcode=1
  354. echo positional parameters were not saved.
  355. fi
  356. test \$exitcode = 0") || {
  357. echo No shell found that supports shell functions.
  358. echo Please tell autoconf@gnu.org about your system,
  359. echo including any error possibly output before this
  360. echo message
  361. }
  362. as_lineno_1=$LINENO
  363. as_lineno_2=$LINENO
  364. test "x$as_lineno_1" != "x$as_lineno_2" &&
  365. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  366. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  367. # uniformly replaced by the line number. The first 'sed' inserts a
  368. # line-number line after each line using $LINENO; the second 'sed'
  369. # does the real work. The second script uses 'N' to pair each
  370. # line-number line with the line containing $LINENO, and appends
  371. # trailing '-' during substitution so that $LINENO is not a special
  372. # case at line end.
  373. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  374. # scripts with optimization help from Paolo Bonzini. Blame Lee
  375. # E. McMahon (1931-1989) for sed's syntax. :-)
  376. sed -n '
  377. p
  378. /[$]LINENO/=
  379. ' <$as_myself |
  380. sed '
  381. s/[$]LINENO.*/&-/
  382. t lineno
  383. b
  384. :lineno
  385. N
  386. :loop
  387. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  388. t loop
  389. s/-\n.*//
  390. ' >$as_me.lineno &&
  391. chmod +x "$as_me.lineno" ||
  392. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  393. { (exit 1); exit 1; }; }
  394. # Don't try to exec as it changes $[0], causing all sort of problems
  395. # (the dirname of $[0] is not the place where we might find the
  396. # original and so on. Autoconf is especially sensitive to this).
  397. . "./$as_me.lineno"
  398. # Exit status is that of the last command.
  399. exit
  400. }
  401. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  402. as_dirname=dirname
  403. else
  404. as_dirname=false
  405. fi
  406. ECHO_C= ECHO_N= ECHO_T=
  407. case `echo -n x` in
  408. -n*)
  409. case `echo 'x\c'` in
  410. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  411. *) ECHO_C='\c';;
  412. esac;;
  413. *)
  414. ECHO_N='-n';;
  415. esac
  416. if expr a : '\(a\)' >/dev/null 2>&1 &&
  417. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  418. as_expr=expr
  419. else
  420. as_expr=false
  421. fi
  422. rm -f conf$$ conf$$.exe conf$$.file
  423. if test -d conf$$.dir; then
  424. rm -f conf$$.dir/conf$$.file
  425. else
  426. rm -f conf$$.dir
  427. mkdir conf$$.dir
  428. fi
  429. echo >conf$$.file
  430. if ln -s conf$$.file conf$$ 2>/dev/null; then
  431. as_ln_s='ln -s'
  432. # ... but there are two gotchas:
  433. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  434. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  435. # In both cases, we have to default to `cp -p'.
  436. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  437. as_ln_s='cp -p'
  438. elif ln conf$$.file conf$$ 2>/dev/null; then
  439. as_ln_s=ln
  440. else
  441. as_ln_s='cp -p'
  442. fi
  443. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  444. rmdir conf$$.dir 2>/dev/null
  445. if mkdir -p . 2>/dev/null; then
  446. as_mkdir_p=:
  447. else
  448. test -d ./-p && rmdir ./-p
  449. as_mkdir_p=false
  450. fi
  451. # Find out whether ``test -x'' works. Don't use a zero-byte file, as
  452. # systems may use methods other than mode bits to determine executability.
  453. cat >conf$$.file <<_ASEOF
  454. #! /bin/sh
  455. exit 0
  456. _ASEOF
  457. chmod +x conf$$.file
  458. if test -x conf$$.file >/dev/null 2>&1; then
  459. as_executable_p="test -x"
  460. else
  461. as_executable_p=:
  462. fi
  463. rm -f conf$$.file
  464. # Sed expression to map a string onto a valid CPP name.
  465. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  466. # Sed expression to map a string onto a valid variable name.
  467. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  468. exec 7<&0 </dev/null 6>&1
  469. # Name of the host.
  470. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  471. # so uname gets run too.
  472. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  473. #
  474. # Initializations.
  475. #
  476. ac_default_prefix=/usr/local
  477. ac_clean_files=
  478. ac_config_libobj_dir=.
  479. LIBOBJS=
  480. cross_compiling=no
  481. subdirs=
  482. MFLAGS=
  483. MAKEFLAGS=
  484. SHELL=${CONFIG_SHELL-/bin/sh}
  485. # Identity of this package.
  486. PACKAGE_NAME=
  487. PACKAGE_TARNAME=
  488. PACKAGE_VERSION=
  489. PACKAGE_STRING=
  490. PACKAGE_BUGREPORT=
  491. ac_unique_file="wraith"
  492. ac_unique_file="src/eggdrop.h"
  493. # Factoring default headers for most tests.
  494. ac_includes_default="\
  495. #include <stdio.h>
  496. #ifdef HAVE_SYS_TYPES_H
  497. # include <sys/types.h>
  498. #endif
  499. #ifdef HAVE_SYS_STAT_H
  500. # include <sys/stat.h>
  501. #endif
  502. #ifdef STDC_HEADERS
  503. # include <stdlib.h>
  504. # include <stddef.h>
  505. #else
  506. # ifdef HAVE_STDLIB_H
  507. # include <stdlib.h>
  508. # endif
  509. #endif
  510. #ifdef HAVE_STRING_H
  511. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  512. # include <memory.h>
  513. # endif
  514. # include <string.h>
  515. #endif
  516. #ifdef HAVE_STRINGS_H
  517. # include <strings.h>
  518. #endif
  519. #ifdef HAVE_INTTYPES_H
  520. # include <inttypes.h>
  521. #endif
  522. #ifdef HAVE_STDINT_H
  523. # include <stdint.h>
  524. #endif
  525. #ifdef HAVE_UNISTD_H
  526. # include <unistd.h>
  527. #endif"
  528. ac_subst_vars='SHELL
  529. PATH_SEPARATOR
  530. PACKAGE_NAME
  531. PACKAGE_TARNAME
  532. PACKAGE_VERSION
  533. PACKAGE_STRING
  534. PACKAGE_BUGREPORT
  535. exec_prefix
  536. prefix
  537. program_transform_name
  538. bindir
  539. sbindir
  540. libexecdir
  541. datarootdir
  542. datadir
  543. sysconfdir
  544. sharedstatedir
  545. localstatedir
  546. includedir
  547. oldincludedir
  548. docdir
  549. infodir
  550. htmldir
  551. dvidir
  552. pdfdir
  553. psdir
  554. libdir
  555. localedir
  556. mandir
  557. DEFS
  558. ECHO_C
  559. ECHO_N
  560. ECHO_T
  561. LIBS
  562. build_alias
  563. host_alias
  564. target_alias
  565. egg_ac_parameters
  566. CXX
  567. CXXFLAGS
  568. LDFLAGS
  569. CPPFLAGS
  570. ac_ct_CXX
  571. EXEEXT
  572. OBJEXT
  573. CXXCPP
  574. GREP
  575. EGREP
  576. CCDEPMODE
  577. GCC3
  578. SET_MAKE
  579. HEAD_1
  580. AWK
  581. BASENAME
  582. OBJCOPY
  583. STRIP
  584. DIFF
  585. UNAME
  586. CCACHE
  587. DISTCC
  588. BUILDOS
  589. BUILDARCH
  590. CCDEBUG
  591. ZLIB
  592. LIBOBJS
  593. VERSION
  594. NUMVER
  595. MOD_UPDIR
  596. LTLIBOBJS'
  597. ac_subst_files=''
  598. ac_precious_vars='build_alias
  599. host_alias
  600. target_alias
  601. CXX
  602. CXXFLAGS
  603. LDFLAGS
  604. CPPFLAGS
  605. CCC
  606. CXXCPP'
  607. # Initialize some variables set by options.
  608. ac_init_help=
  609. ac_init_version=false
  610. # The variables have the same names as the options, with
  611. # dashes changed to underlines.
  612. cache_file=./config.cache
  613. exec_prefix=NONE
  614. no_create=
  615. no_recursion=
  616. prefix=NONE
  617. program_prefix=NONE
  618. program_suffix=NONE
  619. program_transform_name=s,x,x,
  620. silent=
  621. site=
  622. srcdir=
  623. verbose=
  624. x_includes=NONE
  625. x_libraries=NONE
  626. # Installation directory options.
  627. # These are left unexpanded so users can "make install exec_prefix=/foo"
  628. # and all the variables that are supposed to be based on exec_prefix
  629. # by default will actually change.
  630. # Use braces instead of parens because sh, perl, etc. also accept them.
  631. # (The list follows the same order as the GNU Coding Standards.)
  632. bindir='${exec_prefix}/bin'
  633. sbindir='${exec_prefix}/sbin'
  634. libexecdir='${exec_prefix}/libexec'
  635. datarootdir='${prefix}/share'
  636. datadir='${datarootdir}'
  637. sysconfdir='${prefix}/etc'
  638. sharedstatedir='${prefix}/com'
  639. localstatedir='${prefix}/var'
  640. includedir='${prefix}/include'
  641. oldincludedir='/usr/include'
  642. docdir='${datarootdir}/doc/${PACKAGE}'
  643. infodir='${datarootdir}/info'
  644. htmldir='${docdir}'
  645. dvidir='${docdir}'
  646. pdfdir='${docdir}'
  647. psdir='${docdir}'
  648. libdir='${exec_prefix}/lib'
  649. localedir='${datarootdir}/locale'
  650. mandir='${datarootdir}/man'
  651. ac_prev=
  652. ac_dashdash=
  653. for ac_option
  654. do
  655. # If the previous option needs an argument, assign it.
  656. if test -n "$ac_prev"; then
  657. eval $ac_prev=\$ac_option
  658. ac_prev=
  659. continue
  660. fi
  661. case $ac_option in
  662. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  663. *) ac_optarg=yes ;;
  664. esac
  665. # Accept the important Cygnus configure options, so we can diagnose typos.
  666. case $ac_dashdash$ac_option in
  667. --)
  668. ac_dashdash=yes ;;
  669. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  670. ac_prev=bindir ;;
  671. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  672. bindir=$ac_optarg ;;
  673. -build | --build | --buil | --bui | --bu)
  674. ac_prev=build_alias ;;
  675. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  676. build_alias=$ac_optarg ;;
  677. -cache-file | --cache-file | --cache-fil | --cache-fi \
  678. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  679. ac_prev=cache_file ;;
  680. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  681. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  682. cache_file=$ac_optarg ;;
  683. --config-cache | -C)
  684. cache_file=config.cache ;;
  685. -datadir | --datadir | --datadi | --datad)
  686. ac_prev=datadir ;;
  687. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  688. datadir=$ac_optarg ;;
  689. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  690. | --dataroo | --dataro | --datar)
  691. ac_prev=datarootdir ;;
  692. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  693. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  694. datarootdir=$ac_optarg ;;
  695. -disable-* | --disable-*)
  696. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  697. # Reject names that are not valid shell variable names.
  698. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  699. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  700. { (exit 1); exit 1; }; }
  701. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  702. eval enable_$ac_feature=no ;;
  703. -docdir | --docdir | --docdi | --doc | --do)
  704. ac_prev=docdir ;;
  705. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  706. docdir=$ac_optarg ;;
  707. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  708. ac_prev=dvidir ;;
  709. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  710. dvidir=$ac_optarg ;;
  711. -enable-* | --enable-*)
  712. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  713. # Reject names that are not valid shell variable names.
  714. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  715. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  716. { (exit 1); exit 1; }; }
  717. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  718. eval enable_$ac_feature=\$ac_optarg ;;
  719. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  720. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  721. | --exec | --exe | --ex)
  722. ac_prev=exec_prefix ;;
  723. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  724. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  725. | --exec=* | --exe=* | --ex=*)
  726. exec_prefix=$ac_optarg ;;
  727. -gas | --gas | --ga | --g)
  728. # Obsolete; use --with-gas.
  729. with_gas=yes ;;
  730. -help | --help | --hel | --he | -h)
  731. ac_init_help=long ;;
  732. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  733. ac_init_help=recursive ;;
  734. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  735. ac_init_help=short ;;
  736. -host | --host | --hos | --ho)
  737. ac_prev=host_alias ;;
  738. -host=* | --host=* | --hos=* | --ho=*)
  739. host_alias=$ac_optarg ;;
  740. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  741. ac_prev=htmldir ;;
  742. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  743. | --ht=*)
  744. htmldir=$ac_optarg ;;
  745. -includedir | --includedir | --includedi | --included | --include \
  746. | --includ | --inclu | --incl | --inc)
  747. ac_prev=includedir ;;
  748. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  749. | --includ=* | --inclu=* | --incl=* | --inc=*)
  750. includedir=$ac_optarg ;;
  751. -infodir | --infodir | --infodi | --infod | --info | --inf)
  752. ac_prev=infodir ;;
  753. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  754. infodir=$ac_optarg ;;
  755. -libdir | --libdir | --libdi | --libd)
  756. ac_prev=libdir ;;
  757. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  758. libdir=$ac_optarg ;;
  759. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  760. | --libexe | --libex | --libe)
  761. ac_prev=libexecdir ;;
  762. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  763. | --libexe=* | --libex=* | --libe=*)
  764. libexecdir=$ac_optarg ;;
  765. -localedir | --localedir | --localedi | --localed | --locale)
  766. ac_prev=localedir ;;
  767. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  768. localedir=$ac_optarg ;;
  769. -localstatedir | --localstatedir | --localstatedi | --localstated \
  770. | --localstate | --localstat | --localsta | --localst | --locals)
  771. ac_prev=localstatedir ;;
  772. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  773. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  774. localstatedir=$ac_optarg ;;
  775. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  776. ac_prev=mandir ;;
  777. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  778. mandir=$ac_optarg ;;
  779. -nfp | --nfp | --nf)
  780. # Obsolete; use --without-fp.
  781. with_fp=no ;;
  782. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  783. | --no-cr | --no-c | -n)
  784. no_create=yes ;;
  785. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  786. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  787. no_recursion=yes ;;
  788. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  789. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  790. | --oldin | --oldi | --old | --ol | --o)
  791. ac_prev=oldincludedir ;;
  792. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  793. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  794. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  795. oldincludedir=$ac_optarg ;;
  796. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  797. ac_prev=prefix ;;
  798. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  799. prefix=$ac_optarg ;;
  800. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  801. | --program-pre | --program-pr | --program-p)
  802. ac_prev=program_prefix ;;
  803. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  804. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  805. program_prefix=$ac_optarg ;;
  806. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  807. | --program-suf | --program-su | --program-s)
  808. ac_prev=program_suffix ;;
  809. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  810. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  811. program_suffix=$ac_optarg ;;
  812. -program-transform-name | --program-transform-name \
  813. | --program-transform-nam | --program-transform-na \
  814. | --program-transform-n | --program-transform- \
  815. | --program-transform | --program-transfor \
  816. | --program-transfo | --program-transf \
  817. | --program-trans | --program-tran \
  818. | --progr-tra | --program-tr | --program-t)
  819. ac_prev=program_transform_name ;;
  820. -program-transform-name=* | --program-transform-name=* \
  821. | --program-transform-nam=* | --program-transform-na=* \
  822. | --program-transform-n=* | --program-transform-=* \
  823. | --program-transform=* | --program-transfor=* \
  824. | --program-transfo=* | --program-transf=* \
  825. | --program-trans=* | --program-tran=* \
  826. | --progr-tra=* | --program-tr=* | --program-t=*)
  827. program_transform_name=$ac_optarg ;;
  828. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  829. ac_prev=pdfdir ;;
  830. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  831. pdfdir=$ac_optarg ;;
  832. -psdir | --psdir | --psdi | --psd | --ps)
  833. ac_prev=psdir ;;
  834. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  835. psdir=$ac_optarg ;;
  836. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  837. | -silent | --silent | --silen | --sile | --sil)
  838. silent=yes ;;
  839. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  840. ac_prev=sbindir ;;
  841. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  842. | --sbi=* | --sb=*)
  843. sbindir=$ac_optarg ;;
  844. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  845. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  846. | --sharedst | --shareds | --shared | --share | --shar \
  847. | --sha | --sh)
  848. ac_prev=sharedstatedir ;;
  849. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  850. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  851. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  852. | --sha=* | --sh=*)
  853. sharedstatedir=$ac_optarg ;;
  854. -site | --site | --sit)
  855. ac_prev=site ;;
  856. -site=* | --site=* | --sit=*)
  857. site=$ac_optarg ;;
  858. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  859. ac_prev=srcdir ;;
  860. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  861. srcdir=$ac_optarg ;;
  862. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  863. | --syscon | --sysco | --sysc | --sys | --sy)
  864. ac_prev=sysconfdir ;;
  865. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  866. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  867. sysconfdir=$ac_optarg ;;
  868. -target | --target | --targe | --targ | --tar | --ta | --t)
  869. ac_prev=target_alias ;;
  870. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  871. target_alias=$ac_optarg ;;
  872. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  873. verbose=yes ;;
  874. -version | --version | --versio | --versi | --vers | -V)
  875. ac_init_version=: ;;
  876. -with-* | --with-*)
  877. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  878. # Reject names that are not valid shell variable names.
  879. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  880. { echo "$as_me: error: invalid package name: $ac_package" >&2
  881. { (exit 1); exit 1; }; }
  882. ac_package=`echo $ac_package| sed 's/-/_/g'`
  883. eval with_$ac_package=\$ac_optarg ;;
  884. -without-* | --without-*)
  885. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  886. # Reject names that are not valid shell variable names.
  887. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  888. { echo "$as_me: error: invalid package name: $ac_package" >&2
  889. { (exit 1); exit 1; }; }
  890. ac_package=`echo $ac_package | sed 's/-/_/g'`
  891. eval with_$ac_package=no ;;
  892. --x)
  893. # Obsolete; use --with-x.
  894. with_x=yes ;;
  895. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  896. | --x-incl | --x-inc | --x-in | --x-i)
  897. ac_prev=x_includes ;;
  898. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  899. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  900. x_includes=$ac_optarg ;;
  901. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  902. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  903. ac_prev=x_libraries ;;
  904. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  905. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  906. x_libraries=$ac_optarg ;;
  907. -*) { echo "$as_me: error: unrecognized option: $ac_option
  908. Try \`$0 --help' for more information." >&2
  909. { (exit 1); exit 1; }; }
  910. ;;
  911. *=*)
  912. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  913. # Reject names that are not valid shell variable names.
  914. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  915. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  916. { (exit 1); exit 1; }; }
  917. eval $ac_envvar=\$ac_optarg
  918. export $ac_envvar ;;
  919. *)
  920. # FIXME: should be removed in autoconf 3.0.
  921. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  922. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  923. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  924. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  925. ;;
  926. esac
  927. done
  928. if test -n "$ac_prev"; then
  929. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  930. { echo "$as_me: error: missing argument to $ac_option" >&2
  931. { (exit 1); exit 1; }; }
  932. fi
  933. # Be sure to have absolute directory names.
  934. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  935. datadir sysconfdir sharedstatedir localstatedir includedir \
  936. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  937. libdir localedir mandir
  938. do
  939. eval ac_val=\$$ac_var
  940. case $ac_val in
  941. [\\/$]* | ?:[\\/]* ) continue;;
  942. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  943. esac
  944. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  945. { (exit 1); exit 1; }; }
  946. done
  947. # There might be people who depend on the old broken behavior: `$host'
  948. # used to hold the argument of --host etc.
  949. # FIXME: To remove some day.
  950. build=$build_alias
  951. host=$host_alias
  952. target=$target_alias
  953. # FIXME: To remove some day.
  954. if test "x$host_alias" != x; then
  955. if test "x$build_alias" = x; then
  956. cross_compiling=maybe
  957. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  958. If a cross compiler is detected then cross compile mode will be used." >&2
  959. elif test "x$build_alias" != "x$host_alias"; then
  960. cross_compiling=yes
  961. fi
  962. fi
  963. ac_tool_prefix=
  964. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  965. test "$silent" = yes && exec 6>/dev/null
  966. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  967. ac_ls_di=`ls -di .` &&
  968. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  969. { echo "$as_me: error: Working directory cannot be determined" >&2
  970. { (exit 1); exit 1; }; }
  971. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  972. { echo "$as_me: error: pwd does not report name of working directory" >&2
  973. { (exit 1); exit 1; }; }
  974. # Find the source files, if location was not specified.
  975. if test -z "$srcdir"; then
  976. ac_srcdir_defaulted=yes
  977. # Try the directory containing this script, then the parent directory.
  978. ac_confdir=`$as_dirname -- "$0" ||
  979. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  980. X"$0" : 'X\(//\)[^/]' \| \
  981. X"$0" : 'X\(//\)$' \| \
  982. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  983. echo X"$0" |
  984. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  985. s//\1/
  986. q
  987. }
  988. /^X\(\/\/\)[^/].*/{
  989. s//\1/
  990. q
  991. }
  992. /^X\(\/\/\)$/{
  993. s//\1/
  994. q
  995. }
  996. /^X\(\/\).*/{
  997. s//\1/
  998. q
  999. }
  1000. s/.*/./; q'`
  1001. srcdir=$ac_confdir
  1002. if test ! -r "$srcdir/$ac_unique_file"; then
  1003. srcdir=..
  1004. fi
  1005. else
  1006. ac_srcdir_defaulted=no
  1007. fi
  1008. if test ! -r "$srcdir/$ac_unique_file"; then
  1009. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1010. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1011. { (exit 1); exit 1; }; }
  1012. fi
  1013. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1014. ac_abs_confdir=`(
  1015. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1016. { (exit 1); exit 1; }; }
  1017. pwd)`
  1018. # When building in place, set srcdir=.
  1019. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1020. srcdir=.
  1021. fi
  1022. # Remove unnecessary trailing slashes from srcdir.
  1023. # Double slashes in file names in object file debugging info
  1024. # mess up M-x gdb in Emacs.
  1025. case $srcdir in
  1026. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1027. esac
  1028. for ac_var in $ac_precious_vars; do
  1029. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1030. eval ac_env_${ac_var}_value=\$${ac_var}
  1031. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1032. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1033. done
  1034. #
  1035. # Report the --help message.
  1036. #
  1037. if test "$ac_init_help" = "long"; then
  1038. # Omit some internal or obsolete options to make the list less imposing.
  1039. # This message is too long to be a string in the A/UX 3.1 sh.
  1040. cat <<_ACEOF
  1041. \`configure' configures this package to adapt to many kinds of systems.
  1042. Usage: $0 [OPTION]... [VAR=VALUE]...
  1043. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1044. VAR=VALUE. See below for descriptions of some of the useful variables.
  1045. Defaults for the options are specified in brackets.
  1046. Configuration:
  1047. -h, --help display this help and exit
  1048. --help=short display options specific to this package
  1049. --help=recursive display the short help of all the included packages
  1050. -V, --version display version information and exit
  1051. -q, --quiet, --silent do not print \`checking...' messages
  1052. --cache-file=FILE cache test results in FILE [disabled]
  1053. -C, --config-cache alias for \`--cache-file=config.cache'
  1054. -n, --no-create do not create output files
  1055. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1056. Installation directories:
  1057. --prefix=PREFIX install architecture-independent files in PREFIX
  1058. [$ac_default_prefix]
  1059. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1060. [PREFIX]
  1061. By default, \`make install' will install all the files in
  1062. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1063. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1064. for instance \`--prefix=\$HOME'.
  1065. For better control, use the options below.
  1066. Fine tuning of the installation directories:
  1067. --bindir=DIR user executables [EPREFIX/bin]
  1068. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1069. --libexecdir=DIR program executables [EPREFIX/libexec]
  1070. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1071. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1072. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1073. --libdir=DIR object code libraries [EPREFIX/lib]
  1074. --includedir=DIR C header files [PREFIX/include]
  1075. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1076. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1077. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1078. --infodir=DIR info documentation [DATAROOTDIR/info]
  1079. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1080. --mandir=DIR man documentation [DATAROOTDIR/man]
  1081. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1082. --htmldir=DIR html documentation [DOCDIR]
  1083. --dvidir=DIR dvi documentation [DOCDIR]
  1084. --pdfdir=DIR pdf documentation [DOCDIR]
  1085. --psdir=DIR ps documentation [DOCDIR]
  1086. _ACEOF
  1087. cat <<\_ACEOF
  1088. _ACEOF
  1089. fi
  1090. if test -n "$ac_init_help"; then
  1091. cat <<\_ACEOF
  1092. Optional Features:
  1093. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1094. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1095. --disable-ipv6 disable IPv6 support
  1096. Some influential environment variables:
  1097. CXX C++ compiler command
  1098. CXXFLAGS C++ compiler flags
  1099. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1100. nonstandard directory <lib dir>
  1101. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1102. you have headers in a nonstandard directory <include dir>
  1103. CXXCPP C++ preprocessor
  1104. Use these variables to override the choices made by `configure' or to help
  1105. it to find libraries and programs with nonstandard names/locations.
  1106. _ACEOF
  1107. ac_status=$?
  1108. fi
  1109. if test "$ac_init_help" = "recursive"; then
  1110. # If there are subdirs, report their specific --help.
  1111. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1112. test -d "$ac_dir" || continue
  1113. ac_builddir=.
  1114. case "$ac_dir" in
  1115. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1116. *)
  1117. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1118. # A ".." for each directory in $ac_dir_suffix.
  1119. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1120. case $ac_top_builddir_sub in
  1121. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1122. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1123. esac ;;
  1124. esac
  1125. ac_abs_top_builddir=$ac_pwd
  1126. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1127. # for backward compatibility:
  1128. ac_top_builddir=$ac_top_build_prefix
  1129. case $srcdir in
  1130. .) # We are building in place.
  1131. ac_srcdir=.
  1132. ac_top_srcdir=$ac_top_builddir_sub
  1133. ac_abs_top_srcdir=$ac_pwd ;;
  1134. [\\/]* | ?:[\\/]* ) # Absolute name.
  1135. ac_srcdir=$srcdir$ac_dir_suffix;
  1136. ac_top_srcdir=$srcdir
  1137. ac_abs_top_srcdir=$srcdir ;;
  1138. *) # Relative name.
  1139. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1140. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1141. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1142. esac
  1143. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1144. cd "$ac_dir" || { ac_status=$?; continue; }
  1145. # Check for guested configure.
  1146. if test -f "$ac_srcdir/configure.gnu"; then
  1147. echo &&
  1148. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1149. elif test -f "$ac_srcdir/configure"; then
  1150. echo &&
  1151. $SHELL "$ac_srcdir/configure" --help=recursive
  1152. else
  1153. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1154. fi || ac_status=$?
  1155. cd "$ac_pwd" || { ac_status=$?; break; }
  1156. done
  1157. fi
  1158. test -n "$ac_init_help" && exit $ac_status
  1159. if $ac_init_version; then
  1160. cat <<\_ACEOF
  1161. configure
  1162. generated by GNU Autoconf 2.60a
  1163. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1164. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1165. This configure script is free software; the Free Software Foundation
  1166. gives unlimited permission to copy, distribute and modify it.
  1167. Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  1168. _ACEOF
  1169. exit
  1170. fi
  1171. cat >config.log <<_ACEOF
  1172. This file contains any messages produced by compilers while
  1173. running configure, to aid debugging if configure makes a mistake.
  1174. It was created by $as_me, which was
  1175. generated by GNU Autoconf 2.60a. Invocation command line was
  1176. $ $0 $@
  1177. _ACEOF
  1178. exec 5>>config.log
  1179. {
  1180. cat <<_ASUNAME
  1181. ## --------- ##
  1182. ## Platform. ##
  1183. ## --------- ##
  1184. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1185. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1186. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1187. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1188. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1189. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1190. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1191. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1192. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1193. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1194. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1195. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1196. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1197. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1198. _ASUNAME
  1199. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1200. for as_dir in $PATH
  1201. do
  1202. IFS=$as_save_IFS
  1203. test -z "$as_dir" && as_dir=.
  1204. echo "PATH: $as_dir"
  1205. done
  1206. IFS=$as_save_IFS
  1207. } >&5
  1208. cat >&5 <<_ACEOF
  1209. ## ----------- ##
  1210. ## Core tests. ##
  1211. ## ----------- ##
  1212. _ACEOF
  1213. # Keep a trace of the command line.
  1214. # Strip out --no-create and --no-recursion so they do not pile up.
  1215. # Strip out --silent because we don't want to record it for future runs.
  1216. # Also quote any args containing shell meta-characters.
  1217. # Make two passes to allow for proper duplicate-argument suppression.
  1218. ac_configure_args=
  1219. ac_configure_args0=
  1220. ac_configure_args1=
  1221. ac_must_keep_next=false
  1222. for ac_pass in 1 2
  1223. do
  1224. for ac_arg
  1225. do
  1226. case $ac_arg in
  1227. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1228. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1229. | -silent | --silent | --silen | --sile | --sil)
  1230. continue ;;
  1231. *\'*)
  1232. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1233. esac
  1234. case $ac_pass in
  1235. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1236. 2)
  1237. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1238. if test $ac_must_keep_next = true; then
  1239. ac_must_keep_next=false # Got value, back to normal.
  1240. else
  1241. case $ac_arg in
  1242. *=* | --config-cache | -C | -disable-* | --disable-* \
  1243. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1244. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1245. | -with-* | --with-* | -without-* | --without-* | --x)
  1246. case "$ac_configure_args0 " in
  1247. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1248. esac
  1249. ;;
  1250. -* ) ac_must_keep_next=true ;;
  1251. esac
  1252. fi
  1253. ac_configure_args="$ac_configure_args '$ac_arg'"
  1254. ;;
  1255. esac
  1256. done
  1257. done
  1258. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1259. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1260. # When interrupted or exit'd, cleanup temporary files, and complete
  1261. # config.log. We remove comments because anyway the quotes in there
  1262. # would cause problems or look ugly.
  1263. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1264. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1265. trap 'exit_status=$?
  1266. # Save into config.log some information that might help in debugging.
  1267. {
  1268. echo
  1269. cat <<\_ASBOX
  1270. ## ---------------- ##
  1271. ## Cache variables. ##
  1272. ## ---------------- ##
  1273. _ASBOX
  1274. echo
  1275. # The following way of writing the cache mishandles newlines in values,
  1276. (
  1277. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1278. eval ac_val=\$$ac_var
  1279. case $ac_val in #(
  1280. *${as_nl}*)
  1281. case $ac_var in #(
  1282. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1283. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1284. esac
  1285. case $ac_var in #(
  1286. _ | IFS | as_nl) ;; #(
  1287. *) $as_unset $ac_var ;;
  1288. esac ;;
  1289. esac
  1290. done
  1291. (set) 2>&1 |
  1292. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1293. *${as_nl}ac_space=\ *)
  1294. sed -n \
  1295. "s/'\''/'\''\\\\'\'''\''/g;
  1296. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1297. ;; #(
  1298. *)
  1299. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1300. ;;
  1301. esac |
  1302. sort
  1303. )
  1304. echo
  1305. cat <<\_ASBOX
  1306. ## ----------------- ##
  1307. ## Output variables. ##
  1308. ## ----------------- ##
  1309. _ASBOX
  1310. echo
  1311. for ac_var in $ac_subst_vars
  1312. do
  1313. eval ac_val=\$$ac_var
  1314. case $ac_val in
  1315. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1316. esac
  1317. echo "$ac_var='\''$ac_val'\''"
  1318. done | sort
  1319. echo
  1320. if test -n "$ac_subst_files"; then
  1321. cat <<\_ASBOX
  1322. ## ------------------- ##
  1323. ## File substitutions. ##
  1324. ## ------------------- ##
  1325. _ASBOX
  1326. echo
  1327. for ac_var in $ac_subst_files
  1328. do
  1329. eval ac_val=\$$ac_var
  1330. case $ac_val in
  1331. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1332. esac
  1333. echo "$ac_var='\''$ac_val'\''"
  1334. done | sort
  1335. echo
  1336. fi
  1337. if test -s confdefs.h; then
  1338. cat <<\_ASBOX
  1339. ## ----------- ##
  1340. ## confdefs.h. ##
  1341. ## ----------- ##
  1342. _ASBOX
  1343. echo
  1344. cat confdefs.h
  1345. echo
  1346. fi
  1347. test "$ac_signal" != 0 &&
  1348. echo "$as_me: caught signal $ac_signal"
  1349. echo "$as_me: exit $exit_status"
  1350. } >&5
  1351. rm -f core *.core core.conftest.* &&
  1352. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1353. exit $exit_status
  1354. ' 0
  1355. for ac_signal in 1 2 13 15; do
  1356. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1357. done
  1358. ac_signal=0
  1359. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1360. rm -f -r conftest* confdefs.h
  1361. # Predefined preprocessor variables.
  1362. cat >>confdefs.h <<_ACEOF
  1363. #define PACKAGE_NAME "$PACKAGE_NAME"
  1364. _ACEOF
  1365. cat >>confdefs.h <<_ACEOF
  1366. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1367. _ACEOF
  1368. cat >>confdefs.h <<_ACEOF
  1369. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1370. _ACEOF
  1371. cat >>confdefs.h <<_ACEOF
  1372. #define PACKAGE_STRING "$PACKAGE_STRING"
  1373. _ACEOF
  1374. cat >>confdefs.h <<_ACEOF
  1375. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1376. _ACEOF
  1377. # Let the site file select an alternate cache file if it wants to.
  1378. # Prefer explicitly selected file to automatically selected ones.
  1379. if test -n "$CONFIG_SITE"; then
  1380. set x "$CONFIG_SITE"
  1381. elif test "x$prefix" != xNONE; then
  1382. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1383. else
  1384. set x "$ac_default_prefix/share/config.site" \
  1385. "$ac_default_prefix/etc/config.site"
  1386. fi
  1387. shift
  1388. for ac_site_file
  1389. do
  1390. if test -r "$ac_site_file"; then
  1391. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1392. echo "$as_me: loading site script $ac_site_file" >&6;}
  1393. sed 's/^/| /' "$ac_site_file" >&5
  1394. . "$ac_site_file"
  1395. fi
  1396. done
  1397. if test -r "$cache_file"; then
  1398. # Some versions of bash will fail to source /dev/null (special
  1399. # files actually), so we avoid doing that.
  1400. if test -f "$cache_file"; then
  1401. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1402. echo "$as_me: loading cache $cache_file" >&6;}
  1403. case $cache_file in
  1404. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1405. *) . "./$cache_file";;
  1406. esac
  1407. fi
  1408. else
  1409. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1410. echo "$as_me: creating cache $cache_file" >&6;}
  1411. >$cache_file
  1412. fi
  1413. # Check that the precious variables saved in the cache have kept the same
  1414. # value.
  1415. ac_cache_corrupted=false
  1416. for ac_var in $ac_precious_vars; do
  1417. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1418. eval ac_new_set=\$ac_env_${ac_var}_set
  1419. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1420. eval ac_new_val=\$ac_env_${ac_var}_value
  1421. case $ac_old_set,$ac_new_set in
  1422. set,)
  1423. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1424. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1425. ac_cache_corrupted=: ;;
  1426. ,set)
  1427. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1428. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1429. ac_cache_corrupted=: ;;
  1430. ,);;
  1431. *)
  1432. if test "x$ac_old_val" != "x$ac_new_val"; then
  1433. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1434. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1435. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1436. echo "$as_me: former value: $ac_old_val" >&2;}
  1437. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1438. echo "$as_me: current value: $ac_new_val" >&2;}
  1439. ac_cache_corrupted=:
  1440. fi;;
  1441. esac
  1442. # Pass precious variables to config.status.
  1443. if test "$ac_new_set" = set; then
  1444. case $ac_new_val in
  1445. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1446. *) ac_arg=$ac_var=$ac_new_val ;;
  1447. esac
  1448. case " $ac_configure_args " in
  1449. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1450. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1451. esac
  1452. fi
  1453. done
  1454. if $ac_cache_corrupted; then
  1455. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1456. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1457. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1458. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1459. { (exit 1); exit 1; }; }
  1460. fi
  1461. ac_ext=c
  1462. ac_cpp='$CPP $CPPFLAGS'
  1463. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1464. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1465. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1466. ac_config_headers="$ac_config_headers config.h"
  1467. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1468. egg_ac_parameters=
  1469. ac_prev=
  1470. for ac_arg in $ac_configure_args; do
  1471. if test -n "$ac_prev"; then
  1472. ac_prev=
  1473. continue
  1474. fi
  1475. case $ac_arg in
  1476. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1477. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1478. ac_prev=cache_file ;;
  1479. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1480. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1481. | --c=*)
  1482. ;;
  1483. --config-cache | -C)
  1484. ;;
  1485. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1486. ac_prev=srcdir ;;
  1487. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1488. ;;
  1489. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1490. esac
  1491. done
  1492. # Setup build environment
  1493. #AC_REQUIRE_CPP
  1494. ac_ext=cpp
  1495. ac_cpp='$CXXCPP $CPPFLAGS'
  1496. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1497. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1498. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1499. ac_ext=cpp
  1500. ac_cpp='$CXXCPP $CPPFLAGS'
  1501. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1502. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1503. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1504. if test -z "$CXX"; then
  1505. if test -n "$CCC"; then
  1506. CXX=$CCC
  1507. else
  1508. if test -n "$ac_tool_prefix"; then
  1509. 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
  1510. do
  1511. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1512. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1513. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1514. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1515. if test "${ac_cv_prog_CXX+set}" = set; then
  1516. echo $ECHO_N "(cached) $ECHO_C" >&6
  1517. else
  1518. if test -n "$CXX"; then
  1519. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1520. else
  1521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1522. for as_dir in $PATH
  1523. do
  1524. IFS=$as_save_IFS
  1525. test -z "$as_dir" && as_dir=.
  1526. for ac_exec_ext in '' $ac_executable_extensions; do
  1527. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  1528. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1529. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1530. break 2
  1531. fi
  1532. done
  1533. done
  1534. IFS=$as_save_IFS
  1535. fi
  1536. fi
  1537. CXX=$ac_cv_prog_CXX
  1538. if test -n "$CXX"; then
  1539. { echo "$as_me:$LINENO: result: $CXX" >&5
  1540. echo "${ECHO_T}$CXX" >&6; }
  1541. else
  1542. { echo "$as_me:$LINENO: result: no" >&5
  1543. echo "${ECHO_T}no" >&6; }
  1544. fi
  1545. test -n "$CXX" && break
  1546. done
  1547. fi
  1548. if test -z "$CXX"; then
  1549. ac_ct_CXX=$CXX
  1550. 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
  1551. do
  1552. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1553. set dummy $ac_prog; ac_word=$2
  1554. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1555. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1556. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1557. echo $ECHO_N "(cached) $ECHO_C" >&6
  1558. else
  1559. if test -n "$ac_ct_CXX"; then
  1560. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1561. else
  1562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1563. for as_dir in $PATH
  1564. do
  1565. IFS=$as_save_IFS
  1566. test -z "$as_dir" && as_dir=.
  1567. for ac_exec_ext in '' $ac_executable_extensions; do
  1568. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  1569. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1570. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1571. break 2
  1572. fi
  1573. done
  1574. done
  1575. IFS=$as_save_IFS
  1576. fi
  1577. fi
  1578. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1579. if test -n "$ac_ct_CXX"; then
  1580. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1581. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  1582. else
  1583. { echo "$as_me:$LINENO: result: no" >&5
  1584. echo "${ECHO_T}no" >&6; }
  1585. fi
  1586. test -n "$ac_ct_CXX" && break
  1587. done
  1588. if test "x$ac_ct_CXX" = x; then
  1589. CXX="g++"
  1590. else
  1591. case $cross_compiling:$ac_tool_warned in
  1592. yes:)
  1593. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1594. whose name does not start with the host triplet. If you think this
  1595. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1596. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1597. whose name does not start with the host triplet. If you think this
  1598. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1599. ac_tool_warned=yes ;;
  1600. esac
  1601. CXX=$ac_ct_CXX
  1602. fi
  1603. fi
  1604. fi
  1605. fi
  1606. # Provide some information about the compiler.
  1607. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  1608. ac_compiler=`set X $ac_compile; echo $2`
  1609. { (ac_try="$ac_compiler --version >&5"
  1610. case "(($ac_try" in
  1611. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1612. *) ac_try_echo=$ac_try;;
  1613. esac
  1614. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1615. (eval "$ac_compiler --version >&5") 2>&5
  1616. ac_status=$?
  1617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1618. (exit $ac_status); }
  1619. { (ac_try="$ac_compiler -v >&5"
  1620. case "(($ac_try" in
  1621. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1622. *) ac_try_echo=$ac_try;;
  1623. esac
  1624. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1625. (eval "$ac_compiler -v >&5") 2>&5
  1626. ac_status=$?
  1627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1628. (exit $ac_status); }
  1629. { (ac_try="$ac_compiler -V >&5"
  1630. case "(($ac_try" in
  1631. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1632. *) ac_try_echo=$ac_try;;
  1633. esac
  1634. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1635. (eval "$ac_compiler -V >&5") 2>&5
  1636. ac_status=$?
  1637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1638. (exit $ac_status); }
  1639. cat >conftest.$ac_ext <<_ACEOF
  1640. /* confdefs.h. */
  1641. _ACEOF
  1642. cat confdefs.h >>conftest.$ac_ext
  1643. cat >>conftest.$ac_ext <<_ACEOF
  1644. /* end confdefs.h. */
  1645. int
  1646. main ()
  1647. {
  1648. ;
  1649. return 0;
  1650. }
  1651. _ACEOF
  1652. ac_clean_files_save=$ac_clean_files
  1653. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1654. # Try to create an executable without -o first, disregard a.out.
  1655. # It will help us diagnose broken compilers, and finding out an intuition
  1656. # of exeext.
  1657. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1658. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  1659. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1660. #
  1661. # List of possible output files, starting from the most likely.
  1662. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  1663. # only as a last resort. b.out is created by i960 compilers.
  1664. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  1665. #
  1666. # The IRIX 6 linker writes into existing files which may not be
  1667. # executable, retaining their permissions. Remove them first so a
  1668. # subsequent execution test works.
  1669. ac_rmfiles=
  1670. for ac_file in $ac_files
  1671. do
  1672. case $ac_file in
  1673. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  1674. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  1675. esac
  1676. done
  1677. rm -f $ac_rmfiles
  1678. if { (ac_try="$ac_link_default"
  1679. case "(($ac_try" in
  1680. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1681. *) ac_try_echo=$ac_try;;
  1682. esac
  1683. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1684. (eval "$ac_link_default") 2>&5
  1685. ac_status=$?
  1686. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1687. (exit $ac_status); }; then
  1688. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  1689. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  1690. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  1691. # so that the user can short-circuit this test for compilers unknown to
  1692. # Autoconf.
  1693. for ac_file in $ac_files ''
  1694. do
  1695. test -f "$ac_file" || continue
  1696. case $ac_file in
  1697. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  1698. ;;
  1699. [ab].out )
  1700. # We found the default executable, but exeext='' is most
  1701. # certainly right.
  1702. break;;
  1703. *.* )
  1704. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  1705. then :; else
  1706. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1707. fi
  1708. # We set ac_cv_exeext here because the later test for it is not
  1709. # safe: cross compilers may not add the suffix if given an `-o'
  1710. # argument, so we may need to know it at that point already.
  1711. # Even if this section looks crufty: it has the advantage of
  1712. # actually working.
  1713. break;;
  1714. * )
  1715. break;;
  1716. esac
  1717. done
  1718. test "$ac_cv_exeext" = no && ac_cv_exeext=
  1719. else
  1720. ac_file=''
  1721. fi
  1722. { echo "$as_me:$LINENO: result: $ac_file" >&5
  1723. echo "${ECHO_T}$ac_file" >&6; }
  1724. if test -z "$ac_file"; then
  1725. echo "$as_me: failed program was:" >&5
  1726. sed 's/^/| /' conftest.$ac_ext >&5
  1727. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1728. See \`config.log' for more details." >&5
  1729. echo "$as_me: error: C++ compiler cannot create executables
  1730. See \`config.log' for more details." >&2;}
  1731. { (exit 77); exit 77; }; }
  1732. fi
  1733. ac_exeext=$ac_cv_exeext
  1734. # Check that the compiler produces executables we can run. If not, either
  1735. # the compiler is broken, or we cross compile.
  1736. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1737. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  1738. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1739. # If not cross compiling, check that we can run a simple program.
  1740. if test "$cross_compiling" != yes; then
  1741. if { ac_try='./$ac_file'
  1742. { (case "(($ac_try" in
  1743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1744. *) ac_try_echo=$ac_try;;
  1745. esac
  1746. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1747. (eval "$ac_try") 2>&5
  1748. ac_status=$?
  1749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1750. (exit $ac_status); }; }; then
  1751. cross_compiling=no
  1752. else
  1753. if test "$cross_compiling" = maybe; then
  1754. cross_compiling=yes
  1755. else
  1756. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1757. If you meant to cross compile, use \`--host'.
  1758. See \`config.log' for more details." >&5
  1759. echo "$as_me: error: cannot run C++ compiled programs.
  1760. If you meant to cross compile, use \`--host'.
  1761. See \`config.log' for more details." >&2;}
  1762. { (exit 1); exit 1; }; }
  1763. fi
  1764. fi
  1765. fi
  1766. { echo "$as_me:$LINENO: result: yes" >&5
  1767. echo "${ECHO_T}yes" >&6; }
  1768. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1769. ac_clean_files=$ac_clean_files_save
  1770. # Check that the compiler produces executables we can run. If not, either
  1771. # the compiler is broken, or we cross compile.
  1772. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1773. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  1774. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1775. echo "${ECHO_T}$cross_compiling" >&6; }
  1776. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1777. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  1778. if { (ac_try="$ac_link"
  1779. case "(($ac_try" in
  1780. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1781. *) ac_try_echo=$ac_try;;
  1782. esac
  1783. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1784. (eval "$ac_link") 2>&5
  1785. ac_status=$?
  1786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1787. (exit $ac_status); }; then
  1788. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1789. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1790. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1791. # `rm'.
  1792. for ac_file in conftest.exe conftest conftest.*; do
  1793. test -f "$ac_file" || continue
  1794. case $ac_file in
  1795. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  1796. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1797. break;;
  1798. * ) break;;
  1799. esac
  1800. done
  1801. else
  1802. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1803. See \`config.log' for more details." >&5
  1804. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1805. See \`config.log' for more details." >&2;}
  1806. { (exit 1); exit 1; }; }
  1807. fi
  1808. rm -f conftest$ac_cv_exeext
  1809. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1810. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  1811. rm -f conftest.$ac_ext
  1812. EXEEXT=$ac_cv_exeext
  1813. ac_exeext=$EXEEXT
  1814. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1815. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  1816. if test "${ac_cv_objext+set}" = set; then
  1817. echo $ECHO_N "(cached) $ECHO_C" >&6
  1818. else
  1819. cat >conftest.$ac_ext <<_ACEOF
  1820. /* confdefs.h. */
  1821. _ACEOF
  1822. cat confdefs.h >>conftest.$ac_ext
  1823. cat >>conftest.$ac_ext <<_ACEOF
  1824. /* end confdefs.h. */
  1825. int
  1826. main ()
  1827. {
  1828. ;
  1829. return 0;
  1830. }
  1831. _ACEOF
  1832. rm -f conftest.o conftest.obj
  1833. if { (ac_try="$ac_compile"
  1834. case "(($ac_try" in
  1835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1836. *) ac_try_echo=$ac_try;;
  1837. esac
  1838. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1839. (eval "$ac_compile") 2>&5
  1840. ac_status=$?
  1841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1842. (exit $ac_status); }; then
  1843. for ac_file in conftest.o conftest.obj conftest.*; do
  1844. test -f "$ac_file" || continue;
  1845. case $ac_file in
  1846. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  1847. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1848. break;;
  1849. esac
  1850. done
  1851. else
  1852. echo "$as_me: failed program was:" >&5
  1853. sed 's/^/| /' conftest.$ac_ext >&5
  1854. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1855. See \`config.log' for more details." >&5
  1856. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1857. See \`config.log' for more details." >&2;}
  1858. { (exit 1); exit 1; }; }
  1859. fi
  1860. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1861. fi
  1862. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1863. echo "${ECHO_T}$ac_cv_objext" >&6; }
  1864. OBJEXT=$ac_cv_objext
  1865. ac_objext=$OBJEXT
  1866. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  1867. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  1868. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  1869. echo $ECHO_N "(cached) $ECHO_C" >&6
  1870. else
  1871. cat >conftest.$ac_ext <<_ACEOF
  1872. /* confdefs.h. */
  1873. _ACEOF
  1874. cat confdefs.h >>conftest.$ac_ext
  1875. cat >>conftest.$ac_ext <<_ACEOF
  1876. /* end confdefs.h. */
  1877. int
  1878. main ()
  1879. {
  1880. #ifndef __GNUC__
  1881. choke me
  1882. #endif
  1883. ;
  1884. return 0;
  1885. }
  1886. _ACEOF
  1887. rm -f conftest.$ac_objext
  1888. if { (ac_try="$ac_compile"
  1889. case "(($ac_try" in
  1890. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1891. *) ac_try_echo=$ac_try;;
  1892. esac
  1893. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1894. (eval "$ac_compile") 2>conftest.er1
  1895. ac_status=$?
  1896. grep -v '^ *+' conftest.er1 >conftest.err
  1897. rm -f conftest.er1
  1898. cat conftest.err >&5
  1899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1900. (exit $ac_status); } &&
  1901. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  1902. { (case "(($ac_try" in
  1903. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1904. *) ac_try_echo=$ac_try;;
  1905. esac
  1906. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1907. (eval "$ac_try") 2>&5
  1908. ac_status=$?
  1909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1910. (exit $ac_status); }; } &&
  1911. { ac_try='test -s conftest.$ac_objext'
  1912. { (case "(($ac_try" in
  1913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1914. *) ac_try_echo=$ac_try;;
  1915. esac
  1916. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1917. (eval "$ac_try") 2>&5
  1918. ac_status=$?
  1919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1920. (exit $ac_status); }; }; then
  1921. ac_compiler_gnu=yes
  1922. else
  1923. echo "$as_me: failed program was:" >&5
  1924. sed 's/^/| /' conftest.$ac_ext >&5
  1925. ac_compiler_gnu=no
  1926. fi
  1927. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1928. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  1929. fi
  1930. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  1931. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  1932. GXX=`test $ac_compiler_gnu = yes && echo yes`
  1933. ac_test_CXXFLAGS=${CXXFLAGS+set}
  1934. ac_save_CXXFLAGS=$CXXFLAGS
  1935. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  1936. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  1937. if test "${ac_cv_prog_cxx_g+set}" = set; then
  1938. echo $ECHO_N "(cached) $ECHO_C" >&6
  1939. else
  1940. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  1941. ac_cxx_werror_flag=yes
  1942. ac_cv_prog_cxx_g=no
  1943. CXXFLAGS="-g"
  1944. cat >conftest.$ac_ext <<_ACEOF
  1945. /* confdefs.h. */
  1946. _ACEOF
  1947. cat confdefs.h >>conftest.$ac_ext
  1948. cat >>conftest.$ac_ext <<_ACEOF
  1949. /* end confdefs.h. */
  1950. int
  1951. main ()
  1952. {
  1953. ;
  1954. return 0;
  1955. }
  1956. _ACEOF
  1957. rm -f conftest.$ac_objext
  1958. if { (ac_try="$ac_compile"
  1959. case "(($ac_try" in
  1960. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1961. *) ac_try_echo=$ac_try;;
  1962. esac
  1963. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1964. (eval "$ac_compile") 2>conftest.er1
  1965. ac_status=$?
  1966. grep -v '^ *+' conftest.er1 >conftest.err
  1967. rm -f conftest.er1
  1968. cat conftest.err >&5
  1969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1970. (exit $ac_status); } &&
  1971. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  1972. { (case "(($ac_try" in
  1973. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1974. *) ac_try_echo=$ac_try;;
  1975. esac
  1976. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1977. (eval "$ac_try") 2>&5
  1978. ac_status=$?
  1979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1980. (exit $ac_status); }; } &&
  1981. { ac_try='test -s conftest.$ac_objext'
  1982. { (case "(($ac_try" in
  1983. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1984. *) ac_try_echo=$ac_try;;
  1985. esac
  1986. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1987. (eval "$ac_try") 2>&5
  1988. ac_status=$?
  1989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1990. (exit $ac_status); }; }; then
  1991. ac_cv_prog_cxx_g=yes
  1992. else
  1993. echo "$as_me: failed program was:" >&5
  1994. sed 's/^/| /' conftest.$ac_ext >&5
  1995. CXXFLAGS=""
  1996. cat >conftest.$ac_ext <<_ACEOF
  1997. /* confdefs.h. */
  1998. _ACEOF
  1999. cat confdefs.h >>conftest.$ac_ext
  2000. cat >>conftest.$ac_ext <<_ACEOF
  2001. /* end confdefs.h. */
  2002. int
  2003. main ()
  2004. {
  2005. ;
  2006. return 0;
  2007. }
  2008. _ACEOF
  2009. rm -f conftest.$ac_objext
  2010. if { (ac_try="$ac_compile"
  2011. case "(($ac_try" in
  2012. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2013. *) ac_try_echo=$ac_try;;
  2014. esac
  2015. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2016. (eval "$ac_compile") 2>conftest.er1
  2017. ac_status=$?
  2018. grep -v '^ *+' conftest.er1 >conftest.err
  2019. rm -f conftest.er1
  2020. cat conftest.err >&5
  2021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2022. (exit $ac_status); } &&
  2023. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2024. { (case "(($ac_try" in
  2025. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2026. *) ac_try_echo=$ac_try;;
  2027. esac
  2028. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2029. (eval "$ac_try") 2>&5
  2030. ac_status=$?
  2031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2032. (exit $ac_status); }; } &&
  2033. { ac_try='test -s conftest.$ac_objext'
  2034. { (case "(($ac_try" in
  2035. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2036. *) ac_try_echo=$ac_try;;
  2037. esac
  2038. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2039. (eval "$ac_try") 2>&5
  2040. ac_status=$?
  2041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2042. (exit $ac_status); }; }; then
  2043. :
  2044. else
  2045. echo "$as_me: failed program was:" >&5
  2046. sed 's/^/| /' conftest.$ac_ext >&5
  2047. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2048. CXXFLAGS="-g"
  2049. cat >conftest.$ac_ext <<_ACEOF
  2050. /* confdefs.h. */
  2051. _ACEOF
  2052. cat confdefs.h >>conftest.$ac_ext
  2053. cat >>conftest.$ac_ext <<_ACEOF
  2054. /* end confdefs.h. */
  2055. int
  2056. main ()
  2057. {
  2058. ;
  2059. return 0;
  2060. }
  2061. _ACEOF
  2062. rm -f conftest.$ac_objext
  2063. if { (ac_try="$ac_compile"
  2064. case "(($ac_try" in
  2065. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2066. *) ac_try_echo=$ac_try;;
  2067. esac
  2068. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2069. (eval "$ac_compile") 2>conftest.er1
  2070. ac_status=$?
  2071. grep -v '^ *+' conftest.er1 >conftest.err
  2072. rm -f conftest.er1
  2073. cat conftest.err >&5
  2074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2075. (exit $ac_status); } &&
  2076. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2077. { (case "(($ac_try" in
  2078. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2079. *) ac_try_echo=$ac_try;;
  2080. esac
  2081. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2082. (eval "$ac_try") 2>&5
  2083. ac_status=$?
  2084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2085. (exit $ac_status); }; } &&
  2086. { ac_try='test -s conftest.$ac_objext'
  2087. { (case "(($ac_try" in
  2088. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2089. *) ac_try_echo=$ac_try;;
  2090. esac
  2091. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2092. (eval "$ac_try") 2>&5
  2093. ac_status=$?
  2094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2095. (exit $ac_status); }; }; then
  2096. ac_cv_prog_cxx_g=yes
  2097. else
  2098. echo "$as_me: failed program was:" >&5
  2099. sed 's/^/| /' conftest.$ac_ext >&5
  2100. fi
  2101. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2102. fi
  2103. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2104. fi
  2105. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2106. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2107. fi
  2108. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2109. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2110. if test "$ac_test_CXXFLAGS" = set; then
  2111. CXXFLAGS=$ac_save_CXXFLAGS
  2112. elif test $ac_cv_prog_cxx_g = yes; then
  2113. if test "$GXX" = yes; then
  2114. CXXFLAGS="-g -O2"
  2115. else
  2116. CXXFLAGS="-g"
  2117. fi
  2118. else
  2119. if test "$GXX" = yes; then
  2120. CXXFLAGS="-O2"
  2121. else
  2122. CXXFLAGS=
  2123. fi
  2124. fi
  2125. ac_ext=cpp
  2126. ac_cpp='$CXXCPP $CPPFLAGS'
  2127. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2128. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2129. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2130. if test "${cross_compiling-x}" = "x"
  2131. then
  2132. cat << 'EOF' >&2
  2133. configure: error:
  2134. This system does not appear to have a working C compiler.
  2135. A working C compiler is required to compile Eggdrop.
  2136. EOF
  2137. exit 1
  2138. fi
  2139. if test -n "$GXX"; then
  2140. CXXFLAGS="$CXXFLAGS -O3"
  2141. fi
  2142. # Crazy machines
  2143. ac_ext=cpp
  2144. ac_cpp='$CXXCPP $CPPFLAGS'
  2145. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2146. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2147. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2148. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  2149. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  2150. if test -z "$CXXCPP"; then
  2151. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  2152. echo $ECHO_N "(cached) $ECHO_C" >&6
  2153. else
  2154. # Double quotes because CXXCPP needs to be expanded
  2155. for CXXCPP in "$CXX -E" "/lib/cpp"
  2156. do
  2157. ac_preproc_ok=false
  2158. for ac_cxx_preproc_warn_flag in '' yes
  2159. do
  2160. # Use a header file that comes with gcc, so configuring glibc
  2161. # with a fresh cross-compiler works.
  2162. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2163. # <limits.h> exists even on freestanding compilers.
  2164. # On the NeXT, cc -E runs the code through the compiler's parser,
  2165. # not just through cpp. "Syntax error" is here to catch this case.
  2166. cat >conftest.$ac_ext <<_ACEOF
  2167. /* confdefs.h. */
  2168. _ACEOF
  2169. cat confdefs.h >>conftest.$ac_ext
  2170. cat >>conftest.$ac_ext <<_ACEOF
  2171. /* end confdefs.h. */
  2172. #ifdef __STDC__
  2173. # include <limits.h>
  2174. #else
  2175. # include <assert.h>
  2176. #endif
  2177. Syntax error
  2178. _ACEOF
  2179. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2180. case "(($ac_try" in
  2181. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2182. *) ac_try_echo=$ac_try;;
  2183. esac
  2184. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2185. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2186. ac_status=$?
  2187. grep -v '^ *+' conftest.er1 >conftest.err
  2188. rm -f conftest.er1
  2189. cat conftest.err >&5
  2190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2191. (exit $ac_status); } >/dev/null; then
  2192. if test -s conftest.err; then
  2193. ac_cpp_err=$ac_cxx_preproc_warn_flag
  2194. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  2195. else
  2196. ac_cpp_err=
  2197. fi
  2198. else
  2199. ac_cpp_err=yes
  2200. fi
  2201. if test -z "$ac_cpp_err"; then
  2202. :
  2203. else
  2204. echo "$as_me: failed program was:" >&5
  2205. sed 's/^/| /' conftest.$ac_ext >&5
  2206. # Broken: fails on valid input.
  2207. continue
  2208. fi
  2209. rm -f conftest.err conftest.$ac_ext
  2210. # OK, works on sane cases. Now check whether nonexistent headers
  2211. # can be detected and how.
  2212. cat >conftest.$ac_ext <<_ACEOF
  2213. /* confdefs.h. */
  2214. _ACEOF
  2215. cat confdefs.h >>conftest.$ac_ext
  2216. cat >>conftest.$ac_ext <<_ACEOF
  2217. /* end confdefs.h. */
  2218. #include <ac_nonexistent.h>
  2219. _ACEOF
  2220. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2221. case "(($ac_try" in
  2222. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2223. *) ac_try_echo=$ac_try;;
  2224. esac
  2225. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2226. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2227. ac_status=$?
  2228. grep -v '^ *+' conftest.er1 >conftest.err
  2229. rm -f conftest.er1
  2230. cat conftest.err >&5
  2231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2232. (exit $ac_status); } >/dev/null; then
  2233. if test -s conftest.err; then
  2234. ac_cpp_err=$ac_cxx_preproc_warn_flag
  2235. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  2236. else
  2237. ac_cpp_err=
  2238. fi
  2239. else
  2240. ac_cpp_err=yes
  2241. fi
  2242. if test -z "$ac_cpp_err"; then
  2243. # Broken: success on invalid input.
  2244. continue
  2245. else
  2246. echo "$as_me: failed program was:" >&5
  2247. sed 's/^/| /' conftest.$ac_ext >&5
  2248. # Passes both tests.
  2249. ac_preproc_ok=:
  2250. break
  2251. fi
  2252. rm -f conftest.err conftest.$ac_ext
  2253. done
  2254. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2255. rm -f conftest.err conftest.$ac_ext
  2256. if $ac_preproc_ok; then
  2257. break
  2258. fi
  2259. done
  2260. ac_cv_prog_CXXCPP=$CXXCPP
  2261. fi
  2262. CXXCPP=$ac_cv_prog_CXXCPP
  2263. else
  2264. ac_cv_prog_CXXCPP=$CXXCPP
  2265. fi
  2266. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  2267. echo "${ECHO_T}$CXXCPP" >&6; }
  2268. ac_preproc_ok=false
  2269. for ac_cxx_preproc_warn_flag in '' yes
  2270. do
  2271. # Use a header file that comes with gcc, so configuring glibc
  2272. # with a fresh cross-compiler works.
  2273. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2274. # <limits.h> exists even on freestanding compilers.
  2275. # On the NeXT, cc -E runs the code through the compiler's parser,
  2276. # not just through cpp. "Syntax error" is here to catch this case.
  2277. cat >conftest.$ac_ext <<_ACEOF
  2278. /* confdefs.h. */
  2279. _ACEOF
  2280. cat confdefs.h >>conftest.$ac_ext
  2281. cat >>conftest.$ac_ext <<_ACEOF
  2282. /* end confdefs.h. */
  2283. #ifdef __STDC__
  2284. # include <limits.h>
  2285. #else
  2286. # include <assert.h>
  2287. #endif
  2288. Syntax error
  2289. _ACEOF
  2290. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2291. case "(($ac_try" in
  2292. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2293. *) ac_try_echo=$ac_try;;
  2294. esac
  2295. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2296. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2297. ac_status=$?
  2298. grep -v '^ *+' conftest.er1 >conftest.err
  2299. rm -f conftest.er1
  2300. cat conftest.err >&5
  2301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2302. (exit $ac_status); } >/dev/null; then
  2303. if test -s conftest.err; then
  2304. ac_cpp_err=$ac_cxx_preproc_warn_flag
  2305. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  2306. else
  2307. ac_cpp_err=
  2308. fi
  2309. else
  2310. ac_cpp_err=yes
  2311. fi
  2312. if test -z "$ac_cpp_err"; then
  2313. :
  2314. else
  2315. echo "$as_me: failed program was:" >&5
  2316. sed 's/^/| /' conftest.$ac_ext >&5
  2317. # Broken: fails on valid input.
  2318. continue
  2319. fi
  2320. rm -f conftest.err conftest.$ac_ext
  2321. # OK, works on sane cases. Now check whether nonexistent headers
  2322. # can be detected and how.
  2323. cat >conftest.$ac_ext <<_ACEOF
  2324. /* confdefs.h. */
  2325. _ACEOF
  2326. cat confdefs.h >>conftest.$ac_ext
  2327. cat >>conftest.$ac_ext <<_ACEOF
  2328. /* end confdefs.h. */
  2329. #include <ac_nonexistent.h>
  2330. _ACEOF
  2331. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2332. case "(($ac_try" in
  2333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2334. *) ac_try_echo=$ac_try;;
  2335. esac
  2336. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2337. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2338. ac_status=$?
  2339. grep -v '^ *+' conftest.er1 >conftest.err
  2340. rm -f conftest.er1
  2341. cat conftest.err >&5
  2342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2343. (exit $ac_status); } >/dev/null; then
  2344. if test -s conftest.err; then
  2345. ac_cpp_err=$ac_cxx_preproc_warn_flag
  2346. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  2347. else
  2348. ac_cpp_err=
  2349. fi
  2350. else
  2351. ac_cpp_err=yes
  2352. fi
  2353. if test -z "$ac_cpp_err"; then
  2354. # Broken: success on invalid input.
  2355. continue
  2356. else
  2357. echo "$as_me: failed program was:" >&5
  2358. sed 's/^/| /' conftest.$ac_ext >&5
  2359. # Passes both tests.
  2360. ac_preproc_ok=:
  2361. break
  2362. fi
  2363. rm -f conftest.err conftest.$ac_ext
  2364. done
  2365. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2366. rm -f conftest.err conftest.$ac_ext
  2367. if $ac_preproc_ok; then
  2368. :
  2369. else
  2370. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  2371. See \`config.log' for more details." >&5
  2372. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  2373. See \`config.log' for more details." >&2;}
  2374. { (exit 1); exit 1; }; }
  2375. fi
  2376. ac_ext=cpp
  2377. ac_cpp='$CXXCPP $CPPFLAGS'
  2378. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2379. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2380. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2381. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  2382. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  2383. if test "${ac_cv_path_GREP+set}" = set; then
  2384. echo $ECHO_N "(cached) $ECHO_C" >&6
  2385. else
  2386. # Extract the first word of "grep ggrep" to use in msg output
  2387. if test -z "$GREP"; then
  2388. set dummy grep ggrep; ac_prog_name=$2
  2389. if test "${ac_cv_path_GREP+set}" = set; then
  2390. echo $ECHO_N "(cached) $ECHO_C" >&6
  2391. else
  2392. ac_path_GREP_found=false
  2393. # Loop through the user's path and test for each of PROGNAME-LIST
  2394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2395. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2396. do
  2397. IFS=$as_save_IFS
  2398. test -z "$as_dir" && as_dir=.
  2399. for ac_prog in grep ggrep; do
  2400. for ac_exec_ext in '' $ac_executable_extensions; do
  2401. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2402. { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
  2403. # Check for GNU ac_path_GREP and select it if it is found.
  2404. # Check for GNU $ac_path_GREP
  2405. case `"$ac_path_GREP" --version 2>&1` in
  2406. *GNU*)
  2407. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2408. *)
  2409. ac_count=0
  2410. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  2411. while :
  2412. do
  2413. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2414. mv "conftest.tmp" "conftest.in"
  2415. cp "conftest.in" "conftest.nl"
  2416. echo 'GREP' >> "conftest.nl"
  2417. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2418. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2419. ac_count=`expr $ac_count + 1`
  2420. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2421. # Best one so far, save it but keep looking for a better one
  2422. ac_cv_path_GREP="$ac_path_GREP"
  2423. ac_path_GREP_max=$ac_count
  2424. fi
  2425. # 10*(2^10) chars as input seems more than enough
  2426. test $ac_count -gt 10 && break
  2427. done
  2428. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2429. esac
  2430. $ac_path_GREP_found && break 3
  2431. done
  2432. done
  2433. done
  2434. IFS=$as_save_IFS
  2435. fi
  2436. GREP="$ac_cv_path_GREP"
  2437. if test -z "$GREP"; then
  2438. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2439. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2440. { (exit 1); exit 1; }; }
  2441. fi
  2442. else
  2443. ac_cv_path_GREP=$GREP
  2444. fi
  2445. fi
  2446. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  2447. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  2448. GREP="$ac_cv_path_GREP"
  2449. { echo "$as_me:$LINENO: checking for egrep" >&5
  2450. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  2451. if test "${ac_cv_path_EGREP+set}" = set; then
  2452. echo $ECHO_N "(cached) $ECHO_C" >&6
  2453. else
  2454. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2455. then ac_cv_path_EGREP="$GREP -E"
  2456. else
  2457. # Extract the first word of "egrep" to use in msg output
  2458. if test -z "$EGREP"; then
  2459. set dummy egrep; ac_prog_name=$2
  2460. if test "${ac_cv_path_EGREP+set}" = set; then
  2461. echo $ECHO_N "(cached) $ECHO_C" >&6
  2462. else
  2463. ac_path_EGREP_found=false
  2464. # Loop through the user's path and test for each of PROGNAME-LIST
  2465. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2466. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2467. do
  2468. IFS=$as_save_IFS
  2469. test -z "$as_dir" && as_dir=.
  2470. for ac_prog in egrep; do
  2471. for ac_exec_ext in '' $ac_executable_extensions; do
  2472. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  2473. { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
  2474. # Check for GNU ac_path_EGREP and select it if it is found.
  2475. # Check for GNU $ac_path_EGREP
  2476. case `"$ac_path_EGREP" --version 2>&1` in
  2477. *GNU*)
  2478. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  2479. *)
  2480. ac_count=0
  2481. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  2482. while :
  2483. do
  2484. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2485. mv "conftest.tmp" "conftest.in"
  2486. cp "conftest.in" "conftest.nl"
  2487. echo 'EGREP' >> "conftest.nl"
  2488. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2489. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2490. ac_count=`expr $ac_count + 1`
  2491. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  2492. # Best one so far, save it but keep looking for a better one
  2493. ac_cv_path_EGREP="$ac_path_EGREP"
  2494. ac_path_EGREP_max=$ac_count
  2495. fi
  2496. # 10*(2^10) chars as input seems more than enough
  2497. test $ac_count -gt 10 && break
  2498. done
  2499. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2500. esac
  2501. $ac_path_EGREP_found && break 3
  2502. done
  2503. done
  2504. done
  2505. IFS=$as_save_IFS
  2506. fi
  2507. EGREP="$ac_cv_path_EGREP"
  2508. if test -z "$EGREP"; then
  2509. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2510. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2511. { (exit 1); exit 1; }; }
  2512. fi
  2513. else
  2514. ac_cv_path_EGREP=$EGREP
  2515. fi
  2516. fi
  2517. fi
  2518. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  2519. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  2520. EGREP="$ac_cv_path_EGREP"
  2521. { echo "$as_me:$LINENO: checking for AIX" >&5
  2522. echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
  2523. cat >conftest.$ac_ext <<_ACEOF
  2524. /* confdefs.h. */
  2525. _ACEOF
  2526. cat confdefs.h >>conftest.$ac_ext
  2527. cat >>conftest.$ac_ext <<_ACEOF
  2528. /* end confdefs.h. */
  2529. #ifdef _AIX
  2530. yes
  2531. #endif
  2532. _ACEOF
  2533. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2534. $EGREP "yes" >/dev/null 2>&1; then
  2535. { echo "$as_me:$LINENO: result: yes" >&5
  2536. echo "${ECHO_T}yes" >&6; }
  2537. cat >>confdefs.h <<\_ACEOF
  2538. #define _ALL_SOURCE 1
  2539. _ACEOF
  2540. else
  2541. { echo "$as_me:$LINENO: result: no" >&5
  2542. echo "${ECHO_T}no" >&6; }
  2543. fi
  2544. rm -f conftest*
  2545. { echo "$as_me:$LINENO: checking for library containing strerror" >&5
  2546. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
  2547. if test "${ac_cv_search_strerror+set}" = set; then
  2548. echo $ECHO_N "(cached) $ECHO_C" >&6
  2549. else
  2550. ac_func_search_save_LIBS=$LIBS
  2551. cat >conftest.$ac_ext <<_ACEOF
  2552. /* confdefs.h. */
  2553. _ACEOF
  2554. cat confdefs.h >>conftest.$ac_ext
  2555. cat >>conftest.$ac_ext <<_ACEOF
  2556. /* end confdefs.h. */
  2557. /* Override any GCC internal prototype to avoid an error.
  2558. Use char because int might match the return type of a GCC
  2559. builtin and then its argument prototype would still apply. */
  2560. #ifdef __cplusplus
  2561. extern "C"
  2562. #endif
  2563. char strerror ();
  2564. int
  2565. main ()
  2566. {
  2567. return strerror ();
  2568. ;
  2569. return 0;
  2570. }
  2571. _ACEOF
  2572. for ac_lib in '' cposix; do
  2573. if test -z "$ac_lib"; then
  2574. ac_res="none required"
  2575. else
  2576. ac_res=-l$ac_lib
  2577. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  2578. fi
  2579. rm -f conftest.$ac_objext conftest$ac_exeext
  2580. if { (ac_try="$ac_link"
  2581. case "(($ac_try" in
  2582. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2583. *) ac_try_echo=$ac_try;;
  2584. esac
  2585. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2586. (eval "$ac_link") 2>conftest.er1
  2587. ac_status=$?
  2588. grep -v '^ *+' conftest.er1 >conftest.err
  2589. rm -f conftest.er1
  2590. cat conftest.err >&5
  2591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2592. (exit $ac_status); } &&
  2593. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2594. { (case "(($ac_try" in
  2595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2596. *) ac_try_echo=$ac_try;;
  2597. esac
  2598. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2599. (eval "$ac_try") 2>&5
  2600. ac_status=$?
  2601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2602. (exit $ac_status); }; } &&
  2603. { ac_try='test -s conftest$ac_exeext'
  2604. { (case "(($ac_try" in
  2605. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2606. *) ac_try_echo=$ac_try;;
  2607. esac
  2608. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2609. (eval "$ac_try") 2>&5
  2610. ac_status=$?
  2611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2612. (exit $ac_status); }; }; then
  2613. ac_cv_search_strerror=$ac_res
  2614. else
  2615. echo "$as_me: failed program was:" >&5
  2616. sed 's/^/| /' conftest.$ac_ext >&5
  2617. fi
  2618. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2619. conftest$ac_exeext
  2620. if test "${ac_cv_search_strerror+set}" = set; then
  2621. break
  2622. fi
  2623. done
  2624. if test "${ac_cv_search_strerror+set}" = set; then
  2625. :
  2626. else
  2627. ac_cv_search_strerror=no
  2628. fi
  2629. rm conftest.$ac_ext
  2630. LIBS=$ac_func_search_save_LIBS
  2631. fi
  2632. { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  2633. echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
  2634. ac_res=$ac_cv_search_strerror
  2635. if test "$ac_res" != no; then
  2636. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  2637. fi
  2638. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2639. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  2640. if test "${ac_cv_header_stdc+set}" = set; then
  2641. echo $ECHO_N "(cached) $ECHO_C" >&6
  2642. else
  2643. cat >conftest.$ac_ext <<_ACEOF
  2644. /* confdefs.h. */
  2645. _ACEOF
  2646. cat confdefs.h >>conftest.$ac_ext
  2647. cat >>conftest.$ac_ext <<_ACEOF
  2648. /* end confdefs.h. */
  2649. #include <stdlib.h>
  2650. #include <stdarg.h>
  2651. #include <string.h>
  2652. #include <float.h>
  2653. int
  2654. main ()
  2655. {
  2656. ;
  2657. return 0;
  2658. }
  2659. _ACEOF
  2660. rm -f conftest.$ac_objext
  2661. if { (ac_try="$ac_compile"
  2662. case "(($ac_try" in
  2663. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2664. *) ac_try_echo=$ac_try;;
  2665. esac
  2666. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2667. (eval "$ac_compile") 2>conftest.er1
  2668. ac_status=$?
  2669. grep -v '^ *+' conftest.er1 >conftest.err
  2670. rm -f conftest.er1
  2671. cat conftest.err >&5
  2672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2673. (exit $ac_status); } &&
  2674. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2675. { (case "(($ac_try" in
  2676. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2677. *) ac_try_echo=$ac_try;;
  2678. esac
  2679. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2680. (eval "$ac_try") 2>&5
  2681. ac_status=$?
  2682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2683. (exit $ac_status); }; } &&
  2684. { ac_try='test -s conftest.$ac_objext'
  2685. { (case "(($ac_try" in
  2686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2687. *) ac_try_echo=$ac_try;;
  2688. esac
  2689. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2690. (eval "$ac_try") 2>&5
  2691. ac_status=$?
  2692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2693. (exit $ac_status); }; }; then
  2694. ac_cv_header_stdc=yes
  2695. else
  2696. echo "$as_me: failed program was:" >&5
  2697. sed 's/^/| /' conftest.$ac_ext >&5
  2698. ac_cv_header_stdc=no
  2699. fi
  2700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2701. if test $ac_cv_header_stdc = yes; then
  2702. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2703. cat >conftest.$ac_ext <<_ACEOF
  2704. /* confdefs.h. */
  2705. _ACEOF
  2706. cat confdefs.h >>conftest.$ac_ext
  2707. cat >>conftest.$ac_ext <<_ACEOF
  2708. /* end confdefs.h. */
  2709. #include <string.h>
  2710. _ACEOF
  2711. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2712. $EGREP "memchr" >/dev/null 2>&1; then
  2713. :
  2714. else
  2715. ac_cv_header_stdc=no
  2716. fi
  2717. rm -f conftest*
  2718. fi
  2719. if test $ac_cv_header_stdc = yes; then
  2720. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2721. cat >conftest.$ac_ext <<_ACEOF
  2722. /* confdefs.h. */
  2723. _ACEOF
  2724. cat confdefs.h >>conftest.$ac_ext
  2725. cat >>conftest.$ac_ext <<_ACEOF
  2726. /* end confdefs.h. */
  2727. #include <stdlib.h>
  2728. _ACEOF
  2729. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2730. $EGREP "free" >/dev/null 2>&1; then
  2731. :
  2732. else
  2733. ac_cv_header_stdc=no
  2734. fi
  2735. rm -f conftest*
  2736. fi
  2737. if test $ac_cv_header_stdc = yes; then
  2738. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2739. if test "$cross_compiling" = yes; then
  2740. :
  2741. else
  2742. cat >conftest.$ac_ext <<_ACEOF
  2743. /* confdefs.h. */
  2744. _ACEOF
  2745. cat confdefs.h >>conftest.$ac_ext
  2746. cat >>conftest.$ac_ext <<_ACEOF
  2747. /* end confdefs.h. */
  2748. #include <ctype.h>
  2749. #include <stdlib.h>
  2750. #if ((' ' & 0x0FF) == 0x020)
  2751. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2752. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2753. #else
  2754. # define ISLOWER(c) \
  2755. (('a' <= (c) && (c) <= 'i') \
  2756. || ('j' <= (c) && (c) <= 'r') \
  2757. || ('s' <= (c) && (c) <= 'z'))
  2758. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2759. #endif
  2760. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2761. int
  2762. main ()
  2763. {
  2764. int i;
  2765. for (i = 0; i < 256; i++)
  2766. if (XOR (islower (i), ISLOWER (i))
  2767. || toupper (i) != TOUPPER (i))
  2768. return 2;
  2769. return 0;
  2770. }
  2771. _ACEOF
  2772. rm -f conftest$ac_exeext
  2773. if { (ac_try="$ac_link"
  2774. case "(($ac_try" in
  2775. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2776. *) ac_try_echo=$ac_try;;
  2777. esac
  2778. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2779. (eval "$ac_link") 2>&5
  2780. ac_status=$?
  2781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2782. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2783. { (case "(($ac_try" in
  2784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2785. *) ac_try_echo=$ac_try;;
  2786. esac
  2787. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2788. (eval "$ac_try") 2>&5
  2789. ac_status=$?
  2790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2791. (exit $ac_status); }; }; then
  2792. :
  2793. else
  2794. echo "$as_me: program exited with status $ac_status" >&5
  2795. echo "$as_me: failed program was:" >&5
  2796. sed 's/^/| /' conftest.$ac_ext >&5
  2797. ( exit $ac_status )
  2798. ac_cv_header_stdc=no
  2799. fi
  2800. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2801. fi
  2802. fi
  2803. fi
  2804. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2805. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  2806. if test $ac_cv_header_stdc = yes; then
  2807. cat >>confdefs.h <<\_ACEOF
  2808. #define STDC_HEADERS 1
  2809. _ACEOF
  2810. fi
  2811. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2812. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2813. inttypes.h stdint.h unistd.h
  2814. do
  2815. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2816. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  2817. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  2818. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  2819. echo $ECHO_N "(cached) $ECHO_C" >&6
  2820. else
  2821. cat >conftest.$ac_ext <<_ACEOF
  2822. /* confdefs.h. */
  2823. _ACEOF
  2824. cat confdefs.h >>conftest.$ac_ext
  2825. cat >>conftest.$ac_ext <<_ACEOF
  2826. /* end confdefs.h. */
  2827. $ac_includes_default
  2828. #include <$ac_header>
  2829. _ACEOF
  2830. rm -f conftest.$ac_objext
  2831. if { (ac_try="$ac_compile"
  2832. case "(($ac_try" in
  2833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2834. *) ac_try_echo=$ac_try;;
  2835. esac
  2836. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2837. (eval "$ac_compile") 2>conftest.er1
  2838. ac_status=$?
  2839. grep -v '^ *+' conftest.er1 >conftest.err
  2840. rm -f conftest.er1
  2841. cat conftest.err >&5
  2842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2843. (exit $ac_status); } &&
  2844. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2845. { (case "(($ac_try" in
  2846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2847. *) ac_try_echo=$ac_try;;
  2848. esac
  2849. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2850. (eval "$ac_try") 2>&5
  2851. ac_status=$?
  2852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2853. (exit $ac_status); }; } &&
  2854. { ac_try='test -s conftest.$ac_objext'
  2855. { (case "(($ac_try" in
  2856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2857. *) ac_try_echo=$ac_try;;
  2858. esac
  2859. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2860. (eval "$ac_try") 2>&5
  2861. ac_status=$?
  2862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2863. (exit $ac_status); }; }; then
  2864. eval "$as_ac_Header=yes"
  2865. else
  2866. echo "$as_me: failed program was:" >&5
  2867. sed 's/^/| /' conftest.$ac_ext >&5
  2868. eval "$as_ac_Header=no"
  2869. fi
  2870. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2871. fi
  2872. ac_res=`eval echo '${'$as_ac_Header'}'`
  2873. { echo "$as_me:$LINENO: result: $ac_res" >&5
  2874. echo "${ECHO_T}$ac_res" >&6; }
  2875. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2876. cat >>confdefs.h <<_ACEOF
  2877. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2878. _ACEOF
  2879. fi
  2880. done
  2881. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2882. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2883. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  2884. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2885. echo $ECHO_N "(cached) $ECHO_C" >&6
  2886. fi
  2887. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2888. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  2889. else
  2890. # Is the header compilable?
  2891. { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2892. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
  2893. cat >conftest.$ac_ext <<_ACEOF
  2894. /* confdefs.h. */
  2895. _ACEOF
  2896. cat confdefs.h >>conftest.$ac_ext
  2897. cat >>conftest.$ac_ext <<_ACEOF
  2898. /* end confdefs.h. */
  2899. $ac_includes_default
  2900. #include <minix/config.h>
  2901. _ACEOF
  2902. rm -f conftest.$ac_objext
  2903. if { (ac_try="$ac_compile"
  2904. case "(($ac_try" in
  2905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2906. *) ac_try_echo=$ac_try;;
  2907. esac
  2908. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2909. (eval "$ac_compile") 2>conftest.er1
  2910. ac_status=$?
  2911. grep -v '^ *+' conftest.er1 >conftest.err
  2912. rm -f conftest.er1
  2913. cat conftest.err >&5
  2914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2915. (exit $ac_status); } &&
  2916. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2917. { (case "(($ac_try" in
  2918. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2919. *) ac_try_echo=$ac_try;;
  2920. esac
  2921. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2922. (eval "$ac_try") 2>&5
  2923. ac_status=$?
  2924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2925. (exit $ac_status); }; } &&
  2926. { ac_try='test -s conftest.$ac_objext'
  2927. { (case "(($ac_try" in
  2928. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2929. *) ac_try_echo=$ac_try;;
  2930. esac
  2931. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2932. (eval "$ac_try") 2>&5
  2933. ac_status=$?
  2934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2935. (exit $ac_status); }; }; then
  2936. ac_header_compiler=yes
  2937. else
  2938. echo "$as_me: failed program was:" >&5
  2939. sed 's/^/| /' conftest.$ac_ext >&5
  2940. ac_header_compiler=no
  2941. fi
  2942. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2943. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2944. echo "${ECHO_T}$ac_header_compiler" >&6; }
  2945. # Is the header present?
  2946. { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2947. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
  2948. cat >conftest.$ac_ext <<_ACEOF
  2949. /* confdefs.h. */
  2950. _ACEOF
  2951. cat confdefs.h >>conftest.$ac_ext
  2952. cat >>conftest.$ac_ext <<_ACEOF
  2953. /* end confdefs.h. */
  2954. #include <minix/config.h>
  2955. _ACEOF
  2956. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2957. case "(($ac_try" in
  2958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2959. *) ac_try_echo=$ac_try;;
  2960. esac
  2961. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2962. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2963. ac_status=$?
  2964. grep -v '^ *+' conftest.er1 >conftest.err
  2965. rm -f conftest.er1
  2966. cat conftest.err >&5
  2967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2968. (exit $ac_status); } >/dev/null; then
  2969. if test -s conftest.err; then
  2970. ac_cpp_err=$ac_cxx_preproc_warn_flag
  2971. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  2972. else
  2973. ac_cpp_err=
  2974. fi
  2975. else
  2976. ac_cpp_err=yes
  2977. fi
  2978. if test -z "$ac_cpp_err"; then
  2979. ac_header_preproc=yes
  2980. else
  2981. echo "$as_me: failed program was:" >&5
  2982. sed 's/^/| /' conftest.$ac_ext >&5
  2983. ac_header_preproc=no
  2984. fi
  2985. rm -f conftest.err conftest.$ac_ext
  2986. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2987. echo "${ECHO_T}$ac_header_preproc" >&6; }
  2988. # So? What about this header?
  2989. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  2990. yes:no: )
  2991. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2992. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2993. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2994. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2995. ac_header_preproc=yes
  2996. ;;
  2997. no:yes:* )
  2998. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2999. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  3000. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  3001. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  3002. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  3003. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  3004. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  3005. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  3006. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  3007. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  3008. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  3009. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  3010. ;;
  3011. esac
  3012. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  3013. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  3014. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3015. echo $ECHO_N "(cached) $ECHO_C" >&6
  3016. else
  3017. ac_cv_header_minix_config_h=$ac_header_preproc
  3018. fi
  3019. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  3020. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  3021. fi
  3022. if test $ac_cv_header_minix_config_h = yes; then
  3023. MINIX=yes
  3024. else
  3025. MINIX=
  3026. fi
  3027. if test "$MINIX" = yes; then
  3028. cat >>confdefs.h <<\_ACEOF
  3029. #define _POSIX_SOURCE 1
  3030. _ACEOF
  3031. cat >>confdefs.h <<\_ACEOF
  3032. #define _POSIX_1_SOURCE 2
  3033. _ACEOF
  3034. cat >>confdefs.h <<\_ACEOF
  3035. #define _MINIX 1
  3036. _ACEOF
  3037. fi
  3038. #checkpoint
  3039. cat >confcache <<\_ACEOF
  3040. # This file is a shell script that caches the results of configure
  3041. # tests run on this system so they can be shared between configure
  3042. # scripts and configure runs, see configure's option --config-cache.
  3043. # It is not useful on other systems. If it contains results you don't
  3044. # want to keep, you may remove or edit it.
  3045. #
  3046. # config.status only pays attention to the cache file if you give it
  3047. # the --recheck option to rerun configure.
  3048. #
  3049. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3050. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3051. # following values.
  3052. _ACEOF
  3053. # The following way of writing the cache mishandles newlines in values,
  3054. # but we know of no workaround that is simple, portable, and efficient.
  3055. # So, we kill variables containing newlines.
  3056. # Ultrix sh set writes to stderr and can't be redirected directly,
  3057. # and sets the high bit in the cache file unless we assign to the vars.
  3058. (
  3059. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3060. eval ac_val=\$$ac_var
  3061. case $ac_val in #(
  3062. *${as_nl}*)
  3063. case $ac_var in #(
  3064. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  3065. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  3066. esac
  3067. case $ac_var in #(
  3068. _ | IFS | as_nl) ;; #(
  3069. *) $as_unset $ac_var ;;
  3070. esac ;;
  3071. esac
  3072. done
  3073. (set) 2>&1 |
  3074. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3075. *${as_nl}ac_space=\ *)
  3076. # `set' does not quote correctly, so add quotes (double-quote
  3077. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3078. sed -n \
  3079. "s/'/'\\\\''/g;
  3080. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3081. ;; #(
  3082. *)
  3083. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3084. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3085. ;;
  3086. esac |
  3087. sort
  3088. ) |
  3089. sed '
  3090. /^ac_cv_env_/b end
  3091. t clear
  3092. :clear
  3093. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3094. t end
  3095. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3096. :end' >>confcache
  3097. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3098. if test -w "$cache_file"; then
  3099. test "x$cache_file" != "x/dev/null" &&
  3100. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3101. echo "$as_me: updating cache $cache_file" >&6;}
  3102. cat confcache >$cache_file
  3103. else
  3104. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3105. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3106. fi
  3107. fi
  3108. rm -f confcache
  3109. # Speedup compile
  3110. if test -n "$GXX" && test -z "$no_wall"; then
  3111. { echo "$as_me:$LINENO: checking whether the compiler understands -Wall" >&5
  3112. echo $ECHO_N "checking whether the compiler understands -Wall... $ECHO_C" >&6; }
  3113. if test "${egg_cv_var_ccwall+set}" = set; then
  3114. echo $ECHO_N "(cached) $ECHO_C" >&6
  3115. else
  3116. ac_old_CXXFLAGS="$CXXFLAGS"
  3117. CXXFLAGS="$CXXFLAGS -Wall"
  3118. cat >conftest.$ac_ext <<_ACEOF
  3119. int main ()
  3120. {
  3121. return(0);
  3122. }
  3123. _ACEOF
  3124. rm -f conftest.$ac_objext
  3125. if { (ac_try="$ac_compile"
  3126. case "(($ac_try" in
  3127. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3128. *) ac_try_echo=$ac_try;;
  3129. esac
  3130. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3131. (eval "$ac_compile") 2>conftest.er1
  3132. ac_status=$?
  3133. grep -v '^ *+' conftest.er1 >conftest.err
  3134. rm -f conftest.er1
  3135. cat conftest.err >&5
  3136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3137. (exit $ac_status); } &&
  3138. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3139. { (case "(($ac_try" in
  3140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3141. *) ac_try_echo=$ac_try;;
  3142. esac
  3143. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3144. (eval "$ac_try") 2>&5
  3145. ac_status=$?
  3146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3147. (exit $ac_status); }; } &&
  3148. { ac_try='test -s conftest.$ac_objext'
  3149. { (case "(($ac_try" in
  3150. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3151. *) ac_try_echo=$ac_try;;
  3152. esac
  3153. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3154. (eval "$ac_try") 2>&5
  3155. ac_status=$?
  3156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3157. (exit $ac_status); }; }; then
  3158. egg_cv_var_ccwall="yes"
  3159. else
  3160. echo "$as_me: failed program was:" >&5
  3161. sed 's/^/| /' conftest.$ac_ext >&5
  3162. egg_cv_var_ccwall="no"
  3163. fi
  3164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3165. CXXFLAGS="$ac_old_CXXFLAGS"
  3166. fi
  3167. { echo "$as_me:$LINENO: result: $egg_cv_var_ccwall" >&5
  3168. echo "${ECHO_T}$egg_cv_var_ccwall" >&6; }
  3169. if test "$egg_cv_var_ccwall" = "yes"; then
  3170. CXXFLAGS="$CXXFLAGS -Wall"
  3171. fi
  3172. fi
  3173. if test -n "$GXX" && test -z "$no_pipe"; then
  3174. { echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  3175. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6; }
  3176. if test "${egg_cv_var_ccpipe+set}" = set; then
  3177. echo $ECHO_N "(cached) $ECHO_C" >&6
  3178. else
  3179. ac_old_CXX="$CXX"
  3180. CXX="$CXX -pipe"
  3181. cat >conftest.$ac_ext <<_ACEOF
  3182. int main ()
  3183. {
  3184. return(0);
  3185. }
  3186. _ACEOF
  3187. rm -f conftest.$ac_objext
  3188. if { (ac_try="$ac_compile"
  3189. case "(($ac_try" in
  3190. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3191. *) ac_try_echo=$ac_try;;
  3192. esac
  3193. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3194. (eval "$ac_compile") 2>conftest.er1
  3195. ac_status=$?
  3196. grep -v '^ *+' conftest.er1 >conftest.err
  3197. rm -f conftest.er1
  3198. cat conftest.err >&5
  3199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3200. (exit $ac_status); } &&
  3201. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3202. { (case "(($ac_try" in
  3203. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3204. *) ac_try_echo=$ac_try;;
  3205. esac
  3206. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3207. (eval "$ac_try") 2>&5
  3208. ac_status=$?
  3209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3210. (exit $ac_status); }; } &&
  3211. { ac_try='test -s conftest.$ac_objext'
  3212. { (case "(($ac_try" in
  3213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3214. *) ac_try_echo=$ac_try;;
  3215. esac
  3216. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3217. (eval "$ac_try") 2>&5
  3218. ac_status=$?
  3219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3220. (exit $ac_status); }; }; then
  3221. egg_cv_var_ccpipe="yes"
  3222. else
  3223. echo "$as_me: failed program was:" >&5
  3224. sed 's/^/| /' conftest.$ac_ext >&5
  3225. egg_cv_var_ccpipe="no"
  3226. fi
  3227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3228. CXX="$ac_old_CXX"
  3229. fi
  3230. { echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  3231. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6; }
  3232. if test "$egg_cv_var_ccpipe" = "yes"; then
  3233. CXX="$CXX -pipe"
  3234. fi
  3235. fi
  3236. CCDEPMODE=gcc
  3237. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  3238. if test $num = "3"; then
  3239. CCDEPMODE=gcc3
  3240. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  3241. GCC3="-W -Wno-unused-parameter -Wdisabled-optimization -Wmissing-format-attribute"
  3242. fi
  3243. #checkpoint
  3244. cat >confcache <<\_ACEOF
  3245. # This file is a shell script that caches the results of configure
  3246. # tests run on this system so they can be shared between configure
  3247. # scripts and configure runs, see configure's option --config-cache.
  3248. # It is not useful on other systems. If it contains results you don't
  3249. # want to keep, you may remove or edit it.
  3250. #
  3251. # config.status only pays attention to the cache file if you give it
  3252. # the --recheck option to rerun configure.
  3253. #
  3254. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3255. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3256. # following values.
  3257. _ACEOF
  3258. # The following way of writing the cache mishandles newlines in values,
  3259. # but we know of no workaround that is simple, portable, and efficient.
  3260. # So, we kill variables containing newlines.
  3261. # Ultrix sh set writes to stderr and can't be redirected directly,
  3262. # and sets the high bit in the cache file unless we assign to the vars.
  3263. (
  3264. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3265. eval ac_val=\$$ac_var
  3266. case $ac_val in #(
  3267. *${as_nl}*)
  3268. case $ac_var in #(
  3269. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  3270. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  3271. esac
  3272. case $ac_var in #(
  3273. _ | IFS | as_nl) ;; #(
  3274. *) $as_unset $ac_var ;;
  3275. esac ;;
  3276. esac
  3277. done
  3278. (set) 2>&1 |
  3279. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3280. *${as_nl}ac_space=\ *)
  3281. # `set' does not quote correctly, so add quotes (double-quote
  3282. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3283. sed -n \
  3284. "s/'/'\\\\''/g;
  3285. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3286. ;; #(
  3287. *)
  3288. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3289. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3290. ;;
  3291. esac |
  3292. sort
  3293. ) |
  3294. sed '
  3295. /^ac_cv_env_/b end
  3296. t clear
  3297. :clear
  3298. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3299. t end
  3300. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3301. :end' >>confcache
  3302. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3303. if test -w "$cache_file"; then
  3304. test "x$cache_file" != "x/dev/null" &&
  3305. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3306. echo "$as_me: updating cache $cache_file" >&6;}
  3307. cat confcache >$cache_file
  3308. else
  3309. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3310. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3311. fi
  3312. fi
  3313. rm -f confcache
  3314. # Checks for programs
  3315. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3316. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  3317. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3318. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  3319. echo $ECHO_N "(cached) $ECHO_C" >&6
  3320. else
  3321. cat >conftest.make <<\_ACEOF
  3322. SHELL = /bin/sh
  3323. all:
  3324. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3325. _ACEOF
  3326. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3327. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3328. *@@@%%%=?*=@@@%%%*)
  3329. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3330. *)
  3331. eval ac_cv_prog_make_${ac_make}_set=no;;
  3332. esac
  3333. rm -f conftest.make
  3334. fi
  3335. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3336. { echo "$as_me:$LINENO: result: yes" >&5
  3337. echo "${ECHO_T}yes" >&6; }
  3338. SET_MAKE=
  3339. else
  3340. { echo "$as_me:$LINENO: result: no" >&5
  3341. echo "${ECHO_T}no" >&6; }
  3342. SET_MAKE="MAKE=${MAKE-make}"
  3343. fi
  3344. cat << 'EOF' > conftest.head
  3345. a
  3346. b
  3347. c
  3348. EOF
  3349. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  3350. do
  3351. { echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  3352. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6; }
  3353. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  3354. echo $ECHO_N "(cached) $ECHO_C" >&6
  3355. else
  3356. if test -n "$HEAD_1"
  3357. then
  3358. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  3359. else
  3360. if test "`cat conftest.head | $ac_prog`" = "a";
  3361. then
  3362. { echo "$as_me:$LINENO: result: yes" >&5
  3363. echo "${ECHO_T}yes" >&6; }
  3364. ac_cv_prog_HEAD_1=$ac_prog
  3365. else
  3366. { echo "$as_me:$LINENO: result: no" >&5
  3367. echo "${ECHO_T}no" >&6; }
  3368. fi
  3369. fi
  3370. fi
  3371. test -n "$ac_cv_prog_HEAD_1" && break
  3372. done
  3373. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  3374. then
  3375. cat << 'EOF' >&2
  3376. configure: error:
  3377. This system seems to lack a working 'head -1' or 'head -n 1' command.
  3378. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  3379. EOF
  3380. exit 1
  3381. fi
  3382. rm -f conftest.head
  3383. HEAD_1=$ac_cv_prog_HEAD_1
  3384. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3385. for ac_prog in gawk mawk nawk awk
  3386. do
  3387. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3388. set dummy $ac_prog; ac_word=$2
  3389. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3390. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3391. if test "${ac_cv_prog_AWK+set}" = set; then
  3392. echo $ECHO_N "(cached) $ECHO_C" >&6
  3393. else
  3394. if test -n "$AWK"; then
  3395. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3396. else
  3397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3398. for as_dir in $PATH
  3399. do
  3400. IFS=$as_save_IFS
  3401. test -z "$as_dir" && as_dir=.
  3402. for ac_exec_ext in '' $ac_executable_extensions; do
  3403. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  3404. ac_cv_prog_AWK="$ac_prog"
  3405. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3406. break 2
  3407. fi
  3408. done
  3409. done
  3410. IFS=$as_save_IFS
  3411. fi
  3412. fi
  3413. AWK=$ac_cv_prog_AWK
  3414. if test -n "$AWK"; then
  3415. { echo "$as_me:$LINENO: result: $AWK" >&5
  3416. echo "${ECHO_T}$AWK" >&6; }
  3417. else
  3418. { echo "$as_me:$LINENO: result: no" >&5
  3419. echo "${ECHO_T}no" >&6; }
  3420. fi
  3421. test -n "$AWK" && break
  3422. done
  3423. if test "${AWK-x}" = "x"
  3424. then
  3425. cat << 'EOF' >&2
  3426. configure: error:
  3427. This system seems to lack a working 'awk' command.
  3428. A working 'awk' command is required to compile Eggdrop.
  3429. EOF
  3430. exit 1
  3431. fi
  3432. # basename is needed for Tcl library and header checks
  3433. # Extract the first word of "basename", so it can be a program name with args.
  3434. set dummy basename; ac_word=$2
  3435. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3436. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3437. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3438. echo $ECHO_N "(cached) $ECHO_C" >&6
  3439. else
  3440. if test -n "$BASENAME"; then
  3441. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3442. else
  3443. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3444. for as_dir in $PATH
  3445. do
  3446. IFS=$as_save_IFS
  3447. test -z "$as_dir" && as_dir=.
  3448. for ac_exec_ext in '' $ac_executable_extensions; do
  3449. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  3450. ac_cv_prog_BASENAME="basename"
  3451. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3452. break 2
  3453. fi
  3454. done
  3455. done
  3456. IFS=$as_save_IFS
  3457. fi
  3458. fi
  3459. BASENAME=$ac_cv_prog_BASENAME
  3460. if test -n "$BASENAME"; then
  3461. { echo "$as_me:$LINENO: result: $BASENAME" >&5
  3462. echo "${ECHO_T}$BASENAME" >&6; }
  3463. else
  3464. { echo "$as_me:$LINENO: result: no" >&5
  3465. echo "${ECHO_T}no" >&6; }
  3466. fi
  3467. if test "${BASENAME-x}" = "x"
  3468. then
  3469. cat << 'EOF' >&2
  3470. configure: error:
  3471. This system seems to lack a working 'basename' command.
  3472. A working 'basename' command is required to compile Eggdrop.
  3473. EOF
  3474. exit 1
  3475. fi
  3476. # Extract the first word of "objcopy", so it can be a program name with args.
  3477. set dummy objcopy; ac_word=$2
  3478. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3479. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3480. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  3481. echo $ECHO_N "(cached) $ECHO_C" >&6
  3482. else
  3483. if test -n "$OBJCOPY"; then
  3484. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3485. else
  3486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3487. for as_dir in $PATH
  3488. do
  3489. IFS=$as_save_IFS
  3490. test -z "$as_dir" && as_dir=.
  3491. for ac_exec_ext in '' $ac_executable_extensions; do
  3492. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  3493. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3494. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3495. break 2
  3496. fi
  3497. done
  3498. done
  3499. IFS=$as_save_IFS
  3500. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  3501. fi
  3502. fi
  3503. OBJCOPY=$ac_cv_prog_OBJCOPY
  3504. if test -n "$OBJCOPY"; then
  3505. { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  3506. echo "${ECHO_T}$OBJCOPY" >&6; }
  3507. else
  3508. { echo "$as_me:$LINENO: result: no" >&5
  3509. echo "${ECHO_T}no" >&6; }
  3510. fi
  3511. # Extract the first word of "strip", so it can be a program name with args.
  3512. set dummy strip; ac_word=$2
  3513. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3514. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3515. if test "${ac_cv_prog_STRIP+set}" = set; then
  3516. echo $ECHO_N "(cached) $ECHO_C" >&6
  3517. else
  3518. if test -n "$STRIP"; then
  3519. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3520. else
  3521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3522. for as_dir in $PATH
  3523. do
  3524. IFS=$as_save_IFS
  3525. test -z "$as_dir" && as_dir=.
  3526. for ac_exec_ext in '' $ac_executable_extensions; do
  3527. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  3528. ac_cv_prog_STRIP="strip"
  3529. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3530. break 2
  3531. fi
  3532. done
  3533. done
  3534. IFS=$as_save_IFS
  3535. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3536. fi
  3537. fi
  3538. STRIP=$ac_cv_prog_STRIP
  3539. if test -n "$STRIP"; then
  3540. { echo "$as_me:$LINENO: result: $STRIP" >&5
  3541. echo "${ECHO_T}$STRIP" >&6; }
  3542. else
  3543. { echo "$as_me:$LINENO: result: no" >&5
  3544. echo "${ECHO_T}no" >&6; }
  3545. fi
  3546. # Extract the first word of "gdiff", so it can be a program name with args.
  3547. set dummy gdiff; ac_word=$2
  3548. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3549. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3550. if test "${ac_cv_prog_DIFF+set}" = set; then
  3551. echo $ECHO_N "(cached) $ECHO_C" >&6
  3552. else
  3553. if test -n "$DIFF"; then
  3554. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  3555. else
  3556. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3557. for as_dir in $PATH
  3558. do
  3559. IFS=$as_save_IFS
  3560. test -z "$as_dir" && as_dir=.
  3561. for ac_exec_ext in '' $ac_executable_extensions; do
  3562. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  3563. ac_cv_prog_DIFF="gdiff"
  3564. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3565. break 2
  3566. fi
  3567. done
  3568. done
  3569. IFS=$as_save_IFS
  3570. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  3571. fi
  3572. fi
  3573. DIFF=$ac_cv_prog_DIFF
  3574. if test -n "$DIFF"; then
  3575. { echo "$as_me:$LINENO: result: $DIFF" >&5
  3576. echo "${ECHO_T}$DIFF" >&6; }
  3577. else
  3578. { echo "$as_me:$LINENO: result: no" >&5
  3579. echo "${ECHO_T}no" >&6; }
  3580. fi
  3581. # Extract the first word of "uname", so it can be a program name with args.
  3582. set dummy uname; ac_word=$2
  3583. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3584. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3585. if test "${ac_cv_prog_UNAME+set}" = set; then
  3586. echo $ECHO_N "(cached) $ECHO_C" >&6
  3587. else
  3588. if test -n "$UNAME"; then
  3589. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3590. else
  3591. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3592. for as_dir in $PATH
  3593. do
  3594. IFS=$as_save_IFS
  3595. test -z "$as_dir" && as_dir=.
  3596. for ac_exec_ext in '' $ac_executable_extensions; do
  3597. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  3598. ac_cv_prog_UNAME="uname"
  3599. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3600. break 2
  3601. fi
  3602. done
  3603. done
  3604. IFS=$as_save_IFS
  3605. fi
  3606. fi
  3607. UNAME=$ac_cv_prog_UNAME
  3608. if test -n "$UNAME"; then
  3609. { echo "$as_me:$LINENO: result: $UNAME" >&5
  3610. echo "${ECHO_T}$UNAME" >&6; }
  3611. else
  3612. { echo "$as_me:$LINENO: result: no" >&5
  3613. echo "${ECHO_T}no" >&6; }
  3614. fi
  3615. # Extract the first word of "ccache", so it can be a program name with args.
  3616. set dummy ccache; ac_word=$2
  3617. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3618. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3619. if test "${ac_cv_prog_CCACHE+set}" = set; then
  3620. echo $ECHO_N "(cached) $ECHO_C" >&6
  3621. else
  3622. if test -n "$CCACHE"; then
  3623. ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
  3624. else
  3625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3626. for as_dir in $PATH
  3627. do
  3628. IFS=$as_save_IFS
  3629. test -z "$as_dir" && as_dir=.
  3630. for ac_exec_ext in '' $ac_executable_extensions; do
  3631. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  3632. ac_cv_prog_CCACHE="ccache"
  3633. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3634. break 2
  3635. fi
  3636. done
  3637. done
  3638. IFS=$as_save_IFS
  3639. fi
  3640. fi
  3641. CCACHE=$ac_cv_prog_CCACHE
  3642. if test -n "$CCACHE"; then
  3643. { echo "$as_me:$LINENO: result: $CCACHE" >&5
  3644. echo "${ECHO_T}$CCACHE" >&6; }
  3645. else
  3646. { echo "$as_me:$LINENO: result: no" >&5
  3647. echo "${ECHO_T}no" >&6; }
  3648. fi
  3649. # Extract the first word of "distcc", so it can be a program name with args.
  3650. set dummy distcc; ac_word=$2
  3651. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3652. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3653. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3654. echo $ECHO_N "(cached) $ECHO_C" >&6
  3655. else
  3656. if test -n "$DISTCC"; then
  3657. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3658. else
  3659. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3660. for as_dir in $PATH
  3661. do
  3662. IFS=$as_save_IFS
  3663. test -z "$as_dir" && as_dir=.
  3664. for ac_exec_ext in '' $ac_executable_extensions; do
  3665. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  3666. ac_cv_prog_DISTCC="distcc"
  3667. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3668. break 2
  3669. fi
  3670. done
  3671. done
  3672. IFS=$as_save_IFS
  3673. fi
  3674. fi
  3675. DISTCC=$ac_cv_prog_DISTCC
  3676. if test -n "$DISTCC"; then
  3677. { echo "$as_me:$LINENO: result: $DISTCC" >&5
  3678. echo "${ECHO_T}$DISTCC" >&6; }
  3679. else
  3680. { echo "$as_me:$LINENO: result: no" >&5
  3681. echo "${ECHO_T}no" >&6; }
  3682. fi
  3683. # Test the os and set the module linking settings
  3684. EGG_CYGWIN=no
  3685. { echo "$as_me:$LINENO: checking system type" >&5
  3686. echo $ECHO_N "checking system type... $ECHO_C" >&6; }
  3687. if test "${egg_cv_var_system_type+set}" = set; then
  3688. echo $ECHO_N "(cached) $ECHO_C" >&6
  3689. else
  3690. egg_cv_var_system_type=`$UNAME -s`
  3691. fi
  3692. { echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3693. echo "${ECHO_T}$egg_cv_var_system_type" >&6; }
  3694. { echo "$as_me:$LINENO: checking system release" >&5
  3695. echo $ECHO_N "checking system release... $ECHO_C" >&6; }
  3696. if test "${egg_cv_var_system_release+set}" = set; then
  3697. echo $ECHO_N "(cached) $ECHO_C" >&6
  3698. else
  3699. egg_cv_var_system_release=`$UNAME -r`
  3700. fi
  3701. { echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3702. echo "${ECHO_T}$egg_cv_var_system_release" >&6; }
  3703. { echo "$as_me:$LINENO: checking system machine" >&5
  3704. echo $ECHO_N "checking system machine... $ECHO_C" >&6; }
  3705. if test "${egg_cv_var_system_machine+set}" = set; then
  3706. echo $ECHO_N "(cached) $ECHO_C" >&6
  3707. else
  3708. egg_cv_var_system_machine=`$UNAME -m`
  3709. fi
  3710. { echo "$as_me:$LINENO: result: $egg_cv_var_system_machine" >&5
  3711. echo "${ECHO_T}$egg_cv_var_system_machine" >&6; }
  3712. BUILDOS="$egg_cv_var_system_type"
  3713. BUILDARCH="$egg_cv_var_system_machine"
  3714. case "$egg_cv_var_system_machine" in
  3715. i*)
  3716. CXX="$CXX -march=i486"
  3717. BUILDARCH="i486"
  3718. ;;
  3719. *)
  3720. ;;
  3721. esac
  3722. case "$egg_cv_var_system_type" in
  3723. BSD/OS)
  3724. ;;
  3725. CYGWI*)
  3726. { echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3727. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6; }
  3728. WIN32FLAGS=
  3729. cat >conftest.$ac_ext <<_ACEOF
  3730. /* confdefs.h. */
  3731. _ACEOF
  3732. cat confdefs.h >>conftest.$ac_ext
  3733. cat >>conftest.$ac_ext <<_ACEOF
  3734. /* end confdefs.h. */
  3735. int
  3736. main ()
  3737. {
  3738. #ifndef WIN32
  3739. # ifndef _WIN32
  3740. # error WIN32 or _WIN32 not defined
  3741. # endif
  3742. #endif
  3743. ;
  3744. return 0;
  3745. }
  3746. _ACEOF
  3747. rm -f conftest.$ac_objext
  3748. if { (ac_try="$ac_compile"
  3749. case "(($ac_try" in
  3750. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3751. *) ac_try_echo=$ac_try;;
  3752. esac
  3753. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3754. (eval "$ac_compile") 2>conftest.er1
  3755. ac_status=$?
  3756. grep -v '^ *+' conftest.er1 >conftest.err
  3757. rm -f conftest.er1
  3758. cat conftest.err >&5
  3759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3760. (exit $ac_status); } &&
  3761. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3762. { (case "(($ac_try" in
  3763. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3764. *) ac_try_echo=$ac_try;;
  3765. esac
  3766. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3767. (eval "$ac_try") 2>&5
  3768. ac_status=$?
  3769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3770. (exit $ac_status); }; } &&
  3771. { ac_try='test -s conftest.$ac_objext'
  3772. { (case "(($ac_try" in
  3773. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3774. *) ac_try_echo=$ac_try;;
  3775. esac
  3776. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3777. (eval "$ac_try") 2>&5
  3778. ac_status=$?
  3779. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3780. (exit $ac_status); }; }; then
  3781. { echo "$as_me:$LINENO: result: present by default" >&5
  3782. echo "${ECHO_T}present by default" >&6; }
  3783. else
  3784. echo "$as_me: failed program was:" >&5
  3785. sed 's/^/| /' conftest.$ac_ext >&5
  3786. ac_compile_save="$ac_compile"
  3787. save_CXX="$CXX"
  3788. ac_compile="$ac_compile -mwin32"
  3789. CXX="$CXX -mwin32"
  3790. cat >conftest.$ac_ext <<_ACEOF
  3791. /* confdefs.h. */
  3792. _ACEOF
  3793. cat confdefs.h >>conftest.$ac_ext
  3794. cat >>conftest.$ac_ext <<_ACEOF
  3795. /* end confdefs.h. */
  3796. int
  3797. main ()
  3798. {
  3799. #ifndef WIN32
  3800. # ifndef _WIN32
  3801. # error WIN32 or _WIN32 not defined
  3802. # endif
  3803. #endif
  3804. ;
  3805. return 0;
  3806. }
  3807. _ACEOF
  3808. rm -f conftest.$ac_objext
  3809. if { (ac_try="$ac_compile"
  3810. case "(($ac_try" in
  3811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3812. *) ac_try_echo=$ac_try;;
  3813. esac
  3814. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3815. (eval "$ac_compile") 2>conftest.er1
  3816. ac_status=$?
  3817. grep -v '^ *+' conftest.er1 >conftest.err
  3818. rm -f conftest.er1
  3819. cat conftest.err >&5
  3820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3821. (exit $ac_status); } &&
  3822. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3823. { (case "(($ac_try" in
  3824. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3825. *) ac_try_echo=$ac_try;;
  3826. esac
  3827. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3828. (eval "$ac_try") 2>&5
  3829. ac_status=$?
  3830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3831. (exit $ac_status); }; } &&
  3832. { ac_try='test -s conftest.$ac_objext'
  3833. { (case "(($ac_try" in
  3834. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3835. *) ac_try_echo=$ac_try;;
  3836. esac
  3837. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3838. (eval "$ac_try") 2>&5
  3839. ac_status=$?
  3840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3841. (exit $ac_status); }; }; then
  3842. { echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3843. echo "${ECHO_T}found via -mwin32" >&6; }
  3844. ac_compile="$ac_compile_save"
  3845. CXX="$save_CXX"
  3846. WIN32FLAGS="-mwin32"
  3847. else
  3848. echo "$as_me: failed program was:" >&5
  3849. sed 's/^/| /' conftest.$ac_ext >&5
  3850. ac_compile="$ac_compile_save"
  3851. CXX="$save_CXX"
  3852. { echo "$as_me:$LINENO: result: not found" >&5
  3853. echo "${ECHO_T}not found" >&6; }
  3854. fi
  3855. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3856. fi
  3857. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3858. CXX="$CXX $WIN32FLAGS"
  3859. EGG_CYGWIN="yes"
  3860. if test $EGG_CYGWIN = "yes"; then
  3861. { echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3862. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6; }
  3863. if test -r /usr/lib/binmode.o; then
  3864. { echo "$as_me:$LINENO: result: yes" >&5
  3865. echo "${ECHO_T}yes" >&6; }
  3866. LIBS="$LIBS /usr/lib/binmode.o"
  3867. else
  3868. { echo "$as_me:$LINENO: result: no" >&5
  3869. echo "${ECHO_T}no" >&6; }
  3870. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3871. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3872. fi
  3873. fi
  3874. cat >>confdefs.h <<\_ACEOF
  3875. #define CYGWIN_HACKS 1
  3876. _ACEOF
  3877. cat >>confdefs.h <<\_ACEOF
  3878. #define WIN32_LEAN_AND_MEAN 1
  3879. _ACEOF
  3880. ;;
  3881. IRIX)
  3882. ;;
  3883. HP-UX)
  3884. cat >>confdefs.h <<\_ACEOF
  3885. #define MD32_XARRAY 1
  3886. _ACEOF
  3887. ;;
  3888. Ultrix)
  3889. SHELL=/bin/sh5
  3890. ;;
  3891. SINIX*)
  3892. ;;
  3893. BeOS)
  3894. ;;
  3895. Linux)
  3896. ;;
  3897. Lynx)
  3898. ;;
  3899. QNX)
  3900. ;;
  3901. OSF1)
  3902. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3903. V*)
  3904. if test "$AWK" = "gawk"
  3905. then
  3906. AWK=awk
  3907. fi
  3908. ;;
  3909. 1.0|1.1|1.2)
  3910. cat >>confdefs.h <<\_ACEOF
  3911. #define OSF1_HACKS 1
  3912. _ACEOF
  3913. ;;
  3914. 1.*)
  3915. cat >>confdefs.h <<\_ACEOF
  3916. #define OSF1_HACKS 1
  3917. _ACEOF
  3918. ;;
  3919. *)
  3920. ;;
  3921. esac
  3922. cat >>confdefs.h <<\_ACEOF
  3923. #define STOP_UAC 1
  3924. _ACEOF
  3925. cat >>confdefs.h <<\_ACEOF
  3926. #define BROKEN_SNPRINTF 1
  3927. _ACEOF
  3928. ;;
  3929. SunOS)
  3930. SUNOS="yes"
  3931. ;;
  3932. *BSD)
  3933. # FreeBSD/OpenBSD/NetBSD
  3934. ;;
  3935. *)
  3936. { echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3937. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6; }
  3938. if test -r /mach
  3939. then
  3940. { echo "$as_me:$LINENO: result: yes" >&5
  3941. echo "${ECHO_T}yes" >&6; }
  3942. cat >>confdefs.h <<\_ACEOF
  3943. #define BORGCUBES 1
  3944. _ACEOF
  3945. else
  3946. { echo "$as_me:$LINENO: result: no" >&5
  3947. echo "${ECHO_T}no" >&6; }
  3948. { echo "$as_me:$LINENO: checking if system is QNX" >&5
  3949. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6; }
  3950. if test -r /cmds
  3951. then
  3952. { echo "$as_me:$LINENO: result: yes" >&5
  3953. echo "${ECHO_T}yes" >&6; }
  3954. else
  3955. { echo "$as_me:$LINENO: result: no" >&5
  3956. echo "${ECHO_T}no" >&6; }
  3957. { echo "$as_me:$LINENO: result: Something unknown!" >&5
  3958. echo "${ECHO_T}Something unknown!" >&6; }
  3959. { echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3960. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6; }
  3961. fi
  3962. fi
  3963. ;;
  3964. esac
  3965. # Check for IPv6 support
  3966. #EGG_IPV6_SUPPORTED
  3967. { echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  3968. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6; }
  3969. # Check whether --enable-ipv6 was given.
  3970. if test "${enable_ipv6+set}" = set; then
  3971. enableval=$enable_ipv6; ac_cv_dipv6="yes"
  3972. { echo "$as_me:$LINENO: result: yes" >&5
  3973. echo "${ECHO_T}yes" >&6; }
  3974. else
  3975. ac_cv_dipv6="no"
  3976. if test "$egg_cv_ipv6_supported" = "no"; then
  3977. ac_cv_dipv6="no"
  3978. fi
  3979. { echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  3980. echo "${ECHO_T}$ac_cv_dipv6" >&6; }
  3981. fi
  3982. if ! test "$EGG_CYGWIN" = "yes"; then
  3983. if test "$ac_cv_dipv6" = "no"; then
  3984. cat >>confdefs.h <<\_ACEOF
  3985. #define USE_IPV6 1
  3986. _ACEOF
  3987. fi
  3988. fi
  3989. { echo "$as_me:$LINENO: checking for socklen_t" >&5
  3990. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
  3991. if test "${egg_cv_socklen_t+set}" = set; then
  3992. echo $ECHO_N "(cached) $ECHO_C" >&6
  3993. else
  3994. if test "$cross_compiling" = yes; then
  3995. egg_cv_socklen_t=no
  3996. else
  3997. cat >conftest.$ac_ext <<_ACEOF
  3998. /* confdefs.h. */
  3999. _ACEOF
  4000. cat confdefs.h >>conftest.$ac_ext
  4001. cat >>conftest.$ac_ext <<_ACEOF
  4002. /* end confdefs.h. */
  4003. #include <unistd.h>
  4004. #include <sys/types.h>
  4005. #include <sys/socket.h>
  4006. #include <netinet/in.h>
  4007. #include <arpa/inet.h>
  4008. int main()
  4009. {
  4010. socklen_t test = sizeof(int);
  4011. return 0;
  4012. }
  4013. _ACEOF
  4014. rm -f conftest$ac_exeext
  4015. if { (ac_try="$ac_link"
  4016. case "(($ac_try" in
  4017. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4018. *) ac_try_echo=$ac_try;;
  4019. esac
  4020. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4021. (eval "$ac_link") 2>&5
  4022. ac_status=$?
  4023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4024. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4025. { (case "(($ac_try" in
  4026. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4027. *) ac_try_echo=$ac_try;;
  4028. esac
  4029. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4030. (eval "$ac_try") 2>&5
  4031. ac_status=$?
  4032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4033. (exit $ac_status); }; }; then
  4034. egg_cv_socklen_t=yes
  4035. else
  4036. echo "$as_me: program exited with status $ac_status" >&5
  4037. echo "$as_me: failed program was:" >&5
  4038. sed 's/^/| /' conftest.$ac_ext >&5
  4039. ( exit $ac_status )
  4040. egg_cv_socklen_t=no
  4041. fi
  4042. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4043. fi
  4044. fi
  4045. if test "$egg_cv_socklen_t" = "yes"; then
  4046. cat >>confdefs.h <<\_ACEOF
  4047. #define HAVE_SOCKLEN_T 1
  4048. _ACEOF
  4049. { echo "$as_me:$LINENO: result: yes" >&5
  4050. echo "${ECHO_T}yes" >&6; }
  4051. else
  4052. { echo "$as_me:$LINENO: result: no" >&5
  4053. echo "${ECHO_T}no" >&6; }
  4054. fi
  4055. # Check for inconsistent random() functions
  4056. { echo "$as_me:$LINENO: checking for random limit" >&5
  4057. echo $ECHO_N "checking for random limit... $ECHO_C" >&6; }
  4058. case "$egg_cv_var_system_type" in
  4059. SunOS) RMAX=0x7FFFFFFF
  4060. ;;
  4061. *) RMAX=RAND_MAX
  4062. ;;
  4063. esac
  4064. { echo "$as_me:$LINENO: result: $RMAX" >&5
  4065. echo "${ECHO_T}$RMAX" >&6; }
  4066. cat >>confdefs.h <<_ACEOF
  4067. #define RANDOM_MAX $RMAX
  4068. _ACEOF
  4069. # Create static binaries
  4070. if test -z "$no_static"
  4071. then
  4072. if test -n "$GXX"
  4073. then
  4074. { echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  4075. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6; }
  4076. if test "${egg_cv_var_ccstatic+set}" = set; then
  4077. echo $ECHO_N "(cached) $ECHO_C" >&6
  4078. else
  4079. ac_old_CXX="$CXX"
  4080. CXX="$CXX -static"
  4081. cat >conftest.$ac_ext <<_ACEOF
  4082. /* confdefs.h. */
  4083. _ACEOF
  4084. cat confdefs.h >>conftest.$ac_ext
  4085. cat >>conftest.$ac_ext <<_ACEOF
  4086. /* end confdefs.h. */
  4087. int
  4088. main ()
  4089. {
  4090. ;
  4091. return 0;
  4092. }
  4093. _ACEOF
  4094. rm -f conftest.$ac_objext
  4095. if { (ac_try="$ac_compile"
  4096. case "(($ac_try" in
  4097. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4098. *) ac_try_echo=$ac_try;;
  4099. esac
  4100. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4101. (eval "$ac_compile") 2>conftest.er1
  4102. ac_status=$?
  4103. grep -v '^ *+' conftest.er1 >conftest.err
  4104. rm -f conftest.er1
  4105. cat conftest.err >&5
  4106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4107. (exit $ac_status); } &&
  4108. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4109. { (case "(($ac_try" in
  4110. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4111. *) ac_try_echo=$ac_try;;
  4112. esac
  4113. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4114. (eval "$ac_try") 2>&5
  4115. ac_status=$?
  4116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4117. (exit $ac_status); }; } &&
  4118. { ac_try='test -s conftest.$ac_objext'
  4119. { (case "(($ac_try" in
  4120. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4121. *) ac_try_echo=$ac_try;;
  4122. esac
  4123. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4124. (eval "$ac_try") 2>&5
  4125. ac_status=$?
  4126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4127. (exit $ac_status); }; }; then
  4128. egg_cv_var_ccstatic="yes"
  4129. else
  4130. echo "$as_me: failed program was:" >&5
  4131. sed 's/^/| /' conftest.$ac_ext >&5
  4132. egg_cv_var_ccstatic="no"
  4133. fi
  4134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4135. CXX="$ac_old_CXX"
  4136. fi
  4137. { echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  4138. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6; }
  4139. if test "$egg_cv_var_ccstatic" = "yes"
  4140. then
  4141. CCDEBUG="$CXX"
  4142. CXX="$CXX -static"
  4143. else
  4144. cat << 'EOF' >&2
  4145. configure: error:
  4146. Your C compiler does not support -static.
  4147. This compile flag is required for the botpack.
  4148. EOF
  4149. exit 1
  4150. fi
  4151. fi
  4152. fi
  4153. #checkpoint
  4154. cat >confcache <<\_ACEOF
  4155. # This file is a shell script that caches the results of configure
  4156. # tests run on this system so they can be shared between configure
  4157. # scripts and configure runs, see configure's option --config-cache.
  4158. # It is not useful on other systems. If it contains results you don't
  4159. # want to keep, you may remove or edit it.
  4160. #
  4161. # config.status only pays attention to the cache file if you give it
  4162. # the --recheck option to rerun configure.
  4163. #
  4164. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4165. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4166. # following values.
  4167. _ACEOF
  4168. # The following way of writing the cache mishandles newlines in values,
  4169. # but we know of no workaround that is simple, portable, and efficient.
  4170. # So, we kill variables containing newlines.
  4171. # Ultrix sh set writes to stderr and can't be redirected directly,
  4172. # and sets the high bit in the cache file unless we assign to the vars.
  4173. (
  4174. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4175. eval ac_val=\$$ac_var
  4176. case $ac_val in #(
  4177. *${as_nl}*)
  4178. case $ac_var in #(
  4179. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  4180. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  4181. esac
  4182. case $ac_var in #(
  4183. _ | IFS | as_nl) ;; #(
  4184. *) $as_unset $ac_var ;;
  4185. esac ;;
  4186. esac
  4187. done
  4188. (set) 2>&1 |
  4189. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4190. *${as_nl}ac_space=\ *)
  4191. # `set' does not quote correctly, so add quotes (double-quote
  4192. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4193. sed -n \
  4194. "s/'/'\\\\''/g;
  4195. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4196. ;; #(
  4197. *)
  4198. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4199. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4200. ;;
  4201. esac |
  4202. sort
  4203. ) |
  4204. sed '
  4205. /^ac_cv_env_/b end
  4206. t clear
  4207. :clear
  4208. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4209. t end
  4210. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4211. :end' >>confcache
  4212. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4213. if test -w "$cache_file"; then
  4214. test "x$cache_file" != "x/dev/null" &&
  4215. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  4216. echo "$as_me: updating cache $cache_file" >&6;}
  4217. cat confcache >$cache_file
  4218. else
  4219. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  4220. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4221. fi
  4222. fi
  4223. rm -f confcache
  4224. # Checks for system libraries
  4225. { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4226. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
  4227. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4228. echo $ECHO_N "(cached) $ECHO_C" >&6
  4229. else
  4230. ac_check_lib_save_LIBS=$LIBS
  4231. LIBS="-lsocket $LIBS"
  4232. cat >conftest.$ac_ext <<_ACEOF
  4233. /* confdefs.h. */
  4234. _ACEOF
  4235. cat confdefs.h >>conftest.$ac_ext
  4236. cat >>conftest.$ac_ext <<_ACEOF
  4237. /* end confdefs.h. */
  4238. /* Override any GCC internal prototype to avoid an error.
  4239. Use char because int might match the return type of a GCC
  4240. builtin and then its argument prototype would still apply. */
  4241. #ifdef __cplusplus
  4242. extern "C"
  4243. #endif
  4244. char socket ();
  4245. int
  4246. main ()
  4247. {
  4248. return socket ();
  4249. ;
  4250. return 0;
  4251. }
  4252. _ACEOF
  4253. rm -f conftest.$ac_objext conftest$ac_exeext
  4254. if { (ac_try="$ac_link"
  4255. case "(($ac_try" in
  4256. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4257. *) ac_try_echo=$ac_try;;
  4258. esac
  4259. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4260. (eval "$ac_link") 2>conftest.er1
  4261. ac_status=$?
  4262. grep -v '^ *+' conftest.er1 >conftest.err
  4263. rm -f conftest.er1
  4264. cat conftest.err >&5
  4265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4266. (exit $ac_status); } &&
  4267. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4268. { (case "(($ac_try" in
  4269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4270. *) ac_try_echo=$ac_try;;
  4271. esac
  4272. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4273. (eval "$ac_try") 2>&5
  4274. ac_status=$?
  4275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4276. (exit $ac_status); }; } &&
  4277. { ac_try='test -s conftest$ac_exeext'
  4278. { (case "(($ac_try" in
  4279. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4280. *) ac_try_echo=$ac_try;;
  4281. esac
  4282. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4283. (eval "$ac_try") 2>&5
  4284. ac_status=$?
  4285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4286. (exit $ac_status); }; }; then
  4287. ac_cv_lib_socket_socket=yes
  4288. else
  4289. echo "$as_me: failed program was:" >&5
  4290. sed 's/^/| /' conftest.$ac_ext >&5
  4291. ac_cv_lib_socket_socket=no
  4292. fi
  4293. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4294. conftest$ac_exeext conftest.$ac_ext
  4295. LIBS=$ac_check_lib_save_LIBS
  4296. fi
  4297. { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4298. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
  4299. if test $ac_cv_lib_socket_socket = yes; then
  4300. cat >>confdefs.h <<_ACEOF
  4301. #define HAVE_LIBSOCKET 1
  4302. _ACEOF
  4303. LIBS="-lsocket $LIBS"
  4304. fi
  4305. # AC_CHECK_LIB(nsl, connect)
  4306. # AC_CHECK_LIB(dl, dlopen)
  4307. # AC_CHECK_LIB(nsl, gethostbyname)
  4308. # AC_CHECK_LIB(dns, gethostbyname)
  4309. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4310. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
  4311. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lcrypto", SSL="", -lcrypto)
  4312. # This is needed for Tcl libraries compiled with thread support
  4313. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4314. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4315. # ac_cv_lib_pthread="-lpthread"], [dnl
  4316. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4317. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4318. # ac_cv_lib_pthread="-lpthread"], [dnl
  4319. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4320. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4321. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4322. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4323. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4324. # ac_cv_lib_pthread=""],
  4325. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4326. if test "$SUNOS" = "yes"; then
  4327. # For suns without yp
  4328. { echo "$as_me:$LINENO: checking for main in -ldl" >&5
  4329. echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
  4330. if test "${ac_cv_lib_dl_main+set}" = set; then
  4331. echo $ECHO_N "(cached) $ECHO_C" >&6
  4332. else
  4333. ac_check_lib_save_LIBS=$LIBS
  4334. LIBS="-ldl $LIBS"
  4335. cat >conftest.$ac_ext <<_ACEOF
  4336. /* confdefs.h. */
  4337. _ACEOF
  4338. cat confdefs.h >>conftest.$ac_ext
  4339. cat >>conftest.$ac_ext <<_ACEOF
  4340. /* end confdefs.h. */
  4341. int
  4342. main ()
  4343. {
  4344. return main ();
  4345. ;
  4346. return 0;
  4347. }
  4348. _ACEOF
  4349. rm -f conftest.$ac_objext conftest$ac_exeext
  4350. if { (ac_try="$ac_link"
  4351. case "(($ac_try" in
  4352. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4353. *) ac_try_echo=$ac_try;;
  4354. esac
  4355. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4356. (eval "$ac_link") 2>conftest.er1
  4357. ac_status=$?
  4358. grep -v '^ *+' conftest.er1 >conftest.err
  4359. rm -f conftest.er1
  4360. cat conftest.err >&5
  4361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4362. (exit $ac_status); } &&
  4363. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4364. { (case "(($ac_try" in
  4365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4366. *) ac_try_echo=$ac_try;;
  4367. esac
  4368. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4369. (eval "$ac_try") 2>&5
  4370. ac_status=$?
  4371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4372. (exit $ac_status); }; } &&
  4373. { ac_try='test -s conftest$ac_exeext'
  4374. { (case "(($ac_try" in
  4375. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4376. *) ac_try_echo=$ac_try;;
  4377. esac
  4378. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4379. (eval "$ac_try") 2>&5
  4380. ac_status=$?
  4381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4382. (exit $ac_status); }; }; then
  4383. ac_cv_lib_dl_main=yes
  4384. else
  4385. echo "$as_me: failed program was:" >&5
  4386. sed 's/^/| /' conftest.$ac_ext >&5
  4387. ac_cv_lib_dl_main=no
  4388. fi
  4389. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4390. conftest$ac_exeext conftest.$ac_ext
  4391. LIBS=$ac_check_lib_save_LIBS
  4392. fi
  4393. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
  4394. echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
  4395. if test $ac_cv_lib_dl_main = yes; then
  4396. cat >>confdefs.h <<_ACEOF
  4397. #define HAVE_LIBDL 1
  4398. _ACEOF
  4399. LIBS="-ldl $LIBS"
  4400. fi
  4401. { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
  4402. echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
  4403. if test "${ac_cv_lib_socket_main+set}" = set; then
  4404. echo $ECHO_N "(cached) $ECHO_C" >&6
  4405. else
  4406. ac_check_lib_save_LIBS=$LIBS
  4407. LIBS="-lsocket $LIBS"
  4408. cat >conftest.$ac_ext <<_ACEOF
  4409. /* confdefs.h. */
  4410. _ACEOF
  4411. cat confdefs.h >>conftest.$ac_ext
  4412. cat >>conftest.$ac_ext <<_ACEOF
  4413. /* end confdefs.h. */
  4414. int
  4415. main ()
  4416. {
  4417. return main ();
  4418. ;
  4419. return 0;
  4420. }
  4421. _ACEOF
  4422. rm -f conftest.$ac_objext conftest$ac_exeext
  4423. if { (ac_try="$ac_link"
  4424. case "(($ac_try" in
  4425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4426. *) ac_try_echo=$ac_try;;
  4427. esac
  4428. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4429. (eval "$ac_link") 2>conftest.er1
  4430. ac_status=$?
  4431. grep -v '^ *+' conftest.er1 >conftest.err
  4432. rm -f conftest.er1
  4433. cat conftest.err >&5
  4434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4435. (exit $ac_status); } &&
  4436. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4437. { (case "(($ac_try" in
  4438. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4439. *) ac_try_echo=$ac_try;;
  4440. esac
  4441. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4442. (eval "$ac_try") 2>&5
  4443. ac_status=$?
  4444. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4445. (exit $ac_status); }; } &&
  4446. { ac_try='test -s conftest$ac_exeext'
  4447. { (case "(($ac_try" in
  4448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4449. *) ac_try_echo=$ac_try;;
  4450. esac
  4451. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4452. (eval "$ac_try") 2>&5
  4453. ac_status=$?
  4454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4455. (exit $ac_status); }; }; then
  4456. ac_cv_lib_socket_main=yes
  4457. else
  4458. echo "$as_me: failed program was:" >&5
  4459. sed 's/^/| /' conftest.$ac_ext >&5
  4460. ac_cv_lib_socket_main=no
  4461. fi
  4462. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4463. conftest$ac_exeext conftest.$ac_ext
  4464. LIBS=$ac_check_lib_save_LIBS
  4465. fi
  4466. { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
  4467. echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
  4468. if test $ac_cv_lib_socket_main = yes; then
  4469. cat >>confdefs.h <<_ACEOF
  4470. #define HAVE_LIBSOCKET 1
  4471. _ACEOF
  4472. LIBS="-lsocket $LIBS"
  4473. fi
  4474. { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
  4475. echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
  4476. if test "${ac_cv_lib_nsl_main+set}" = set; then
  4477. echo $ECHO_N "(cached) $ECHO_C" >&6
  4478. else
  4479. ac_check_lib_save_LIBS=$LIBS
  4480. LIBS="-lnsl $LIBS"
  4481. cat >conftest.$ac_ext <<_ACEOF
  4482. /* confdefs.h. */
  4483. _ACEOF
  4484. cat confdefs.h >>conftest.$ac_ext
  4485. cat >>conftest.$ac_ext <<_ACEOF
  4486. /* end confdefs.h. */
  4487. int
  4488. main ()
  4489. {
  4490. return main ();
  4491. ;
  4492. return 0;
  4493. }
  4494. _ACEOF
  4495. rm -f conftest.$ac_objext conftest$ac_exeext
  4496. if { (ac_try="$ac_link"
  4497. case "(($ac_try" in
  4498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4499. *) ac_try_echo=$ac_try;;
  4500. esac
  4501. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4502. (eval "$ac_link") 2>conftest.er1
  4503. ac_status=$?
  4504. grep -v '^ *+' conftest.er1 >conftest.err
  4505. rm -f conftest.er1
  4506. cat conftest.err >&5
  4507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4508. (exit $ac_status); } &&
  4509. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4510. { (case "(($ac_try" in
  4511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4512. *) ac_try_echo=$ac_try;;
  4513. esac
  4514. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4515. (eval "$ac_try") 2>&5
  4516. ac_status=$?
  4517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4518. (exit $ac_status); }; } &&
  4519. { ac_try='test -s conftest$ac_exeext'
  4520. { (case "(($ac_try" in
  4521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4522. *) ac_try_echo=$ac_try;;
  4523. esac
  4524. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4525. (eval "$ac_try") 2>&5
  4526. ac_status=$?
  4527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4528. (exit $ac_status); }; }; then
  4529. ac_cv_lib_nsl_main=yes
  4530. else
  4531. echo "$as_me: failed program was:" >&5
  4532. sed 's/^/| /' conftest.$ac_ext >&5
  4533. ac_cv_lib_nsl_main=no
  4534. fi
  4535. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4536. conftest$ac_exeext conftest.$ac_ext
  4537. LIBS=$ac_check_lib_save_LIBS
  4538. fi
  4539. { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
  4540. echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
  4541. if test $ac_cv_lib_nsl_main = yes; then
  4542. cat >>confdefs.h <<_ACEOF
  4543. #define HAVE_LIBNSL 1
  4544. _ACEOF
  4545. LIBS="-lnsl $LIBS"
  4546. fi
  4547. fi
  4548. # Checks for header files
  4549. ac_header_dirent=no
  4550. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4551. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4552. { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4553. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
  4554. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4555. echo $ECHO_N "(cached) $ECHO_C" >&6
  4556. else
  4557. cat >conftest.$ac_ext <<_ACEOF
  4558. /* confdefs.h. */
  4559. _ACEOF
  4560. cat confdefs.h >>conftest.$ac_ext
  4561. cat >>conftest.$ac_ext <<_ACEOF
  4562. /* end confdefs.h. */
  4563. #include <sys/types.h>
  4564. #include <$ac_hdr>
  4565. int
  4566. main ()
  4567. {
  4568. if ((DIR *) 0)
  4569. return 0;
  4570. ;
  4571. return 0;
  4572. }
  4573. _ACEOF
  4574. rm -f conftest.$ac_objext
  4575. if { (ac_try="$ac_compile"
  4576. case "(($ac_try" in
  4577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4578. *) ac_try_echo=$ac_try;;
  4579. esac
  4580. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4581. (eval "$ac_compile") 2>conftest.er1
  4582. ac_status=$?
  4583. grep -v '^ *+' conftest.er1 >conftest.err
  4584. rm -f conftest.er1
  4585. cat conftest.err >&5
  4586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4587. (exit $ac_status); } &&
  4588. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4589. { (case "(($ac_try" in
  4590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4591. *) ac_try_echo=$ac_try;;
  4592. esac
  4593. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4594. (eval "$ac_try") 2>&5
  4595. ac_status=$?
  4596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4597. (exit $ac_status); }; } &&
  4598. { ac_try='test -s conftest.$ac_objext'
  4599. { (case "(($ac_try" in
  4600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4601. *) ac_try_echo=$ac_try;;
  4602. esac
  4603. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4604. (eval "$ac_try") 2>&5
  4605. ac_status=$?
  4606. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4607. (exit $ac_status); }; }; then
  4608. eval "$as_ac_Header=yes"
  4609. else
  4610. echo "$as_me: failed program was:" >&5
  4611. sed 's/^/| /' conftest.$ac_ext >&5
  4612. eval "$as_ac_Header=no"
  4613. fi
  4614. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4615. fi
  4616. ac_res=`eval echo '${'$as_ac_Header'}'`
  4617. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4618. echo "${ECHO_T}$ac_res" >&6; }
  4619. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4620. cat >>confdefs.h <<_ACEOF
  4621. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4622. _ACEOF
  4623. ac_header_dirent=$ac_hdr; break
  4624. fi
  4625. done
  4626. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4627. if test $ac_header_dirent = dirent.h; then
  4628. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4629. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  4630. if test "${ac_cv_search_opendir+set}" = set; then
  4631. echo $ECHO_N "(cached) $ECHO_C" >&6
  4632. else
  4633. ac_func_search_save_LIBS=$LIBS
  4634. cat >conftest.$ac_ext <<_ACEOF
  4635. /* confdefs.h. */
  4636. _ACEOF
  4637. cat confdefs.h >>conftest.$ac_ext
  4638. cat >>conftest.$ac_ext <<_ACEOF
  4639. /* end confdefs.h. */
  4640. /* Override any GCC internal prototype to avoid an error.
  4641. Use char because int might match the return type of a GCC
  4642. builtin and then its argument prototype would still apply. */
  4643. #ifdef __cplusplus
  4644. extern "C"
  4645. #endif
  4646. char opendir ();
  4647. int
  4648. main ()
  4649. {
  4650. return opendir ();
  4651. ;
  4652. return 0;
  4653. }
  4654. _ACEOF
  4655. for ac_lib in '' dir; do
  4656. if test -z "$ac_lib"; then
  4657. ac_res="none required"
  4658. else
  4659. ac_res=-l$ac_lib
  4660. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4661. fi
  4662. rm -f conftest.$ac_objext conftest$ac_exeext
  4663. if { (ac_try="$ac_link"
  4664. case "(($ac_try" in
  4665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4666. *) ac_try_echo=$ac_try;;
  4667. esac
  4668. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4669. (eval "$ac_link") 2>conftest.er1
  4670. ac_status=$?
  4671. grep -v '^ *+' conftest.er1 >conftest.err
  4672. rm -f conftest.er1
  4673. cat conftest.err >&5
  4674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4675. (exit $ac_status); } &&
  4676. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4677. { (case "(($ac_try" in
  4678. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4679. *) ac_try_echo=$ac_try;;
  4680. esac
  4681. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4682. (eval "$ac_try") 2>&5
  4683. ac_status=$?
  4684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4685. (exit $ac_status); }; } &&
  4686. { ac_try='test -s conftest$ac_exeext'
  4687. { (case "(($ac_try" in
  4688. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4689. *) ac_try_echo=$ac_try;;
  4690. esac
  4691. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4692. (eval "$ac_try") 2>&5
  4693. ac_status=$?
  4694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4695. (exit $ac_status); }; }; then
  4696. ac_cv_search_opendir=$ac_res
  4697. else
  4698. echo "$as_me: failed program was:" >&5
  4699. sed 's/^/| /' conftest.$ac_ext >&5
  4700. fi
  4701. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4702. conftest$ac_exeext
  4703. if test "${ac_cv_search_opendir+set}" = set; then
  4704. break
  4705. fi
  4706. done
  4707. if test "${ac_cv_search_opendir+set}" = set; then
  4708. :
  4709. else
  4710. ac_cv_search_opendir=no
  4711. fi
  4712. rm conftest.$ac_ext
  4713. LIBS=$ac_func_search_save_LIBS
  4714. fi
  4715. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4716. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  4717. ac_res=$ac_cv_search_opendir
  4718. if test "$ac_res" != no; then
  4719. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4720. fi
  4721. else
  4722. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4723. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  4724. if test "${ac_cv_search_opendir+set}" = set; then
  4725. echo $ECHO_N "(cached) $ECHO_C" >&6
  4726. else
  4727. ac_func_search_save_LIBS=$LIBS
  4728. cat >conftest.$ac_ext <<_ACEOF
  4729. /* confdefs.h. */
  4730. _ACEOF
  4731. cat confdefs.h >>conftest.$ac_ext
  4732. cat >>conftest.$ac_ext <<_ACEOF
  4733. /* end confdefs.h. */
  4734. /* Override any GCC internal prototype to avoid an error.
  4735. Use char because int might match the return type of a GCC
  4736. builtin and then its argument prototype would still apply. */
  4737. #ifdef __cplusplus
  4738. extern "C"
  4739. #endif
  4740. char opendir ();
  4741. int
  4742. main ()
  4743. {
  4744. return opendir ();
  4745. ;
  4746. return 0;
  4747. }
  4748. _ACEOF
  4749. for ac_lib in '' x; do
  4750. if test -z "$ac_lib"; then
  4751. ac_res="none required"
  4752. else
  4753. ac_res=-l$ac_lib
  4754. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4755. fi
  4756. rm -f conftest.$ac_objext conftest$ac_exeext
  4757. if { (ac_try="$ac_link"
  4758. case "(($ac_try" in
  4759. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4760. *) ac_try_echo=$ac_try;;
  4761. esac
  4762. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4763. (eval "$ac_link") 2>conftest.er1
  4764. ac_status=$?
  4765. grep -v '^ *+' conftest.er1 >conftest.err
  4766. rm -f conftest.er1
  4767. cat conftest.err >&5
  4768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4769. (exit $ac_status); } &&
  4770. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  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_try") 2>&5
  4777. ac_status=$?
  4778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4779. (exit $ac_status); }; } &&
  4780. { ac_try='test -s conftest$ac_exeext'
  4781. { (case "(($ac_try" in
  4782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4783. *) ac_try_echo=$ac_try;;
  4784. esac
  4785. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4786. (eval "$ac_try") 2>&5
  4787. ac_status=$?
  4788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4789. (exit $ac_status); }; }; then
  4790. ac_cv_search_opendir=$ac_res
  4791. else
  4792. echo "$as_me: failed program was:" >&5
  4793. sed 's/^/| /' conftest.$ac_ext >&5
  4794. fi
  4795. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4796. conftest$ac_exeext
  4797. if test "${ac_cv_search_opendir+set}" = set; then
  4798. break
  4799. fi
  4800. done
  4801. if test "${ac_cv_search_opendir+set}" = set; then
  4802. :
  4803. else
  4804. ac_cv_search_opendir=no
  4805. fi
  4806. rm conftest.$ac_ext
  4807. LIBS=$ac_func_search_save_LIBS
  4808. fi
  4809. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4810. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  4811. ac_res=$ac_cv_search_opendir
  4812. if test "$ac_res" != no; then
  4813. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4814. fi
  4815. fi
  4816. { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4817. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
  4818. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4819. echo $ECHO_N "(cached) $ECHO_C" >&6
  4820. else
  4821. cat >conftest.$ac_ext <<_ACEOF
  4822. /* confdefs.h. */
  4823. _ACEOF
  4824. cat confdefs.h >>conftest.$ac_ext
  4825. cat >>conftest.$ac_ext <<_ACEOF
  4826. /* end confdefs.h. */
  4827. #include <sys/types.h>
  4828. #include <sys/wait.h>
  4829. #ifndef WEXITSTATUS
  4830. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  4831. #endif
  4832. #ifndef WIFEXITED
  4833. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4834. #endif
  4835. int
  4836. main ()
  4837. {
  4838. int s;
  4839. wait (&s);
  4840. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4841. ;
  4842. return 0;
  4843. }
  4844. _ACEOF
  4845. rm -f conftest.$ac_objext
  4846. if { (ac_try="$ac_compile"
  4847. case "(($ac_try" in
  4848. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4849. *) ac_try_echo=$ac_try;;
  4850. esac
  4851. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4852. (eval "$ac_compile") 2>conftest.er1
  4853. ac_status=$?
  4854. grep -v '^ *+' conftest.er1 >conftest.err
  4855. rm -f conftest.er1
  4856. cat conftest.err >&5
  4857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4858. (exit $ac_status); } &&
  4859. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4860. { (case "(($ac_try" in
  4861. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4862. *) ac_try_echo=$ac_try;;
  4863. esac
  4864. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4865. (eval "$ac_try") 2>&5
  4866. ac_status=$?
  4867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4868. (exit $ac_status); }; } &&
  4869. { ac_try='test -s conftest.$ac_objext'
  4870. { (case "(($ac_try" in
  4871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4872. *) ac_try_echo=$ac_try;;
  4873. esac
  4874. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4875. (eval "$ac_try") 2>&5
  4876. ac_status=$?
  4877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4878. (exit $ac_status); }; }; then
  4879. ac_cv_header_sys_wait_h=yes
  4880. else
  4881. echo "$as_me: failed program was:" >&5
  4882. sed 's/^/| /' conftest.$ac_ext >&5
  4883. ac_cv_header_sys_wait_h=no
  4884. fi
  4885. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4886. fi
  4887. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  4888. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
  4889. if test $ac_cv_header_sys_wait_h = yes; then
  4890. cat >>confdefs.h <<\_ACEOF
  4891. #define HAVE_SYS_WAIT_H 1
  4892. _ACEOF
  4893. fi
  4894. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4895. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  4896. if test "${ac_cv_header_time+set}" = set; then
  4897. echo $ECHO_N "(cached) $ECHO_C" >&6
  4898. else
  4899. cat >conftest.$ac_ext <<_ACEOF
  4900. /* confdefs.h. */
  4901. _ACEOF
  4902. cat confdefs.h >>conftest.$ac_ext
  4903. cat >>conftest.$ac_ext <<_ACEOF
  4904. /* end confdefs.h. */
  4905. #include <sys/types.h>
  4906. #include <sys/time.h>
  4907. #include <time.h>
  4908. int
  4909. main ()
  4910. {
  4911. if ((struct tm *) 0)
  4912. return 0;
  4913. ;
  4914. return 0;
  4915. }
  4916. _ACEOF
  4917. rm -f conftest.$ac_objext
  4918. if { (ac_try="$ac_compile"
  4919. case "(($ac_try" in
  4920. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4921. *) ac_try_echo=$ac_try;;
  4922. esac
  4923. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4924. (eval "$ac_compile") 2>conftest.er1
  4925. ac_status=$?
  4926. grep -v '^ *+' conftest.er1 >conftest.err
  4927. rm -f conftest.er1
  4928. cat conftest.err >&5
  4929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4930. (exit $ac_status); } &&
  4931. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4932. { (case "(($ac_try" in
  4933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4934. *) ac_try_echo=$ac_try;;
  4935. esac
  4936. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4937. (eval "$ac_try") 2>&5
  4938. ac_status=$?
  4939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4940. (exit $ac_status); }; } &&
  4941. { ac_try='test -s conftest.$ac_objext'
  4942. { (case "(($ac_try" in
  4943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4944. *) ac_try_echo=$ac_try;;
  4945. esac
  4946. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4947. (eval "$ac_try") 2>&5
  4948. ac_status=$?
  4949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4950. (exit $ac_status); }; }; then
  4951. ac_cv_header_time=yes
  4952. else
  4953. echo "$as_me: failed program was:" >&5
  4954. sed 's/^/| /' conftest.$ac_ext >&5
  4955. ac_cv_header_time=no
  4956. fi
  4957. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4958. fi
  4959. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4960. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  4961. if test $ac_cv_header_time = yes; then
  4962. cat >>confdefs.h <<\_ACEOF
  4963. #define TIME_WITH_SYS_TIME 1
  4964. _ACEOF
  4965. fi
  4966. { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  4967. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
  4968. if test "${ac_cv_header_stat_broken+set}" = set; then
  4969. echo $ECHO_N "(cached) $ECHO_C" >&6
  4970. else
  4971. cat >conftest.$ac_ext <<_ACEOF
  4972. /* confdefs.h. */
  4973. _ACEOF
  4974. cat confdefs.h >>conftest.$ac_ext
  4975. cat >>conftest.$ac_ext <<_ACEOF
  4976. /* end confdefs.h. */
  4977. #include <sys/types.h>
  4978. #include <sys/stat.h>
  4979. #if defined S_ISBLK && defined S_IFDIR
  4980. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  4981. #endif
  4982. #if defined S_ISBLK && defined S_IFCHR
  4983. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  4984. #endif
  4985. #if defined S_ISLNK && defined S_IFREG
  4986. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  4987. #endif
  4988. #if defined S_ISSOCK && defined S_IFREG
  4989. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  4990. #endif
  4991. _ACEOF
  4992. rm -f conftest.$ac_objext
  4993. if { (ac_try="$ac_compile"
  4994. case "(($ac_try" in
  4995. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4996. *) ac_try_echo=$ac_try;;
  4997. esac
  4998. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4999. (eval "$ac_compile") 2>conftest.er1
  5000. ac_status=$?
  5001. grep -v '^ *+' conftest.er1 >conftest.err
  5002. rm -f conftest.er1
  5003. cat conftest.err >&5
  5004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5005. (exit $ac_status); } &&
  5006. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5007. { (case "(($ac_try" in
  5008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5009. *) ac_try_echo=$ac_try;;
  5010. esac
  5011. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5012. (eval "$ac_try") 2>&5
  5013. ac_status=$?
  5014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5015. (exit $ac_status); }; } &&
  5016. { ac_try='test -s conftest.$ac_objext'
  5017. { (case "(($ac_try" in
  5018. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5019. *) ac_try_echo=$ac_try;;
  5020. esac
  5021. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5022. (eval "$ac_try") 2>&5
  5023. ac_status=$?
  5024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5025. (exit $ac_status); }; }; then
  5026. ac_cv_header_stat_broken=no
  5027. else
  5028. echo "$as_me: failed program was:" >&5
  5029. sed 's/^/| /' conftest.$ac_ext >&5
  5030. ac_cv_header_stat_broken=yes
  5031. fi
  5032. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5033. fi
  5034. { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  5035. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
  5036. if test $ac_cv_header_stat_broken = yes; then
  5037. cat >>confdefs.h <<\_ACEOF
  5038. #define STAT_MACROS_BROKEN 1
  5039. _ACEOF
  5040. fi
  5041. #checkpoint
  5042. cat >confcache <<\_ACEOF
  5043. # This file is a shell script that caches the results of configure
  5044. # tests run on this system so they can be shared between configure
  5045. # scripts and configure runs, see configure's option --config-cache.
  5046. # It is not useful on other systems. If it contains results you don't
  5047. # want to keep, you may remove or edit it.
  5048. #
  5049. # config.status only pays attention to the cache file if you give it
  5050. # the --recheck option to rerun configure.
  5051. #
  5052. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5053. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5054. # following values.
  5055. _ACEOF
  5056. # The following way of writing the cache mishandles newlines in values,
  5057. # but we know of no workaround that is simple, portable, and efficient.
  5058. # So, we kill variables containing newlines.
  5059. # Ultrix sh set writes to stderr and can't be redirected directly,
  5060. # and sets the high bit in the cache file unless we assign to the vars.
  5061. (
  5062. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5063. eval ac_val=\$$ac_var
  5064. case $ac_val in #(
  5065. *${as_nl}*)
  5066. case $ac_var in #(
  5067. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  5068. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  5069. esac
  5070. case $ac_var in #(
  5071. _ | IFS | as_nl) ;; #(
  5072. *) $as_unset $ac_var ;;
  5073. esac ;;
  5074. esac
  5075. done
  5076. (set) 2>&1 |
  5077. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5078. *${as_nl}ac_space=\ *)
  5079. # `set' does not quote correctly, so add quotes (double-quote
  5080. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5081. sed -n \
  5082. "s/'/'\\\\''/g;
  5083. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5084. ;; #(
  5085. *)
  5086. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5087. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5088. ;;
  5089. esac |
  5090. sort
  5091. ) |
  5092. sed '
  5093. /^ac_cv_env_/b end
  5094. t clear
  5095. :clear
  5096. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5097. t end
  5098. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5099. :end' >>confcache
  5100. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5101. if test -w "$cache_file"; then
  5102. test "x$cache_file" != "x/dev/null" &&
  5103. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  5104. echo "$as_me: updating cache $cache_file" >&6;}
  5105. cat confcache >$cache_file
  5106. else
  5107. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  5108. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5109. fi
  5110. fi
  5111. rm -f confcache
  5112. for ac_header in stdarg.h std_arg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5113. do
  5114. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5115. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5116. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5117. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5118. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5119. echo $ECHO_N "(cached) $ECHO_C" >&6
  5120. fi
  5121. ac_res=`eval echo '${'$as_ac_Header'}'`
  5122. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5123. echo "${ECHO_T}$ac_res" >&6; }
  5124. else
  5125. # Is the header compilable?
  5126. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5127. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  5128. cat >conftest.$ac_ext <<_ACEOF
  5129. /* confdefs.h. */
  5130. _ACEOF
  5131. cat confdefs.h >>conftest.$ac_ext
  5132. cat >>conftest.$ac_ext <<_ACEOF
  5133. /* end confdefs.h. */
  5134. $ac_includes_default
  5135. #include <$ac_header>
  5136. _ACEOF
  5137. rm -f conftest.$ac_objext
  5138. if { (ac_try="$ac_compile"
  5139. case "(($ac_try" in
  5140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5141. *) ac_try_echo=$ac_try;;
  5142. esac
  5143. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5144. (eval "$ac_compile") 2>conftest.er1
  5145. ac_status=$?
  5146. grep -v '^ *+' conftest.er1 >conftest.err
  5147. rm -f conftest.er1
  5148. cat conftest.err >&5
  5149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5150. (exit $ac_status); } &&
  5151. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5152. { (case "(($ac_try" in
  5153. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5154. *) ac_try_echo=$ac_try;;
  5155. esac
  5156. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5157. (eval "$ac_try") 2>&5
  5158. ac_status=$?
  5159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5160. (exit $ac_status); }; } &&
  5161. { ac_try='test -s conftest.$ac_objext'
  5162. { (case "(($ac_try" in
  5163. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5164. *) ac_try_echo=$ac_try;;
  5165. esac
  5166. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5167. (eval "$ac_try") 2>&5
  5168. ac_status=$?
  5169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5170. (exit $ac_status); }; }; then
  5171. ac_header_compiler=yes
  5172. else
  5173. echo "$as_me: failed program was:" >&5
  5174. sed 's/^/| /' conftest.$ac_ext >&5
  5175. ac_header_compiler=no
  5176. fi
  5177. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5178. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5179. echo "${ECHO_T}$ac_header_compiler" >&6; }
  5180. # Is the header present?
  5181. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5182. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  5183. cat >conftest.$ac_ext <<_ACEOF
  5184. /* confdefs.h. */
  5185. _ACEOF
  5186. cat confdefs.h >>conftest.$ac_ext
  5187. cat >>conftest.$ac_ext <<_ACEOF
  5188. /* end confdefs.h. */
  5189. #include <$ac_header>
  5190. _ACEOF
  5191. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5192. case "(($ac_try" in
  5193. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5194. *) ac_try_echo=$ac_try;;
  5195. esac
  5196. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5197. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5198. ac_status=$?
  5199. grep -v '^ *+' conftest.er1 >conftest.err
  5200. rm -f conftest.er1
  5201. cat conftest.err >&5
  5202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5203. (exit $ac_status); } >/dev/null; then
  5204. if test -s conftest.err; then
  5205. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5206. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5207. else
  5208. ac_cpp_err=
  5209. fi
  5210. else
  5211. ac_cpp_err=yes
  5212. fi
  5213. if test -z "$ac_cpp_err"; then
  5214. ac_header_preproc=yes
  5215. else
  5216. echo "$as_me: failed program was:" >&5
  5217. sed 's/^/| /' conftest.$ac_ext >&5
  5218. ac_header_preproc=no
  5219. fi
  5220. rm -f conftest.err conftest.$ac_ext
  5221. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5222. echo "${ECHO_T}$ac_header_preproc" >&6; }
  5223. # So? What about this header?
  5224. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  5225. yes:no: )
  5226. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5227. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5228. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5229. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5230. ac_header_preproc=yes
  5231. ;;
  5232. no:yes:* )
  5233. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5234. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5235. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5236. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5237. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5238. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5239. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5240. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5241. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5242. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5243. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5244. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5245. ;;
  5246. esac
  5247. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5248. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5249. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5250. echo $ECHO_N "(cached) $ECHO_C" >&6
  5251. else
  5252. eval "$as_ac_Header=\$ac_header_preproc"
  5253. fi
  5254. ac_res=`eval echo '${'$as_ac_Header'}'`
  5255. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5256. echo "${ECHO_T}$ac_res" >&6; }
  5257. fi
  5258. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5259. cat >>confdefs.h <<_ACEOF
  5260. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5261. _ACEOF
  5262. fi
  5263. done
  5264. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h sys/ptrace.h paths.h
  5265. do
  5266. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5267. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5268. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5269. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5270. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5271. echo $ECHO_N "(cached) $ECHO_C" >&6
  5272. fi
  5273. ac_res=`eval echo '${'$as_ac_Header'}'`
  5274. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5275. echo "${ECHO_T}$ac_res" >&6; }
  5276. else
  5277. # Is the header compilable?
  5278. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5279. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  5280. cat >conftest.$ac_ext <<_ACEOF
  5281. /* confdefs.h. */
  5282. _ACEOF
  5283. cat confdefs.h >>conftest.$ac_ext
  5284. cat >>conftest.$ac_ext <<_ACEOF
  5285. /* end confdefs.h. */
  5286. $ac_includes_default
  5287. #include <$ac_header>
  5288. _ACEOF
  5289. rm -f conftest.$ac_objext
  5290. if { (ac_try="$ac_compile"
  5291. case "(($ac_try" in
  5292. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5293. *) ac_try_echo=$ac_try;;
  5294. esac
  5295. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5296. (eval "$ac_compile") 2>conftest.er1
  5297. ac_status=$?
  5298. grep -v '^ *+' conftest.er1 >conftest.err
  5299. rm -f conftest.er1
  5300. cat conftest.err >&5
  5301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5302. (exit $ac_status); } &&
  5303. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5304. { (case "(($ac_try" in
  5305. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5306. *) ac_try_echo=$ac_try;;
  5307. esac
  5308. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5309. (eval "$ac_try") 2>&5
  5310. ac_status=$?
  5311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5312. (exit $ac_status); }; } &&
  5313. { ac_try='test -s conftest.$ac_objext'
  5314. { (case "(($ac_try" in
  5315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5316. *) ac_try_echo=$ac_try;;
  5317. esac
  5318. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5319. (eval "$ac_try") 2>&5
  5320. ac_status=$?
  5321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5322. (exit $ac_status); }; }; then
  5323. ac_header_compiler=yes
  5324. else
  5325. echo "$as_me: failed program was:" >&5
  5326. sed 's/^/| /' conftest.$ac_ext >&5
  5327. ac_header_compiler=no
  5328. fi
  5329. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5330. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5331. echo "${ECHO_T}$ac_header_compiler" >&6; }
  5332. # Is the header present?
  5333. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5334. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  5335. cat >conftest.$ac_ext <<_ACEOF
  5336. /* confdefs.h. */
  5337. _ACEOF
  5338. cat confdefs.h >>conftest.$ac_ext
  5339. cat >>conftest.$ac_ext <<_ACEOF
  5340. /* end confdefs.h. */
  5341. #include <$ac_header>
  5342. _ACEOF
  5343. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5344. case "(($ac_try" in
  5345. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5346. *) ac_try_echo=$ac_try;;
  5347. esac
  5348. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5349. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5350. ac_status=$?
  5351. grep -v '^ *+' conftest.er1 >conftest.err
  5352. rm -f conftest.er1
  5353. cat conftest.err >&5
  5354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5355. (exit $ac_status); } >/dev/null; then
  5356. if test -s conftest.err; then
  5357. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5358. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5359. else
  5360. ac_cpp_err=
  5361. fi
  5362. else
  5363. ac_cpp_err=yes
  5364. fi
  5365. if test -z "$ac_cpp_err"; then
  5366. ac_header_preproc=yes
  5367. else
  5368. echo "$as_me: failed program was:" >&5
  5369. sed 's/^/| /' conftest.$ac_ext >&5
  5370. ac_header_preproc=no
  5371. fi
  5372. rm -f conftest.err conftest.$ac_ext
  5373. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5374. echo "${ECHO_T}$ac_header_preproc" >&6; }
  5375. # So? What about this header?
  5376. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  5377. yes:no: )
  5378. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5379. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5380. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5381. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5382. ac_header_preproc=yes
  5383. ;;
  5384. no:yes:* )
  5385. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5386. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5387. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5388. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5389. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5390. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5391. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5392. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5393. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5394. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5395. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5396. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5397. ;;
  5398. esac
  5399. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5400. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5401. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5402. echo $ECHO_N "(cached) $ECHO_C" >&6
  5403. else
  5404. eval "$as_ac_Header=\$ac_header_preproc"
  5405. fi
  5406. ac_res=`eval echo '${'$as_ac_Header'}'`
  5407. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5408. echo "${ECHO_T}$ac_res" >&6; }
  5409. fi
  5410. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5411. cat >>confdefs.h <<_ACEOF
  5412. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5413. _ACEOF
  5414. fi
  5415. done
  5416. #checkpoint
  5417. cat >confcache <<\_ACEOF
  5418. # This file is a shell script that caches the results of configure
  5419. # tests run on this system so they can be shared between configure
  5420. # scripts and configure runs, see configure's option --config-cache.
  5421. # It is not useful on other systems. If it contains results you don't
  5422. # want to keep, you may remove or edit it.
  5423. #
  5424. # config.status only pays attention to the cache file if you give it
  5425. # the --recheck option to rerun configure.
  5426. #
  5427. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5428. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5429. # following values.
  5430. _ACEOF
  5431. # The following way of writing the cache mishandles newlines in values,
  5432. # but we know of no workaround that is simple, portable, and efficient.
  5433. # So, we kill variables containing newlines.
  5434. # Ultrix sh set writes to stderr and can't be redirected directly,
  5435. # and sets the high bit in the cache file unless we assign to the vars.
  5436. (
  5437. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5438. eval ac_val=\$$ac_var
  5439. case $ac_val in #(
  5440. *${as_nl}*)
  5441. case $ac_var in #(
  5442. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  5443. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  5444. esac
  5445. case $ac_var in #(
  5446. _ | IFS | as_nl) ;; #(
  5447. *) $as_unset $ac_var ;;
  5448. esac ;;
  5449. esac
  5450. done
  5451. (set) 2>&1 |
  5452. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5453. *${as_nl}ac_space=\ *)
  5454. # `set' does not quote correctly, so add quotes (double-quote
  5455. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5456. sed -n \
  5457. "s/'/'\\\\''/g;
  5458. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5459. ;; #(
  5460. *)
  5461. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5462. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5463. ;;
  5464. esac |
  5465. sort
  5466. ) |
  5467. sed '
  5468. /^ac_cv_env_/b end
  5469. t clear
  5470. :clear
  5471. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5472. t end
  5473. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5474. :end' >>confcache
  5475. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5476. if test -w "$cache_file"; then
  5477. test "x$cache_file" != "x/dev/null" &&
  5478. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  5479. echo "$as_me: updating cache $cache_file" >&6;}
  5480. cat confcache >$cache_file
  5481. else
  5482. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  5483. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5484. fi
  5485. fi
  5486. rm -f confcache
  5487. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5488. #AC_CHECK_HEADERS(zlib.h)
  5489. #EGG_CHECK_ZLIB
  5490. #EGG_CHECK_SSL
  5491. #AC_SUBST(SSL)dnl
  5492. # Checks for typedefs, structures, and compiler characteristics
  5493. { echo "$as_me:$LINENO: checking for pid_t" >&5
  5494. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
  5495. if test "${ac_cv_type_pid_t+set}" = set; then
  5496. echo $ECHO_N "(cached) $ECHO_C" >&6
  5497. else
  5498. cat >conftest.$ac_ext <<_ACEOF
  5499. /* confdefs.h. */
  5500. _ACEOF
  5501. cat confdefs.h >>conftest.$ac_ext
  5502. cat >>conftest.$ac_ext <<_ACEOF
  5503. /* end confdefs.h. */
  5504. $ac_includes_default
  5505. typedef pid_t ac__type_new_;
  5506. int
  5507. main ()
  5508. {
  5509. if ((ac__type_new_ *) 0)
  5510. return 0;
  5511. if (sizeof (ac__type_new_))
  5512. return 0;
  5513. ;
  5514. return 0;
  5515. }
  5516. _ACEOF
  5517. rm -f conftest.$ac_objext
  5518. if { (ac_try="$ac_compile"
  5519. case "(($ac_try" in
  5520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5521. *) ac_try_echo=$ac_try;;
  5522. esac
  5523. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5524. (eval "$ac_compile") 2>conftest.er1
  5525. ac_status=$?
  5526. grep -v '^ *+' conftest.er1 >conftest.err
  5527. rm -f conftest.er1
  5528. cat conftest.err >&5
  5529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5530. (exit $ac_status); } &&
  5531. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5532. { (case "(($ac_try" in
  5533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5534. *) ac_try_echo=$ac_try;;
  5535. esac
  5536. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5537. (eval "$ac_try") 2>&5
  5538. ac_status=$?
  5539. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5540. (exit $ac_status); }; } &&
  5541. { ac_try='test -s conftest.$ac_objext'
  5542. { (case "(($ac_try" in
  5543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5544. *) ac_try_echo=$ac_try;;
  5545. esac
  5546. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5547. (eval "$ac_try") 2>&5
  5548. ac_status=$?
  5549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5550. (exit $ac_status); }; }; then
  5551. ac_cv_type_pid_t=yes
  5552. else
  5553. echo "$as_me: failed program was:" >&5
  5554. sed 's/^/| /' conftest.$ac_ext >&5
  5555. ac_cv_type_pid_t=no
  5556. fi
  5557. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5558. fi
  5559. { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5560. echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
  5561. if test $ac_cv_type_pid_t = yes; then
  5562. :
  5563. else
  5564. cat >>confdefs.h <<_ACEOF
  5565. #define pid_t int
  5566. _ACEOF
  5567. fi
  5568. { echo "$as_me:$LINENO: checking for size_t" >&5
  5569. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  5570. if test "${ac_cv_type_size_t+set}" = set; then
  5571. echo $ECHO_N "(cached) $ECHO_C" >&6
  5572. else
  5573. cat >conftest.$ac_ext <<_ACEOF
  5574. /* confdefs.h. */
  5575. _ACEOF
  5576. cat confdefs.h >>conftest.$ac_ext
  5577. cat >>conftest.$ac_ext <<_ACEOF
  5578. /* end confdefs.h. */
  5579. $ac_includes_default
  5580. typedef size_t ac__type_new_;
  5581. int
  5582. main ()
  5583. {
  5584. if ((ac__type_new_ *) 0)
  5585. return 0;
  5586. if (sizeof (ac__type_new_))
  5587. return 0;
  5588. ;
  5589. return 0;
  5590. }
  5591. _ACEOF
  5592. rm -f conftest.$ac_objext
  5593. if { (ac_try="$ac_compile"
  5594. case "(($ac_try" in
  5595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5596. *) ac_try_echo=$ac_try;;
  5597. esac
  5598. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5599. (eval "$ac_compile") 2>conftest.er1
  5600. ac_status=$?
  5601. grep -v '^ *+' conftest.er1 >conftest.err
  5602. rm -f conftest.er1
  5603. cat conftest.err >&5
  5604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5605. (exit $ac_status); } &&
  5606. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5607. { (case "(($ac_try" in
  5608. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5609. *) ac_try_echo=$ac_try;;
  5610. esac
  5611. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5612. (eval "$ac_try") 2>&5
  5613. ac_status=$?
  5614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5615. (exit $ac_status); }; } &&
  5616. { ac_try='test -s conftest.$ac_objext'
  5617. { (case "(($ac_try" in
  5618. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5619. *) ac_try_echo=$ac_try;;
  5620. esac
  5621. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5622. (eval "$ac_try") 2>&5
  5623. ac_status=$?
  5624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5625. (exit $ac_status); }; }; then
  5626. ac_cv_type_size_t=yes
  5627. else
  5628. echo "$as_me: failed program was:" >&5
  5629. sed 's/^/| /' conftest.$ac_ext >&5
  5630. ac_cv_type_size_t=no
  5631. fi
  5632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5633. fi
  5634. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5635. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  5636. if test $ac_cv_type_size_t = yes; then
  5637. :
  5638. else
  5639. cat >>confdefs.h <<_ACEOF
  5640. #define size_t unsigned int
  5641. _ACEOF
  5642. fi
  5643. { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5644. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
  5645. if test "${ac_cv_type_uid_t+set}" = set; then
  5646. echo $ECHO_N "(cached) $ECHO_C" >&6
  5647. else
  5648. cat >conftest.$ac_ext <<_ACEOF
  5649. /* confdefs.h. */
  5650. _ACEOF
  5651. cat confdefs.h >>conftest.$ac_ext
  5652. cat >>conftest.$ac_ext <<_ACEOF
  5653. /* end confdefs.h. */
  5654. #include <sys/types.h>
  5655. _ACEOF
  5656. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5657. $EGREP "uid_t" >/dev/null 2>&1; then
  5658. ac_cv_type_uid_t=yes
  5659. else
  5660. ac_cv_type_uid_t=no
  5661. fi
  5662. rm -f conftest*
  5663. fi
  5664. { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5665. echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
  5666. if test $ac_cv_type_uid_t = no; then
  5667. cat >>confdefs.h <<\_ACEOF
  5668. #define uid_t int
  5669. _ACEOF
  5670. cat >>confdefs.h <<\_ACEOF
  5671. #define gid_t int
  5672. _ACEOF
  5673. fi
  5674. #AC_C_CONST
  5675. { echo "$as_me:$LINENO: checking for working volatile" >&5
  5676. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  5677. if test "${ac_cv_c_volatile+set}" = set; then
  5678. echo $ECHO_N "(cached) $ECHO_C" >&6
  5679. else
  5680. cat >conftest.$ac_ext <<_ACEOF
  5681. /* confdefs.h. */
  5682. _ACEOF
  5683. cat confdefs.h >>conftest.$ac_ext
  5684. cat >>conftest.$ac_ext <<_ACEOF
  5685. /* end confdefs.h. */
  5686. int
  5687. main ()
  5688. {
  5689. volatile int x;
  5690. int * volatile y = (int *) 0;
  5691. return !x && !y;
  5692. ;
  5693. return 0;
  5694. }
  5695. _ACEOF
  5696. rm -f conftest.$ac_objext
  5697. if { (ac_try="$ac_compile"
  5698. case "(($ac_try" in
  5699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5700. *) ac_try_echo=$ac_try;;
  5701. esac
  5702. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5703. (eval "$ac_compile") 2>conftest.er1
  5704. ac_status=$?
  5705. grep -v '^ *+' conftest.er1 >conftest.err
  5706. rm -f conftest.er1
  5707. cat conftest.err >&5
  5708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5709. (exit $ac_status); } &&
  5710. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5711. { (case "(($ac_try" in
  5712. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5713. *) ac_try_echo=$ac_try;;
  5714. esac
  5715. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5716. (eval "$ac_try") 2>&5
  5717. ac_status=$?
  5718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5719. (exit $ac_status); }; } &&
  5720. { ac_try='test -s conftest.$ac_objext'
  5721. { (case "(($ac_try" in
  5722. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5723. *) ac_try_echo=$ac_try;;
  5724. esac
  5725. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5726. (eval "$ac_try") 2>&5
  5727. ac_status=$?
  5728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5729. (exit $ac_status); }; }; then
  5730. ac_cv_c_volatile=yes
  5731. else
  5732. echo "$as_me: failed program was:" >&5
  5733. sed 's/^/| /' conftest.$ac_ext >&5
  5734. ac_cv_c_volatile=no
  5735. fi
  5736. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5737. fi
  5738. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5739. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  5740. if test $ac_cv_c_volatile = no; then
  5741. cat >>confdefs.h <<\_ACEOF
  5742. #define volatile
  5743. _ACEOF
  5744. fi
  5745. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5746. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  5747. if test "${ac_cv_c_bigendian+set}" = set; then
  5748. echo $ECHO_N "(cached) $ECHO_C" >&6
  5749. else
  5750. # See if sys/param.h defines the BYTE_ORDER macro.
  5751. cat >conftest.$ac_ext <<_ACEOF
  5752. /* confdefs.h. */
  5753. _ACEOF
  5754. cat confdefs.h >>conftest.$ac_ext
  5755. cat >>conftest.$ac_ext <<_ACEOF
  5756. /* end confdefs.h. */
  5757. #include <sys/types.h>
  5758. #include <sys/param.h>
  5759. int
  5760. main ()
  5761. {
  5762. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  5763. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  5764. bogus endian macros
  5765. #endif
  5766. ;
  5767. return 0;
  5768. }
  5769. _ACEOF
  5770. rm -f conftest.$ac_objext
  5771. if { (ac_try="$ac_compile"
  5772. case "(($ac_try" in
  5773. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5774. *) ac_try_echo=$ac_try;;
  5775. esac
  5776. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5777. (eval "$ac_compile") 2>conftest.er1
  5778. ac_status=$?
  5779. grep -v '^ *+' conftest.er1 >conftest.err
  5780. rm -f conftest.er1
  5781. cat conftest.err >&5
  5782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5783. (exit $ac_status); } &&
  5784. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5785. { (case "(($ac_try" in
  5786. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5787. *) ac_try_echo=$ac_try;;
  5788. esac
  5789. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5790. (eval "$ac_try") 2>&5
  5791. ac_status=$?
  5792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5793. (exit $ac_status); }; } &&
  5794. { ac_try='test -s conftest.$ac_objext'
  5795. { (case "(($ac_try" in
  5796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5797. *) ac_try_echo=$ac_try;;
  5798. esac
  5799. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5800. (eval "$ac_try") 2>&5
  5801. ac_status=$?
  5802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5803. (exit $ac_status); }; }; then
  5804. # It does; now see whether it defined to BIG_ENDIAN or not.
  5805. cat >conftest.$ac_ext <<_ACEOF
  5806. /* confdefs.h. */
  5807. _ACEOF
  5808. cat confdefs.h >>conftest.$ac_ext
  5809. cat >>conftest.$ac_ext <<_ACEOF
  5810. /* end confdefs.h. */
  5811. #include <sys/types.h>
  5812. #include <sys/param.h>
  5813. int
  5814. main ()
  5815. {
  5816. #if BYTE_ORDER != BIG_ENDIAN
  5817. not big endian
  5818. #endif
  5819. ;
  5820. return 0;
  5821. }
  5822. _ACEOF
  5823. rm -f conftest.$ac_objext
  5824. if { (ac_try="$ac_compile"
  5825. case "(($ac_try" in
  5826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5827. *) ac_try_echo=$ac_try;;
  5828. esac
  5829. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5830. (eval "$ac_compile") 2>conftest.er1
  5831. ac_status=$?
  5832. grep -v '^ *+' conftest.er1 >conftest.err
  5833. rm -f conftest.er1
  5834. cat conftest.err >&5
  5835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5836. (exit $ac_status); } &&
  5837. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5838. { (case "(($ac_try" in
  5839. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5840. *) ac_try_echo=$ac_try;;
  5841. esac
  5842. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5843. (eval "$ac_try") 2>&5
  5844. ac_status=$?
  5845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5846. (exit $ac_status); }; } &&
  5847. { ac_try='test -s conftest.$ac_objext'
  5848. { (case "(($ac_try" in
  5849. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5850. *) ac_try_echo=$ac_try;;
  5851. esac
  5852. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5853. (eval "$ac_try") 2>&5
  5854. ac_status=$?
  5855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5856. (exit $ac_status); }; }; then
  5857. ac_cv_c_bigendian=yes
  5858. else
  5859. echo "$as_me: failed program was:" >&5
  5860. sed 's/^/| /' conftest.$ac_ext >&5
  5861. ac_cv_c_bigendian=no
  5862. fi
  5863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5864. else
  5865. echo "$as_me: failed program was:" >&5
  5866. sed 's/^/| /' conftest.$ac_ext >&5
  5867. # It does not; compile a test program.
  5868. if test "$cross_compiling" = yes; then
  5869. # try to guess the endianness by grepping values into an object file
  5870. ac_cv_c_bigendian=unknown
  5871. cat >conftest.$ac_ext <<_ACEOF
  5872. /* confdefs.h. */
  5873. _ACEOF
  5874. cat confdefs.h >>conftest.$ac_ext
  5875. cat >>conftest.$ac_ext <<_ACEOF
  5876. /* end confdefs.h. */
  5877. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5878. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5879. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  5880. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5881. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5882. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  5883. int
  5884. main ()
  5885. {
  5886. _ascii (); _ebcdic ();
  5887. ;
  5888. return 0;
  5889. }
  5890. _ACEOF
  5891. rm -f conftest.$ac_objext
  5892. if { (ac_try="$ac_compile"
  5893. case "(($ac_try" in
  5894. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5895. *) ac_try_echo=$ac_try;;
  5896. esac
  5897. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5898. (eval "$ac_compile") 2>conftest.er1
  5899. ac_status=$?
  5900. grep -v '^ *+' conftest.er1 >conftest.err
  5901. rm -f conftest.er1
  5902. cat conftest.err >&5
  5903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5904. (exit $ac_status); } &&
  5905. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5906. { (case "(($ac_try" in
  5907. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5908. *) ac_try_echo=$ac_try;;
  5909. esac
  5910. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5911. (eval "$ac_try") 2>&5
  5912. ac_status=$?
  5913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5914. (exit $ac_status); }; } &&
  5915. { ac_try='test -s conftest.$ac_objext'
  5916. { (case "(($ac_try" in
  5917. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5918. *) ac_try_echo=$ac_try;;
  5919. esac
  5920. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5921. (eval "$ac_try") 2>&5
  5922. ac_status=$?
  5923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5924. (exit $ac_status); }; }; then
  5925. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  5926. ac_cv_c_bigendian=yes
  5927. fi
  5928. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5929. if test "$ac_cv_c_bigendian" = unknown; then
  5930. ac_cv_c_bigendian=no
  5931. else
  5932. # finding both strings is unlikely to happen, but who knows?
  5933. ac_cv_c_bigendian=unknown
  5934. fi
  5935. fi
  5936. else
  5937. echo "$as_me: failed program was:" >&5
  5938. sed 's/^/| /' conftest.$ac_ext >&5
  5939. fi
  5940. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5941. else
  5942. cat >conftest.$ac_ext <<_ACEOF
  5943. /* confdefs.h. */
  5944. _ACEOF
  5945. cat confdefs.h >>conftest.$ac_ext
  5946. cat >>conftest.$ac_ext <<_ACEOF
  5947. /* end confdefs.h. */
  5948. $ac_includes_default
  5949. int
  5950. main ()
  5951. {
  5952. /* Are we little or big endian? From Harbison&Steele. */
  5953. union
  5954. {
  5955. long int l;
  5956. char c[sizeof (long int)];
  5957. } u;
  5958. u.l = 1;
  5959. return u.c[sizeof (long int) - 1] == 1;
  5960. ;
  5961. return 0;
  5962. }
  5963. _ACEOF
  5964. rm -f conftest$ac_exeext
  5965. if { (ac_try="$ac_link"
  5966. case "(($ac_try" in
  5967. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5968. *) ac_try_echo=$ac_try;;
  5969. esac
  5970. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5971. (eval "$ac_link") 2>&5
  5972. ac_status=$?
  5973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5974. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5975. { (case "(($ac_try" in
  5976. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5977. *) ac_try_echo=$ac_try;;
  5978. esac
  5979. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5980. (eval "$ac_try") 2>&5
  5981. ac_status=$?
  5982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5983. (exit $ac_status); }; }; then
  5984. ac_cv_c_bigendian=no
  5985. else
  5986. echo "$as_me: program exited with status $ac_status" >&5
  5987. echo "$as_me: failed program was:" >&5
  5988. sed 's/^/| /' conftest.$ac_ext >&5
  5989. ( exit $ac_status )
  5990. ac_cv_c_bigendian=yes
  5991. fi
  5992. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5993. fi
  5994. fi
  5995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5996. fi
  5997. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  5998. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  5999. case $ac_cv_c_bigendian in
  6000. yes)
  6001. cat >>confdefs.h <<\_ACEOF
  6002. #define B_ENDIAN 1
  6003. _ACEOF
  6004. ;;
  6005. no)
  6006. cat >>confdefs.h <<\_ACEOF
  6007. #define L_ENDIAN 1
  6008. _ACEOF
  6009. ;;
  6010. *)
  6011. { { echo "$as_me:$LINENO: error: unknown endianness
  6012. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6013. echo "$as_me: error: unknown endianness
  6014. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6015. { (exit 1); exit 1; }; } ;;
  6016. esac
  6017. #AC_C_INLINE
  6018. { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
  6019. echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
  6020. if test "${ac_cv_c_char_unsigned+set}" = set; then
  6021. echo $ECHO_N "(cached) $ECHO_C" >&6
  6022. else
  6023. cat >conftest.$ac_ext <<_ACEOF
  6024. /* confdefs.h. */
  6025. _ACEOF
  6026. cat confdefs.h >>conftest.$ac_ext
  6027. cat >>conftest.$ac_ext <<_ACEOF
  6028. /* end confdefs.h. */
  6029. $ac_includes_default
  6030. int
  6031. main ()
  6032. {
  6033. static int test_array [1 - 2 * !(((char) -1) < 0)];
  6034. test_array [0] = 0
  6035. ;
  6036. return 0;
  6037. }
  6038. _ACEOF
  6039. rm -f conftest.$ac_objext
  6040. if { (ac_try="$ac_compile"
  6041. case "(($ac_try" in
  6042. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6043. *) ac_try_echo=$ac_try;;
  6044. esac
  6045. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6046. (eval "$ac_compile") 2>conftest.er1
  6047. ac_status=$?
  6048. grep -v '^ *+' conftest.er1 >conftest.err
  6049. rm -f conftest.er1
  6050. cat conftest.err >&5
  6051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6052. (exit $ac_status); } &&
  6053. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6054. { (case "(($ac_try" in
  6055. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6056. *) ac_try_echo=$ac_try;;
  6057. esac
  6058. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6059. (eval "$ac_try") 2>&5
  6060. ac_status=$?
  6061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6062. (exit $ac_status); }; } &&
  6063. { ac_try='test -s conftest.$ac_objext'
  6064. { (case "(($ac_try" in
  6065. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6066. *) ac_try_echo=$ac_try;;
  6067. esac
  6068. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6069. (eval "$ac_try") 2>&5
  6070. ac_status=$?
  6071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6072. (exit $ac_status); }; }; then
  6073. ac_cv_c_char_unsigned=no
  6074. else
  6075. echo "$as_me: failed program was:" >&5
  6076. sed 's/^/| /' conftest.$ac_ext >&5
  6077. ac_cv_c_char_unsigned=yes
  6078. fi
  6079. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6080. fi
  6081. { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
  6082. echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
  6083. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  6084. cat >>confdefs.h <<\_ACEOF
  6085. #define __CHAR_UNSIGNED__ 1
  6086. _ACEOF
  6087. fi
  6088. #AC_C_STRINGIZE
  6089. #AC_C_PROTOTYPES
  6090. #checkpoint
  6091. cat >confcache <<\_ACEOF
  6092. # This file is a shell script that caches the results of configure
  6093. # tests run on this system so they can be shared between configure
  6094. # scripts and configure runs, see configure's option --config-cache.
  6095. # It is not useful on other systems. If it contains results you don't
  6096. # want to keep, you may remove or edit it.
  6097. #
  6098. # config.status only pays attention to the cache file if you give it
  6099. # the --recheck option to rerun configure.
  6100. #
  6101. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6102. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6103. # following values.
  6104. _ACEOF
  6105. # The following way of writing the cache mishandles newlines in values,
  6106. # but we know of no workaround that is simple, portable, and efficient.
  6107. # So, we kill variables containing newlines.
  6108. # Ultrix sh set writes to stderr and can't be redirected directly,
  6109. # and sets the high bit in the cache file unless we assign to the vars.
  6110. (
  6111. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6112. eval ac_val=\$$ac_var
  6113. case $ac_val in #(
  6114. *${as_nl}*)
  6115. case $ac_var in #(
  6116. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  6117. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  6118. esac
  6119. case $ac_var in #(
  6120. _ | IFS | as_nl) ;; #(
  6121. *) $as_unset $ac_var ;;
  6122. esac ;;
  6123. esac
  6124. done
  6125. (set) 2>&1 |
  6126. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6127. *${as_nl}ac_space=\ *)
  6128. # `set' does not quote correctly, so add quotes (double-quote
  6129. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6130. sed -n \
  6131. "s/'/'\\\\''/g;
  6132. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6133. ;; #(
  6134. *)
  6135. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6136. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6137. ;;
  6138. esac |
  6139. sort
  6140. ) |
  6141. sed '
  6142. /^ac_cv_env_/b end
  6143. t clear
  6144. :clear
  6145. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6146. t end
  6147. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6148. :end' >>confcache
  6149. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6150. if test -w "$cache_file"; then
  6151. test "x$cache_file" != "x/dev/null" &&
  6152. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  6153. echo "$as_me: updating cache $cache_file" >&6;}
  6154. cat confcache >$cache_file
  6155. else
  6156. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  6157. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6158. fi
  6159. fi
  6160. rm -f confcache
  6161. { echo "$as_me:$LINENO: checking for int" >&5
  6162. echo $ECHO_N "checking for int... $ECHO_C" >&6; }
  6163. if test "${ac_cv_type_int+set}" = set; then
  6164. echo $ECHO_N "(cached) $ECHO_C" >&6
  6165. else
  6166. cat >conftest.$ac_ext <<_ACEOF
  6167. /* confdefs.h. */
  6168. _ACEOF
  6169. cat confdefs.h >>conftest.$ac_ext
  6170. cat >>conftest.$ac_ext <<_ACEOF
  6171. /* end confdefs.h. */
  6172. $ac_includes_default
  6173. typedef int ac__type_new_;
  6174. int
  6175. main ()
  6176. {
  6177. if ((ac__type_new_ *) 0)
  6178. return 0;
  6179. if (sizeof (ac__type_new_))
  6180. return 0;
  6181. ;
  6182. return 0;
  6183. }
  6184. _ACEOF
  6185. rm -f conftest.$ac_objext
  6186. if { (ac_try="$ac_compile"
  6187. case "(($ac_try" in
  6188. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6189. *) ac_try_echo=$ac_try;;
  6190. esac
  6191. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6192. (eval "$ac_compile") 2>conftest.er1
  6193. ac_status=$?
  6194. grep -v '^ *+' conftest.er1 >conftest.err
  6195. rm -f conftest.er1
  6196. cat conftest.err >&5
  6197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6198. (exit $ac_status); } &&
  6199. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6200. { (case "(($ac_try" in
  6201. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6202. *) ac_try_echo=$ac_try;;
  6203. esac
  6204. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6205. (eval "$ac_try") 2>&5
  6206. ac_status=$?
  6207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6208. (exit $ac_status); }; } &&
  6209. { ac_try='test -s conftest.$ac_objext'
  6210. { (case "(($ac_try" in
  6211. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6212. *) ac_try_echo=$ac_try;;
  6213. esac
  6214. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6215. (eval "$ac_try") 2>&5
  6216. ac_status=$?
  6217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6218. (exit $ac_status); }; }; then
  6219. ac_cv_type_int=yes
  6220. else
  6221. echo "$as_me: failed program was:" >&5
  6222. sed 's/^/| /' conftest.$ac_ext >&5
  6223. ac_cv_type_int=no
  6224. fi
  6225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6226. fi
  6227. { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  6228. echo "${ECHO_T}$ac_cv_type_int" >&6; }
  6229. # The cast to long int works around a bug in the HP C Compiler
  6230. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6231. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6232. # This bug is HP SR number 8606223364.
  6233. { echo "$as_me:$LINENO: checking size of int" >&5
  6234. echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
  6235. if test "${ac_cv_sizeof_int+set}" = set; then
  6236. echo $ECHO_N "(cached) $ECHO_C" >&6
  6237. else
  6238. if test "$cross_compiling" = yes; then
  6239. # Depending upon the size, compute the lo and hi bounds.
  6240. cat >conftest.$ac_ext <<_ACEOF
  6241. /* confdefs.h. */
  6242. _ACEOF
  6243. cat confdefs.h >>conftest.$ac_ext
  6244. cat >>conftest.$ac_ext <<_ACEOF
  6245. /* end confdefs.h. */
  6246. $ac_includes_default
  6247. typedef int ac__type_sizeof_;
  6248. int
  6249. main ()
  6250. {
  6251. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  6252. test_array [0] = 0
  6253. ;
  6254. return 0;
  6255. }
  6256. _ACEOF
  6257. rm -f conftest.$ac_objext
  6258. if { (ac_try="$ac_compile"
  6259. case "(($ac_try" in
  6260. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6261. *) ac_try_echo=$ac_try;;
  6262. esac
  6263. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6264. (eval "$ac_compile") 2>conftest.er1
  6265. ac_status=$?
  6266. grep -v '^ *+' conftest.er1 >conftest.err
  6267. rm -f conftest.er1
  6268. cat conftest.err >&5
  6269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6270. (exit $ac_status); } &&
  6271. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6272. { (case "(($ac_try" in
  6273. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6274. *) ac_try_echo=$ac_try;;
  6275. esac
  6276. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6277. (eval "$ac_try") 2>&5
  6278. ac_status=$?
  6279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6280. (exit $ac_status); }; } &&
  6281. { ac_try='test -s conftest.$ac_objext'
  6282. { (case "(($ac_try" in
  6283. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6284. *) ac_try_echo=$ac_try;;
  6285. esac
  6286. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6287. (eval "$ac_try") 2>&5
  6288. ac_status=$?
  6289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6290. (exit $ac_status); }; }; then
  6291. ac_lo=0 ac_mid=0
  6292. while :; do
  6293. cat >conftest.$ac_ext <<_ACEOF
  6294. /* confdefs.h. */
  6295. _ACEOF
  6296. cat confdefs.h >>conftest.$ac_ext
  6297. cat >>conftest.$ac_ext <<_ACEOF
  6298. /* end confdefs.h. */
  6299. $ac_includes_default
  6300. typedef int ac__type_sizeof_;
  6301. int
  6302. main ()
  6303. {
  6304. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6305. test_array [0] = 0
  6306. ;
  6307. return 0;
  6308. }
  6309. _ACEOF
  6310. rm -f conftest.$ac_objext
  6311. if { (ac_try="$ac_compile"
  6312. case "(($ac_try" in
  6313. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6314. *) ac_try_echo=$ac_try;;
  6315. esac
  6316. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6317. (eval "$ac_compile") 2>conftest.er1
  6318. ac_status=$?
  6319. grep -v '^ *+' conftest.er1 >conftest.err
  6320. rm -f conftest.er1
  6321. cat conftest.err >&5
  6322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6323. (exit $ac_status); } &&
  6324. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6325. { (case "(($ac_try" in
  6326. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6327. *) ac_try_echo=$ac_try;;
  6328. esac
  6329. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6330. (eval "$ac_try") 2>&5
  6331. ac_status=$?
  6332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6333. (exit $ac_status); }; } &&
  6334. { ac_try='test -s conftest.$ac_objext'
  6335. { (case "(($ac_try" in
  6336. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6337. *) ac_try_echo=$ac_try;;
  6338. esac
  6339. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6340. (eval "$ac_try") 2>&5
  6341. ac_status=$?
  6342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6343. (exit $ac_status); }; }; then
  6344. ac_hi=$ac_mid; break
  6345. else
  6346. echo "$as_me: failed program was:" >&5
  6347. sed 's/^/| /' conftest.$ac_ext >&5
  6348. ac_lo=`expr $ac_mid + 1`
  6349. if test $ac_lo -le $ac_mid; then
  6350. ac_lo= ac_hi=
  6351. break
  6352. fi
  6353. ac_mid=`expr 2 '*' $ac_mid + 1`
  6354. fi
  6355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6356. done
  6357. else
  6358. echo "$as_me: failed program was:" >&5
  6359. sed 's/^/| /' conftest.$ac_ext >&5
  6360. cat >conftest.$ac_ext <<_ACEOF
  6361. /* confdefs.h. */
  6362. _ACEOF
  6363. cat confdefs.h >>conftest.$ac_ext
  6364. cat >>conftest.$ac_ext <<_ACEOF
  6365. /* end confdefs.h. */
  6366. $ac_includes_default
  6367. typedef int ac__type_sizeof_;
  6368. int
  6369. main ()
  6370. {
  6371. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  6372. test_array [0] = 0
  6373. ;
  6374. return 0;
  6375. }
  6376. _ACEOF
  6377. rm -f conftest.$ac_objext
  6378. if { (ac_try="$ac_compile"
  6379. case "(($ac_try" in
  6380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6381. *) ac_try_echo=$ac_try;;
  6382. esac
  6383. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6384. (eval "$ac_compile") 2>conftest.er1
  6385. ac_status=$?
  6386. grep -v '^ *+' conftest.er1 >conftest.err
  6387. rm -f conftest.er1
  6388. cat conftest.err >&5
  6389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6390. (exit $ac_status); } &&
  6391. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6392. { (case "(($ac_try" in
  6393. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6394. *) ac_try_echo=$ac_try;;
  6395. esac
  6396. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6397. (eval "$ac_try") 2>&5
  6398. ac_status=$?
  6399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6400. (exit $ac_status); }; } &&
  6401. { ac_try='test -s conftest.$ac_objext'
  6402. { (case "(($ac_try" in
  6403. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6404. *) ac_try_echo=$ac_try;;
  6405. esac
  6406. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6407. (eval "$ac_try") 2>&5
  6408. ac_status=$?
  6409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6410. (exit $ac_status); }; }; then
  6411. ac_hi=-1 ac_mid=-1
  6412. while :; do
  6413. cat >conftest.$ac_ext <<_ACEOF
  6414. /* confdefs.h. */
  6415. _ACEOF
  6416. cat confdefs.h >>conftest.$ac_ext
  6417. cat >>conftest.$ac_ext <<_ACEOF
  6418. /* end confdefs.h. */
  6419. $ac_includes_default
  6420. typedef int ac__type_sizeof_;
  6421. int
  6422. main ()
  6423. {
  6424. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  6425. test_array [0] = 0
  6426. ;
  6427. return 0;
  6428. }
  6429. _ACEOF
  6430. rm -f conftest.$ac_objext
  6431. if { (ac_try="$ac_compile"
  6432. case "(($ac_try" in
  6433. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6434. *) ac_try_echo=$ac_try;;
  6435. esac
  6436. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6437. (eval "$ac_compile") 2>conftest.er1
  6438. ac_status=$?
  6439. grep -v '^ *+' conftest.er1 >conftest.err
  6440. rm -f conftest.er1
  6441. cat conftest.err >&5
  6442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6443. (exit $ac_status); } &&
  6444. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6445. { (case "(($ac_try" in
  6446. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6447. *) ac_try_echo=$ac_try;;
  6448. esac
  6449. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6450. (eval "$ac_try") 2>&5
  6451. ac_status=$?
  6452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6453. (exit $ac_status); }; } &&
  6454. { ac_try='test -s conftest.$ac_objext'
  6455. { (case "(($ac_try" in
  6456. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6457. *) ac_try_echo=$ac_try;;
  6458. esac
  6459. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6460. (eval "$ac_try") 2>&5
  6461. ac_status=$?
  6462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6463. (exit $ac_status); }; }; then
  6464. ac_lo=$ac_mid; break
  6465. else
  6466. echo "$as_me: failed program was:" >&5
  6467. sed 's/^/| /' conftest.$ac_ext >&5
  6468. ac_hi=`expr '(' $ac_mid ')' - 1`
  6469. if test $ac_mid -le $ac_hi; then
  6470. ac_lo= ac_hi=
  6471. break
  6472. fi
  6473. ac_mid=`expr 2 '*' $ac_mid`
  6474. fi
  6475. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6476. done
  6477. else
  6478. echo "$as_me: failed program was:" >&5
  6479. sed 's/^/| /' conftest.$ac_ext >&5
  6480. ac_lo= ac_hi=
  6481. fi
  6482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6483. fi
  6484. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6485. # Binary search between lo and hi bounds.
  6486. while test "x$ac_lo" != "x$ac_hi"; do
  6487. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6488. cat >conftest.$ac_ext <<_ACEOF
  6489. /* confdefs.h. */
  6490. _ACEOF
  6491. cat confdefs.h >>conftest.$ac_ext
  6492. cat >>conftest.$ac_ext <<_ACEOF
  6493. /* end confdefs.h. */
  6494. $ac_includes_default
  6495. typedef int ac__type_sizeof_;
  6496. int
  6497. main ()
  6498. {
  6499. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6500. test_array [0] = 0
  6501. ;
  6502. return 0;
  6503. }
  6504. _ACEOF
  6505. rm -f conftest.$ac_objext
  6506. if { (ac_try="$ac_compile"
  6507. case "(($ac_try" in
  6508. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6509. *) ac_try_echo=$ac_try;;
  6510. esac
  6511. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6512. (eval "$ac_compile") 2>conftest.er1
  6513. ac_status=$?
  6514. grep -v '^ *+' conftest.er1 >conftest.err
  6515. rm -f conftest.er1
  6516. cat conftest.err >&5
  6517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6518. (exit $ac_status); } &&
  6519. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6520. { (case "(($ac_try" in
  6521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6522. *) ac_try_echo=$ac_try;;
  6523. esac
  6524. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6525. (eval "$ac_try") 2>&5
  6526. ac_status=$?
  6527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6528. (exit $ac_status); }; } &&
  6529. { ac_try='test -s conftest.$ac_objext'
  6530. { (case "(($ac_try" in
  6531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6532. *) ac_try_echo=$ac_try;;
  6533. esac
  6534. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6535. (eval "$ac_try") 2>&5
  6536. ac_status=$?
  6537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6538. (exit $ac_status); }; }; then
  6539. ac_hi=$ac_mid
  6540. else
  6541. echo "$as_me: failed program was:" >&5
  6542. sed 's/^/| /' conftest.$ac_ext >&5
  6543. ac_lo=`expr '(' $ac_mid ')' + 1`
  6544. fi
  6545. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6546. done
  6547. case $ac_lo in
  6548. ?*) ac_cv_sizeof_int=$ac_lo;;
  6549. '') if test "$ac_cv_type_int" = yes; then
  6550. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  6551. See \`config.log' for more details." >&5
  6552. echo "$as_me: error: cannot compute sizeof (int)
  6553. See \`config.log' for more details." >&2;}
  6554. { (exit 77); exit 77; }; }
  6555. else
  6556. ac_cv_sizeof_int=0
  6557. fi ;;
  6558. esac
  6559. else
  6560. cat >conftest.$ac_ext <<_ACEOF
  6561. /* confdefs.h. */
  6562. _ACEOF
  6563. cat confdefs.h >>conftest.$ac_ext
  6564. cat >>conftest.$ac_ext <<_ACEOF
  6565. /* end confdefs.h. */
  6566. $ac_includes_default
  6567. typedef int ac__type_sizeof_;
  6568. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6569. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6570. #include <stdio.h>
  6571. #include <stdlib.h>
  6572. int
  6573. main ()
  6574. {
  6575. FILE *f = fopen ("conftest.val", "w");
  6576. if (! f)
  6577. return 1;
  6578. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  6579. {
  6580. long int i = longval ();
  6581. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  6582. return 1;
  6583. fprintf (f, "%ld\n", i);
  6584. }
  6585. else
  6586. {
  6587. unsigned long int i = ulongval ();
  6588. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  6589. return 1;
  6590. fprintf (f, "%lu\n", i);
  6591. }
  6592. return ferror (f) || fclose (f) != 0;
  6593. ;
  6594. return 0;
  6595. }
  6596. _ACEOF
  6597. rm -f conftest$ac_exeext
  6598. if { (ac_try="$ac_link"
  6599. case "(($ac_try" in
  6600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6601. *) ac_try_echo=$ac_try;;
  6602. esac
  6603. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6604. (eval "$ac_link") 2>&5
  6605. ac_status=$?
  6606. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6607. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6608. { (case "(($ac_try" in
  6609. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6610. *) ac_try_echo=$ac_try;;
  6611. esac
  6612. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6613. (eval "$ac_try") 2>&5
  6614. ac_status=$?
  6615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6616. (exit $ac_status); }; }; then
  6617. ac_cv_sizeof_int=`cat conftest.val`
  6618. else
  6619. echo "$as_me: program exited with status $ac_status" >&5
  6620. echo "$as_me: failed program was:" >&5
  6621. sed 's/^/| /' conftest.$ac_ext >&5
  6622. ( exit $ac_status )
  6623. if test "$ac_cv_type_int" = yes; then
  6624. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  6625. See \`config.log' for more details." >&5
  6626. echo "$as_me: error: cannot compute sizeof (int)
  6627. See \`config.log' for more details." >&2;}
  6628. { (exit 77); exit 77; }; }
  6629. else
  6630. ac_cv_sizeof_int=0
  6631. fi
  6632. fi
  6633. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6634. fi
  6635. rm -f conftest.val
  6636. fi
  6637. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  6638. echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
  6639. cat >>confdefs.h <<_ACEOF
  6640. #define SIZEOF_INT $ac_cv_sizeof_int
  6641. _ACEOF
  6642. { echo "$as_me:$LINENO: checking for short" >&5
  6643. echo $ECHO_N "checking for short... $ECHO_C" >&6; }
  6644. if test "${ac_cv_type_short+set}" = set; then
  6645. echo $ECHO_N "(cached) $ECHO_C" >&6
  6646. else
  6647. cat >conftest.$ac_ext <<_ACEOF
  6648. /* confdefs.h. */
  6649. _ACEOF
  6650. cat confdefs.h >>conftest.$ac_ext
  6651. cat >>conftest.$ac_ext <<_ACEOF
  6652. /* end confdefs.h. */
  6653. $ac_includes_default
  6654. typedef short ac__type_new_;
  6655. int
  6656. main ()
  6657. {
  6658. if ((ac__type_new_ *) 0)
  6659. return 0;
  6660. if (sizeof (ac__type_new_))
  6661. return 0;
  6662. ;
  6663. return 0;
  6664. }
  6665. _ACEOF
  6666. rm -f conftest.$ac_objext
  6667. if { (ac_try="$ac_compile"
  6668. case "(($ac_try" in
  6669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6670. *) ac_try_echo=$ac_try;;
  6671. esac
  6672. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6673. (eval "$ac_compile") 2>conftest.er1
  6674. ac_status=$?
  6675. grep -v '^ *+' conftest.er1 >conftest.err
  6676. rm -f conftest.er1
  6677. cat conftest.err >&5
  6678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6679. (exit $ac_status); } &&
  6680. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6681. { (case "(($ac_try" in
  6682. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6683. *) ac_try_echo=$ac_try;;
  6684. esac
  6685. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6686. (eval "$ac_try") 2>&5
  6687. ac_status=$?
  6688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6689. (exit $ac_status); }; } &&
  6690. { ac_try='test -s conftest.$ac_objext'
  6691. { (case "(($ac_try" in
  6692. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6693. *) ac_try_echo=$ac_try;;
  6694. esac
  6695. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6696. (eval "$ac_try") 2>&5
  6697. ac_status=$?
  6698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6699. (exit $ac_status); }; }; then
  6700. ac_cv_type_short=yes
  6701. else
  6702. echo "$as_me: failed program was:" >&5
  6703. sed 's/^/| /' conftest.$ac_ext >&5
  6704. ac_cv_type_short=no
  6705. fi
  6706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6707. fi
  6708. { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  6709. echo "${ECHO_T}$ac_cv_type_short" >&6; }
  6710. # The cast to long int works around a bug in the HP C Compiler
  6711. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6712. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6713. # This bug is HP SR number 8606223364.
  6714. { echo "$as_me:$LINENO: checking size of short" >&5
  6715. echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
  6716. if test "${ac_cv_sizeof_short+set}" = set; then
  6717. echo $ECHO_N "(cached) $ECHO_C" >&6
  6718. else
  6719. if test "$cross_compiling" = yes; then
  6720. # Depending upon the size, compute the lo and hi bounds.
  6721. cat >conftest.$ac_ext <<_ACEOF
  6722. /* confdefs.h. */
  6723. _ACEOF
  6724. cat confdefs.h >>conftest.$ac_ext
  6725. cat >>conftest.$ac_ext <<_ACEOF
  6726. /* end confdefs.h. */
  6727. $ac_includes_default
  6728. typedef short ac__type_sizeof_;
  6729. int
  6730. main ()
  6731. {
  6732. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  6733. test_array [0] = 0
  6734. ;
  6735. return 0;
  6736. }
  6737. _ACEOF
  6738. rm -f conftest.$ac_objext
  6739. if { (ac_try="$ac_compile"
  6740. case "(($ac_try" in
  6741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6742. *) ac_try_echo=$ac_try;;
  6743. esac
  6744. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6745. (eval "$ac_compile") 2>conftest.er1
  6746. ac_status=$?
  6747. grep -v '^ *+' conftest.er1 >conftest.err
  6748. rm -f conftest.er1
  6749. cat conftest.err >&5
  6750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6751. (exit $ac_status); } &&
  6752. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  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_try") 2>&5
  6759. ac_status=$?
  6760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6761. (exit $ac_status); }; } &&
  6762. { ac_try='test -s conftest.$ac_objext'
  6763. { (case "(($ac_try" in
  6764. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6765. *) ac_try_echo=$ac_try;;
  6766. esac
  6767. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6768. (eval "$ac_try") 2>&5
  6769. ac_status=$?
  6770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6771. (exit $ac_status); }; }; then
  6772. ac_lo=0 ac_mid=0
  6773. while :; do
  6774. cat >conftest.$ac_ext <<_ACEOF
  6775. /* confdefs.h. */
  6776. _ACEOF
  6777. cat confdefs.h >>conftest.$ac_ext
  6778. cat >>conftest.$ac_ext <<_ACEOF
  6779. /* end confdefs.h. */
  6780. $ac_includes_default
  6781. typedef short ac__type_sizeof_;
  6782. int
  6783. main ()
  6784. {
  6785. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6786. test_array [0] = 0
  6787. ;
  6788. return 0;
  6789. }
  6790. _ACEOF
  6791. rm -f conftest.$ac_objext
  6792. if { (ac_try="$ac_compile"
  6793. case "(($ac_try" in
  6794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6795. *) ac_try_echo=$ac_try;;
  6796. esac
  6797. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6798. (eval "$ac_compile") 2>conftest.er1
  6799. ac_status=$?
  6800. grep -v '^ *+' conftest.er1 >conftest.err
  6801. rm -f conftest.er1
  6802. cat conftest.err >&5
  6803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6804. (exit $ac_status); } &&
  6805. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6806. { (case "(($ac_try" in
  6807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6808. *) ac_try_echo=$ac_try;;
  6809. esac
  6810. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6811. (eval "$ac_try") 2>&5
  6812. ac_status=$?
  6813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6814. (exit $ac_status); }; } &&
  6815. { ac_try='test -s conftest.$ac_objext'
  6816. { (case "(($ac_try" in
  6817. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6818. *) ac_try_echo=$ac_try;;
  6819. esac
  6820. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6821. (eval "$ac_try") 2>&5
  6822. ac_status=$?
  6823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6824. (exit $ac_status); }; }; then
  6825. ac_hi=$ac_mid; break
  6826. else
  6827. echo "$as_me: failed program was:" >&5
  6828. sed 's/^/| /' conftest.$ac_ext >&5
  6829. ac_lo=`expr $ac_mid + 1`
  6830. if test $ac_lo -le $ac_mid; then
  6831. ac_lo= ac_hi=
  6832. break
  6833. fi
  6834. ac_mid=`expr 2 '*' $ac_mid + 1`
  6835. fi
  6836. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6837. done
  6838. else
  6839. echo "$as_me: failed program was:" >&5
  6840. sed 's/^/| /' conftest.$ac_ext >&5
  6841. cat >conftest.$ac_ext <<_ACEOF
  6842. /* confdefs.h. */
  6843. _ACEOF
  6844. cat confdefs.h >>conftest.$ac_ext
  6845. cat >>conftest.$ac_ext <<_ACEOF
  6846. /* end confdefs.h. */
  6847. $ac_includes_default
  6848. typedef short ac__type_sizeof_;
  6849. int
  6850. main ()
  6851. {
  6852. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  6853. test_array [0] = 0
  6854. ;
  6855. return 0;
  6856. }
  6857. _ACEOF
  6858. rm -f conftest.$ac_objext
  6859. if { (ac_try="$ac_compile"
  6860. case "(($ac_try" in
  6861. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6862. *) ac_try_echo=$ac_try;;
  6863. esac
  6864. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6865. (eval "$ac_compile") 2>conftest.er1
  6866. ac_status=$?
  6867. grep -v '^ *+' conftest.er1 >conftest.err
  6868. rm -f conftest.er1
  6869. cat conftest.err >&5
  6870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6871. (exit $ac_status); } &&
  6872. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6873. { (case "(($ac_try" in
  6874. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6875. *) ac_try_echo=$ac_try;;
  6876. esac
  6877. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6878. (eval "$ac_try") 2>&5
  6879. ac_status=$?
  6880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6881. (exit $ac_status); }; } &&
  6882. { ac_try='test -s conftest.$ac_objext'
  6883. { (case "(($ac_try" in
  6884. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6885. *) ac_try_echo=$ac_try;;
  6886. esac
  6887. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6888. (eval "$ac_try") 2>&5
  6889. ac_status=$?
  6890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6891. (exit $ac_status); }; }; then
  6892. ac_hi=-1 ac_mid=-1
  6893. while :; do
  6894. cat >conftest.$ac_ext <<_ACEOF
  6895. /* confdefs.h. */
  6896. _ACEOF
  6897. cat confdefs.h >>conftest.$ac_ext
  6898. cat >>conftest.$ac_ext <<_ACEOF
  6899. /* end confdefs.h. */
  6900. $ac_includes_default
  6901. typedef short ac__type_sizeof_;
  6902. int
  6903. main ()
  6904. {
  6905. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  6906. test_array [0] = 0
  6907. ;
  6908. return 0;
  6909. }
  6910. _ACEOF
  6911. rm -f conftest.$ac_objext
  6912. if { (ac_try="$ac_compile"
  6913. case "(($ac_try" in
  6914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6915. *) ac_try_echo=$ac_try;;
  6916. esac
  6917. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6918. (eval "$ac_compile") 2>conftest.er1
  6919. ac_status=$?
  6920. grep -v '^ *+' conftest.er1 >conftest.err
  6921. rm -f conftest.er1
  6922. cat conftest.err >&5
  6923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6924. (exit $ac_status); } &&
  6925. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6926. { (case "(($ac_try" in
  6927. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6928. *) ac_try_echo=$ac_try;;
  6929. esac
  6930. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6931. (eval "$ac_try") 2>&5
  6932. ac_status=$?
  6933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6934. (exit $ac_status); }; } &&
  6935. { ac_try='test -s conftest.$ac_objext'
  6936. { (case "(($ac_try" in
  6937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6938. *) ac_try_echo=$ac_try;;
  6939. esac
  6940. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6941. (eval "$ac_try") 2>&5
  6942. ac_status=$?
  6943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6944. (exit $ac_status); }; }; 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 short 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. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7001. { (case "(($ac_try" in
  7002. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7003. *) ac_try_echo=$ac_try;;
  7004. esac
  7005. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7006. (eval "$ac_try") 2>&5
  7007. ac_status=$?
  7008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7009. (exit $ac_status); }; } &&
  7010. { ac_try='test -s conftest.$ac_objext'
  7011. { (case "(($ac_try" in
  7012. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7013. *) ac_try_echo=$ac_try;;
  7014. esac
  7015. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7016. (eval "$ac_try") 2>&5
  7017. ac_status=$?
  7018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7019. (exit $ac_status); }; }; then
  7020. ac_hi=$ac_mid
  7021. else
  7022. echo "$as_me: failed program was:" >&5
  7023. sed 's/^/| /' conftest.$ac_ext >&5
  7024. ac_lo=`expr '(' $ac_mid ')' + 1`
  7025. fi
  7026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7027. done
  7028. case $ac_lo in
  7029. ?*) ac_cv_sizeof_short=$ac_lo;;
  7030. '') if test "$ac_cv_type_short" = yes; then
  7031. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  7032. See \`config.log' for more details." >&5
  7033. echo "$as_me: error: cannot compute sizeof (short)
  7034. See \`config.log' for more details." >&2;}
  7035. { (exit 77); exit 77; }; }
  7036. else
  7037. ac_cv_sizeof_short=0
  7038. fi ;;
  7039. esac
  7040. else
  7041. cat >conftest.$ac_ext <<_ACEOF
  7042. /* confdefs.h. */
  7043. _ACEOF
  7044. cat confdefs.h >>conftest.$ac_ext
  7045. cat >>conftest.$ac_ext <<_ACEOF
  7046. /* end confdefs.h. */
  7047. $ac_includes_default
  7048. typedef short ac__type_sizeof_;
  7049. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  7050. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  7051. #include <stdio.h>
  7052. #include <stdlib.h>
  7053. int
  7054. main ()
  7055. {
  7056. FILE *f = fopen ("conftest.val", "w");
  7057. if (! f)
  7058. return 1;
  7059. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  7060. {
  7061. long int i = longval ();
  7062. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  7063. return 1;
  7064. fprintf (f, "%ld\n", i);
  7065. }
  7066. else
  7067. {
  7068. unsigned long int i = ulongval ();
  7069. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  7070. return 1;
  7071. fprintf (f, "%lu\n", i);
  7072. }
  7073. return ferror (f) || fclose (f) != 0;
  7074. ;
  7075. return 0;
  7076. }
  7077. _ACEOF
  7078. rm -f conftest$ac_exeext
  7079. if { (ac_try="$ac_link"
  7080. case "(($ac_try" in
  7081. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7082. *) ac_try_echo=$ac_try;;
  7083. esac
  7084. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7085. (eval "$ac_link") 2>&5
  7086. ac_status=$?
  7087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7088. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7089. { (case "(($ac_try" in
  7090. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7091. *) ac_try_echo=$ac_try;;
  7092. esac
  7093. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7094. (eval "$ac_try") 2>&5
  7095. ac_status=$?
  7096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7097. (exit $ac_status); }; }; then
  7098. ac_cv_sizeof_short=`cat conftest.val`
  7099. else
  7100. echo "$as_me: program exited with status $ac_status" >&5
  7101. echo "$as_me: failed program was:" >&5
  7102. sed 's/^/| /' conftest.$ac_ext >&5
  7103. ( exit $ac_status )
  7104. if test "$ac_cv_type_short" = yes; then
  7105. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  7106. See \`config.log' for more details." >&5
  7107. echo "$as_me: error: cannot compute sizeof (short)
  7108. See \`config.log' for more details." >&2;}
  7109. { (exit 77); exit 77; }; }
  7110. else
  7111. ac_cv_sizeof_short=0
  7112. fi
  7113. fi
  7114. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7115. fi
  7116. rm -f conftest.val
  7117. fi
  7118. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  7119. echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
  7120. cat >>confdefs.h <<_ACEOF
  7121. #define SIZEOF_SHORT $ac_cv_sizeof_short
  7122. _ACEOF
  7123. { echo "$as_me:$LINENO: checking for long" >&5
  7124. echo $ECHO_N "checking for long... $ECHO_C" >&6; }
  7125. if test "${ac_cv_type_long+set}" = set; then
  7126. echo $ECHO_N "(cached) $ECHO_C" >&6
  7127. else
  7128. cat >conftest.$ac_ext <<_ACEOF
  7129. /* confdefs.h. */
  7130. _ACEOF
  7131. cat confdefs.h >>conftest.$ac_ext
  7132. cat >>conftest.$ac_ext <<_ACEOF
  7133. /* end confdefs.h. */
  7134. $ac_includes_default
  7135. typedef long ac__type_new_;
  7136. int
  7137. main ()
  7138. {
  7139. if ((ac__type_new_ *) 0)
  7140. return 0;
  7141. if (sizeof (ac__type_new_))
  7142. return 0;
  7143. ;
  7144. return 0;
  7145. }
  7146. _ACEOF
  7147. rm -f conftest.$ac_objext
  7148. if { (ac_try="$ac_compile"
  7149. case "(($ac_try" in
  7150. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7151. *) ac_try_echo=$ac_try;;
  7152. esac
  7153. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7154. (eval "$ac_compile") 2>conftest.er1
  7155. ac_status=$?
  7156. grep -v '^ *+' conftest.er1 >conftest.err
  7157. rm -f conftest.er1
  7158. cat conftest.err >&5
  7159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7160. (exit $ac_status); } &&
  7161. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7162. { (case "(($ac_try" in
  7163. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7164. *) ac_try_echo=$ac_try;;
  7165. esac
  7166. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7167. (eval "$ac_try") 2>&5
  7168. ac_status=$?
  7169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7170. (exit $ac_status); }; } &&
  7171. { ac_try='test -s conftest.$ac_objext'
  7172. { (case "(($ac_try" in
  7173. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7174. *) ac_try_echo=$ac_try;;
  7175. esac
  7176. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7177. (eval "$ac_try") 2>&5
  7178. ac_status=$?
  7179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7180. (exit $ac_status); }; }; then
  7181. ac_cv_type_long=yes
  7182. else
  7183. echo "$as_me: failed program was:" >&5
  7184. sed 's/^/| /' conftest.$ac_ext >&5
  7185. ac_cv_type_long=no
  7186. fi
  7187. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7188. fi
  7189. { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  7190. echo "${ECHO_T}$ac_cv_type_long" >&6; }
  7191. # The cast to long int works around a bug in the HP C Compiler
  7192. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7193. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7194. # This bug is HP SR number 8606223364.
  7195. { echo "$as_me:$LINENO: checking size of long" >&5
  7196. echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
  7197. if test "${ac_cv_sizeof_long+set}" = set; then
  7198. echo $ECHO_N "(cached) $ECHO_C" >&6
  7199. else
  7200. if test "$cross_compiling" = yes; then
  7201. # Depending upon the size, compute the lo and hi bounds.
  7202. cat >conftest.$ac_ext <<_ACEOF
  7203. /* confdefs.h. */
  7204. _ACEOF
  7205. cat confdefs.h >>conftest.$ac_ext
  7206. cat >>conftest.$ac_ext <<_ACEOF
  7207. /* end confdefs.h. */
  7208. $ac_includes_default
  7209. typedef long ac__type_sizeof_;
  7210. int
  7211. main ()
  7212. {
  7213. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  7214. test_array [0] = 0
  7215. ;
  7216. return 0;
  7217. }
  7218. _ACEOF
  7219. rm -f conftest.$ac_objext
  7220. if { (ac_try="$ac_compile"
  7221. case "(($ac_try" in
  7222. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7223. *) ac_try_echo=$ac_try;;
  7224. esac
  7225. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7226. (eval "$ac_compile") 2>conftest.er1
  7227. ac_status=$?
  7228. grep -v '^ *+' conftest.er1 >conftest.err
  7229. rm -f conftest.er1
  7230. cat conftest.err >&5
  7231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7232. (exit $ac_status); } &&
  7233. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7234. { (case "(($ac_try" in
  7235. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7236. *) ac_try_echo=$ac_try;;
  7237. esac
  7238. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7239. (eval "$ac_try") 2>&5
  7240. ac_status=$?
  7241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7242. (exit $ac_status); }; } &&
  7243. { ac_try='test -s conftest.$ac_objext'
  7244. { (case "(($ac_try" in
  7245. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7246. *) ac_try_echo=$ac_try;;
  7247. esac
  7248. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7249. (eval "$ac_try") 2>&5
  7250. ac_status=$?
  7251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7252. (exit $ac_status); }; }; then
  7253. ac_lo=0 ac_mid=0
  7254. while :; do
  7255. cat >conftest.$ac_ext <<_ACEOF
  7256. /* confdefs.h. */
  7257. _ACEOF
  7258. cat confdefs.h >>conftest.$ac_ext
  7259. cat >>conftest.$ac_ext <<_ACEOF
  7260. /* end confdefs.h. */
  7261. $ac_includes_default
  7262. typedef long ac__type_sizeof_;
  7263. int
  7264. main ()
  7265. {
  7266. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  7267. test_array [0] = 0
  7268. ;
  7269. return 0;
  7270. }
  7271. _ACEOF
  7272. rm -f conftest.$ac_objext
  7273. if { (ac_try="$ac_compile"
  7274. case "(($ac_try" in
  7275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7276. *) ac_try_echo=$ac_try;;
  7277. esac
  7278. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7279. (eval "$ac_compile") 2>conftest.er1
  7280. ac_status=$?
  7281. grep -v '^ *+' conftest.er1 >conftest.err
  7282. rm -f conftest.er1
  7283. cat conftest.err >&5
  7284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7285. (exit $ac_status); } &&
  7286. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7287. { (case "(($ac_try" in
  7288. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7289. *) ac_try_echo=$ac_try;;
  7290. esac
  7291. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7292. (eval "$ac_try") 2>&5
  7293. ac_status=$?
  7294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7295. (exit $ac_status); }; } &&
  7296. { ac_try='test -s conftest.$ac_objext'
  7297. { (case "(($ac_try" in
  7298. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7299. *) ac_try_echo=$ac_try;;
  7300. esac
  7301. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7302. (eval "$ac_try") 2>&5
  7303. ac_status=$?
  7304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7305. (exit $ac_status); }; }; then
  7306. ac_hi=$ac_mid; break
  7307. else
  7308. echo "$as_me: failed program was:" >&5
  7309. sed 's/^/| /' conftest.$ac_ext >&5
  7310. ac_lo=`expr $ac_mid + 1`
  7311. if test $ac_lo -le $ac_mid; then
  7312. ac_lo= ac_hi=
  7313. break
  7314. fi
  7315. ac_mid=`expr 2 '*' $ac_mid + 1`
  7316. fi
  7317. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7318. done
  7319. else
  7320. echo "$as_me: failed program was:" >&5
  7321. sed 's/^/| /' conftest.$ac_ext >&5
  7322. cat >conftest.$ac_ext <<_ACEOF
  7323. /* confdefs.h. */
  7324. _ACEOF
  7325. cat confdefs.h >>conftest.$ac_ext
  7326. cat >>conftest.$ac_ext <<_ACEOF
  7327. /* end confdefs.h. */
  7328. $ac_includes_default
  7329. typedef long ac__type_sizeof_;
  7330. int
  7331. main ()
  7332. {
  7333. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  7334. test_array [0] = 0
  7335. ;
  7336. return 0;
  7337. }
  7338. _ACEOF
  7339. rm -f conftest.$ac_objext
  7340. if { (ac_try="$ac_compile"
  7341. case "(($ac_try" in
  7342. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7343. *) ac_try_echo=$ac_try;;
  7344. esac
  7345. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7346. (eval "$ac_compile") 2>conftest.er1
  7347. ac_status=$?
  7348. grep -v '^ *+' conftest.er1 >conftest.err
  7349. rm -f conftest.er1
  7350. cat conftest.err >&5
  7351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7352. (exit $ac_status); } &&
  7353. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7354. { (case "(($ac_try" in
  7355. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7356. *) ac_try_echo=$ac_try;;
  7357. esac
  7358. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7359. (eval "$ac_try") 2>&5
  7360. ac_status=$?
  7361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7362. (exit $ac_status); }; } &&
  7363. { ac_try='test -s conftest.$ac_objext'
  7364. { (case "(($ac_try" in
  7365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7366. *) ac_try_echo=$ac_try;;
  7367. esac
  7368. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7369. (eval "$ac_try") 2>&5
  7370. ac_status=$?
  7371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7372. (exit $ac_status); }; }; then
  7373. ac_hi=-1 ac_mid=-1
  7374. while :; do
  7375. cat >conftest.$ac_ext <<_ACEOF
  7376. /* confdefs.h. */
  7377. _ACEOF
  7378. cat confdefs.h >>conftest.$ac_ext
  7379. cat >>conftest.$ac_ext <<_ACEOF
  7380. /* end confdefs.h. */
  7381. $ac_includes_default
  7382. typedef long ac__type_sizeof_;
  7383. int
  7384. main ()
  7385. {
  7386. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  7387. test_array [0] = 0
  7388. ;
  7389. return 0;
  7390. }
  7391. _ACEOF
  7392. rm -f conftest.$ac_objext
  7393. if { (ac_try="$ac_compile"
  7394. case "(($ac_try" in
  7395. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7396. *) ac_try_echo=$ac_try;;
  7397. esac
  7398. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7399. (eval "$ac_compile") 2>conftest.er1
  7400. ac_status=$?
  7401. grep -v '^ *+' conftest.er1 >conftest.err
  7402. rm -f conftest.er1
  7403. cat conftest.err >&5
  7404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7405. (exit $ac_status); } &&
  7406. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7407. { (case "(($ac_try" in
  7408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7409. *) ac_try_echo=$ac_try;;
  7410. esac
  7411. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7412. (eval "$ac_try") 2>&5
  7413. ac_status=$?
  7414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7415. (exit $ac_status); }; } &&
  7416. { ac_try='test -s conftest.$ac_objext'
  7417. { (case "(($ac_try" in
  7418. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7419. *) ac_try_echo=$ac_try;;
  7420. esac
  7421. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7422. (eval "$ac_try") 2>&5
  7423. ac_status=$?
  7424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7425. (exit $ac_status); }; }; then
  7426. ac_lo=$ac_mid; break
  7427. else
  7428. echo "$as_me: failed program was:" >&5
  7429. sed 's/^/| /' conftest.$ac_ext >&5
  7430. ac_hi=`expr '(' $ac_mid ')' - 1`
  7431. if test $ac_mid -le $ac_hi; then
  7432. ac_lo= ac_hi=
  7433. break
  7434. fi
  7435. ac_mid=`expr 2 '*' $ac_mid`
  7436. fi
  7437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7438. done
  7439. else
  7440. echo "$as_me: failed program was:" >&5
  7441. sed 's/^/| /' conftest.$ac_ext >&5
  7442. ac_lo= ac_hi=
  7443. fi
  7444. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7445. fi
  7446. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7447. # Binary search between lo and hi bounds.
  7448. while test "x$ac_lo" != "x$ac_hi"; do
  7449. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7450. cat >conftest.$ac_ext <<_ACEOF
  7451. /* confdefs.h. */
  7452. _ACEOF
  7453. cat confdefs.h >>conftest.$ac_ext
  7454. cat >>conftest.$ac_ext <<_ACEOF
  7455. /* end confdefs.h. */
  7456. $ac_includes_default
  7457. typedef long ac__type_sizeof_;
  7458. int
  7459. main ()
  7460. {
  7461. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  7462. test_array [0] = 0
  7463. ;
  7464. return 0;
  7465. }
  7466. _ACEOF
  7467. rm -f conftest.$ac_objext
  7468. if { (ac_try="$ac_compile"
  7469. case "(($ac_try" in
  7470. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7471. *) ac_try_echo=$ac_try;;
  7472. esac
  7473. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7474. (eval "$ac_compile") 2>conftest.er1
  7475. ac_status=$?
  7476. grep -v '^ *+' conftest.er1 >conftest.err
  7477. rm -f conftest.er1
  7478. cat conftest.err >&5
  7479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7480. (exit $ac_status); } &&
  7481. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7482. { (case "(($ac_try" in
  7483. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7484. *) ac_try_echo=$ac_try;;
  7485. esac
  7486. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7487. (eval "$ac_try") 2>&5
  7488. ac_status=$?
  7489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7490. (exit $ac_status); }; } &&
  7491. { ac_try='test -s conftest.$ac_objext'
  7492. { (case "(($ac_try" in
  7493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7494. *) ac_try_echo=$ac_try;;
  7495. esac
  7496. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7497. (eval "$ac_try") 2>&5
  7498. ac_status=$?
  7499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7500. (exit $ac_status); }; }; then
  7501. ac_hi=$ac_mid
  7502. else
  7503. echo "$as_me: failed program was:" >&5
  7504. sed 's/^/| /' conftest.$ac_ext >&5
  7505. ac_lo=`expr '(' $ac_mid ')' + 1`
  7506. fi
  7507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7508. done
  7509. case $ac_lo in
  7510. ?*) ac_cv_sizeof_long=$ac_lo;;
  7511. '') if test "$ac_cv_type_long" = yes; then
  7512. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  7513. See \`config.log' for more details." >&5
  7514. echo "$as_me: error: cannot compute sizeof (long)
  7515. See \`config.log' for more details." >&2;}
  7516. { (exit 77); exit 77; }; }
  7517. else
  7518. ac_cv_sizeof_long=0
  7519. fi ;;
  7520. esac
  7521. else
  7522. cat >conftest.$ac_ext <<_ACEOF
  7523. /* confdefs.h. */
  7524. _ACEOF
  7525. cat confdefs.h >>conftest.$ac_ext
  7526. cat >>conftest.$ac_ext <<_ACEOF
  7527. /* end confdefs.h. */
  7528. $ac_includes_default
  7529. typedef long ac__type_sizeof_;
  7530. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  7531. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  7532. #include <stdio.h>
  7533. #include <stdlib.h>
  7534. int
  7535. main ()
  7536. {
  7537. FILE *f = fopen ("conftest.val", "w");
  7538. if (! f)
  7539. return 1;
  7540. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  7541. {
  7542. long int i = longval ();
  7543. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  7544. return 1;
  7545. fprintf (f, "%ld\n", i);
  7546. }
  7547. else
  7548. {
  7549. unsigned long int i = ulongval ();
  7550. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  7551. return 1;
  7552. fprintf (f, "%lu\n", i);
  7553. }
  7554. return ferror (f) || fclose (f) != 0;
  7555. ;
  7556. return 0;
  7557. }
  7558. _ACEOF
  7559. rm -f conftest$ac_exeext
  7560. if { (ac_try="$ac_link"
  7561. case "(($ac_try" in
  7562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7563. *) ac_try_echo=$ac_try;;
  7564. esac
  7565. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7566. (eval "$ac_link") 2>&5
  7567. ac_status=$?
  7568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7569. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7570. { (case "(($ac_try" in
  7571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7572. *) ac_try_echo=$ac_try;;
  7573. esac
  7574. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7575. (eval "$ac_try") 2>&5
  7576. ac_status=$?
  7577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7578. (exit $ac_status); }; }; then
  7579. ac_cv_sizeof_long=`cat conftest.val`
  7580. else
  7581. echo "$as_me: program exited with status $ac_status" >&5
  7582. echo "$as_me: failed program was:" >&5
  7583. sed 's/^/| /' conftest.$ac_ext >&5
  7584. ( exit $ac_status )
  7585. if test "$ac_cv_type_long" = yes; then
  7586. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  7587. See \`config.log' for more details." >&5
  7588. echo "$as_me: error: cannot compute sizeof (long)
  7589. See \`config.log' for more details." >&2;}
  7590. { (exit 77); exit 77; }; }
  7591. else
  7592. ac_cv_sizeof_long=0
  7593. fi
  7594. fi
  7595. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7596. fi
  7597. rm -f conftest.val
  7598. fi
  7599. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  7600. echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
  7601. cat >>confdefs.h <<_ACEOF
  7602. #define SIZEOF_LONG $ac_cv_sizeof_long
  7603. _ACEOF
  7604. { echo "$as_me:$LINENO: checking for long long" >&5
  7605. echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
  7606. if test "${ac_cv_type_long_long+set}" = set; then
  7607. echo $ECHO_N "(cached) $ECHO_C" >&6
  7608. else
  7609. cat >conftest.$ac_ext <<_ACEOF
  7610. /* confdefs.h. */
  7611. _ACEOF
  7612. cat confdefs.h >>conftest.$ac_ext
  7613. cat >>conftest.$ac_ext <<_ACEOF
  7614. /* end confdefs.h. */
  7615. $ac_includes_default
  7616. typedef long long ac__type_new_;
  7617. int
  7618. main ()
  7619. {
  7620. if ((ac__type_new_ *) 0)
  7621. return 0;
  7622. if (sizeof (ac__type_new_))
  7623. return 0;
  7624. ;
  7625. return 0;
  7626. }
  7627. _ACEOF
  7628. rm -f conftest.$ac_objext
  7629. if { (ac_try="$ac_compile"
  7630. case "(($ac_try" in
  7631. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7632. *) ac_try_echo=$ac_try;;
  7633. esac
  7634. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7635. (eval "$ac_compile") 2>conftest.er1
  7636. ac_status=$?
  7637. grep -v '^ *+' conftest.er1 >conftest.err
  7638. rm -f conftest.er1
  7639. cat conftest.err >&5
  7640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7641. (exit $ac_status); } &&
  7642. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7643. { (case "(($ac_try" in
  7644. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7645. *) ac_try_echo=$ac_try;;
  7646. esac
  7647. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7648. (eval "$ac_try") 2>&5
  7649. ac_status=$?
  7650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7651. (exit $ac_status); }; } &&
  7652. { ac_try='test -s conftest.$ac_objext'
  7653. { (case "(($ac_try" in
  7654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7655. *) ac_try_echo=$ac_try;;
  7656. esac
  7657. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7658. (eval "$ac_try") 2>&5
  7659. ac_status=$?
  7660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7661. (exit $ac_status); }; }; then
  7662. ac_cv_type_long_long=yes
  7663. else
  7664. echo "$as_me: failed program was:" >&5
  7665. sed 's/^/| /' conftest.$ac_ext >&5
  7666. ac_cv_type_long_long=no
  7667. fi
  7668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7669. fi
  7670. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  7671. echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
  7672. # The cast to long int works around a bug in the HP C Compiler
  7673. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7674. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7675. # This bug is HP SR number 8606223364.
  7676. { echo "$as_me:$LINENO: checking size of long long" >&5
  7677. echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
  7678. if test "${ac_cv_sizeof_long_long+set}" = set; then
  7679. echo $ECHO_N "(cached) $ECHO_C" >&6
  7680. else
  7681. if test "$cross_compiling" = yes; then
  7682. # Depending upon the size, compute the lo and hi bounds.
  7683. cat >conftest.$ac_ext <<_ACEOF
  7684. /* confdefs.h. */
  7685. _ACEOF
  7686. cat confdefs.h >>conftest.$ac_ext
  7687. cat >>conftest.$ac_ext <<_ACEOF
  7688. /* end confdefs.h. */
  7689. $ac_includes_default
  7690. typedef long long ac__type_sizeof_;
  7691. int
  7692. main ()
  7693. {
  7694. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  7695. test_array [0] = 0
  7696. ;
  7697. return 0;
  7698. }
  7699. _ACEOF
  7700. rm -f conftest.$ac_objext
  7701. if { (ac_try="$ac_compile"
  7702. case "(($ac_try" in
  7703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7704. *) ac_try_echo=$ac_try;;
  7705. esac
  7706. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7707. (eval "$ac_compile") 2>conftest.er1
  7708. ac_status=$?
  7709. grep -v '^ *+' conftest.er1 >conftest.err
  7710. rm -f conftest.er1
  7711. cat conftest.err >&5
  7712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7713. (exit $ac_status); } &&
  7714. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7715. { (case "(($ac_try" in
  7716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7717. *) ac_try_echo=$ac_try;;
  7718. esac
  7719. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7720. (eval "$ac_try") 2>&5
  7721. ac_status=$?
  7722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7723. (exit $ac_status); }; } &&
  7724. { ac_try='test -s conftest.$ac_objext'
  7725. { (case "(($ac_try" in
  7726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7727. *) ac_try_echo=$ac_try;;
  7728. esac
  7729. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7730. (eval "$ac_try") 2>&5
  7731. ac_status=$?
  7732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7733. (exit $ac_status); }; }; then
  7734. ac_lo=0 ac_mid=0
  7735. while :; do
  7736. cat >conftest.$ac_ext <<_ACEOF
  7737. /* confdefs.h. */
  7738. _ACEOF
  7739. cat confdefs.h >>conftest.$ac_ext
  7740. cat >>conftest.$ac_ext <<_ACEOF
  7741. /* end confdefs.h. */
  7742. $ac_includes_default
  7743. typedef long long ac__type_sizeof_;
  7744. int
  7745. main ()
  7746. {
  7747. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  7748. test_array [0] = 0
  7749. ;
  7750. return 0;
  7751. }
  7752. _ACEOF
  7753. rm -f conftest.$ac_objext
  7754. if { (ac_try="$ac_compile"
  7755. case "(($ac_try" in
  7756. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7757. *) ac_try_echo=$ac_try;;
  7758. esac
  7759. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7760. (eval "$ac_compile") 2>conftest.er1
  7761. ac_status=$?
  7762. grep -v '^ *+' conftest.er1 >conftest.err
  7763. rm -f conftest.er1
  7764. cat conftest.err >&5
  7765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7766. (exit $ac_status); } &&
  7767. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7768. { (case "(($ac_try" in
  7769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7770. *) ac_try_echo=$ac_try;;
  7771. esac
  7772. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7773. (eval "$ac_try") 2>&5
  7774. ac_status=$?
  7775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7776. (exit $ac_status); }; } &&
  7777. { ac_try='test -s conftest.$ac_objext'
  7778. { (case "(($ac_try" in
  7779. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7780. *) ac_try_echo=$ac_try;;
  7781. esac
  7782. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7783. (eval "$ac_try") 2>&5
  7784. ac_status=$?
  7785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7786. (exit $ac_status); }; }; then
  7787. ac_hi=$ac_mid; break
  7788. else
  7789. echo "$as_me: failed program was:" >&5
  7790. sed 's/^/| /' conftest.$ac_ext >&5
  7791. ac_lo=`expr $ac_mid + 1`
  7792. if test $ac_lo -le $ac_mid; then
  7793. ac_lo= ac_hi=
  7794. break
  7795. fi
  7796. ac_mid=`expr 2 '*' $ac_mid + 1`
  7797. fi
  7798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7799. done
  7800. else
  7801. echo "$as_me: failed program was:" >&5
  7802. sed 's/^/| /' conftest.$ac_ext >&5
  7803. cat >conftest.$ac_ext <<_ACEOF
  7804. /* confdefs.h. */
  7805. _ACEOF
  7806. cat confdefs.h >>conftest.$ac_ext
  7807. cat >>conftest.$ac_ext <<_ACEOF
  7808. /* end confdefs.h. */
  7809. $ac_includes_default
  7810. typedef long long ac__type_sizeof_;
  7811. int
  7812. main ()
  7813. {
  7814. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  7815. test_array [0] = 0
  7816. ;
  7817. return 0;
  7818. }
  7819. _ACEOF
  7820. rm -f conftest.$ac_objext
  7821. if { (ac_try="$ac_compile"
  7822. case "(($ac_try" in
  7823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7824. *) ac_try_echo=$ac_try;;
  7825. esac
  7826. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7827. (eval "$ac_compile") 2>conftest.er1
  7828. ac_status=$?
  7829. grep -v '^ *+' conftest.er1 >conftest.err
  7830. rm -f conftest.er1
  7831. cat conftest.err >&5
  7832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7833. (exit $ac_status); } &&
  7834. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7835. { (case "(($ac_try" in
  7836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7837. *) ac_try_echo=$ac_try;;
  7838. esac
  7839. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7840. (eval "$ac_try") 2>&5
  7841. ac_status=$?
  7842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7843. (exit $ac_status); }; } &&
  7844. { ac_try='test -s conftest.$ac_objext'
  7845. { (case "(($ac_try" in
  7846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7847. *) ac_try_echo=$ac_try;;
  7848. esac
  7849. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7850. (eval "$ac_try") 2>&5
  7851. ac_status=$?
  7852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7853. (exit $ac_status); }; }; then
  7854. ac_hi=-1 ac_mid=-1
  7855. while :; do
  7856. cat >conftest.$ac_ext <<_ACEOF
  7857. /* confdefs.h. */
  7858. _ACEOF
  7859. cat confdefs.h >>conftest.$ac_ext
  7860. cat >>conftest.$ac_ext <<_ACEOF
  7861. /* end confdefs.h. */
  7862. $ac_includes_default
  7863. typedef long long ac__type_sizeof_;
  7864. int
  7865. main ()
  7866. {
  7867. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  7868. test_array [0] = 0
  7869. ;
  7870. return 0;
  7871. }
  7872. _ACEOF
  7873. rm -f conftest.$ac_objext
  7874. if { (ac_try="$ac_compile"
  7875. case "(($ac_try" in
  7876. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7877. *) ac_try_echo=$ac_try;;
  7878. esac
  7879. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7880. (eval "$ac_compile") 2>conftest.er1
  7881. ac_status=$?
  7882. grep -v '^ *+' conftest.er1 >conftest.err
  7883. rm -f conftest.er1
  7884. cat conftest.err >&5
  7885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7886. (exit $ac_status); } &&
  7887. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7888. { (case "(($ac_try" in
  7889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7890. *) ac_try_echo=$ac_try;;
  7891. esac
  7892. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7893. (eval "$ac_try") 2>&5
  7894. ac_status=$?
  7895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7896. (exit $ac_status); }; } &&
  7897. { ac_try='test -s conftest.$ac_objext'
  7898. { (case "(($ac_try" in
  7899. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7900. *) ac_try_echo=$ac_try;;
  7901. esac
  7902. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7903. (eval "$ac_try") 2>&5
  7904. ac_status=$?
  7905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7906. (exit $ac_status); }; }; then
  7907. ac_lo=$ac_mid; break
  7908. else
  7909. echo "$as_me: failed program was:" >&5
  7910. sed 's/^/| /' conftest.$ac_ext >&5
  7911. ac_hi=`expr '(' $ac_mid ')' - 1`
  7912. if test $ac_mid -le $ac_hi; then
  7913. ac_lo= ac_hi=
  7914. break
  7915. fi
  7916. ac_mid=`expr 2 '*' $ac_mid`
  7917. fi
  7918. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7919. done
  7920. else
  7921. echo "$as_me: failed program was:" >&5
  7922. sed 's/^/| /' conftest.$ac_ext >&5
  7923. ac_lo= ac_hi=
  7924. fi
  7925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7926. fi
  7927. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7928. # Binary search between lo and hi bounds.
  7929. while test "x$ac_lo" != "x$ac_hi"; do
  7930. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7931. cat >conftest.$ac_ext <<_ACEOF
  7932. /* confdefs.h. */
  7933. _ACEOF
  7934. cat confdefs.h >>conftest.$ac_ext
  7935. cat >>conftest.$ac_ext <<_ACEOF
  7936. /* end confdefs.h. */
  7937. $ac_includes_default
  7938. typedef long long ac__type_sizeof_;
  7939. int
  7940. main ()
  7941. {
  7942. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  7943. test_array [0] = 0
  7944. ;
  7945. return 0;
  7946. }
  7947. _ACEOF
  7948. rm -f conftest.$ac_objext
  7949. if { (ac_try="$ac_compile"
  7950. case "(($ac_try" in
  7951. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7952. *) ac_try_echo=$ac_try;;
  7953. esac
  7954. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7955. (eval "$ac_compile") 2>conftest.er1
  7956. ac_status=$?
  7957. grep -v '^ *+' conftest.er1 >conftest.err
  7958. rm -f conftest.er1
  7959. cat conftest.err >&5
  7960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7961. (exit $ac_status); } &&
  7962. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7963. { (case "(($ac_try" in
  7964. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7965. *) ac_try_echo=$ac_try;;
  7966. esac
  7967. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7968. (eval "$ac_try") 2>&5
  7969. ac_status=$?
  7970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7971. (exit $ac_status); }; } &&
  7972. { ac_try='test -s conftest.$ac_objext'
  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_try") 2>&5
  7979. ac_status=$?
  7980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7981. (exit $ac_status); }; }; then
  7982. ac_hi=$ac_mid
  7983. else
  7984. echo "$as_me: failed program was:" >&5
  7985. sed 's/^/| /' conftest.$ac_ext >&5
  7986. ac_lo=`expr '(' $ac_mid ')' + 1`
  7987. fi
  7988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7989. done
  7990. case $ac_lo in
  7991. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  7992. '') if test "$ac_cv_type_long_long" = yes; then
  7993. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  7994. See \`config.log' for more details." >&5
  7995. echo "$as_me: error: cannot compute sizeof (long long)
  7996. See \`config.log' for more details." >&2;}
  7997. { (exit 77); exit 77; }; }
  7998. else
  7999. ac_cv_sizeof_long_long=0
  8000. fi ;;
  8001. esac
  8002. else
  8003. cat >conftest.$ac_ext <<_ACEOF
  8004. /* confdefs.h. */
  8005. _ACEOF
  8006. cat confdefs.h >>conftest.$ac_ext
  8007. cat >>conftest.$ac_ext <<_ACEOF
  8008. /* end confdefs.h. */
  8009. $ac_includes_default
  8010. typedef long long ac__type_sizeof_;
  8011. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  8012. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  8013. #include <stdio.h>
  8014. #include <stdlib.h>
  8015. int
  8016. main ()
  8017. {
  8018. FILE *f = fopen ("conftest.val", "w");
  8019. if (! f)
  8020. return 1;
  8021. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  8022. {
  8023. long int i = longval ();
  8024. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  8025. return 1;
  8026. fprintf (f, "%ld\n", i);
  8027. }
  8028. else
  8029. {
  8030. unsigned long int i = ulongval ();
  8031. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  8032. return 1;
  8033. fprintf (f, "%lu\n", i);
  8034. }
  8035. return ferror (f) || fclose (f) != 0;
  8036. ;
  8037. return 0;
  8038. }
  8039. _ACEOF
  8040. rm -f conftest$ac_exeext
  8041. if { (ac_try="$ac_link"
  8042. case "(($ac_try" in
  8043. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8044. *) ac_try_echo=$ac_try;;
  8045. esac
  8046. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8047. (eval "$ac_link") 2>&5
  8048. ac_status=$?
  8049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8050. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8051. { (case "(($ac_try" in
  8052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8053. *) ac_try_echo=$ac_try;;
  8054. esac
  8055. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8056. (eval "$ac_try") 2>&5
  8057. ac_status=$?
  8058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8059. (exit $ac_status); }; }; then
  8060. ac_cv_sizeof_long_long=`cat conftest.val`
  8061. else
  8062. echo "$as_me: program exited with status $ac_status" >&5
  8063. echo "$as_me: failed program was:" >&5
  8064. sed 's/^/| /' conftest.$ac_ext >&5
  8065. ( exit $ac_status )
  8066. if test "$ac_cv_type_long_long" = yes; then
  8067. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  8068. See \`config.log' for more details." >&5
  8069. echo "$as_me: error: cannot compute sizeof (long long)
  8070. See \`config.log' for more details." >&2;}
  8071. { (exit 77); exit 77; }; }
  8072. else
  8073. ac_cv_sizeof_long_long=0
  8074. fi
  8075. fi
  8076. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8077. fi
  8078. rm -f conftest.val
  8079. fi
  8080. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  8081. echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
  8082. cat >>confdefs.h <<_ACEOF
  8083. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  8084. _ACEOF
  8085. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8086. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  8087. if test "${ac_cv_struct_tm+set}" = set; then
  8088. echo $ECHO_N "(cached) $ECHO_C" >&6
  8089. else
  8090. cat >conftest.$ac_ext <<_ACEOF
  8091. /* confdefs.h. */
  8092. _ACEOF
  8093. cat confdefs.h >>conftest.$ac_ext
  8094. cat >>conftest.$ac_ext <<_ACEOF
  8095. /* end confdefs.h. */
  8096. #include <sys/types.h>
  8097. #include <time.h>
  8098. int
  8099. main ()
  8100. {
  8101. struct tm *tp; tp->tm_sec;
  8102. ;
  8103. return 0;
  8104. }
  8105. _ACEOF
  8106. rm -f conftest.$ac_objext
  8107. if { (ac_try="$ac_compile"
  8108. case "(($ac_try" in
  8109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8110. *) ac_try_echo=$ac_try;;
  8111. esac
  8112. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8113. (eval "$ac_compile") 2>conftest.er1
  8114. ac_status=$?
  8115. grep -v '^ *+' conftest.er1 >conftest.err
  8116. rm -f conftest.er1
  8117. cat conftest.err >&5
  8118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8119. (exit $ac_status); } &&
  8120. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8121. { (case "(($ac_try" in
  8122. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8123. *) ac_try_echo=$ac_try;;
  8124. esac
  8125. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8126. (eval "$ac_try") 2>&5
  8127. ac_status=$?
  8128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8129. (exit $ac_status); }; } &&
  8130. { ac_try='test -s conftest.$ac_objext'
  8131. { (case "(($ac_try" in
  8132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8133. *) ac_try_echo=$ac_try;;
  8134. esac
  8135. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8136. (eval "$ac_try") 2>&5
  8137. ac_status=$?
  8138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8139. (exit $ac_status); }; }; then
  8140. ac_cv_struct_tm=time.h
  8141. else
  8142. echo "$as_me: failed program was:" >&5
  8143. sed 's/^/| /' conftest.$ac_ext >&5
  8144. ac_cv_struct_tm=sys/time.h
  8145. fi
  8146. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8147. fi
  8148. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8149. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  8150. if test $ac_cv_struct_tm = sys/time.h; then
  8151. cat >>confdefs.h <<\_ACEOF
  8152. #define TM_IN_SYS_TIME 1
  8153. _ACEOF
  8154. fi
  8155. { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  8156. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
  8157. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  8158. echo $ECHO_N "(cached) $ECHO_C" >&6
  8159. else
  8160. cat >conftest.$ac_ext <<_ACEOF
  8161. /* confdefs.h. */
  8162. _ACEOF
  8163. cat confdefs.h >>conftest.$ac_ext
  8164. cat >>conftest.$ac_ext <<_ACEOF
  8165. /* end confdefs.h. */
  8166. #include <sys/types.h>
  8167. #include <$ac_cv_struct_tm>
  8168. int
  8169. main ()
  8170. {
  8171. static struct tm ac_aggr;
  8172. if (ac_aggr.tm_zone)
  8173. return 0;
  8174. ;
  8175. return 0;
  8176. }
  8177. _ACEOF
  8178. rm -f conftest.$ac_objext
  8179. if { (ac_try="$ac_compile"
  8180. case "(($ac_try" in
  8181. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8182. *) ac_try_echo=$ac_try;;
  8183. esac
  8184. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8185. (eval "$ac_compile") 2>conftest.er1
  8186. ac_status=$?
  8187. grep -v '^ *+' conftest.er1 >conftest.err
  8188. rm -f conftest.er1
  8189. cat conftest.err >&5
  8190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8191. (exit $ac_status); } &&
  8192. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8193. { (case "(($ac_try" in
  8194. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8195. *) ac_try_echo=$ac_try;;
  8196. esac
  8197. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8198. (eval "$ac_try") 2>&5
  8199. ac_status=$?
  8200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8201. (exit $ac_status); }; } &&
  8202. { ac_try='test -s conftest.$ac_objext'
  8203. { (case "(($ac_try" in
  8204. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8205. *) ac_try_echo=$ac_try;;
  8206. esac
  8207. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8208. (eval "$ac_try") 2>&5
  8209. ac_status=$?
  8210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8211. (exit $ac_status); }; }; then
  8212. ac_cv_member_struct_tm_tm_zone=yes
  8213. else
  8214. echo "$as_me: failed program was:" >&5
  8215. sed 's/^/| /' conftest.$ac_ext >&5
  8216. cat >conftest.$ac_ext <<_ACEOF
  8217. /* confdefs.h. */
  8218. _ACEOF
  8219. cat confdefs.h >>conftest.$ac_ext
  8220. cat >>conftest.$ac_ext <<_ACEOF
  8221. /* end confdefs.h. */
  8222. #include <sys/types.h>
  8223. #include <$ac_cv_struct_tm>
  8224. int
  8225. main ()
  8226. {
  8227. static struct tm ac_aggr;
  8228. if (sizeof ac_aggr.tm_zone)
  8229. return 0;
  8230. ;
  8231. return 0;
  8232. }
  8233. _ACEOF
  8234. rm -f conftest.$ac_objext
  8235. if { (ac_try="$ac_compile"
  8236. case "(($ac_try" in
  8237. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8238. *) ac_try_echo=$ac_try;;
  8239. esac
  8240. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8241. (eval "$ac_compile") 2>conftest.er1
  8242. ac_status=$?
  8243. grep -v '^ *+' conftest.er1 >conftest.err
  8244. rm -f conftest.er1
  8245. cat conftest.err >&5
  8246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8247. (exit $ac_status); } &&
  8248. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8249. { (case "(($ac_try" in
  8250. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8251. *) ac_try_echo=$ac_try;;
  8252. esac
  8253. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8254. (eval "$ac_try") 2>&5
  8255. ac_status=$?
  8256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8257. (exit $ac_status); }; } &&
  8258. { ac_try='test -s conftest.$ac_objext'
  8259. { (case "(($ac_try" in
  8260. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8261. *) ac_try_echo=$ac_try;;
  8262. esac
  8263. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8264. (eval "$ac_try") 2>&5
  8265. ac_status=$?
  8266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8267. (exit $ac_status); }; }; then
  8268. ac_cv_member_struct_tm_tm_zone=yes
  8269. else
  8270. echo "$as_me: failed program was:" >&5
  8271. sed 's/^/| /' conftest.$ac_ext >&5
  8272. ac_cv_member_struct_tm_tm_zone=no
  8273. fi
  8274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8275. fi
  8276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8277. fi
  8278. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  8279. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
  8280. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  8281. cat >>confdefs.h <<_ACEOF
  8282. #define HAVE_STRUCT_TM_TM_ZONE 1
  8283. _ACEOF
  8284. fi
  8285. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  8286. cat >>confdefs.h <<\_ACEOF
  8287. #define HAVE_TM_ZONE 1
  8288. _ACEOF
  8289. else
  8290. { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
  8291. echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
  8292. if test "${ac_cv_have_decl_tzname+set}" = set; then
  8293. echo $ECHO_N "(cached) $ECHO_C" >&6
  8294. else
  8295. cat >conftest.$ac_ext <<_ACEOF
  8296. /* confdefs.h. */
  8297. _ACEOF
  8298. cat confdefs.h >>conftest.$ac_ext
  8299. cat >>conftest.$ac_ext <<_ACEOF
  8300. /* end confdefs.h. */
  8301. #include <time.h>
  8302. int
  8303. main ()
  8304. {
  8305. #ifndef tzname
  8306. char *p = (char *) tzname;
  8307. return !p;
  8308. #endif
  8309. ;
  8310. return 0;
  8311. }
  8312. _ACEOF
  8313. rm -f conftest.$ac_objext
  8314. if { (ac_try="$ac_compile"
  8315. case "(($ac_try" in
  8316. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8317. *) ac_try_echo=$ac_try;;
  8318. esac
  8319. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8320. (eval "$ac_compile") 2>conftest.er1
  8321. ac_status=$?
  8322. grep -v '^ *+' conftest.er1 >conftest.err
  8323. rm -f conftest.er1
  8324. cat conftest.err >&5
  8325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8326. (exit $ac_status); } &&
  8327. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8328. { (case "(($ac_try" in
  8329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8330. *) ac_try_echo=$ac_try;;
  8331. esac
  8332. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8333. (eval "$ac_try") 2>&5
  8334. ac_status=$?
  8335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8336. (exit $ac_status); }; } &&
  8337. { ac_try='test -s conftest.$ac_objext'
  8338. { (case "(($ac_try" in
  8339. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8340. *) ac_try_echo=$ac_try;;
  8341. esac
  8342. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8343. (eval "$ac_try") 2>&5
  8344. ac_status=$?
  8345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8346. (exit $ac_status); }; }; then
  8347. ac_cv_have_decl_tzname=yes
  8348. else
  8349. echo "$as_me: failed program was:" >&5
  8350. sed 's/^/| /' conftest.$ac_ext >&5
  8351. ac_cv_have_decl_tzname=no
  8352. fi
  8353. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8354. fi
  8355. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
  8356. echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
  8357. if test $ac_cv_have_decl_tzname = yes; then
  8358. cat >>confdefs.h <<_ACEOF
  8359. #define HAVE_DECL_TZNAME 1
  8360. _ACEOF
  8361. else
  8362. cat >>confdefs.h <<_ACEOF
  8363. #define HAVE_DECL_TZNAME 0
  8364. _ACEOF
  8365. fi
  8366. { echo "$as_me:$LINENO: checking for tzname" >&5
  8367. echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
  8368. if test "${ac_cv_var_tzname+set}" = set; then
  8369. echo $ECHO_N "(cached) $ECHO_C" >&6
  8370. else
  8371. cat >conftest.$ac_ext <<_ACEOF
  8372. /* confdefs.h. */
  8373. _ACEOF
  8374. cat confdefs.h >>conftest.$ac_ext
  8375. cat >>conftest.$ac_ext <<_ACEOF
  8376. /* end confdefs.h. */
  8377. #include <time.h>
  8378. #if !HAVE_DECL_TZNAME
  8379. extern char *tzname[];
  8380. #endif
  8381. int
  8382. main ()
  8383. {
  8384. return tzname[0][0];
  8385. ;
  8386. return 0;
  8387. }
  8388. _ACEOF
  8389. rm -f conftest.$ac_objext conftest$ac_exeext
  8390. if { (ac_try="$ac_link"
  8391. case "(($ac_try" in
  8392. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8393. *) ac_try_echo=$ac_try;;
  8394. esac
  8395. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8396. (eval "$ac_link") 2>conftest.er1
  8397. ac_status=$?
  8398. grep -v '^ *+' conftest.er1 >conftest.err
  8399. rm -f conftest.er1
  8400. cat conftest.err >&5
  8401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8402. (exit $ac_status); } &&
  8403. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8404. { (case "(($ac_try" in
  8405. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8406. *) ac_try_echo=$ac_try;;
  8407. esac
  8408. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8409. (eval "$ac_try") 2>&5
  8410. ac_status=$?
  8411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8412. (exit $ac_status); }; } &&
  8413. { ac_try='test -s conftest$ac_exeext'
  8414. { (case "(($ac_try" in
  8415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8416. *) ac_try_echo=$ac_try;;
  8417. esac
  8418. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8419. (eval "$ac_try") 2>&5
  8420. ac_status=$?
  8421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8422. (exit $ac_status); }; }; then
  8423. ac_cv_var_tzname=yes
  8424. else
  8425. echo "$as_me: failed program was:" >&5
  8426. sed 's/^/| /' conftest.$ac_ext >&5
  8427. ac_cv_var_tzname=no
  8428. fi
  8429. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8430. conftest$ac_exeext conftest.$ac_ext
  8431. fi
  8432. { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  8433. echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
  8434. if test $ac_cv_var_tzname = yes; then
  8435. cat >>confdefs.h <<\_ACEOF
  8436. #define HAVE_TZNAME 1
  8437. _ACEOF
  8438. fi
  8439. fi
  8440. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8441. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  8442. if test "${ac_cv_struct_tm+set}" = set; then
  8443. echo $ECHO_N "(cached) $ECHO_C" >&6
  8444. else
  8445. cat >conftest.$ac_ext <<_ACEOF
  8446. /* confdefs.h. */
  8447. _ACEOF
  8448. cat confdefs.h >>conftest.$ac_ext
  8449. cat >>conftest.$ac_ext <<_ACEOF
  8450. /* end confdefs.h. */
  8451. #include <sys/types.h>
  8452. #include <time.h>
  8453. int
  8454. main ()
  8455. {
  8456. struct tm *tp; tp->tm_sec;
  8457. ;
  8458. return 0;
  8459. }
  8460. _ACEOF
  8461. rm -f conftest.$ac_objext
  8462. if { (ac_try="$ac_compile"
  8463. case "(($ac_try" in
  8464. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8465. *) ac_try_echo=$ac_try;;
  8466. esac
  8467. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8468. (eval "$ac_compile") 2>conftest.er1
  8469. ac_status=$?
  8470. grep -v '^ *+' conftest.er1 >conftest.err
  8471. rm -f conftest.er1
  8472. cat conftest.err >&5
  8473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8474. (exit $ac_status); } &&
  8475. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8476. { (case "(($ac_try" in
  8477. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8478. *) ac_try_echo=$ac_try;;
  8479. esac
  8480. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8481. (eval "$ac_try") 2>&5
  8482. ac_status=$?
  8483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8484. (exit $ac_status); }; } &&
  8485. { ac_try='test -s conftest.$ac_objext'
  8486. { (case "(($ac_try" in
  8487. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8488. *) ac_try_echo=$ac_try;;
  8489. esac
  8490. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8491. (eval "$ac_try") 2>&5
  8492. ac_status=$?
  8493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8494. (exit $ac_status); }; }; then
  8495. ac_cv_struct_tm=time.h
  8496. else
  8497. echo "$as_me: failed program was:" >&5
  8498. sed 's/^/| /' conftest.$ac_ext >&5
  8499. ac_cv_struct_tm=sys/time.h
  8500. fi
  8501. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8502. fi
  8503. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8504. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  8505. if test $ac_cv_struct_tm = sys/time.h; then
  8506. cat >>confdefs.h <<\_ACEOF
  8507. #define TM_IN_SYS_TIME 1
  8508. _ACEOF
  8509. fi
  8510. #checkpoint
  8511. cat >confcache <<\_ACEOF
  8512. # This file is a shell script that caches the results of configure
  8513. # tests run on this system so they can be shared between configure
  8514. # scripts and configure runs, see configure's option --config-cache.
  8515. # It is not useful on other systems. If it contains results you don't
  8516. # want to keep, you may remove or edit it.
  8517. #
  8518. # config.status only pays attention to the cache file if you give it
  8519. # the --recheck option to rerun configure.
  8520. #
  8521. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8522. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8523. # following values.
  8524. _ACEOF
  8525. # The following way of writing the cache mishandles newlines in values,
  8526. # but we know of no workaround that is simple, portable, and efficient.
  8527. # So, we kill variables containing newlines.
  8528. # Ultrix sh set writes to stderr and can't be redirected directly,
  8529. # and sets the high bit in the cache file unless we assign to the vars.
  8530. (
  8531. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8532. eval ac_val=\$$ac_var
  8533. case $ac_val in #(
  8534. *${as_nl}*)
  8535. case $ac_var in #(
  8536. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  8537. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  8538. esac
  8539. case $ac_var in #(
  8540. _ | IFS | as_nl) ;; #(
  8541. *) $as_unset $ac_var ;;
  8542. esac ;;
  8543. esac
  8544. done
  8545. (set) 2>&1 |
  8546. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8547. *${as_nl}ac_space=\ *)
  8548. # `set' does not quote correctly, so add quotes (double-quote
  8549. # substitution turns \\\\ into \\, and sed turns \\ into \).
  8550. sed -n \
  8551. "s/'/'\\\\''/g;
  8552. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8553. ;; #(
  8554. *)
  8555. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8556. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8557. ;;
  8558. esac |
  8559. sort
  8560. ) |
  8561. sed '
  8562. /^ac_cv_env_/b end
  8563. t clear
  8564. :clear
  8565. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8566. t end
  8567. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8568. :end' >>confcache
  8569. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8570. if test -w "$cache_file"; then
  8571. test "x$cache_file" != "x/dev/null" &&
  8572. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  8573. echo "$as_me: updating cache $cache_file" >&6;}
  8574. cat confcache >$cache_file
  8575. else
  8576. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  8577. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  8578. fi
  8579. fi
  8580. rm -f confcache
  8581. # Checks for library functions
  8582. for ac_header in vfork.h
  8583. do
  8584. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8585. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8586. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8587. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8588. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8589. echo $ECHO_N "(cached) $ECHO_C" >&6
  8590. fi
  8591. ac_res=`eval echo '${'$as_ac_Header'}'`
  8592. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8593. echo "${ECHO_T}$ac_res" >&6; }
  8594. else
  8595. # Is the header compilable?
  8596. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8597. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8598. cat >conftest.$ac_ext <<_ACEOF
  8599. /* confdefs.h. */
  8600. _ACEOF
  8601. cat confdefs.h >>conftest.$ac_ext
  8602. cat >>conftest.$ac_ext <<_ACEOF
  8603. /* end confdefs.h. */
  8604. $ac_includes_default
  8605. #include <$ac_header>
  8606. _ACEOF
  8607. rm -f conftest.$ac_objext
  8608. if { (ac_try="$ac_compile"
  8609. case "(($ac_try" in
  8610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8611. *) ac_try_echo=$ac_try;;
  8612. esac
  8613. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8614. (eval "$ac_compile") 2>conftest.er1
  8615. ac_status=$?
  8616. grep -v '^ *+' conftest.er1 >conftest.err
  8617. rm -f conftest.er1
  8618. cat conftest.err >&5
  8619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8620. (exit $ac_status); } &&
  8621. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8622. { (case "(($ac_try" in
  8623. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8624. *) ac_try_echo=$ac_try;;
  8625. esac
  8626. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8627. (eval "$ac_try") 2>&5
  8628. ac_status=$?
  8629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8630. (exit $ac_status); }; } &&
  8631. { ac_try='test -s conftest.$ac_objext'
  8632. { (case "(($ac_try" in
  8633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8634. *) ac_try_echo=$ac_try;;
  8635. esac
  8636. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8637. (eval "$ac_try") 2>&5
  8638. ac_status=$?
  8639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8640. (exit $ac_status); }; }; then
  8641. ac_header_compiler=yes
  8642. else
  8643. echo "$as_me: failed program was:" >&5
  8644. sed 's/^/| /' conftest.$ac_ext >&5
  8645. ac_header_compiler=no
  8646. fi
  8647. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8648. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8649. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8650. # Is the header present?
  8651. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8652. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8653. cat >conftest.$ac_ext <<_ACEOF
  8654. /* confdefs.h. */
  8655. _ACEOF
  8656. cat confdefs.h >>conftest.$ac_ext
  8657. cat >>conftest.$ac_ext <<_ACEOF
  8658. /* end confdefs.h. */
  8659. #include <$ac_header>
  8660. _ACEOF
  8661. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8662. case "(($ac_try" in
  8663. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8664. *) ac_try_echo=$ac_try;;
  8665. esac
  8666. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8667. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8668. ac_status=$?
  8669. grep -v '^ *+' conftest.er1 >conftest.err
  8670. rm -f conftest.er1
  8671. cat conftest.err >&5
  8672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8673. (exit $ac_status); } >/dev/null; then
  8674. if test -s conftest.err; then
  8675. ac_cpp_err=$ac_cxx_preproc_warn_flag
  8676. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  8677. else
  8678. ac_cpp_err=
  8679. fi
  8680. else
  8681. ac_cpp_err=yes
  8682. fi
  8683. if test -z "$ac_cpp_err"; then
  8684. ac_header_preproc=yes
  8685. else
  8686. echo "$as_me: failed program was:" >&5
  8687. sed 's/^/| /' conftest.$ac_ext >&5
  8688. ac_header_preproc=no
  8689. fi
  8690. rm -f conftest.err conftest.$ac_ext
  8691. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8692. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8693. # So? What about this header?
  8694. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8695. yes:no: )
  8696. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8697. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8698. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8699. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8700. ac_header_preproc=yes
  8701. ;;
  8702. no:yes:* )
  8703. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8704. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8705. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8706. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8707. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8708. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8709. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8710. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8711. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8712. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8713. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8714. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8715. ;;
  8716. esac
  8717. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8718. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8719. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8720. echo $ECHO_N "(cached) $ECHO_C" >&6
  8721. else
  8722. eval "$as_ac_Header=\$ac_header_preproc"
  8723. fi
  8724. ac_res=`eval echo '${'$as_ac_Header'}'`
  8725. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8726. echo "${ECHO_T}$ac_res" >&6; }
  8727. fi
  8728. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8729. cat >>confdefs.h <<_ACEOF
  8730. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8731. _ACEOF
  8732. fi
  8733. done
  8734. for ac_func in fork vfork
  8735. do
  8736. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8737. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  8738. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8739. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8740. echo $ECHO_N "(cached) $ECHO_C" >&6
  8741. else
  8742. cat >conftest.$ac_ext <<_ACEOF
  8743. /* confdefs.h. */
  8744. _ACEOF
  8745. cat confdefs.h >>conftest.$ac_ext
  8746. cat >>conftest.$ac_ext <<_ACEOF
  8747. /* end confdefs.h. */
  8748. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8749. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8750. #define $ac_func innocuous_$ac_func
  8751. /* System header to define __stub macros and hopefully few prototypes,
  8752. which can conflict with char $ac_func (); below.
  8753. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8754. <limits.h> exists even on freestanding compilers. */
  8755. #ifdef __STDC__
  8756. # include <limits.h>
  8757. #else
  8758. # include <assert.h>
  8759. #endif
  8760. #undef $ac_func
  8761. /* Override any GCC internal prototype to avoid an error.
  8762. Use char because int might match the return type of a GCC
  8763. builtin and then its argument prototype would still apply. */
  8764. #ifdef __cplusplus
  8765. extern "C"
  8766. #endif
  8767. char $ac_func ();
  8768. /* The GNU C library defines this for functions which it implements
  8769. to always fail with ENOSYS. Some functions are actually named
  8770. something starting with __ and the normal name is an alias. */
  8771. #if defined __stub_$ac_func || defined __stub___$ac_func
  8772. choke me
  8773. #endif
  8774. int
  8775. main ()
  8776. {
  8777. return $ac_func ();
  8778. ;
  8779. return 0;
  8780. }
  8781. _ACEOF
  8782. rm -f conftest.$ac_objext conftest$ac_exeext
  8783. if { (ac_try="$ac_link"
  8784. case "(($ac_try" in
  8785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8786. *) ac_try_echo=$ac_try;;
  8787. esac
  8788. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8789. (eval "$ac_link") 2>conftest.er1
  8790. ac_status=$?
  8791. grep -v '^ *+' conftest.er1 >conftest.err
  8792. rm -f conftest.er1
  8793. cat conftest.err >&5
  8794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8795. (exit $ac_status); } &&
  8796. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8797. { (case "(($ac_try" in
  8798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8799. *) ac_try_echo=$ac_try;;
  8800. esac
  8801. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8802. (eval "$ac_try") 2>&5
  8803. ac_status=$?
  8804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8805. (exit $ac_status); }; } &&
  8806. { ac_try='test -s conftest$ac_exeext'
  8807. { (case "(($ac_try" in
  8808. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8809. *) ac_try_echo=$ac_try;;
  8810. esac
  8811. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8812. (eval "$ac_try") 2>&5
  8813. ac_status=$?
  8814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8815. (exit $ac_status); }; }; then
  8816. eval "$as_ac_var=yes"
  8817. else
  8818. echo "$as_me: failed program was:" >&5
  8819. sed 's/^/| /' conftest.$ac_ext >&5
  8820. eval "$as_ac_var=no"
  8821. fi
  8822. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8823. conftest$ac_exeext conftest.$ac_ext
  8824. fi
  8825. ac_res=`eval echo '${'$as_ac_var'}'`
  8826. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8827. echo "${ECHO_T}$ac_res" >&6; }
  8828. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8829. cat >>confdefs.h <<_ACEOF
  8830. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8831. _ACEOF
  8832. fi
  8833. done
  8834. if test "x$ac_cv_func_fork" = xyes; then
  8835. { echo "$as_me:$LINENO: checking for working fork" >&5
  8836. echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
  8837. if test "${ac_cv_func_fork_works+set}" = set; then
  8838. echo $ECHO_N "(cached) $ECHO_C" >&6
  8839. else
  8840. if test "$cross_compiling" = yes; then
  8841. ac_cv_func_fork_works=cross
  8842. else
  8843. cat >conftest.$ac_ext <<_ACEOF
  8844. /* confdefs.h. */
  8845. _ACEOF
  8846. cat confdefs.h >>conftest.$ac_ext
  8847. cat >>conftest.$ac_ext <<_ACEOF
  8848. /* end confdefs.h. */
  8849. $ac_includes_default
  8850. int
  8851. main ()
  8852. {
  8853. /* By Ruediger Kuhlmann. */
  8854. return fork () < 0;
  8855. ;
  8856. return 0;
  8857. }
  8858. _ACEOF
  8859. rm -f conftest$ac_exeext
  8860. if { (ac_try="$ac_link"
  8861. case "(($ac_try" in
  8862. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8863. *) ac_try_echo=$ac_try;;
  8864. esac
  8865. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8866. (eval "$ac_link") 2>&5
  8867. ac_status=$?
  8868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8869. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8870. { (case "(($ac_try" in
  8871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8872. *) ac_try_echo=$ac_try;;
  8873. esac
  8874. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8875. (eval "$ac_try") 2>&5
  8876. ac_status=$?
  8877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8878. (exit $ac_status); }; }; then
  8879. ac_cv_func_fork_works=yes
  8880. else
  8881. echo "$as_me: program exited with status $ac_status" >&5
  8882. echo "$as_me: failed program was:" >&5
  8883. sed 's/^/| /' conftest.$ac_ext >&5
  8884. ( exit $ac_status )
  8885. ac_cv_func_fork_works=no
  8886. fi
  8887. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8888. fi
  8889. fi
  8890. { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  8891. echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
  8892. else
  8893. ac_cv_func_fork_works=$ac_cv_func_fork
  8894. fi
  8895. if test "x$ac_cv_func_fork_works" = xcross; then
  8896. case $host in
  8897. *-*-amigaos* | *-*-msdosdjgpp*)
  8898. # Override, as these systems have only a dummy fork() stub
  8899. ac_cv_func_fork_works=no
  8900. ;;
  8901. *)
  8902. ac_cv_func_fork_works=yes
  8903. ;;
  8904. esac
  8905. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  8906. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  8907. fi
  8908. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8909. if test "x$ac_cv_func_vfork" = xyes; then
  8910. { echo "$as_me:$LINENO: checking for working vfork" >&5
  8911. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
  8912. if test "${ac_cv_func_vfork_works+set}" = set; then
  8913. echo $ECHO_N "(cached) $ECHO_C" >&6
  8914. else
  8915. if test "$cross_compiling" = yes; then
  8916. ac_cv_func_vfork_works=cross
  8917. else
  8918. cat >conftest.$ac_ext <<_ACEOF
  8919. /* confdefs.h. */
  8920. _ACEOF
  8921. cat confdefs.h >>conftest.$ac_ext
  8922. cat >>conftest.$ac_ext <<_ACEOF
  8923. /* end confdefs.h. */
  8924. /* Thanks to Paul Eggert for this test. */
  8925. $ac_includes_default
  8926. #include <sys/wait.h>
  8927. #ifdef HAVE_VFORK_H
  8928. # include <vfork.h>
  8929. #endif
  8930. /* On some sparc systems, changes by the child to local and incoming
  8931. argument registers are propagated back to the parent. The compiler
  8932. is told about this with #include <vfork.h>, but some compilers
  8933. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  8934. static variable whose address is put into a register that is
  8935. clobbered by the vfork. */
  8936. static void
  8937. #ifdef __cplusplus
  8938. sparc_address_test (int arg)
  8939. # else
  8940. sparc_address_test (arg) int arg;
  8941. #endif
  8942. {
  8943. static pid_t child;
  8944. if (!child) {
  8945. child = vfork ();
  8946. if (child < 0) {
  8947. perror ("vfork");
  8948. _exit(2);
  8949. }
  8950. if (!child) {
  8951. arg = getpid();
  8952. write(-1, "", 0);
  8953. _exit (arg);
  8954. }
  8955. }
  8956. }
  8957. int
  8958. main ()
  8959. {
  8960. pid_t parent = getpid ();
  8961. pid_t child;
  8962. sparc_address_test (0);
  8963. child = vfork ();
  8964. if (child == 0) {
  8965. /* Here is another test for sparc vfork register problems. This
  8966. test uses lots of local variables, at least as many local
  8967. variables as main has allocated so far including compiler
  8968. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  8969. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  8970. reuse the register of parent for one of the local variables,
  8971. since it will think that parent can't possibly be used any more
  8972. in this routine. Assigning to the local variable will thus
  8973. munge parent in the parent process. */
  8974. pid_t
  8975. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  8976. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  8977. /* Convince the compiler that p..p7 are live; otherwise, it might
  8978. use the same hardware register for all 8 local variables. */
  8979. if (p != p1 || p != p2 || p != p3 || p != p4
  8980. || p != p5 || p != p6 || p != p7)
  8981. _exit(1);
  8982. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  8983. from child file descriptors. If the child closes a descriptor
  8984. before it execs or exits, this munges the parent's descriptor
  8985. as well. Test for this by closing stdout in the child. */
  8986. _exit(close(fileno(stdout)) != 0);
  8987. } else {
  8988. int status;
  8989. struct stat st;
  8990. while (wait(&status) != child)
  8991. ;
  8992. return (
  8993. /* Was there some problem with vforking? */
  8994. child < 0
  8995. /* Did the child fail? (This shouldn't happen.) */
  8996. || status
  8997. /* Did the vfork/compiler bug occur? */
  8998. || parent != getpid()
  8999. /* Did the file descriptor bug occur? */
  9000. || fstat(fileno(stdout), &st) != 0
  9001. );
  9002. }
  9003. }
  9004. _ACEOF
  9005. rm -f conftest$ac_exeext
  9006. if { (ac_try="$ac_link"
  9007. case "(($ac_try" in
  9008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9009. *) ac_try_echo=$ac_try;;
  9010. esac
  9011. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9012. (eval "$ac_link") 2>&5
  9013. ac_status=$?
  9014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9015. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9016. { (case "(($ac_try" in
  9017. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9018. *) ac_try_echo=$ac_try;;
  9019. esac
  9020. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9021. (eval "$ac_try") 2>&5
  9022. ac_status=$?
  9023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9024. (exit $ac_status); }; }; then
  9025. ac_cv_func_vfork_works=yes
  9026. else
  9027. echo "$as_me: program exited with status $ac_status" >&5
  9028. echo "$as_me: failed program was:" >&5
  9029. sed 's/^/| /' conftest.$ac_ext >&5
  9030. ( exit $ac_status )
  9031. ac_cv_func_vfork_works=no
  9032. fi
  9033. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9034. fi
  9035. fi
  9036. { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  9037. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
  9038. fi;
  9039. if test "x$ac_cv_func_fork_works" = xcross; then
  9040. ac_cv_func_vfork_works=$ac_cv_func_vfork
  9041. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  9042. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  9043. fi
  9044. if test "x$ac_cv_func_vfork_works" = xyes; then
  9045. cat >>confdefs.h <<\_ACEOF
  9046. #define HAVE_WORKING_VFORK 1
  9047. _ACEOF
  9048. else
  9049. cat >>confdefs.h <<\_ACEOF
  9050. #define vfork fork
  9051. _ACEOF
  9052. fi
  9053. if test "x$ac_cv_func_fork_works" = xyes; then
  9054. cat >>confdefs.h <<\_ACEOF
  9055. #define HAVE_WORKING_FORK 1
  9056. _ACEOF
  9057. fi
  9058. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  9059. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  9060. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  9061. echo $ECHO_N "(cached) $ECHO_C" >&6
  9062. else
  9063. rm -f conftest.sym conftest.file
  9064. echo >conftest.file
  9065. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  9066. if test "$cross_compiling" = yes; then
  9067. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9068. else
  9069. cat >conftest.$ac_ext <<_ACEOF
  9070. /* confdefs.h. */
  9071. _ACEOF
  9072. cat confdefs.h >>conftest.$ac_ext
  9073. cat >>conftest.$ac_ext <<_ACEOF
  9074. /* end confdefs.h. */
  9075. $ac_includes_default
  9076. int
  9077. main ()
  9078. {
  9079. struct stat sbuf;
  9080. /* Linux will dereference the symlink and fail.
  9081. That is better in the sense that it means we will not
  9082. have to compile and use the lstat wrapper. */
  9083. return lstat ("conftest.sym/", &sbuf) == 0;
  9084. ;
  9085. return 0;
  9086. }
  9087. _ACEOF
  9088. rm -f conftest$ac_exeext
  9089. if { (ac_try="$ac_link"
  9090. case "(($ac_try" in
  9091. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9092. *) ac_try_echo=$ac_try;;
  9093. esac
  9094. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9095. (eval "$ac_link") 2>&5
  9096. ac_status=$?
  9097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9098. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9099. { (case "(($ac_try" in
  9100. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9101. *) ac_try_echo=$ac_try;;
  9102. esac
  9103. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9104. (eval "$ac_try") 2>&5
  9105. ac_status=$?
  9106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9107. (exit $ac_status); }; }; then
  9108. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9109. else
  9110. echo "$as_me: program exited with status $ac_status" >&5
  9111. echo "$as_me: failed program was:" >&5
  9112. sed 's/^/| /' conftest.$ac_ext >&5
  9113. ( exit $ac_status )
  9114. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9115. fi
  9116. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9117. fi
  9118. else
  9119. # If the `ln -s' command failed, then we probably don't even
  9120. # have an lstat function.
  9121. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9122. fi
  9123. rm -f conftest.sym conftest.file
  9124. fi
  9125. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9126. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  9127. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9128. cat >>confdefs.h <<_ACEOF
  9129. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9130. _ACEOF
  9131. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9132. case " $LIBOBJS " in
  9133. *" lstat.$ac_objext "* ) ;;
  9134. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  9135. ;;
  9136. esac
  9137. fi
  9138. { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  9139. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
  9140. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  9141. echo $ECHO_N "(cached) $ECHO_C" >&6
  9142. else
  9143. if test "$cross_compiling" = yes; then
  9144. ac_cv_func_lstat_empty_string_bug=yes
  9145. else
  9146. cat >conftest.$ac_ext <<_ACEOF
  9147. /* confdefs.h. */
  9148. _ACEOF
  9149. cat confdefs.h >>conftest.$ac_ext
  9150. cat >>conftest.$ac_ext <<_ACEOF
  9151. /* end confdefs.h. */
  9152. $ac_includes_default
  9153. int
  9154. main ()
  9155. {
  9156. struct stat sbuf;
  9157. return lstat ("", &sbuf) == 0;
  9158. ;
  9159. return 0;
  9160. }
  9161. _ACEOF
  9162. rm -f conftest$ac_exeext
  9163. if { (ac_try="$ac_link"
  9164. case "(($ac_try" in
  9165. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9166. *) ac_try_echo=$ac_try;;
  9167. esac
  9168. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9169. (eval "$ac_link") 2>&5
  9170. ac_status=$?
  9171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9172. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9173. { (case "(($ac_try" in
  9174. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9175. *) ac_try_echo=$ac_try;;
  9176. esac
  9177. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9178. (eval "$ac_try") 2>&5
  9179. ac_status=$?
  9180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9181. (exit $ac_status); }; }; then
  9182. ac_cv_func_lstat_empty_string_bug=no
  9183. else
  9184. echo "$as_me: program exited with status $ac_status" >&5
  9185. echo "$as_me: failed program was:" >&5
  9186. sed 's/^/| /' conftest.$ac_ext >&5
  9187. ( exit $ac_status )
  9188. ac_cv_func_lstat_empty_string_bug=yes
  9189. fi
  9190. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9191. fi
  9192. fi
  9193. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  9194. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
  9195. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  9196. case " $LIBOBJS " in
  9197. *" lstat.$ac_objext "* ) ;;
  9198. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  9199. ;;
  9200. esac
  9201. cat >>confdefs.h <<_ACEOF
  9202. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  9203. _ACEOF
  9204. fi
  9205. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  9206. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  9207. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  9208. echo $ECHO_N "(cached) $ECHO_C" >&6
  9209. else
  9210. rm -f conftest.sym conftest.file
  9211. echo >conftest.file
  9212. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  9213. if test "$cross_compiling" = yes; then
  9214. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9215. else
  9216. cat >conftest.$ac_ext <<_ACEOF
  9217. /* confdefs.h. */
  9218. _ACEOF
  9219. cat confdefs.h >>conftest.$ac_ext
  9220. cat >>conftest.$ac_ext <<_ACEOF
  9221. /* end confdefs.h. */
  9222. $ac_includes_default
  9223. int
  9224. main ()
  9225. {
  9226. struct stat sbuf;
  9227. /* Linux will dereference the symlink and fail.
  9228. That is better in the sense that it means we will not
  9229. have to compile and use the lstat wrapper. */
  9230. return lstat ("conftest.sym/", &sbuf) == 0;
  9231. ;
  9232. return 0;
  9233. }
  9234. _ACEOF
  9235. rm -f conftest$ac_exeext
  9236. if { (ac_try="$ac_link"
  9237. case "(($ac_try" in
  9238. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9239. *) ac_try_echo=$ac_try;;
  9240. esac
  9241. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9242. (eval "$ac_link") 2>&5
  9243. ac_status=$?
  9244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9245. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9246. { (case "(($ac_try" in
  9247. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9248. *) ac_try_echo=$ac_try;;
  9249. esac
  9250. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9251. (eval "$ac_try") 2>&5
  9252. ac_status=$?
  9253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9254. (exit $ac_status); }; }; then
  9255. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9256. else
  9257. echo "$as_me: program exited with status $ac_status" >&5
  9258. echo "$as_me: failed program was:" >&5
  9259. sed 's/^/| /' conftest.$ac_ext >&5
  9260. ( exit $ac_status )
  9261. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9262. fi
  9263. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9264. fi
  9265. else
  9266. # If the `ln -s' command failed, then we probably don't even
  9267. # have an lstat function.
  9268. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9269. fi
  9270. rm -f conftest.sym conftest.file
  9271. fi
  9272. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9273. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  9274. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9275. cat >>confdefs.h <<_ACEOF
  9276. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9277. _ACEOF
  9278. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9279. case " $LIBOBJS " in
  9280. *" lstat.$ac_objext "* ) ;;
  9281. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  9282. ;;
  9283. esac
  9284. fi
  9285. for ac_header in stdlib.h
  9286. do
  9287. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9288. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9289. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9290. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9291. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9292. echo $ECHO_N "(cached) $ECHO_C" >&6
  9293. fi
  9294. ac_res=`eval echo '${'$as_ac_Header'}'`
  9295. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9296. echo "${ECHO_T}$ac_res" >&6; }
  9297. else
  9298. # Is the header compilable?
  9299. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9300. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9301. cat >conftest.$ac_ext <<_ACEOF
  9302. /* confdefs.h. */
  9303. _ACEOF
  9304. cat confdefs.h >>conftest.$ac_ext
  9305. cat >>conftest.$ac_ext <<_ACEOF
  9306. /* end confdefs.h. */
  9307. $ac_includes_default
  9308. #include <$ac_header>
  9309. _ACEOF
  9310. rm -f conftest.$ac_objext
  9311. if { (ac_try="$ac_compile"
  9312. case "(($ac_try" in
  9313. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9314. *) ac_try_echo=$ac_try;;
  9315. esac
  9316. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9317. (eval "$ac_compile") 2>conftest.er1
  9318. ac_status=$?
  9319. grep -v '^ *+' conftest.er1 >conftest.err
  9320. rm -f conftest.er1
  9321. cat conftest.err >&5
  9322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9323. (exit $ac_status); } &&
  9324. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9325. { (case "(($ac_try" in
  9326. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9327. *) ac_try_echo=$ac_try;;
  9328. esac
  9329. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9330. (eval "$ac_try") 2>&5
  9331. ac_status=$?
  9332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9333. (exit $ac_status); }; } &&
  9334. { ac_try='test -s conftest.$ac_objext'
  9335. { (case "(($ac_try" in
  9336. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9337. *) ac_try_echo=$ac_try;;
  9338. esac
  9339. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9340. (eval "$ac_try") 2>&5
  9341. ac_status=$?
  9342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9343. (exit $ac_status); }; }; then
  9344. ac_header_compiler=yes
  9345. else
  9346. echo "$as_me: failed program was:" >&5
  9347. sed 's/^/| /' conftest.$ac_ext >&5
  9348. ac_header_compiler=no
  9349. fi
  9350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9351. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9352. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9353. # Is the header present?
  9354. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9355. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9356. cat >conftest.$ac_ext <<_ACEOF
  9357. /* confdefs.h. */
  9358. _ACEOF
  9359. cat confdefs.h >>conftest.$ac_ext
  9360. cat >>conftest.$ac_ext <<_ACEOF
  9361. /* end confdefs.h. */
  9362. #include <$ac_header>
  9363. _ACEOF
  9364. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9365. case "(($ac_try" in
  9366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9367. *) ac_try_echo=$ac_try;;
  9368. esac
  9369. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9370. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9371. ac_status=$?
  9372. grep -v '^ *+' conftest.er1 >conftest.err
  9373. rm -f conftest.er1
  9374. cat conftest.err >&5
  9375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9376. (exit $ac_status); } >/dev/null; then
  9377. if test -s conftest.err; then
  9378. ac_cpp_err=$ac_cxx_preproc_warn_flag
  9379. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  9380. else
  9381. ac_cpp_err=
  9382. fi
  9383. else
  9384. ac_cpp_err=yes
  9385. fi
  9386. if test -z "$ac_cpp_err"; then
  9387. ac_header_preproc=yes
  9388. else
  9389. echo "$as_me: failed program was:" >&5
  9390. sed 's/^/| /' conftest.$ac_ext >&5
  9391. ac_header_preproc=no
  9392. fi
  9393. rm -f conftest.err conftest.$ac_ext
  9394. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9395. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9396. # So? What about this header?
  9397. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9398. yes:no: )
  9399. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9400. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9401. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9402. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9403. ac_header_preproc=yes
  9404. ;;
  9405. no:yes:* )
  9406. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9407. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9408. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9409. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9410. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9411. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9412. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9413. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9414. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9415. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9416. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9417. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9418. ;;
  9419. esac
  9420. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9421. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9422. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9423. echo $ECHO_N "(cached) $ECHO_C" >&6
  9424. else
  9425. eval "$as_ac_Header=\$ac_header_preproc"
  9426. fi
  9427. ac_res=`eval echo '${'$as_ac_Header'}'`
  9428. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9429. echo "${ECHO_T}$ac_res" >&6; }
  9430. fi
  9431. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9432. cat >>confdefs.h <<_ACEOF
  9433. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9434. _ACEOF
  9435. fi
  9436. done
  9437. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  9438. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  9439. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  9440. echo $ECHO_N "(cached) $ECHO_C" >&6
  9441. else
  9442. if test "$cross_compiling" = yes; then
  9443. ac_cv_func_malloc_0_nonnull=no
  9444. else
  9445. cat >conftest.$ac_ext <<_ACEOF
  9446. /* confdefs.h. */
  9447. _ACEOF
  9448. cat confdefs.h >>conftest.$ac_ext
  9449. cat >>conftest.$ac_ext <<_ACEOF
  9450. /* end confdefs.h. */
  9451. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  9452. # include <stdlib.h>
  9453. #else
  9454. char *malloc ();
  9455. #endif
  9456. int
  9457. main ()
  9458. {
  9459. return ! malloc (0);
  9460. ;
  9461. return 0;
  9462. }
  9463. _ACEOF
  9464. rm -f conftest$ac_exeext
  9465. if { (ac_try="$ac_link"
  9466. case "(($ac_try" in
  9467. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9468. *) ac_try_echo=$ac_try;;
  9469. esac
  9470. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9471. (eval "$ac_link") 2>&5
  9472. ac_status=$?
  9473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9474. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9475. { (case "(($ac_try" in
  9476. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9477. *) ac_try_echo=$ac_try;;
  9478. esac
  9479. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9480. (eval "$ac_try") 2>&5
  9481. ac_status=$?
  9482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9483. (exit $ac_status); }; }; then
  9484. ac_cv_func_malloc_0_nonnull=yes
  9485. else
  9486. echo "$as_me: program exited with status $ac_status" >&5
  9487. echo "$as_me: failed program was:" >&5
  9488. sed 's/^/| /' conftest.$ac_ext >&5
  9489. ( exit $ac_status )
  9490. ac_cv_func_malloc_0_nonnull=no
  9491. fi
  9492. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9493. fi
  9494. fi
  9495. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9496. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  9497. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9498. cat >>confdefs.h <<\_ACEOF
  9499. #define HAVE_MALLOC 1
  9500. _ACEOF
  9501. else
  9502. cat >>confdefs.h <<\_ACEOF
  9503. #define HAVE_MALLOC 0
  9504. _ACEOF
  9505. case " $LIBOBJS " in
  9506. *" malloc.$ac_objext "* ) ;;
  9507. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  9508. ;;
  9509. esac
  9510. cat >>confdefs.h <<\_ACEOF
  9511. #define malloc rpl_malloc
  9512. _ACEOF
  9513. fi
  9514. for ac_header in stdlib.h sys/time.h unistd.h
  9515. do
  9516. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9517. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9518. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9519. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9520. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9521. echo $ECHO_N "(cached) $ECHO_C" >&6
  9522. fi
  9523. ac_res=`eval echo '${'$as_ac_Header'}'`
  9524. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9525. echo "${ECHO_T}$ac_res" >&6; }
  9526. else
  9527. # Is the header compilable?
  9528. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9529. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9530. cat >conftest.$ac_ext <<_ACEOF
  9531. /* confdefs.h. */
  9532. _ACEOF
  9533. cat confdefs.h >>conftest.$ac_ext
  9534. cat >>conftest.$ac_ext <<_ACEOF
  9535. /* end confdefs.h. */
  9536. $ac_includes_default
  9537. #include <$ac_header>
  9538. _ACEOF
  9539. rm -f conftest.$ac_objext
  9540. if { (ac_try="$ac_compile"
  9541. case "(($ac_try" in
  9542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9543. *) ac_try_echo=$ac_try;;
  9544. esac
  9545. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9546. (eval "$ac_compile") 2>conftest.er1
  9547. ac_status=$?
  9548. grep -v '^ *+' conftest.er1 >conftest.err
  9549. rm -f conftest.er1
  9550. cat conftest.err >&5
  9551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9552. (exit $ac_status); } &&
  9553. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9554. { (case "(($ac_try" in
  9555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9556. *) ac_try_echo=$ac_try;;
  9557. esac
  9558. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9559. (eval "$ac_try") 2>&5
  9560. ac_status=$?
  9561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9562. (exit $ac_status); }; } &&
  9563. { ac_try='test -s conftest.$ac_objext'
  9564. { (case "(($ac_try" in
  9565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9566. *) ac_try_echo=$ac_try;;
  9567. esac
  9568. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9569. (eval "$ac_try") 2>&5
  9570. ac_status=$?
  9571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9572. (exit $ac_status); }; }; then
  9573. ac_header_compiler=yes
  9574. else
  9575. echo "$as_me: failed program was:" >&5
  9576. sed 's/^/| /' conftest.$ac_ext >&5
  9577. ac_header_compiler=no
  9578. fi
  9579. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9580. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9581. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9582. # Is the header present?
  9583. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9584. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9585. cat >conftest.$ac_ext <<_ACEOF
  9586. /* confdefs.h. */
  9587. _ACEOF
  9588. cat confdefs.h >>conftest.$ac_ext
  9589. cat >>conftest.$ac_ext <<_ACEOF
  9590. /* end confdefs.h. */
  9591. #include <$ac_header>
  9592. _ACEOF
  9593. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9594. case "(($ac_try" in
  9595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9596. *) ac_try_echo=$ac_try;;
  9597. esac
  9598. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9599. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9600. ac_status=$?
  9601. grep -v '^ *+' conftest.er1 >conftest.err
  9602. rm -f conftest.er1
  9603. cat conftest.err >&5
  9604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9605. (exit $ac_status); } >/dev/null; then
  9606. if test -s conftest.err; then
  9607. ac_cpp_err=$ac_cxx_preproc_warn_flag
  9608. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  9609. else
  9610. ac_cpp_err=
  9611. fi
  9612. else
  9613. ac_cpp_err=yes
  9614. fi
  9615. if test -z "$ac_cpp_err"; then
  9616. ac_header_preproc=yes
  9617. else
  9618. echo "$as_me: failed program was:" >&5
  9619. sed 's/^/| /' conftest.$ac_ext >&5
  9620. ac_header_preproc=no
  9621. fi
  9622. rm -f conftest.err conftest.$ac_ext
  9623. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9624. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9625. # So? What about this header?
  9626. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9627. yes:no: )
  9628. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9629. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9630. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9631. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9632. ac_header_preproc=yes
  9633. ;;
  9634. no:yes:* )
  9635. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9636. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9637. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9638. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9639. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9640. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9641. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9642. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9643. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9644. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9645. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9646. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9647. ;;
  9648. esac
  9649. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9650. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9651. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9652. echo $ECHO_N "(cached) $ECHO_C" >&6
  9653. else
  9654. eval "$as_ac_Header=\$ac_header_preproc"
  9655. fi
  9656. ac_res=`eval echo '${'$as_ac_Header'}'`
  9657. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9658. echo "${ECHO_T}$ac_res" >&6; }
  9659. fi
  9660. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9661. cat >>confdefs.h <<_ACEOF
  9662. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9663. _ACEOF
  9664. fi
  9665. done
  9666. for ac_func in alarm
  9667. do
  9668. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9669. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9670. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9671. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9672. echo $ECHO_N "(cached) $ECHO_C" >&6
  9673. else
  9674. cat >conftest.$ac_ext <<_ACEOF
  9675. /* confdefs.h. */
  9676. _ACEOF
  9677. cat confdefs.h >>conftest.$ac_ext
  9678. cat >>conftest.$ac_ext <<_ACEOF
  9679. /* end confdefs.h. */
  9680. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9681. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9682. #define $ac_func innocuous_$ac_func
  9683. /* System header to define __stub macros and hopefully few prototypes,
  9684. which can conflict with char $ac_func (); below.
  9685. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9686. <limits.h> exists even on freestanding compilers. */
  9687. #ifdef __STDC__
  9688. # include <limits.h>
  9689. #else
  9690. # include <assert.h>
  9691. #endif
  9692. #undef $ac_func
  9693. /* Override any GCC internal prototype to avoid an error.
  9694. Use char because int might match the return type of a GCC
  9695. builtin and then its argument prototype would still apply. */
  9696. #ifdef __cplusplus
  9697. extern "C"
  9698. #endif
  9699. char $ac_func ();
  9700. /* The GNU C library defines this for functions which it implements
  9701. to always fail with ENOSYS. Some functions are actually named
  9702. something starting with __ and the normal name is an alias. */
  9703. #if defined __stub_$ac_func || defined __stub___$ac_func
  9704. choke me
  9705. #endif
  9706. int
  9707. main ()
  9708. {
  9709. return $ac_func ();
  9710. ;
  9711. return 0;
  9712. }
  9713. _ACEOF
  9714. rm -f conftest.$ac_objext conftest$ac_exeext
  9715. if { (ac_try="$ac_link"
  9716. case "(($ac_try" in
  9717. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9718. *) ac_try_echo=$ac_try;;
  9719. esac
  9720. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9721. (eval "$ac_link") 2>conftest.er1
  9722. ac_status=$?
  9723. grep -v '^ *+' conftest.er1 >conftest.err
  9724. rm -f conftest.er1
  9725. cat conftest.err >&5
  9726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9727. (exit $ac_status); } &&
  9728. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9729. { (case "(($ac_try" in
  9730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9731. *) ac_try_echo=$ac_try;;
  9732. esac
  9733. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9734. (eval "$ac_try") 2>&5
  9735. ac_status=$?
  9736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9737. (exit $ac_status); }; } &&
  9738. { ac_try='test -s conftest$ac_exeext'
  9739. { (case "(($ac_try" in
  9740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9741. *) ac_try_echo=$ac_try;;
  9742. esac
  9743. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9744. (eval "$ac_try") 2>&5
  9745. ac_status=$?
  9746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9747. (exit $ac_status); }; }; then
  9748. eval "$as_ac_var=yes"
  9749. else
  9750. echo "$as_me: failed program was:" >&5
  9751. sed 's/^/| /' conftest.$ac_ext >&5
  9752. eval "$as_ac_var=no"
  9753. fi
  9754. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9755. conftest$ac_exeext conftest.$ac_ext
  9756. fi
  9757. ac_res=`eval echo '${'$as_ac_var'}'`
  9758. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9759. echo "${ECHO_T}$ac_res" >&6; }
  9760. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9761. cat >>confdefs.h <<_ACEOF
  9762. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9763. _ACEOF
  9764. fi
  9765. done
  9766. { echo "$as_me:$LINENO: checking for working mktime" >&5
  9767. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
  9768. if test "${ac_cv_func_working_mktime+set}" = set; then
  9769. echo $ECHO_N "(cached) $ECHO_C" >&6
  9770. else
  9771. if test "$cross_compiling" = yes; then
  9772. ac_cv_func_working_mktime=no
  9773. else
  9774. cat >conftest.$ac_ext <<_ACEOF
  9775. /* confdefs.h. */
  9776. _ACEOF
  9777. cat confdefs.h >>conftest.$ac_ext
  9778. cat >>conftest.$ac_ext <<_ACEOF
  9779. /* end confdefs.h. */
  9780. /* Test program from Paul Eggert and Tony Leneis. */
  9781. #ifdef TIME_WITH_SYS_TIME
  9782. # include <sys/time.h>
  9783. # include <time.h>
  9784. #else
  9785. # ifdef HAVE_SYS_TIME_H
  9786. # include <sys/time.h>
  9787. # else
  9788. # include <time.h>
  9789. # endif
  9790. #endif
  9791. #ifdef HAVE_STDLIB_H
  9792. # include <stdlib.h>
  9793. #endif
  9794. #ifdef HAVE_UNISTD_H
  9795. # include <unistd.h>
  9796. #endif
  9797. #ifndef HAVE_ALARM
  9798. # define alarm(X) /* empty */
  9799. #endif
  9800. /* Work around redefinition to rpl_putenv by other config tests. */
  9801. #undef putenv
  9802. static time_t time_t_max;
  9803. static time_t time_t_min;
  9804. /* Values we'll use to set the TZ environment variable. */
  9805. static char *tz_strings[] = {
  9806. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  9807. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  9808. };
  9809. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  9810. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  9811. Based on a problem report from Andreas Jaeger. */
  9812. static int
  9813. spring_forward_gap ()
  9814. {
  9815. /* glibc (up to about 1998-10-07) failed this test. */
  9816. struct tm tm;
  9817. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  9818. instead of "TZ=America/Vancouver" in order to detect the bug even
  9819. on systems that don't support the Olson extension, or don't have the
  9820. full zoneinfo tables installed. */
  9821. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  9822. tm.tm_year = 98;
  9823. tm.tm_mon = 3;
  9824. tm.tm_mday = 5;
  9825. tm.tm_hour = 2;
  9826. tm.tm_min = 0;
  9827. tm.tm_sec = 0;
  9828. tm.tm_isdst = -1;
  9829. return mktime (&tm) != (time_t) -1;
  9830. }
  9831. static int
  9832. mktime_test1 (now)
  9833. time_t now;
  9834. {
  9835. struct tm *lt;
  9836. return ! (lt = localtime (&now)) || mktime (lt) == now;
  9837. }
  9838. static int
  9839. mktime_test (now)
  9840. time_t now;
  9841. {
  9842. return (mktime_test1 (now)
  9843. && mktime_test1 ((time_t) (time_t_max - now))
  9844. && mktime_test1 ((time_t) (time_t_min + now)));
  9845. }
  9846. static int
  9847. irix_6_4_bug ()
  9848. {
  9849. /* Based on code from Ariel Faigon. */
  9850. struct tm tm;
  9851. tm.tm_year = 96;
  9852. tm.tm_mon = 3;
  9853. tm.tm_mday = 0;
  9854. tm.tm_hour = 0;
  9855. tm.tm_min = 0;
  9856. tm.tm_sec = 0;
  9857. tm.tm_isdst = -1;
  9858. mktime (&tm);
  9859. return tm.tm_mon == 2 && tm.tm_mday == 31;
  9860. }
  9861. static int
  9862. bigtime_test (j)
  9863. int j;
  9864. {
  9865. struct tm tm;
  9866. time_t now;
  9867. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  9868. now = mktime (&tm);
  9869. if (now != (time_t) -1)
  9870. {
  9871. struct tm *lt = localtime (&now);
  9872. if (! (lt
  9873. && lt->tm_year == tm.tm_year
  9874. && lt->tm_mon == tm.tm_mon
  9875. && lt->tm_mday == tm.tm_mday
  9876. && lt->tm_hour == tm.tm_hour
  9877. && lt->tm_min == tm.tm_min
  9878. && lt->tm_sec == tm.tm_sec
  9879. && lt->tm_yday == tm.tm_yday
  9880. && lt->tm_wday == tm.tm_wday
  9881. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  9882. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  9883. return 0;
  9884. }
  9885. return 1;
  9886. }
  9887. int
  9888. main ()
  9889. {
  9890. time_t t, delta;
  9891. int i, j;
  9892. /* This test makes some buggy mktime implementations loop.
  9893. Give up after 60 seconds; a mktime slower than that
  9894. isn't worth using anyway. */
  9895. alarm (60);
  9896. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  9897. continue;
  9898. time_t_max--;
  9899. if ((time_t) -1 < 0)
  9900. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  9901. continue;
  9902. delta = time_t_max / 997; /* a suitable prime number */
  9903. for (i = 0; i < N_STRINGS; i++)
  9904. {
  9905. if (tz_strings[i])
  9906. putenv (tz_strings[i]);
  9907. for (t = 0; t <= time_t_max - delta; t += delta)
  9908. if (! mktime_test (t))
  9909. return 1;
  9910. if (! (mktime_test ((time_t) 1)
  9911. && mktime_test ((time_t) (60 * 60))
  9912. && mktime_test ((time_t) (60 * 60 * 24))))
  9913. return 1;
  9914. for (j = 1; 0 < j; j *= 2)
  9915. if (! bigtime_test (j))
  9916. return 1;
  9917. if (! bigtime_test (j - 1))
  9918. return 1;
  9919. }
  9920. return ! (irix_6_4_bug () && spring_forward_gap ());
  9921. }
  9922. _ACEOF
  9923. rm -f conftest$ac_exeext
  9924. if { (ac_try="$ac_link"
  9925. case "(($ac_try" in
  9926. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9927. *) ac_try_echo=$ac_try;;
  9928. esac
  9929. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9930. (eval "$ac_link") 2>&5
  9931. ac_status=$?
  9932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9933. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9934. { (case "(($ac_try" in
  9935. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9936. *) ac_try_echo=$ac_try;;
  9937. esac
  9938. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9939. (eval "$ac_try") 2>&5
  9940. ac_status=$?
  9941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9942. (exit $ac_status); }; }; then
  9943. ac_cv_func_working_mktime=yes
  9944. else
  9945. echo "$as_me: program exited with status $ac_status" >&5
  9946. echo "$as_me: failed program was:" >&5
  9947. sed 's/^/| /' conftest.$ac_ext >&5
  9948. ( exit $ac_status )
  9949. ac_cv_func_working_mktime=no
  9950. fi
  9951. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9952. fi
  9953. fi
  9954. { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  9955. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
  9956. if test $ac_cv_func_working_mktime = no; then
  9957. case " $LIBOBJS " in
  9958. *" mktime.$ac_objext "* ) ;;
  9959. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  9960. ;;
  9961. esac
  9962. fi
  9963. for ac_header in stdlib.h unistd.h
  9964. do
  9965. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9966. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9967. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9968. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9969. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9970. echo $ECHO_N "(cached) $ECHO_C" >&6
  9971. fi
  9972. ac_res=`eval echo '${'$as_ac_Header'}'`
  9973. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9974. echo "${ECHO_T}$ac_res" >&6; }
  9975. else
  9976. # Is the header compilable?
  9977. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9978. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9979. cat >conftest.$ac_ext <<_ACEOF
  9980. /* confdefs.h. */
  9981. _ACEOF
  9982. cat confdefs.h >>conftest.$ac_ext
  9983. cat >>conftest.$ac_ext <<_ACEOF
  9984. /* end confdefs.h. */
  9985. $ac_includes_default
  9986. #include <$ac_header>
  9987. _ACEOF
  9988. rm -f conftest.$ac_objext
  9989. if { (ac_try="$ac_compile"
  9990. case "(($ac_try" in
  9991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9992. *) ac_try_echo=$ac_try;;
  9993. esac
  9994. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9995. (eval "$ac_compile") 2>conftest.er1
  9996. ac_status=$?
  9997. grep -v '^ *+' conftest.er1 >conftest.err
  9998. rm -f conftest.er1
  9999. cat conftest.err >&5
  10000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10001. (exit $ac_status); } &&
  10002. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10003. { (case "(($ac_try" in
  10004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10005. *) ac_try_echo=$ac_try;;
  10006. esac
  10007. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10008. (eval "$ac_try") 2>&5
  10009. ac_status=$?
  10010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10011. (exit $ac_status); }; } &&
  10012. { ac_try='test -s conftest.$ac_objext'
  10013. { (case "(($ac_try" in
  10014. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10015. *) ac_try_echo=$ac_try;;
  10016. esac
  10017. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10018. (eval "$ac_try") 2>&5
  10019. ac_status=$?
  10020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10021. (exit $ac_status); }; }; then
  10022. ac_header_compiler=yes
  10023. else
  10024. echo "$as_me: failed program was:" >&5
  10025. sed 's/^/| /' conftest.$ac_ext >&5
  10026. ac_header_compiler=no
  10027. fi
  10028. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10029. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10030. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10031. # Is the header present?
  10032. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10033. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10034. cat >conftest.$ac_ext <<_ACEOF
  10035. /* confdefs.h. */
  10036. _ACEOF
  10037. cat confdefs.h >>conftest.$ac_ext
  10038. cat >>conftest.$ac_ext <<_ACEOF
  10039. /* end confdefs.h. */
  10040. #include <$ac_header>
  10041. _ACEOF
  10042. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10043. case "(($ac_try" in
  10044. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10045. *) ac_try_echo=$ac_try;;
  10046. esac
  10047. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10048. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10049. ac_status=$?
  10050. grep -v '^ *+' conftest.er1 >conftest.err
  10051. rm -f conftest.er1
  10052. cat conftest.err >&5
  10053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10054. (exit $ac_status); } >/dev/null; then
  10055. if test -s conftest.err; then
  10056. ac_cpp_err=$ac_cxx_preproc_warn_flag
  10057. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  10058. else
  10059. ac_cpp_err=
  10060. fi
  10061. else
  10062. ac_cpp_err=yes
  10063. fi
  10064. if test -z "$ac_cpp_err"; then
  10065. ac_header_preproc=yes
  10066. else
  10067. echo "$as_me: failed program was:" >&5
  10068. sed 's/^/| /' conftest.$ac_ext >&5
  10069. ac_header_preproc=no
  10070. fi
  10071. rm -f conftest.err conftest.$ac_ext
  10072. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10073. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10074. # So? What about this header?
  10075. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10076. yes:no: )
  10077. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10078. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10079. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10080. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10081. ac_header_preproc=yes
  10082. ;;
  10083. no:yes:* )
  10084. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10085. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10086. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10087. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10088. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10089. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10090. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10091. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10092. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10093. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10094. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10095. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10096. ;;
  10097. esac
  10098. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10099. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10100. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10101. echo $ECHO_N "(cached) $ECHO_C" >&6
  10102. else
  10103. eval "$as_ac_Header=\$ac_header_preproc"
  10104. fi
  10105. ac_res=`eval echo '${'$as_ac_Header'}'`
  10106. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10107. echo "${ECHO_T}$ac_res" >&6; }
  10108. fi
  10109. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10110. cat >>confdefs.h <<_ACEOF
  10111. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10112. _ACEOF
  10113. fi
  10114. done
  10115. for ac_func in getpagesize
  10116. do
  10117. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10118. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10119. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10120. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10121. echo $ECHO_N "(cached) $ECHO_C" >&6
  10122. else
  10123. cat >conftest.$ac_ext <<_ACEOF
  10124. /* confdefs.h. */
  10125. _ACEOF
  10126. cat confdefs.h >>conftest.$ac_ext
  10127. cat >>conftest.$ac_ext <<_ACEOF
  10128. /* end confdefs.h. */
  10129. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10130. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10131. #define $ac_func innocuous_$ac_func
  10132. /* System header to define __stub macros and hopefully few prototypes,
  10133. which can conflict with char $ac_func (); below.
  10134. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10135. <limits.h> exists even on freestanding compilers. */
  10136. #ifdef __STDC__
  10137. # include <limits.h>
  10138. #else
  10139. # include <assert.h>
  10140. #endif
  10141. #undef $ac_func
  10142. /* Override any GCC internal prototype to avoid an error.
  10143. Use char because int might match the return type of a GCC
  10144. builtin and then its argument prototype would still apply. */
  10145. #ifdef __cplusplus
  10146. extern "C"
  10147. #endif
  10148. char $ac_func ();
  10149. /* The GNU C library defines this for functions which it implements
  10150. to always fail with ENOSYS. Some functions are actually named
  10151. something starting with __ and the normal name is an alias. */
  10152. #if defined __stub_$ac_func || defined __stub___$ac_func
  10153. choke me
  10154. #endif
  10155. int
  10156. main ()
  10157. {
  10158. return $ac_func ();
  10159. ;
  10160. return 0;
  10161. }
  10162. _ACEOF
  10163. rm -f conftest.$ac_objext conftest$ac_exeext
  10164. if { (ac_try="$ac_link"
  10165. case "(($ac_try" in
  10166. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10167. *) ac_try_echo=$ac_try;;
  10168. esac
  10169. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10170. (eval "$ac_link") 2>conftest.er1
  10171. ac_status=$?
  10172. grep -v '^ *+' conftest.er1 >conftest.err
  10173. rm -f conftest.er1
  10174. cat conftest.err >&5
  10175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10176. (exit $ac_status); } &&
  10177. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10178. { (case "(($ac_try" in
  10179. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10180. *) ac_try_echo=$ac_try;;
  10181. esac
  10182. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10183. (eval "$ac_try") 2>&5
  10184. ac_status=$?
  10185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10186. (exit $ac_status); }; } &&
  10187. { ac_try='test -s conftest$ac_exeext'
  10188. { (case "(($ac_try" in
  10189. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10190. *) ac_try_echo=$ac_try;;
  10191. esac
  10192. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10193. (eval "$ac_try") 2>&5
  10194. ac_status=$?
  10195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10196. (exit $ac_status); }; }; then
  10197. eval "$as_ac_var=yes"
  10198. else
  10199. echo "$as_me: failed program was:" >&5
  10200. sed 's/^/| /' conftest.$ac_ext >&5
  10201. eval "$as_ac_var=no"
  10202. fi
  10203. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10204. conftest$ac_exeext conftest.$ac_ext
  10205. fi
  10206. ac_res=`eval echo '${'$as_ac_var'}'`
  10207. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10208. echo "${ECHO_T}$ac_res" >&6; }
  10209. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10210. cat >>confdefs.h <<_ACEOF
  10211. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10212. _ACEOF
  10213. fi
  10214. done
  10215. { echo "$as_me:$LINENO: checking for working mmap" >&5
  10216. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  10217. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10218. echo $ECHO_N "(cached) $ECHO_C" >&6
  10219. else
  10220. if test "$cross_compiling" = yes; then
  10221. ac_cv_func_mmap_fixed_mapped=no
  10222. else
  10223. cat >conftest.$ac_ext <<_ACEOF
  10224. /* confdefs.h. */
  10225. _ACEOF
  10226. cat confdefs.h >>conftest.$ac_ext
  10227. cat >>conftest.$ac_ext <<_ACEOF
  10228. /* end confdefs.h. */
  10229. $ac_includes_default
  10230. /* malloc might have been renamed as rpl_malloc. */
  10231. #undef malloc
  10232. /* Thanks to Mike Haertel and Jim Avera for this test.
  10233. Here is a matrix of mmap possibilities:
  10234. mmap private not fixed
  10235. mmap private fixed at somewhere currently unmapped
  10236. mmap private fixed at somewhere already mapped
  10237. mmap shared not fixed
  10238. mmap shared fixed at somewhere currently unmapped
  10239. mmap shared fixed at somewhere already mapped
  10240. For private mappings, we should verify that changes cannot be read()
  10241. back from the file, nor mmap's back from the file at a different
  10242. address. (There have been systems where private was not correctly
  10243. implemented like the infamous i386 svr4.0, and systems where the
  10244. VM page cache was not coherent with the file system buffer cache
  10245. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10246. For shared mappings, we should conversely verify that changes get
  10247. propagated back to all the places they're supposed to be.
  10248. Grep wants private fixed already mapped.
  10249. The main things grep needs to know about mmap are:
  10250. * does it exist and is it safe to write into the mmap'd area
  10251. * how to use it (BSD variants) */
  10252. #include <fcntl.h>
  10253. #include <sys/mman.h>
  10254. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10255. char *malloc ();
  10256. #endif
  10257. /* This mess was copied from the GNU getpagesize.h. */
  10258. #ifndef HAVE_GETPAGESIZE
  10259. /* Assume that all systems that can run configure have sys/param.h. */
  10260. # ifndef HAVE_SYS_PARAM_H
  10261. # define HAVE_SYS_PARAM_H 1
  10262. # endif
  10263. # ifdef _SC_PAGESIZE
  10264. # define getpagesize() sysconf(_SC_PAGESIZE)
  10265. # else /* no _SC_PAGESIZE */
  10266. # ifdef HAVE_SYS_PARAM_H
  10267. # include <sys/param.h>
  10268. # ifdef EXEC_PAGESIZE
  10269. # define getpagesize() EXEC_PAGESIZE
  10270. # else /* no EXEC_PAGESIZE */
  10271. # ifdef NBPG
  10272. # define getpagesize() NBPG * CLSIZE
  10273. # ifndef CLSIZE
  10274. # define CLSIZE 1
  10275. # endif /* no CLSIZE */
  10276. # else /* no NBPG */
  10277. # ifdef NBPC
  10278. # define getpagesize() NBPC
  10279. # else /* no NBPC */
  10280. # ifdef PAGESIZE
  10281. # define getpagesize() PAGESIZE
  10282. # endif /* PAGESIZE */
  10283. # endif /* no NBPC */
  10284. # endif /* no NBPG */
  10285. # endif /* no EXEC_PAGESIZE */
  10286. # else /* no HAVE_SYS_PARAM_H */
  10287. # define getpagesize() 8192 /* punt totally */
  10288. # endif /* no HAVE_SYS_PARAM_H */
  10289. # endif /* no _SC_PAGESIZE */
  10290. #endif /* no HAVE_GETPAGESIZE */
  10291. int
  10292. main ()
  10293. {
  10294. char *data, *data2, *data3;
  10295. int i, pagesize;
  10296. int fd;
  10297. pagesize = getpagesize ();
  10298. /* First, make a file with some known garbage in it. */
  10299. data = (char *) malloc (pagesize);
  10300. if (!data)
  10301. return 1;
  10302. for (i = 0; i < pagesize; ++i)
  10303. *(data + i) = rand ();
  10304. umask (0);
  10305. fd = creat ("conftest.mmap", 0600);
  10306. if (fd < 0)
  10307. return 1;
  10308. if (write (fd, data, pagesize) != pagesize)
  10309. return 1;
  10310. close (fd);
  10311. /* Next, try to mmap the file at a fixed address which already has
  10312. something else allocated at it. If we can, also make sure that
  10313. we see the same garbage. */
  10314. fd = open ("conftest.mmap", O_RDWR);
  10315. if (fd < 0)
  10316. return 1;
  10317. data2 = (char *) malloc (2 * pagesize);
  10318. if (!data2)
  10319. return 1;
  10320. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  10321. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10322. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10323. return 1;
  10324. for (i = 0; i < pagesize; ++i)
  10325. if (*(data + i) != *(data2 + i))
  10326. return 1;
  10327. /* Finally, make sure that changes to the mapped area do not
  10328. percolate back to the file as seen by read(). (This is a bug on
  10329. some variants of i386 svr4.0.) */
  10330. for (i = 0; i < pagesize; ++i)
  10331. *(data2 + i) = *(data2 + i) + 1;
  10332. data3 = (char *) malloc (pagesize);
  10333. if (!data3)
  10334. return 1;
  10335. if (read (fd, data3, pagesize) != pagesize)
  10336. return 1;
  10337. for (i = 0; i < pagesize; ++i)
  10338. if (*(data + i) != *(data3 + i))
  10339. return 1;
  10340. close (fd);
  10341. return 0;
  10342. }
  10343. _ACEOF
  10344. rm -f conftest$ac_exeext
  10345. if { (ac_try="$ac_link"
  10346. case "(($ac_try" in
  10347. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10348. *) ac_try_echo=$ac_try;;
  10349. esac
  10350. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10351. (eval "$ac_link") 2>&5
  10352. ac_status=$?
  10353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10354. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10355. { (case "(($ac_try" in
  10356. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10357. *) ac_try_echo=$ac_try;;
  10358. esac
  10359. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10360. (eval "$ac_try") 2>&5
  10361. ac_status=$?
  10362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10363. (exit $ac_status); }; }; then
  10364. ac_cv_func_mmap_fixed_mapped=yes
  10365. else
  10366. echo "$as_me: program exited with status $ac_status" >&5
  10367. echo "$as_me: failed program was:" >&5
  10368. sed 's/^/| /' conftest.$ac_ext >&5
  10369. ( exit $ac_status )
  10370. ac_cv_func_mmap_fixed_mapped=no
  10371. fi
  10372. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10373. fi
  10374. fi
  10375. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10376. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  10377. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10378. cat >>confdefs.h <<\_ACEOF
  10379. #define HAVE_MMAP 1
  10380. _ACEOF
  10381. fi
  10382. rm -f conftest.mmap
  10383. for ac_header in stdlib.h
  10384. do
  10385. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10386. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10387. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10388. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10389. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10390. echo $ECHO_N "(cached) $ECHO_C" >&6
  10391. fi
  10392. ac_res=`eval echo '${'$as_ac_Header'}'`
  10393. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10394. echo "${ECHO_T}$ac_res" >&6; }
  10395. else
  10396. # Is the header compilable?
  10397. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10398. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10399. cat >conftest.$ac_ext <<_ACEOF
  10400. /* confdefs.h. */
  10401. _ACEOF
  10402. cat confdefs.h >>conftest.$ac_ext
  10403. cat >>conftest.$ac_ext <<_ACEOF
  10404. /* end confdefs.h. */
  10405. $ac_includes_default
  10406. #include <$ac_header>
  10407. _ACEOF
  10408. rm -f conftest.$ac_objext
  10409. if { (ac_try="$ac_compile"
  10410. case "(($ac_try" in
  10411. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10412. *) ac_try_echo=$ac_try;;
  10413. esac
  10414. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10415. (eval "$ac_compile") 2>conftest.er1
  10416. ac_status=$?
  10417. grep -v '^ *+' conftest.er1 >conftest.err
  10418. rm -f conftest.er1
  10419. cat conftest.err >&5
  10420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10421. (exit $ac_status); } &&
  10422. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10423. { (case "(($ac_try" in
  10424. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10425. *) ac_try_echo=$ac_try;;
  10426. esac
  10427. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10428. (eval "$ac_try") 2>&5
  10429. ac_status=$?
  10430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10431. (exit $ac_status); }; } &&
  10432. { ac_try='test -s conftest.$ac_objext'
  10433. { (case "(($ac_try" in
  10434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10435. *) ac_try_echo=$ac_try;;
  10436. esac
  10437. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10438. (eval "$ac_try") 2>&5
  10439. ac_status=$?
  10440. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10441. (exit $ac_status); }; }; then
  10442. ac_header_compiler=yes
  10443. else
  10444. echo "$as_me: failed program was:" >&5
  10445. sed 's/^/| /' conftest.$ac_ext >&5
  10446. ac_header_compiler=no
  10447. fi
  10448. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10449. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10450. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10451. # Is the header present?
  10452. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10453. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10454. cat >conftest.$ac_ext <<_ACEOF
  10455. /* confdefs.h. */
  10456. _ACEOF
  10457. cat confdefs.h >>conftest.$ac_ext
  10458. cat >>conftest.$ac_ext <<_ACEOF
  10459. /* end confdefs.h. */
  10460. #include <$ac_header>
  10461. _ACEOF
  10462. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10463. case "(($ac_try" in
  10464. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10465. *) ac_try_echo=$ac_try;;
  10466. esac
  10467. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10468. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10469. ac_status=$?
  10470. grep -v '^ *+' conftest.er1 >conftest.err
  10471. rm -f conftest.er1
  10472. cat conftest.err >&5
  10473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10474. (exit $ac_status); } >/dev/null; then
  10475. if test -s conftest.err; then
  10476. ac_cpp_err=$ac_cxx_preproc_warn_flag
  10477. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  10478. else
  10479. ac_cpp_err=
  10480. fi
  10481. else
  10482. ac_cpp_err=yes
  10483. fi
  10484. if test -z "$ac_cpp_err"; then
  10485. ac_header_preproc=yes
  10486. else
  10487. echo "$as_me: failed program was:" >&5
  10488. sed 's/^/| /' conftest.$ac_ext >&5
  10489. ac_header_preproc=no
  10490. fi
  10491. rm -f conftest.err conftest.$ac_ext
  10492. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10493. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10494. # So? What about this header?
  10495. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10496. yes:no: )
  10497. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10498. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10499. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10500. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10501. ac_header_preproc=yes
  10502. ;;
  10503. no:yes:* )
  10504. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10505. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10506. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10507. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10508. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10509. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10510. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10511. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10512. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10513. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10514. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10515. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10516. ;;
  10517. esac
  10518. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10519. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10520. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10521. echo $ECHO_N "(cached) $ECHO_C" >&6
  10522. else
  10523. eval "$as_ac_Header=\$ac_header_preproc"
  10524. fi
  10525. ac_res=`eval echo '${'$as_ac_Header'}'`
  10526. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10527. echo "${ECHO_T}$ac_res" >&6; }
  10528. fi
  10529. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10530. cat >>confdefs.h <<_ACEOF
  10531. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10532. _ACEOF
  10533. fi
  10534. done
  10535. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  10536. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  10537. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  10538. echo $ECHO_N "(cached) $ECHO_C" >&6
  10539. else
  10540. if test "$cross_compiling" = yes; then
  10541. ac_cv_func_realloc_0_nonnull=no
  10542. else
  10543. cat >conftest.$ac_ext <<_ACEOF
  10544. /* confdefs.h. */
  10545. _ACEOF
  10546. cat confdefs.h >>conftest.$ac_ext
  10547. cat >>conftest.$ac_ext <<_ACEOF
  10548. /* end confdefs.h. */
  10549. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  10550. # include <stdlib.h>
  10551. #else
  10552. char *realloc ();
  10553. #endif
  10554. int
  10555. main ()
  10556. {
  10557. return ! realloc (0, 0);
  10558. ;
  10559. return 0;
  10560. }
  10561. _ACEOF
  10562. rm -f conftest$ac_exeext
  10563. if { (ac_try="$ac_link"
  10564. case "(($ac_try" in
  10565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10566. *) ac_try_echo=$ac_try;;
  10567. esac
  10568. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10569. (eval "$ac_link") 2>&5
  10570. ac_status=$?
  10571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10572. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10573. { (case "(($ac_try" in
  10574. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10575. *) ac_try_echo=$ac_try;;
  10576. esac
  10577. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10578. (eval "$ac_try") 2>&5
  10579. ac_status=$?
  10580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10581. (exit $ac_status); }; }; then
  10582. ac_cv_func_realloc_0_nonnull=yes
  10583. else
  10584. echo "$as_me: program exited with status $ac_status" >&5
  10585. echo "$as_me: failed program was:" >&5
  10586. sed 's/^/| /' conftest.$ac_ext >&5
  10587. ( exit $ac_status )
  10588. ac_cv_func_realloc_0_nonnull=no
  10589. fi
  10590. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10591. fi
  10592. fi
  10593. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  10594. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  10595. if test $ac_cv_func_realloc_0_nonnull = yes; then
  10596. cat >>confdefs.h <<\_ACEOF
  10597. #define HAVE_REALLOC 1
  10598. _ACEOF
  10599. else
  10600. cat >>confdefs.h <<\_ACEOF
  10601. #define HAVE_REALLOC 0
  10602. _ACEOF
  10603. case " $LIBOBJS " in
  10604. *" realloc.$ac_objext "* ) ;;
  10605. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  10606. ;;
  10607. esac
  10608. cat >>confdefs.h <<\_ACEOF
  10609. #define realloc rpl_realloc
  10610. _ACEOF
  10611. fi
  10612. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  10613. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  10614. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  10615. echo $ECHO_N "(cached) $ECHO_C" >&6
  10616. else
  10617. if test "$cross_compiling" = yes; then
  10618. ac_cv_func_stat_empty_string_bug=yes
  10619. else
  10620. cat >conftest.$ac_ext <<_ACEOF
  10621. /* confdefs.h. */
  10622. _ACEOF
  10623. cat confdefs.h >>conftest.$ac_ext
  10624. cat >>conftest.$ac_ext <<_ACEOF
  10625. /* end confdefs.h. */
  10626. $ac_includes_default
  10627. int
  10628. main ()
  10629. {
  10630. struct stat sbuf;
  10631. return stat ("", &sbuf) == 0;
  10632. ;
  10633. return 0;
  10634. }
  10635. _ACEOF
  10636. rm -f conftest$ac_exeext
  10637. if { (ac_try="$ac_link"
  10638. case "(($ac_try" in
  10639. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10640. *) ac_try_echo=$ac_try;;
  10641. esac
  10642. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10643. (eval "$ac_link") 2>&5
  10644. ac_status=$?
  10645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10646. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10647. { (case "(($ac_try" in
  10648. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10649. *) ac_try_echo=$ac_try;;
  10650. esac
  10651. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10652. (eval "$ac_try") 2>&5
  10653. ac_status=$?
  10654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10655. (exit $ac_status); }; }; then
  10656. ac_cv_func_stat_empty_string_bug=no
  10657. else
  10658. echo "$as_me: program exited with status $ac_status" >&5
  10659. echo "$as_me: failed program was:" >&5
  10660. sed 's/^/| /' conftest.$ac_ext >&5
  10661. ( exit $ac_status )
  10662. ac_cv_func_stat_empty_string_bug=yes
  10663. fi
  10664. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10665. fi
  10666. fi
  10667. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  10668. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  10669. if test $ac_cv_func_stat_empty_string_bug = yes; then
  10670. case " $LIBOBJS " in
  10671. *" stat.$ac_objext "* ) ;;
  10672. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  10673. ;;
  10674. esac
  10675. cat >>confdefs.h <<_ACEOF
  10676. #define HAVE_STAT_EMPTY_STRING_BUG 1
  10677. _ACEOF
  10678. fi
  10679. { echo "$as_me:$LINENO: checking for struct timespec" >&5
  10680. echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
  10681. if test "${ac_cv_type_struct_timespec+set}" = set; then
  10682. echo $ECHO_N "(cached) $ECHO_C" >&6
  10683. else
  10684. cat >conftest.$ac_ext <<_ACEOF
  10685. /* confdefs.h. */
  10686. _ACEOF
  10687. cat confdefs.h >>conftest.$ac_ext
  10688. cat >>conftest.$ac_ext <<_ACEOF
  10689. /* end confdefs.h. */
  10690. #include <sys/types.h>
  10691. #include <sys/time.h>
  10692. #include <time.h>
  10693. typedef struct timespec ac__type_new_;
  10694. int
  10695. main ()
  10696. {
  10697. if ((ac__type_new_ *) 0)
  10698. return 0;
  10699. if (sizeof (ac__type_new_))
  10700. return 0;
  10701. ;
  10702. return 0;
  10703. }
  10704. _ACEOF
  10705. rm -f conftest.$ac_objext
  10706. if { (ac_try="$ac_compile"
  10707. case "(($ac_try" in
  10708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10709. *) ac_try_echo=$ac_try;;
  10710. esac
  10711. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10712. (eval "$ac_compile") 2>conftest.er1
  10713. ac_status=$?
  10714. grep -v '^ *+' conftest.er1 >conftest.err
  10715. rm -f conftest.er1
  10716. cat conftest.err >&5
  10717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10718. (exit $ac_status); } &&
  10719. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10720. { (case "(($ac_try" in
  10721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10722. *) ac_try_echo=$ac_try;;
  10723. esac
  10724. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10725. (eval "$ac_try") 2>&5
  10726. ac_status=$?
  10727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10728. (exit $ac_status); }; } &&
  10729. { ac_try='test -s conftest.$ac_objext'
  10730. { (case "(($ac_try" in
  10731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10732. *) ac_try_echo=$ac_try;;
  10733. esac
  10734. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10735. (eval "$ac_try") 2>&5
  10736. ac_status=$?
  10737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10738. (exit $ac_status); }; }; then
  10739. ac_cv_type_struct_timespec=yes
  10740. else
  10741. echo "$as_me: failed program was:" >&5
  10742. sed 's/^/| /' conftest.$ac_ext >&5
  10743. ac_cv_type_struct_timespec=no
  10744. fi
  10745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10746. fi
  10747. { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
  10748. echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
  10749. if test $ac_cv_type_struct_timespec = yes; then
  10750. cat >>confdefs.h <<\_ACEOF
  10751. #define HAVE_TIMESPEC 1
  10752. _ACEOF
  10753. fi
  10754. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  10755. { echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
  10756. echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6; }
  10757. if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
  10758. echo $ECHO_N "(cached) $ECHO_C" >&6
  10759. else
  10760. cat >conftest.$ac_ext <<_ACEOF
  10761. /* confdefs.h. */
  10762. _ACEOF
  10763. cat confdefs.h >>conftest.$ac_ext
  10764. cat >>conftest.$ac_ext <<_ACEOF
  10765. /* end confdefs.h. */
  10766. $ac_includes_default
  10767. int
  10768. main ()
  10769. {
  10770. static struct stat ac_aggr;
  10771. if (ac_aggr.st_mtim)
  10772. return 0;
  10773. ;
  10774. return 0;
  10775. }
  10776. _ACEOF
  10777. rm -f conftest.$ac_objext
  10778. if { (ac_try="$ac_compile"
  10779. case "(($ac_try" in
  10780. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10781. *) ac_try_echo=$ac_try;;
  10782. esac
  10783. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10784. (eval "$ac_compile") 2>conftest.er1
  10785. ac_status=$?
  10786. grep -v '^ *+' conftest.er1 >conftest.err
  10787. rm -f conftest.er1
  10788. cat conftest.err >&5
  10789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10790. (exit $ac_status); } &&
  10791. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10792. { (case "(($ac_try" in
  10793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10794. *) ac_try_echo=$ac_try;;
  10795. esac
  10796. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10797. (eval "$ac_try") 2>&5
  10798. ac_status=$?
  10799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10800. (exit $ac_status); }; } &&
  10801. { ac_try='test -s conftest.$ac_objext'
  10802. { (case "(($ac_try" in
  10803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10804. *) ac_try_echo=$ac_try;;
  10805. esac
  10806. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10807. (eval "$ac_try") 2>&5
  10808. ac_status=$?
  10809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10810. (exit $ac_status); }; }; then
  10811. ac_cv_member_struct_stat_st_mtim=yes
  10812. else
  10813. echo "$as_me: failed program was:" >&5
  10814. sed 's/^/| /' conftest.$ac_ext >&5
  10815. cat >conftest.$ac_ext <<_ACEOF
  10816. /* confdefs.h. */
  10817. _ACEOF
  10818. cat confdefs.h >>conftest.$ac_ext
  10819. cat >>conftest.$ac_ext <<_ACEOF
  10820. /* end confdefs.h. */
  10821. $ac_includes_default
  10822. int
  10823. main ()
  10824. {
  10825. static struct stat ac_aggr;
  10826. if (sizeof ac_aggr.st_mtim)
  10827. return 0;
  10828. ;
  10829. return 0;
  10830. }
  10831. _ACEOF
  10832. rm -f conftest.$ac_objext
  10833. if { (ac_try="$ac_compile"
  10834. case "(($ac_try" in
  10835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10836. *) ac_try_echo=$ac_try;;
  10837. esac
  10838. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10839. (eval "$ac_compile") 2>conftest.er1
  10840. ac_status=$?
  10841. grep -v '^ *+' conftest.er1 >conftest.err
  10842. rm -f conftest.er1
  10843. cat conftest.err >&5
  10844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10845. (exit $ac_status); } &&
  10846. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10847. { (case "(($ac_try" in
  10848. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10849. *) ac_try_echo=$ac_try;;
  10850. esac
  10851. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10852. (eval "$ac_try") 2>&5
  10853. ac_status=$?
  10854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10855. (exit $ac_status); }; } &&
  10856. { ac_try='test -s conftest.$ac_objext'
  10857. { (case "(($ac_try" in
  10858. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10859. *) ac_try_echo=$ac_try;;
  10860. esac
  10861. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10862. (eval "$ac_try") 2>&5
  10863. ac_status=$?
  10864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10865. (exit $ac_status); }; }; then
  10866. ac_cv_member_struct_stat_st_mtim=yes
  10867. else
  10868. echo "$as_me: failed program was:" >&5
  10869. sed 's/^/| /' conftest.$ac_ext >&5
  10870. ac_cv_member_struct_stat_st_mtim=no
  10871. fi
  10872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10873. fi
  10874. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10875. fi
  10876. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
  10877. echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6; }
  10878. if test $ac_cv_member_struct_stat_st_mtim = yes; then
  10879. cat >>confdefs.h <<\_ACEOF
  10880. #define HAVE_ST_MTIM 1
  10881. _ACEOF
  10882. else
  10883. { echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
  10884. echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6; }
  10885. if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
  10886. echo $ECHO_N "(cached) $ECHO_C" >&6
  10887. else
  10888. cat >conftest.$ac_ext <<_ACEOF
  10889. /* confdefs.h. */
  10890. _ACEOF
  10891. cat confdefs.h >>conftest.$ac_ext
  10892. cat >>conftest.$ac_ext <<_ACEOF
  10893. /* end confdefs.h. */
  10894. $ac_includes_default
  10895. int
  10896. main ()
  10897. {
  10898. static struct stat ac_aggr;
  10899. if (ac_aggr.st_mtimespec)
  10900. return 0;
  10901. ;
  10902. return 0;
  10903. }
  10904. _ACEOF
  10905. rm -f conftest.$ac_objext
  10906. if { (ac_try="$ac_compile"
  10907. case "(($ac_try" in
  10908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10909. *) ac_try_echo=$ac_try;;
  10910. esac
  10911. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10912. (eval "$ac_compile") 2>conftest.er1
  10913. ac_status=$?
  10914. grep -v '^ *+' conftest.er1 >conftest.err
  10915. rm -f conftest.er1
  10916. cat conftest.err >&5
  10917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10918. (exit $ac_status); } &&
  10919. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10920. { (case "(($ac_try" in
  10921. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10922. *) ac_try_echo=$ac_try;;
  10923. esac
  10924. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10925. (eval "$ac_try") 2>&5
  10926. ac_status=$?
  10927. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10928. (exit $ac_status); }; } &&
  10929. { ac_try='test -s conftest.$ac_objext'
  10930. { (case "(($ac_try" in
  10931. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10932. *) ac_try_echo=$ac_try;;
  10933. esac
  10934. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10935. (eval "$ac_try") 2>&5
  10936. ac_status=$?
  10937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10938. (exit $ac_status); }; }; then
  10939. ac_cv_member_struct_stat_st_mtimespec=yes
  10940. else
  10941. echo "$as_me: failed program was:" >&5
  10942. sed 's/^/| /' conftest.$ac_ext >&5
  10943. cat >conftest.$ac_ext <<_ACEOF
  10944. /* confdefs.h. */
  10945. _ACEOF
  10946. cat confdefs.h >>conftest.$ac_ext
  10947. cat >>conftest.$ac_ext <<_ACEOF
  10948. /* end confdefs.h. */
  10949. $ac_includes_default
  10950. int
  10951. main ()
  10952. {
  10953. static struct stat ac_aggr;
  10954. if (sizeof ac_aggr.st_mtimespec)
  10955. return 0;
  10956. ;
  10957. return 0;
  10958. }
  10959. _ACEOF
  10960. rm -f conftest.$ac_objext
  10961. if { (ac_try="$ac_compile"
  10962. case "(($ac_try" in
  10963. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10964. *) ac_try_echo=$ac_try;;
  10965. esac
  10966. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10967. (eval "$ac_compile") 2>conftest.er1
  10968. ac_status=$?
  10969. grep -v '^ *+' conftest.er1 >conftest.err
  10970. rm -f conftest.er1
  10971. cat conftest.err >&5
  10972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10973. (exit $ac_status); } &&
  10974. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10975. { (case "(($ac_try" in
  10976. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10977. *) ac_try_echo=$ac_try;;
  10978. esac
  10979. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10980. (eval "$ac_try") 2>&5
  10981. ac_status=$?
  10982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10983. (exit $ac_status); }; } &&
  10984. { ac_try='test -s conftest.$ac_objext'
  10985. { (case "(($ac_try" in
  10986. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10987. *) ac_try_echo=$ac_try;;
  10988. esac
  10989. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10990. (eval "$ac_try") 2>&5
  10991. ac_status=$?
  10992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10993. (exit $ac_status); }; }; then
  10994. ac_cv_member_struct_stat_st_mtimespec=yes
  10995. else
  10996. echo "$as_me: failed program was:" >&5
  10997. sed 's/^/| /' conftest.$ac_ext >&5
  10998. ac_cv_member_struct_stat_st_mtimespec=no
  10999. fi
  11000. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11001. fi
  11002. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11003. fi
  11004. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
  11005. echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6; }
  11006. if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
  11007. cat >>confdefs.h <<\_ACEOF
  11008. #define HAVE_ST_MTIMESPEC 1
  11009. _ACEOF
  11010. fi
  11011. fi
  11012. { echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
  11013. echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6; }
  11014. cat >conftest.$ac_ext <<_ACEOF
  11015. /* confdefs.h. */
  11016. _ACEOF
  11017. cat confdefs.h >>conftest.$ac_ext
  11018. cat >>conftest.$ac_ext <<_ACEOF
  11019. /* end confdefs.h. */
  11020. #include <sys/types.h>
  11021. #include <sys/time.h>
  11022. int
  11023. main ()
  11024. {
  11025. struct timespec ts1, ts2;
  11026. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  11027. #ifndef timespecsub
  11028. #error missing timespecsub
  11029. #endif
  11030. timespecsub(&ts1, &ts2);
  11031. ;
  11032. return 0;
  11033. }
  11034. _ACEOF
  11035. rm -f conftest.$ac_objext
  11036. if { (ac_try="$ac_compile"
  11037. case "(($ac_try" in
  11038. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11039. *) ac_try_echo=$ac_try;;
  11040. esac
  11041. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11042. (eval "$ac_compile") 2>conftest.er1
  11043. ac_status=$?
  11044. grep -v '^ *+' conftest.er1 >conftest.err
  11045. rm -f conftest.er1
  11046. cat conftest.err >&5
  11047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11048. (exit $ac_status); } &&
  11049. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  11050. { (case "(($ac_try" in
  11051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11052. *) ac_try_echo=$ac_try;;
  11053. esac
  11054. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11055. (eval "$ac_try") 2>&5
  11056. ac_status=$?
  11057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11058. (exit $ac_status); }; } &&
  11059. { ac_try='test -s conftest.$ac_objext'
  11060. { (case "(($ac_try" in
  11061. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11062. *) ac_try_echo=$ac_try;;
  11063. esac
  11064. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11065. (eval "$ac_try") 2>&5
  11066. ac_status=$?
  11067. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11068. (exit $ac_status); }; }; then
  11069. cat >>confdefs.h <<\_ACEOF
  11070. #define HAVE_TIMESPECSUB2 1
  11071. _ACEOF
  11072. { echo "$as_me:$LINENO: result: yes" >&5
  11073. echo "${ECHO_T}yes" >&6; }
  11074. else
  11075. echo "$as_me: failed program was:" >&5
  11076. sed 's/^/| /' conftest.$ac_ext >&5
  11077. { echo "$as_me:$LINENO: result: no" >&5
  11078. echo "${ECHO_T}no" >&6; }
  11079. fi
  11080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11081. fi
  11082. for ac_func in strftime
  11083. do
  11084. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11085. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11086. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11087. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11088. echo $ECHO_N "(cached) $ECHO_C" >&6
  11089. else
  11090. cat >conftest.$ac_ext <<_ACEOF
  11091. /* confdefs.h. */
  11092. _ACEOF
  11093. cat confdefs.h >>conftest.$ac_ext
  11094. cat >>conftest.$ac_ext <<_ACEOF
  11095. /* end confdefs.h. */
  11096. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11097. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11098. #define $ac_func innocuous_$ac_func
  11099. /* System header to define __stub macros and hopefully few prototypes,
  11100. which can conflict with char $ac_func (); below.
  11101. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11102. <limits.h> exists even on freestanding compilers. */
  11103. #ifdef __STDC__
  11104. # include <limits.h>
  11105. #else
  11106. # include <assert.h>
  11107. #endif
  11108. #undef $ac_func
  11109. /* Override any GCC internal prototype to avoid an error.
  11110. Use char because int might match the return type of a GCC
  11111. builtin and then its argument prototype would still apply. */
  11112. #ifdef __cplusplus
  11113. extern "C"
  11114. #endif
  11115. char $ac_func ();
  11116. /* The GNU C library defines this for functions which it implements
  11117. to always fail with ENOSYS. Some functions are actually named
  11118. something starting with __ and the normal name is an alias. */
  11119. #if defined __stub_$ac_func || defined __stub___$ac_func
  11120. choke me
  11121. #endif
  11122. int
  11123. main ()
  11124. {
  11125. return $ac_func ();
  11126. ;
  11127. return 0;
  11128. }
  11129. _ACEOF
  11130. rm -f conftest.$ac_objext conftest$ac_exeext
  11131. if { (ac_try="$ac_link"
  11132. case "(($ac_try" in
  11133. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11134. *) ac_try_echo=$ac_try;;
  11135. esac
  11136. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11137. (eval "$ac_link") 2>conftest.er1
  11138. ac_status=$?
  11139. grep -v '^ *+' conftest.er1 >conftest.err
  11140. rm -f conftest.er1
  11141. cat conftest.err >&5
  11142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11143. (exit $ac_status); } &&
  11144. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  11145. { (case "(($ac_try" in
  11146. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11147. *) ac_try_echo=$ac_try;;
  11148. esac
  11149. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11150. (eval "$ac_try") 2>&5
  11151. ac_status=$?
  11152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11153. (exit $ac_status); }; } &&
  11154. { ac_try='test -s conftest$ac_exeext'
  11155. { (case "(($ac_try" in
  11156. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11157. *) ac_try_echo=$ac_try;;
  11158. esac
  11159. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11160. (eval "$ac_try") 2>&5
  11161. ac_status=$?
  11162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11163. (exit $ac_status); }; }; then
  11164. eval "$as_ac_var=yes"
  11165. else
  11166. echo "$as_me: failed program was:" >&5
  11167. sed 's/^/| /' conftest.$ac_ext >&5
  11168. eval "$as_ac_var=no"
  11169. fi
  11170. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11171. conftest$ac_exeext conftest.$ac_ext
  11172. fi
  11173. ac_res=`eval echo '${'$as_ac_var'}'`
  11174. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11175. echo "${ECHO_T}$ac_res" >&6; }
  11176. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11177. cat >>confdefs.h <<_ACEOF
  11178. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11179. _ACEOF
  11180. else
  11181. # strftime is in -lintl on SCO UNIX.
  11182. { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  11183. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
  11184. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  11185. echo $ECHO_N "(cached) $ECHO_C" >&6
  11186. else
  11187. ac_check_lib_save_LIBS=$LIBS
  11188. LIBS="-lintl $LIBS"
  11189. cat >conftest.$ac_ext <<_ACEOF
  11190. /* confdefs.h. */
  11191. _ACEOF
  11192. cat confdefs.h >>conftest.$ac_ext
  11193. cat >>conftest.$ac_ext <<_ACEOF
  11194. /* end confdefs.h. */
  11195. /* Override any GCC internal prototype to avoid an error.
  11196. Use char because int might match the return type of a GCC
  11197. builtin and then its argument prototype would still apply. */
  11198. #ifdef __cplusplus
  11199. extern "C"
  11200. #endif
  11201. char strftime ();
  11202. int
  11203. main ()
  11204. {
  11205. return strftime ();
  11206. ;
  11207. return 0;
  11208. }
  11209. _ACEOF
  11210. rm -f conftest.$ac_objext conftest$ac_exeext
  11211. if { (ac_try="$ac_link"
  11212. case "(($ac_try" in
  11213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11214. *) ac_try_echo=$ac_try;;
  11215. esac
  11216. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11217. (eval "$ac_link") 2>conftest.er1
  11218. ac_status=$?
  11219. grep -v '^ *+' conftest.er1 >conftest.err
  11220. rm -f conftest.er1
  11221. cat conftest.err >&5
  11222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11223. (exit $ac_status); } &&
  11224. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  11225. { (case "(($ac_try" in
  11226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11227. *) ac_try_echo=$ac_try;;
  11228. esac
  11229. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11230. (eval "$ac_try") 2>&5
  11231. ac_status=$?
  11232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11233. (exit $ac_status); }; } &&
  11234. { ac_try='test -s conftest$ac_exeext'
  11235. { (case "(($ac_try" in
  11236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11237. *) ac_try_echo=$ac_try;;
  11238. esac
  11239. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11240. (eval "$ac_try") 2>&5
  11241. ac_status=$?
  11242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11243. (exit $ac_status); }; }; then
  11244. ac_cv_lib_intl_strftime=yes
  11245. else
  11246. echo "$as_me: failed program was:" >&5
  11247. sed 's/^/| /' conftest.$ac_ext >&5
  11248. ac_cv_lib_intl_strftime=no
  11249. fi
  11250. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11251. conftest$ac_exeext conftest.$ac_ext
  11252. LIBS=$ac_check_lib_save_LIBS
  11253. fi
  11254. { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  11255. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
  11256. if test $ac_cv_lib_intl_strftime = yes; then
  11257. cat >>confdefs.h <<\_ACEOF
  11258. #define HAVE_STRFTIME 1
  11259. _ACEOF
  11260. LIBS="-lintl $LIBS"
  11261. fi
  11262. fi
  11263. done
  11264. #checkpoint
  11265. cat >confcache <<\_ACEOF
  11266. # This file is a shell script that caches the results of configure
  11267. # tests run on this system so they can be shared between configure
  11268. # scripts and configure runs, see configure's option --config-cache.
  11269. # It is not useful on other systems. If it contains results you don't
  11270. # want to keep, you may remove or edit it.
  11271. #
  11272. # config.status only pays attention to the cache file if you give it
  11273. # the --recheck option to rerun configure.
  11274. #
  11275. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11276. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11277. # following values.
  11278. _ACEOF
  11279. # The following way of writing the cache mishandles newlines in values,
  11280. # but we know of no workaround that is simple, portable, and efficient.
  11281. # So, we kill variables containing newlines.
  11282. # Ultrix sh set writes to stderr and can't be redirected directly,
  11283. # and sets the high bit in the cache file unless we assign to the vars.
  11284. (
  11285. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11286. eval ac_val=\$$ac_var
  11287. case $ac_val in #(
  11288. *${as_nl}*)
  11289. case $ac_var in #(
  11290. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  11291. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  11292. esac
  11293. case $ac_var in #(
  11294. _ | IFS | as_nl) ;; #(
  11295. *) $as_unset $ac_var ;;
  11296. esac ;;
  11297. esac
  11298. done
  11299. (set) 2>&1 |
  11300. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11301. *${as_nl}ac_space=\ *)
  11302. # `set' does not quote correctly, so add quotes (double-quote
  11303. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11304. sed -n \
  11305. "s/'/'\\\\''/g;
  11306. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11307. ;; #(
  11308. *)
  11309. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11310. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11311. ;;
  11312. esac |
  11313. sort
  11314. ) |
  11315. sed '
  11316. /^ac_cv_env_/b end
  11317. t clear
  11318. :clear
  11319. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11320. t end
  11321. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11322. :end' >>confcache
  11323. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11324. if test -w "$cache_file"; then
  11325. test "x$cache_file" != "x/dev/null" &&
  11326. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11327. echo "$as_me: updating cache $cache_file" >&6;}
  11328. cat confcache >$cache_file
  11329. else
  11330. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11331. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11332. fi
  11333. fi
  11334. rm -f confcache
  11335. for ac_func in clock fsync getrusage isascii
  11336. do
  11337. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11338. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11339. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11340. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11341. echo $ECHO_N "(cached) $ECHO_C" >&6
  11342. else
  11343. cat >conftest.$ac_ext <<_ACEOF
  11344. /* confdefs.h. */
  11345. _ACEOF
  11346. cat confdefs.h >>conftest.$ac_ext
  11347. cat >>conftest.$ac_ext <<_ACEOF
  11348. /* end confdefs.h. */
  11349. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11350. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11351. #define $ac_func innocuous_$ac_func
  11352. /* System header to define __stub macros and hopefully few prototypes,
  11353. which can conflict with char $ac_func (); below.
  11354. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11355. <limits.h> exists even on freestanding compilers. */
  11356. #ifdef __STDC__
  11357. # include <limits.h>
  11358. #else
  11359. # include <assert.h>
  11360. #endif
  11361. #undef $ac_func
  11362. /* Override any GCC internal prototype to avoid an error.
  11363. Use char because int might match the return type of a GCC
  11364. builtin and then its argument prototype would still apply. */
  11365. #ifdef __cplusplus
  11366. extern "C"
  11367. #endif
  11368. char $ac_func ();
  11369. /* The GNU C library defines this for functions which it implements
  11370. to always fail with ENOSYS. Some functions are actually named
  11371. something starting with __ and the normal name is an alias. */
  11372. #if defined __stub_$ac_func || defined __stub___$ac_func
  11373. choke me
  11374. #endif
  11375. int
  11376. main ()
  11377. {
  11378. return $ac_func ();
  11379. ;
  11380. return 0;
  11381. }
  11382. _ACEOF
  11383. rm -f conftest.$ac_objext conftest$ac_exeext
  11384. if { (ac_try="$ac_link"
  11385. case "(($ac_try" in
  11386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11387. *) ac_try_echo=$ac_try;;
  11388. esac
  11389. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11390. (eval "$ac_link") 2>conftest.er1
  11391. ac_status=$?
  11392. grep -v '^ *+' conftest.er1 >conftest.err
  11393. rm -f conftest.er1
  11394. cat conftest.err >&5
  11395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11396. (exit $ac_status); } &&
  11397. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  11398. { (case "(($ac_try" in
  11399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11400. *) ac_try_echo=$ac_try;;
  11401. esac
  11402. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11403. (eval "$ac_try") 2>&5
  11404. ac_status=$?
  11405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11406. (exit $ac_status); }; } &&
  11407. { ac_try='test -s conftest$ac_exeext'
  11408. { (case "(($ac_try" in
  11409. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11410. *) ac_try_echo=$ac_try;;
  11411. esac
  11412. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11413. (eval "$ac_try") 2>&5
  11414. ac_status=$?
  11415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11416. (exit $ac_status); }; }; then
  11417. eval "$as_ac_var=yes"
  11418. else
  11419. echo "$as_me: failed program was:" >&5
  11420. sed 's/^/| /' conftest.$ac_ext >&5
  11421. eval "$as_ac_var=no"
  11422. fi
  11423. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11424. conftest$ac_exeext conftest.$ac_ext
  11425. fi
  11426. ac_res=`eval echo '${'$as_ac_var'}'`
  11427. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11428. echo "${ECHO_T}$ac_res" >&6; }
  11429. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11430. cat >>confdefs.h <<_ACEOF
  11431. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11432. _ACEOF
  11433. fi
  11434. done
  11435. for ac_func in memcpy memset random rename snprintf srandom gettime
  11436. do
  11437. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11438. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11439. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11440. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11441. echo $ECHO_N "(cached) $ECHO_C" >&6
  11442. else
  11443. cat >conftest.$ac_ext <<_ACEOF
  11444. /* confdefs.h. */
  11445. _ACEOF
  11446. cat confdefs.h >>conftest.$ac_ext
  11447. cat >>conftest.$ac_ext <<_ACEOF
  11448. /* end confdefs.h. */
  11449. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11450. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11451. #define $ac_func innocuous_$ac_func
  11452. /* System header to define __stub macros and hopefully few prototypes,
  11453. which can conflict with char $ac_func (); below.
  11454. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11455. <limits.h> exists even on freestanding compilers. */
  11456. #ifdef __STDC__
  11457. # include <limits.h>
  11458. #else
  11459. # include <assert.h>
  11460. #endif
  11461. #undef $ac_func
  11462. /* Override any GCC internal prototype to avoid an error.
  11463. Use char because int might match the return type of a GCC
  11464. builtin and then its argument prototype would still apply. */
  11465. #ifdef __cplusplus
  11466. extern "C"
  11467. #endif
  11468. char $ac_func ();
  11469. /* The GNU C library defines this for functions which it implements
  11470. to always fail with ENOSYS. Some functions are actually named
  11471. something starting with __ and the normal name is an alias. */
  11472. #if defined __stub_$ac_func || defined __stub___$ac_func
  11473. choke me
  11474. #endif
  11475. int
  11476. main ()
  11477. {
  11478. return $ac_func ();
  11479. ;
  11480. return 0;
  11481. }
  11482. _ACEOF
  11483. rm -f conftest.$ac_objext conftest$ac_exeext
  11484. if { (ac_try="$ac_link"
  11485. case "(($ac_try" in
  11486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11487. *) ac_try_echo=$ac_try;;
  11488. esac
  11489. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11490. (eval "$ac_link") 2>conftest.er1
  11491. ac_status=$?
  11492. grep -v '^ *+' conftest.er1 >conftest.err
  11493. rm -f conftest.er1
  11494. cat conftest.err >&5
  11495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11496. (exit $ac_status); } &&
  11497. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  11498. { (case "(($ac_try" in
  11499. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11500. *) ac_try_echo=$ac_try;;
  11501. esac
  11502. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11503. (eval "$ac_try") 2>&5
  11504. ac_status=$?
  11505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11506. (exit $ac_status); }; } &&
  11507. { ac_try='test -s conftest$ac_exeext'
  11508. { (case "(($ac_try" in
  11509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11510. *) ac_try_echo=$ac_try;;
  11511. esac
  11512. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11513. (eval "$ac_try") 2>&5
  11514. ac_status=$?
  11515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11516. (exit $ac_status); }; }; then
  11517. eval "$as_ac_var=yes"
  11518. else
  11519. echo "$as_me: failed program was:" >&5
  11520. sed 's/^/| /' conftest.$ac_ext >&5
  11521. eval "$as_ac_var=no"
  11522. fi
  11523. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11524. conftest$ac_exeext conftest.$ac_ext
  11525. fi
  11526. ac_res=`eval echo '${'$as_ac_var'}'`
  11527. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11528. echo "${ECHO_T}$ac_res" >&6; }
  11529. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11530. cat >>confdefs.h <<_ACEOF
  11531. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11532. _ACEOF
  11533. fi
  11534. done
  11535. #checkpoint
  11536. cat >confcache <<\_ACEOF
  11537. # This file is a shell script that caches the results of configure
  11538. # tests run on this system so they can be shared between configure
  11539. # scripts and configure runs, see configure's option --config-cache.
  11540. # It is not useful on other systems. If it contains results you don't
  11541. # want to keep, you may remove or edit it.
  11542. #
  11543. # config.status only pays attention to the cache file if you give it
  11544. # the --recheck option to rerun configure.
  11545. #
  11546. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11547. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11548. # following values.
  11549. _ACEOF
  11550. # The following way of writing the cache mishandles newlines in values,
  11551. # but we know of no workaround that is simple, portable, and efficient.
  11552. # So, we kill variables containing newlines.
  11553. # Ultrix sh set writes to stderr and can't be redirected directly,
  11554. # and sets the high bit in the cache file unless we assign to the vars.
  11555. (
  11556. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11557. eval ac_val=\$$ac_var
  11558. case $ac_val in #(
  11559. *${as_nl}*)
  11560. case $ac_var in #(
  11561. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  11562. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  11563. esac
  11564. case $ac_var in #(
  11565. _ | IFS | as_nl) ;; #(
  11566. *) $as_unset $ac_var ;;
  11567. esac ;;
  11568. esac
  11569. done
  11570. (set) 2>&1 |
  11571. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11572. *${as_nl}ac_space=\ *)
  11573. # `set' does not quote correctly, so add quotes (double-quote
  11574. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11575. sed -n \
  11576. "s/'/'\\\\''/g;
  11577. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11578. ;; #(
  11579. *)
  11580. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11581. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11582. ;;
  11583. esac |
  11584. sort
  11585. ) |
  11586. sed '
  11587. /^ac_cv_env_/b end
  11588. t clear
  11589. :clear
  11590. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11591. t end
  11592. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11593. :end' >>confcache
  11594. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11595. if test -w "$cache_file"; then
  11596. test "x$cache_file" != "x/dev/null" &&
  11597. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11598. echo "$as_me: updating cache $cache_file" >&6;}
  11599. cat confcache >$cache_file
  11600. else
  11601. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11602. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11603. fi
  11604. fi
  11605. rm -f confcache
  11606. for ac_func in strcasecmp strncasecmp vsnprintf
  11607. do
  11608. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11609. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11610. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11611. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11612. echo $ECHO_N "(cached) $ECHO_C" >&6
  11613. else
  11614. cat >conftest.$ac_ext <<_ACEOF
  11615. /* confdefs.h. */
  11616. _ACEOF
  11617. cat confdefs.h >>conftest.$ac_ext
  11618. cat >>conftest.$ac_ext <<_ACEOF
  11619. /* end confdefs.h. */
  11620. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11621. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11622. #define $ac_func innocuous_$ac_func
  11623. /* System header to define __stub macros and hopefully few prototypes,
  11624. which can conflict with char $ac_func (); below.
  11625. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11626. <limits.h> exists even on freestanding compilers. */
  11627. #ifdef __STDC__
  11628. # include <limits.h>
  11629. #else
  11630. # include <assert.h>
  11631. #endif
  11632. #undef $ac_func
  11633. /* Override any GCC internal prototype to avoid an error.
  11634. Use char because int might match the return type of a GCC
  11635. builtin and then its argument prototype would still apply. */
  11636. #ifdef __cplusplus
  11637. extern "C"
  11638. #endif
  11639. char $ac_func ();
  11640. /* The GNU C library defines this for functions which it implements
  11641. to always fail with ENOSYS. Some functions are actually named
  11642. something starting with __ and the normal name is an alias. */
  11643. #if defined __stub_$ac_func || defined __stub___$ac_func
  11644. choke me
  11645. #endif
  11646. int
  11647. main ()
  11648. {
  11649. return $ac_func ();
  11650. ;
  11651. return 0;
  11652. }
  11653. _ACEOF
  11654. rm -f conftest.$ac_objext conftest$ac_exeext
  11655. if { (ac_try="$ac_link"
  11656. case "(($ac_try" in
  11657. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11658. *) ac_try_echo=$ac_try;;
  11659. esac
  11660. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11661. (eval "$ac_link") 2>conftest.er1
  11662. ac_status=$?
  11663. grep -v '^ *+' conftest.er1 >conftest.err
  11664. rm -f conftest.er1
  11665. cat conftest.err >&5
  11666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11667. (exit $ac_status); } &&
  11668. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  11669. { (case "(($ac_try" in
  11670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11671. *) ac_try_echo=$ac_try;;
  11672. esac
  11673. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11674. (eval "$ac_try") 2>&5
  11675. ac_status=$?
  11676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11677. (exit $ac_status); }; } &&
  11678. { ac_try='test -s conftest$ac_exeext'
  11679. { (case "(($ac_try" in
  11680. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11681. *) ac_try_echo=$ac_try;;
  11682. esac
  11683. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11684. (eval "$ac_try") 2>&5
  11685. ac_status=$?
  11686. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11687. (exit $ac_status); }; }; then
  11688. eval "$as_ac_var=yes"
  11689. else
  11690. echo "$as_me: failed program was:" >&5
  11691. sed 's/^/| /' conftest.$ac_ext >&5
  11692. eval "$as_ac_var=no"
  11693. fi
  11694. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11695. conftest$ac_exeext conftest.$ac_ext
  11696. fi
  11697. ac_res=`eval echo '${'$as_ac_var'}'`
  11698. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11699. echo "${ECHO_T}$ac_res" >&6; }
  11700. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11701. cat >>confdefs.h <<_ACEOF
  11702. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11703. _ACEOF
  11704. fi
  11705. done
  11706. #autoscan suggested this....
  11707. #These are recommended by autoscan, but no code supports it currently
  11708. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  11709. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  11710. for ac_func in vsprintf
  11711. do
  11712. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11713. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11714. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11715. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11716. echo $ECHO_N "(cached) $ECHO_C" >&6
  11717. else
  11718. cat >conftest.$ac_ext <<_ACEOF
  11719. /* confdefs.h. */
  11720. _ACEOF
  11721. cat confdefs.h >>conftest.$ac_ext
  11722. cat >>conftest.$ac_ext <<_ACEOF
  11723. /* end confdefs.h. */
  11724. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11725. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11726. #define $ac_func innocuous_$ac_func
  11727. /* System header to define __stub macros and hopefully few prototypes,
  11728. which can conflict with char $ac_func (); below.
  11729. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11730. <limits.h> exists even on freestanding compilers. */
  11731. #ifdef __STDC__
  11732. # include <limits.h>
  11733. #else
  11734. # include <assert.h>
  11735. #endif
  11736. #undef $ac_func
  11737. /* Override any GCC internal prototype to avoid an error.
  11738. Use char because int might match the return type of a GCC
  11739. builtin and then its argument prototype would still apply. */
  11740. #ifdef __cplusplus
  11741. extern "C"
  11742. #endif
  11743. char $ac_func ();
  11744. /* The GNU C library defines this for functions which it implements
  11745. to always fail with ENOSYS. Some functions are actually named
  11746. something starting with __ and the normal name is an alias. */
  11747. #if defined __stub_$ac_func || defined __stub___$ac_func
  11748. choke me
  11749. #endif
  11750. int
  11751. main ()
  11752. {
  11753. return $ac_func ();
  11754. ;
  11755. return 0;
  11756. }
  11757. _ACEOF
  11758. rm -f conftest.$ac_objext conftest$ac_exeext
  11759. if { (ac_try="$ac_link"
  11760. case "(($ac_try" in
  11761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11762. *) ac_try_echo=$ac_try;;
  11763. esac
  11764. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11765. (eval "$ac_link") 2>conftest.er1
  11766. ac_status=$?
  11767. grep -v '^ *+' conftest.er1 >conftest.err
  11768. rm -f conftest.er1
  11769. cat conftest.err >&5
  11770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11771. (exit $ac_status); } &&
  11772. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  11773. { (case "(($ac_try" in
  11774. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11775. *) ac_try_echo=$ac_try;;
  11776. esac
  11777. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11778. (eval "$ac_try") 2>&5
  11779. ac_status=$?
  11780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11781. (exit $ac_status); }; } &&
  11782. { ac_try='test -s conftest$ac_exeext'
  11783. { (case "(($ac_try" in
  11784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11785. *) ac_try_echo=$ac_try;;
  11786. esac
  11787. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11788. (eval "$ac_try") 2>&5
  11789. ac_status=$?
  11790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11791. (exit $ac_status); }; }; then
  11792. eval "$as_ac_var=yes"
  11793. else
  11794. echo "$as_me: failed program was:" >&5
  11795. sed 's/^/| /' conftest.$ac_ext >&5
  11796. eval "$as_ac_var=no"
  11797. fi
  11798. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11799. conftest$ac_exeext conftest.$ac_ext
  11800. fi
  11801. ac_res=`eval echo '${'$as_ac_var'}'`
  11802. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11803. echo "${ECHO_T}$ac_res" >&6; }
  11804. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11805. cat >>confdefs.h <<_ACEOF
  11806. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11807. _ACEOF
  11808. fi
  11809. done
  11810. if test "$ac_cv_func_vsprintf" = "no"
  11811. then
  11812. cat << 'EOF' >&2
  11813. configure: error:
  11814. Your system does not have the sprintf/vsprintf libraries.
  11815. These are required to compile almost anything. Sorry.
  11816. EOF
  11817. exit 1
  11818. fi
  11819. for ac_func in uname
  11820. do
  11821. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11822. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11823. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11824. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11825. echo $ECHO_N "(cached) $ECHO_C" >&6
  11826. else
  11827. cat >conftest.$ac_ext <<_ACEOF
  11828. /* confdefs.h. */
  11829. _ACEOF
  11830. cat confdefs.h >>conftest.$ac_ext
  11831. cat >>conftest.$ac_ext <<_ACEOF
  11832. /* end confdefs.h. */
  11833. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11834. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11835. #define $ac_func innocuous_$ac_func
  11836. /* System header to define __stub macros and hopefully few prototypes,
  11837. which can conflict with char $ac_func (); below.
  11838. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11839. <limits.h> exists even on freestanding compilers. */
  11840. #ifdef __STDC__
  11841. # include <limits.h>
  11842. #else
  11843. # include <assert.h>
  11844. #endif
  11845. #undef $ac_func
  11846. /* Override any GCC internal prototype to avoid an error.
  11847. Use char because int might match the return type of a GCC
  11848. builtin and then its argument prototype would still apply. */
  11849. #ifdef __cplusplus
  11850. extern "C"
  11851. #endif
  11852. char $ac_func ();
  11853. /* The GNU C library defines this for functions which it implements
  11854. to always fail with ENOSYS. Some functions are actually named
  11855. something starting with __ and the normal name is an alias. */
  11856. #if defined __stub_$ac_func || defined __stub___$ac_func
  11857. choke me
  11858. #endif
  11859. int
  11860. main ()
  11861. {
  11862. return $ac_func ();
  11863. ;
  11864. return 0;
  11865. }
  11866. _ACEOF
  11867. rm -f conftest.$ac_objext conftest$ac_exeext
  11868. if { (ac_try="$ac_link"
  11869. case "(($ac_try" in
  11870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11871. *) ac_try_echo=$ac_try;;
  11872. esac
  11873. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11874. (eval "$ac_link") 2>conftest.er1
  11875. ac_status=$?
  11876. grep -v '^ *+' conftest.er1 >conftest.err
  11877. rm -f conftest.er1
  11878. cat conftest.err >&5
  11879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11880. (exit $ac_status); } &&
  11881. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  11882. { (case "(($ac_try" in
  11883. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11884. *) ac_try_echo=$ac_try;;
  11885. esac
  11886. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11887. (eval "$ac_try") 2>&5
  11888. ac_status=$?
  11889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11890. (exit $ac_status); }; } &&
  11891. { ac_try='test -s conftest$ac_exeext'
  11892. { (case "(($ac_try" in
  11893. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11894. *) ac_try_echo=$ac_try;;
  11895. esac
  11896. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11897. (eval "$ac_try") 2>&5
  11898. ac_status=$?
  11899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11900. (exit $ac_status); }; }; then
  11901. eval "$as_ac_var=yes"
  11902. else
  11903. echo "$as_me: failed program was:" >&5
  11904. sed 's/^/| /' conftest.$ac_ext >&5
  11905. eval "$as_ac_var=no"
  11906. fi
  11907. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11908. conftest$ac_exeext conftest.$ac_ext
  11909. fi
  11910. ac_res=`eval echo '${'$as_ac_var'}'`
  11911. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11912. echo "${ECHO_T}$ac_res" >&6; }
  11913. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11914. cat >>confdefs.h <<_ACEOF
  11915. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11916. _ACEOF
  11917. fi
  11918. done
  11919. if test "$ac_cv_func_uname" = "no"
  11920. then
  11921. cat << 'EOF' >&2
  11922. configure: error:
  11923. Your system does not have the uname() function.
  11924. This is required for the botpack.
  11925. EOF
  11926. exit 1
  11927. fi
  11928. # Make sure we have stdc headers, since we can't compile without them
  11929. if test "$ac_cv_header_stdc" = "no"
  11930. then
  11931. cat << 'EOF' >&2
  11932. configure: error:
  11933. Your system must support ANSI C Header files.
  11934. These are required for the language support. Sorry.
  11935. EOF
  11936. exit 1
  11937. fi
  11938. #checkpoint
  11939. cat >confcache <<\_ACEOF
  11940. # This file is a shell script that caches the results of configure
  11941. # tests run on this system so they can be shared between configure
  11942. # scripts and configure runs, see configure's option --config-cache.
  11943. # It is not useful on other systems. If it contains results you don't
  11944. # want to keep, you may remove or edit it.
  11945. #
  11946. # config.status only pays attention to the cache file if you give it
  11947. # the --recheck option to rerun configure.
  11948. #
  11949. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11950. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11951. # following values.
  11952. _ACEOF
  11953. # The following way of writing the cache mishandles newlines in values,
  11954. # but we know of no workaround that is simple, portable, and efficient.
  11955. # So, we kill variables containing newlines.
  11956. # Ultrix sh set writes to stderr and can't be redirected directly,
  11957. # and sets the high bit in the cache file unless we assign to the vars.
  11958. (
  11959. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11960. eval ac_val=\$$ac_var
  11961. case $ac_val in #(
  11962. *${as_nl}*)
  11963. case $ac_var in #(
  11964. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  11965. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  11966. esac
  11967. case $ac_var in #(
  11968. _ | IFS | as_nl) ;; #(
  11969. *) $as_unset $ac_var ;;
  11970. esac ;;
  11971. esac
  11972. done
  11973. (set) 2>&1 |
  11974. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11975. *${as_nl}ac_space=\ *)
  11976. # `set' does not quote correctly, so add quotes (double-quote
  11977. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11978. sed -n \
  11979. "s/'/'\\\\''/g;
  11980. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11981. ;; #(
  11982. *)
  11983. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11984. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11985. ;;
  11986. esac |
  11987. sort
  11988. ) |
  11989. sed '
  11990. /^ac_cv_env_/b end
  11991. t clear
  11992. :clear
  11993. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11994. t end
  11995. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11996. :end' >>confcache
  11997. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11998. if test -w "$cache_file"; then
  11999. test "x$cache_file" != "x/dev/null" &&
  12000. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  12001. echo "$as_me: updating cache $cache_file" >&6;}
  12002. cat confcache >$cache_file
  12003. else
  12004. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  12005. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12006. fi
  12007. fi
  12008. rm -f confcache
  12009. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  12010. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  12011. cat >>confdefs.h <<_ACEOF
  12012. #define EGG_VERSION $version_num
  12013. _ACEOF
  12014. #FIND_WRAPS
  12015. case "$srcdir" in
  12016. [\\/]* | ?:[\\/]*)
  12017. MOD_UPDIR=""
  12018. ;;
  12019. *)
  12020. MOD_UPDIR="../"
  12021. ;;
  12022. esac
  12023. files="src/Makefile.in src/compat/Makefile.in src/crypto/Makefile.in src/mod/channels.mod/Makefile src/mod/compress.mod/Makefile src/mod/console.mod/Makefile src/mod/ctcp.mod/Makefile src/mod/irc.mod/Makefile src/mod/notes.mod/Makefile src/mod/server.mod/Makefile src/mod/share.mod/Makefile src/mod/transfer.mod/Makefile src/mod/update.mod/Makefile"
  12024. for mf in $files; do
  12025. # Strip MF so we end up with the name of the file.
  12026. # echo "MF: $mf"
  12027. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12028. dirpart=`$as_dirname -- "$mf" ||
  12029. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12030. X"$mf" : 'X\(//\)[^/]' \| \
  12031. X"$mf" : 'X\(//\)$' \| \
  12032. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12033. echo X"$mf" |
  12034. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12035. s//\1/
  12036. q
  12037. }
  12038. /^X\(\/\/\)[^/].*/{
  12039. s//\1/
  12040. q
  12041. }
  12042. /^X\(\/\/\)$/{
  12043. s//\1/
  12044. q
  12045. }
  12046. /^X\(\/\).*/{
  12047. s//\1/
  12048. q
  12049. }
  12050. s/.*/./; q'`
  12051. # echo "dirpart: $dirpart mf: $mf"
  12052. # rm -rf "$dirpart/.deps/"
  12053. rm -f "$dirpart/.deps/includes"
  12054. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  12055. for file in `sed -n -e '
  12056. /^OBJS = .*\\\\$/ {
  12057. s/^OBJS = //
  12058. :loop
  12059. s/\\\\$//
  12060. p
  12061. n
  12062. /\\\\$/ b loop
  12063. p
  12064. }
  12065. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  12066. do
  12067. base=`basename $file .o`
  12068. test -f "$dirpart/$base.c" || continue
  12069. if ! test -f "$dirpart/.deps/$base.Po"; then
  12070. echo '# dummy' > "$dirpart/.deps/$base.Po"
  12071. #Remove the .o file, because it needs to be recompiled for its dependancies.
  12072. if test -f "$dirpart/$base.o"; then
  12073. rm -f "$dirpart/$base.o"
  12074. fi
  12075. fi
  12076. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  12077. echo "_$base.c:" >> "$dirpart/.deps/includes"
  12078. done
  12079. done
  12080. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/buildinfo.h"
  12081. cat >confcache <<\_ACEOF
  12082. # This file is a shell script that caches the results of configure
  12083. # tests run on this system so they can be shared between configure
  12084. # scripts and configure runs, see configure's option --config-cache.
  12085. # It is not useful on other systems. If it contains results you don't
  12086. # want to keep, you may remove or edit it.
  12087. #
  12088. # config.status only pays attention to the cache file if you give it
  12089. # the --recheck option to rerun configure.
  12090. #
  12091. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12092. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12093. # following values.
  12094. _ACEOF
  12095. # The following way of writing the cache mishandles newlines in values,
  12096. # but we know of no workaround that is simple, portable, and efficient.
  12097. # So, we kill variables containing newlines.
  12098. # Ultrix sh set writes to stderr and can't be redirected directly,
  12099. # and sets the high bit in the cache file unless we assign to the vars.
  12100. (
  12101. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12102. eval ac_val=\$$ac_var
  12103. case $ac_val in #(
  12104. *${as_nl}*)
  12105. case $ac_var in #(
  12106. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  12107. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  12108. esac
  12109. case $ac_var in #(
  12110. _ | IFS | as_nl) ;; #(
  12111. *) $as_unset $ac_var ;;
  12112. esac ;;
  12113. esac
  12114. done
  12115. (set) 2>&1 |
  12116. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12117. *${as_nl}ac_space=\ *)
  12118. # `set' does not quote correctly, so add quotes (double-quote
  12119. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12120. sed -n \
  12121. "s/'/'\\\\''/g;
  12122. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12123. ;; #(
  12124. *)
  12125. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12126. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12127. ;;
  12128. esac |
  12129. sort
  12130. ) |
  12131. sed '
  12132. /^ac_cv_env_/b end
  12133. t clear
  12134. :clear
  12135. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12136. t end
  12137. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12138. :end' >>confcache
  12139. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12140. if test -w "$cache_file"; then
  12141. test "x$cache_file" != "x/dev/null" &&
  12142. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  12143. echo "$as_me: updating cache $cache_file" >&6;}
  12144. cat confcache >$cache_file
  12145. else
  12146. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  12147. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12148. fi
  12149. fi
  12150. rm -f confcache
  12151. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12152. # Let make expand exec_prefix.
  12153. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12154. DEFS=-DHAVE_CONFIG_H
  12155. ac_libobjs=
  12156. ac_ltlibobjs=
  12157. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12158. # 1. Remove the extension, and $U if already installed.
  12159. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12160. ac_i=`echo "$ac_i" | sed "$ac_script"`
  12161. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12162. # will be set to the directory where LIBOBJS objects are built.
  12163. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12164. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  12165. done
  12166. LIBOBJS=$ac_libobjs
  12167. LTLIBOBJS=$ac_ltlibobjs
  12168. : ${CONFIG_STATUS=./config.status}
  12169. ac_clean_files_save=$ac_clean_files
  12170. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12171. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  12172. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12173. cat >$CONFIG_STATUS <<_ACEOF
  12174. #! $SHELL
  12175. # Generated by $as_me.
  12176. # Run this file to recreate the current configuration.
  12177. # Compiler output produced by configure, useful for debugging
  12178. # configure, is in config.log if it exists.
  12179. debug=false
  12180. ac_cs_recheck=false
  12181. ac_cs_silent=false
  12182. SHELL=\${CONFIG_SHELL-$SHELL}
  12183. _ACEOF
  12184. cat >>$CONFIG_STATUS <<\_ACEOF
  12185. ## --------------------- ##
  12186. ## M4sh Initialization. ##
  12187. ## --------------------- ##
  12188. # Be Bourne compatible
  12189. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12190. emulate sh
  12191. NULLCMD=:
  12192. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  12193. # is contrary to our usage. Disable this feature.
  12194. alias -g '${1+"$@"}'='"$@"'
  12195. setopt NO_GLOB_SUBST
  12196. else
  12197. case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  12198. fi
  12199. BIN_SH=xpg4; export BIN_SH # for Tru64
  12200. DUALCASE=1; export DUALCASE # for MKS sh
  12201. # PATH needs CR
  12202. # Avoid depending upon Character Ranges.
  12203. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12204. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12205. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12206. as_cr_digits='0123456789'
  12207. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12208. # The user is always right.
  12209. if test "${PATH_SEPARATOR+set}" != set; then
  12210. echo "#! /bin/sh" >conf$$.sh
  12211. echo "exit 0" >>conf$$.sh
  12212. chmod +x conf$$.sh
  12213. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  12214. PATH_SEPARATOR=';'
  12215. else
  12216. PATH_SEPARATOR=:
  12217. fi
  12218. rm -f conf$$.sh
  12219. fi
  12220. # Support unset when possible.
  12221. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  12222. as_unset=unset
  12223. else
  12224. as_unset=false
  12225. fi
  12226. # IFS
  12227. # We need space, tab and new line, in precisely that order. Quoting is
  12228. # there to prevent editors from complaining about space-tab.
  12229. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12230. # splitting by setting IFS to empty value.)
  12231. as_nl='
  12232. '
  12233. IFS=" "" $as_nl"
  12234. # Find who we are. Look in the path if we contain no directory separator.
  12235. case $0 in
  12236. *[\\/]* ) as_myself=$0 ;;
  12237. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12238. for as_dir in $PATH
  12239. do
  12240. IFS=$as_save_IFS
  12241. test -z "$as_dir" && as_dir=.
  12242. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12243. done
  12244. IFS=$as_save_IFS
  12245. ;;
  12246. esac
  12247. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12248. # in which case we are not to be found in the path.
  12249. if test "x$as_myself" = x; then
  12250. as_myself=$0
  12251. fi
  12252. if test ! -f "$as_myself"; then
  12253. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12254. { (exit 1); exit 1; }
  12255. fi
  12256. # Work around bugs in pre-3.0 UWIN ksh.
  12257. for as_var in ENV MAIL MAILPATH
  12258. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12259. done
  12260. PS1='$ '
  12261. PS2='> '
  12262. PS4='+ '
  12263. # NLS nuisances.
  12264. for as_var in \
  12265. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  12266. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  12267. LC_TELEPHONE LC_TIME
  12268. do
  12269. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  12270. eval $as_var=C; export $as_var
  12271. else
  12272. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12273. fi
  12274. done
  12275. # Required to use basename.
  12276. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12277. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12278. as_expr=expr
  12279. else
  12280. as_expr=false
  12281. fi
  12282. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12283. as_basename=basename
  12284. else
  12285. as_basename=false
  12286. fi
  12287. # Name of the executable.
  12288. as_me=`$as_basename -- "$0" ||
  12289. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12290. X"$0" : 'X\(//\)$' \| \
  12291. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12292. echo X/"$0" |
  12293. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12294. s//\1/
  12295. q
  12296. }
  12297. /^X\/\(\/\/\)$/{
  12298. s//\1/
  12299. q
  12300. }
  12301. /^X\/\(\/\).*/{
  12302. s//\1/
  12303. q
  12304. }
  12305. s/.*/./; q'`
  12306. # CDPATH.
  12307. $as_unset CDPATH
  12308. as_lineno_1=$LINENO
  12309. as_lineno_2=$LINENO
  12310. test "x$as_lineno_1" != "x$as_lineno_2" &&
  12311. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  12312. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  12313. # uniformly replaced by the line number. The first 'sed' inserts a
  12314. # line-number line after each line using $LINENO; the second 'sed'
  12315. # does the real work. The second script uses 'N' to pair each
  12316. # line-number line with the line containing $LINENO, and appends
  12317. # trailing '-' during substitution so that $LINENO is not a special
  12318. # case at line end.
  12319. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  12320. # scripts with optimization help from Paolo Bonzini. Blame Lee
  12321. # E. McMahon (1931-1989) for sed's syntax. :-)
  12322. sed -n '
  12323. p
  12324. /[$]LINENO/=
  12325. ' <$as_myself |
  12326. sed '
  12327. s/[$]LINENO.*/&-/
  12328. t lineno
  12329. b
  12330. :lineno
  12331. N
  12332. :loop
  12333. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  12334. t loop
  12335. s/-\n.*//
  12336. ' >$as_me.lineno &&
  12337. chmod +x "$as_me.lineno" ||
  12338. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  12339. { (exit 1); exit 1; }; }
  12340. # Don't try to exec as it changes $[0], causing all sort of problems
  12341. # (the dirname of $[0] is not the place where we might find the
  12342. # original and so on. Autoconf is especially sensitive to this).
  12343. . "./$as_me.lineno"
  12344. # Exit status is that of the last command.
  12345. exit
  12346. }
  12347. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12348. as_dirname=dirname
  12349. else
  12350. as_dirname=false
  12351. fi
  12352. ECHO_C= ECHO_N= ECHO_T=
  12353. case `echo -n x` in
  12354. -n*)
  12355. case `echo 'x\c'` in
  12356. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12357. *) ECHO_C='\c';;
  12358. esac;;
  12359. *)
  12360. ECHO_N='-n';;
  12361. esac
  12362. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12363. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12364. as_expr=expr
  12365. else
  12366. as_expr=false
  12367. fi
  12368. rm -f conf$$ conf$$.exe conf$$.file
  12369. if test -d conf$$.dir; then
  12370. rm -f conf$$.dir/conf$$.file
  12371. else
  12372. rm -f conf$$.dir
  12373. mkdir conf$$.dir
  12374. fi
  12375. echo >conf$$.file
  12376. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12377. as_ln_s='ln -s'
  12378. # ... but there are two gotchas:
  12379. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12380. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12381. # In both cases, we have to default to `cp -p'.
  12382. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12383. as_ln_s='cp -p'
  12384. elif ln conf$$.file conf$$ 2>/dev/null; then
  12385. as_ln_s=ln
  12386. else
  12387. as_ln_s='cp -p'
  12388. fi
  12389. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12390. rmdir conf$$.dir 2>/dev/null
  12391. if mkdir -p . 2>/dev/null; then
  12392. as_mkdir_p=:
  12393. else
  12394. test -d ./-p && rmdir ./-p
  12395. as_mkdir_p=false
  12396. fi
  12397. # Find out whether ``test -x'' works. Don't use a zero-byte file, as
  12398. # systems may use methods other than mode bits to determine executability.
  12399. cat >conf$$.file <<_ASEOF
  12400. #! /bin/sh
  12401. exit 0
  12402. _ASEOF
  12403. chmod +x conf$$.file
  12404. if test -x conf$$.file >/dev/null 2>&1; then
  12405. as_executable_p="test -x"
  12406. else
  12407. as_executable_p=:
  12408. fi
  12409. rm -f conf$$.file
  12410. # Sed expression to map a string onto a valid CPP name.
  12411. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12412. # Sed expression to map a string onto a valid variable name.
  12413. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12414. exec 6>&1
  12415. # Save the log message, to keep $[0] and so on meaningful, and to
  12416. # report actual input values of CONFIG_FILES etc. instead of their
  12417. # values after options handling.
  12418. ac_log="
  12419. This file was extended by $as_me, which was
  12420. generated by GNU Autoconf 2.60a. Invocation command line was
  12421. CONFIG_FILES = $CONFIG_FILES
  12422. CONFIG_HEADERS = $CONFIG_HEADERS
  12423. CONFIG_LINKS = $CONFIG_LINKS
  12424. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12425. $ $0 $@
  12426. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12427. "
  12428. _ACEOF
  12429. cat >>$CONFIG_STATUS <<_ACEOF
  12430. # Files that config.status was made for.
  12431. config_files="$ac_config_files"
  12432. config_headers="$ac_config_headers"
  12433. _ACEOF
  12434. cat >>$CONFIG_STATUS <<\_ACEOF
  12435. ac_cs_usage="\
  12436. \`$as_me' instantiates files from templates according to the
  12437. current configuration.
  12438. Usage: $0 [OPTIONS] [FILE]...
  12439. -h, --help print this help, then exit
  12440. -V, --version print version number and configuration settings, then exit
  12441. -q, --quiet do not print progress messages
  12442. -d, --debug don't remove temporary files
  12443. --recheck update $as_me by reconfiguring in the same conditions
  12444. --file=FILE[:TEMPLATE]
  12445. instantiate the configuration file FILE
  12446. --header=FILE[:TEMPLATE]
  12447. instantiate the configuration header FILE
  12448. Configuration files:
  12449. $config_files
  12450. Configuration headers:
  12451. $config_headers
  12452. Report bugs to <bug-autoconf@gnu.org>."
  12453. _ACEOF
  12454. cat >>$CONFIG_STATUS <<_ACEOF
  12455. ac_cs_version="\\
  12456. config.status
  12457. configured by $0, generated by GNU Autoconf 2.60a,
  12458. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  12459. Copyright (C) 2006 Free Software Foundation, Inc.
  12460. This config.status script is free software; the Free Software Foundation
  12461. gives unlimited permission to copy, distribute and modify it."
  12462. ac_pwd='$ac_pwd'
  12463. srcdir='$srcdir'
  12464. _ACEOF
  12465. cat >>$CONFIG_STATUS <<\_ACEOF
  12466. # If no file are specified by the user, then we need to provide default
  12467. # value. By we need to know if files were specified by the user.
  12468. ac_need_defaults=:
  12469. while test $# != 0
  12470. do
  12471. case $1 in
  12472. --*=*)
  12473. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12474. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12475. ac_shift=:
  12476. ;;
  12477. *)
  12478. ac_option=$1
  12479. ac_optarg=$2
  12480. ac_shift=shift
  12481. ;;
  12482. esac
  12483. case $ac_option in
  12484. # Handling of the options.
  12485. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12486. ac_cs_recheck=: ;;
  12487. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12488. echo "$ac_cs_version"; exit ;;
  12489. --debug | --debu | --deb | --de | --d | -d )
  12490. debug=: ;;
  12491. --file | --fil | --fi | --f )
  12492. $ac_shift
  12493. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  12494. ac_need_defaults=false;;
  12495. --header | --heade | --head | --hea )
  12496. $ac_shift
  12497. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  12498. ac_need_defaults=false;;
  12499. --he | --h)
  12500. # Conflict between --help and --header
  12501. { echo "$as_me: error: ambiguous option: $1
  12502. Try \`$0 --help' for more information." >&2
  12503. { (exit 1); exit 1; }; };;
  12504. --help | --hel | -h )
  12505. echo "$ac_cs_usage"; exit ;;
  12506. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12507. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12508. ac_cs_silent=: ;;
  12509. # This is an error.
  12510. -*) { echo "$as_me: error: unrecognized option: $1
  12511. Try \`$0 --help' for more information." >&2
  12512. { (exit 1); exit 1; }; } ;;
  12513. *) ac_config_targets="$ac_config_targets $1"
  12514. ac_need_defaults=false ;;
  12515. esac
  12516. shift
  12517. done
  12518. ac_configure_extra_args=
  12519. if $ac_cs_silent; then
  12520. exec 6>/dev/null
  12521. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12522. fi
  12523. _ACEOF
  12524. cat >>$CONFIG_STATUS <<_ACEOF
  12525. if \$ac_cs_recheck; then
  12526. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  12527. CONFIG_SHELL=$SHELL
  12528. export CONFIG_SHELL
  12529. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12530. fi
  12531. _ACEOF
  12532. cat >>$CONFIG_STATUS <<\_ACEOF
  12533. exec 5>>config.log
  12534. {
  12535. echo
  12536. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12537. ## Running $as_me. ##
  12538. _ASBOX
  12539. echo "$ac_log"
  12540. } >&5
  12541. _ACEOF
  12542. cat >>$CONFIG_STATUS <<_ACEOF
  12543. _ACEOF
  12544. cat >>$CONFIG_STATUS <<\_ACEOF
  12545. # Handling of arguments.
  12546. for ac_config_target in $ac_config_targets
  12547. do
  12548. case $ac_config_target in
  12549. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12550. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12551. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12552. "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  12553. "src/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  12554. "src/mod/Makefile") CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  12555. "src/buildinfo.h") CONFIG_FILES="$CONFIG_FILES src/buildinfo.h" ;;
  12556. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  12557. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  12558. { (exit 1); exit 1; }; };;
  12559. esac
  12560. done
  12561. # If the user did not use the arguments to specify the items to instantiate,
  12562. # then the envvar interface is used. Set only those that are not.
  12563. # We use the long form for the default assignment because of an extremely
  12564. # bizarre bug on SunOS 4.1.3.
  12565. if $ac_need_defaults; then
  12566. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12567. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12568. fi
  12569. # Have a temporary directory for convenience. Make it in the build tree
  12570. # simply because there is no reason against having it here, and in addition,
  12571. # creating and moving files from /tmp can sometimes cause problems.
  12572. # Hook for its removal unless debugging.
  12573. # Note that there is a small window in which the directory will not be cleaned:
  12574. # after its creation but before its name has been assigned to `$tmp'.
  12575. $debug ||
  12576. {
  12577. tmp=
  12578. trap 'exit_status=$?
  12579. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  12580. ' 0
  12581. trap '{ (exit 1); exit 1; }' 1 2 13 15
  12582. }
  12583. # Create a (secure) tmp directory for tmp files.
  12584. {
  12585. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12586. test -n "$tmp" && test -d "$tmp"
  12587. } ||
  12588. {
  12589. tmp=./conf$$-$RANDOM
  12590. (umask 077 && mkdir "$tmp")
  12591. } ||
  12592. {
  12593. echo "$me: cannot create a temporary directory in ." >&2
  12594. { (exit 1); exit 1; }
  12595. }
  12596. #
  12597. # Set up the sed scripts for CONFIG_FILES section.
  12598. #
  12599. # No need to generate the scripts if there are no CONFIG_FILES.
  12600. # This happens for instance when ./config.status config.h
  12601. if test -n "$CONFIG_FILES"; then
  12602. _ACEOF
  12603. ac_delim='%!_!# '
  12604. for ac_last_try in false false false false false :; do
  12605. cat >conf$$subs.sed <<_ACEOF
  12606. SHELL!$SHELL$ac_delim
  12607. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  12608. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  12609. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  12610. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  12611. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  12612. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  12613. exec_prefix!$exec_prefix$ac_delim
  12614. prefix!$prefix$ac_delim
  12615. program_transform_name!$program_transform_name$ac_delim
  12616. bindir!$bindir$ac_delim
  12617. sbindir!$sbindir$ac_delim
  12618. libexecdir!$libexecdir$ac_delim
  12619. datarootdir!$datarootdir$ac_delim
  12620. datadir!$datadir$ac_delim
  12621. sysconfdir!$sysconfdir$ac_delim
  12622. sharedstatedir!$sharedstatedir$ac_delim
  12623. localstatedir!$localstatedir$ac_delim
  12624. includedir!$includedir$ac_delim
  12625. oldincludedir!$oldincludedir$ac_delim
  12626. docdir!$docdir$ac_delim
  12627. infodir!$infodir$ac_delim
  12628. htmldir!$htmldir$ac_delim
  12629. dvidir!$dvidir$ac_delim
  12630. pdfdir!$pdfdir$ac_delim
  12631. psdir!$psdir$ac_delim
  12632. libdir!$libdir$ac_delim
  12633. localedir!$localedir$ac_delim
  12634. mandir!$mandir$ac_delim
  12635. DEFS!$DEFS$ac_delim
  12636. ECHO_C!$ECHO_C$ac_delim
  12637. ECHO_N!$ECHO_N$ac_delim
  12638. ECHO_T!$ECHO_T$ac_delim
  12639. LIBS!$LIBS$ac_delim
  12640. build_alias!$build_alias$ac_delim
  12641. host_alias!$host_alias$ac_delim
  12642. target_alias!$target_alias$ac_delim
  12643. egg_ac_parameters!$egg_ac_parameters$ac_delim
  12644. CXX!$CXX$ac_delim
  12645. CXXFLAGS!$CXXFLAGS$ac_delim
  12646. LDFLAGS!$LDFLAGS$ac_delim
  12647. CPPFLAGS!$CPPFLAGS$ac_delim
  12648. ac_ct_CXX!$ac_ct_CXX$ac_delim
  12649. EXEEXT!$EXEEXT$ac_delim
  12650. OBJEXT!$OBJEXT$ac_delim
  12651. CXXCPP!$CXXCPP$ac_delim
  12652. GREP!$GREP$ac_delim
  12653. EGREP!$EGREP$ac_delim
  12654. CCDEPMODE!$CCDEPMODE$ac_delim
  12655. GCC3!$GCC3$ac_delim
  12656. SET_MAKE!$SET_MAKE$ac_delim
  12657. HEAD_1!$HEAD_1$ac_delim
  12658. AWK!$AWK$ac_delim
  12659. BASENAME!$BASENAME$ac_delim
  12660. OBJCOPY!$OBJCOPY$ac_delim
  12661. STRIP!$STRIP$ac_delim
  12662. DIFF!$DIFF$ac_delim
  12663. UNAME!$UNAME$ac_delim
  12664. CCACHE!$CCACHE$ac_delim
  12665. DISTCC!$DISTCC$ac_delim
  12666. BUILDOS!$BUILDOS$ac_delim
  12667. BUILDARCH!$BUILDARCH$ac_delim
  12668. CCDEBUG!$CCDEBUG$ac_delim
  12669. ZLIB!$ZLIB$ac_delim
  12670. LIBOBJS!$LIBOBJS$ac_delim
  12671. VERSION!$VERSION$ac_delim
  12672. NUMVER!$NUMVER$ac_delim
  12673. MOD_UPDIR!$MOD_UPDIR$ac_delim
  12674. LTLIBOBJS!$LTLIBOBJS$ac_delim
  12675. _ACEOF
  12676. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 69; then
  12677. break
  12678. elif $ac_last_try; then
  12679. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12680. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12681. { (exit 1); exit 1; }; }
  12682. else
  12683. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12684. fi
  12685. done
  12686. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  12687. if test -n "$ac_eof"; then
  12688. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  12689. ac_eof=`expr $ac_eof + 1`
  12690. fi
  12691. cat >>$CONFIG_STATUS <<_ACEOF
  12692. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  12693. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  12694. _ACEOF
  12695. sed '
  12696. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  12697. s/^/s,@/; s/!/@,|#_!!_#|/
  12698. :n
  12699. t n
  12700. s/'"$ac_delim"'$/,g/; t
  12701. s/$/\\/; p
  12702. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  12703. ' >>$CONFIG_STATUS <conf$$subs.sed
  12704. rm -f conf$$subs.sed
  12705. cat >>$CONFIG_STATUS <<_ACEOF
  12706. :end
  12707. s/|#_!!_#|//g
  12708. CEOF$ac_eof
  12709. _ACEOF
  12710. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  12711. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  12712. # trailing colons and then remove the whole line if VPATH becomes empty
  12713. # (actually we leave an empty line to preserve line numbers).
  12714. if test "x$srcdir" = x.; then
  12715. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  12716. s/:*\$(srcdir):*/:/
  12717. s/:*\${srcdir}:*/:/
  12718. s/:*@srcdir@:*/:/
  12719. s/^\([^=]*=[ ]*\):*/\1/
  12720. s/:*$//
  12721. s/^[^=]*=[ ]*$//
  12722. }'
  12723. fi
  12724. cat >>$CONFIG_STATUS <<\_ACEOF
  12725. fi # test -n "$CONFIG_FILES"
  12726. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
  12727. do
  12728. case $ac_tag in
  12729. :[FHLC]) ac_mode=$ac_tag; continue;;
  12730. esac
  12731. case $ac_mode$ac_tag in
  12732. :[FHL]*:*);;
  12733. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  12734. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  12735. { (exit 1); exit 1; }; };;
  12736. :[FH]-) ac_tag=-:-;;
  12737. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12738. esac
  12739. ac_save_IFS=$IFS
  12740. IFS=:
  12741. set x $ac_tag
  12742. IFS=$ac_save_IFS
  12743. shift
  12744. ac_file=$1
  12745. shift
  12746. case $ac_mode in
  12747. :L) ac_source=$1;;
  12748. :[FH])
  12749. ac_file_inputs=
  12750. for ac_f
  12751. do
  12752. case $ac_f in
  12753. -) ac_f="$tmp/stdin";;
  12754. *) # Look for the file first in the build tree, then in the source tree
  12755. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12756. # because $ac_f cannot contain `:'.
  12757. test -f "$ac_f" ||
  12758. case $ac_f in
  12759. [\\/$]*) false;;
  12760. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12761. esac ||
  12762. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  12763. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  12764. { (exit 1); exit 1; }; };;
  12765. esac
  12766. ac_file_inputs="$ac_file_inputs $ac_f"
  12767. done
  12768. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12769. # use $as_me), people would be surprised to read:
  12770. # /* config.h. Generated by config.status. */
  12771. configure_input="Generated from "`IFS=:
  12772. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  12773. if test x"$ac_file" != x-; then
  12774. configure_input="$ac_file. $configure_input"
  12775. { echo "$as_me:$LINENO: creating $ac_file" >&5
  12776. echo "$as_me: creating $ac_file" >&6;}
  12777. fi
  12778. case $ac_tag in
  12779. *:-:* | *:-) cat >"$tmp/stdin";;
  12780. esac
  12781. ;;
  12782. esac
  12783. ac_dir=`$as_dirname -- "$ac_file" ||
  12784. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12785. X"$ac_file" : 'X\(//\)[^/]' \| \
  12786. X"$ac_file" : 'X\(//\)$' \| \
  12787. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12788. echo X"$ac_file" |
  12789. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12790. s//\1/
  12791. q
  12792. }
  12793. /^X\(\/\/\)[^/].*/{
  12794. s//\1/
  12795. q
  12796. }
  12797. /^X\(\/\/\)$/{
  12798. s//\1/
  12799. q
  12800. }
  12801. /^X\(\/\).*/{
  12802. s//\1/
  12803. q
  12804. }
  12805. s/.*/./; q'`
  12806. { as_dir="$ac_dir"
  12807. case $as_dir in #(
  12808. -*) as_dir=./$as_dir;;
  12809. esac
  12810. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  12811. as_dirs=
  12812. while :; do
  12813. case $as_dir in #(
  12814. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  12815. *) as_qdir=$as_dir;;
  12816. esac
  12817. as_dirs="'$as_qdir' $as_dirs"
  12818. as_dir=`$as_dirname -- "$as_dir" ||
  12819. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12820. X"$as_dir" : 'X\(//\)[^/]' \| \
  12821. X"$as_dir" : 'X\(//\)$' \| \
  12822. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12823. echo X"$as_dir" |
  12824. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12825. s//\1/
  12826. q
  12827. }
  12828. /^X\(\/\/\)[^/].*/{
  12829. s//\1/
  12830. q
  12831. }
  12832. /^X\(\/\/\)$/{
  12833. s//\1/
  12834. q
  12835. }
  12836. /^X\(\/\).*/{
  12837. s//\1/
  12838. q
  12839. }
  12840. s/.*/./; q'`
  12841. test -d "$as_dir" && break
  12842. done
  12843. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12844. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  12845. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  12846. { (exit 1); exit 1; }; }; }
  12847. ac_builddir=.
  12848. case "$ac_dir" in
  12849. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12850. *)
  12851. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  12852. # A ".." for each directory in $ac_dir_suffix.
  12853. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  12854. case $ac_top_builddir_sub in
  12855. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12856. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12857. esac ;;
  12858. esac
  12859. ac_abs_top_builddir=$ac_pwd
  12860. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12861. # for backward compatibility:
  12862. ac_top_builddir=$ac_top_build_prefix
  12863. case $srcdir in
  12864. .) # We are building in place.
  12865. ac_srcdir=.
  12866. ac_top_srcdir=$ac_top_builddir_sub
  12867. ac_abs_top_srcdir=$ac_pwd ;;
  12868. [\\/]* | ?:[\\/]* ) # Absolute name.
  12869. ac_srcdir=$srcdir$ac_dir_suffix;
  12870. ac_top_srcdir=$srcdir
  12871. ac_abs_top_srcdir=$srcdir ;;
  12872. *) # Relative name.
  12873. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12874. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12875. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12876. esac
  12877. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12878. case $ac_mode in
  12879. :F)
  12880. #
  12881. # CONFIG_FILE
  12882. #
  12883. _ACEOF
  12884. cat >>$CONFIG_STATUS <<\_ACEOF
  12885. # If the template does not know about datarootdir, expand it.
  12886. # FIXME: This hack should be removed a few years after 2.60.
  12887. ac_datarootdir_hack=; ac_datarootdir_seen=
  12888. case `sed -n '/datarootdir/ {
  12889. p
  12890. q
  12891. }
  12892. /@datadir@/p
  12893. /@docdir@/p
  12894. /@infodir@/p
  12895. /@localedir@/p
  12896. /@mandir@/p
  12897. ' $ac_file_inputs` in
  12898. *datarootdir*) ac_datarootdir_seen=yes;;
  12899. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12900. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12901. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12902. _ACEOF
  12903. cat >>$CONFIG_STATUS <<_ACEOF
  12904. ac_datarootdir_hack='
  12905. s&@datadir@&$datadir&g
  12906. s&@docdir@&$docdir&g
  12907. s&@infodir@&$infodir&g
  12908. s&@localedir@&$localedir&g
  12909. s&@mandir@&$mandir&g
  12910. s&\\\${datarootdir}&$datarootdir&g' ;;
  12911. esac
  12912. _ACEOF
  12913. # Neutralize VPATH when `$srcdir' = `.'.
  12914. # Shell code in configure.ac might set extrasub.
  12915. # FIXME: do we really want to maintain this feature?
  12916. cat >>$CONFIG_STATUS <<_ACEOF
  12917. sed "$ac_vpsub
  12918. $extrasub
  12919. _ACEOF
  12920. cat >>$CONFIG_STATUS <<\_ACEOF
  12921. :t
  12922. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12923. s&@configure_input@&$configure_input&;t t
  12924. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12925. s&@srcdir@&$ac_srcdir&;t t
  12926. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12927. s&@top_srcdir@&$ac_top_srcdir&;t t
  12928. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12929. s&@builddir@&$ac_builddir&;t t
  12930. s&@abs_builddir@&$ac_abs_builddir&;t t
  12931. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12932. $ac_datarootdir_hack
  12933. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
  12934. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12935. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  12936. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  12937. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12938. which seems to be undefined. Please make sure it is defined." >&5
  12939. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12940. which seems to be undefined. Please make sure it is defined." >&2;}
  12941. rm -f "$tmp/stdin"
  12942. case $ac_file in
  12943. -) cat "$tmp/out"; rm -f "$tmp/out";;
  12944. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  12945. esac
  12946. ;;
  12947. :H)
  12948. #
  12949. # CONFIG_HEADER
  12950. #
  12951. _ACEOF
  12952. # Transform confdefs.h into a sed script `conftest.defines', that
  12953. # substitutes the proper values into config.h.in to produce config.h.
  12954. rm -f conftest.defines conftest.tail
  12955. # First, append a space to every undef/define line, to ease matching.
  12956. echo 's/$/ /' >conftest.defines
  12957. # Then, protect against being on the right side of a sed subst, or in
  12958. # an unquoted here document, in config.status. If some macros were
  12959. # called several times there might be several #defines for the same
  12960. # symbol, which is useless. But do not sort them, since the last
  12961. # AC_DEFINE must be honored.
  12962. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12963. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  12964. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  12965. # PARAMS is the parameter list in the macro definition--in most cases, it's
  12966. # just an empty string.
  12967. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  12968. ac_dB='\\)[ (].*,\\1define\\2'
  12969. ac_dC=' '
  12970. ac_dD=' ,'
  12971. uniq confdefs.h |
  12972. sed -n '
  12973. t rset
  12974. :rset
  12975. s/^[ ]*#[ ]*define[ ][ ]*//
  12976. t ok
  12977. d
  12978. :ok
  12979. s/[\\&,]/\\&/g
  12980. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  12981. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  12982. ' >>conftest.defines
  12983. # Remove the space that was appended to ease matching.
  12984. # Then replace #undef with comments. This is necessary, for
  12985. # example, in the case of _POSIX_SOURCE, which is predefined and required
  12986. # on some systems where configure will not decide to define it.
  12987. # (The regexp can be short, since the line contains either #define or #undef.)
  12988. echo 's/ $//
  12989. s,^[ #]*u.*,/* & */,' >>conftest.defines
  12990. # Break up conftest.defines:
  12991. ac_max_sed_lines=50
  12992. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  12993. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  12994. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  12995. # et cetera.
  12996. ac_in='$ac_file_inputs'
  12997. ac_out='"$tmp/out1"'
  12998. ac_nxt='"$tmp/out2"'
  12999. while :
  13000. do
  13001. # Write a here document:
  13002. cat >>$CONFIG_STATUS <<_ACEOF
  13003. # First, check the format of the line:
  13004. cat >"\$tmp/defines.sed" <<\\CEOF
  13005. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  13006. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  13007. b
  13008. :def
  13009. _ACEOF
  13010. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  13011. echo 'CEOF
  13012. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  13013. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  13014. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  13015. grep . conftest.tail >/dev/null || break
  13016. rm -f conftest.defines
  13017. mv conftest.tail conftest.defines
  13018. done
  13019. rm -f conftest.defines conftest.tail
  13020. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  13021. cat >>$CONFIG_STATUS <<\_ACEOF
  13022. if test x"$ac_file" != x-; then
  13023. echo "/* $configure_input */" >"$tmp/config.h"
  13024. cat "$ac_result" >>"$tmp/config.h"
  13025. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  13026. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  13027. echo "$as_me: $ac_file is unchanged" >&6;}
  13028. else
  13029. rm -f $ac_file
  13030. mv "$tmp/config.h" $ac_file
  13031. fi
  13032. else
  13033. echo "/* $configure_input */"
  13034. cat "$ac_result"
  13035. fi
  13036. rm -f "$tmp/out12"
  13037. ;;
  13038. esac
  13039. done # for ac_tag
  13040. { (exit 0); exit 0; }
  13041. _ACEOF
  13042. chmod +x $CONFIG_STATUS
  13043. ac_clean_files=$ac_clean_files_save
  13044. # configure is writing to config.log, and then calls config.status.
  13045. # config.status does its own redirection, appending to config.log.
  13046. # Unfortunately, on DOS this fails, as config.log is still kept open
  13047. # by configure, so config.status won't be able to write to it; its
  13048. # output is simply discarded. So we exec the FD to /dev/null,
  13049. # effectively closing config.log, so it can be properly (re)opened and
  13050. # appended to by config.status. When coming back to configure, we
  13051. # need to make the FD available again.
  13052. if test "$no_create" != yes; then
  13053. ac_cs_success=:
  13054. ac_config_status_args=
  13055. test "$silent" = yes &&
  13056. ac_config_status_args="$ac_config_status_args --quiet"
  13057. exec 5>/dev/null
  13058. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13059. exec 5>>config.log
  13060. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13061. # would make configure fail if this is the last instruction.
  13062. $ac_cs_success || { (exit 1); exit 1; }
  13063. fi