configure 341 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.44 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.59.
  5. #
  6. # Copyright (C) 2003 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. #
  10. # Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be Bourne compatible
  15. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16. emulate sh
  17. NULLCMD=:
  18. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19. # is contrary to our usage. Disable this feature.
  20. alias -g '${1+"$@"}'='"$@"'
  21. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  22. set -o posix
  23. fi
  24. DUALCASE=1; export DUALCASE # for MKS sh
  25. # Support unset when possible.
  26. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  27. as_unset=unset
  28. else
  29. as_unset=false
  30. fi
  31. # Work around bugs in pre-3.0 UWIN ksh.
  32. $as_unset ENV MAIL MAILPATH
  33. PS1='$ '
  34. PS2='> '
  35. PS4='+ '
  36. # NLS nuisances.
  37. for as_var in \
  38. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  39. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  40. LC_TELEPHONE LC_TIME
  41. do
  42. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  43. eval $as_var=C; export $as_var
  44. else
  45. $as_unset $as_var
  46. fi
  47. done
  48. # Required to use basename.
  49. if expr a : '\(a\)' >/dev/null 2>&1; then
  50. as_expr=expr
  51. else
  52. as_expr=false
  53. fi
  54. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  55. as_basename=basename
  56. else
  57. as_basename=false
  58. fi
  59. # Name of the executable.
  60. as_me=`$as_basename "$0" ||
  61. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  62. X"$0" : 'X\(//\)$' \| \
  63. X"$0" : 'X\(/\)$' \| \
  64. . : '\(.\)' 2>/dev/null ||
  65. echo X/"$0" |
  66. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  67. /^X\/\(\/\/\)$/{ s//\1/; q; }
  68. /^X\/\(\/\).*/{ s//\1/; q; }
  69. s/.*/./; q'`
  70. # PATH needs CR, and LINENO needs CR and PATH.
  71. # Avoid depending upon Character Ranges.
  72. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  73. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  74. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  75. as_cr_digits='0123456789'
  76. as_cr_alnum=$as_cr_Letters$as_cr_digits
  77. # The user is always right.
  78. if test "${PATH_SEPARATOR+set}" != set; then
  79. echo "#! /bin/sh" >conf$$.sh
  80. echo "exit 0" >>conf$$.sh
  81. chmod +x conf$$.sh
  82. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  83. PATH_SEPARATOR=';'
  84. else
  85. PATH_SEPARATOR=:
  86. fi
  87. rm -f conf$$.sh
  88. fi
  89. as_lineno_1=$LINENO
  90. as_lineno_2=$LINENO
  91. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  92. test "x$as_lineno_1" != "x$as_lineno_2" &&
  93. test "x$as_lineno_3" = "x$as_lineno_2" || {
  94. # Find who we are. Look in the path if we contain no path at all
  95. # relative or not.
  96. case $0 in
  97. *[\\/]* ) as_myself=$0 ;;
  98. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  99. for as_dir in $PATH
  100. do
  101. IFS=$as_save_IFS
  102. test -z "$as_dir" && as_dir=.
  103. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  104. done
  105. ;;
  106. esac
  107. # We did not find ourselves, most probably we were run as `sh COMMAND'
  108. # in which case we are not to be found in the path.
  109. if test "x$as_myself" = x; then
  110. as_myself=$0
  111. fi
  112. if test ! -f "$as_myself"; then
  113. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  114. { (exit 1); exit 1; }; }
  115. fi
  116. case $CONFIG_SHELL in
  117. '')
  118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  119. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  120. do
  121. IFS=$as_save_IFS
  122. test -z "$as_dir" && as_dir=.
  123. for as_base in sh bash ksh sh5; do
  124. case $as_dir in
  125. /*)
  126. if ("$as_dir/$as_base" -c '
  127. as_lineno_1=$LINENO
  128. as_lineno_2=$LINENO
  129. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  130. test "x$as_lineno_1" != "x$as_lineno_2" &&
  131. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  132. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  133. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  134. CONFIG_SHELL=$as_dir/$as_base
  135. export CONFIG_SHELL
  136. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  137. fi;;
  138. esac
  139. done
  140. done
  141. ;;
  142. esac
  143. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  144. # uniformly replaced by the line number. The first 'sed' inserts a
  145. # line-number line before each line; the second 'sed' does the real
  146. # work. The second script uses 'N' to pair each line-number line
  147. # with the numbered line, and appends trailing '-' during
  148. # substitution so that $LINENO is not a special case at line end.
  149. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  150. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  151. sed '=' <$as_myself |
  152. sed '
  153. N
  154. s,$,-,
  155. : loop
  156. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  157. t loop
  158. s,-$,,
  159. s,^['$as_cr_digits']*\n,,
  160. ' >$as_me.lineno &&
  161. chmod +x $as_me.lineno ||
  162. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  163. { (exit 1); exit 1; }; }
  164. # Don't try to exec as it changes $[0], causing all sort of problems
  165. # (the dirname of $[0] is not the place where we might find the
  166. # original and so on. Autoconf is especially sensible to this).
  167. . ./$as_me.lineno
  168. # Exit status is that of the last command.
  169. exit
  170. }
  171. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  172. *c*,-n*) ECHO_N= ECHO_C='
  173. ' ECHO_T=' ' ;;
  174. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  175. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  176. esac
  177. if expr a : '\(a\)' >/dev/null 2>&1; then
  178. as_expr=expr
  179. else
  180. as_expr=false
  181. fi
  182. rm -f conf$$ conf$$.exe conf$$.file
  183. echo >conf$$.file
  184. if ln -s conf$$.file conf$$ 2>/dev/null; then
  185. # We could just check for DJGPP; but this test a) works b) is more generic
  186. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  187. if test -f conf$$.exe; then
  188. # Don't use ln at all; we don't have any links
  189. as_ln_s='cp -p'
  190. else
  191. as_ln_s='ln -s'
  192. fi
  193. elif ln conf$$.file conf$$ 2>/dev/null; then
  194. as_ln_s=ln
  195. else
  196. as_ln_s='cp -p'
  197. fi
  198. rm -f conf$$ conf$$.exe conf$$.file
  199. if mkdir -p . 2>/dev/null; then
  200. as_mkdir_p=:
  201. else
  202. test -d ./-p && rmdir ./-p
  203. as_mkdir_p=false
  204. fi
  205. as_executable_p="test -f"
  206. # Sed expression to map a string onto a valid CPP name.
  207. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  208. # Sed expression to map a string onto a valid variable name.
  209. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  210. # IFS
  211. # We need space, tab and new line, in precisely that order.
  212. as_nl='
  213. '
  214. IFS=" $as_nl"
  215. # CDPATH.
  216. $as_unset CDPATH
  217. # Name of the host.
  218. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  219. # so uname gets run too.
  220. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  221. exec 6>&1
  222. #
  223. # Initializations.
  224. #
  225. ac_default_prefix=/usr/local
  226. ac_config_libobj_dir=.
  227. cross_compiling=no
  228. subdirs=
  229. MFLAGS=
  230. MAKEFLAGS=
  231. SHELL=${CONFIG_SHELL-/bin/sh}
  232. # Maximum number of lines to put in a shell here document.
  233. # This variable seems obsolete. It should probably be removed, and
  234. # only ac_max_sed_lines should be used.
  235. : ${ac_max_here_lines=38}
  236. # Identity of this package.
  237. PACKAGE_NAME=
  238. PACKAGE_TARNAME=
  239. PACKAGE_VERSION=
  240. PACKAGE_STRING=
  241. PACKAGE_BUGREPORT=
  242. ac_unique_file="wraith"
  243. ac_unique_file="src/eggdrop.h"
  244. # Factoring default headers for most tests.
  245. ac_includes_default="\
  246. #include <stdio.h>
  247. #if HAVE_SYS_TYPES_H
  248. # include <sys/types.h>
  249. #endif
  250. #if HAVE_SYS_STAT_H
  251. # include <sys/stat.h>
  252. #endif
  253. #if STDC_HEADERS
  254. # include <stdlib.h>
  255. # include <stddef.h>
  256. #else
  257. # if HAVE_STDLIB_H
  258. # include <stdlib.h>
  259. # endif
  260. #endif
  261. #if HAVE_STRING_H
  262. # if !STDC_HEADERS && HAVE_MEMORY_H
  263. # include <memory.h>
  264. # endif
  265. # include <string.h>
  266. #endif
  267. #if HAVE_STRINGS_H
  268. # include <strings.h>
  269. #endif
  270. #if HAVE_INTTYPES_H
  271. # include <inttypes.h>
  272. #else
  273. # if HAVE_STDINT_H
  274. # include <stdint.h>
  275. # endif
  276. #endif
  277. #if HAVE_UNISTD_H
  278. # include <unistd.h>
  279. #endif"
  280. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS egg_ac_parameters CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CXXCPP EGREP CCDEPMODE GCC3 SET_MAKE HEAD_1 AWK BASENAME OBJCOPY STRIP DIFF UNAME CCACHE DISTCC CCDEBUG ZLIB LIBOBJS VERSION NUMVER MOD_UPDIR LTLIBOBJS'
  281. ac_subst_files=''
  282. # Initialize some variables set by options.
  283. ac_init_help=
  284. ac_init_version=false
  285. # The variables have the same names as the options, with
  286. # dashes changed to underlines.
  287. cache_file=./config.cache
  288. exec_prefix=NONE
  289. no_create=
  290. no_recursion=
  291. prefix=NONE
  292. program_prefix=NONE
  293. program_suffix=NONE
  294. program_transform_name=s,x,x,
  295. silent=
  296. site=
  297. srcdir=
  298. verbose=
  299. x_includes=NONE
  300. x_libraries=NONE
  301. # Installation directory options.
  302. # These are left unexpanded so users can "make install exec_prefix=/foo"
  303. # and all the variables that are supposed to be based on exec_prefix
  304. # by default will actually change.
  305. # Use braces instead of parens because sh, perl, etc. also accept them.
  306. bindir='${exec_prefix}/bin'
  307. sbindir='${exec_prefix}/sbin'
  308. libexecdir='${exec_prefix}/libexec'
  309. datadir='${prefix}/share'
  310. sysconfdir='${prefix}/etc'
  311. sharedstatedir='${prefix}/com'
  312. localstatedir='${prefix}/var'
  313. libdir='${exec_prefix}/lib'
  314. includedir='${prefix}/include'
  315. oldincludedir='/usr/include'
  316. infodir='${prefix}/info'
  317. mandir='${prefix}/man'
  318. ac_prev=
  319. for ac_option
  320. do
  321. # If the previous option needs an argument, assign it.
  322. if test -n "$ac_prev"; then
  323. eval "$ac_prev=\$ac_option"
  324. ac_prev=
  325. continue
  326. fi
  327. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  328. # Accept the important Cygnus configure options, so we can diagnose typos.
  329. case $ac_option in
  330. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  331. ac_prev=bindir ;;
  332. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  333. bindir=$ac_optarg ;;
  334. -build | --build | --buil | --bui | --bu)
  335. ac_prev=build_alias ;;
  336. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  337. build_alias=$ac_optarg ;;
  338. -cache-file | --cache-file | --cache-fil | --cache-fi \
  339. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  340. ac_prev=cache_file ;;
  341. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  342. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  343. cache_file=$ac_optarg ;;
  344. --config-cache | -C)
  345. cache_file=config.cache ;;
  346. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  347. ac_prev=datadir ;;
  348. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  349. | --da=*)
  350. datadir=$ac_optarg ;;
  351. -disable-* | --disable-*)
  352. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  353. # Reject names that are not valid shell variable names.
  354. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  355. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  356. { (exit 1); exit 1; }; }
  357. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  358. eval "enable_$ac_feature=no" ;;
  359. -enable-* | --enable-*)
  360. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  361. # Reject names that are not valid shell variable names.
  362. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  363. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  364. { (exit 1); exit 1; }; }
  365. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  366. case $ac_option in
  367. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  368. *) ac_optarg=yes ;;
  369. esac
  370. eval "enable_$ac_feature='$ac_optarg'" ;;
  371. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  372. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  373. | --exec | --exe | --ex)
  374. ac_prev=exec_prefix ;;
  375. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  376. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  377. | --exec=* | --exe=* | --ex=*)
  378. exec_prefix=$ac_optarg ;;
  379. -gas | --gas | --ga | --g)
  380. # Obsolete; use --with-gas.
  381. with_gas=yes ;;
  382. -help | --help | --hel | --he | -h)
  383. ac_init_help=long ;;
  384. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  385. ac_init_help=recursive ;;
  386. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  387. ac_init_help=short ;;
  388. -host | --host | --hos | --ho)
  389. ac_prev=host_alias ;;
  390. -host=* | --host=* | --hos=* | --ho=*)
  391. host_alias=$ac_optarg ;;
  392. -includedir | --includedir | --includedi | --included | --include \
  393. | --includ | --inclu | --incl | --inc)
  394. ac_prev=includedir ;;
  395. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  396. | --includ=* | --inclu=* | --incl=* | --inc=*)
  397. includedir=$ac_optarg ;;
  398. -infodir | --infodir | --infodi | --infod | --info | --inf)
  399. ac_prev=infodir ;;
  400. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  401. infodir=$ac_optarg ;;
  402. -libdir | --libdir | --libdi | --libd)
  403. ac_prev=libdir ;;
  404. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  405. libdir=$ac_optarg ;;
  406. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  407. | --libexe | --libex | --libe)
  408. ac_prev=libexecdir ;;
  409. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  410. | --libexe=* | --libex=* | --libe=*)
  411. libexecdir=$ac_optarg ;;
  412. -localstatedir | --localstatedir | --localstatedi | --localstated \
  413. | --localstate | --localstat | --localsta | --localst \
  414. | --locals | --local | --loca | --loc | --lo)
  415. ac_prev=localstatedir ;;
  416. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  417. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  418. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  419. localstatedir=$ac_optarg ;;
  420. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  421. ac_prev=mandir ;;
  422. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  423. mandir=$ac_optarg ;;
  424. -nfp | --nfp | --nf)
  425. # Obsolete; use --without-fp.
  426. with_fp=no ;;
  427. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  428. | --no-cr | --no-c | -n)
  429. no_create=yes ;;
  430. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  431. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  432. no_recursion=yes ;;
  433. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  434. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  435. | --oldin | --oldi | --old | --ol | --o)
  436. ac_prev=oldincludedir ;;
  437. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  438. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  439. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  440. oldincludedir=$ac_optarg ;;
  441. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  442. ac_prev=prefix ;;
  443. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  444. prefix=$ac_optarg ;;
  445. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  446. | --program-pre | --program-pr | --program-p)
  447. ac_prev=program_prefix ;;
  448. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  449. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  450. program_prefix=$ac_optarg ;;
  451. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  452. | --program-suf | --program-su | --program-s)
  453. ac_prev=program_suffix ;;
  454. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  455. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  456. program_suffix=$ac_optarg ;;
  457. -program-transform-name | --program-transform-name \
  458. | --program-transform-nam | --program-transform-na \
  459. | --program-transform-n | --program-transform- \
  460. | --program-transform | --program-transfor \
  461. | --program-transfo | --program-transf \
  462. | --program-trans | --program-tran \
  463. | --progr-tra | --program-tr | --program-t)
  464. ac_prev=program_transform_name ;;
  465. -program-transform-name=* | --program-transform-name=* \
  466. | --program-transform-nam=* | --program-transform-na=* \
  467. | --program-transform-n=* | --program-transform-=* \
  468. | --program-transform=* | --program-transfor=* \
  469. | --program-transfo=* | --program-transf=* \
  470. | --program-trans=* | --program-tran=* \
  471. | --progr-tra=* | --program-tr=* | --program-t=*)
  472. program_transform_name=$ac_optarg ;;
  473. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  474. | -silent | --silent | --silen | --sile | --sil)
  475. silent=yes ;;
  476. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  477. ac_prev=sbindir ;;
  478. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  479. | --sbi=* | --sb=*)
  480. sbindir=$ac_optarg ;;
  481. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  482. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  483. | --sharedst | --shareds | --shared | --share | --shar \
  484. | --sha | --sh)
  485. ac_prev=sharedstatedir ;;
  486. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  487. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  488. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  489. | --sha=* | --sh=*)
  490. sharedstatedir=$ac_optarg ;;
  491. -site | --site | --sit)
  492. ac_prev=site ;;
  493. -site=* | --site=* | --sit=*)
  494. site=$ac_optarg ;;
  495. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  496. ac_prev=srcdir ;;
  497. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  498. srcdir=$ac_optarg ;;
  499. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  500. | --syscon | --sysco | --sysc | --sys | --sy)
  501. ac_prev=sysconfdir ;;
  502. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  503. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  504. sysconfdir=$ac_optarg ;;
  505. -target | --target | --targe | --targ | --tar | --ta | --t)
  506. ac_prev=target_alias ;;
  507. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  508. target_alias=$ac_optarg ;;
  509. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  510. verbose=yes ;;
  511. -version | --version | --versio | --versi | --vers | -V)
  512. ac_init_version=: ;;
  513. -with-* | --with-*)
  514. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  515. # Reject names that are not valid shell variable names.
  516. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  517. { echo "$as_me: error: invalid package name: $ac_package" >&2
  518. { (exit 1); exit 1; }; }
  519. ac_package=`echo $ac_package| sed 's/-/_/g'`
  520. case $ac_option in
  521. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  522. *) ac_optarg=yes ;;
  523. esac
  524. eval "with_$ac_package='$ac_optarg'" ;;
  525. -without-* | --without-*)
  526. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  527. # Reject names that are not valid shell variable names.
  528. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  529. { echo "$as_me: error: invalid package name: $ac_package" >&2
  530. { (exit 1); exit 1; }; }
  531. ac_package=`echo $ac_package | sed 's/-/_/g'`
  532. eval "with_$ac_package=no" ;;
  533. --x)
  534. # Obsolete; use --with-x.
  535. with_x=yes ;;
  536. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  537. | --x-incl | --x-inc | --x-in | --x-i)
  538. ac_prev=x_includes ;;
  539. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  540. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  541. x_includes=$ac_optarg ;;
  542. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  543. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  544. ac_prev=x_libraries ;;
  545. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  546. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  547. x_libraries=$ac_optarg ;;
  548. -*) { echo "$as_me: error: unrecognized option: $ac_option
  549. Try \`$0 --help' for more information." >&2
  550. { (exit 1); exit 1; }; }
  551. ;;
  552. *=*)
  553. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  554. # Reject names that are not valid shell variable names.
  555. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  556. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  557. { (exit 1); exit 1; }; }
  558. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  559. eval "$ac_envvar='$ac_optarg'"
  560. export $ac_envvar ;;
  561. *)
  562. # FIXME: should be removed in autoconf 3.0.
  563. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  564. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  565. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  566. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  567. ;;
  568. esac
  569. done
  570. if test -n "$ac_prev"; then
  571. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  572. { echo "$as_me: error: missing argument to $ac_option" >&2
  573. { (exit 1); exit 1; }; }
  574. fi
  575. # Be sure to have absolute paths.
  576. for ac_var in exec_prefix prefix
  577. do
  578. eval ac_val=$`echo $ac_var`
  579. case $ac_val in
  580. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  581. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  582. { (exit 1); exit 1; }; };;
  583. esac
  584. done
  585. # Be sure to have absolute paths.
  586. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  587. localstatedir libdir includedir oldincludedir infodir mandir
  588. do
  589. eval ac_val=$`echo $ac_var`
  590. case $ac_val in
  591. [\\/$]* | ?:[\\/]* ) ;;
  592. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  593. { (exit 1); exit 1; }; };;
  594. esac
  595. done
  596. # There might be people who depend on the old broken behavior: `$host'
  597. # used to hold the argument of --host etc.
  598. # FIXME: To remove some day.
  599. build=$build_alias
  600. host=$host_alias
  601. target=$target_alias
  602. # FIXME: To remove some day.
  603. if test "x$host_alias" != x; then
  604. if test "x$build_alias" = x; then
  605. cross_compiling=maybe
  606. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  607. If a cross compiler is detected then cross compile mode will be used." >&2
  608. elif test "x$build_alias" != "x$host_alias"; then
  609. cross_compiling=yes
  610. fi
  611. fi
  612. ac_tool_prefix=
  613. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  614. test "$silent" = yes && exec 6>/dev/null
  615. # Find the source files, if location was not specified.
  616. if test -z "$srcdir"; then
  617. ac_srcdir_defaulted=yes
  618. # Try the directory containing this script, then its parent.
  619. ac_confdir=`(dirname "$0") 2>/dev/null ||
  620. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  621. X"$0" : 'X\(//\)[^/]' \| \
  622. X"$0" : 'X\(//\)$' \| \
  623. X"$0" : 'X\(/\)' \| \
  624. . : '\(.\)' 2>/dev/null ||
  625. echo X"$0" |
  626. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  627. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  628. /^X\(\/\/\)$/{ s//\1/; q; }
  629. /^X\(\/\).*/{ s//\1/; q; }
  630. s/.*/./; q'`
  631. srcdir=$ac_confdir
  632. if test ! -r $srcdir/$ac_unique_file; then
  633. srcdir=..
  634. fi
  635. else
  636. ac_srcdir_defaulted=no
  637. fi
  638. if test ! -r $srcdir/$ac_unique_file; then
  639. if test "$ac_srcdir_defaulted" = yes; then
  640. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  641. { (exit 1); exit 1; }; }
  642. else
  643. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  644. { (exit 1); exit 1; }; }
  645. fi
  646. fi
  647. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  648. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  649. { (exit 1); exit 1; }; }
  650. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  651. ac_env_build_alias_set=${build_alias+set}
  652. ac_env_build_alias_value=$build_alias
  653. ac_cv_env_build_alias_set=${build_alias+set}
  654. ac_cv_env_build_alias_value=$build_alias
  655. ac_env_host_alias_set=${host_alias+set}
  656. ac_env_host_alias_value=$host_alias
  657. ac_cv_env_host_alias_set=${host_alias+set}
  658. ac_cv_env_host_alias_value=$host_alias
  659. ac_env_target_alias_set=${target_alias+set}
  660. ac_env_target_alias_value=$target_alias
  661. ac_cv_env_target_alias_set=${target_alias+set}
  662. ac_cv_env_target_alias_value=$target_alias
  663. ac_env_CXX_set=${CXX+set}
  664. ac_env_CXX_value=$CXX
  665. ac_cv_env_CXX_set=${CXX+set}
  666. ac_cv_env_CXX_value=$CXX
  667. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  668. ac_env_CXXFLAGS_value=$CXXFLAGS
  669. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  670. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  671. ac_env_LDFLAGS_set=${LDFLAGS+set}
  672. ac_env_LDFLAGS_value=$LDFLAGS
  673. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  674. ac_cv_env_LDFLAGS_value=$LDFLAGS
  675. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  676. ac_env_CPPFLAGS_value=$CPPFLAGS
  677. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  678. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  679. ac_env_CXXCPP_set=${CXXCPP+set}
  680. ac_env_CXXCPP_value=$CXXCPP
  681. ac_cv_env_CXXCPP_set=${CXXCPP+set}
  682. ac_cv_env_CXXCPP_value=$CXXCPP
  683. #
  684. # Report the --help message.
  685. #
  686. if test "$ac_init_help" = "long"; then
  687. # Omit some internal or obsolete options to make the list less imposing.
  688. # This message is too long to be a string in the A/UX 3.1 sh.
  689. cat <<_ACEOF
  690. \`configure' configures this package to adapt to many kinds of systems.
  691. Usage: $0 [OPTION]... [VAR=VALUE]...
  692. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  693. VAR=VALUE. See below for descriptions of some of the useful variables.
  694. Defaults for the options are specified in brackets.
  695. Configuration:
  696. -h, --help display this help and exit
  697. --help=short display options specific to this package
  698. --help=recursive display the short help of all the included packages
  699. -V, --version display version information and exit
  700. -q, --quiet, --silent do not print \`checking...' messages
  701. --cache-file=FILE cache test results in FILE [disabled]
  702. -C, --config-cache alias for \`--cache-file=config.cache'
  703. -n, --no-create do not create output files
  704. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  705. _ACEOF
  706. cat <<_ACEOF
  707. Installation directories:
  708. --prefix=PREFIX install architecture-independent files in PREFIX
  709. [$ac_default_prefix]
  710. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  711. [PREFIX]
  712. By default, \`make install' will install all the files in
  713. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  714. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  715. for instance \`--prefix=\$HOME'.
  716. For better control, use the options below.
  717. Fine tuning of the installation directories:
  718. --bindir=DIR user executables [EPREFIX/bin]
  719. --sbindir=DIR system admin executables [EPREFIX/sbin]
  720. --libexecdir=DIR program executables [EPREFIX/libexec]
  721. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  722. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  723. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  724. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  725. --libdir=DIR object code libraries [EPREFIX/lib]
  726. --includedir=DIR C header files [PREFIX/include]
  727. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  728. --infodir=DIR info documentation [PREFIX/info]
  729. --mandir=DIR man documentation [PREFIX/man]
  730. _ACEOF
  731. cat <<\_ACEOF
  732. _ACEOF
  733. fi
  734. if test -n "$ac_init_help"; then
  735. cat <<\_ACEOF
  736. Optional Features:
  737. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  738. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  739. --disable-ipv6 disable IPv6 support
  740. Some influential environment variables:
  741. CXX C++ compiler command
  742. CXXFLAGS C++ compiler flags
  743. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  744. nonstandard directory <lib dir>
  745. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  746. headers in a nonstandard directory <include dir>
  747. CXXCPP C++ preprocessor
  748. Use these variables to override the choices made by `configure' or to help
  749. it to find libraries and programs with nonstandard names/locations.
  750. _ACEOF
  751. fi
  752. if test "$ac_init_help" = "recursive"; then
  753. # If there are subdirs, report their specific --help.
  754. ac_popdir=`pwd`
  755. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  756. test -d $ac_dir || continue
  757. ac_builddir=.
  758. if test "$ac_dir" != .; then
  759. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  760. # A "../" for each directory in $ac_dir_suffix.
  761. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  762. else
  763. ac_dir_suffix= ac_top_builddir=
  764. fi
  765. case $srcdir in
  766. .) # No --srcdir option. We are building in place.
  767. ac_srcdir=.
  768. if test -z "$ac_top_builddir"; then
  769. ac_top_srcdir=.
  770. else
  771. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  772. fi ;;
  773. [\\/]* | ?:[\\/]* ) # Absolute path.
  774. ac_srcdir=$srcdir$ac_dir_suffix;
  775. ac_top_srcdir=$srcdir ;;
  776. *) # Relative path.
  777. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  778. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  779. esac
  780. # Do not use `cd foo && pwd` to compute absolute paths, because
  781. # the directories may not exist.
  782. case `pwd` in
  783. .) ac_abs_builddir="$ac_dir";;
  784. *)
  785. case "$ac_dir" in
  786. .) ac_abs_builddir=`pwd`;;
  787. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  788. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  789. esac;;
  790. esac
  791. case $ac_abs_builddir in
  792. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  793. *)
  794. case ${ac_top_builddir}. in
  795. .) ac_abs_top_builddir=$ac_abs_builddir;;
  796. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  797. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  798. esac;;
  799. esac
  800. case $ac_abs_builddir in
  801. .) ac_abs_srcdir=$ac_srcdir;;
  802. *)
  803. case $ac_srcdir in
  804. .) ac_abs_srcdir=$ac_abs_builddir;;
  805. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  806. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  807. esac;;
  808. esac
  809. case $ac_abs_builddir in
  810. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  811. *)
  812. case $ac_top_srcdir in
  813. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  814. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  815. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  816. esac;;
  817. esac
  818. cd $ac_dir
  819. # Check for guested configure; otherwise get Cygnus style configure.
  820. if test -f $ac_srcdir/configure.gnu; then
  821. echo
  822. $SHELL $ac_srcdir/configure.gnu --help=recursive
  823. elif test -f $ac_srcdir/configure; then
  824. echo
  825. $SHELL $ac_srcdir/configure --help=recursive
  826. elif test -f $ac_srcdir/configure.ac ||
  827. test -f $ac_srcdir/configure.in; then
  828. echo
  829. $ac_configure --help
  830. else
  831. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  832. fi
  833. cd "$ac_popdir"
  834. done
  835. fi
  836. test -n "$ac_init_help" && exit 0
  837. if $ac_init_version; then
  838. cat <<\_ACEOF
  839. Copyright (C) 2003 Free Software Foundation, Inc.
  840. This configure script is free software; the Free Software Foundation
  841. gives unlimited permission to copy, distribute and modify it.
  842. Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  843. _ACEOF
  844. exit 0
  845. fi
  846. exec 5>config.log
  847. cat >&5 <<_ACEOF
  848. This file contains any messages produced by compilers while
  849. running configure, to aid debugging if configure makes a mistake.
  850. It was created by $as_me, which was
  851. generated by GNU Autoconf 2.59. Invocation command line was
  852. $ $0 $@
  853. _ACEOF
  854. {
  855. cat <<_ASUNAME
  856. ## --------- ##
  857. ## Platform. ##
  858. ## --------- ##
  859. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  860. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  861. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  862. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  863. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  864. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  865. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  866. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  867. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  868. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  869. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  870. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  871. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  872. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  873. _ASUNAME
  874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  875. for as_dir in $PATH
  876. do
  877. IFS=$as_save_IFS
  878. test -z "$as_dir" && as_dir=.
  879. echo "PATH: $as_dir"
  880. done
  881. } >&5
  882. cat >&5 <<_ACEOF
  883. ## ----------- ##
  884. ## Core tests. ##
  885. ## ----------- ##
  886. _ACEOF
  887. # Keep a trace of the command line.
  888. # Strip out --no-create and --no-recursion so they do not pile up.
  889. # Strip out --silent because we don't want to record it for future runs.
  890. # Also quote any args containing shell meta-characters.
  891. # Make two passes to allow for proper duplicate-argument suppression.
  892. ac_configure_args=
  893. ac_configure_args0=
  894. ac_configure_args1=
  895. ac_sep=
  896. ac_must_keep_next=false
  897. for ac_pass in 1 2
  898. do
  899. for ac_arg
  900. do
  901. case $ac_arg in
  902. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  903. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  904. | -silent | --silent | --silen | --sile | --sil)
  905. continue ;;
  906. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  907. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  908. esac
  909. case $ac_pass in
  910. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  911. 2)
  912. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  913. if test $ac_must_keep_next = true; then
  914. ac_must_keep_next=false # Got value, back to normal.
  915. else
  916. case $ac_arg in
  917. *=* | --config-cache | -C | -disable-* | --disable-* \
  918. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  919. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  920. | -with-* | --with-* | -without-* | --without-* | --x)
  921. case "$ac_configure_args0 " in
  922. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  923. esac
  924. ;;
  925. -* ) ac_must_keep_next=true ;;
  926. esac
  927. fi
  928. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  929. # Get rid of the leading space.
  930. ac_sep=" "
  931. ;;
  932. esac
  933. done
  934. done
  935. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  936. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  937. # When interrupted or exit'd, cleanup temporary files, and complete
  938. # config.log. We remove comments because anyway the quotes in there
  939. # would cause problems or look ugly.
  940. # WARNING: Be sure not to use single quotes in there, as some shells,
  941. # such as our DU 5.0 friend, will then `close' the trap.
  942. trap 'exit_status=$?
  943. # Save into config.log some information that might help in debugging.
  944. {
  945. echo
  946. cat <<\_ASBOX
  947. ## ---------------- ##
  948. ## Cache variables. ##
  949. ## ---------------- ##
  950. _ASBOX
  951. echo
  952. # The following way of writing the cache mishandles newlines in values,
  953. {
  954. (set) 2>&1 |
  955. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  956. *ac_space=\ *)
  957. sed -n \
  958. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  959. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  960. ;;
  961. *)
  962. sed -n \
  963. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  964. ;;
  965. esac;
  966. }
  967. echo
  968. cat <<\_ASBOX
  969. ## ----------------- ##
  970. ## Output variables. ##
  971. ## ----------------- ##
  972. _ASBOX
  973. echo
  974. for ac_var in $ac_subst_vars
  975. do
  976. eval ac_val=$`echo $ac_var`
  977. echo "$ac_var='"'"'$ac_val'"'"'"
  978. done | sort
  979. echo
  980. if test -n "$ac_subst_files"; then
  981. cat <<\_ASBOX
  982. ## ------------- ##
  983. ## Output files. ##
  984. ## ------------- ##
  985. _ASBOX
  986. echo
  987. for ac_var in $ac_subst_files
  988. do
  989. eval ac_val=$`echo $ac_var`
  990. echo "$ac_var='"'"'$ac_val'"'"'"
  991. done | sort
  992. echo
  993. fi
  994. if test -s confdefs.h; then
  995. cat <<\_ASBOX
  996. ## ----------- ##
  997. ## confdefs.h. ##
  998. ## ----------- ##
  999. _ASBOX
  1000. echo
  1001. sed "/^$/d" confdefs.h | sort
  1002. echo
  1003. fi
  1004. test "$ac_signal" != 0 &&
  1005. echo "$as_me: caught signal $ac_signal"
  1006. echo "$as_me: exit $exit_status"
  1007. } >&5
  1008. rm -f core *.core &&
  1009. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1010. exit $exit_status
  1011. ' 0
  1012. for ac_signal in 1 2 13 15; do
  1013. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1014. done
  1015. ac_signal=0
  1016. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1017. rm -rf conftest* confdefs.h
  1018. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1019. echo >confdefs.h
  1020. # Predefined preprocessor variables.
  1021. cat >>confdefs.h <<_ACEOF
  1022. #define PACKAGE_NAME "$PACKAGE_NAME"
  1023. _ACEOF
  1024. cat >>confdefs.h <<_ACEOF
  1025. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1026. _ACEOF
  1027. cat >>confdefs.h <<_ACEOF
  1028. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1029. _ACEOF
  1030. cat >>confdefs.h <<_ACEOF
  1031. #define PACKAGE_STRING "$PACKAGE_STRING"
  1032. _ACEOF
  1033. cat >>confdefs.h <<_ACEOF
  1034. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1035. _ACEOF
  1036. # Let the site file select an alternate cache file if it wants to.
  1037. # Prefer explicitly selected file to automatically selected ones.
  1038. if test -z "$CONFIG_SITE"; then
  1039. if test "x$prefix" != xNONE; then
  1040. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1041. else
  1042. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1043. fi
  1044. fi
  1045. for ac_site_file in $CONFIG_SITE; do
  1046. if test -r "$ac_site_file"; then
  1047. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1048. echo "$as_me: loading site script $ac_site_file" >&6;}
  1049. sed 's/^/| /' "$ac_site_file" >&5
  1050. . "$ac_site_file"
  1051. fi
  1052. done
  1053. if test -r "$cache_file"; then
  1054. # Some versions of bash will fail to source /dev/null (special
  1055. # files actually), so we avoid doing that.
  1056. if test -f "$cache_file"; then
  1057. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1058. echo "$as_me: loading cache $cache_file" >&6;}
  1059. case $cache_file in
  1060. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1061. *) . ./$cache_file;;
  1062. esac
  1063. fi
  1064. else
  1065. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1066. echo "$as_me: creating cache $cache_file" >&6;}
  1067. >$cache_file
  1068. fi
  1069. # Check that the precious variables saved in the cache have kept the same
  1070. # value.
  1071. ac_cache_corrupted=false
  1072. for ac_var in `(set) 2>&1 |
  1073. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1074. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1075. eval ac_new_set=\$ac_env_${ac_var}_set
  1076. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1077. eval ac_new_val="\$ac_env_${ac_var}_value"
  1078. case $ac_old_set,$ac_new_set in
  1079. set,)
  1080. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1081. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1082. ac_cache_corrupted=: ;;
  1083. ,set)
  1084. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1085. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1086. ac_cache_corrupted=: ;;
  1087. ,);;
  1088. *)
  1089. if test "x$ac_old_val" != "x$ac_new_val"; then
  1090. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1091. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1092. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1093. echo "$as_me: former value: $ac_old_val" >&2;}
  1094. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1095. echo "$as_me: current value: $ac_new_val" >&2;}
  1096. ac_cache_corrupted=:
  1097. fi;;
  1098. esac
  1099. # Pass precious variables to config.status.
  1100. if test "$ac_new_set" = set; then
  1101. case $ac_new_val in
  1102. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1103. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1104. *) ac_arg=$ac_var=$ac_new_val ;;
  1105. esac
  1106. case " $ac_configure_args " in
  1107. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1108. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1109. esac
  1110. fi
  1111. done
  1112. if $ac_cache_corrupted; then
  1113. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1114. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1115. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1116. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1117. { (exit 1); exit 1; }; }
  1118. fi
  1119. ac_ext=c
  1120. ac_cpp='$CPP $CPPFLAGS'
  1121. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1122. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1123. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1124. ac_config_headers="$ac_config_headers config.h"
  1125. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1126. egg_ac_parameters=
  1127. ac_prev=
  1128. for ac_arg in $ac_configure_args; do
  1129. if test -n "$ac_prev"; then
  1130. ac_prev=
  1131. continue
  1132. fi
  1133. case $ac_arg in
  1134. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1135. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1136. ac_prev=cache_file ;;
  1137. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1138. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1139. | --c=*)
  1140. ;;
  1141. --config-cache | -C)
  1142. ;;
  1143. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1144. ac_prev=srcdir ;;
  1145. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1146. ;;
  1147. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1148. esac
  1149. done
  1150. # Setup build environment
  1151. #AC_REQUIRE_CPP
  1152. ac_ext=cc
  1153. ac_cpp='$CXXCPP $CPPFLAGS'
  1154. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1155. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1156. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1157. ac_ext=cc
  1158. ac_cpp='$CXXCPP $CPPFLAGS'
  1159. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1160. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1161. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1162. if test -n "$ac_tool_prefix"; then
  1163. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1164. do
  1165. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1166. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1167. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1168. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1169. if test "${ac_cv_prog_CXX+set}" = set; then
  1170. echo $ECHO_N "(cached) $ECHO_C" >&6
  1171. else
  1172. if test -n "$CXX"; then
  1173. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1174. else
  1175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1176. for as_dir in $PATH
  1177. do
  1178. IFS=$as_save_IFS
  1179. test -z "$as_dir" && as_dir=.
  1180. for ac_exec_ext in '' $ac_executable_extensions; do
  1181. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1182. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1183. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1184. break 2
  1185. fi
  1186. done
  1187. done
  1188. fi
  1189. fi
  1190. CXX=$ac_cv_prog_CXX
  1191. if test -n "$CXX"; then
  1192. echo "$as_me:$LINENO: result: $CXX" >&5
  1193. echo "${ECHO_T}$CXX" >&6
  1194. else
  1195. echo "$as_me:$LINENO: result: no" >&5
  1196. echo "${ECHO_T}no" >&6
  1197. fi
  1198. test -n "$CXX" && break
  1199. done
  1200. fi
  1201. if test -z "$CXX"; then
  1202. ac_ct_CXX=$CXX
  1203. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1204. do
  1205. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1206. set dummy $ac_prog; ac_word=$2
  1207. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1208. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1209. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1210. echo $ECHO_N "(cached) $ECHO_C" >&6
  1211. else
  1212. if test -n "$ac_ct_CXX"; then
  1213. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1214. else
  1215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1216. for as_dir in $PATH
  1217. do
  1218. IFS=$as_save_IFS
  1219. test -z "$as_dir" && as_dir=.
  1220. for ac_exec_ext in '' $ac_executable_extensions; do
  1221. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1222. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1223. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1224. break 2
  1225. fi
  1226. done
  1227. done
  1228. fi
  1229. fi
  1230. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1231. if test -n "$ac_ct_CXX"; then
  1232. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1233. echo "${ECHO_T}$ac_ct_CXX" >&6
  1234. else
  1235. echo "$as_me:$LINENO: result: no" >&5
  1236. echo "${ECHO_T}no" >&6
  1237. fi
  1238. test -n "$ac_ct_CXX" && break
  1239. done
  1240. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1241. CXX=$ac_ct_CXX
  1242. fi
  1243. # Provide some information about the compiler.
  1244. echo "$as_me:$LINENO:" \
  1245. "checking for C++ compiler version" >&5
  1246. ac_compiler=`set X $ac_compile; echo $2`
  1247. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1248. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1249. ac_status=$?
  1250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1251. (exit $ac_status); }
  1252. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1253. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1254. ac_status=$?
  1255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1256. (exit $ac_status); }
  1257. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1258. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1259. ac_status=$?
  1260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1261. (exit $ac_status); }
  1262. cat >conftest.$ac_ext <<_ACEOF
  1263. /* confdefs.h. */
  1264. _ACEOF
  1265. cat confdefs.h >>conftest.$ac_ext
  1266. cat >>conftest.$ac_ext <<_ACEOF
  1267. /* end confdefs.h. */
  1268. int
  1269. main ()
  1270. {
  1271. ;
  1272. return 0;
  1273. }
  1274. _ACEOF
  1275. ac_clean_files_save=$ac_clean_files
  1276. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1277. # Try to create an executable without -o first, disregard a.out.
  1278. # It will help us diagnose broken compilers, and finding out an intuition
  1279. # of exeext.
  1280. echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1281. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
  1282. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1283. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1284. (eval $ac_link_default) 2>&5
  1285. ac_status=$?
  1286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1287. (exit $ac_status); }; then
  1288. # Find the output, starting from the most likely. This scheme is
  1289. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1290. # resort.
  1291. # Be careful to initialize this variable, since it used to be cached.
  1292. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1293. ac_cv_exeext=
  1294. # b.out is created by i960 compilers.
  1295. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1296. do
  1297. test -f "$ac_file" || continue
  1298. case $ac_file in
  1299. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1300. ;;
  1301. conftest.$ac_ext )
  1302. # This is the source file.
  1303. ;;
  1304. [ab].out )
  1305. # We found the default executable, but exeext='' is most
  1306. # certainly right.
  1307. break;;
  1308. *.* )
  1309. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1310. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1311. # but it would be cool to find out if it's true. Does anybody
  1312. # maintain Libtool? --akim.
  1313. export ac_cv_exeext
  1314. break;;
  1315. * )
  1316. break;;
  1317. esac
  1318. done
  1319. else
  1320. echo "$as_me: failed program was:" >&5
  1321. sed 's/^/| /' conftest.$ac_ext >&5
  1322. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1323. See \`config.log' for more details." >&5
  1324. echo "$as_me: error: C++ compiler cannot create executables
  1325. See \`config.log' for more details." >&2;}
  1326. { (exit 77); exit 77; }; }
  1327. fi
  1328. ac_exeext=$ac_cv_exeext
  1329. echo "$as_me:$LINENO: result: $ac_file" >&5
  1330. echo "${ECHO_T}$ac_file" >&6
  1331. # Check the compiler produces executables we can run. If not, either
  1332. # the compiler is broken, or we cross compile.
  1333. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1334. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
  1335. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1336. # If not cross compiling, check that we can run a simple program.
  1337. if test "$cross_compiling" != yes; then
  1338. if { ac_try='./$ac_file'
  1339. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1340. (eval $ac_try) 2>&5
  1341. ac_status=$?
  1342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1343. (exit $ac_status); }; }; then
  1344. cross_compiling=no
  1345. else
  1346. if test "$cross_compiling" = maybe; then
  1347. cross_compiling=yes
  1348. else
  1349. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1350. If you meant to cross compile, use \`--host'.
  1351. See \`config.log' for more details." >&5
  1352. echo "$as_me: error: cannot run C++ compiled programs.
  1353. If you meant to cross compile, use \`--host'.
  1354. See \`config.log' for more details." >&2;}
  1355. { (exit 1); exit 1; }; }
  1356. fi
  1357. fi
  1358. fi
  1359. echo "$as_me:$LINENO: result: yes" >&5
  1360. echo "${ECHO_T}yes" >&6
  1361. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1362. ac_clean_files=$ac_clean_files_save
  1363. # Check the compiler produces executables we can run. If not, either
  1364. # the compiler is broken, or we cross compile.
  1365. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1366. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1367. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1368. echo "${ECHO_T}$cross_compiling" >&6
  1369. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1370. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1371. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1372. (eval $ac_link) 2>&5
  1373. ac_status=$?
  1374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1375. (exit $ac_status); }; then
  1376. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1377. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1378. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1379. # `rm'.
  1380. for ac_file in conftest.exe conftest conftest.*; do
  1381. test -f "$ac_file" || continue
  1382. case $ac_file in
  1383. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1384. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1385. export ac_cv_exeext
  1386. break;;
  1387. * ) break;;
  1388. esac
  1389. done
  1390. else
  1391. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1392. See \`config.log' for more details." >&5
  1393. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1394. See \`config.log' for more details." >&2;}
  1395. { (exit 1); exit 1; }; }
  1396. fi
  1397. rm -f conftest$ac_cv_exeext
  1398. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1399. echo "${ECHO_T}$ac_cv_exeext" >&6
  1400. rm -f conftest.$ac_ext
  1401. EXEEXT=$ac_cv_exeext
  1402. ac_exeext=$EXEEXT
  1403. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1404. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1405. if test "${ac_cv_objext+set}" = set; then
  1406. echo $ECHO_N "(cached) $ECHO_C" >&6
  1407. else
  1408. cat >conftest.$ac_ext <<_ACEOF
  1409. /* confdefs.h. */
  1410. _ACEOF
  1411. cat confdefs.h >>conftest.$ac_ext
  1412. cat >>conftest.$ac_ext <<_ACEOF
  1413. /* end confdefs.h. */
  1414. int
  1415. main ()
  1416. {
  1417. ;
  1418. return 0;
  1419. }
  1420. _ACEOF
  1421. rm -f conftest.o conftest.obj
  1422. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1423. (eval $ac_compile) 2>&5
  1424. ac_status=$?
  1425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1426. (exit $ac_status); }; then
  1427. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1428. case $ac_file in
  1429. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1430. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1431. break;;
  1432. esac
  1433. done
  1434. else
  1435. echo "$as_me: failed program was:" >&5
  1436. sed 's/^/| /' conftest.$ac_ext >&5
  1437. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1438. See \`config.log' for more details." >&5
  1439. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1440. See \`config.log' for more details." >&2;}
  1441. { (exit 1); exit 1; }; }
  1442. fi
  1443. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1444. fi
  1445. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1446. echo "${ECHO_T}$ac_cv_objext" >&6
  1447. OBJEXT=$ac_cv_objext
  1448. ac_objext=$OBJEXT
  1449. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  1450. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  1451. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  1452. echo $ECHO_N "(cached) $ECHO_C" >&6
  1453. else
  1454. cat >conftest.$ac_ext <<_ACEOF
  1455. /* confdefs.h. */
  1456. _ACEOF
  1457. cat confdefs.h >>conftest.$ac_ext
  1458. cat >>conftest.$ac_ext <<_ACEOF
  1459. /* end confdefs.h. */
  1460. int
  1461. main ()
  1462. {
  1463. #ifndef __GNUC__
  1464. choke me
  1465. #endif
  1466. ;
  1467. return 0;
  1468. }
  1469. _ACEOF
  1470. rm -f conftest.$ac_objext
  1471. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1472. (eval $ac_compile) 2>conftest.er1
  1473. ac_status=$?
  1474. grep -v '^ *+' conftest.er1 >conftest.err
  1475. rm -f conftest.er1
  1476. cat conftest.err >&5
  1477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1478. (exit $ac_status); } &&
  1479. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  1480. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1481. (eval $ac_try) 2>&5
  1482. ac_status=$?
  1483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1484. (exit $ac_status); }; } &&
  1485. { ac_try='test -s conftest.$ac_objext'
  1486. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1487. (eval $ac_try) 2>&5
  1488. ac_status=$?
  1489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1490. (exit $ac_status); }; }; then
  1491. ac_compiler_gnu=yes
  1492. else
  1493. echo "$as_me: failed program was:" >&5
  1494. sed 's/^/| /' conftest.$ac_ext >&5
  1495. ac_compiler_gnu=no
  1496. fi
  1497. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1498. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  1499. fi
  1500. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  1501. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  1502. GXX=`test $ac_compiler_gnu = yes && echo yes`
  1503. ac_test_CXXFLAGS=${CXXFLAGS+set}
  1504. ac_save_CXXFLAGS=$CXXFLAGS
  1505. CXXFLAGS="-g"
  1506. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  1507. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  1508. if test "${ac_cv_prog_cxx_g+set}" = set; then
  1509. echo $ECHO_N "(cached) $ECHO_C" >&6
  1510. else
  1511. cat >conftest.$ac_ext <<_ACEOF
  1512. /* confdefs.h. */
  1513. _ACEOF
  1514. cat confdefs.h >>conftest.$ac_ext
  1515. cat >>conftest.$ac_ext <<_ACEOF
  1516. /* end confdefs.h. */
  1517. int
  1518. main ()
  1519. {
  1520. ;
  1521. return 0;
  1522. }
  1523. _ACEOF
  1524. rm -f conftest.$ac_objext
  1525. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1526. (eval $ac_compile) 2>conftest.er1
  1527. ac_status=$?
  1528. grep -v '^ *+' conftest.er1 >conftest.err
  1529. rm -f conftest.er1
  1530. cat conftest.err >&5
  1531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1532. (exit $ac_status); } &&
  1533. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  1534. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1535. (eval $ac_try) 2>&5
  1536. ac_status=$?
  1537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1538. (exit $ac_status); }; } &&
  1539. { ac_try='test -s conftest.$ac_objext'
  1540. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1541. (eval $ac_try) 2>&5
  1542. ac_status=$?
  1543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1544. (exit $ac_status); }; }; then
  1545. ac_cv_prog_cxx_g=yes
  1546. else
  1547. echo "$as_me: failed program was:" >&5
  1548. sed 's/^/| /' conftest.$ac_ext >&5
  1549. ac_cv_prog_cxx_g=no
  1550. fi
  1551. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1552. fi
  1553. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  1554. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  1555. if test "$ac_test_CXXFLAGS" = set; then
  1556. CXXFLAGS=$ac_save_CXXFLAGS
  1557. elif test $ac_cv_prog_cxx_g = yes; then
  1558. if test "$GXX" = yes; then
  1559. CXXFLAGS="-g -O2"
  1560. else
  1561. CXXFLAGS="-g"
  1562. fi
  1563. else
  1564. if test "$GXX" = yes; then
  1565. CXXFLAGS="-O2"
  1566. else
  1567. CXXFLAGS=
  1568. fi
  1569. fi
  1570. for ac_declaration in \
  1571. '' \
  1572. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1573. 'extern "C" void std::exit (int); using std::exit;' \
  1574. 'extern "C" void exit (int) throw ();' \
  1575. 'extern "C" void exit (int);' \
  1576. 'void exit (int);'
  1577. do
  1578. cat >conftest.$ac_ext <<_ACEOF
  1579. /* confdefs.h. */
  1580. _ACEOF
  1581. cat confdefs.h >>conftest.$ac_ext
  1582. cat >>conftest.$ac_ext <<_ACEOF
  1583. /* end confdefs.h. */
  1584. $ac_declaration
  1585. #include <stdlib.h>
  1586. int
  1587. main ()
  1588. {
  1589. exit (42);
  1590. ;
  1591. return 0;
  1592. }
  1593. _ACEOF
  1594. rm -f conftest.$ac_objext
  1595. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1596. (eval $ac_compile) 2>conftest.er1
  1597. ac_status=$?
  1598. grep -v '^ *+' conftest.er1 >conftest.err
  1599. rm -f conftest.er1
  1600. cat conftest.err >&5
  1601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1602. (exit $ac_status); } &&
  1603. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  1604. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1605. (eval $ac_try) 2>&5
  1606. ac_status=$?
  1607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1608. (exit $ac_status); }; } &&
  1609. { ac_try='test -s conftest.$ac_objext'
  1610. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1611. (eval $ac_try) 2>&5
  1612. ac_status=$?
  1613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1614. (exit $ac_status); }; }; then
  1615. :
  1616. else
  1617. echo "$as_me: failed program was:" >&5
  1618. sed 's/^/| /' conftest.$ac_ext >&5
  1619. continue
  1620. fi
  1621. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1622. cat >conftest.$ac_ext <<_ACEOF
  1623. /* confdefs.h. */
  1624. _ACEOF
  1625. cat confdefs.h >>conftest.$ac_ext
  1626. cat >>conftest.$ac_ext <<_ACEOF
  1627. /* end confdefs.h. */
  1628. $ac_declaration
  1629. int
  1630. main ()
  1631. {
  1632. exit (42);
  1633. ;
  1634. return 0;
  1635. }
  1636. _ACEOF
  1637. rm -f conftest.$ac_objext
  1638. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1639. (eval $ac_compile) 2>conftest.er1
  1640. ac_status=$?
  1641. grep -v '^ *+' conftest.er1 >conftest.err
  1642. rm -f conftest.er1
  1643. cat conftest.err >&5
  1644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1645. (exit $ac_status); } &&
  1646. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  1647. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1648. (eval $ac_try) 2>&5
  1649. ac_status=$?
  1650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1651. (exit $ac_status); }; } &&
  1652. { ac_try='test -s conftest.$ac_objext'
  1653. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1654. (eval $ac_try) 2>&5
  1655. ac_status=$?
  1656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1657. (exit $ac_status); }; }; then
  1658. break
  1659. else
  1660. echo "$as_me: failed program was:" >&5
  1661. sed 's/^/| /' conftest.$ac_ext >&5
  1662. fi
  1663. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1664. done
  1665. rm -f conftest*
  1666. if test -n "$ac_declaration"; then
  1667. echo '#ifdef __cplusplus' >>confdefs.h
  1668. echo $ac_declaration >>confdefs.h
  1669. echo '#endif' >>confdefs.h
  1670. fi
  1671. ac_ext=cc
  1672. ac_cpp='$CXXCPP $CPPFLAGS'
  1673. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1674. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1675. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1676. if test "${cross_compiling-x}" = "x"
  1677. then
  1678. cat << 'EOF' >&2
  1679. configure: error:
  1680. This system does not appear to have a working C compiler.
  1681. A working C compiler is required to compile Eggdrop.
  1682. EOF
  1683. exit 1
  1684. fi
  1685. if test -n "$GXX"; then
  1686. CXXFLAGS="$CXXFLAGS -O3"
  1687. fi
  1688. # Crazy machines
  1689. ac_ext=cc
  1690. ac_cpp='$CXXCPP $CPPFLAGS'
  1691. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1692. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1693. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1694. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  1695. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  1696. if test -z "$CXXCPP"; then
  1697. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  1698. echo $ECHO_N "(cached) $ECHO_C" >&6
  1699. else
  1700. # Double quotes because CXXCPP needs to be expanded
  1701. for CXXCPP in "$CXX -E" "/lib/cpp"
  1702. do
  1703. ac_preproc_ok=false
  1704. for ac_cxx_preproc_warn_flag in '' yes
  1705. do
  1706. # Use a header file that comes with gcc, so configuring glibc
  1707. # with a fresh cross-compiler works.
  1708. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1709. # <limits.h> exists even on freestanding compilers.
  1710. # On the NeXT, cc -E runs the code through the compiler's parser,
  1711. # not just through cpp. "Syntax error" is here to catch this case.
  1712. cat >conftest.$ac_ext <<_ACEOF
  1713. /* confdefs.h. */
  1714. _ACEOF
  1715. cat confdefs.h >>conftest.$ac_ext
  1716. cat >>conftest.$ac_ext <<_ACEOF
  1717. /* end confdefs.h. */
  1718. #ifdef __STDC__
  1719. # include <limits.h>
  1720. #else
  1721. # include <assert.h>
  1722. #endif
  1723. Syntax error
  1724. _ACEOF
  1725. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1726. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1727. ac_status=$?
  1728. grep -v '^ *+' conftest.er1 >conftest.err
  1729. rm -f conftest.er1
  1730. cat conftest.err >&5
  1731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1732. (exit $ac_status); } >/dev/null; then
  1733. if test -s conftest.err; then
  1734. ac_cpp_err=$ac_cxx_preproc_warn_flag
  1735. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  1736. else
  1737. ac_cpp_err=
  1738. fi
  1739. else
  1740. ac_cpp_err=yes
  1741. fi
  1742. if test -z "$ac_cpp_err"; then
  1743. :
  1744. else
  1745. echo "$as_me: failed program was:" >&5
  1746. sed 's/^/| /' conftest.$ac_ext >&5
  1747. # Broken: fails on valid input.
  1748. continue
  1749. fi
  1750. rm -f conftest.err conftest.$ac_ext
  1751. # OK, works on sane cases. Now check whether non-existent headers
  1752. # can be detected and how.
  1753. cat >conftest.$ac_ext <<_ACEOF
  1754. /* confdefs.h. */
  1755. _ACEOF
  1756. cat confdefs.h >>conftest.$ac_ext
  1757. cat >>conftest.$ac_ext <<_ACEOF
  1758. /* end confdefs.h. */
  1759. #include <ac_nonexistent.h>
  1760. _ACEOF
  1761. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1762. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1763. ac_status=$?
  1764. grep -v '^ *+' conftest.er1 >conftest.err
  1765. rm -f conftest.er1
  1766. cat conftest.err >&5
  1767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1768. (exit $ac_status); } >/dev/null; then
  1769. if test -s conftest.err; then
  1770. ac_cpp_err=$ac_cxx_preproc_warn_flag
  1771. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  1772. else
  1773. ac_cpp_err=
  1774. fi
  1775. else
  1776. ac_cpp_err=yes
  1777. fi
  1778. if test -z "$ac_cpp_err"; then
  1779. # Broken: success on invalid input.
  1780. continue
  1781. else
  1782. echo "$as_me: failed program was:" >&5
  1783. sed 's/^/| /' conftest.$ac_ext >&5
  1784. # Passes both tests.
  1785. ac_preproc_ok=:
  1786. break
  1787. fi
  1788. rm -f conftest.err conftest.$ac_ext
  1789. done
  1790. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  1791. rm -f conftest.err conftest.$ac_ext
  1792. if $ac_preproc_ok; then
  1793. break
  1794. fi
  1795. done
  1796. ac_cv_prog_CXXCPP=$CXXCPP
  1797. fi
  1798. CXXCPP=$ac_cv_prog_CXXCPP
  1799. else
  1800. ac_cv_prog_CXXCPP=$CXXCPP
  1801. fi
  1802. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  1803. echo "${ECHO_T}$CXXCPP" >&6
  1804. ac_preproc_ok=false
  1805. for ac_cxx_preproc_warn_flag in '' yes
  1806. do
  1807. # Use a header file that comes with gcc, so configuring glibc
  1808. # with a fresh cross-compiler works.
  1809. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1810. # <limits.h> exists even on freestanding compilers.
  1811. # On the NeXT, cc -E runs the code through the compiler's parser,
  1812. # not just through cpp. "Syntax error" is here to catch this case.
  1813. cat >conftest.$ac_ext <<_ACEOF
  1814. /* confdefs.h. */
  1815. _ACEOF
  1816. cat confdefs.h >>conftest.$ac_ext
  1817. cat >>conftest.$ac_ext <<_ACEOF
  1818. /* end confdefs.h. */
  1819. #ifdef __STDC__
  1820. # include <limits.h>
  1821. #else
  1822. # include <assert.h>
  1823. #endif
  1824. Syntax error
  1825. _ACEOF
  1826. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1827. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1828. ac_status=$?
  1829. grep -v '^ *+' conftest.er1 >conftest.err
  1830. rm -f conftest.er1
  1831. cat conftest.err >&5
  1832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1833. (exit $ac_status); } >/dev/null; then
  1834. if test -s conftest.err; then
  1835. ac_cpp_err=$ac_cxx_preproc_warn_flag
  1836. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  1837. else
  1838. ac_cpp_err=
  1839. fi
  1840. else
  1841. ac_cpp_err=yes
  1842. fi
  1843. if test -z "$ac_cpp_err"; then
  1844. :
  1845. else
  1846. echo "$as_me: failed program was:" >&5
  1847. sed 's/^/| /' conftest.$ac_ext >&5
  1848. # Broken: fails on valid input.
  1849. continue
  1850. fi
  1851. rm -f conftest.err conftest.$ac_ext
  1852. # OK, works on sane cases. Now check whether non-existent headers
  1853. # can be detected and how.
  1854. cat >conftest.$ac_ext <<_ACEOF
  1855. /* confdefs.h. */
  1856. _ACEOF
  1857. cat confdefs.h >>conftest.$ac_ext
  1858. cat >>conftest.$ac_ext <<_ACEOF
  1859. /* end confdefs.h. */
  1860. #include <ac_nonexistent.h>
  1861. _ACEOF
  1862. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1863. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1864. ac_status=$?
  1865. grep -v '^ *+' conftest.er1 >conftest.err
  1866. rm -f conftest.er1
  1867. cat conftest.err >&5
  1868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1869. (exit $ac_status); } >/dev/null; then
  1870. if test -s conftest.err; then
  1871. ac_cpp_err=$ac_cxx_preproc_warn_flag
  1872. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  1873. else
  1874. ac_cpp_err=
  1875. fi
  1876. else
  1877. ac_cpp_err=yes
  1878. fi
  1879. if test -z "$ac_cpp_err"; then
  1880. # Broken: success on invalid input.
  1881. continue
  1882. else
  1883. echo "$as_me: failed program was:" >&5
  1884. sed 's/^/| /' conftest.$ac_ext >&5
  1885. # Passes both tests.
  1886. ac_preproc_ok=:
  1887. break
  1888. fi
  1889. rm -f conftest.err conftest.$ac_ext
  1890. done
  1891. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  1892. rm -f conftest.err conftest.$ac_ext
  1893. if $ac_preproc_ok; then
  1894. :
  1895. else
  1896. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  1897. See \`config.log' for more details." >&5
  1898. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  1899. See \`config.log' for more details." >&2;}
  1900. { (exit 1); exit 1; }; }
  1901. fi
  1902. ac_ext=cc
  1903. ac_cpp='$CXXCPP $CPPFLAGS'
  1904. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1905. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1906. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1907. echo "$as_me:$LINENO: checking for egrep" >&5
  1908. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  1909. if test "${ac_cv_prog_egrep+set}" = set; then
  1910. echo $ECHO_N "(cached) $ECHO_C" >&6
  1911. else
  1912. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  1913. then ac_cv_prog_egrep='grep -E'
  1914. else ac_cv_prog_egrep='egrep'
  1915. fi
  1916. fi
  1917. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  1918. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  1919. EGREP=$ac_cv_prog_egrep
  1920. echo "$as_me:$LINENO: checking for AIX" >&5
  1921. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  1922. cat >conftest.$ac_ext <<_ACEOF
  1923. /* confdefs.h. */
  1924. _ACEOF
  1925. cat confdefs.h >>conftest.$ac_ext
  1926. cat >>conftest.$ac_ext <<_ACEOF
  1927. /* end confdefs.h. */
  1928. #ifdef _AIX
  1929. yes
  1930. #endif
  1931. _ACEOF
  1932. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1933. $EGREP "yes" >/dev/null 2>&1; then
  1934. echo "$as_me:$LINENO: result: yes" >&5
  1935. echo "${ECHO_T}yes" >&6
  1936. cat >>confdefs.h <<\_ACEOF
  1937. #define _ALL_SOURCE 1
  1938. _ACEOF
  1939. else
  1940. echo "$as_me:$LINENO: result: no" >&5
  1941. echo "${ECHO_T}no" >&6
  1942. fi
  1943. rm -f conftest*
  1944. echo "$as_me:$LINENO: checking for library containing strerror" >&5
  1945. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
  1946. if test "${ac_cv_search_strerror+set}" = set; then
  1947. echo $ECHO_N "(cached) $ECHO_C" >&6
  1948. else
  1949. ac_func_search_save_LIBS=$LIBS
  1950. ac_cv_search_strerror=no
  1951. cat >conftest.$ac_ext <<_ACEOF
  1952. /* confdefs.h. */
  1953. _ACEOF
  1954. cat confdefs.h >>conftest.$ac_ext
  1955. cat >>conftest.$ac_ext <<_ACEOF
  1956. /* end confdefs.h. */
  1957. /* Override any gcc2 internal prototype to avoid an error. */
  1958. #ifdef __cplusplus
  1959. extern "C"
  1960. #endif
  1961. /* We use char because int might match the return type of a gcc2
  1962. builtin and then its argument prototype would still apply. */
  1963. char strerror ();
  1964. int
  1965. main ()
  1966. {
  1967. strerror ();
  1968. ;
  1969. return 0;
  1970. }
  1971. _ACEOF
  1972. rm -f conftest.$ac_objext conftest$ac_exeext
  1973. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1974. (eval $ac_link) 2>conftest.er1
  1975. ac_status=$?
  1976. grep -v '^ *+' conftest.er1 >conftest.err
  1977. rm -f conftest.er1
  1978. cat conftest.err >&5
  1979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1980. (exit $ac_status); } &&
  1981. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  1982. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1983. (eval $ac_try) 2>&5
  1984. ac_status=$?
  1985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1986. (exit $ac_status); }; } &&
  1987. { ac_try='test -s conftest$ac_exeext'
  1988. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1989. (eval $ac_try) 2>&5
  1990. ac_status=$?
  1991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1992. (exit $ac_status); }; }; then
  1993. ac_cv_search_strerror="none required"
  1994. else
  1995. echo "$as_me: failed program was:" >&5
  1996. sed 's/^/| /' conftest.$ac_ext >&5
  1997. fi
  1998. rm -f conftest.err conftest.$ac_objext \
  1999. conftest$ac_exeext conftest.$ac_ext
  2000. if test "$ac_cv_search_strerror" = no; then
  2001. for ac_lib in cposix; do
  2002. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  2003. cat >conftest.$ac_ext <<_ACEOF
  2004. /* confdefs.h. */
  2005. _ACEOF
  2006. cat confdefs.h >>conftest.$ac_ext
  2007. cat >>conftest.$ac_ext <<_ACEOF
  2008. /* end confdefs.h. */
  2009. /* Override any gcc2 internal prototype to avoid an error. */
  2010. #ifdef __cplusplus
  2011. extern "C"
  2012. #endif
  2013. /* We use char because int might match the return type of a gcc2
  2014. builtin and then its argument prototype would still apply. */
  2015. char strerror ();
  2016. int
  2017. main ()
  2018. {
  2019. strerror ();
  2020. ;
  2021. return 0;
  2022. }
  2023. _ACEOF
  2024. rm -f conftest.$ac_objext conftest$ac_exeext
  2025. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2026. (eval $ac_link) 2>conftest.er1
  2027. ac_status=$?
  2028. grep -v '^ *+' conftest.er1 >conftest.err
  2029. rm -f conftest.er1
  2030. cat conftest.err >&5
  2031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2032. (exit $ac_status); } &&
  2033. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2034. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2035. (eval $ac_try) 2>&5
  2036. ac_status=$?
  2037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2038. (exit $ac_status); }; } &&
  2039. { ac_try='test -s conftest$ac_exeext'
  2040. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2041. (eval $ac_try) 2>&5
  2042. ac_status=$?
  2043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2044. (exit $ac_status); }; }; then
  2045. ac_cv_search_strerror="-l$ac_lib"
  2046. break
  2047. else
  2048. echo "$as_me: failed program was:" >&5
  2049. sed 's/^/| /' conftest.$ac_ext >&5
  2050. fi
  2051. rm -f conftest.err conftest.$ac_objext \
  2052. conftest$ac_exeext conftest.$ac_ext
  2053. done
  2054. fi
  2055. LIBS=$ac_func_search_save_LIBS
  2056. fi
  2057. echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  2058. echo "${ECHO_T}$ac_cv_search_strerror" >&6
  2059. if test "$ac_cv_search_strerror" != no; then
  2060. test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
  2061. fi
  2062. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2063. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2064. if test "${ac_cv_header_stdc+set}" = set; then
  2065. echo $ECHO_N "(cached) $ECHO_C" >&6
  2066. else
  2067. cat >conftest.$ac_ext <<_ACEOF
  2068. /* confdefs.h. */
  2069. _ACEOF
  2070. cat confdefs.h >>conftest.$ac_ext
  2071. cat >>conftest.$ac_ext <<_ACEOF
  2072. /* end confdefs.h. */
  2073. #include <stdlib.h>
  2074. #include <stdarg.h>
  2075. #include <string.h>
  2076. #include <float.h>
  2077. int
  2078. main ()
  2079. {
  2080. ;
  2081. return 0;
  2082. }
  2083. _ACEOF
  2084. rm -f conftest.$ac_objext
  2085. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2086. (eval $ac_compile) 2>conftest.er1
  2087. ac_status=$?
  2088. grep -v '^ *+' conftest.er1 >conftest.err
  2089. rm -f conftest.er1
  2090. cat conftest.err >&5
  2091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2092. (exit $ac_status); } &&
  2093. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2094. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2095. (eval $ac_try) 2>&5
  2096. ac_status=$?
  2097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2098. (exit $ac_status); }; } &&
  2099. { ac_try='test -s conftest.$ac_objext'
  2100. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2101. (eval $ac_try) 2>&5
  2102. ac_status=$?
  2103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2104. (exit $ac_status); }; }; then
  2105. ac_cv_header_stdc=yes
  2106. else
  2107. echo "$as_me: failed program was:" >&5
  2108. sed 's/^/| /' conftest.$ac_ext >&5
  2109. ac_cv_header_stdc=no
  2110. fi
  2111. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2112. if test $ac_cv_header_stdc = yes; then
  2113. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2114. cat >conftest.$ac_ext <<_ACEOF
  2115. /* confdefs.h. */
  2116. _ACEOF
  2117. cat confdefs.h >>conftest.$ac_ext
  2118. cat >>conftest.$ac_ext <<_ACEOF
  2119. /* end confdefs.h. */
  2120. #include <string.h>
  2121. _ACEOF
  2122. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2123. $EGREP "memchr" >/dev/null 2>&1; then
  2124. :
  2125. else
  2126. ac_cv_header_stdc=no
  2127. fi
  2128. rm -f conftest*
  2129. fi
  2130. if test $ac_cv_header_stdc = yes; then
  2131. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2132. cat >conftest.$ac_ext <<_ACEOF
  2133. /* confdefs.h. */
  2134. _ACEOF
  2135. cat confdefs.h >>conftest.$ac_ext
  2136. cat >>conftest.$ac_ext <<_ACEOF
  2137. /* end confdefs.h. */
  2138. #include <stdlib.h>
  2139. _ACEOF
  2140. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2141. $EGREP "free" >/dev/null 2>&1; then
  2142. :
  2143. else
  2144. ac_cv_header_stdc=no
  2145. fi
  2146. rm -f conftest*
  2147. fi
  2148. if test $ac_cv_header_stdc = yes; then
  2149. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2150. if test "$cross_compiling" = yes; then
  2151. :
  2152. else
  2153. cat >conftest.$ac_ext <<_ACEOF
  2154. /* confdefs.h. */
  2155. _ACEOF
  2156. cat confdefs.h >>conftest.$ac_ext
  2157. cat >>conftest.$ac_ext <<_ACEOF
  2158. /* end confdefs.h. */
  2159. #include <ctype.h>
  2160. #if ((' ' & 0x0FF) == 0x020)
  2161. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2162. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2163. #else
  2164. # define ISLOWER(c) \
  2165. (('a' <= (c) && (c) <= 'i') \
  2166. || ('j' <= (c) && (c) <= 'r') \
  2167. || ('s' <= (c) && (c) <= 'z'))
  2168. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2169. #endif
  2170. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2171. int
  2172. main ()
  2173. {
  2174. int i;
  2175. for (i = 0; i < 256; i++)
  2176. if (XOR (islower (i), ISLOWER (i))
  2177. || toupper (i) != TOUPPER (i))
  2178. exit(2);
  2179. exit (0);
  2180. }
  2181. _ACEOF
  2182. rm -f conftest$ac_exeext
  2183. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2184. (eval $ac_link) 2>&5
  2185. ac_status=$?
  2186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2187. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2188. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2189. (eval $ac_try) 2>&5
  2190. ac_status=$?
  2191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2192. (exit $ac_status); }; }; then
  2193. :
  2194. else
  2195. echo "$as_me: program exited with status $ac_status" >&5
  2196. echo "$as_me: failed program was:" >&5
  2197. sed 's/^/| /' conftest.$ac_ext >&5
  2198. ( exit $ac_status )
  2199. ac_cv_header_stdc=no
  2200. fi
  2201. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2202. fi
  2203. fi
  2204. fi
  2205. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2206. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2207. if test $ac_cv_header_stdc = yes; then
  2208. cat >>confdefs.h <<\_ACEOF
  2209. #define STDC_HEADERS 1
  2210. _ACEOF
  2211. fi
  2212. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2213. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2214. inttypes.h stdint.h unistd.h
  2215. do
  2216. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2217. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2218. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2219. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2220. echo $ECHO_N "(cached) $ECHO_C" >&6
  2221. else
  2222. cat >conftest.$ac_ext <<_ACEOF
  2223. /* confdefs.h. */
  2224. _ACEOF
  2225. cat confdefs.h >>conftest.$ac_ext
  2226. cat >>conftest.$ac_ext <<_ACEOF
  2227. /* end confdefs.h. */
  2228. $ac_includes_default
  2229. #include <$ac_header>
  2230. _ACEOF
  2231. rm -f conftest.$ac_objext
  2232. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2233. (eval $ac_compile) 2>conftest.er1
  2234. ac_status=$?
  2235. grep -v '^ *+' conftest.er1 >conftest.err
  2236. rm -f conftest.er1
  2237. cat conftest.err >&5
  2238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2239. (exit $ac_status); } &&
  2240. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2241. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2242. (eval $ac_try) 2>&5
  2243. ac_status=$?
  2244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2245. (exit $ac_status); }; } &&
  2246. { ac_try='test -s conftest.$ac_objext'
  2247. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2248. (eval $ac_try) 2>&5
  2249. ac_status=$?
  2250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2251. (exit $ac_status); }; }; then
  2252. eval "$as_ac_Header=yes"
  2253. else
  2254. echo "$as_me: failed program was:" >&5
  2255. sed 's/^/| /' conftest.$ac_ext >&5
  2256. eval "$as_ac_Header=no"
  2257. fi
  2258. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2259. fi
  2260. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2261. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2262. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2263. cat >>confdefs.h <<_ACEOF
  2264. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2265. _ACEOF
  2266. fi
  2267. done
  2268. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2269. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2270. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2271. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2272. echo $ECHO_N "(cached) $ECHO_C" >&6
  2273. fi
  2274. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2275. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2276. else
  2277. # Is the header compilable?
  2278. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2279. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2280. cat >conftest.$ac_ext <<_ACEOF
  2281. /* confdefs.h. */
  2282. _ACEOF
  2283. cat confdefs.h >>conftest.$ac_ext
  2284. cat >>conftest.$ac_ext <<_ACEOF
  2285. /* end confdefs.h. */
  2286. $ac_includes_default
  2287. #include <minix/config.h>
  2288. _ACEOF
  2289. rm -f conftest.$ac_objext
  2290. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2291. (eval $ac_compile) 2>conftest.er1
  2292. ac_status=$?
  2293. grep -v '^ *+' conftest.er1 >conftest.err
  2294. rm -f conftest.er1
  2295. cat conftest.err >&5
  2296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2297. (exit $ac_status); } &&
  2298. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2299. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2300. (eval $ac_try) 2>&5
  2301. ac_status=$?
  2302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2303. (exit $ac_status); }; } &&
  2304. { ac_try='test -s conftest.$ac_objext'
  2305. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2306. (eval $ac_try) 2>&5
  2307. ac_status=$?
  2308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2309. (exit $ac_status); }; }; then
  2310. ac_header_compiler=yes
  2311. else
  2312. echo "$as_me: failed program was:" >&5
  2313. sed 's/^/| /' conftest.$ac_ext >&5
  2314. ac_header_compiler=no
  2315. fi
  2316. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2317. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2318. echo "${ECHO_T}$ac_header_compiler" >&6
  2319. # Is the header present?
  2320. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2321. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2322. cat >conftest.$ac_ext <<_ACEOF
  2323. /* confdefs.h. */
  2324. _ACEOF
  2325. cat confdefs.h >>conftest.$ac_ext
  2326. cat >>conftest.$ac_ext <<_ACEOF
  2327. /* end confdefs.h. */
  2328. #include <minix/config.h>
  2329. _ACEOF
  2330. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2331. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2332. ac_status=$?
  2333. grep -v '^ *+' conftest.er1 >conftest.err
  2334. rm -f conftest.er1
  2335. cat conftest.err >&5
  2336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2337. (exit $ac_status); } >/dev/null; then
  2338. if test -s conftest.err; then
  2339. ac_cpp_err=$ac_cxx_preproc_warn_flag
  2340. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  2341. else
  2342. ac_cpp_err=
  2343. fi
  2344. else
  2345. ac_cpp_err=yes
  2346. fi
  2347. if test -z "$ac_cpp_err"; then
  2348. ac_header_preproc=yes
  2349. else
  2350. echo "$as_me: failed program was:" >&5
  2351. sed 's/^/| /' conftest.$ac_ext >&5
  2352. ac_header_preproc=no
  2353. fi
  2354. rm -f conftest.err conftest.$ac_ext
  2355. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2356. echo "${ECHO_T}$ac_header_preproc" >&6
  2357. # So? What about this header?
  2358. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  2359. yes:no: )
  2360. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2361. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2362. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2363. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2364. ac_header_preproc=yes
  2365. ;;
  2366. no:yes:* )
  2367. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2368. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2369. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2370. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2371. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2372. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2373. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2374. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2375. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2376. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2377. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2378. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2379. (
  2380. cat <<\_ASBOX
  2381. ## ------------------------------------------ ##
  2382. ## Report this to the AC_PACKAGE_NAME lists. ##
  2383. ## ------------------------------------------ ##
  2384. _ASBOX
  2385. ) |
  2386. sed "s/^/$as_me: WARNING: /" >&2
  2387. ;;
  2388. esac
  2389. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2390. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2391. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2392. echo $ECHO_N "(cached) $ECHO_C" >&6
  2393. else
  2394. ac_cv_header_minix_config_h=$ac_header_preproc
  2395. fi
  2396. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2397. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2398. fi
  2399. if test $ac_cv_header_minix_config_h = yes; then
  2400. MINIX=yes
  2401. else
  2402. MINIX=
  2403. fi
  2404. if test "$MINIX" = yes; then
  2405. cat >>confdefs.h <<\_ACEOF
  2406. #define _POSIX_SOURCE 1
  2407. _ACEOF
  2408. cat >>confdefs.h <<\_ACEOF
  2409. #define _POSIX_1_SOURCE 2
  2410. _ACEOF
  2411. cat >>confdefs.h <<\_ACEOF
  2412. #define _MINIX 1
  2413. _ACEOF
  2414. fi
  2415. #checkpoint
  2416. cat >confcache <<\_ACEOF
  2417. # This file is a shell script that caches the results of configure
  2418. # tests run on this system so they can be shared between configure
  2419. # scripts and configure runs, see configure's option --config-cache.
  2420. # It is not useful on other systems. If it contains results you don't
  2421. # want to keep, you may remove or edit it.
  2422. #
  2423. # config.status only pays attention to the cache file if you give it
  2424. # the --recheck option to rerun configure.
  2425. #
  2426. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2427. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2428. # following values.
  2429. _ACEOF
  2430. # The following way of writing the cache mishandles newlines in values,
  2431. # but we know of no workaround that is simple, portable, and efficient.
  2432. # So, don't put newlines in cache variables' values.
  2433. # Ultrix sh set writes to stderr and can't be redirected directly,
  2434. # and sets the high bit in the cache file unless we assign to the vars.
  2435. {
  2436. (set) 2>&1 |
  2437. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2438. *ac_space=\ *)
  2439. # `set' does not quote correctly, so add quotes (double-quote
  2440. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2441. sed -n \
  2442. "s/'/'\\\\''/g;
  2443. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2444. ;;
  2445. *)
  2446. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2447. sed -n \
  2448. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2449. ;;
  2450. esac;
  2451. } |
  2452. sed '
  2453. t clear
  2454. : clear
  2455. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2456. t end
  2457. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2458. : end' >>confcache
  2459. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2460. if test -w $cache_file; then
  2461. test "x$cache_file" != "x/dev/null"
  2462. cat confcache >$cache_file
  2463. else
  2464. echo "not updating unwritable cache $cache_file"
  2465. fi
  2466. fi
  2467. rm -f confcache
  2468. # Speedup compile
  2469. if test -n "$GXX" && test -z "$no_wall"; then
  2470. echo "$as_me:$LINENO: checking whether the compiler understands -Wall" >&5
  2471. echo $ECHO_N "checking whether the compiler understands -Wall... $ECHO_C" >&6
  2472. if test "${egg_cv_var_ccwall+set}" = set; then
  2473. echo $ECHO_N "(cached) $ECHO_C" >&6
  2474. else
  2475. ac_old_CXXFLAGS="$CXXFLAGS"
  2476. CXXFLAGS="$CXXFLAGS -Wall"
  2477. cat >conftest.$ac_ext <<_ACEOF
  2478. int main ()
  2479. {
  2480. return(0);
  2481. }
  2482. _ACEOF
  2483. rm -f conftest.$ac_objext
  2484. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2485. (eval $ac_compile) 2>conftest.er1
  2486. ac_status=$?
  2487. grep -v '^ *+' conftest.er1 >conftest.err
  2488. rm -f conftest.er1
  2489. cat conftest.err >&5
  2490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2491. (exit $ac_status); } &&
  2492. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2493. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2494. (eval $ac_try) 2>&5
  2495. ac_status=$?
  2496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2497. (exit $ac_status); }; } &&
  2498. { ac_try='test -s conftest.$ac_objext'
  2499. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2500. (eval $ac_try) 2>&5
  2501. ac_status=$?
  2502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2503. (exit $ac_status); }; }; then
  2504. egg_cv_var_ccwall="yes"
  2505. else
  2506. echo "$as_me: failed program was:" >&5
  2507. sed 's/^/| /' conftest.$ac_ext >&5
  2508. egg_cv_var_ccwall="no"
  2509. fi
  2510. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2511. CXXFLAGS="$ac_old_CXXFLAGS"
  2512. fi
  2513. echo "$as_me:$LINENO: result: $egg_cv_var_ccwall" >&5
  2514. echo "${ECHO_T}$egg_cv_var_ccwall" >&6
  2515. if test "$egg_cv_var_ccwall" = "yes"; then
  2516. CXXFLAGS="$CXXFLAGS -Wall"
  2517. fi
  2518. fi
  2519. if test -n "$GXX" && test -z "$no_pipe"; then
  2520. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2521. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2522. if test "${egg_cv_var_ccpipe+set}" = set; then
  2523. echo $ECHO_N "(cached) $ECHO_C" >&6
  2524. else
  2525. ac_old_CXX="$CXX"
  2526. CXX="$CXX -pipe"
  2527. cat >conftest.$ac_ext <<_ACEOF
  2528. int main ()
  2529. {
  2530. return(0);
  2531. }
  2532. _ACEOF
  2533. rm -f conftest.$ac_objext
  2534. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2535. (eval $ac_compile) 2>conftest.er1
  2536. ac_status=$?
  2537. grep -v '^ *+' conftest.er1 >conftest.err
  2538. rm -f conftest.er1
  2539. cat conftest.err >&5
  2540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2541. (exit $ac_status); } &&
  2542. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2543. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2544. (eval $ac_try) 2>&5
  2545. ac_status=$?
  2546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2547. (exit $ac_status); }; } &&
  2548. { ac_try='test -s conftest.$ac_objext'
  2549. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2550. (eval $ac_try) 2>&5
  2551. ac_status=$?
  2552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2553. (exit $ac_status); }; }; then
  2554. egg_cv_var_ccpipe="yes"
  2555. else
  2556. echo "$as_me: failed program was:" >&5
  2557. sed 's/^/| /' conftest.$ac_ext >&5
  2558. egg_cv_var_ccpipe="no"
  2559. fi
  2560. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2561. CXX="$ac_old_CXX"
  2562. fi
  2563. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2564. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2565. if test "$egg_cv_var_ccpipe" = "yes"; then
  2566. CXX="$CXX -pipe"
  2567. fi
  2568. fi
  2569. CCDEPMODE=gcc
  2570. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  2571. if test $num = "3"; then
  2572. CCDEPMODE=gcc3
  2573. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  2574. GCC3="-W -Wno-unused-parameter -Wdisabled-optimization -Wmissing-format-attribute"
  2575. fi
  2576. #checkpoint
  2577. cat >confcache <<\_ACEOF
  2578. # This file is a shell script that caches the results of configure
  2579. # tests run on this system so they can be shared between configure
  2580. # scripts and configure runs, see configure's option --config-cache.
  2581. # It is not useful on other systems. If it contains results you don't
  2582. # want to keep, you may remove or edit it.
  2583. #
  2584. # config.status only pays attention to the cache file if you give it
  2585. # the --recheck option to rerun configure.
  2586. #
  2587. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2588. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2589. # following values.
  2590. _ACEOF
  2591. # The following way of writing the cache mishandles newlines in values,
  2592. # but we know of no workaround that is simple, portable, and efficient.
  2593. # So, don't put newlines in cache variables' values.
  2594. # Ultrix sh set writes to stderr and can't be redirected directly,
  2595. # and sets the high bit in the cache file unless we assign to the vars.
  2596. {
  2597. (set) 2>&1 |
  2598. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2599. *ac_space=\ *)
  2600. # `set' does not quote correctly, so add quotes (double-quote
  2601. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2602. sed -n \
  2603. "s/'/'\\\\''/g;
  2604. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2605. ;;
  2606. *)
  2607. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2608. sed -n \
  2609. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2610. ;;
  2611. esac;
  2612. } |
  2613. sed '
  2614. t clear
  2615. : clear
  2616. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2617. t end
  2618. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2619. : end' >>confcache
  2620. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2621. if test -w $cache_file; then
  2622. test "x$cache_file" != "x/dev/null"
  2623. cat confcache >$cache_file
  2624. else
  2625. echo "not updating unwritable cache $cache_file"
  2626. fi
  2627. fi
  2628. rm -f confcache
  2629. # Checks for programs
  2630. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2631. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2632. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2633. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2634. echo $ECHO_N "(cached) $ECHO_C" >&6
  2635. else
  2636. cat >conftest.make <<\_ACEOF
  2637. all:
  2638. @echo 'ac_maketemp="$(MAKE)"'
  2639. _ACEOF
  2640. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2641. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2642. if test -n "$ac_maketemp"; then
  2643. eval ac_cv_prog_make_${ac_make}_set=yes
  2644. else
  2645. eval ac_cv_prog_make_${ac_make}_set=no
  2646. fi
  2647. rm -f conftest.make
  2648. fi
  2649. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2650. echo "$as_me:$LINENO: result: yes" >&5
  2651. echo "${ECHO_T}yes" >&6
  2652. SET_MAKE=
  2653. else
  2654. echo "$as_me:$LINENO: result: no" >&5
  2655. echo "${ECHO_T}no" >&6
  2656. SET_MAKE="MAKE=${MAKE-make}"
  2657. fi
  2658. cat << 'EOF' > conftest.head
  2659. a
  2660. b
  2661. c
  2662. EOF
  2663. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  2664. do
  2665. echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  2666. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6
  2667. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  2668. echo $ECHO_N "(cached) $ECHO_C" >&6
  2669. else
  2670. if test -n "$HEAD_1"
  2671. then
  2672. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  2673. else
  2674. if test "`cat conftest.head | $ac_prog`" = "a";
  2675. then
  2676. echo "$as_me:$LINENO: result: yes" >&5
  2677. echo "${ECHO_T}yes" >&6
  2678. ac_cv_prog_HEAD_1=$ac_prog
  2679. else
  2680. echo "$as_me:$LINENO: result: no" >&5
  2681. echo "${ECHO_T}no" >&6
  2682. fi
  2683. fi
  2684. fi
  2685. test -n "$ac_cv_prog_HEAD_1" && break
  2686. done
  2687. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  2688. then
  2689. cat << 'EOF' >&2
  2690. configure: error:
  2691. This system seems to lack a working 'head -1' or 'head -n 1' command.
  2692. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  2693. EOF
  2694. exit 1
  2695. fi
  2696. rm -f conftest.head
  2697. HEAD_1=$ac_cv_prog_HEAD_1
  2698. # awk is needed for Tcl library and header checks, and eggdrop version subst
  2699. for ac_prog in gawk mawk nawk awk
  2700. do
  2701. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2702. set dummy $ac_prog; ac_word=$2
  2703. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2704. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2705. if test "${ac_cv_prog_AWK+set}" = set; then
  2706. echo $ECHO_N "(cached) $ECHO_C" >&6
  2707. else
  2708. if test -n "$AWK"; then
  2709. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2710. else
  2711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2712. for as_dir in $PATH
  2713. do
  2714. IFS=$as_save_IFS
  2715. test -z "$as_dir" && as_dir=.
  2716. for ac_exec_ext in '' $ac_executable_extensions; do
  2717. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2718. ac_cv_prog_AWK="$ac_prog"
  2719. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2720. break 2
  2721. fi
  2722. done
  2723. done
  2724. fi
  2725. fi
  2726. AWK=$ac_cv_prog_AWK
  2727. if test -n "$AWK"; then
  2728. echo "$as_me:$LINENO: result: $AWK" >&5
  2729. echo "${ECHO_T}$AWK" >&6
  2730. else
  2731. echo "$as_me:$LINENO: result: no" >&5
  2732. echo "${ECHO_T}no" >&6
  2733. fi
  2734. test -n "$AWK" && break
  2735. done
  2736. if test "${AWK-x}" = "x"
  2737. then
  2738. cat << 'EOF' >&2
  2739. configure: error:
  2740. This system seems to lack a working 'awk' command.
  2741. A working 'awk' command is required to compile Eggdrop.
  2742. EOF
  2743. exit 1
  2744. fi
  2745. # basename is needed for Tcl library and header checks
  2746. # Extract the first word of "basename", so it can be a program name with args.
  2747. set dummy basename; ac_word=$2
  2748. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2749. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2750. if test "${ac_cv_prog_BASENAME+set}" = set; then
  2751. echo $ECHO_N "(cached) $ECHO_C" >&6
  2752. else
  2753. if test -n "$BASENAME"; then
  2754. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  2755. else
  2756. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2757. for as_dir in $PATH
  2758. do
  2759. IFS=$as_save_IFS
  2760. test -z "$as_dir" && as_dir=.
  2761. for ac_exec_ext in '' $ac_executable_extensions; do
  2762. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2763. ac_cv_prog_BASENAME="basename"
  2764. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2765. break 2
  2766. fi
  2767. done
  2768. done
  2769. fi
  2770. fi
  2771. BASENAME=$ac_cv_prog_BASENAME
  2772. if test -n "$BASENAME"; then
  2773. echo "$as_me:$LINENO: result: $BASENAME" >&5
  2774. echo "${ECHO_T}$BASENAME" >&6
  2775. else
  2776. echo "$as_me:$LINENO: result: no" >&5
  2777. echo "${ECHO_T}no" >&6
  2778. fi
  2779. if test "${BASENAME-x}" = "x"
  2780. then
  2781. cat << 'EOF' >&2
  2782. configure: error:
  2783. This system seems to lack a working 'basename' command.
  2784. A working 'basename' command is required to compile Eggdrop.
  2785. EOF
  2786. exit 1
  2787. fi
  2788. # Extract the first word of "objcopy", so it can be a program name with args.
  2789. set dummy objcopy; ac_word=$2
  2790. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2791. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2792. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  2793. echo $ECHO_N "(cached) $ECHO_C" >&6
  2794. else
  2795. if test -n "$OBJCOPY"; then
  2796. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  2797. else
  2798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2799. for as_dir in $PATH
  2800. do
  2801. IFS=$as_save_IFS
  2802. test -z "$as_dir" && as_dir=.
  2803. for ac_exec_ext in '' $ac_executable_extensions; do
  2804. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2805. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  2806. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2807. break 2
  2808. fi
  2809. done
  2810. done
  2811. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  2812. fi
  2813. fi
  2814. OBJCOPY=$ac_cv_prog_OBJCOPY
  2815. if test -n "$OBJCOPY"; then
  2816. echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  2817. echo "${ECHO_T}$OBJCOPY" >&6
  2818. else
  2819. echo "$as_me:$LINENO: result: no" >&5
  2820. echo "${ECHO_T}no" >&6
  2821. fi
  2822. # Extract the first word of "strip", so it can be a program name with args.
  2823. set dummy strip; ac_word=$2
  2824. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2825. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2826. if test "${ac_cv_prog_STRIP+set}" = set; then
  2827. echo $ECHO_N "(cached) $ECHO_C" >&6
  2828. else
  2829. if test -n "$STRIP"; then
  2830. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2831. else
  2832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2833. for as_dir in $PATH
  2834. do
  2835. IFS=$as_save_IFS
  2836. test -z "$as_dir" && as_dir=.
  2837. for ac_exec_ext in '' $ac_executable_extensions; do
  2838. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2839. ac_cv_prog_STRIP="strip"
  2840. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2841. break 2
  2842. fi
  2843. done
  2844. done
  2845. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  2846. fi
  2847. fi
  2848. STRIP=$ac_cv_prog_STRIP
  2849. if test -n "$STRIP"; then
  2850. echo "$as_me:$LINENO: result: $STRIP" >&5
  2851. echo "${ECHO_T}$STRIP" >&6
  2852. else
  2853. echo "$as_me:$LINENO: result: no" >&5
  2854. echo "${ECHO_T}no" >&6
  2855. fi
  2856. # Extract the first word of "gdiff", so it can be a program name with args.
  2857. set dummy gdiff; ac_word=$2
  2858. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2859. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2860. if test "${ac_cv_prog_DIFF+set}" = set; then
  2861. echo $ECHO_N "(cached) $ECHO_C" >&6
  2862. else
  2863. if test -n "$DIFF"; then
  2864. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  2865. else
  2866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2867. for as_dir in $PATH
  2868. do
  2869. IFS=$as_save_IFS
  2870. test -z "$as_dir" && as_dir=.
  2871. for ac_exec_ext in '' $ac_executable_extensions; do
  2872. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2873. ac_cv_prog_DIFF="gdiff"
  2874. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2875. break 2
  2876. fi
  2877. done
  2878. done
  2879. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  2880. fi
  2881. fi
  2882. DIFF=$ac_cv_prog_DIFF
  2883. if test -n "$DIFF"; then
  2884. echo "$as_me:$LINENO: result: $DIFF" >&5
  2885. echo "${ECHO_T}$DIFF" >&6
  2886. else
  2887. echo "$as_me:$LINENO: result: no" >&5
  2888. echo "${ECHO_T}no" >&6
  2889. fi
  2890. # Extract the first word of "uname", so it can be a program name with args.
  2891. set dummy uname; ac_word=$2
  2892. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2893. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2894. if test "${ac_cv_prog_UNAME+set}" = set; then
  2895. echo $ECHO_N "(cached) $ECHO_C" >&6
  2896. else
  2897. if test -n "$UNAME"; then
  2898. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  2899. else
  2900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2901. for as_dir in $PATH
  2902. do
  2903. IFS=$as_save_IFS
  2904. test -z "$as_dir" && as_dir=.
  2905. for ac_exec_ext in '' $ac_executable_extensions; do
  2906. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2907. ac_cv_prog_UNAME="uname"
  2908. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2909. break 2
  2910. fi
  2911. done
  2912. done
  2913. fi
  2914. fi
  2915. UNAME=$ac_cv_prog_UNAME
  2916. if test -n "$UNAME"; then
  2917. echo "$as_me:$LINENO: result: $UNAME" >&5
  2918. echo "${ECHO_T}$UNAME" >&6
  2919. else
  2920. echo "$as_me:$LINENO: result: no" >&5
  2921. echo "${ECHO_T}no" >&6
  2922. fi
  2923. # Extract the first word of "ccache", so it can be a program name with args.
  2924. set dummy ccache; ac_word=$2
  2925. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2926. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2927. if test "${ac_cv_prog_CCACHE+set}" = set; then
  2928. echo $ECHO_N "(cached) $ECHO_C" >&6
  2929. else
  2930. if test -n "$CCACHE"; then
  2931. ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
  2932. else
  2933. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2934. for as_dir in $PATH
  2935. do
  2936. IFS=$as_save_IFS
  2937. test -z "$as_dir" && as_dir=.
  2938. for ac_exec_ext in '' $ac_executable_extensions; do
  2939. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2940. ac_cv_prog_CCACHE="ccache"
  2941. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2942. break 2
  2943. fi
  2944. done
  2945. done
  2946. fi
  2947. fi
  2948. CCACHE=$ac_cv_prog_CCACHE
  2949. if test -n "$CCACHE"; then
  2950. echo "$as_me:$LINENO: result: $CCACHE" >&5
  2951. echo "${ECHO_T}$CCACHE" >&6
  2952. else
  2953. echo "$as_me:$LINENO: result: no" >&5
  2954. echo "${ECHO_T}no" >&6
  2955. fi
  2956. # Extract the first word of "distcc", so it can be a program name with args.
  2957. set dummy distcc; ac_word=$2
  2958. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2959. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2960. if test "${ac_cv_prog_DISTCC+set}" = set; then
  2961. echo $ECHO_N "(cached) $ECHO_C" >&6
  2962. else
  2963. if test -n "$DISTCC"; then
  2964. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  2965. else
  2966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2967. for as_dir in $PATH
  2968. do
  2969. IFS=$as_save_IFS
  2970. test -z "$as_dir" && as_dir=.
  2971. for ac_exec_ext in '' $ac_executable_extensions; do
  2972. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2973. ac_cv_prog_DISTCC="distcc"
  2974. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2975. break 2
  2976. fi
  2977. done
  2978. done
  2979. fi
  2980. fi
  2981. DISTCC=$ac_cv_prog_DISTCC
  2982. if test -n "$DISTCC"; then
  2983. echo "$as_me:$LINENO: result: $DISTCC" >&5
  2984. echo "${ECHO_T}$DISTCC" >&6
  2985. else
  2986. echo "$as_me:$LINENO: result: no" >&5
  2987. echo "${ECHO_T}no" >&6
  2988. fi
  2989. # Test the os and set the module linking settings
  2990. EGG_CYGWIN=no
  2991. echo "$as_me:$LINENO: checking system type" >&5
  2992. echo $ECHO_N "checking system type... $ECHO_C" >&6
  2993. if test "${egg_cv_var_system_type+set}" = set; then
  2994. echo $ECHO_N "(cached) $ECHO_C" >&6
  2995. else
  2996. egg_cv_var_system_type=`$UNAME -s`
  2997. fi
  2998. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  2999. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3000. echo "$as_me:$LINENO: checking system release" >&5
  3001. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3002. if test "${egg_cv_var_system_release+set}" = set; then
  3003. echo $ECHO_N "(cached) $ECHO_C" >&6
  3004. else
  3005. egg_cv_var_system_release=`$UNAME -r`
  3006. fi
  3007. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3008. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3009. echo "$as_me:$LINENO: checking system machine" >&5
  3010. echo $ECHO_N "checking system machine... $ECHO_C" >&6
  3011. if test "${egg_cv_var_system_machine+set}" = set; then
  3012. echo $ECHO_N "(cached) $ECHO_C" >&6
  3013. else
  3014. egg_cv_var_system_machine=`$UNAME -m`
  3015. fi
  3016. echo "$as_me:$LINENO: result: $egg_cv_var_system_machine" >&5
  3017. echo "${ECHO_T}$egg_cv_var_system_machine" >&6
  3018. case "$egg_cv_var_system_machine" in
  3019. i*)
  3020. CXX="$CXX -march=i486"
  3021. ;;
  3022. *)
  3023. ;;
  3024. esac
  3025. case "$egg_cv_var_system_type" in
  3026. BSD/OS)
  3027. ;;
  3028. CYGWI*)
  3029. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3030. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3031. WIN32FLAGS=
  3032. cat >conftest.$ac_ext <<_ACEOF
  3033. /* confdefs.h. */
  3034. _ACEOF
  3035. cat confdefs.h >>conftest.$ac_ext
  3036. cat >>conftest.$ac_ext <<_ACEOF
  3037. /* end confdefs.h. */
  3038. int
  3039. main ()
  3040. {
  3041. #ifndef WIN32
  3042. # ifndef _WIN32
  3043. # error WIN32 or _WIN32 not defined
  3044. # endif
  3045. #endif
  3046. ;
  3047. return 0;
  3048. }
  3049. _ACEOF
  3050. rm -f conftest.$ac_objext
  3051. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3052. (eval $ac_compile) 2>conftest.er1
  3053. ac_status=$?
  3054. grep -v '^ *+' conftest.er1 >conftest.err
  3055. rm -f conftest.er1
  3056. cat conftest.err >&5
  3057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3058. (exit $ac_status); } &&
  3059. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3060. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3061. (eval $ac_try) 2>&5
  3062. ac_status=$?
  3063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3064. (exit $ac_status); }; } &&
  3065. { ac_try='test -s conftest.$ac_objext'
  3066. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3067. (eval $ac_try) 2>&5
  3068. ac_status=$?
  3069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3070. (exit $ac_status); }; }; then
  3071. echo "$as_me:$LINENO: result: present by default" >&5
  3072. echo "${ECHO_T}present by default" >&6
  3073. else
  3074. echo "$as_me: failed program was:" >&5
  3075. sed 's/^/| /' conftest.$ac_ext >&5
  3076. ac_compile_save="$ac_compile"
  3077. save_CXX="$CXX"
  3078. ac_compile="$ac_compile -mwin32"
  3079. CXX="$CXX -mwin32"
  3080. cat >conftest.$ac_ext <<_ACEOF
  3081. /* confdefs.h. */
  3082. _ACEOF
  3083. cat confdefs.h >>conftest.$ac_ext
  3084. cat >>conftest.$ac_ext <<_ACEOF
  3085. /* end confdefs.h. */
  3086. int
  3087. main ()
  3088. {
  3089. #ifndef WIN32
  3090. # ifndef _WIN32
  3091. # error WIN32 or _WIN32 not defined
  3092. # endif
  3093. #endif
  3094. ;
  3095. return 0;
  3096. }
  3097. _ACEOF
  3098. rm -f conftest.$ac_objext
  3099. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3100. (eval $ac_compile) 2>conftest.er1
  3101. ac_status=$?
  3102. grep -v '^ *+' conftest.er1 >conftest.err
  3103. rm -f conftest.er1
  3104. cat conftest.err >&5
  3105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3106. (exit $ac_status); } &&
  3107. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3108. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3109. (eval $ac_try) 2>&5
  3110. ac_status=$?
  3111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3112. (exit $ac_status); }; } &&
  3113. { ac_try='test -s conftest.$ac_objext'
  3114. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3115. (eval $ac_try) 2>&5
  3116. ac_status=$?
  3117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3118. (exit $ac_status); }; }; then
  3119. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3120. echo "${ECHO_T}found via -mwin32" >&6
  3121. ac_compile="$ac_compile_save"
  3122. CXX="$save_CC"
  3123. WIN32FLAGS="-mwin32"
  3124. else
  3125. echo "$as_me: failed program was:" >&5
  3126. sed 's/^/| /' conftest.$ac_ext >&5
  3127. ac_compile="$ac_compile_save"
  3128. CXX="$save_CC"
  3129. echo "$as_me:$LINENO: result: not found" >&5
  3130. echo "${ECHO_T}not found" >&6
  3131. fi
  3132. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3133. fi
  3134. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3135. CXX="$CXX $WIN32FLAGS"
  3136. EGG_CYGWIN="yes"
  3137. if test $EGG_CYGWIN = "yes"; then
  3138. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3139. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3140. if test -r /usr/lib/binmode.o; then
  3141. echo "$as_me:$LINENO: result: yes" >&5
  3142. echo "${ECHO_T}yes" >&6
  3143. LIBS="$LIBS /usr/lib/binmode.o"
  3144. else
  3145. echo "$as_me:$LINENO: result: no" >&5
  3146. echo "${ECHO_T}no" >&6
  3147. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3148. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3149. fi
  3150. fi
  3151. cat >>confdefs.h <<\_ACEOF
  3152. #define CYGWIN_HACKS 1
  3153. _ACEOF
  3154. cat >>confdefs.h <<\_ACEOF
  3155. #define WIN32_LEAN_AND_MEAN 1
  3156. _ACEOF
  3157. ;;
  3158. IRIX)
  3159. ;;
  3160. HP-UX)
  3161. cat >>confdefs.h <<\_ACEOF
  3162. #define MD32_XARRAY 1
  3163. _ACEOF
  3164. ;;
  3165. Ultrix)
  3166. SHELL=/bin/sh5
  3167. ;;
  3168. SINIX*)
  3169. ;;
  3170. BeOS)
  3171. ;;
  3172. Linux)
  3173. ;;
  3174. Lynx)
  3175. ;;
  3176. QNX)
  3177. ;;
  3178. OSF1)
  3179. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3180. V*)
  3181. if test "$AWK" = "gawk"
  3182. then
  3183. AWK=awk
  3184. fi
  3185. ;;
  3186. 1.0|1.1|1.2)
  3187. cat >>confdefs.h <<\_ACEOF
  3188. #define OSF1_HACKS 1
  3189. _ACEOF
  3190. ;;
  3191. 1.*)
  3192. cat >>confdefs.h <<\_ACEOF
  3193. #define OSF1_HACKS 1
  3194. _ACEOF
  3195. ;;
  3196. *)
  3197. ;;
  3198. esac
  3199. cat >>confdefs.h <<\_ACEOF
  3200. #define STOP_UAC 1
  3201. _ACEOF
  3202. cat >>confdefs.h <<\_ACEOF
  3203. #define BROKEN_SNPRINTF 1
  3204. _ACEOF
  3205. ;;
  3206. SunOS)
  3207. ;;
  3208. *BSD)
  3209. # FreeBSD/OpenBSD/NetBSD
  3210. ;;
  3211. *)
  3212. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3213. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3214. if test -r /mach
  3215. then
  3216. echo "$as_me:$LINENO: result: yes" >&5
  3217. echo "${ECHO_T}yes" >&6
  3218. cat >>confdefs.h <<\_ACEOF
  3219. #define BORGCUBES 1
  3220. _ACEOF
  3221. else
  3222. echo "$as_me:$LINENO: result: no" >&5
  3223. echo "${ECHO_T}no" >&6
  3224. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3225. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3226. if test -r /cmds
  3227. then
  3228. echo "$as_me:$LINENO: result: yes" >&5
  3229. echo "${ECHO_T}yes" >&6
  3230. else
  3231. echo "$as_me:$LINENO: result: no" >&5
  3232. echo "${ECHO_T}no" >&6
  3233. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3234. echo "${ECHO_T}Something unknown!" >&6
  3235. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3236. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3237. fi
  3238. fi
  3239. ;;
  3240. esac
  3241. # Check for IPv6 support
  3242. #EGG_IPV6_SUPPORTED
  3243. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  3244. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  3245. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  3246. if test "${enable_ipv6+set}" = set; then
  3247. enableval="$enable_ipv6"
  3248. ac_cv_dipv6="yes"
  3249. echo "$as_me:$LINENO: result: yes" >&5
  3250. echo "${ECHO_T}yes" >&6
  3251. else
  3252. ac_cv_dipv6="no"
  3253. if test "$egg_cv_ipv6_supported" = "no"; then
  3254. ac_cv_dipv6="no"
  3255. fi
  3256. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  3257. echo "${ECHO_T}$ac_cv_dipv6" >&6
  3258. fi;
  3259. if ! test "$EGG_CYGWIN" = "yes"; then
  3260. if test "$ac_cv_dipv6" = "no"; then
  3261. cat >>confdefs.h <<\_ACEOF
  3262. #define USE_IPV6 1
  3263. _ACEOF
  3264. fi
  3265. fi
  3266. echo "$as_me:$LINENO: checking for socklen_t" >&5
  3267. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  3268. if test "${egg_cv_socklen_t+set}" = set; then
  3269. echo $ECHO_N "(cached) $ECHO_C" >&6
  3270. else
  3271. if test "$cross_compiling" = yes; then
  3272. egg_cv_socklen_t=no
  3273. else
  3274. cat >conftest.$ac_ext <<_ACEOF
  3275. /* confdefs.h. */
  3276. _ACEOF
  3277. cat confdefs.h >>conftest.$ac_ext
  3278. cat >>conftest.$ac_ext <<_ACEOF
  3279. /* end confdefs.h. */
  3280. #include <unistd.h>
  3281. #include <sys/types.h>
  3282. #include <sys/socket.h>
  3283. #include <netinet/in.h>
  3284. #include <arpa/inet.h>
  3285. int main()
  3286. {
  3287. socklen_t test = sizeof(int);
  3288. return 0;
  3289. }
  3290. _ACEOF
  3291. rm -f conftest$ac_exeext
  3292. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3293. (eval $ac_link) 2>&5
  3294. ac_status=$?
  3295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3296. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3297. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3298. (eval $ac_try) 2>&5
  3299. ac_status=$?
  3300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3301. (exit $ac_status); }; }; then
  3302. egg_cv_socklen_t=yes
  3303. else
  3304. echo "$as_me: program exited with status $ac_status" >&5
  3305. echo "$as_me: failed program was:" >&5
  3306. sed 's/^/| /' conftest.$ac_ext >&5
  3307. ( exit $ac_status )
  3308. egg_cv_socklen_t=no
  3309. fi
  3310. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3311. fi
  3312. fi
  3313. if test "$egg_cv_socklen_t" = "yes"; then
  3314. cat >>confdefs.h <<\_ACEOF
  3315. #define HAVE_SOCKLEN_T 1
  3316. _ACEOF
  3317. echo "$as_me:$LINENO: result: yes" >&5
  3318. echo "${ECHO_T}yes" >&6
  3319. else
  3320. echo "$as_me:$LINENO: result: no" >&5
  3321. echo "${ECHO_T}no" >&6
  3322. fi
  3323. # Check for inconsistent random() functions
  3324. echo "$as_me:$LINENO: checking for random limit" >&5
  3325. echo $ECHO_N "checking for random limit... $ECHO_C" >&6
  3326. case "$egg_cv_var_system_type" in
  3327. SunOS) RMAX=0x7FFFFFFF
  3328. ;;
  3329. *) RMAX=RAND_MAX
  3330. ;;
  3331. esac
  3332. echo "$as_me:$LINENO: result: $RMAX" >&5
  3333. echo "${ECHO_T}$RMAX" >&6
  3334. cat >>confdefs.h <<_ACEOF
  3335. #define RANDOM_MAX $RMAX
  3336. _ACEOF
  3337. # Create static binaries
  3338. if test -z "$no_static"
  3339. then
  3340. if test -n "$GXX"
  3341. then
  3342. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  3343. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  3344. if test "${egg_cv_var_ccstatic+set}" = set; then
  3345. echo $ECHO_N "(cached) $ECHO_C" >&6
  3346. else
  3347. ac_old_CXX="$CXX"
  3348. CXX="$CXX -static"
  3349. cat >conftest.$ac_ext <<_ACEOF
  3350. /* confdefs.h. */
  3351. _ACEOF
  3352. cat confdefs.h >>conftest.$ac_ext
  3353. cat >>conftest.$ac_ext <<_ACEOF
  3354. /* end confdefs.h. */
  3355. int
  3356. main ()
  3357. {
  3358. ;
  3359. return 0;
  3360. }
  3361. _ACEOF
  3362. rm -f conftest.$ac_objext
  3363. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3364. (eval $ac_compile) 2>conftest.er1
  3365. ac_status=$?
  3366. grep -v '^ *+' conftest.er1 >conftest.err
  3367. rm -f conftest.er1
  3368. cat conftest.err >&5
  3369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3370. (exit $ac_status); } &&
  3371. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3372. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3373. (eval $ac_try) 2>&5
  3374. ac_status=$?
  3375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3376. (exit $ac_status); }; } &&
  3377. { ac_try='test -s conftest.$ac_objext'
  3378. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3379. (eval $ac_try) 2>&5
  3380. ac_status=$?
  3381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3382. (exit $ac_status); }; }; then
  3383. egg_cv_var_ccstatic="yes"
  3384. else
  3385. echo "$as_me: failed program was:" >&5
  3386. sed 's/^/| /' conftest.$ac_ext >&5
  3387. egg_cv_var_ccstatic="no"
  3388. fi
  3389. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3390. CXX="$ac_old_CXX"
  3391. fi
  3392. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  3393. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  3394. if test "$egg_cv_var_ccstatic" = "yes"
  3395. then
  3396. CCDEBUG="$CXX"
  3397. CXX="$CXX -static"
  3398. else
  3399. cat << 'EOF' >&2
  3400. configure: error:
  3401. Your C compiler does not support -static.
  3402. This compile flag is required for the botpack.
  3403. EOF
  3404. exit 1
  3405. fi
  3406. fi
  3407. fi
  3408. #checkpoint
  3409. cat >confcache <<\_ACEOF
  3410. # This file is a shell script that caches the results of configure
  3411. # tests run on this system so they can be shared between configure
  3412. # scripts and configure runs, see configure's option --config-cache.
  3413. # It is not useful on other systems. If it contains results you don't
  3414. # want to keep, you may remove or edit it.
  3415. #
  3416. # config.status only pays attention to the cache file if you give it
  3417. # the --recheck option to rerun configure.
  3418. #
  3419. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3420. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3421. # following values.
  3422. _ACEOF
  3423. # The following way of writing the cache mishandles newlines in values,
  3424. # but we know of no workaround that is simple, portable, and efficient.
  3425. # So, don't put newlines in cache variables' values.
  3426. # Ultrix sh set writes to stderr and can't be redirected directly,
  3427. # and sets the high bit in the cache file unless we assign to the vars.
  3428. {
  3429. (set) 2>&1 |
  3430. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  3431. *ac_space=\ *)
  3432. # `set' does not quote correctly, so add quotes (double-quote
  3433. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3434. sed -n \
  3435. "s/'/'\\\\''/g;
  3436. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3437. ;;
  3438. *)
  3439. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3440. sed -n \
  3441. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  3442. ;;
  3443. esac;
  3444. } |
  3445. sed '
  3446. t clear
  3447. : clear
  3448. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3449. t end
  3450. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3451. : end' >>confcache
  3452. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  3453. if test -w $cache_file; then
  3454. test "x$cache_file" != "x/dev/null"
  3455. cat confcache >$cache_file
  3456. else
  3457. echo "not updating unwritable cache $cache_file"
  3458. fi
  3459. fi
  3460. rm -f confcache
  3461. # Checks for system libraries
  3462. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  3463. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  3464. if test "${ac_cv_lib_socket_socket+set}" = set; then
  3465. echo $ECHO_N "(cached) $ECHO_C" >&6
  3466. else
  3467. ac_check_lib_save_LIBS=$LIBS
  3468. LIBS="-lsocket $LIBS"
  3469. cat >conftest.$ac_ext <<_ACEOF
  3470. /* confdefs.h. */
  3471. _ACEOF
  3472. cat confdefs.h >>conftest.$ac_ext
  3473. cat >>conftest.$ac_ext <<_ACEOF
  3474. /* end confdefs.h. */
  3475. /* Override any gcc2 internal prototype to avoid an error. */
  3476. #ifdef __cplusplus
  3477. extern "C"
  3478. #endif
  3479. /* We use char because int might match the return type of a gcc2
  3480. builtin and then its argument prototype would still apply. */
  3481. char socket ();
  3482. int
  3483. main ()
  3484. {
  3485. socket ();
  3486. ;
  3487. return 0;
  3488. }
  3489. _ACEOF
  3490. rm -f conftest.$ac_objext conftest$ac_exeext
  3491. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3492. (eval $ac_link) 2>conftest.er1
  3493. ac_status=$?
  3494. grep -v '^ *+' conftest.er1 >conftest.err
  3495. rm -f conftest.er1
  3496. cat conftest.err >&5
  3497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3498. (exit $ac_status); } &&
  3499. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3500. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3501. (eval $ac_try) 2>&5
  3502. ac_status=$?
  3503. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3504. (exit $ac_status); }; } &&
  3505. { ac_try='test -s conftest$ac_exeext'
  3506. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3507. (eval $ac_try) 2>&5
  3508. ac_status=$?
  3509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3510. (exit $ac_status); }; }; then
  3511. ac_cv_lib_socket_socket=yes
  3512. else
  3513. echo "$as_me: failed program was:" >&5
  3514. sed 's/^/| /' conftest.$ac_ext >&5
  3515. ac_cv_lib_socket_socket=no
  3516. fi
  3517. rm -f conftest.err conftest.$ac_objext \
  3518. conftest$ac_exeext conftest.$ac_ext
  3519. LIBS=$ac_check_lib_save_LIBS
  3520. fi
  3521. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  3522. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  3523. if test $ac_cv_lib_socket_socket = yes; then
  3524. cat >>confdefs.h <<_ACEOF
  3525. #define HAVE_LIBSOCKET 1
  3526. _ACEOF
  3527. LIBS="-lsocket $LIBS"
  3528. fi
  3529. # AC_CHECK_LIB(nsl, connect)
  3530. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  3531. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  3532. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  3533. echo $ECHO_N "(cached) $ECHO_C" >&6
  3534. else
  3535. ac_check_lib_save_LIBS=$LIBS
  3536. LIBS="-ldns $LIBS"
  3537. cat >conftest.$ac_ext <<_ACEOF
  3538. /* confdefs.h. */
  3539. _ACEOF
  3540. cat confdefs.h >>conftest.$ac_ext
  3541. cat >>conftest.$ac_ext <<_ACEOF
  3542. /* end confdefs.h. */
  3543. /* Override any gcc2 internal prototype to avoid an error. */
  3544. #ifdef __cplusplus
  3545. extern "C"
  3546. #endif
  3547. /* We use char because int might match the return type of a gcc2
  3548. builtin and then its argument prototype would still apply. */
  3549. char gethostbyname ();
  3550. int
  3551. main ()
  3552. {
  3553. gethostbyname ();
  3554. ;
  3555. return 0;
  3556. }
  3557. _ACEOF
  3558. rm -f conftest.$ac_objext conftest$ac_exeext
  3559. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3560. (eval $ac_link) 2>conftest.er1
  3561. ac_status=$?
  3562. grep -v '^ *+' conftest.er1 >conftest.err
  3563. rm -f conftest.er1
  3564. cat conftest.err >&5
  3565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3566. (exit $ac_status); } &&
  3567. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3568. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3569. (eval $ac_try) 2>&5
  3570. ac_status=$?
  3571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3572. (exit $ac_status); }; } &&
  3573. { ac_try='test -s conftest$ac_exeext'
  3574. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3575. (eval $ac_try) 2>&5
  3576. ac_status=$?
  3577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3578. (exit $ac_status); }; }; then
  3579. ac_cv_lib_dns_gethostbyname=yes
  3580. else
  3581. echo "$as_me: failed program was:" >&5
  3582. sed 's/^/| /' conftest.$ac_ext >&5
  3583. ac_cv_lib_dns_gethostbyname=no
  3584. fi
  3585. rm -f conftest.err conftest.$ac_objext \
  3586. conftest$ac_exeext conftest.$ac_ext
  3587. LIBS=$ac_check_lib_save_LIBS
  3588. fi
  3589. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  3590. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  3591. if test $ac_cv_lib_dns_gethostbyname = yes; then
  3592. cat >>confdefs.h <<_ACEOF
  3593. #define HAVE_LIBDNS 1
  3594. _ACEOF
  3595. LIBS="-ldns $LIBS"
  3596. fi
  3597. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  3598. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
  3599. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lcrypto", SSL="", -lcrypto)
  3600. # This is needed for Tcl libraries compiled with thread support
  3601. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  3602. # ac_cv_lib_pthread_pthread_mutex_init=yes
  3603. # ac_cv_lib_pthread="-lpthread"], [dnl
  3604. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  3605. # ac_cv_lib_pthread_pthread_mutex_init=yes
  3606. # ac_cv_lib_pthread="-lpthread"], [dnl
  3607. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  3608. # ac_cv_lib_pthread_pthread_mutex_init=yes
  3609. # ac_cv_lib_pthread="-lpthreads"], [dnl
  3610. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  3611. # ac_cv_lib_pthread_pthread_mutex_init=yes
  3612. # ac_cv_lib_pthread=""],
  3613. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  3614. # Checks for header files
  3615. ac_header_dirent=no
  3616. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  3617. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  3618. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  3619. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  3620. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3621. echo $ECHO_N "(cached) $ECHO_C" >&6
  3622. else
  3623. cat >conftest.$ac_ext <<_ACEOF
  3624. /* confdefs.h. */
  3625. _ACEOF
  3626. cat confdefs.h >>conftest.$ac_ext
  3627. cat >>conftest.$ac_ext <<_ACEOF
  3628. /* end confdefs.h. */
  3629. #include <sys/types.h>
  3630. #include <$ac_hdr>
  3631. int
  3632. main ()
  3633. {
  3634. if ((DIR *) 0)
  3635. return 0;
  3636. ;
  3637. return 0;
  3638. }
  3639. _ACEOF
  3640. rm -f conftest.$ac_objext
  3641. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3642. (eval $ac_compile) 2>conftest.er1
  3643. ac_status=$?
  3644. grep -v '^ *+' conftest.er1 >conftest.err
  3645. rm -f conftest.er1
  3646. cat conftest.err >&5
  3647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3648. (exit $ac_status); } &&
  3649. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3650. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3651. (eval $ac_try) 2>&5
  3652. ac_status=$?
  3653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3654. (exit $ac_status); }; } &&
  3655. { ac_try='test -s conftest.$ac_objext'
  3656. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3657. (eval $ac_try) 2>&5
  3658. ac_status=$?
  3659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3660. (exit $ac_status); }; }; then
  3661. eval "$as_ac_Header=yes"
  3662. else
  3663. echo "$as_me: failed program was:" >&5
  3664. sed 's/^/| /' conftest.$ac_ext >&5
  3665. eval "$as_ac_Header=no"
  3666. fi
  3667. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3668. fi
  3669. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3670. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3671. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3672. cat >>confdefs.h <<_ACEOF
  3673. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  3674. _ACEOF
  3675. ac_header_dirent=$ac_hdr; break
  3676. fi
  3677. done
  3678. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  3679. if test $ac_header_dirent = dirent.h; then
  3680. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  3681. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  3682. if test "${ac_cv_search_opendir+set}" = set; then
  3683. echo $ECHO_N "(cached) $ECHO_C" >&6
  3684. else
  3685. ac_func_search_save_LIBS=$LIBS
  3686. ac_cv_search_opendir=no
  3687. cat >conftest.$ac_ext <<_ACEOF
  3688. /* confdefs.h. */
  3689. _ACEOF
  3690. cat confdefs.h >>conftest.$ac_ext
  3691. cat >>conftest.$ac_ext <<_ACEOF
  3692. /* end confdefs.h. */
  3693. /* Override any gcc2 internal prototype to avoid an error. */
  3694. #ifdef __cplusplus
  3695. extern "C"
  3696. #endif
  3697. /* We use char because int might match the return type of a gcc2
  3698. builtin and then its argument prototype would still apply. */
  3699. char opendir ();
  3700. int
  3701. main ()
  3702. {
  3703. opendir ();
  3704. ;
  3705. return 0;
  3706. }
  3707. _ACEOF
  3708. rm -f conftest.$ac_objext conftest$ac_exeext
  3709. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3710. (eval $ac_link) 2>conftest.er1
  3711. ac_status=$?
  3712. grep -v '^ *+' conftest.er1 >conftest.err
  3713. rm -f conftest.er1
  3714. cat conftest.err >&5
  3715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3716. (exit $ac_status); } &&
  3717. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3718. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3719. (eval $ac_try) 2>&5
  3720. ac_status=$?
  3721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3722. (exit $ac_status); }; } &&
  3723. { ac_try='test -s conftest$ac_exeext'
  3724. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3725. (eval $ac_try) 2>&5
  3726. ac_status=$?
  3727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3728. (exit $ac_status); }; }; then
  3729. ac_cv_search_opendir="none required"
  3730. else
  3731. echo "$as_me: failed program was:" >&5
  3732. sed 's/^/| /' conftest.$ac_ext >&5
  3733. fi
  3734. rm -f conftest.err conftest.$ac_objext \
  3735. conftest$ac_exeext conftest.$ac_ext
  3736. if test "$ac_cv_search_opendir" = no; then
  3737. for ac_lib in dir; do
  3738. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3739. cat >conftest.$ac_ext <<_ACEOF
  3740. /* confdefs.h. */
  3741. _ACEOF
  3742. cat confdefs.h >>conftest.$ac_ext
  3743. cat >>conftest.$ac_ext <<_ACEOF
  3744. /* end confdefs.h. */
  3745. /* Override any gcc2 internal prototype to avoid an error. */
  3746. #ifdef __cplusplus
  3747. extern "C"
  3748. #endif
  3749. /* We use char because int might match the return type of a gcc2
  3750. builtin and then its argument prototype would still apply. */
  3751. char opendir ();
  3752. int
  3753. main ()
  3754. {
  3755. opendir ();
  3756. ;
  3757. return 0;
  3758. }
  3759. _ACEOF
  3760. rm -f conftest.$ac_objext conftest$ac_exeext
  3761. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3762. (eval $ac_link) 2>conftest.er1
  3763. ac_status=$?
  3764. grep -v '^ *+' conftest.er1 >conftest.err
  3765. rm -f conftest.er1
  3766. cat conftest.err >&5
  3767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3768. (exit $ac_status); } &&
  3769. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3770. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3771. (eval $ac_try) 2>&5
  3772. ac_status=$?
  3773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3774. (exit $ac_status); }; } &&
  3775. { ac_try='test -s conftest$ac_exeext'
  3776. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3777. (eval $ac_try) 2>&5
  3778. ac_status=$?
  3779. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3780. (exit $ac_status); }; }; then
  3781. ac_cv_search_opendir="-l$ac_lib"
  3782. break
  3783. else
  3784. echo "$as_me: failed program was:" >&5
  3785. sed 's/^/| /' conftest.$ac_ext >&5
  3786. fi
  3787. rm -f conftest.err conftest.$ac_objext \
  3788. conftest$ac_exeext conftest.$ac_ext
  3789. done
  3790. fi
  3791. LIBS=$ac_func_search_save_LIBS
  3792. fi
  3793. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  3794. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  3795. if test "$ac_cv_search_opendir" != no; then
  3796. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  3797. fi
  3798. else
  3799. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  3800. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  3801. if test "${ac_cv_search_opendir+set}" = set; then
  3802. echo $ECHO_N "(cached) $ECHO_C" >&6
  3803. else
  3804. ac_func_search_save_LIBS=$LIBS
  3805. ac_cv_search_opendir=no
  3806. cat >conftest.$ac_ext <<_ACEOF
  3807. /* confdefs.h. */
  3808. _ACEOF
  3809. cat confdefs.h >>conftest.$ac_ext
  3810. cat >>conftest.$ac_ext <<_ACEOF
  3811. /* end confdefs.h. */
  3812. /* Override any gcc2 internal prototype to avoid an error. */
  3813. #ifdef __cplusplus
  3814. extern "C"
  3815. #endif
  3816. /* We use char because int might match the return type of a gcc2
  3817. builtin and then its argument prototype would still apply. */
  3818. char opendir ();
  3819. int
  3820. main ()
  3821. {
  3822. opendir ();
  3823. ;
  3824. return 0;
  3825. }
  3826. _ACEOF
  3827. rm -f conftest.$ac_objext conftest$ac_exeext
  3828. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3829. (eval $ac_link) 2>conftest.er1
  3830. ac_status=$?
  3831. grep -v '^ *+' conftest.er1 >conftest.err
  3832. rm -f conftest.er1
  3833. cat conftest.err >&5
  3834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3835. (exit $ac_status); } &&
  3836. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3837. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3838. (eval $ac_try) 2>&5
  3839. ac_status=$?
  3840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3841. (exit $ac_status); }; } &&
  3842. { ac_try='test -s conftest$ac_exeext'
  3843. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3844. (eval $ac_try) 2>&5
  3845. ac_status=$?
  3846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3847. (exit $ac_status); }; }; then
  3848. ac_cv_search_opendir="none required"
  3849. else
  3850. echo "$as_me: failed program was:" >&5
  3851. sed 's/^/| /' conftest.$ac_ext >&5
  3852. fi
  3853. rm -f conftest.err conftest.$ac_objext \
  3854. conftest$ac_exeext conftest.$ac_ext
  3855. if test "$ac_cv_search_opendir" = no; then
  3856. for ac_lib in x; do
  3857. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3858. cat >conftest.$ac_ext <<_ACEOF
  3859. /* confdefs.h. */
  3860. _ACEOF
  3861. cat confdefs.h >>conftest.$ac_ext
  3862. cat >>conftest.$ac_ext <<_ACEOF
  3863. /* end confdefs.h. */
  3864. /* Override any gcc2 internal prototype to avoid an error. */
  3865. #ifdef __cplusplus
  3866. extern "C"
  3867. #endif
  3868. /* We use char because int might match the return type of a gcc2
  3869. builtin and then its argument prototype would still apply. */
  3870. char opendir ();
  3871. int
  3872. main ()
  3873. {
  3874. opendir ();
  3875. ;
  3876. return 0;
  3877. }
  3878. _ACEOF
  3879. rm -f conftest.$ac_objext conftest$ac_exeext
  3880. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3881. (eval $ac_link) 2>conftest.er1
  3882. ac_status=$?
  3883. grep -v '^ *+' conftest.er1 >conftest.err
  3884. rm -f conftest.er1
  3885. cat conftest.err >&5
  3886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3887. (exit $ac_status); } &&
  3888. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3889. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3890. (eval $ac_try) 2>&5
  3891. ac_status=$?
  3892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3893. (exit $ac_status); }; } &&
  3894. { ac_try='test -s conftest$ac_exeext'
  3895. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3896. (eval $ac_try) 2>&5
  3897. ac_status=$?
  3898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3899. (exit $ac_status); }; }; then
  3900. ac_cv_search_opendir="-l$ac_lib"
  3901. break
  3902. else
  3903. echo "$as_me: failed program was:" >&5
  3904. sed 's/^/| /' conftest.$ac_ext >&5
  3905. fi
  3906. rm -f conftest.err conftest.$ac_objext \
  3907. conftest$ac_exeext conftest.$ac_ext
  3908. done
  3909. fi
  3910. LIBS=$ac_func_search_save_LIBS
  3911. fi
  3912. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  3913. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  3914. if test "$ac_cv_search_opendir" != no; then
  3915. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  3916. fi
  3917. fi
  3918. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  3919. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  3920. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  3921. echo $ECHO_N "(cached) $ECHO_C" >&6
  3922. else
  3923. cat >conftest.$ac_ext <<_ACEOF
  3924. /* confdefs.h. */
  3925. _ACEOF
  3926. cat confdefs.h >>conftest.$ac_ext
  3927. cat >>conftest.$ac_ext <<_ACEOF
  3928. /* end confdefs.h. */
  3929. #include <sys/types.h>
  3930. #include <sys/wait.h>
  3931. #ifndef WEXITSTATUS
  3932. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  3933. #endif
  3934. #ifndef WIFEXITED
  3935. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  3936. #endif
  3937. int
  3938. main ()
  3939. {
  3940. int s;
  3941. wait (&s);
  3942. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  3943. ;
  3944. return 0;
  3945. }
  3946. _ACEOF
  3947. rm -f conftest.$ac_objext
  3948. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3949. (eval $ac_compile) 2>conftest.er1
  3950. ac_status=$?
  3951. grep -v '^ *+' conftest.er1 >conftest.err
  3952. rm -f conftest.er1
  3953. cat conftest.err >&5
  3954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3955. (exit $ac_status); } &&
  3956. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3957. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3958. (eval $ac_try) 2>&5
  3959. ac_status=$?
  3960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3961. (exit $ac_status); }; } &&
  3962. { ac_try='test -s conftest.$ac_objext'
  3963. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3964. (eval $ac_try) 2>&5
  3965. ac_status=$?
  3966. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3967. (exit $ac_status); }; }; then
  3968. ac_cv_header_sys_wait_h=yes
  3969. else
  3970. echo "$as_me: failed program was:" >&5
  3971. sed 's/^/| /' conftest.$ac_ext >&5
  3972. ac_cv_header_sys_wait_h=no
  3973. fi
  3974. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3975. fi
  3976. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  3977. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  3978. if test $ac_cv_header_sys_wait_h = yes; then
  3979. cat >>confdefs.h <<\_ACEOF
  3980. #define HAVE_SYS_WAIT_H 1
  3981. _ACEOF
  3982. fi
  3983. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  3984. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  3985. if test "${ac_cv_header_time+set}" = set; then
  3986. echo $ECHO_N "(cached) $ECHO_C" >&6
  3987. else
  3988. cat >conftest.$ac_ext <<_ACEOF
  3989. /* confdefs.h. */
  3990. _ACEOF
  3991. cat confdefs.h >>conftest.$ac_ext
  3992. cat >>conftest.$ac_ext <<_ACEOF
  3993. /* end confdefs.h. */
  3994. #include <sys/types.h>
  3995. #include <sys/time.h>
  3996. #include <time.h>
  3997. int
  3998. main ()
  3999. {
  4000. if ((struct tm *) 0)
  4001. return 0;
  4002. ;
  4003. return 0;
  4004. }
  4005. _ACEOF
  4006. rm -f conftest.$ac_objext
  4007. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4008. (eval $ac_compile) 2>conftest.er1
  4009. ac_status=$?
  4010. grep -v '^ *+' conftest.er1 >conftest.err
  4011. rm -f conftest.er1
  4012. cat conftest.err >&5
  4013. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4014. (exit $ac_status); } &&
  4015. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4016. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4017. (eval $ac_try) 2>&5
  4018. ac_status=$?
  4019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4020. (exit $ac_status); }; } &&
  4021. { ac_try='test -s conftest.$ac_objext'
  4022. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4023. (eval $ac_try) 2>&5
  4024. ac_status=$?
  4025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4026. (exit $ac_status); }; }; then
  4027. ac_cv_header_time=yes
  4028. else
  4029. echo "$as_me: failed program was:" >&5
  4030. sed 's/^/| /' conftest.$ac_ext >&5
  4031. ac_cv_header_time=no
  4032. fi
  4033. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4034. fi
  4035. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4036. echo "${ECHO_T}$ac_cv_header_time" >&6
  4037. if test $ac_cv_header_time = yes; then
  4038. cat >>confdefs.h <<\_ACEOF
  4039. #define TIME_WITH_SYS_TIME 1
  4040. _ACEOF
  4041. fi
  4042. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  4043. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  4044. if test "${ac_cv_header_stat_broken+set}" = set; then
  4045. echo $ECHO_N "(cached) $ECHO_C" >&6
  4046. else
  4047. cat >conftest.$ac_ext <<_ACEOF
  4048. /* confdefs.h. */
  4049. _ACEOF
  4050. cat confdefs.h >>conftest.$ac_ext
  4051. cat >>conftest.$ac_ext <<_ACEOF
  4052. /* end confdefs.h. */
  4053. #include <sys/types.h>
  4054. #include <sys/stat.h>
  4055. #if defined(S_ISBLK) && defined(S_IFDIR)
  4056. # if S_ISBLK (S_IFDIR)
  4057. You lose.
  4058. # endif
  4059. #endif
  4060. #if defined(S_ISBLK) && defined(S_IFCHR)
  4061. # if S_ISBLK (S_IFCHR)
  4062. You lose.
  4063. # endif
  4064. #endif
  4065. #if defined(S_ISLNK) && defined(S_IFREG)
  4066. # if S_ISLNK (S_IFREG)
  4067. You lose.
  4068. # endif
  4069. #endif
  4070. #if defined(S_ISSOCK) && defined(S_IFREG)
  4071. # if S_ISSOCK (S_IFREG)
  4072. You lose.
  4073. # endif
  4074. #endif
  4075. _ACEOF
  4076. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4077. $EGREP "You lose" >/dev/null 2>&1; then
  4078. ac_cv_header_stat_broken=yes
  4079. else
  4080. ac_cv_header_stat_broken=no
  4081. fi
  4082. rm -f conftest*
  4083. fi
  4084. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  4085. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  4086. if test $ac_cv_header_stat_broken = yes; then
  4087. cat >>confdefs.h <<\_ACEOF
  4088. #define STAT_MACROS_BROKEN 1
  4089. _ACEOF
  4090. fi
  4091. #checkpoint
  4092. cat >confcache <<\_ACEOF
  4093. # This file is a shell script that caches the results of configure
  4094. # tests run on this system so they can be shared between configure
  4095. # scripts and configure runs, see configure's option --config-cache.
  4096. # It is not useful on other systems. If it contains results you don't
  4097. # want to keep, you may remove or edit it.
  4098. #
  4099. # config.status only pays attention to the cache file if you give it
  4100. # the --recheck option to rerun configure.
  4101. #
  4102. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4103. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4104. # following values.
  4105. _ACEOF
  4106. # The following way of writing the cache mishandles newlines in values,
  4107. # but we know of no workaround that is simple, portable, and efficient.
  4108. # So, don't put newlines in cache variables' values.
  4109. # Ultrix sh set writes to stderr and can't be redirected directly,
  4110. # and sets the high bit in the cache file unless we assign to the vars.
  4111. {
  4112. (set) 2>&1 |
  4113. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4114. *ac_space=\ *)
  4115. # `set' does not quote correctly, so add quotes (double-quote
  4116. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4117. sed -n \
  4118. "s/'/'\\\\''/g;
  4119. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4120. ;;
  4121. *)
  4122. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4123. sed -n \
  4124. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4125. ;;
  4126. esac;
  4127. } |
  4128. sed '
  4129. t clear
  4130. : clear
  4131. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4132. t end
  4133. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4134. : end' >>confcache
  4135. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4136. if test -w $cache_file; then
  4137. test "x$cache_file" != "x/dev/null"
  4138. cat confcache >$cache_file
  4139. else
  4140. echo "not updating unwritable cache $cache_file"
  4141. fi
  4142. fi
  4143. rm -f confcache
  4144. for ac_header in stdarg.h std_arg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  4145. do
  4146. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4147. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4148. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4149. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4150. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4151. echo $ECHO_N "(cached) $ECHO_C" >&6
  4152. fi
  4153. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4154. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4155. else
  4156. # Is the header compilable?
  4157. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4158. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4159. cat >conftest.$ac_ext <<_ACEOF
  4160. /* confdefs.h. */
  4161. _ACEOF
  4162. cat confdefs.h >>conftest.$ac_ext
  4163. cat >>conftest.$ac_ext <<_ACEOF
  4164. /* end confdefs.h. */
  4165. $ac_includes_default
  4166. #include <$ac_header>
  4167. _ACEOF
  4168. rm -f conftest.$ac_objext
  4169. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4170. (eval $ac_compile) 2>conftest.er1
  4171. ac_status=$?
  4172. grep -v '^ *+' conftest.er1 >conftest.err
  4173. rm -f conftest.er1
  4174. cat conftest.err >&5
  4175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4176. (exit $ac_status); } &&
  4177. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4178. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4179. (eval $ac_try) 2>&5
  4180. ac_status=$?
  4181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4182. (exit $ac_status); }; } &&
  4183. { ac_try='test -s conftest.$ac_objext'
  4184. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4185. (eval $ac_try) 2>&5
  4186. ac_status=$?
  4187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4188. (exit $ac_status); }; }; then
  4189. ac_header_compiler=yes
  4190. else
  4191. echo "$as_me: failed program was:" >&5
  4192. sed 's/^/| /' conftest.$ac_ext >&5
  4193. ac_header_compiler=no
  4194. fi
  4195. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4196. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4197. echo "${ECHO_T}$ac_header_compiler" >&6
  4198. # Is the header present?
  4199. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4200. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4201. cat >conftest.$ac_ext <<_ACEOF
  4202. /* confdefs.h. */
  4203. _ACEOF
  4204. cat confdefs.h >>conftest.$ac_ext
  4205. cat >>conftest.$ac_ext <<_ACEOF
  4206. /* end confdefs.h. */
  4207. #include <$ac_header>
  4208. _ACEOF
  4209. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4210. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4211. ac_status=$?
  4212. grep -v '^ *+' conftest.er1 >conftest.err
  4213. rm -f conftest.er1
  4214. cat conftest.err >&5
  4215. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4216. (exit $ac_status); } >/dev/null; then
  4217. if test -s conftest.err; then
  4218. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4219. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4220. else
  4221. ac_cpp_err=
  4222. fi
  4223. else
  4224. ac_cpp_err=yes
  4225. fi
  4226. if test -z "$ac_cpp_err"; then
  4227. ac_header_preproc=yes
  4228. else
  4229. echo "$as_me: failed program was:" >&5
  4230. sed 's/^/| /' conftest.$ac_ext >&5
  4231. ac_header_preproc=no
  4232. fi
  4233. rm -f conftest.err conftest.$ac_ext
  4234. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4235. echo "${ECHO_T}$ac_header_preproc" >&6
  4236. # So? What about this header?
  4237. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4238. yes:no: )
  4239. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4240. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4241. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4242. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4243. ac_header_preproc=yes
  4244. ;;
  4245. no:yes:* )
  4246. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4247. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4248. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4249. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4250. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4251. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4252. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4253. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4254. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4255. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4256. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4257. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4258. (
  4259. cat <<\_ASBOX
  4260. ## ------------------------------------------ ##
  4261. ## Report this to the AC_PACKAGE_NAME lists. ##
  4262. ## ------------------------------------------ ##
  4263. _ASBOX
  4264. ) |
  4265. sed "s/^/$as_me: WARNING: /" >&2
  4266. ;;
  4267. esac
  4268. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4269. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4270. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4271. echo $ECHO_N "(cached) $ECHO_C" >&6
  4272. else
  4273. eval "$as_ac_Header=\$ac_header_preproc"
  4274. fi
  4275. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4276. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4277. fi
  4278. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4279. cat >>confdefs.h <<_ACEOF
  4280. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4281. _ACEOF
  4282. fi
  4283. done
  4284. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h sys/ptrace.h paths.h
  4285. do
  4286. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4287. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4288. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4289. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4290. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4291. echo $ECHO_N "(cached) $ECHO_C" >&6
  4292. fi
  4293. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4294. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4295. else
  4296. # Is the header compilable?
  4297. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4298. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4299. cat >conftest.$ac_ext <<_ACEOF
  4300. /* confdefs.h. */
  4301. _ACEOF
  4302. cat confdefs.h >>conftest.$ac_ext
  4303. cat >>conftest.$ac_ext <<_ACEOF
  4304. /* end confdefs.h. */
  4305. $ac_includes_default
  4306. #include <$ac_header>
  4307. _ACEOF
  4308. rm -f conftest.$ac_objext
  4309. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4310. (eval $ac_compile) 2>conftest.er1
  4311. ac_status=$?
  4312. grep -v '^ *+' conftest.er1 >conftest.err
  4313. rm -f conftest.er1
  4314. cat conftest.err >&5
  4315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4316. (exit $ac_status); } &&
  4317. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4318. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4319. (eval $ac_try) 2>&5
  4320. ac_status=$?
  4321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4322. (exit $ac_status); }; } &&
  4323. { ac_try='test -s conftest.$ac_objext'
  4324. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4325. (eval $ac_try) 2>&5
  4326. ac_status=$?
  4327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4328. (exit $ac_status); }; }; then
  4329. ac_header_compiler=yes
  4330. else
  4331. echo "$as_me: failed program was:" >&5
  4332. sed 's/^/| /' conftest.$ac_ext >&5
  4333. ac_header_compiler=no
  4334. fi
  4335. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4336. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4337. echo "${ECHO_T}$ac_header_compiler" >&6
  4338. # Is the header present?
  4339. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4340. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4341. cat >conftest.$ac_ext <<_ACEOF
  4342. /* confdefs.h. */
  4343. _ACEOF
  4344. cat confdefs.h >>conftest.$ac_ext
  4345. cat >>conftest.$ac_ext <<_ACEOF
  4346. /* end confdefs.h. */
  4347. #include <$ac_header>
  4348. _ACEOF
  4349. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4350. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4351. ac_status=$?
  4352. grep -v '^ *+' conftest.er1 >conftest.err
  4353. rm -f conftest.er1
  4354. cat conftest.err >&5
  4355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4356. (exit $ac_status); } >/dev/null; then
  4357. if test -s conftest.err; then
  4358. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4359. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4360. else
  4361. ac_cpp_err=
  4362. fi
  4363. else
  4364. ac_cpp_err=yes
  4365. fi
  4366. if test -z "$ac_cpp_err"; then
  4367. ac_header_preproc=yes
  4368. else
  4369. echo "$as_me: failed program was:" >&5
  4370. sed 's/^/| /' conftest.$ac_ext >&5
  4371. ac_header_preproc=no
  4372. fi
  4373. rm -f conftest.err conftest.$ac_ext
  4374. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4375. echo "${ECHO_T}$ac_header_preproc" >&6
  4376. # So? What about this header?
  4377. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4378. yes:no: )
  4379. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4380. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4381. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4382. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4383. ac_header_preproc=yes
  4384. ;;
  4385. no:yes:* )
  4386. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4387. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4388. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4389. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4390. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4391. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4392. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4393. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4394. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4395. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4396. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4397. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4398. (
  4399. cat <<\_ASBOX
  4400. ## ------------------------------------------ ##
  4401. ## Report this to the AC_PACKAGE_NAME lists. ##
  4402. ## ------------------------------------------ ##
  4403. _ASBOX
  4404. ) |
  4405. sed "s/^/$as_me: WARNING: /" >&2
  4406. ;;
  4407. esac
  4408. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4409. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4410. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4411. echo $ECHO_N "(cached) $ECHO_C" >&6
  4412. else
  4413. eval "$as_ac_Header=\$ac_header_preproc"
  4414. fi
  4415. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4416. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4417. fi
  4418. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4419. cat >>confdefs.h <<_ACEOF
  4420. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4421. _ACEOF
  4422. fi
  4423. done
  4424. #checkpoint
  4425. cat >confcache <<\_ACEOF
  4426. # This file is a shell script that caches the results of configure
  4427. # tests run on this system so they can be shared between configure
  4428. # scripts and configure runs, see configure's option --config-cache.
  4429. # It is not useful on other systems. If it contains results you don't
  4430. # want to keep, you may remove or edit it.
  4431. #
  4432. # config.status only pays attention to the cache file if you give it
  4433. # the --recheck option to rerun configure.
  4434. #
  4435. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4436. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4437. # following values.
  4438. _ACEOF
  4439. # The following way of writing the cache mishandles newlines in values,
  4440. # but we know of no workaround that is simple, portable, and efficient.
  4441. # So, don't put newlines in cache variables' values.
  4442. # Ultrix sh set writes to stderr and can't be redirected directly,
  4443. # and sets the high bit in the cache file unless we assign to the vars.
  4444. {
  4445. (set) 2>&1 |
  4446. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4447. *ac_space=\ *)
  4448. # `set' does not quote correctly, so add quotes (double-quote
  4449. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4450. sed -n \
  4451. "s/'/'\\\\''/g;
  4452. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4453. ;;
  4454. *)
  4455. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4456. sed -n \
  4457. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4458. ;;
  4459. esac;
  4460. } |
  4461. sed '
  4462. t clear
  4463. : clear
  4464. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4465. t end
  4466. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4467. : end' >>confcache
  4468. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4469. if test -w $cache_file; then
  4470. test "x$cache_file" != "x/dev/null"
  4471. cat confcache >$cache_file
  4472. else
  4473. echo "not updating unwritable cache $cache_file"
  4474. fi
  4475. fi
  4476. rm -f confcache
  4477. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  4478. #AC_CHECK_HEADERS(zlib.h)
  4479. #EGG_CHECK_ZLIB
  4480. #EGG_CHECK_SSL
  4481. #AC_SUBST(SSL)dnl
  4482. # Checks for typedefs, structures, and compiler characteristics
  4483. echo "$as_me:$LINENO: checking for pid_t" >&5
  4484. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  4485. if test "${ac_cv_type_pid_t+set}" = set; then
  4486. echo $ECHO_N "(cached) $ECHO_C" >&6
  4487. else
  4488. cat >conftest.$ac_ext <<_ACEOF
  4489. /* confdefs.h. */
  4490. _ACEOF
  4491. cat confdefs.h >>conftest.$ac_ext
  4492. cat >>conftest.$ac_ext <<_ACEOF
  4493. /* end confdefs.h. */
  4494. $ac_includes_default
  4495. int
  4496. main ()
  4497. {
  4498. if ((pid_t *) 0)
  4499. return 0;
  4500. if (sizeof (pid_t))
  4501. return 0;
  4502. ;
  4503. return 0;
  4504. }
  4505. _ACEOF
  4506. rm -f conftest.$ac_objext
  4507. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4508. (eval $ac_compile) 2>conftest.er1
  4509. ac_status=$?
  4510. grep -v '^ *+' conftest.er1 >conftest.err
  4511. rm -f conftest.er1
  4512. cat conftest.err >&5
  4513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4514. (exit $ac_status); } &&
  4515. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4516. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4517. (eval $ac_try) 2>&5
  4518. ac_status=$?
  4519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4520. (exit $ac_status); }; } &&
  4521. { ac_try='test -s conftest.$ac_objext'
  4522. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4523. (eval $ac_try) 2>&5
  4524. ac_status=$?
  4525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4526. (exit $ac_status); }; }; then
  4527. ac_cv_type_pid_t=yes
  4528. else
  4529. echo "$as_me: failed program was:" >&5
  4530. sed 's/^/| /' conftest.$ac_ext >&5
  4531. ac_cv_type_pid_t=no
  4532. fi
  4533. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4534. fi
  4535. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  4536. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  4537. if test $ac_cv_type_pid_t = yes; then
  4538. :
  4539. else
  4540. cat >>confdefs.h <<_ACEOF
  4541. #define pid_t int
  4542. _ACEOF
  4543. fi
  4544. echo "$as_me:$LINENO: checking for size_t" >&5
  4545. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  4546. if test "${ac_cv_type_size_t+set}" = set; then
  4547. echo $ECHO_N "(cached) $ECHO_C" >&6
  4548. else
  4549. cat >conftest.$ac_ext <<_ACEOF
  4550. /* confdefs.h. */
  4551. _ACEOF
  4552. cat confdefs.h >>conftest.$ac_ext
  4553. cat >>conftest.$ac_ext <<_ACEOF
  4554. /* end confdefs.h. */
  4555. $ac_includes_default
  4556. int
  4557. main ()
  4558. {
  4559. if ((size_t *) 0)
  4560. return 0;
  4561. if (sizeof (size_t))
  4562. return 0;
  4563. ;
  4564. return 0;
  4565. }
  4566. _ACEOF
  4567. rm -f conftest.$ac_objext
  4568. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4569. (eval $ac_compile) 2>conftest.er1
  4570. ac_status=$?
  4571. grep -v '^ *+' conftest.er1 >conftest.err
  4572. rm -f conftest.er1
  4573. cat conftest.err >&5
  4574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4575. (exit $ac_status); } &&
  4576. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4577. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4578. (eval $ac_try) 2>&5
  4579. ac_status=$?
  4580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4581. (exit $ac_status); }; } &&
  4582. { ac_try='test -s conftest.$ac_objext'
  4583. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4584. (eval $ac_try) 2>&5
  4585. ac_status=$?
  4586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4587. (exit $ac_status); }; }; then
  4588. ac_cv_type_size_t=yes
  4589. else
  4590. echo "$as_me: failed program was:" >&5
  4591. sed 's/^/| /' conftest.$ac_ext >&5
  4592. ac_cv_type_size_t=no
  4593. fi
  4594. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4595. fi
  4596. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  4597. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  4598. if test $ac_cv_type_size_t = yes; then
  4599. :
  4600. else
  4601. cat >>confdefs.h <<_ACEOF
  4602. #define size_t unsigned
  4603. _ACEOF
  4604. fi
  4605. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  4606. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  4607. if test "${ac_cv_type_uid_t+set}" = set; then
  4608. echo $ECHO_N "(cached) $ECHO_C" >&6
  4609. else
  4610. cat >conftest.$ac_ext <<_ACEOF
  4611. /* confdefs.h. */
  4612. _ACEOF
  4613. cat confdefs.h >>conftest.$ac_ext
  4614. cat >>conftest.$ac_ext <<_ACEOF
  4615. /* end confdefs.h. */
  4616. #include <sys/types.h>
  4617. _ACEOF
  4618. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4619. $EGREP "uid_t" >/dev/null 2>&1; then
  4620. ac_cv_type_uid_t=yes
  4621. else
  4622. ac_cv_type_uid_t=no
  4623. fi
  4624. rm -f conftest*
  4625. fi
  4626. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  4627. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  4628. if test $ac_cv_type_uid_t = no; then
  4629. cat >>confdefs.h <<\_ACEOF
  4630. #define uid_t int
  4631. _ACEOF
  4632. cat >>confdefs.h <<\_ACEOF
  4633. #define gid_t int
  4634. _ACEOF
  4635. fi
  4636. #AC_C_CONST
  4637. echo "$as_me:$LINENO: checking for working volatile" >&5
  4638. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  4639. if test "${ac_cv_c_volatile+set}" = set; then
  4640. echo $ECHO_N "(cached) $ECHO_C" >&6
  4641. else
  4642. cat >conftest.$ac_ext <<_ACEOF
  4643. /* confdefs.h. */
  4644. _ACEOF
  4645. cat confdefs.h >>conftest.$ac_ext
  4646. cat >>conftest.$ac_ext <<_ACEOF
  4647. /* end confdefs.h. */
  4648. int
  4649. main ()
  4650. {
  4651. volatile int x;
  4652. int * volatile y;
  4653. ;
  4654. return 0;
  4655. }
  4656. _ACEOF
  4657. rm -f conftest.$ac_objext
  4658. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4659. (eval $ac_compile) 2>conftest.er1
  4660. ac_status=$?
  4661. grep -v '^ *+' conftest.er1 >conftest.err
  4662. rm -f conftest.er1
  4663. cat conftest.err >&5
  4664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4665. (exit $ac_status); } &&
  4666. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4667. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4668. (eval $ac_try) 2>&5
  4669. ac_status=$?
  4670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4671. (exit $ac_status); }; } &&
  4672. { ac_try='test -s conftest.$ac_objext'
  4673. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4674. (eval $ac_try) 2>&5
  4675. ac_status=$?
  4676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4677. (exit $ac_status); }; }; then
  4678. ac_cv_c_volatile=yes
  4679. else
  4680. echo "$as_me: failed program was:" >&5
  4681. sed 's/^/| /' conftest.$ac_ext >&5
  4682. ac_cv_c_volatile=no
  4683. fi
  4684. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4685. fi
  4686. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  4687. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  4688. if test $ac_cv_c_volatile = no; then
  4689. cat >>confdefs.h <<\_ACEOF
  4690. #define volatile
  4691. _ACEOF
  4692. fi
  4693. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  4694. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  4695. if test "${ac_cv_c_bigendian+set}" = set; then
  4696. echo $ECHO_N "(cached) $ECHO_C" >&6
  4697. else
  4698. # See if sys/param.h defines the BYTE_ORDER macro.
  4699. cat >conftest.$ac_ext <<_ACEOF
  4700. /* confdefs.h. */
  4701. _ACEOF
  4702. cat confdefs.h >>conftest.$ac_ext
  4703. cat >>conftest.$ac_ext <<_ACEOF
  4704. /* end confdefs.h. */
  4705. #include <sys/types.h>
  4706. #include <sys/param.h>
  4707. int
  4708. main ()
  4709. {
  4710. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  4711. bogus endian macros
  4712. #endif
  4713. ;
  4714. return 0;
  4715. }
  4716. _ACEOF
  4717. rm -f conftest.$ac_objext
  4718. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4719. (eval $ac_compile) 2>conftest.er1
  4720. ac_status=$?
  4721. grep -v '^ *+' conftest.er1 >conftest.err
  4722. rm -f conftest.er1
  4723. cat conftest.err >&5
  4724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4725. (exit $ac_status); } &&
  4726. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4727. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4728. (eval $ac_try) 2>&5
  4729. ac_status=$?
  4730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4731. (exit $ac_status); }; } &&
  4732. { ac_try='test -s conftest.$ac_objext'
  4733. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4734. (eval $ac_try) 2>&5
  4735. ac_status=$?
  4736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4737. (exit $ac_status); }; }; then
  4738. # It does; now see whether it defined to BIG_ENDIAN or not.
  4739. cat >conftest.$ac_ext <<_ACEOF
  4740. /* confdefs.h. */
  4741. _ACEOF
  4742. cat confdefs.h >>conftest.$ac_ext
  4743. cat >>conftest.$ac_ext <<_ACEOF
  4744. /* end confdefs.h. */
  4745. #include <sys/types.h>
  4746. #include <sys/param.h>
  4747. int
  4748. main ()
  4749. {
  4750. #if BYTE_ORDER != BIG_ENDIAN
  4751. not big endian
  4752. #endif
  4753. ;
  4754. return 0;
  4755. }
  4756. _ACEOF
  4757. rm -f conftest.$ac_objext
  4758. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4759. (eval $ac_compile) 2>conftest.er1
  4760. ac_status=$?
  4761. grep -v '^ *+' conftest.er1 >conftest.err
  4762. rm -f conftest.er1
  4763. cat conftest.err >&5
  4764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4765. (exit $ac_status); } &&
  4766. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4767. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4768. (eval $ac_try) 2>&5
  4769. ac_status=$?
  4770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4771. (exit $ac_status); }; } &&
  4772. { ac_try='test -s conftest.$ac_objext'
  4773. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4774. (eval $ac_try) 2>&5
  4775. ac_status=$?
  4776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4777. (exit $ac_status); }; }; then
  4778. ac_cv_c_bigendian=yes
  4779. else
  4780. echo "$as_me: failed program was:" >&5
  4781. sed 's/^/| /' conftest.$ac_ext >&5
  4782. ac_cv_c_bigendian=no
  4783. fi
  4784. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4785. else
  4786. echo "$as_me: failed program was:" >&5
  4787. sed 's/^/| /' conftest.$ac_ext >&5
  4788. # It does not; compile a test program.
  4789. if test "$cross_compiling" = yes; then
  4790. # try to guess the endianness by grepping values into an object file
  4791. ac_cv_c_bigendian=unknown
  4792. cat >conftest.$ac_ext <<_ACEOF
  4793. /* confdefs.h. */
  4794. _ACEOF
  4795. cat confdefs.h >>conftest.$ac_ext
  4796. cat >>conftest.$ac_ext <<_ACEOF
  4797. /* end confdefs.h. */
  4798. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4799. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4800. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  4801. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4802. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4803. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  4804. int
  4805. main ()
  4806. {
  4807. _ascii (); _ebcdic ();
  4808. ;
  4809. return 0;
  4810. }
  4811. _ACEOF
  4812. rm -f conftest.$ac_objext
  4813. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4814. (eval $ac_compile) 2>conftest.er1
  4815. ac_status=$?
  4816. grep -v '^ *+' conftest.er1 >conftest.err
  4817. rm -f conftest.er1
  4818. cat conftest.err >&5
  4819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4820. (exit $ac_status); } &&
  4821. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4822. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4823. (eval $ac_try) 2>&5
  4824. ac_status=$?
  4825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4826. (exit $ac_status); }; } &&
  4827. { ac_try='test -s conftest.$ac_objext'
  4828. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4829. (eval $ac_try) 2>&5
  4830. ac_status=$?
  4831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4832. (exit $ac_status); }; }; then
  4833. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  4834. ac_cv_c_bigendian=yes
  4835. fi
  4836. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4837. if test "$ac_cv_c_bigendian" = unknown; then
  4838. ac_cv_c_bigendian=no
  4839. else
  4840. # finding both strings is unlikely to happen, but who knows?
  4841. ac_cv_c_bigendian=unknown
  4842. fi
  4843. fi
  4844. else
  4845. echo "$as_me: failed program was:" >&5
  4846. sed 's/^/| /' conftest.$ac_ext >&5
  4847. fi
  4848. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4849. else
  4850. cat >conftest.$ac_ext <<_ACEOF
  4851. /* confdefs.h. */
  4852. _ACEOF
  4853. cat confdefs.h >>conftest.$ac_ext
  4854. cat >>conftest.$ac_ext <<_ACEOF
  4855. /* end confdefs.h. */
  4856. int
  4857. main ()
  4858. {
  4859. /* Are we little or big endian? From Harbison&Steele. */
  4860. union
  4861. {
  4862. long l;
  4863. char c[sizeof (long)];
  4864. } u;
  4865. u.l = 1;
  4866. exit (u.c[sizeof (long) - 1] == 1);
  4867. }
  4868. _ACEOF
  4869. rm -f conftest$ac_exeext
  4870. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4871. (eval $ac_link) 2>&5
  4872. ac_status=$?
  4873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4874. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4875. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4876. (eval $ac_try) 2>&5
  4877. ac_status=$?
  4878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4879. (exit $ac_status); }; }; then
  4880. ac_cv_c_bigendian=no
  4881. else
  4882. echo "$as_me: program exited with status $ac_status" >&5
  4883. echo "$as_me: failed program was:" >&5
  4884. sed 's/^/| /' conftest.$ac_ext >&5
  4885. ( exit $ac_status )
  4886. ac_cv_c_bigendian=yes
  4887. fi
  4888. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4889. fi
  4890. fi
  4891. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4892. fi
  4893. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  4894. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  4895. case $ac_cv_c_bigendian in
  4896. yes)
  4897. cat >>confdefs.h <<\_ACEOF
  4898. #define B_ENDIAN 1
  4899. _ACEOF
  4900. ;;
  4901. no)
  4902. cat >>confdefs.h <<\_ACEOF
  4903. #define L_ENDIAN 1
  4904. _ACEOF
  4905. ;;
  4906. *)
  4907. { { echo "$as_me:$LINENO: error: unknown endianness
  4908. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  4909. echo "$as_me: error: unknown endianness
  4910. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  4911. { (exit 1); exit 1; }; } ;;
  4912. esac
  4913. #AC_C_INLINE
  4914. echo "$as_me:$LINENO: checking whether char is unsigned" >&5
  4915. echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
  4916. if test "${ac_cv_c_char_unsigned+set}" = set; then
  4917. echo $ECHO_N "(cached) $ECHO_C" >&6
  4918. else
  4919. cat >conftest.$ac_ext <<_ACEOF
  4920. /* confdefs.h. */
  4921. _ACEOF
  4922. cat confdefs.h >>conftest.$ac_ext
  4923. cat >>conftest.$ac_ext <<_ACEOF
  4924. /* end confdefs.h. */
  4925. $ac_includes_default
  4926. int
  4927. main ()
  4928. {
  4929. static int test_array [1 - 2 * !(((char) -1) < 0)];
  4930. test_array [0] = 0
  4931. ;
  4932. return 0;
  4933. }
  4934. _ACEOF
  4935. rm -f conftest.$ac_objext
  4936. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4937. (eval $ac_compile) 2>conftest.er1
  4938. ac_status=$?
  4939. grep -v '^ *+' conftest.er1 >conftest.err
  4940. rm -f conftest.er1
  4941. cat conftest.err >&5
  4942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4943. (exit $ac_status); } &&
  4944. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4945. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4946. (eval $ac_try) 2>&5
  4947. ac_status=$?
  4948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4949. (exit $ac_status); }; } &&
  4950. { ac_try='test -s conftest.$ac_objext'
  4951. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4952. (eval $ac_try) 2>&5
  4953. ac_status=$?
  4954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4955. (exit $ac_status); }; }; then
  4956. ac_cv_c_char_unsigned=no
  4957. else
  4958. echo "$as_me: failed program was:" >&5
  4959. sed 's/^/| /' conftest.$ac_ext >&5
  4960. ac_cv_c_char_unsigned=yes
  4961. fi
  4962. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4963. fi
  4964. echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
  4965. echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
  4966. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  4967. cat >>confdefs.h <<\_ACEOF
  4968. #define __CHAR_UNSIGNED__ 1
  4969. _ACEOF
  4970. fi
  4971. #AC_C_STRINGIZE
  4972. #AC_C_PROTOTYPES
  4973. #checkpoint
  4974. cat >confcache <<\_ACEOF
  4975. # This file is a shell script that caches the results of configure
  4976. # tests run on this system so they can be shared between configure
  4977. # scripts and configure runs, see configure's option --config-cache.
  4978. # It is not useful on other systems. If it contains results you don't
  4979. # want to keep, you may remove or edit it.
  4980. #
  4981. # config.status only pays attention to the cache file if you give it
  4982. # the --recheck option to rerun configure.
  4983. #
  4984. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4985. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4986. # following values.
  4987. _ACEOF
  4988. # The following way of writing the cache mishandles newlines in values,
  4989. # but we know of no workaround that is simple, portable, and efficient.
  4990. # So, don't put newlines in cache variables' values.
  4991. # Ultrix sh set writes to stderr and can't be redirected directly,
  4992. # and sets the high bit in the cache file unless we assign to the vars.
  4993. {
  4994. (set) 2>&1 |
  4995. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4996. *ac_space=\ *)
  4997. # `set' does not quote correctly, so add quotes (double-quote
  4998. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4999. sed -n \
  5000. "s/'/'\\\\''/g;
  5001. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5002. ;;
  5003. *)
  5004. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5005. sed -n \
  5006. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5007. ;;
  5008. esac;
  5009. } |
  5010. sed '
  5011. t clear
  5012. : clear
  5013. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5014. t end
  5015. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5016. : end' >>confcache
  5017. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5018. if test -w $cache_file; then
  5019. test "x$cache_file" != "x/dev/null"
  5020. cat confcache >$cache_file
  5021. else
  5022. echo "not updating unwritable cache $cache_file"
  5023. fi
  5024. fi
  5025. rm -f confcache
  5026. echo "$as_me:$LINENO: checking for int" >&5
  5027. echo $ECHO_N "checking for int... $ECHO_C" >&6
  5028. if test "${ac_cv_type_int+set}" = set; then
  5029. echo $ECHO_N "(cached) $ECHO_C" >&6
  5030. else
  5031. cat >conftest.$ac_ext <<_ACEOF
  5032. /* confdefs.h. */
  5033. _ACEOF
  5034. cat confdefs.h >>conftest.$ac_ext
  5035. cat >>conftest.$ac_ext <<_ACEOF
  5036. /* end confdefs.h. */
  5037. $ac_includes_default
  5038. int
  5039. main ()
  5040. {
  5041. if ((int *) 0)
  5042. return 0;
  5043. if (sizeof (int))
  5044. return 0;
  5045. ;
  5046. return 0;
  5047. }
  5048. _ACEOF
  5049. rm -f conftest.$ac_objext
  5050. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5051. (eval $ac_compile) 2>conftest.er1
  5052. ac_status=$?
  5053. grep -v '^ *+' conftest.er1 >conftest.err
  5054. rm -f conftest.er1
  5055. cat conftest.err >&5
  5056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5057. (exit $ac_status); } &&
  5058. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5059. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5060. (eval $ac_try) 2>&5
  5061. ac_status=$?
  5062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5063. (exit $ac_status); }; } &&
  5064. { ac_try='test -s conftest.$ac_objext'
  5065. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5066. (eval $ac_try) 2>&5
  5067. ac_status=$?
  5068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5069. (exit $ac_status); }; }; then
  5070. ac_cv_type_int=yes
  5071. else
  5072. echo "$as_me: failed program was:" >&5
  5073. sed 's/^/| /' conftest.$ac_ext >&5
  5074. ac_cv_type_int=no
  5075. fi
  5076. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5077. fi
  5078. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  5079. echo "${ECHO_T}$ac_cv_type_int" >&6
  5080. echo "$as_me:$LINENO: checking size of int" >&5
  5081. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  5082. if test "${ac_cv_sizeof_int+set}" = set; then
  5083. echo $ECHO_N "(cached) $ECHO_C" >&6
  5084. else
  5085. if test "$ac_cv_type_int" = yes; then
  5086. # The cast to unsigned long works around a bug in the HP C Compiler
  5087. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5088. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5089. # This bug is HP SR number 8606223364.
  5090. if test "$cross_compiling" = yes; then
  5091. # Depending upon the size, compute the lo and hi bounds.
  5092. cat >conftest.$ac_ext <<_ACEOF
  5093. /* confdefs.h. */
  5094. _ACEOF
  5095. cat confdefs.h >>conftest.$ac_ext
  5096. cat >>conftest.$ac_ext <<_ACEOF
  5097. /* end confdefs.h. */
  5098. $ac_includes_default
  5099. int
  5100. main ()
  5101. {
  5102. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  5103. test_array [0] = 0
  5104. ;
  5105. return 0;
  5106. }
  5107. _ACEOF
  5108. rm -f conftest.$ac_objext
  5109. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5110. (eval $ac_compile) 2>conftest.er1
  5111. ac_status=$?
  5112. grep -v '^ *+' conftest.er1 >conftest.err
  5113. rm -f conftest.er1
  5114. cat conftest.err >&5
  5115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5116. (exit $ac_status); } &&
  5117. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5118. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5119. (eval $ac_try) 2>&5
  5120. ac_status=$?
  5121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5122. (exit $ac_status); }; } &&
  5123. { ac_try='test -s conftest.$ac_objext'
  5124. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5125. (eval $ac_try) 2>&5
  5126. ac_status=$?
  5127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5128. (exit $ac_status); }; }; then
  5129. ac_lo=0 ac_mid=0
  5130. while :; do
  5131. cat >conftest.$ac_ext <<_ACEOF
  5132. /* confdefs.h. */
  5133. _ACEOF
  5134. cat confdefs.h >>conftest.$ac_ext
  5135. cat >>conftest.$ac_ext <<_ACEOF
  5136. /* end confdefs.h. */
  5137. $ac_includes_default
  5138. int
  5139. main ()
  5140. {
  5141. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  5142. test_array [0] = 0
  5143. ;
  5144. return 0;
  5145. }
  5146. _ACEOF
  5147. rm -f conftest.$ac_objext
  5148. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5149. (eval $ac_compile) 2>conftest.er1
  5150. ac_status=$?
  5151. grep -v '^ *+' conftest.er1 >conftest.err
  5152. rm -f conftest.er1
  5153. cat conftest.err >&5
  5154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5155. (exit $ac_status); } &&
  5156. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5157. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5158. (eval $ac_try) 2>&5
  5159. ac_status=$?
  5160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5161. (exit $ac_status); }; } &&
  5162. { ac_try='test -s conftest.$ac_objext'
  5163. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5164. (eval $ac_try) 2>&5
  5165. ac_status=$?
  5166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5167. (exit $ac_status); }; }; then
  5168. ac_hi=$ac_mid; break
  5169. else
  5170. echo "$as_me: failed program was:" >&5
  5171. sed 's/^/| /' conftest.$ac_ext >&5
  5172. ac_lo=`expr $ac_mid + 1`
  5173. if test $ac_lo -le $ac_mid; then
  5174. ac_lo= ac_hi=
  5175. break
  5176. fi
  5177. ac_mid=`expr 2 '*' $ac_mid + 1`
  5178. fi
  5179. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5180. done
  5181. else
  5182. echo "$as_me: failed program was:" >&5
  5183. sed 's/^/| /' conftest.$ac_ext >&5
  5184. cat >conftest.$ac_ext <<_ACEOF
  5185. /* confdefs.h. */
  5186. _ACEOF
  5187. cat confdefs.h >>conftest.$ac_ext
  5188. cat >>conftest.$ac_ext <<_ACEOF
  5189. /* end confdefs.h. */
  5190. $ac_includes_default
  5191. int
  5192. main ()
  5193. {
  5194. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  5195. test_array [0] = 0
  5196. ;
  5197. return 0;
  5198. }
  5199. _ACEOF
  5200. rm -f conftest.$ac_objext
  5201. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5202. (eval $ac_compile) 2>conftest.er1
  5203. ac_status=$?
  5204. grep -v '^ *+' conftest.er1 >conftest.err
  5205. rm -f conftest.er1
  5206. cat conftest.err >&5
  5207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5208. (exit $ac_status); } &&
  5209. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5210. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5211. (eval $ac_try) 2>&5
  5212. ac_status=$?
  5213. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5214. (exit $ac_status); }; } &&
  5215. { ac_try='test -s conftest.$ac_objext'
  5216. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5217. (eval $ac_try) 2>&5
  5218. ac_status=$?
  5219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5220. (exit $ac_status); }; }; then
  5221. ac_hi=-1 ac_mid=-1
  5222. while :; do
  5223. cat >conftest.$ac_ext <<_ACEOF
  5224. /* confdefs.h. */
  5225. _ACEOF
  5226. cat confdefs.h >>conftest.$ac_ext
  5227. cat >>conftest.$ac_ext <<_ACEOF
  5228. /* end confdefs.h. */
  5229. $ac_includes_default
  5230. int
  5231. main ()
  5232. {
  5233. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  5234. test_array [0] = 0
  5235. ;
  5236. return 0;
  5237. }
  5238. _ACEOF
  5239. rm -f conftest.$ac_objext
  5240. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5241. (eval $ac_compile) 2>conftest.er1
  5242. ac_status=$?
  5243. grep -v '^ *+' conftest.er1 >conftest.err
  5244. rm -f conftest.er1
  5245. cat conftest.err >&5
  5246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5247. (exit $ac_status); } &&
  5248. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5249. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5250. (eval $ac_try) 2>&5
  5251. ac_status=$?
  5252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5253. (exit $ac_status); }; } &&
  5254. { ac_try='test -s conftest.$ac_objext'
  5255. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5256. (eval $ac_try) 2>&5
  5257. ac_status=$?
  5258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5259. (exit $ac_status); }; }; then
  5260. ac_lo=$ac_mid; break
  5261. else
  5262. echo "$as_me: failed program was:" >&5
  5263. sed 's/^/| /' conftest.$ac_ext >&5
  5264. ac_hi=`expr '(' $ac_mid ')' - 1`
  5265. if test $ac_mid -le $ac_hi; then
  5266. ac_lo= ac_hi=
  5267. break
  5268. fi
  5269. ac_mid=`expr 2 '*' $ac_mid`
  5270. fi
  5271. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5272. done
  5273. else
  5274. echo "$as_me: failed program was:" >&5
  5275. sed 's/^/| /' conftest.$ac_ext >&5
  5276. ac_lo= ac_hi=
  5277. fi
  5278. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5279. fi
  5280. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5281. # Binary search between lo and hi bounds.
  5282. while test "x$ac_lo" != "x$ac_hi"; do
  5283. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5284. cat >conftest.$ac_ext <<_ACEOF
  5285. /* confdefs.h. */
  5286. _ACEOF
  5287. cat confdefs.h >>conftest.$ac_ext
  5288. cat >>conftest.$ac_ext <<_ACEOF
  5289. /* end confdefs.h. */
  5290. $ac_includes_default
  5291. int
  5292. main ()
  5293. {
  5294. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  5295. test_array [0] = 0
  5296. ;
  5297. return 0;
  5298. }
  5299. _ACEOF
  5300. rm -f conftest.$ac_objext
  5301. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5302. (eval $ac_compile) 2>conftest.er1
  5303. ac_status=$?
  5304. grep -v '^ *+' conftest.er1 >conftest.err
  5305. rm -f conftest.er1
  5306. cat conftest.err >&5
  5307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5308. (exit $ac_status); } &&
  5309. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5310. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5311. (eval $ac_try) 2>&5
  5312. ac_status=$?
  5313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5314. (exit $ac_status); }; } &&
  5315. { ac_try='test -s conftest.$ac_objext'
  5316. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5317. (eval $ac_try) 2>&5
  5318. ac_status=$?
  5319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5320. (exit $ac_status); }; }; then
  5321. ac_hi=$ac_mid
  5322. else
  5323. echo "$as_me: failed program was:" >&5
  5324. sed 's/^/| /' conftest.$ac_ext >&5
  5325. ac_lo=`expr '(' $ac_mid ')' + 1`
  5326. fi
  5327. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5328. done
  5329. case $ac_lo in
  5330. ?*) ac_cv_sizeof_int=$ac_lo;;
  5331. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  5332. See \`config.log' for more details." >&5
  5333. echo "$as_me: error: cannot compute sizeof (int), 77
  5334. See \`config.log' for more details." >&2;}
  5335. { (exit 1); exit 1; }; } ;;
  5336. esac
  5337. else
  5338. if test "$cross_compiling" = yes; then
  5339. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  5340. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  5341. { (exit 1); exit 1; }; }
  5342. else
  5343. cat >conftest.$ac_ext <<_ACEOF
  5344. /* confdefs.h. */
  5345. _ACEOF
  5346. cat confdefs.h >>conftest.$ac_ext
  5347. cat >>conftest.$ac_ext <<_ACEOF
  5348. /* end confdefs.h. */
  5349. $ac_includes_default
  5350. long longval () { return (long) (sizeof (int)); }
  5351. unsigned long ulongval () { return (long) (sizeof (int)); }
  5352. #include <stdio.h>
  5353. #include <stdlib.h>
  5354. int
  5355. main ()
  5356. {
  5357. FILE *f = fopen ("conftest.val", "w");
  5358. if (! f)
  5359. exit (1);
  5360. if (((long) (sizeof (int))) < 0)
  5361. {
  5362. long i = longval ();
  5363. if (i != ((long) (sizeof (int))))
  5364. exit (1);
  5365. fprintf (f, "%ld\n", i);
  5366. }
  5367. else
  5368. {
  5369. unsigned long i = ulongval ();
  5370. if (i != ((long) (sizeof (int))))
  5371. exit (1);
  5372. fprintf (f, "%lu\n", i);
  5373. }
  5374. exit (ferror (f) || fclose (f) != 0);
  5375. ;
  5376. return 0;
  5377. }
  5378. _ACEOF
  5379. rm -f conftest$ac_exeext
  5380. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5381. (eval $ac_link) 2>&5
  5382. ac_status=$?
  5383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5384. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5385. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5386. (eval $ac_try) 2>&5
  5387. ac_status=$?
  5388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5389. (exit $ac_status); }; }; then
  5390. ac_cv_sizeof_int=`cat conftest.val`
  5391. else
  5392. echo "$as_me: program exited with status $ac_status" >&5
  5393. echo "$as_me: failed program was:" >&5
  5394. sed 's/^/| /' conftest.$ac_ext >&5
  5395. ( exit $ac_status )
  5396. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  5397. See \`config.log' for more details." >&5
  5398. echo "$as_me: error: cannot compute sizeof (int), 77
  5399. See \`config.log' for more details." >&2;}
  5400. { (exit 1); exit 1; }; }
  5401. fi
  5402. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5403. fi
  5404. fi
  5405. rm -f conftest.val
  5406. else
  5407. ac_cv_sizeof_int=0
  5408. fi
  5409. fi
  5410. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  5411. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  5412. cat >>confdefs.h <<_ACEOF
  5413. #define SIZEOF_INT $ac_cv_sizeof_int
  5414. _ACEOF
  5415. echo "$as_me:$LINENO: checking for short" >&5
  5416. echo $ECHO_N "checking for short... $ECHO_C" >&6
  5417. if test "${ac_cv_type_short+set}" = set; then
  5418. echo $ECHO_N "(cached) $ECHO_C" >&6
  5419. else
  5420. cat >conftest.$ac_ext <<_ACEOF
  5421. /* confdefs.h. */
  5422. _ACEOF
  5423. cat confdefs.h >>conftest.$ac_ext
  5424. cat >>conftest.$ac_ext <<_ACEOF
  5425. /* end confdefs.h. */
  5426. $ac_includes_default
  5427. int
  5428. main ()
  5429. {
  5430. if ((short *) 0)
  5431. return 0;
  5432. if (sizeof (short))
  5433. return 0;
  5434. ;
  5435. return 0;
  5436. }
  5437. _ACEOF
  5438. rm -f conftest.$ac_objext
  5439. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5440. (eval $ac_compile) 2>conftest.er1
  5441. ac_status=$?
  5442. grep -v '^ *+' conftest.er1 >conftest.err
  5443. rm -f conftest.er1
  5444. cat conftest.err >&5
  5445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5446. (exit $ac_status); } &&
  5447. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5448. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5449. (eval $ac_try) 2>&5
  5450. ac_status=$?
  5451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5452. (exit $ac_status); }; } &&
  5453. { ac_try='test -s conftest.$ac_objext'
  5454. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5455. (eval $ac_try) 2>&5
  5456. ac_status=$?
  5457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5458. (exit $ac_status); }; }; then
  5459. ac_cv_type_short=yes
  5460. else
  5461. echo "$as_me: failed program was:" >&5
  5462. sed 's/^/| /' conftest.$ac_ext >&5
  5463. ac_cv_type_short=no
  5464. fi
  5465. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5466. fi
  5467. echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  5468. echo "${ECHO_T}$ac_cv_type_short" >&6
  5469. echo "$as_me:$LINENO: checking size of short" >&5
  5470. echo $ECHO_N "checking size of short... $ECHO_C" >&6
  5471. if test "${ac_cv_sizeof_short+set}" = set; then
  5472. echo $ECHO_N "(cached) $ECHO_C" >&6
  5473. else
  5474. if test "$ac_cv_type_short" = yes; then
  5475. # The cast to unsigned long works around a bug in the HP C Compiler
  5476. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5477. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5478. # This bug is HP SR number 8606223364.
  5479. if test "$cross_compiling" = yes; then
  5480. # Depending upon the size, compute the lo and hi bounds.
  5481. cat >conftest.$ac_ext <<_ACEOF
  5482. /* confdefs.h. */
  5483. _ACEOF
  5484. cat confdefs.h >>conftest.$ac_ext
  5485. cat >>conftest.$ac_ext <<_ACEOF
  5486. /* end confdefs.h. */
  5487. $ac_includes_default
  5488. int
  5489. main ()
  5490. {
  5491. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
  5492. test_array [0] = 0
  5493. ;
  5494. return 0;
  5495. }
  5496. _ACEOF
  5497. rm -f conftest.$ac_objext
  5498. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5499. (eval $ac_compile) 2>conftest.er1
  5500. ac_status=$?
  5501. grep -v '^ *+' conftest.er1 >conftest.err
  5502. rm -f conftest.er1
  5503. cat conftest.err >&5
  5504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5505. (exit $ac_status); } &&
  5506. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5507. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5508. (eval $ac_try) 2>&5
  5509. ac_status=$?
  5510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5511. (exit $ac_status); }; } &&
  5512. { ac_try='test -s conftest.$ac_objext'
  5513. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5514. (eval $ac_try) 2>&5
  5515. ac_status=$?
  5516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5517. (exit $ac_status); }; }; then
  5518. ac_lo=0 ac_mid=0
  5519. while :; do
  5520. cat >conftest.$ac_ext <<_ACEOF
  5521. /* confdefs.h. */
  5522. _ACEOF
  5523. cat confdefs.h >>conftest.$ac_ext
  5524. cat >>conftest.$ac_ext <<_ACEOF
  5525. /* end confdefs.h. */
  5526. $ac_includes_default
  5527. int
  5528. main ()
  5529. {
  5530. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  5531. test_array [0] = 0
  5532. ;
  5533. return 0;
  5534. }
  5535. _ACEOF
  5536. rm -f conftest.$ac_objext
  5537. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5538. (eval $ac_compile) 2>conftest.er1
  5539. ac_status=$?
  5540. grep -v '^ *+' conftest.er1 >conftest.err
  5541. rm -f conftest.er1
  5542. cat conftest.err >&5
  5543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5544. (exit $ac_status); } &&
  5545. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5546. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5547. (eval $ac_try) 2>&5
  5548. ac_status=$?
  5549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5550. (exit $ac_status); }; } &&
  5551. { ac_try='test -s conftest.$ac_objext'
  5552. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5553. (eval $ac_try) 2>&5
  5554. ac_status=$?
  5555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5556. (exit $ac_status); }; }; then
  5557. ac_hi=$ac_mid; break
  5558. else
  5559. echo "$as_me: failed program was:" >&5
  5560. sed 's/^/| /' conftest.$ac_ext >&5
  5561. ac_lo=`expr $ac_mid + 1`
  5562. if test $ac_lo -le $ac_mid; then
  5563. ac_lo= ac_hi=
  5564. break
  5565. fi
  5566. ac_mid=`expr 2 '*' $ac_mid + 1`
  5567. fi
  5568. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5569. done
  5570. else
  5571. echo "$as_me: failed program was:" >&5
  5572. sed 's/^/| /' conftest.$ac_ext >&5
  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. int
  5581. main ()
  5582. {
  5583. static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
  5584. test_array [0] = 0
  5585. ;
  5586. return 0;
  5587. }
  5588. _ACEOF
  5589. rm -f conftest.$ac_objext
  5590. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5591. (eval $ac_compile) 2>conftest.er1
  5592. ac_status=$?
  5593. grep -v '^ *+' conftest.er1 >conftest.err
  5594. rm -f conftest.er1
  5595. cat conftest.err >&5
  5596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5597. (exit $ac_status); } &&
  5598. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5599. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5600. (eval $ac_try) 2>&5
  5601. ac_status=$?
  5602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5603. (exit $ac_status); }; } &&
  5604. { ac_try='test -s conftest.$ac_objext'
  5605. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5606. (eval $ac_try) 2>&5
  5607. ac_status=$?
  5608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5609. (exit $ac_status); }; }; then
  5610. ac_hi=-1 ac_mid=-1
  5611. while :; do
  5612. cat >conftest.$ac_ext <<_ACEOF
  5613. /* confdefs.h. */
  5614. _ACEOF
  5615. cat confdefs.h >>conftest.$ac_ext
  5616. cat >>conftest.$ac_ext <<_ACEOF
  5617. /* end confdefs.h. */
  5618. $ac_includes_default
  5619. int
  5620. main ()
  5621. {
  5622. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
  5623. test_array [0] = 0
  5624. ;
  5625. return 0;
  5626. }
  5627. _ACEOF
  5628. rm -f conftest.$ac_objext
  5629. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5630. (eval $ac_compile) 2>conftest.er1
  5631. ac_status=$?
  5632. grep -v '^ *+' conftest.er1 >conftest.err
  5633. rm -f conftest.er1
  5634. cat conftest.err >&5
  5635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5636. (exit $ac_status); } &&
  5637. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5638. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5639. (eval $ac_try) 2>&5
  5640. ac_status=$?
  5641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5642. (exit $ac_status); }; } &&
  5643. { ac_try='test -s conftest.$ac_objext'
  5644. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5645. (eval $ac_try) 2>&5
  5646. ac_status=$?
  5647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5648. (exit $ac_status); }; }; then
  5649. ac_lo=$ac_mid; break
  5650. else
  5651. echo "$as_me: failed program was:" >&5
  5652. sed 's/^/| /' conftest.$ac_ext >&5
  5653. ac_hi=`expr '(' $ac_mid ')' - 1`
  5654. if test $ac_mid -le $ac_hi; then
  5655. ac_lo= ac_hi=
  5656. break
  5657. fi
  5658. ac_mid=`expr 2 '*' $ac_mid`
  5659. fi
  5660. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5661. done
  5662. else
  5663. echo "$as_me: failed program was:" >&5
  5664. sed 's/^/| /' conftest.$ac_ext >&5
  5665. ac_lo= ac_hi=
  5666. fi
  5667. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5668. fi
  5669. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5670. # Binary search between lo and hi bounds.
  5671. while test "x$ac_lo" != "x$ac_hi"; do
  5672. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5673. cat >conftest.$ac_ext <<_ACEOF
  5674. /* confdefs.h. */
  5675. _ACEOF
  5676. cat confdefs.h >>conftest.$ac_ext
  5677. cat >>conftest.$ac_ext <<_ACEOF
  5678. /* end confdefs.h. */
  5679. $ac_includes_default
  5680. int
  5681. main ()
  5682. {
  5683. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  5684. test_array [0] = 0
  5685. ;
  5686. return 0;
  5687. }
  5688. _ACEOF
  5689. rm -f conftest.$ac_objext
  5690. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5691. (eval $ac_compile) 2>conftest.er1
  5692. ac_status=$?
  5693. grep -v '^ *+' conftest.er1 >conftest.err
  5694. rm -f conftest.er1
  5695. cat conftest.err >&5
  5696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5697. (exit $ac_status); } &&
  5698. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5699. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5700. (eval $ac_try) 2>&5
  5701. ac_status=$?
  5702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5703. (exit $ac_status); }; } &&
  5704. { ac_try='test -s conftest.$ac_objext'
  5705. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5706. (eval $ac_try) 2>&5
  5707. ac_status=$?
  5708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5709. (exit $ac_status); }; }; then
  5710. ac_hi=$ac_mid
  5711. else
  5712. echo "$as_me: failed program was:" >&5
  5713. sed 's/^/| /' conftest.$ac_ext >&5
  5714. ac_lo=`expr '(' $ac_mid ')' + 1`
  5715. fi
  5716. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5717. done
  5718. case $ac_lo in
  5719. ?*) ac_cv_sizeof_short=$ac_lo;;
  5720. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  5721. See \`config.log' for more details." >&5
  5722. echo "$as_me: error: cannot compute sizeof (short), 77
  5723. See \`config.log' for more details." >&2;}
  5724. { (exit 1); exit 1; }; } ;;
  5725. esac
  5726. else
  5727. if test "$cross_compiling" = yes; then
  5728. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  5729. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  5730. { (exit 1); exit 1; }; }
  5731. else
  5732. cat >conftest.$ac_ext <<_ACEOF
  5733. /* confdefs.h. */
  5734. _ACEOF
  5735. cat confdefs.h >>conftest.$ac_ext
  5736. cat >>conftest.$ac_ext <<_ACEOF
  5737. /* end confdefs.h. */
  5738. $ac_includes_default
  5739. long longval () { return (long) (sizeof (short)); }
  5740. unsigned long ulongval () { return (long) (sizeof (short)); }
  5741. #include <stdio.h>
  5742. #include <stdlib.h>
  5743. int
  5744. main ()
  5745. {
  5746. FILE *f = fopen ("conftest.val", "w");
  5747. if (! f)
  5748. exit (1);
  5749. if (((long) (sizeof (short))) < 0)
  5750. {
  5751. long i = longval ();
  5752. if (i != ((long) (sizeof (short))))
  5753. exit (1);
  5754. fprintf (f, "%ld\n", i);
  5755. }
  5756. else
  5757. {
  5758. unsigned long i = ulongval ();
  5759. if (i != ((long) (sizeof (short))))
  5760. exit (1);
  5761. fprintf (f, "%lu\n", i);
  5762. }
  5763. exit (ferror (f) || fclose (f) != 0);
  5764. ;
  5765. return 0;
  5766. }
  5767. _ACEOF
  5768. rm -f conftest$ac_exeext
  5769. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5770. (eval $ac_link) 2>&5
  5771. ac_status=$?
  5772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5773. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5774. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5775. (eval $ac_try) 2>&5
  5776. ac_status=$?
  5777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5778. (exit $ac_status); }; }; then
  5779. ac_cv_sizeof_short=`cat conftest.val`
  5780. else
  5781. echo "$as_me: program exited with status $ac_status" >&5
  5782. echo "$as_me: failed program was:" >&5
  5783. sed 's/^/| /' conftest.$ac_ext >&5
  5784. ( exit $ac_status )
  5785. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  5786. See \`config.log' for more details." >&5
  5787. echo "$as_me: error: cannot compute sizeof (short), 77
  5788. See \`config.log' for more details." >&2;}
  5789. { (exit 1); exit 1; }; }
  5790. fi
  5791. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5792. fi
  5793. fi
  5794. rm -f conftest.val
  5795. else
  5796. ac_cv_sizeof_short=0
  5797. fi
  5798. fi
  5799. echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  5800. echo "${ECHO_T}$ac_cv_sizeof_short" >&6
  5801. cat >>confdefs.h <<_ACEOF
  5802. #define SIZEOF_SHORT $ac_cv_sizeof_short
  5803. _ACEOF
  5804. echo "$as_me:$LINENO: checking for long" >&5
  5805. echo $ECHO_N "checking for long... $ECHO_C" >&6
  5806. if test "${ac_cv_type_long+set}" = set; then
  5807. echo $ECHO_N "(cached) $ECHO_C" >&6
  5808. else
  5809. cat >conftest.$ac_ext <<_ACEOF
  5810. /* confdefs.h. */
  5811. _ACEOF
  5812. cat confdefs.h >>conftest.$ac_ext
  5813. cat >>conftest.$ac_ext <<_ACEOF
  5814. /* end confdefs.h. */
  5815. $ac_includes_default
  5816. int
  5817. main ()
  5818. {
  5819. if ((long *) 0)
  5820. return 0;
  5821. if (sizeof (long))
  5822. return 0;
  5823. ;
  5824. return 0;
  5825. }
  5826. _ACEOF
  5827. rm -f conftest.$ac_objext
  5828. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5829. (eval $ac_compile) 2>conftest.er1
  5830. ac_status=$?
  5831. grep -v '^ *+' conftest.er1 >conftest.err
  5832. rm -f conftest.er1
  5833. cat conftest.err >&5
  5834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5835. (exit $ac_status); } &&
  5836. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5837. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5838. (eval $ac_try) 2>&5
  5839. ac_status=$?
  5840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5841. (exit $ac_status); }; } &&
  5842. { ac_try='test -s conftest.$ac_objext'
  5843. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5844. (eval $ac_try) 2>&5
  5845. ac_status=$?
  5846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5847. (exit $ac_status); }; }; then
  5848. ac_cv_type_long=yes
  5849. else
  5850. echo "$as_me: failed program was:" >&5
  5851. sed 's/^/| /' conftest.$ac_ext >&5
  5852. ac_cv_type_long=no
  5853. fi
  5854. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5855. fi
  5856. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  5857. echo "${ECHO_T}$ac_cv_type_long" >&6
  5858. echo "$as_me:$LINENO: checking size of long" >&5
  5859. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  5860. if test "${ac_cv_sizeof_long+set}" = set; then
  5861. echo $ECHO_N "(cached) $ECHO_C" >&6
  5862. else
  5863. if test "$ac_cv_type_long" = yes; then
  5864. # The cast to unsigned long works around a bug in the HP C Compiler
  5865. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5866. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5867. # This bug is HP SR number 8606223364.
  5868. if test "$cross_compiling" = yes; then
  5869. # Depending upon the size, compute the lo and hi bounds.
  5870. cat >conftest.$ac_ext <<_ACEOF
  5871. /* confdefs.h. */
  5872. _ACEOF
  5873. cat confdefs.h >>conftest.$ac_ext
  5874. cat >>conftest.$ac_ext <<_ACEOF
  5875. /* end confdefs.h. */
  5876. $ac_includes_default
  5877. int
  5878. main ()
  5879. {
  5880. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  5881. test_array [0] = 0
  5882. ;
  5883. return 0;
  5884. }
  5885. _ACEOF
  5886. rm -f conftest.$ac_objext
  5887. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5888. (eval $ac_compile) 2>conftest.er1
  5889. ac_status=$?
  5890. grep -v '^ *+' conftest.er1 >conftest.err
  5891. rm -f conftest.er1
  5892. cat conftest.err >&5
  5893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5894. (exit $ac_status); } &&
  5895. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5896. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5897. (eval $ac_try) 2>&5
  5898. ac_status=$?
  5899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5900. (exit $ac_status); }; } &&
  5901. { ac_try='test -s conftest.$ac_objext'
  5902. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5903. (eval $ac_try) 2>&5
  5904. ac_status=$?
  5905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5906. (exit $ac_status); }; }; then
  5907. ac_lo=0 ac_mid=0
  5908. while :; do
  5909. cat >conftest.$ac_ext <<_ACEOF
  5910. /* confdefs.h. */
  5911. _ACEOF
  5912. cat confdefs.h >>conftest.$ac_ext
  5913. cat >>conftest.$ac_ext <<_ACEOF
  5914. /* end confdefs.h. */
  5915. $ac_includes_default
  5916. int
  5917. main ()
  5918. {
  5919. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  5920. test_array [0] = 0
  5921. ;
  5922. return 0;
  5923. }
  5924. _ACEOF
  5925. rm -f conftest.$ac_objext
  5926. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5927. (eval $ac_compile) 2>conftest.er1
  5928. ac_status=$?
  5929. grep -v '^ *+' conftest.er1 >conftest.err
  5930. rm -f conftest.er1
  5931. cat conftest.err >&5
  5932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5933. (exit $ac_status); } &&
  5934. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5935. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5936. (eval $ac_try) 2>&5
  5937. ac_status=$?
  5938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5939. (exit $ac_status); }; } &&
  5940. { ac_try='test -s conftest.$ac_objext'
  5941. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5942. (eval $ac_try) 2>&5
  5943. ac_status=$?
  5944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5945. (exit $ac_status); }; }; then
  5946. ac_hi=$ac_mid; break
  5947. else
  5948. echo "$as_me: failed program was:" >&5
  5949. sed 's/^/| /' conftest.$ac_ext >&5
  5950. ac_lo=`expr $ac_mid + 1`
  5951. if test $ac_lo -le $ac_mid; then
  5952. ac_lo= ac_hi=
  5953. break
  5954. fi
  5955. ac_mid=`expr 2 '*' $ac_mid + 1`
  5956. fi
  5957. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5958. done
  5959. else
  5960. echo "$as_me: failed program was:" >&5
  5961. sed 's/^/| /' conftest.$ac_ext >&5
  5962. cat >conftest.$ac_ext <<_ACEOF
  5963. /* confdefs.h. */
  5964. _ACEOF
  5965. cat confdefs.h >>conftest.$ac_ext
  5966. cat >>conftest.$ac_ext <<_ACEOF
  5967. /* end confdefs.h. */
  5968. $ac_includes_default
  5969. int
  5970. main ()
  5971. {
  5972. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  5973. test_array [0] = 0
  5974. ;
  5975. return 0;
  5976. }
  5977. _ACEOF
  5978. rm -f conftest.$ac_objext
  5979. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5980. (eval $ac_compile) 2>conftest.er1
  5981. ac_status=$?
  5982. grep -v '^ *+' conftest.er1 >conftest.err
  5983. rm -f conftest.er1
  5984. cat conftest.err >&5
  5985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5986. (exit $ac_status); } &&
  5987. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5988. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5989. (eval $ac_try) 2>&5
  5990. ac_status=$?
  5991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5992. (exit $ac_status); }; } &&
  5993. { ac_try='test -s conftest.$ac_objext'
  5994. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5995. (eval $ac_try) 2>&5
  5996. ac_status=$?
  5997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5998. (exit $ac_status); }; }; then
  5999. ac_hi=-1 ac_mid=-1
  6000. while :; do
  6001. cat >conftest.$ac_ext <<_ACEOF
  6002. /* confdefs.h. */
  6003. _ACEOF
  6004. cat confdefs.h >>conftest.$ac_ext
  6005. cat >>conftest.$ac_ext <<_ACEOF
  6006. /* end confdefs.h. */
  6007. $ac_includes_default
  6008. int
  6009. main ()
  6010. {
  6011. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  6012. test_array [0] = 0
  6013. ;
  6014. return 0;
  6015. }
  6016. _ACEOF
  6017. rm -f conftest.$ac_objext
  6018. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6019. (eval $ac_compile) 2>conftest.er1
  6020. ac_status=$?
  6021. grep -v '^ *+' conftest.er1 >conftest.err
  6022. rm -f conftest.er1
  6023. cat conftest.err >&5
  6024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6025. (exit $ac_status); } &&
  6026. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6027. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6028. (eval $ac_try) 2>&5
  6029. ac_status=$?
  6030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6031. (exit $ac_status); }; } &&
  6032. { ac_try='test -s conftest.$ac_objext'
  6033. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6034. (eval $ac_try) 2>&5
  6035. ac_status=$?
  6036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6037. (exit $ac_status); }; }; then
  6038. ac_lo=$ac_mid; break
  6039. else
  6040. echo "$as_me: failed program was:" >&5
  6041. sed 's/^/| /' conftest.$ac_ext >&5
  6042. ac_hi=`expr '(' $ac_mid ')' - 1`
  6043. if test $ac_mid -le $ac_hi; then
  6044. ac_lo= ac_hi=
  6045. break
  6046. fi
  6047. ac_mid=`expr 2 '*' $ac_mid`
  6048. fi
  6049. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6050. done
  6051. else
  6052. echo "$as_me: failed program was:" >&5
  6053. sed 's/^/| /' conftest.$ac_ext >&5
  6054. ac_lo= ac_hi=
  6055. fi
  6056. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6057. fi
  6058. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6059. # Binary search between lo and hi bounds.
  6060. while test "x$ac_lo" != "x$ac_hi"; do
  6061. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6062. cat >conftest.$ac_ext <<_ACEOF
  6063. /* confdefs.h. */
  6064. _ACEOF
  6065. cat confdefs.h >>conftest.$ac_ext
  6066. cat >>conftest.$ac_ext <<_ACEOF
  6067. /* end confdefs.h. */
  6068. $ac_includes_default
  6069. int
  6070. main ()
  6071. {
  6072. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6073. test_array [0] = 0
  6074. ;
  6075. return 0;
  6076. }
  6077. _ACEOF
  6078. rm -f conftest.$ac_objext
  6079. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6080. (eval $ac_compile) 2>conftest.er1
  6081. ac_status=$?
  6082. grep -v '^ *+' conftest.er1 >conftest.err
  6083. rm -f conftest.er1
  6084. cat conftest.err >&5
  6085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6086. (exit $ac_status); } &&
  6087. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6088. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6089. (eval $ac_try) 2>&5
  6090. ac_status=$?
  6091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6092. (exit $ac_status); }; } &&
  6093. { ac_try='test -s conftest.$ac_objext'
  6094. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6095. (eval $ac_try) 2>&5
  6096. ac_status=$?
  6097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6098. (exit $ac_status); }; }; then
  6099. ac_hi=$ac_mid
  6100. else
  6101. echo "$as_me: failed program was:" >&5
  6102. sed 's/^/| /' conftest.$ac_ext >&5
  6103. ac_lo=`expr '(' $ac_mid ')' + 1`
  6104. fi
  6105. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6106. done
  6107. case $ac_lo in
  6108. ?*) ac_cv_sizeof_long=$ac_lo;;
  6109. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6110. See \`config.log' for more details." >&5
  6111. echo "$as_me: error: cannot compute sizeof (long), 77
  6112. See \`config.log' for more details." >&2;}
  6113. { (exit 1); exit 1; }; } ;;
  6114. esac
  6115. else
  6116. if test "$cross_compiling" = yes; then
  6117. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6118. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6119. { (exit 1); exit 1; }; }
  6120. else
  6121. cat >conftest.$ac_ext <<_ACEOF
  6122. /* confdefs.h. */
  6123. _ACEOF
  6124. cat confdefs.h >>conftest.$ac_ext
  6125. cat >>conftest.$ac_ext <<_ACEOF
  6126. /* end confdefs.h. */
  6127. $ac_includes_default
  6128. long longval () { return (long) (sizeof (long)); }
  6129. unsigned long ulongval () { return (long) (sizeof (long)); }
  6130. #include <stdio.h>
  6131. #include <stdlib.h>
  6132. int
  6133. main ()
  6134. {
  6135. FILE *f = fopen ("conftest.val", "w");
  6136. if (! f)
  6137. exit (1);
  6138. if (((long) (sizeof (long))) < 0)
  6139. {
  6140. long i = longval ();
  6141. if (i != ((long) (sizeof (long))))
  6142. exit (1);
  6143. fprintf (f, "%ld\n", i);
  6144. }
  6145. else
  6146. {
  6147. unsigned long i = ulongval ();
  6148. if (i != ((long) (sizeof (long))))
  6149. exit (1);
  6150. fprintf (f, "%lu\n", i);
  6151. }
  6152. exit (ferror (f) || fclose (f) != 0);
  6153. ;
  6154. return 0;
  6155. }
  6156. _ACEOF
  6157. rm -f conftest$ac_exeext
  6158. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6159. (eval $ac_link) 2>&5
  6160. ac_status=$?
  6161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6162. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6163. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6164. (eval $ac_try) 2>&5
  6165. ac_status=$?
  6166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6167. (exit $ac_status); }; }; then
  6168. ac_cv_sizeof_long=`cat conftest.val`
  6169. else
  6170. echo "$as_me: program exited with status $ac_status" >&5
  6171. echo "$as_me: failed program was:" >&5
  6172. sed 's/^/| /' conftest.$ac_ext >&5
  6173. ( exit $ac_status )
  6174. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6175. See \`config.log' for more details." >&5
  6176. echo "$as_me: error: cannot compute sizeof (long), 77
  6177. See \`config.log' for more details." >&2;}
  6178. { (exit 1); exit 1; }; }
  6179. fi
  6180. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6181. fi
  6182. fi
  6183. rm -f conftest.val
  6184. else
  6185. ac_cv_sizeof_long=0
  6186. fi
  6187. fi
  6188. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  6189. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  6190. cat >>confdefs.h <<_ACEOF
  6191. #define SIZEOF_LONG $ac_cv_sizeof_long
  6192. _ACEOF
  6193. echo "$as_me:$LINENO: checking for long long" >&5
  6194. echo $ECHO_N "checking for long long... $ECHO_C" >&6
  6195. if test "${ac_cv_type_long_long+set}" = set; then
  6196. echo $ECHO_N "(cached) $ECHO_C" >&6
  6197. else
  6198. cat >conftest.$ac_ext <<_ACEOF
  6199. /* confdefs.h. */
  6200. _ACEOF
  6201. cat confdefs.h >>conftest.$ac_ext
  6202. cat >>conftest.$ac_ext <<_ACEOF
  6203. /* end confdefs.h. */
  6204. $ac_includes_default
  6205. int
  6206. main ()
  6207. {
  6208. if ((long long *) 0)
  6209. return 0;
  6210. if (sizeof (long long))
  6211. return 0;
  6212. ;
  6213. return 0;
  6214. }
  6215. _ACEOF
  6216. rm -f conftest.$ac_objext
  6217. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6218. (eval $ac_compile) 2>conftest.er1
  6219. ac_status=$?
  6220. grep -v '^ *+' conftest.er1 >conftest.err
  6221. rm -f conftest.er1
  6222. cat conftest.err >&5
  6223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6224. (exit $ac_status); } &&
  6225. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6226. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6227. (eval $ac_try) 2>&5
  6228. ac_status=$?
  6229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6230. (exit $ac_status); }; } &&
  6231. { ac_try='test -s conftest.$ac_objext'
  6232. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6233. (eval $ac_try) 2>&5
  6234. ac_status=$?
  6235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6236. (exit $ac_status); }; }; then
  6237. ac_cv_type_long_long=yes
  6238. else
  6239. echo "$as_me: failed program was:" >&5
  6240. sed 's/^/| /' conftest.$ac_ext >&5
  6241. ac_cv_type_long_long=no
  6242. fi
  6243. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6244. fi
  6245. echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  6246. echo "${ECHO_T}$ac_cv_type_long_long" >&6
  6247. echo "$as_me:$LINENO: checking size of long long" >&5
  6248. echo $ECHO_N "checking size of long long... $ECHO_C" >&6
  6249. if test "${ac_cv_sizeof_long_long+set}" = set; then
  6250. echo $ECHO_N "(cached) $ECHO_C" >&6
  6251. else
  6252. if test "$ac_cv_type_long_long" = yes; then
  6253. # The cast to unsigned long works around a bug in the HP C Compiler
  6254. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6255. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6256. # This bug is HP SR number 8606223364.
  6257. if test "$cross_compiling" = yes; then
  6258. # Depending upon the size, compute the lo and hi bounds.
  6259. cat >conftest.$ac_ext <<_ACEOF
  6260. /* confdefs.h. */
  6261. _ACEOF
  6262. cat confdefs.h >>conftest.$ac_ext
  6263. cat >>conftest.$ac_ext <<_ACEOF
  6264. /* end confdefs.h. */
  6265. $ac_includes_default
  6266. int
  6267. main ()
  6268. {
  6269. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
  6270. test_array [0] = 0
  6271. ;
  6272. return 0;
  6273. }
  6274. _ACEOF
  6275. rm -f conftest.$ac_objext
  6276. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6277. (eval $ac_compile) 2>conftest.er1
  6278. ac_status=$?
  6279. grep -v '^ *+' conftest.er1 >conftest.err
  6280. rm -f conftest.er1
  6281. cat conftest.err >&5
  6282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6283. (exit $ac_status); } &&
  6284. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6285. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6286. (eval $ac_try) 2>&5
  6287. ac_status=$?
  6288. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6289. (exit $ac_status); }; } &&
  6290. { ac_try='test -s conftest.$ac_objext'
  6291. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6292. (eval $ac_try) 2>&5
  6293. ac_status=$?
  6294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6295. (exit $ac_status); }; }; then
  6296. ac_lo=0 ac_mid=0
  6297. while :; do
  6298. cat >conftest.$ac_ext <<_ACEOF
  6299. /* confdefs.h. */
  6300. _ACEOF
  6301. cat confdefs.h >>conftest.$ac_ext
  6302. cat >>conftest.$ac_ext <<_ACEOF
  6303. /* end confdefs.h. */
  6304. $ac_includes_default
  6305. int
  6306. main ()
  6307. {
  6308. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  6309. test_array [0] = 0
  6310. ;
  6311. return 0;
  6312. }
  6313. _ACEOF
  6314. rm -f conftest.$ac_objext
  6315. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6316. (eval $ac_compile) 2>conftest.er1
  6317. ac_status=$?
  6318. grep -v '^ *+' conftest.er1 >conftest.err
  6319. rm -f conftest.er1
  6320. cat conftest.err >&5
  6321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6322. (exit $ac_status); } &&
  6323. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6324. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6325. (eval $ac_try) 2>&5
  6326. ac_status=$?
  6327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6328. (exit $ac_status); }; } &&
  6329. { ac_try='test -s conftest.$ac_objext'
  6330. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6331. (eval $ac_try) 2>&5
  6332. ac_status=$?
  6333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6334. (exit $ac_status); }; }; then
  6335. ac_hi=$ac_mid; break
  6336. else
  6337. echo "$as_me: failed program was:" >&5
  6338. sed 's/^/| /' conftest.$ac_ext >&5
  6339. ac_lo=`expr $ac_mid + 1`
  6340. if test $ac_lo -le $ac_mid; then
  6341. ac_lo= ac_hi=
  6342. break
  6343. fi
  6344. ac_mid=`expr 2 '*' $ac_mid + 1`
  6345. fi
  6346. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6347. done
  6348. else
  6349. echo "$as_me: failed program was:" >&5
  6350. sed 's/^/| /' conftest.$ac_ext >&5
  6351. cat >conftest.$ac_ext <<_ACEOF
  6352. /* confdefs.h. */
  6353. _ACEOF
  6354. cat confdefs.h >>conftest.$ac_ext
  6355. cat >>conftest.$ac_ext <<_ACEOF
  6356. /* end confdefs.h. */
  6357. $ac_includes_default
  6358. int
  6359. main ()
  6360. {
  6361. static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
  6362. test_array [0] = 0
  6363. ;
  6364. return 0;
  6365. }
  6366. _ACEOF
  6367. rm -f conftest.$ac_objext
  6368. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6369. (eval $ac_compile) 2>conftest.er1
  6370. ac_status=$?
  6371. grep -v '^ *+' conftest.er1 >conftest.err
  6372. rm -f conftest.er1
  6373. cat conftest.err >&5
  6374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6375. (exit $ac_status); } &&
  6376. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6377. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6378. (eval $ac_try) 2>&5
  6379. ac_status=$?
  6380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6381. (exit $ac_status); }; } &&
  6382. { ac_try='test -s conftest.$ac_objext'
  6383. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6384. (eval $ac_try) 2>&5
  6385. ac_status=$?
  6386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6387. (exit $ac_status); }; }; then
  6388. ac_hi=-1 ac_mid=-1
  6389. while :; do
  6390. cat >conftest.$ac_ext <<_ACEOF
  6391. /* confdefs.h. */
  6392. _ACEOF
  6393. cat confdefs.h >>conftest.$ac_ext
  6394. cat >>conftest.$ac_ext <<_ACEOF
  6395. /* end confdefs.h. */
  6396. $ac_includes_default
  6397. int
  6398. main ()
  6399. {
  6400. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
  6401. test_array [0] = 0
  6402. ;
  6403. return 0;
  6404. }
  6405. _ACEOF
  6406. rm -f conftest.$ac_objext
  6407. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6408. (eval $ac_compile) 2>conftest.er1
  6409. ac_status=$?
  6410. grep -v '^ *+' conftest.er1 >conftest.err
  6411. rm -f conftest.er1
  6412. cat conftest.err >&5
  6413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6414. (exit $ac_status); } &&
  6415. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6416. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6417. (eval $ac_try) 2>&5
  6418. ac_status=$?
  6419. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6420. (exit $ac_status); }; } &&
  6421. { ac_try='test -s conftest.$ac_objext'
  6422. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6423. (eval $ac_try) 2>&5
  6424. ac_status=$?
  6425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6426. (exit $ac_status); }; }; then
  6427. ac_lo=$ac_mid; break
  6428. else
  6429. echo "$as_me: failed program was:" >&5
  6430. sed 's/^/| /' conftest.$ac_ext >&5
  6431. ac_hi=`expr '(' $ac_mid ')' - 1`
  6432. if test $ac_mid -le $ac_hi; then
  6433. ac_lo= ac_hi=
  6434. break
  6435. fi
  6436. ac_mid=`expr 2 '*' $ac_mid`
  6437. fi
  6438. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6439. done
  6440. else
  6441. echo "$as_me: failed program was:" >&5
  6442. sed 's/^/| /' conftest.$ac_ext >&5
  6443. ac_lo= ac_hi=
  6444. fi
  6445. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6446. fi
  6447. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6448. # Binary search between lo and hi bounds.
  6449. while test "x$ac_lo" != "x$ac_hi"; do
  6450. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6451. cat >conftest.$ac_ext <<_ACEOF
  6452. /* confdefs.h. */
  6453. _ACEOF
  6454. cat confdefs.h >>conftest.$ac_ext
  6455. cat >>conftest.$ac_ext <<_ACEOF
  6456. /* end confdefs.h. */
  6457. $ac_includes_default
  6458. int
  6459. main ()
  6460. {
  6461. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  6462. test_array [0] = 0
  6463. ;
  6464. return 0;
  6465. }
  6466. _ACEOF
  6467. rm -f conftest.$ac_objext
  6468. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6469. (eval $ac_compile) 2>conftest.er1
  6470. ac_status=$?
  6471. grep -v '^ *+' conftest.er1 >conftest.err
  6472. rm -f conftest.er1
  6473. cat conftest.err >&5
  6474. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6475. (exit $ac_status); } &&
  6476. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6477. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6478. (eval $ac_try) 2>&5
  6479. ac_status=$?
  6480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6481. (exit $ac_status); }; } &&
  6482. { ac_try='test -s conftest.$ac_objext'
  6483. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6484. (eval $ac_try) 2>&5
  6485. ac_status=$?
  6486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6487. (exit $ac_status); }; }; then
  6488. ac_hi=$ac_mid
  6489. else
  6490. echo "$as_me: failed program was:" >&5
  6491. sed 's/^/| /' conftest.$ac_ext >&5
  6492. ac_lo=`expr '(' $ac_mid ')' + 1`
  6493. fi
  6494. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6495. done
  6496. case $ac_lo in
  6497. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  6498. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  6499. See \`config.log' for more details." >&5
  6500. echo "$as_me: error: cannot compute sizeof (long long), 77
  6501. See \`config.log' for more details." >&2;}
  6502. { (exit 1); exit 1; }; } ;;
  6503. esac
  6504. else
  6505. if test "$cross_compiling" = yes; then
  6506. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6507. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6508. { (exit 1); exit 1; }; }
  6509. else
  6510. cat >conftest.$ac_ext <<_ACEOF
  6511. /* confdefs.h. */
  6512. _ACEOF
  6513. cat confdefs.h >>conftest.$ac_ext
  6514. cat >>conftest.$ac_ext <<_ACEOF
  6515. /* end confdefs.h. */
  6516. $ac_includes_default
  6517. long longval () { return (long) (sizeof (long long)); }
  6518. unsigned long ulongval () { return (long) (sizeof (long long)); }
  6519. #include <stdio.h>
  6520. #include <stdlib.h>
  6521. int
  6522. main ()
  6523. {
  6524. FILE *f = fopen ("conftest.val", "w");
  6525. if (! f)
  6526. exit (1);
  6527. if (((long) (sizeof (long long))) < 0)
  6528. {
  6529. long i = longval ();
  6530. if (i != ((long) (sizeof (long long))))
  6531. exit (1);
  6532. fprintf (f, "%ld\n", i);
  6533. }
  6534. else
  6535. {
  6536. unsigned long i = ulongval ();
  6537. if (i != ((long) (sizeof (long long))))
  6538. exit (1);
  6539. fprintf (f, "%lu\n", i);
  6540. }
  6541. exit (ferror (f) || fclose (f) != 0);
  6542. ;
  6543. return 0;
  6544. }
  6545. _ACEOF
  6546. rm -f conftest$ac_exeext
  6547. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6548. (eval $ac_link) 2>&5
  6549. ac_status=$?
  6550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6551. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6552. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6553. (eval $ac_try) 2>&5
  6554. ac_status=$?
  6555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6556. (exit $ac_status); }; }; then
  6557. ac_cv_sizeof_long_long=`cat conftest.val`
  6558. else
  6559. echo "$as_me: program exited with status $ac_status" >&5
  6560. echo "$as_me: failed program was:" >&5
  6561. sed 's/^/| /' conftest.$ac_ext >&5
  6562. ( exit $ac_status )
  6563. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  6564. See \`config.log' for more details." >&5
  6565. echo "$as_me: error: cannot compute sizeof (long long), 77
  6566. See \`config.log' for more details." >&2;}
  6567. { (exit 1); exit 1; }; }
  6568. fi
  6569. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6570. fi
  6571. fi
  6572. rm -f conftest.val
  6573. else
  6574. ac_cv_sizeof_long_long=0
  6575. fi
  6576. fi
  6577. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  6578. echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
  6579. cat >>confdefs.h <<_ACEOF
  6580. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  6581. _ACEOF
  6582. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  6583. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  6584. if test "${ac_cv_struct_tm+set}" = set; then
  6585. echo $ECHO_N "(cached) $ECHO_C" >&6
  6586. else
  6587. cat >conftest.$ac_ext <<_ACEOF
  6588. /* confdefs.h. */
  6589. _ACEOF
  6590. cat confdefs.h >>conftest.$ac_ext
  6591. cat >>conftest.$ac_ext <<_ACEOF
  6592. /* end confdefs.h. */
  6593. #include <sys/types.h>
  6594. #include <time.h>
  6595. int
  6596. main ()
  6597. {
  6598. struct tm *tp; tp->tm_sec;
  6599. ;
  6600. return 0;
  6601. }
  6602. _ACEOF
  6603. rm -f conftest.$ac_objext
  6604. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6605. (eval $ac_compile) 2>conftest.er1
  6606. ac_status=$?
  6607. grep -v '^ *+' conftest.er1 >conftest.err
  6608. rm -f conftest.er1
  6609. cat conftest.err >&5
  6610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6611. (exit $ac_status); } &&
  6612. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6613. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6614. (eval $ac_try) 2>&5
  6615. ac_status=$?
  6616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6617. (exit $ac_status); }; } &&
  6618. { ac_try='test -s conftest.$ac_objext'
  6619. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6620. (eval $ac_try) 2>&5
  6621. ac_status=$?
  6622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6623. (exit $ac_status); }; }; then
  6624. ac_cv_struct_tm=time.h
  6625. else
  6626. echo "$as_me: failed program was:" >&5
  6627. sed 's/^/| /' conftest.$ac_ext >&5
  6628. ac_cv_struct_tm=sys/time.h
  6629. fi
  6630. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6631. fi
  6632. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  6633. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  6634. if test $ac_cv_struct_tm = sys/time.h; then
  6635. cat >>confdefs.h <<\_ACEOF
  6636. #define TM_IN_SYS_TIME 1
  6637. _ACEOF
  6638. fi
  6639. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  6640. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  6641. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  6642. echo $ECHO_N "(cached) $ECHO_C" >&6
  6643. else
  6644. cat >conftest.$ac_ext <<_ACEOF
  6645. /* confdefs.h. */
  6646. _ACEOF
  6647. cat confdefs.h >>conftest.$ac_ext
  6648. cat >>conftest.$ac_ext <<_ACEOF
  6649. /* end confdefs.h. */
  6650. #include <sys/types.h>
  6651. #include <$ac_cv_struct_tm>
  6652. int
  6653. main ()
  6654. {
  6655. static struct tm ac_aggr;
  6656. if (ac_aggr.tm_zone)
  6657. return 0;
  6658. ;
  6659. return 0;
  6660. }
  6661. _ACEOF
  6662. rm -f conftest.$ac_objext
  6663. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6664. (eval $ac_compile) 2>conftest.er1
  6665. ac_status=$?
  6666. grep -v '^ *+' conftest.er1 >conftest.err
  6667. rm -f conftest.er1
  6668. cat conftest.err >&5
  6669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6670. (exit $ac_status); } &&
  6671. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6672. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6673. (eval $ac_try) 2>&5
  6674. ac_status=$?
  6675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6676. (exit $ac_status); }; } &&
  6677. { ac_try='test -s conftest.$ac_objext'
  6678. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6679. (eval $ac_try) 2>&5
  6680. ac_status=$?
  6681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6682. (exit $ac_status); }; }; then
  6683. ac_cv_member_struct_tm_tm_zone=yes
  6684. else
  6685. echo "$as_me: failed program was:" >&5
  6686. sed 's/^/| /' conftest.$ac_ext >&5
  6687. cat >conftest.$ac_ext <<_ACEOF
  6688. /* confdefs.h. */
  6689. _ACEOF
  6690. cat confdefs.h >>conftest.$ac_ext
  6691. cat >>conftest.$ac_ext <<_ACEOF
  6692. /* end confdefs.h. */
  6693. #include <sys/types.h>
  6694. #include <$ac_cv_struct_tm>
  6695. int
  6696. main ()
  6697. {
  6698. static struct tm ac_aggr;
  6699. if (sizeof ac_aggr.tm_zone)
  6700. return 0;
  6701. ;
  6702. return 0;
  6703. }
  6704. _ACEOF
  6705. rm -f conftest.$ac_objext
  6706. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6707. (eval $ac_compile) 2>conftest.er1
  6708. ac_status=$?
  6709. grep -v '^ *+' conftest.er1 >conftest.err
  6710. rm -f conftest.er1
  6711. cat conftest.err >&5
  6712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6713. (exit $ac_status); } &&
  6714. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6715. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6716. (eval $ac_try) 2>&5
  6717. ac_status=$?
  6718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6719. (exit $ac_status); }; } &&
  6720. { ac_try='test -s conftest.$ac_objext'
  6721. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6722. (eval $ac_try) 2>&5
  6723. ac_status=$?
  6724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6725. (exit $ac_status); }; }; then
  6726. ac_cv_member_struct_tm_tm_zone=yes
  6727. else
  6728. echo "$as_me: failed program was:" >&5
  6729. sed 's/^/| /' conftest.$ac_ext >&5
  6730. ac_cv_member_struct_tm_tm_zone=no
  6731. fi
  6732. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6733. fi
  6734. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6735. fi
  6736. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  6737. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  6738. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  6739. cat >>confdefs.h <<_ACEOF
  6740. #define HAVE_STRUCT_TM_TM_ZONE 1
  6741. _ACEOF
  6742. fi
  6743. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  6744. cat >>confdefs.h <<\_ACEOF
  6745. #define HAVE_TM_ZONE 1
  6746. _ACEOF
  6747. else
  6748. echo "$as_me:$LINENO: checking for tzname" >&5
  6749. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  6750. if test "${ac_cv_var_tzname+set}" = set; then
  6751. echo $ECHO_N "(cached) $ECHO_C" >&6
  6752. else
  6753. cat >conftest.$ac_ext <<_ACEOF
  6754. /* confdefs.h. */
  6755. _ACEOF
  6756. cat confdefs.h >>conftest.$ac_ext
  6757. cat >>conftest.$ac_ext <<_ACEOF
  6758. /* end confdefs.h. */
  6759. #include <time.h>
  6760. #ifndef tzname /* For SGI. */
  6761. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  6762. #endif
  6763. int
  6764. main ()
  6765. {
  6766. atoi(*tzname);
  6767. ;
  6768. return 0;
  6769. }
  6770. _ACEOF
  6771. rm -f conftest.$ac_objext conftest$ac_exeext
  6772. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6773. (eval $ac_link) 2>conftest.er1
  6774. ac_status=$?
  6775. grep -v '^ *+' conftest.er1 >conftest.err
  6776. rm -f conftest.er1
  6777. cat conftest.err >&5
  6778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6779. (exit $ac_status); } &&
  6780. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6781. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6782. (eval $ac_try) 2>&5
  6783. ac_status=$?
  6784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6785. (exit $ac_status); }; } &&
  6786. { ac_try='test -s conftest$ac_exeext'
  6787. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6788. (eval $ac_try) 2>&5
  6789. ac_status=$?
  6790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6791. (exit $ac_status); }; }; then
  6792. ac_cv_var_tzname=yes
  6793. else
  6794. echo "$as_me: failed program was:" >&5
  6795. sed 's/^/| /' conftest.$ac_ext >&5
  6796. ac_cv_var_tzname=no
  6797. fi
  6798. rm -f conftest.err conftest.$ac_objext \
  6799. conftest$ac_exeext conftest.$ac_ext
  6800. fi
  6801. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  6802. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  6803. if test $ac_cv_var_tzname = yes; then
  6804. cat >>confdefs.h <<\_ACEOF
  6805. #define HAVE_TZNAME 1
  6806. _ACEOF
  6807. fi
  6808. fi
  6809. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  6810. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  6811. if test "${ac_cv_struct_tm+set}" = set; then
  6812. echo $ECHO_N "(cached) $ECHO_C" >&6
  6813. else
  6814. cat >conftest.$ac_ext <<_ACEOF
  6815. /* confdefs.h. */
  6816. _ACEOF
  6817. cat confdefs.h >>conftest.$ac_ext
  6818. cat >>conftest.$ac_ext <<_ACEOF
  6819. /* end confdefs.h. */
  6820. #include <sys/types.h>
  6821. #include <time.h>
  6822. int
  6823. main ()
  6824. {
  6825. struct tm *tp; tp->tm_sec;
  6826. ;
  6827. return 0;
  6828. }
  6829. _ACEOF
  6830. rm -f conftest.$ac_objext
  6831. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6832. (eval $ac_compile) 2>conftest.er1
  6833. ac_status=$?
  6834. grep -v '^ *+' conftest.er1 >conftest.err
  6835. rm -f conftest.er1
  6836. cat conftest.err >&5
  6837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6838. (exit $ac_status); } &&
  6839. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6840. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6841. (eval $ac_try) 2>&5
  6842. ac_status=$?
  6843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6844. (exit $ac_status); }; } &&
  6845. { ac_try='test -s conftest.$ac_objext'
  6846. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6847. (eval $ac_try) 2>&5
  6848. ac_status=$?
  6849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6850. (exit $ac_status); }; }; then
  6851. ac_cv_struct_tm=time.h
  6852. else
  6853. echo "$as_me: failed program was:" >&5
  6854. sed 's/^/| /' conftest.$ac_ext >&5
  6855. ac_cv_struct_tm=sys/time.h
  6856. fi
  6857. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6858. fi
  6859. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  6860. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  6861. if test $ac_cv_struct_tm = sys/time.h; then
  6862. cat >>confdefs.h <<\_ACEOF
  6863. #define TM_IN_SYS_TIME 1
  6864. _ACEOF
  6865. fi
  6866. #checkpoint
  6867. cat >confcache <<\_ACEOF
  6868. # This file is a shell script that caches the results of configure
  6869. # tests run on this system so they can be shared between configure
  6870. # scripts and configure runs, see configure's option --config-cache.
  6871. # It is not useful on other systems. If it contains results you don't
  6872. # want to keep, you may remove or edit it.
  6873. #
  6874. # config.status only pays attention to the cache file if you give it
  6875. # the --recheck option to rerun configure.
  6876. #
  6877. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6878. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6879. # following values.
  6880. _ACEOF
  6881. # The following way of writing the cache mishandles newlines in values,
  6882. # but we know of no workaround that is simple, portable, and efficient.
  6883. # So, don't put newlines in cache variables' values.
  6884. # Ultrix sh set writes to stderr and can't be redirected directly,
  6885. # and sets the high bit in the cache file unless we assign to the vars.
  6886. {
  6887. (set) 2>&1 |
  6888. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6889. *ac_space=\ *)
  6890. # `set' does not quote correctly, so add quotes (double-quote
  6891. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6892. sed -n \
  6893. "s/'/'\\\\''/g;
  6894. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6895. ;;
  6896. *)
  6897. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6898. sed -n \
  6899. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  6900. ;;
  6901. esac;
  6902. } |
  6903. sed '
  6904. t clear
  6905. : clear
  6906. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6907. t end
  6908. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6909. : end' >>confcache
  6910. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  6911. if test -w $cache_file; then
  6912. test "x$cache_file" != "x/dev/null"
  6913. cat confcache >$cache_file
  6914. else
  6915. echo "not updating unwritable cache $cache_file"
  6916. fi
  6917. fi
  6918. rm -f confcache
  6919. # Checks for library functions
  6920. for ac_header in unistd.h vfork.h
  6921. do
  6922. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6923. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6924. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6925. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6926. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6927. echo $ECHO_N "(cached) $ECHO_C" >&6
  6928. fi
  6929. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6930. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6931. else
  6932. # Is the header compilable?
  6933. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6934. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6935. cat >conftest.$ac_ext <<_ACEOF
  6936. /* confdefs.h. */
  6937. _ACEOF
  6938. cat confdefs.h >>conftest.$ac_ext
  6939. cat >>conftest.$ac_ext <<_ACEOF
  6940. /* end confdefs.h. */
  6941. $ac_includes_default
  6942. #include <$ac_header>
  6943. _ACEOF
  6944. rm -f conftest.$ac_objext
  6945. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6946. (eval $ac_compile) 2>conftest.er1
  6947. ac_status=$?
  6948. grep -v '^ *+' conftest.er1 >conftest.err
  6949. rm -f conftest.er1
  6950. cat conftest.err >&5
  6951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6952. (exit $ac_status); } &&
  6953. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6954. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6955. (eval $ac_try) 2>&5
  6956. ac_status=$?
  6957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6958. (exit $ac_status); }; } &&
  6959. { ac_try='test -s conftest.$ac_objext'
  6960. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6961. (eval $ac_try) 2>&5
  6962. ac_status=$?
  6963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6964. (exit $ac_status); }; }; then
  6965. ac_header_compiler=yes
  6966. else
  6967. echo "$as_me: failed program was:" >&5
  6968. sed 's/^/| /' conftest.$ac_ext >&5
  6969. ac_header_compiler=no
  6970. fi
  6971. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6972. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6973. echo "${ECHO_T}$ac_header_compiler" >&6
  6974. # Is the header present?
  6975. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6976. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6977. cat >conftest.$ac_ext <<_ACEOF
  6978. /* confdefs.h. */
  6979. _ACEOF
  6980. cat confdefs.h >>conftest.$ac_ext
  6981. cat >>conftest.$ac_ext <<_ACEOF
  6982. /* end confdefs.h. */
  6983. #include <$ac_header>
  6984. _ACEOF
  6985. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6986. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6987. ac_status=$?
  6988. grep -v '^ *+' conftest.er1 >conftest.err
  6989. rm -f conftest.er1
  6990. cat conftest.err >&5
  6991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6992. (exit $ac_status); } >/dev/null; then
  6993. if test -s conftest.err; then
  6994. ac_cpp_err=$ac_cxx_preproc_warn_flag
  6995. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  6996. else
  6997. ac_cpp_err=
  6998. fi
  6999. else
  7000. ac_cpp_err=yes
  7001. fi
  7002. if test -z "$ac_cpp_err"; then
  7003. ac_header_preproc=yes
  7004. else
  7005. echo "$as_me: failed program was:" >&5
  7006. sed 's/^/| /' conftest.$ac_ext >&5
  7007. ac_header_preproc=no
  7008. fi
  7009. rm -f conftest.err conftest.$ac_ext
  7010. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7011. echo "${ECHO_T}$ac_header_preproc" >&6
  7012. # So? What about this header?
  7013. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7014. yes:no: )
  7015. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7016. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7017. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7018. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7019. ac_header_preproc=yes
  7020. ;;
  7021. no:yes:* )
  7022. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7023. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7024. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7025. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7026. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7027. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7028. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7029. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7030. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7031. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7032. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7033. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7034. (
  7035. cat <<\_ASBOX
  7036. ## ------------------------------------------ ##
  7037. ## Report this to the AC_PACKAGE_NAME lists. ##
  7038. ## ------------------------------------------ ##
  7039. _ASBOX
  7040. ) |
  7041. sed "s/^/$as_me: WARNING: /" >&2
  7042. ;;
  7043. esac
  7044. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7045. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7046. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7047. echo $ECHO_N "(cached) $ECHO_C" >&6
  7048. else
  7049. eval "$as_ac_Header=\$ac_header_preproc"
  7050. fi
  7051. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7052. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7053. fi
  7054. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7055. cat >>confdefs.h <<_ACEOF
  7056. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7057. _ACEOF
  7058. fi
  7059. done
  7060. for ac_func in fork vfork
  7061. do
  7062. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7063. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7064. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7065. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7066. echo $ECHO_N "(cached) $ECHO_C" >&6
  7067. else
  7068. cat >conftest.$ac_ext <<_ACEOF
  7069. /* confdefs.h. */
  7070. _ACEOF
  7071. cat confdefs.h >>conftest.$ac_ext
  7072. cat >>conftest.$ac_ext <<_ACEOF
  7073. /* end confdefs.h. */
  7074. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7075. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7076. #define $ac_func innocuous_$ac_func
  7077. /* System header to define __stub macros and hopefully few prototypes,
  7078. which can conflict with char $ac_func (); below.
  7079. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7080. <limits.h> exists even on freestanding compilers. */
  7081. #ifdef __STDC__
  7082. # include <limits.h>
  7083. #else
  7084. # include <assert.h>
  7085. #endif
  7086. #undef $ac_func
  7087. /* Override any gcc2 internal prototype to avoid an error. */
  7088. #ifdef __cplusplus
  7089. extern "C"
  7090. {
  7091. #endif
  7092. /* We use char because int might match the return type of a gcc2
  7093. builtin and then its argument prototype would still apply. */
  7094. char $ac_func ();
  7095. /* The GNU C library defines this for functions which it implements
  7096. to always fail with ENOSYS. Some functions are actually named
  7097. something starting with __ and the normal name is an alias. */
  7098. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7099. choke me
  7100. #else
  7101. char (*f) () = $ac_func;
  7102. #endif
  7103. #ifdef __cplusplus
  7104. }
  7105. #endif
  7106. int
  7107. main ()
  7108. {
  7109. return f != $ac_func;
  7110. ;
  7111. return 0;
  7112. }
  7113. _ACEOF
  7114. rm -f conftest.$ac_objext conftest$ac_exeext
  7115. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7116. (eval $ac_link) 2>conftest.er1
  7117. ac_status=$?
  7118. grep -v '^ *+' conftest.er1 >conftest.err
  7119. rm -f conftest.er1
  7120. cat conftest.err >&5
  7121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7122. (exit $ac_status); } &&
  7123. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7124. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7125. (eval $ac_try) 2>&5
  7126. ac_status=$?
  7127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7128. (exit $ac_status); }; } &&
  7129. { ac_try='test -s conftest$ac_exeext'
  7130. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7131. (eval $ac_try) 2>&5
  7132. ac_status=$?
  7133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7134. (exit $ac_status); }; }; then
  7135. eval "$as_ac_var=yes"
  7136. else
  7137. echo "$as_me: failed program was:" >&5
  7138. sed 's/^/| /' conftest.$ac_ext >&5
  7139. eval "$as_ac_var=no"
  7140. fi
  7141. rm -f conftest.err conftest.$ac_objext \
  7142. conftest$ac_exeext conftest.$ac_ext
  7143. fi
  7144. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7145. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7146. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7147. cat >>confdefs.h <<_ACEOF
  7148. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7149. _ACEOF
  7150. fi
  7151. done
  7152. if test "x$ac_cv_func_fork" = xyes; then
  7153. echo "$as_me:$LINENO: checking for working fork" >&5
  7154. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  7155. if test "${ac_cv_func_fork_works+set}" = set; then
  7156. echo $ECHO_N "(cached) $ECHO_C" >&6
  7157. else
  7158. if test "$cross_compiling" = yes; then
  7159. ac_cv_func_fork_works=cross
  7160. else
  7161. cat >conftest.$ac_ext <<_ACEOF
  7162. /* By Ruediger Kuhlmann. */
  7163. #include <sys/types.h>
  7164. #if HAVE_UNISTD_H
  7165. # include <unistd.h>
  7166. #endif
  7167. /* Some systems only have a dummy stub for fork() */
  7168. int main ()
  7169. {
  7170. if (fork() < 0)
  7171. exit (1);
  7172. exit (0);
  7173. }
  7174. _ACEOF
  7175. rm -f conftest$ac_exeext
  7176. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7177. (eval $ac_link) 2>&5
  7178. ac_status=$?
  7179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7180. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7181. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7182. (eval $ac_try) 2>&5
  7183. ac_status=$?
  7184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7185. (exit $ac_status); }; }; then
  7186. ac_cv_func_fork_works=yes
  7187. else
  7188. echo "$as_me: program exited with status $ac_status" >&5
  7189. echo "$as_me: failed program was:" >&5
  7190. sed 's/^/| /' conftest.$ac_ext >&5
  7191. ( exit $ac_status )
  7192. ac_cv_func_fork_works=no
  7193. fi
  7194. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7195. fi
  7196. fi
  7197. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  7198. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  7199. else
  7200. ac_cv_func_fork_works=$ac_cv_func_fork
  7201. fi
  7202. if test "x$ac_cv_func_fork_works" = xcross; then
  7203. case $host in
  7204. *-*-amigaos* | *-*-msdosdjgpp*)
  7205. # Override, as these systems have only a dummy fork() stub
  7206. ac_cv_func_fork_works=no
  7207. ;;
  7208. *)
  7209. ac_cv_func_fork_works=yes
  7210. ;;
  7211. esac
  7212. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  7213. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  7214. fi
  7215. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7216. if test "x$ac_cv_func_vfork" = xyes; then
  7217. echo "$as_me:$LINENO: checking for working vfork" >&5
  7218. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  7219. if test "${ac_cv_func_vfork_works+set}" = set; then
  7220. echo $ECHO_N "(cached) $ECHO_C" >&6
  7221. else
  7222. if test "$cross_compiling" = yes; then
  7223. ac_cv_func_vfork_works=cross
  7224. else
  7225. cat >conftest.$ac_ext <<_ACEOF
  7226. /* confdefs.h. */
  7227. _ACEOF
  7228. cat confdefs.h >>conftest.$ac_ext
  7229. cat >>conftest.$ac_ext <<_ACEOF
  7230. /* end confdefs.h. */
  7231. /* Thanks to Paul Eggert for this test. */
  7232. #include <stdio.h>
  7233. #include <stdlib.h>
  7234. #include <sys/types.h>
  7235. #include <sys/stat.h>
  7236. #include <sys/wait.h>
  7237. #if HAVE_UNISTD_H
  7238. # include <unistd.h>
  7239. #endif
  7240. #if HAVE_VFORK_H
  7241. # include <vfork.h>
  7242. #endif
  7243. /* On some sparc systems, changes by the child to local and incoming
  7244. argument registers are propagated back to the parent. The compiler
  7245. is told about this with #include <vfork.h>, but some compilers
  7246. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  7247. static variable whose address is put into a register that is
  7248. clobbered by the vfork. */
  7249. static void
  7250. #ifdef __cplusplus
  7251. sparc_address_test (int arg)
  7252. # else
  7253. sparc_address_test (arg) int arg;
  7254. #endif
  7255. {
  7256. static pid_t child;
  7257. if (!child) {
  7258. child = vfork ();
  7259. if (child < 0) {
  7260. perror ("vfork");
  7261. _exit(2);
  7262. }
  7263. if (!child) {
  7264. arg = getpid();
  7265. write(-1, "", 0);
  7266. _exit (arg);
  7267. }
  7268. }
  7269. }
  7270. int
  7271. main ()
  7272. {
  7273. pid_t parent = getpid ();
  7274. pid_t child;
  7275. sparc_address_test (0);
  7276. child = vfork ();
  7277. if (child == 0) {
  7278. /* Here is another test for sparc vfork register problems. This
  7279. test uses lots of local variables, at least as many local
  7280. variables as main has allocated so far including compiler
  7281. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  7282. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  7283. reuse the register of parent for one of the local variables,
  7284. since it will think that parent can't possibly be used any more
  7285. in this routine. Assigning to the local variable will thus
  7286. munge parent in the parent process. */
  7287. pid_t
  7288. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  7289. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  7290. /* Convince the compiler that p..p7 are live; otherwise, it might
  7291. use the same hardware register for all 8 local variables. */
  7292. if (p != p1 || p != p2 || p != p3 || p != p4
  7293. || p != p5 || p != p6 || p != p7)
  7294. _exit(1);
  7295. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  7296. from child file descriptors. If the child closes a descriptor
  7297. before it execs or exits, this munges the parent's descriptor
  7298. as well. Test for this by closing stdout in the child. */
  7299. _exit(close(fileno(stdout)) != 0);
  7300. } else {
  7301. int status;
  7302. struct stat st;
  7303. while (wait(&status) != child)
  7304. ;
  7305. exit(
  7306. /* Was there some problem with vforking? */
  7307. child < 0
  7308. /* Did the child fail? (This shouldn't happen.) */
  7309. || status
  7310. /* Did the vfork/compiler bug occur? */
  7311. || parent != getpid()
  7312. /* Did the file descriptor bug occur? */
  7313. || fstat(fileno(stdout), &st) != 0
  7314. );
  7315. }
  7316. }
  7317. _ACEOF
  7318. rm -f conftest$ac_exeext
  7319. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7320. (eval $ac_link) 2>&5
  7321. ac_status=$?
  7322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7323. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7324. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7325. (eval $ac_try) 2>&5
  7326. ac_status=$?
  7327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7328. (exit $ac_status); }; }; then
  7329. ac_cv_func_vfork_works=yes
  7330. else
  7331. echo "$as_me: program exited with status $ac_status" >&5
  7332. echo "$as_me: failed program was:" >&5
  7333. sed 's/^/| /' conftest.$ac_ext >&5
  7334. ( exit $ac_status )
  7335. ac_cv_func_vfork_works=no
  7336. fi
  7337. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7338. fi
  7339. fi
  7340. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  7341. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  7342. fi;
  7343. if test "x$ac_cv_func_fork_works" = xcross; then
  7344. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7345. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  7346. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  7347. fi
  7348. if test "x$ac_cv_func_vfork_works" = xyes; then
  7349. cat >>confdefs.h <<\_ACEOF
  7350. #define HAVE_WORKING_VFORK 1
  7351. _ACEOF
  7352. else
  7353. cat >>confdefs.h <<\_ACEOF
  7354. #define vfork fork
  7355. _ACEOF
  7356. fi
  7357. if test "x$ac_cv_func_fork_works" = xyes; then
  7358. cat >>confdefs.h <<\_ACEOF
  7359. #define HAVE_WORKING_FORK 1
  7360. _ACEOF
  7361. fi
  7362. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  7363. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  7364. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  7365. echo $ECHO_N "(cached) $ECHO_C" >&6
  7366. else
  7367. rm -f conftest.sym conftest.file
  7368. echo >conftest.file
  7369. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  7370. if test "$cross_compiling" = yes; then
  7371. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7372. else
  7373. cat >conftest.$ac_ext <<_ACEOF
  7374. /* confdefs.h. */
  7375. _ACEOF
  7376. cat confdefs.h >>conftest.$ac_ext
  7377. cat >>conftest.$ac_ext <<_ACEOF
  7378. /* end confdefs.h. */
  7379. $ac_includes_default
  7380. int
  7381. main ()
  7382. {
  7383. struct stat sbuf;
  7384. /* Linux will dereference the symlink and fail.
  7385. That is better in the sense that it means we will not
  7386. have to compile and use the lstat wrapper. */
  7387. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  7388. ;
  7389. return 0;
  7390. }
  7391. _ACEOF
  7392. rm -f conftest$ac_exeext
  7393. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7394. (eval $ac_link) 2>&5
  7395. ac_status=$?
  7396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7397. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7398. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7399. (eval $ac_try) 2>&5
  7400. ac_status=$?
  7401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7402. (exit $ac_status); }; }; then
  7403. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  7404. else
  7405. echo "$as_me: program exited with status $ac_status" >&5
  7406. echo "$as_me: failed program was:" >&5
  7407. sed 's/^/| /' conftest.$ac_ext >&5
  7408. ( exit $ac_status )
  7409. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7410. fi
  7411. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7412. fi
  7413. else
  7414. # If the `ln -s' command failed, then we probably don't even
  7415. # have an lstat function.
  7416. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7417. fi
  7418. rm -f conftest.sym conftest.file
  7419. fi
  7420. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  7421. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  7422. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  7423. cat >>confdefs.h <<_ACEOF
  7424. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  7425. _ACEOF
  7426. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  7427. case $LIBOBJS in
  7428. "lstat.$ac_objext" | \
  7429. *" lstat.$ac_objext" | \
  7430. "lstat.$ac_objext "* | \
  7431. *" lstat.$ac_objext "* ) ;;
  7432. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  7433. esac
  7434. fi
  7435. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  7436. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  7437. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  7438. echo $ECHO_N "(cached) $ECHO_C" >&6
  7439. else
  7440. if test "$cross_compiling" = yes; then
  7441. ac_cv_func_lstat_empty_string_bug=yes
  7442. else
  7443. cat >conftest.$ac_ext <<_ACEOF
  7444. /* confdefs.h. */
  7445. _ACEOF
  7446. cat confdefs.h >>conftest.$ac_ext
  7447. cat >>conftest.$ac_ext <<_ACEOF
  7448. /* end confdefs.h. */
  7449. $ac_includes_default
  7450. int
  7451. main ()
  7452. {
  7453. struct stat sbuf;
  7454. exit (lstat ("", &sbuf) ? 1 : 0);
  7455. ;
  7456. return 0;
  7457. }
  7458. _ACEOF
  7459. rm -f conftest$ac_exeext
  7460. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7461. (eval $ac_link) 2>&5
  7462. ac_status=$?
  7463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7464. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7465. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7466. (eval $ac_try) 2>&5
  7467. ac_status=$?
  7468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7469. (exit $ac_status); }; }; then
  7470. ac_cv_func_lstat_empty_string_bug=yes
  7471. else
  7472. echo "$as_me: program exited with status $ac_status" >&5
  7473. echo "$as_me: failed program was:" >&5
  7474. sed 's/^/| /' conftest.$ac_ext >&5
  7475. ( exit $ac_status )
  7476. ac_cv_func_lstat_empty_string_bug=no
  7477. fi
  7478. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7479. fi
  7480. fi
  7481. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  7482. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  7483. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  7484. case $LIBOBJS in
  7485. "lstat.$ac_objext" | \
  7486. *" lstat.$ac_objext" | \
  7487. "lstat.$ac_objext "* | \
  7488. *" lstat.$ac_objext "* ) ;;
  7489. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  7490. esac
  7491. cat >>confdefs.h <<_ACEOF
  7492. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  7493. _ACEOF
  7494. fi
  7495. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  7496. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  7497. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  7498. echo $ECHO_N "(cached) $ECHO_C" >&6
  7499. else
  7500. rm -f conftest.sym conftest.file
  7501. echo >conftest.file
  7502. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  7503. if test "$cross_compiling" = yes; then
  7504. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7505. else
  7506. cat >conftest.$ac_ext <<_ACEOF
  7507. /* confdefs.h. */
  7508. _ACEOF
  7509. cat confdefs.h >>conftest.$ac_ext
  7510. cat >>conftest.$ac_ext <<_ACEOF
  7511. /* end confdefs.h. */
  7512. $ac_includes_default
  7513. int
  7514. main ()
  7515. {
  7516. struct stat sbuf;
  7517. /* Linux will dereference the symlink and fail.
  7518. That is better in the sense that it means we will not
  7519. have to compile and use the lstat wrapper. */
  7520. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  7521. ;
  7522. return 0;
  7523. }
  7524. _ACEOF
  7525. rm -f conftest$ac_exeext
  7526. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7527. (eval $ac_link) 2>&5
  7528. ac_status=$?
  7529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7530. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7531. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7532. (eval $ac_try) 2>&5
  7533. ac_status=$?
  7534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7535. (exit $ac_status); }; }; then
  7536. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  7537. else
  7538. echo "$as_me: program exited with status $ac_status" >&5
  7539. echo "$as_me: failed program was:" >&5
  7540. sed 's/^/| /' conftest.$ac_ext >&5
  7541. ( exit $ac_status )
  7542. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7543. fi
  7544. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7545. fi
  7546. else
  7547. # If the `ln -s' command failed, then we probably don't even
  7548. # have an lstat function.
  7549. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7550. fi
  7551. rm -f conftest.sym conftest.file
  7552. fi
  7553. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  7554. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  7555. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  7556. cat >>confdefs.h <<_ACEOF
  7557. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  7558. _ACEOF
  7559. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  7560. case $LIBOBJS in
  7561. "lstat.$ac_objext" | \
  7562. *" lstat.$ac_objext" | \
  7563. "lstat.$ac_objext "* | \
  7564. *" lstat.$ac_objext "* ) ;;
  7565. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  7566. esac
  7567. fi
  7568. for ac_header in stdlib.h
  7569. do
  7570. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7571. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7572. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7573. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7574. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7575. echo $ECHO_N "(cached) $ECHO_C" >&6
  7576. fi
  7577. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7578. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7579. else
  7580. # Is the header compilable?
  7581. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7582. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7583. cat >conftest.$ac_ext <<_ACEOF
  7584. /* confdefs.h. */
  7585. _ACEOF
  7586. cat confdefs.h >>conftest.$ac_ext
  7587. cat >>conftest.$ac_ext <<_ACEOF
  7588. /* end confdefs.h. */
  7589. $ac_includes_default
  7590. #include <$ac_header>
  7591. _ACEOF
  7592. rm -f conftest.$ac_objext
  7593. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7594. (eval $ac_compile) 2>conftest.er1
  7595. ac_status=$?
  7596. grep -v '^ *+' conftest.er1 >conftest.err
  7597. rm -f conftest.er1
  7598. cat conftest.err >&5
  7599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7600. (exit $ac_status); } &&
  7601. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7602. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7603. (eval $ac_try) 2>&5
  7604. ac_status=$?
  7605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7606. (exit $ac_status); }; } &&
  7607. { ac_try='test -s conftest.$ac_objext'
  7608. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7609. (eval $ac_try) 2>&5
  7610. ac_status=$?
  7611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7612. (exit $ac_status); }; }; then
  7613. ac_header_compiler=yes
  7614. else
  7615. echo "$as_me: failed program was:" >&5
  7616. sed 's/^/| /' conftest.$ac_ext >&5
  7617. ac_header_compiler=no
  7618. fi
  7619. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7620. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7621. echo "${ECHO_T}$ac_header_compiler" >&6
  7622. # Is the header present?
  7623. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7624. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7625. cat >conftest.$ac_ext <<_ACEOF
  7626. /* confdefs.h. */
  7627. _ACEOF
  7628. cat confdefs.h >>conftest.$ac_ext
  7629. cat >>conftest.$ac_ext <<_ACEOF
  7630. /* end confdefs.h. */
  7631. #include <$ac_header>
  7632. _ACEOF
  7633. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7634. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7635. ac_status=$?
  7636. grep -v '^ *+' conftest.er1 >conftest.err
  7637. rm -f conftest.er1
  7638. cat conftest.err >&5
  7639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7640. (exit $ac_status); } >/dev/null; then
  7641. if test -s conftest.err; then
  7642. ac_cpp_err=$ac_cxx_preproc_warn_flag
  7643. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  7644. else
  7645. ac_cpp_err=
  7646. fi
  7647. else
  7648. ac_cpp_err=yes
  7649. fi
  7650. if test -z "$ac_cpp_err"; then
  7651. ac_header_preproc=yes
  7652. else
  7653. echo "$as_me: failed program was:" >&5
  7654. sed 's/^/| /' conftest.$ac_ext >&5
  7655. ac_header_preproc=no
  7656. fi
  7657. rm -f conftest.err conftest.$ac_ext
  7658. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7659. echo "${ECHO_T}$ac_header_preproc" >&6
  7660. # So? What about this header?
  7661. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7662. yes:no: )
  7663. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7664. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7665. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7666. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7667. ac_header_preproc=yes
  7668. ;;
  7669. no:yes:* )
  7670. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7671. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7672. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7673. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7674. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7675. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7676. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7677. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7678. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7679. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7680. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7681. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7682. (
  7683. cat <<\_ASBOX
  7684. ## ------------------------------------------ ##
  7685. ## Report this to the AC_PACKAGE_NAME lists. ##
  7686. ## ------------------------------------------ ##
  7687. _ASBOX
  7688. ) |
  7689. sed "s/^/$as_me: WARNING: /" >&2
  7690. ;;
  7691. esac
  7692. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7693. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7694. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7695. echo $ECHO_N "(cached) $ECHO_C" >&6
  7696. else
  7697. eval "$as_ac_Header=\$ac_header_preproc"
  7698. fi
  7699. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7700. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7701. fi
  7702. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7703. cat >>confdefs.h <<_ACEOF
  7704. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7705. _ACEOF
  7706. fi
  7707. done
  7708. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  7709. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  7710. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  7711. echo $ECHO_N "(cached) $ECHO_C" >&6
  7712. else
  7713. if test "$cross_compiling" = yes; then
  7714. ac_cv_func_malloc_0_nonnull=no
  7715. else
  7716. cat >conftest.$ac_ext <<_ACEOF
  7717. /* confdefs.h. */
  7718. _ACEOF
  7719. cat confdefs.h >>conftest.$ac_ext
  7720. cat >>conftest.$ac_ext <<_ACEOF
  7721. /* end confdefs.h. */
  7722. #if STDC_HEADERS || HAVE_STDLIB_H
  7723. # include <stdlib.h>
  7724. #else
  7725. char *malloc ();
  7726. #endif
  7727. int
  7728. main ()
  7729. {
  7730. exit (malloc (0) ? 0 : 1);
  7731. ;
  7732. return 0;
  7733. }
  7734. _ACEOF
  7735. rm -f conftest$ac_exeext
  7736. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7737. (eval $ac_link) 2>&5
  7738. ac_status=$?
  7739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7740. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7741. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7742. (eval $ac_try) 2>&5
  7743. ac_status=$?
  7744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7745. (exit $ac_status); }; }; then
  7746. ac_cv_func_malloc_0_nonnull=yes
  7747. else
  7748. echo "$as_me: program exited with status $ac_status" >&5
  7749. echo "$as_me: failed program was:" >&5
  7750. sed 's/^/| /' conftest.$ac_ext >&5
  7751. ( exit $ac_status )
  7752. ac_cv_func_malloc_0_nonnull=no
  7753. fi
  7754. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7755. fi
  7756. fi
  7757. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  7758. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  7759. if test $ac_cv_func_malloc_0_nonnull = yes; then
  7760. cat >>confdefs.h <<\_ACEOF
  7761. #define HAVE_MALLOC 1
  7762. _ACEOF
  7763. else
  7764. cat >>confdefs.h <<\_ACEOF
  7765. #define HAVE_MALLOC 0
  7766. _ACEOF
  7767. case $LIBOBJS in
  7768. "malloc.$ac_objext" | \
  7769. *" malloc.$ac_objext" | \
  7770. "malloc.$ac_objext "* | \
  7771. *" malloc.$ac_objext "* ) ;;
  7772. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  7773. esac
  7774. cat >>confdefs.h <<\_ACEOF
  7775. #define malloc rpl_malloc
  7776. _ACEOF
  7777. fi
  7778. for ac_header in stdlib.h sys/time.h unistd.h
  7779. do
  7780. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7781. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7782. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7783. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7784. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7785. echo $ECHO_N "(cached) $ECHO_C" >&6
  7786. fi
  7787. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7788. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7789. else
  7790. # Is the header compilable?
  7791. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7792. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7793. cat >conftest.$ac_ext <<_ACEOF
  7794. /* confdefs.h. */
  7795. _ACEOF
  7796. cat confdefs.h >>conftest.$ac_ext
  7797. cat >>conftest.$ac_ext <<_ACEOF
  7798. /* end confdefs.h. */
  7799. $ac_includes_default
  7800. #include <$ac_header>
  7801. _ACEOF
  7802. rm -f conftest.$ac_objext
  7803. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7804. (eval $ac_compile) 2>conftest.er1
  7805. ac_status=$?
  7806. grep -v '^ *+' conftest.er1 >conftest.err
  7807. rm -f conftest.er1
  7808. cat conftest.err >&5
  7809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7810. (exit $ac_status); } &&
  7811. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7812. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7813. (eval $ac_try) 2>&5
  7814. ac_status=$?
  7815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7816. (exit $ac_status); }; } &&
  7817. { ac_try='test -s conftest.$ac_objext'
  7818. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7819. (eval $ac_try) 2>&5
  7820. ac_status=$?
  7821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7822. (exit $ac_status); }; }; then
  7823. ac_header_compiler=yes
  7824. else
  7825. echo "$as_me: failed program was:" >&5
  7826. sed 's/^/| /' conftest.$ac_ext >&5
  7827. ac_header_compiler=no
  7828. fi
  7829. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7830. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7831. echo "${ECHO_T}$ac_header_compiler" >&6
  7832. # Is the header present?
  7833. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7834. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7835. cat >conftest.$ac_ext <<_ACEOF
  7836. /* confdefs.h. */
  7837. _ACEOF
  7838. cat confdefs.h >>conftest.$ac_ext
  7839. cat >>conftest.$ac_ext <<_ACEOF
  7840. /* end confdefs.h. */
  7841. #include <$ac_header>
  7842. _ACEOF
  7843. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7844. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7845. ac_status=$?
  7846. grep -v '^ *+' conftest.er1 >conftest.err
  7847. rm -f conftest.er1
  7848. cat conftest.err >&5
  7849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7850. (exit $ac_status); } >/dev/null; then
  7851. if test -s conftest.err; then
  7852. ac_cpp_err=$ac_cxx_preproc_warn_flag
  7853. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  7854. else
  7855. ac_cpp_err=
  7856. fi
  7857. else
  7858. ac_cpp_err=yes
  7859. fi
  7860. if test -z "$ac_cpp_err"; then
  7861. ac_header_preproc=yes
  7862. else
  7863. echo "$as_me: failed program was:" >&5
  7864. sed 's/^/| /' conftest.$ac_ext >&5
  7865. ac_header_preproc=no
  7866. fi
  7867. rm -f conftest.err conftest.$ac_ext
  7868. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7869. echo "${ECHO_T}$ac_header_preproc" >&6
  7870. # So? What about this header?
  7871. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7872. yes:no: )
  7873. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7874. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7875. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7876. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7877. ac_header_preproc=yes
  7878. ;;
  7879. no:yes:* )
  7880. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7881. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7882. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7883. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7884. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7885. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7886. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7887. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7888. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7889. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7890. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7891. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7892. (
  7893. cat <<\_ASBOX
  7894. ## ------------------------------------------ ##
  7895. ## Report this to the AC_PACKAGE_NAME lists. ##
  7896. ## ------------------------------------------ ##
  7897. _ASBOX
  7898. ) |
  7899. sed "s/^/$as_me: WARNING: /" >&2
  7900. ;;
  7901. esac
  7902. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7903. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7904. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7905. echo $ECHO_N "(cached) $ECHO_C" >&6
  7906. else
  7907. eval "$as_ac_Header=\$ac_header_preproc"
  7908. fi
  7909. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7910. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7911. fi
  7912. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7913. cat >>confdefs.h <<_ACEOF
  7914. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7915. _ACEOF
  7916. fi
  7917. done
  7918. for ac_func in alarm
  7919. do
  7920. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7921. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7922. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7923. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7924. echo $ECHO_N "(cached) $ECHO_C" >&6
  7925. else
  7926. cat >conftest.$ac_ext <<_ACEOF
  7927. /* confdefs.h. */
  7928. _ACEOF
  7929. cat confdefs.h >>conftest.$ac_ext
  7930. cat >>conftest.$ac_ext <<_ACEOF
  7931. /* end confdefs.h. */
  7932. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7933. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7934. #define $ac_func innocuous_$ac_func
  7935. /* System header to define __stub macros and hopefully few prototypes,
  7936. which can conflict with char $ac_func (); below.
  7937. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7938. <limits.h> exists even on freestanding compilers. */
  7939. #ifdef __STDC__
  7940. # include <limits.h>
  7941. #else
  7942. # include <assert.h>
  7943. #endif
  7944. #undef $ac_func
  7945. /* Override any gcc2 internal prototype to avoid an error. */
  7946. #ifdef __cplusplus
  7947. extern "C"
  7948. {
  7949. #endif
  7950. /* We use char because int might match the return type of a gcc2
  7951. builtin and then its argument prototype would still apply. */
  7952. char $ac_func ();
  7953. /* The GNU C library defines this for functions which it implements
  7954. to always fail with ENOSYS. Some functions are actually named
  7955. something starting with __ and the normal name is an alias. */
  7956. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7957. choke me
  7958. #else
  7959. char (*f) () = $ac_func;
  7960. #endif
  7961. #ifdef __cplusplus
  7962. }
  7963. #endif
  7964. int
  7965. main ()
  7966. {
  7967. return f != $ac_func;
  7968. ;
  7969. return 0;
  7970. }
  7971. _ACEOF
  7972. rm -f conftest.$ac_objext conftest$ac_exeext
  7973. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7974. (eval $ac_link) 2>conftest.er1
  7975. ac_status=$?
  7976. grep -v '^ *+' conftest.er1 >conftest.err
  7977. rm -f conftest.er1
  7978. cat conftest.err >&5
  7979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7980. (exit $ac_status); } &&
  7981. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7982. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7983. (eval $ac_try) 2>&5
  7984. ac_status=$?
  7985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7986. (exit $ac_status); }; } &&
  7987. { ac_try='test -s conftest$ac_exeext'
  7988. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7989. (eval $ac_try) 2>&5
  7990. ac_status=$?
  7991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7992. (exit $ac_status); }; }; then
  7993. eval "$as_ac_var=yes"
  7994. else
  7995. echo "$as_me: failed program was:" >&5
  7996. sed 's/^/| /' conftest.$ac_ext >&5
  7997. eval "$as_ac_var=no"
  7998. fi
  7999. rm -f conftest.err conftest.$ac_objext \
  8000. conftest$ac_exeext conftest.$ac_ext
  8001. fi
  8002. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8003. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8004. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8005. cat >>confdefs.h <<_ACEOF
  8006. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8007. _ACEOF
  8008. fi
  8009. done
  8010. echo "$as_me:$LINENO: checking for working mktime" >&5
  8011. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  8012. if test "${ac_cv_func_working_mktime+set}" = set; then
  8013. echo $ECHO_N "(cached) $ECHO_C" >&6
  8014. else
  8015. if test "$cross_compiling" = yes; then
  8016. ac_cv_func_working_mktime=no
  8017. else
  8018. cat >conftest.$ac_ext <<_ACEOF
  8019. /* confdefs.h. */
  8020. _ACEOF
  8021. cat confdefs.h >>conftest.$ac_ext
  8022. cat >>conftest.$ac_ext <<_ACEOF
  8023. /* end confdefs.h. */
  8024. /* Test program from Paul Eggert and Tony Leneis. */
  8025. #if TIME_WITH_SYS_TIME
  8026. # include <sys/time.h>
  8027. # include <time.h>
  8028. #else
  8029. # if HAVE_SYS_TIME_H
  8030. # include <sys/time.h>
  8031. # else
  8032. # include <time.h>
  8033. # endif
  8034. #endif
  8035. #if HAVE_STDLIB_H
  8036. # include <stdlib.h>
  8037. #endif
  8038. #if HAVE_UNISTD_H
  8039. # include <unistd.h>
  8040. #endif
  8041. #if !HAVE_ALARM
  8042. # define alarm(X) /* empty */
  8043. #endif
  8044. /* Work around redefinition to rpl_putenv by other config tests. */
  8045. #undef putenv
  8046. static time_t time_t_max;
  8047. static time_t time_t_min;
  8048. /* Values we'll use to set the TZ environment variable. */
  8049. static char *tz_strings[] = {
  8050. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  8051. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  8052. };
  8053. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  8054. /* Fail if mktime fails to convert a date in the spring-forward gap.
  8055. Based on a problem report from Andreas Jaeger. */
  8056. static void
  8057. spring_forward_gap ()
  8058. {
  8059. /* glibc (up to about 1998-10-07) failed this test. */
  8060. struct tm tm;
  8061. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  8062. instead of "TZ=America/Vancouver" in order to detect the bug even
  8063. on systems that don't support the Olson extension, or don't have the
  8064. full zoneinfo tables installed. */
  8065. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  8066. tm.tm_year = 98;
  8067. tm.tm_mon = 3;
  8068. tm.tm_mday = 5;
  8069. tm.tm_hour = 2;
  8070. tm.tm_min = 0;
  8071. tm.tm_sec = 0;
  8072. tm.tm_isdst = -1;
  8073. if (mktime (&tm) == (time_t)-1)
  8074. exit (1);
  8075. }
  8076. static void
  8077. mktime_test1 (now)
  8078. time_t now;
  8079. {
  8080. struct tm *lt;
  8081. if ((lt = localtime (&now)) && mktime (lt) != now)
  8082. exit (1);
  8083. }
  8084. static void
  8085. mktime_test (now)
  8086. time_t now;
  8087. {
  8088. mktime_test1 (now);
  8089. mktime_test1 ((time_t) (time_t_max - now));
  8090. mktime_test1 ((time_t) (time_t_min + now));
  8091. }
  8092. static void
  8093. irix_6_4_bug ()
  8094. {
  8095. /* Based on code from Ariel Faigon. */
  8096. struct tm tm;
  8097. tm.tm_year = 96;
  8098. tm.tm_mon = 3;
  8099. tm.tm_mday = 0;
  8100. tm.tm_hour = 0;
  8101. tm.tm_min = 0;
  8102. tm.tm_sec = 0;
  8103. tm.tm_isdst = -1;
  8104. mktime (&tm);
  8105. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  8106. exit (1);
  8107. }
  8108. static void
  8109. bigtime_test (j)
  8110. int j;
  8111. {
  8112. struct tm tm;
  8113. time_t now;
  8114. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  8115. now = mktime (&tm);
  8116. if (now != (time_t) -1)
  8117. {
  8118. struct tm *lt = localtime (&now);
  8119. if (! (lt
  8120. && lt->tm_year == tm.tm_year
  8121. && lt->tm_mon == tm.tm_mon
  8122. && lt->tm_mday == tm.tm_mday
  8123. && lt->tm_hour == tm.tm_hour
  8124. && lt->tm_min == tm.tm_min
  8125. && lt->tm_sec == tm.tm_sec
  8126. && lt->tm_yday == tm.tm_yday
  8127. && lt->tm_wday == tm.tm_wday
  8128. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  8129. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  8130. exit (1);
  8131. }
  8132. }
  8133. int
  8134. main ()
  8135. {
  8136. time_t t, delta;
  8137. int i, j;
  8138. /* This test makes some buggy mktime implementations loop.
  8139. Give up after 60 seconds; a mktime slower than that
  8140. isn't worth using anyway. */
  8141. alarm (60);
  8142. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  8143. continue;
  8144. time_t_max--;
  8145. if ((time_t) -1 < 0)
  8146. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  8147. continue;
  8148. delta = time_t_max / 997; /* a suitable prime number */
  8149. for (i = 0; i < N_STRINGS; i++)
  8150. {
  8151. if (tz_strings[i])
  8152. putenv (tz_strings[i]);
  8153. for (t = 0; t <= time_t_max - delta; t += delta)
  8154. mktime_test (t);
  8155. mktime_test ((time_t) 1);
  8156. mktime_test ((time_t) (60 * 60));
  8157. mktime_test ((time_t) (60 * 60 * 24));
  8158. for (j = 1; 0 < j; j *= 2)
  8159. bigtime_test (j);
  8160. bigtime_test (j - 1);
  8161. }
  8162. irix_6_4_bug ();
  8163. spring_forward_gap ();
  8164. exit (0);
  8165. }
  8166. _ACEOF
  8167. rm -f conftest$ac_exeext
  8168. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8169. (eval $ac_link) 2>&5
  8170. ac_status=$?
  8171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8172. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8173. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8174. (eval $ac_try) 2>&5
  8175. ac_status=$?
  8176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8177. (exit $ac_status); }; }; then
  8178. ac_cv_func_working_mktime=yes
  8179. else
  8180. echo "$as_me: program exited with status $ac_status" >&5
  8181. echo "$as_me: failed program was:" >&5
  8182. sed 's/^/| /' conftest.$ac_ext >&5
  8183. ( exit $ac_status )
  8184. ac_cv_func_working_mktime=no
  8185. fi
  8186. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8187. fi
  8188. fi
  8189. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  8190. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  8191. if test $ac_cv_func_working_mktime = no; then
  8192. case $LIBOBJS in
  8193. "mktime.$ac_objext" | \
  8194. *" mktime.$ac_objext" | \
  8195. "mktime.$ac_objext "* | \
  8196. *" mktime.$ac_objext "* ) ;;
  8197. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  8198. esac
  8199. fi
  8200. for ac_header in stdlib.h unistd.h
  8201. do
  8202. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8203. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8204. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8205. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8206. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8207. echo $ECHO_N "(cached) $ECHO_C" >&6
  8208. fi
  8209. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8210. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8211. else
  8212. # Is the header compilable?
  8213. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8214. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8215. cat >conftest.$ac_ext <<_ACEOF
  8216. /* confdefs.h. */
  8217. _ACEOF
  8218. cat confdefs.h >>conftest.$ac_ext
  8219. cat >>conftest.$ac_ext <<_ACEOF
  8220. /* end confdefs.h. */
  8221. $ac_includes_default
  8222. #include <$ac_header>
  8223. _ACEOF
  8224. rm -f conftest.$ac_objext
  8225. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8226. (eval $ac_compile) 2>conftest.er1
  8227. ac_status=$?
  8228. grep -v '^ *+' conftest.er1 >conftest.err
  8229. rm -f conftest.er1
  8230. cat conftest.err >&5
  8231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8232. (exit $ac_status); } &&
  8233. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8234. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8235. (eval $ac_try) 2>&5
  8236. ac_status=$?
  8237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8238. (exit $ac_status); }; } &&
  8239. { ac_try='test -s conftest.$ac_objext'
  8240. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8241. (eval $ac_try) 2>&5
  8242. ac_status=$?
  8243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8244. (exit $ac_status); }; }; then
  8245. ac_header_compiler=yes
  8246. else
  8247. echo "$as_me: failed program was:" >&5
  8248. sed 's/^/| /' conftest.$ac_ext >&5
  8249. ac_header_compiler=no
  8250. fi
  8251. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8252. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8253. echo "${ECHO_T}$ac_header_compiler" >&6
  8254. # Is the header present?
  8255. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8256. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8257. cat >conftest.$ac_ext <<_ACEOF
  8258. /* confdefs.h. */
  8259. _ACEOF
  8260. cat confdefs.h >>conftest.$ac_ext
  8261. cat >>conftest.$ac_ext <<_ACEOF
  8262. /* end confdefs.h. */
  8263. #include <$ac_header>
  8264. _ACEOF
  8265. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8266. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8267. ac_status=$?
  8268. grep -v '^ *+' conftest.er1 >conftest.err
  8269. rm -f conftest.er1
  8270. cat conftest.err >&5
  8271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8272. (exit $ac_status); } >/dev/null; then
  8273. if test -s conftest.err; then
  8274. ac_cpp_err=$ac_cxx_preproc_warn_flag
  8275. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  8276. else
  8277. ac_cpp_err=
  8278. fi
  8279. else
  8280. ac_cpp_err=yes
  8281. fi
  8282. if test -z "$ac_cpp_err"; then
  8283. ac_header_preproc=yes
  8284. else
  8285. echo "$as_me: failed program was:" >&5
  8286. sed 's/^/| /' conftest.$ac_ext >&5
  8287. ac_header_preproc=no
  8288. fi
  8289. rm -f conftest.err conftest.$ac_ext
  8290. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8291. echo "${ECHO_T}$ac_header_preproc" >&6
  8292. # So? What about this header?
  8293. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8294. yes:no: )
  8295. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8296. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8297. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8298. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8299. ac_header_preproc=yes
  8300. ;;
  8301. no:yes:* )
  8302. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8303. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8304. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8305. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8306. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8307. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8308. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8309. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8310. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8311. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8312. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8313. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8314. (
  8315. cat <<\_ASBOX
  8316. ## ------------------------------------------ ##
  8317. ## Report this to the AC_PACKAGE_NAME lists. ##
  8318. ## ------------------------------------------ ##
  8319. _ASBOX
  8320. ) |
  8321. sed "s/^/$as_me: WARNING: /" >&2
  8322. ;;
  8323. esac
  8324. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8325. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8326. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8327. echo $ECHO_N "(cached) $ECHO_C" >&6
  8328. else
  8329. eval "$as_ac_Header=\$ac_header_preproc"
  8330. fi
  8331. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8332. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8333. fi
  8334. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8335. cat >>confdefs.h <<_ACEOF
  8336. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8337. _ACEOF
  8338. fi
  8339. done
  8340. for ac_func in getpagesize
  8341. do
  8342. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8343. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8344. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8345. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8346. echo $ECHO_N "(cached) $ECHO_C" >&6
  8347. else
  8348. cat >conftest.$ac_ext <<_ACEOF
  8349. /* confdefs.h. */
  8350. _ACEOF
  8351. cat confdefs.h >>conftest.$ac_ext
  8352. cat >>conftest.$ac_ext <<_ACEOF
  8353. /* end confdefs.h. */
  8354. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8355. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8356. #define $ac_func innocuous_$ac_func
  8357. /* System header to define __stub macros and hopefully few prototypes,
  8358. which can conflict with char $ac_func (); below.
  8359. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8360. <limits.h> exists even on freestanding compilers. */
  8361. #ifdef __STDC__
  8362. # include <limits.h>
  8363. #else
  8364. # include <assert.h>
  8365. #endif
  8366. #undef $ac_func
  8367. /* Override any gcc2 internal prototype to avoid an error. */
  8368. #ifdef __cplusplus
  8369. extern "C"
  8370. {
  8371. #endif
  8372. /* We use char because int might match the return type of a gcc2
  8373. builtin and then its argument prototype would still apply. */
  8374. char $ac_func ();
  8375. /* The GNU C library defines this for functions which it implements
  8376. to always fail with ENOSYS. Some functions are actually named
  8377. something starting with __ and the normal name is an alias. */
  8378. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8379. choke me
  8380. #else
  8381. char (*f) () = $ac_func;
  8382. #endif
  8383. #ifdef __cplusplus
  8384. }
  8385. #endif
  8386. int
  8387. main ()
  8388. {
  8389. return f != $ac_func;
  8390. ;
  8391. return 0;
  8392. }
  8393. _ACEOF
  8394. rm -f conftest.$ac_objext conftest$ac_exeext
  8395. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8405. (eval $ac_try) 2>&5
  8406. ac_status=$?
  8407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8408. (exit $ac_status); }; } &&
  8409. { ac_try='test -s conftest$ac_exeext'
  8410. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8411. (eval $ac_try) 2>&5
  8412. ac_status=$?
  8413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8414. (exit $ac_status); }; }; then
  8415. eval "$as_ac_var=yes"
  8416. else
  8417. echo "$as_me: failed program was:" >&5
  8418. sed 's/^/| /' conftest.$ac_ext >&5
  8419. eval "$as_ac_var=no"
  8420. fi
  8421. rm -f conftest.err conftest.$ac_objext \
  8422. conftest$ac_exeext conftest.$ac_ext
  8423. fi
  8424. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8425. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8426. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8427. cat >>confdefs.h <<_ACEOF
  8428. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8429. _ACEOF
  8430. fi
  8431. done
  8432. echo "$as_me:$LINENO: checking for working mmap" >&5
  8433. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  8434. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  8435. echo $ECHO_N "(cached) $ECHO_C" >&6
  8436. else
  8437. if test "$cross_compiling" = yes; then
  8438. ac_cv_func_mmap_fixed_mapped=no
  8439. else
  8440. cat >conftest.$ac_ext <<_ACEOF
  8441. /* confdefs.h. */
  8442. _ACEOF
  8443. cat confdefs.h >>conftest.$ac_ext
  8444. cat >>conftest.$ac_ext <<_ACEOF
  8445. /* end confdefs.h. */
  8446. $ac_includes_default
  8447. /* malloc might have been renamed as rpl_malloc. */
  8448. #undef malloc
  8449. /* Thanks to Mike Haertel and Jim Avera for this test.
  8450. Here is a matrix of mmap possibilities:
  8451. mmap private not fixed
  8452. mmap private fixed at somewhere currently unmapped
  8453. mmap private fixed at somewhere already mapped
  8454. mmap shared not fixed
  8455. mmap shared fixed at somewhere currently unmapped
  8456. mmap shared fixed at somewhere already mapped
  8457. For private mappings, we should verify that changes cannot be read()
  8458. back from the file, nor mmap's back from the file at a different
  8459. address. (There have been systems where private was not correctly
  8460. implemented like the infamous i386 svr4.0, and systems where the
  8461. VM page cache was not coherent with the file system buffer cache
  8462. like early versions of FreeBSD and possibly contemporary NetBSD.)
  8463. For shared mappings, we should conversely verify that changes get
  8464. propagated back to all the places they're supposed to be.
  8465. Grep wants private fixed already mapped.
  8466. The main things grep needs to know about mmap are:
  8467. * does it exist and is it safe to write into the mmap'd area
  8468. * how to use it (BSD variants) */
  8469. #include <fcntl.h>
  8470. #include <sys/mman.h>
  8471. #if !STDC_HEADERS && !HAVE_STDLIB_H
  8472. char *malloc ();
  8473. #endif
  8474. /* This mess was copied from the GNU getpagesize.h. */
  8475. #if !HAVE_GETPAGESIZE
  8476. /* Assume that all systems that can run configure have sys/param.h. */
  8477. # if !HAVE_SYS_PARAM_H
  8478. # define HAVE_SYS_PARAM_H 1
  8479. # endif
  8480. # ifdef _SC_PAGESIZE
  8481. # define getpagesize() sysconf(_SC_PAGESIZE)
  8482. # else /* no _SC_PAGESIZE */
  8483. # if HAVE_SYS_PARAM_H
  8484. # include <sys/param.h>
  8485. # ifdef EXEC_PAGESIZE
  8486. # define getpagesize() EXEC_PAGESIZE
  8487. # else /* no EXEC_PAGESIZE */
  8488. # ifdef NBPG
  8489. # define getpagesize() NBPG * CLSIZE
  8490. # ifndef CLSIZE
  8491. # define CLSIZE 1
  8492. # endif /* no CLSIZE */
  8493. # else /* no NBPG */
  8494. # ifdef NBPC
  8495. # define getpagesize() NBPC
  8496. # else /* no NBPC */
  8497. # ifdef PAGESIZE
  8498. # define getpagesize() PAGESIZE
  8499. # endif /* PAGESIZE */
  8500. # endif /* no NBPC */
  8501. # endif /* no NBPG */
  8502. # endif /* no EXEC_PAGESIZE */
  8503. # else /* no HAVE_SYS_PARAM_H */
  8504. # define getpagesize() 8192 /* punt totally */
  8505. # endif /* no HAVE_SYS_PARAM_H */
  8506. # endif /* no _SC_PAGESIZE */
  8507. #endif /* no HAVE_GETPAGESIZE */
  8508. int
  8509. main ()
  8510. {
  8511. char *data, *data2, *data3;
  8512. int i, pagesize;
  8513. int fd;
  8514. pagesize = getpagesize ();
  8515. /* First, make a file with some known garbage in it. */
  8516. data = (char *) malloc (pagesize);
  8517. if (!data)
  8518. exit (1);
  8519. for (i = 0; i < pagesize; ++i)
  8520. *(data + i) = rand ();
  8521. umask (0);
  8522. fd = creat ("conftest.mmap", 0600);
  8523. if (fd < 0)
  8524. exit (1);
  8525. if (write (fd, data, pagesize) != pagesize)
  8526. exit (1);
  8527. close (fd);
  8528. /* Next, try to mmap the file at a fixed address which already has
  8529. something else allocated at it. If we can, also make sure that
  8530. we see the same garbage. */
  8531. fd = open ("conftest.mmap", O_RDWR);
  8532. if (fd < 0)
  8533. exit (1);
  8534. data2 = (char *) malloc (2 * pagesize);
  8535. if (!data2)
  8536. exit (1);
  8537. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  8538. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  8539. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  8540. exit (1);
  8541. for (i = 0; i < pagesize; ++i)
  8542. if (*(data + i) != *(data2 + i))
  8543. exit (1);
  8544. /* Finally, make sure that changes to the mapped area do not
  8545. percolate back to the file as seen by read(). (This is a bug on
  8546. some variants of i386 svr4.0.) */
  8547. for (i = 0; i < pagesize; ++i)
  8548. *(data2 + i) = *(data2 + i) + 1;
  8549. data3 = (char *) malloc (pagesize);
  8550. if (!data3)
  8551. exit (1);
  8552. if (read (fd, data3, pagesize) != pagesize)
  8553. exit (1);
  8554. for (i = 0; i < pagesize; ++i)
  8555. if (*(data + i) != *(data3 + i))
  8556. exit (1);
  8557. close (fd);
  8558. exit (0);
  8559. }
  8560. _ACEOF
  8561. rm -f conftest$ac_exeext
  8562. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8563. (eval $ac_link) 2>&5
  8564. ac_status=$?
  8565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8566. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8567. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8568. (eval $ac_try) 2>&5
  8569. ac_status=$?
  8570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8571. (exit $ac_status); }; }; then
  8572. ac_cv_func_mmap_fixed_mapped=yes
  8573. else
  8574. echo "$as_me: program exited with status $ac_status" >&5
  8575. echo "$as_me: failed program was:" >&5
  8576. sed 's/^/| /' conftest.$ac_ext >&5
  8577. ( exit $ac_status )
  8578. ac_cv_func_mmap_fixed_mapped=no
  8579. fi
  8580. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8581. fi
  8582. fi
  8583. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  8584. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  8585. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  8586. cat >>confdefs.h <<\_ACEOF
  8587. #define HAVE_MMAP 1
  8588. _ACEOF
  8589. fi
  8590. rm -f conftest.mmap
  8591. for ac_header in stdlib.h
  8592. do
  8593. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8594. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8595. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8596. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8597. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8598. echo $ECHO_N "(cached) $ECHO_C" >&6
  8599. fi
  8600. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8601. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8602. else
  8603. # Is the header compilable?
  8604. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8605. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8606. cat >conftest.$ac_ext <<_ACEOF
  8607. /* confdefs.h. */
  8608. _ACEOF
  8609. cat confdefs.h >>conftest.$ac_ext
  8610. cat >>conftest.$ac_ext <<_ACEOF
  8611. /* end confdefs.h. */
  8612. $ac_includes_default
  8613. #include <$ac_header>
  8614. _ACEOF
  8615. rm -f conftest.$ac_objext
  8616. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8617. (eval $ac_compile) 2>conftest.er1
  8618. ac_status=$?
  8619. grep -v '^ *+' conftest.er1 >conftest.err
  8620. rm -f conftest.er1
  8621. cat conftest.err >&5
  8622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8623. (exit $ac_status); } &&
  8624. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8625. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8626. (eval $ac_try) 2>&5
  8627. ac_status=$?
  8628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8629. (exit $ac_status); }; } &&
  8630. { ac_try='test -s conftest.$ac_objext'
  8631. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8632. (eval $ac_try) 2>&5
  8633. ac_status=$?
  8634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8635. (exit $ac_status); }; }; then
  8636. ac_header_compiler=yes
  8637. else
  8638. echo "$as_me: failed program was:" >&5
  8639. sed 's/^/| /' conftest.$ac_ext >&5
  8640. ac_header_compiler=no
  8641. fi
  8642. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8643. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8644. echo "${ECHO_T}$ac_header_compiler" >&6
  8645. # Is the header present?
  8646. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8647. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8648. cat >conftest.$ac_ext <<_ACEOF
  8649. /* confdefs.h. */
  8650. _ACEOF
  8651. cat confdefs.h >>conftest.$ac_ext
  8652. cat >>conftest.$ac_ext <<_ACEOF
  8653. /* end confdefs.h. */
  8654. #include <$ac_header>
  8655. _ACEOF
  8656. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8657. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8658. ac_status=$?
  8659. grep -v '^ *+' conftest.er1 >conftest.err
  8660. rm -f conftest.er1
  8661. cat conftest.err >&5
  8662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8663. (exit $ac_status); } >/dev/null; then
  8664. if test -s conftest.err; then
  8665. ac_cpp_err=$ac_cxx_preproc_warn_flag
  8666. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  8667. else
  8668. ac_cpp_err=
  8669. fi
  8670. else
  8671. ac_cpp_err=yes
  8672. fi
  8673. if test -z "$ac_cpp_err"; then
  8674. ac_header_preproc=yes
  8675. else
  8676. echo "$as_me: failed program was:" >&5
  8677. sed 's/^/| /' conftest.$ac_ext >&5
  8678. ac_header_preproc=no
  8679. fi
  8680. rm -f conftest.err conftest.$ac_ext
  8681. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8682. echo "${ECHO_T}$ac_header_preproc" >&6
  8683. # So? What about this header?
  8684. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8685. yes:no: )
  8686. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8687. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8688. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8689. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8690. ac_header_preproc=yes
  8691. ;;
  8692. no:yes:* )
  8693. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8694. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8695. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8696. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8697. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8698. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8699. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8700. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8701. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8702. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8703. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8704. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8705. (
  8706. cat <<\_ASBOX
  8707. ## ------------------------------------------ ##
  8708. ## Report this to the AC_PACKAGE_NAME lists. ##
  8709. ## ------------------------------------------ ##
  8710. _ASBOX
  8711. ) |
  8712. sed "s/^/$as_me: WARNING: /" >&2
  8713. ;;
  8714. esac
  8715. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8716. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8717. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8718. echo $ECHO_N "(cached) $ECHO_C" >&6
  8719. else
  8720. eval "$as_ac_Header=\$ac_header_preproc"
  8721. fi
  8722. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8723. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8724. fi
  8725. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8726. cat >>confdefs.h <<_ACEOF
  8727. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8728. _ACEOF
  8729. fi
  8730. done
  8731. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  8732. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  8733. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  8734. echo $ECHO_N "(cached) $ECHO_C" >&6
  8735. else
  8736. if test "$cross_compiling" = yes; then
  8737. ac_cv_func_realloc_0_nonnull=no
  8738. else
  8739. cat >conftest.$ac_ext <<_ACEOF
  8740. /* confdefs.h. */
  8741. _ACEOF
  8742. cat confdefs.h >>conftest.$ac_ext
  8743. cat >>conftest.$ac_ext <<_ACEOF
  8744. /* end confdefs.h. */
  8745. #if STDC_HEADERS || HAVE_STDLIB_H
  8746. # include <stdlib.h>
  8747. #else
  8748. char *realloc ();
  8749. #endif
  8750. int
  8751. main ()
  8752. {
  8753. exit (realloc (0, 0) ? 0 : 1);
  8754. ;
  8755. return 0;
  8756. }
  8757. _ACEOF
  8758. rm -f conftest$ac_exeext
  8759. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8760. (eval $ac_link) 2>&5
  8761. ac_status=$?
  8762. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8763. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8764. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8765. (eval $ac_try) 2>&5
  8766. ac_status=$?
  8767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8768. (exit $ac_status); }; }; then
  8769. ac_cv_func_realloc_0_nonnull=yes
  8770. else
  8771. echo "$as_me: program exited with status $ac_status" >&5
  8772. echo "$as_me: failed program was:" >&5
  8773. sed 's/^/| /' conftest.$ac_ext >&5
  8774. ( exit $ac_status )
  8775. ac_cv_func_realloc_0_nonnull=no
  8776. fi
  8777. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8778. fi
  8779. fi
  8780. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  8781. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  8782. if test $ac_cv_func_realloc_0_nonnull = yes; then
  8783. cat >>confdefs.h <<\_ACEOF
  8784. #define HAVE_REALLOC 1
  8785. _ACEOF
  8786. else
  8787. cat >>confdefs.h <<\_ACEOF
  8788. #define HAVE_REALLOC 0
  8789. _ACEOF
  8790. case $LIBOBJS in
  8791. "realloc.$ac_objext" | \
  8792. *" realloc.$ac_objext" | \
  8793. "realloc.$ac_objext "* | \
  8794. *" realloc.$ac_objext "* ) ;;
  8795. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  8796. esac
  8797. cat >>confdefs.h <<\_ACEOF
  8798. #define realloc rpl_realloc
  8799. _ACEOF
  8800. fi
  8801. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  8802. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  8803. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  8804. echo $ECHO_N "(cached) $ECHO_C" >&6
  8805. else
  8806. if test "$cross_compiling" = yes; then
  8807. ac_cv_func_stat_empty_string_bug=yes
  8808. else
  8809. cat >conftest.$ac_ext <<_ACEOF
  8810. /* confdefs.h. */
  8811. _ACEOF
  8812. cat confdefs.h >>conftest.$ac_ext
  8813. cat >>conftest.$ac_ext <<_ACEOF
  8814. /* end confdefs.h. */
  8815. $ac_includes_default
  8816. int
  8817. main ()
  8818. {
  8819. struct stat sbuf;
  8820. exit (stat ("", &sbuf) ? 1 : 0);
  8821. ;
  8822. return 0;
  8823. }
  8824. _ACEOF
  8825. rm -f conftest$ac_exeext
  8826. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8827. (eval $ac_link) 2>&5
  8828. ac_status=$?
  8829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8830. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8831. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8832. (eval $ac_try) 2>&5
  8833. ac_status=$?
  8834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8835. (exit $ac_status); }; }; then
  8836. ac_cv_func_stat_empty_string_bug=yes
  8837. else
  8838. echo "$as_me: program exited with status $ac_status" >&5
  8839. echo "$as_me: failed program was:" >&5
  8840. sed 's/^/| /' conftest.$ac_ext >&5
  8841. ( exit $ac_status )
  8842. ac_cv_func_stat_empty_string_bug=no
  8843. fi
  8844. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8845. fi
  8846. fi
  8847. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  8848. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  8849. if test $ac_cv_func_stat_empty_string_bug = yes; then
  8850. case $LIBOBJS in
  8851. "stat.$ac_objext" | \
  8852. *" stat.$ac_objext" | \
  8853. "stat.$ac_objext "* | \
  8854. *" stat.$ac_objext "* ) ;;
  8855. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  8856. esac
  8857. cat >>confdefs.h <<_ACEOF
  8858. #define HAVE_STAT_EMPTY_STRING_BUG 1
  8859. _ACEOF
  8860. fi
  8861. echo "$as_me:$LINENO: checking for struct timespec" >&5
  8862. echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
  8863. if test "${ac_cv_type_struct_timespec+set}" = set; then
  8864. echo $ECHO_N "(cached) $ECHO_C" >&6
  8865. else
  8866. cat >conftest.$ac_ext <<_ACEOF
  8867. /* confdefs.h. */
  8868. _ACEOF
  8869. cat confdefs.h >>conftest.$ac_ext
  8870. cat >>conftest.$ac_ext <<_ACEOF
  8871. /* end confdefs.h. */
  8872. #include <sys/types.h>
  8873. #include <sys/time.h>
  8874. #include <time.h>
  8875. int
  8876. main ()
  8877. {
  8878. if ((struct timespec *) 0)
  8879. return 0;
  8880. if (sizeof (struct timespec))
  8881. return 0;
  8882. ;
  8883. return 0;
  8884. }
  8885. _ACEOF
  8886. rm -f conftest.$ac_objext
  8887. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8888. (eval $ac_compile) 2>conftest.er1
  8889. ac_status=$?
  8890. grep -v '^ *+' conftest.er1 >conftest.err
  8891. rm -f conftest.er1
  8892. cat conftest.err >&5
  8893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8894. (exit $ac_status); } &&
  8895. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8896. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8897. (eval $ac_try) 2>&5
  8898. ac_status=$?
  8899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8900. (exit $ac_status); }; } &&
  8901. { ac_try='test -s conftest.$ac_objext'
  8902. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8903. (eval $ac_try) 2>&5
  8904. ac_status=$?
  8905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8906. (exit $ac_status); }; }; then
  8907. ac_cv_type_struct_timespec=yes
  8908. else
  8909. echo "$as_me: failed program was:" >&5
  8910. sed 's/^/| /' conftest.$ac_ext >&5
  8911. ac_cv_type_struct_timespec=no
  8912. fi
  8913. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8914. fi
  8915. echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
  8916. echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6
  8917. if test $ac_cv_type_struct_timespec = yes; then
  8918. cat >>confdefs.h <<\_ACEOF
  8919. #define HAVE_TIMESPEC 1
  8920. _ACEOF
  8921. fi
  8922. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  8923. echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
  8924. echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6
  8925. if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
  8926. echo $ECHO_N "(cached) $ECHO_C" >&6
  8927. else
  8928. cat >conftest.$ac_ext <<_ACEOF
  8929. /* confdefs.h. */
  8930. _ACEOF
  8931. cat confdefs.h >>conftest.$ac_ext
  8932. cat >>conftest.$ac_ext <<_ACEOF
  8933. /* end confdefs.h. */
  8934. $ac_includes_default
  8935. int
  8936. main ()
  8937. {
  8938. static struct stat ac_aggr;
  8939. if (ac_aggr.st_mtim)
  8940. return 0;
  8941. ;
  8942. return 0;
  8943. }
  8944. _ACEOF
  8945. rm -f conftest.$ac_objext
  8946. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8947. (eval $ac_compile) 2>conftest.er1
  8948. ac_status=$?
  8949. grep -v '^ *+' conftest.er1 >conftest.err
  8950. rm -f conftest.er1
  8951. cat conftest.err >&5
  8952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8953. (exit $ac_status); } &&
  8954. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8955. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8956. (eval $ac_try) 2>&5
  8957. ac_status=$?
  8958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8959. (exit $ac_status); }; } &&
  8960. { ac_try='test -s conftest.$ac_objext'
  8961. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8962. (eval $ac_try) 2>&5
  8963. ac_status=$?
  8964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8965. (exit $ac_status); }; }; then
  8966. ac_cv_member_struct_stat_st_mtim=yes
  8967. else
  8968. echo "$as_me: failed program was:" >&5
  8969. sed 's/^/| /' conftest.$ac_ext >&5
  8970. cat >conftest.$ac_ext <<_ACEOF
  8971. /* confdefs.h. */
  8972. _ACEOF
  8973. cat confdefs.h >>conftest.$ac_ext
  8974. cat >>conftest.$ac_ext <<_ACEOF
  8975. /* end confdefs.h. */
  8976. $ac_includes_default
  8977. int
  8978. main ()
  8979. {
  8980. static struct stat ac_aggr;
  8981. if (sizeof ac_aggr.st_mtim)
  8982. return 0;
  8983. ;
  8984. return 0;
  8985. }
  8986. _ACEOF
  8987. rm -f conftest.$ac_objext
  8988. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8989. (eval $ac_compile) 2>conftest.er1
  8990. ac_status=$?
  8991. grep -v '^ *+' conftest.er1 >conftest.err
  8992. rm -f conftest.er1
  8993. cat conftest.err >&5
  8994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8995. (exit $ac_status); } &&
  8996. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8997. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8998. (eval $ac_try) 2>&5
  8999. ac_status=$?
  9000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9001. (exit $ac_status); }; } &&
  9002. { ac_try='test -s conftest.$ac_objext'
  9003. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9004. (eval $ac_try) 2>&5
  9005. ac_status=$?
  9006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9007. (exit $ac_status); }; }; then
  9008. ac_cv_member_struct_stat_st_mtim=yes
  9009. else
  9010. echo "$as_me: failed program was:" >&5
  9011. sed 's/^/| /' conftest.$ac_ext >&5
  9012. ac_cv_member_struct_stat_st_mtim=no
  9013. fi
  9014. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9015. fi
  9016. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9017. fi
  9018. echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
  9019. echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6
  9020. if test $ac_cv_member_struct_stat_st_mtim = yes; then
  9021. cat >>confdefs.h <<\_ACEOF
  9022. #define HAVE_ST_MTIM 1
  9023. _ACEOF
  9024. else
  9025. echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
  9026. echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6
  9027. if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
  9028. echo $ECHO_N "(cached) $ECHO_C" >&6
  9029. else
  9030. cat >conftest.$ac_ext <<_ACEOF
  9031. /* confdefs.h. */
  9032. _ACEOF
  9033. cat confdefs.h >>conftest.$ac_ext
  9034. cat >>conftest.$ac_ext <<_ACEOF
  9035. /* end confdefs.h. */
  9036. $ac_includes_default
  9037. int
  9038. main ()
  9039. {
  9040. static struct stat ac_aggr;
  9041. if (ac_aggr.st_mtimespec)
  9042. return 0;
  9043. ;
  9044. return 0;
  9045. }
  9046. _ACEOF
  9047. rm -f conftest.$ac_objext
  9048. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9049. (eval $ac_compile) 2>conftest.er1
  9050. ac_status=$?
  9051. grep -v '^ *+' conftest.er1 >conftest.err
  9052. rm -f conftest.er1
  9053. cat conftest.err >&5
  9054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9055. (exit $ac_status); } &&
  9056. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9057. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9058. (eval $ac_try) 2>&5
  9059. ac_status=$?
  9060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9061. (exit $ac_status); }; } &&
  9062. { ac_try='test -s conftest.$ac_objext'
  9063. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9064. (eval $ac_try) 2>&5
  9065. ac_status=$?
  9066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9067. (exit $ac_status); }; }; then
  9068. ac_cv_member_struct_stat_st_mtimespec=yes
  9069. else
  9070. echo "$as_me: failed program was:" >&5
  9071. sed 's/^/| /' conftest.$ac_ext >&5
  9072. cat >conftest.$ac_ext <<_ACEOF
  9073. /* confdefs.h. */
  9074. _ACEOF
  9075. cat confdefs.h >>conftest.$ac_ext
  9076. cat >>conftest.$ac_ext <<_ACEOF
  9077. /* end confdefs.h. */
  9078. $ac_includes_default
  9079. int
  9080. main ()
  9081. {
  9082. static struct stat ac_aggr;
  9083. if (sizeof ac_aggr.st_mtimespec)
  9084. return 0;
  9085. ;
  9086. return 0;
  9087. }
  9088. _ACEOF
  9089. rm -f conftest.$ac_objext
  9090. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9091. (eval $ac_compile) 2>conftest.er1
  9092. ac_status=$?
  9093. grep -v '^ *+' conftest.er1 >conftest.err
  9094. rm -f conftest.er1
  9095. cat conftest.err >&5
  9096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9097. (exit $ac_status); } &&
  9098. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9099. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9100. (eval $ac_try) 2>&5
  9101. ac_status=$?
  9102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9103. (exit $ac_status); }; } &&
  9104. { ac_try='test -s conftest.$ac_objext'
  9105. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9106. (eval $ac_try) 2>&5
  9107. ac_status=$?
  9108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9109. (exit $ac_status); }; }; then
  9110. ac_cv_member_struct_stat_st_mtimespec=yes
  9111. else
  9112. echo "$as_me: failed program was:" >&5
  9113. sed 's/^/| /' conftest.$ac_ext >&5
  9114. ac_cv_member_struct_stat_st_mtimespec=no
  9115. fi
  9116. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9117. fi
  9118. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9119. fi
  9120. echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
  9121. echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6
  9122. if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
  9123. cat >>confdefs.h <<\_ACEOF
  9124. #define HAVE_ST_MTIMESPEC 1
  9125. _ACEOF
  9126. fi
  9127. fi
  9128. echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
  9129. echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6
  9130. cat >conftest.$ac_ext <<_ACEOF
  9131. /* confdefs.h. */
  9132. _ACEOF
  9133. cat confdefs.h >>conftest.$ac_ext
  9134. cat >>conftest.$ac_ext <<_ACEOF
  9135. /* end confdefs.h. */
  9136. #include <sys/types.h>
  9137. #include <sys/time.h>
  9138. int
  9139. main ()
  9140. {
  9141. struct timespec ts1, ts2;
  9142. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  9143. #ifndef timespecsub
  9144. #error missing timespecsub
  9145. #endif
  9146. timespecsub(&ts1, &ts2);
  9147. ;
  9148. return 0;
  9149. }
  9150. _ACEOF
  9151. rm -f conftest.$ac_objext
  9152. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9153. (eval $ac_compile) 2>conftest.er1
  9154. ac_status=$?
  9155. grep -v '^ *+' conftest.er1 >conftest.err
  9156. rm -f conftest.er1
  9157. cat conftest.err >&5
  9158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9159. (exit $ac_status); } &&
  9160. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9161. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9162. (eval $ac_try) 2>&5
  9163. ac_status=$?
  9164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9165. (exit $ac_status); }; } &&
  9166. { ac_try='test -s conftest.$ac_objext'
  9167. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9168. (eval $ac_try) 2>&5
  9169. ac_status=$?
  9170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9171. (exit $ac_status); }; }; then
  9172. cat >>confdefs.h <<\_ACEOF
  9173. #define HAVE_TIMESPECSUB2 1
  9174. _ACEOF
  9175. echo "$as_me:$LINENO: result: yes" >&5
  9176. echo "${ECHO_T}yes" >&6
  9177. else
  9178. echo "$as_me: failed program was:" >&5
  9179. sed 's/^/| /' conftest.$ac_ext >&5
  9180. echo "$as_me:$LINENO: result: no" >&5
  9181. echo "${ECHO_T}no" >&6
  9182. fi
  9183. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9184. fi
  9185. for ac_func in strftime
  9186. do
  9187. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9188. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9189. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9190. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9191. echo $ECHO_N "(cached) $ECHO_C" >&6
  9192. else
  9193. cat >conftest.$ac_ext <<_ACEOF
  9194. /* confdefs.h. */
  9195. _ACEOF
  9196. cat confdefs.h >>conftest.$ac_ext
  9197. cat >>conftest.$ac_ext <<_ACEOF
  9198. /* end confdefs.h. */
  9199. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9200. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9201. #define $ac_func innocuous_$ac_func
  9202. /* System header to define __stub macros and hopefully few prototypes,
  9203. which can conflict with char $ac_func (); below.
  9204. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9205. <limits.h> exists even on freestanding compilers. */
  9206. #ifdef __STDC__
  9207. # include <limits.h>
  9208. #else
  9209. # include <assert.h>
  9210. #endif
  9211. #undef $ac_func
  9212. /* Override any gcc2 internal prototype to avoid an error. */
  9213. #ifdef __cplusplus
  9214. extern "C"
  9215. {
  9216. #endif
  9217. /* We use char because int might match the return type of a gcc2
  9218. builtin and then its argument prototype would still apply. */
  9219. char $ac_func ();
  9220. /* The GNU C library defines this for functions which it implements
  9221. to always fail with ENOSYS. Some functions are actually named
  9222. something starting with __ and the normal name is an alias. */
  9223. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9224. choke me
  9225. #else
  9226. char (*f) () = $ac_func;
  9227. #endif
  9228. #ifdef __cplusplus
  9229. }
  9230. #endif
  9231. int
  9232. main ()
  9233. {
  9234. return f != $ac_func;
  9235. ;
  9236. return 0;
  9237. }
  9238. _ACEOF
  9239. rm -f conftest.$ac_objext conftest$ac_exeext
  9240. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9241. (eval $ac_link) 2>conftest.er1
  9242. ac_status=$?
  9243. grep -v '^ *+' conftest.er1 >conftest.err
  9244. rm -f conftest.er1
  9245. cat conftest.err >&5
  9246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9247. (exit $ac_status); } &&
  9248. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9249. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9250. (eval $ac_try) 2>&5
  9251. ac_status=$?
  9252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9253. (exit $ac_status); }; } &&
  9254. { ac_try='test -s conftest$ac_exeext'
  9255. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9256. (eval $ac_try) 2>&5
  9257. ac_status=$?
  9258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9259. (exit $ac_status); }; }; then
  9260. eval "$as_ac_var=yes"
  9261. else
  9262. echo "$as_me: failed program was:" >&5
  9263. sed 's/^/| /' conftest.$ac_ext >&5
  9264. eval "$as_ac_var=no"
  9265. fi
  9266. rm -f conftest.err conftest.$ac_objext \
  9267. conftest$ac_exeext conftest.$ac_ext
  9268. fi
  9269. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9270. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9271. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9272. cat >>confdefs.h <<_ACEOF
  9273. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9274. _ACEOF
  9275. else
  9276. # strftime is in -lintl on SCO UNIX.
  9277. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  9278. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  9279. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  9280. echo $ECHO_N "(cached) $ECHO_C" >&6
  9281. else
  9282. ac_check_lib_save_LIBS=$LIBS
  9283. LIBS="-lintl $LIBS"
  9284. cat >conftest.$ac_ext <<_ACEOF
  9285. /* confdefs.h. */
  9286. _ACEOF
  9287. cat confdefs.h >>conftest.$ac_ext
  9288. cat >>conftest.$ac_ext <<_ACEOF
  9289. /* end confdefs.h. */
  9290. /* Override any gcc2 internal prototype to avoid an error. */
  9291. #ifdef __cplusplus
  9292. extern "C"
  9293. #endif
  9294. /* We use char because int might match the return type of a gcc2
  9295. builtin and then its argument prototype would still apply. */
  9296. char strftime ();
  9297. int
  9298. main ()
  9299. {
  9300. strftime ();
  9301. ;
  9302. return 0;
  9303. }
  9304. _ACEOF
  9305. rm -f conftest.$ac_objext conftest$ac_exeext
  9306. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9307. (eval $ac_link) 2>conftest.er1
  9308. ac_status=$?
  9309. grep -v '^ *+' conftest.er1 >conftest.err
  9310. rm -f conftest.er1
  9311. cat conftest.err >&5
  9312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9313. (exit $ac_status); } &&
  9314. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9315. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9316. (eval $ac_try) 2>&5
  9317. ac_status=$?
  9318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9319. (exit $ac_status); }; } &&
  9320. { ac_try='test -s conftest$ac_exeext'
  9321. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9322. (eval $ac_try) 2>&5
  9323. ac_status=$?
  9324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9325. (exit $ac_status); }; }; then
  9326. ac_cv_lib_intl_strftime=yes
  9327. else
  9328. echo "$as_me: failed program was:" >&5
  9329. sed 's/^/| /' conftest.$ac_ext >&5
  9330. ac_cv_lib_intl_strftime=no
  9331. fi
  9332. rm -f conftest.err conftest.$ac_objext \
  9333. conftest$ac_exeext conftest.$ac_ext
  9334. LIBS=$ac_check_lib_save_LIBS
  9335. fi
  9336. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  9337. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  9338. if test $ac_cv_lib_intl_strftime = yes; then
  9339. cat >>confdefs.h <<\_ACEOF
  9340. #define HAVE_STRFTIME 1
  9341. _ACEOF
  9342. LIBS="-lintl $LIBS"
  9343. fi
  9344. fi
  9345. done
  9346. #checkpoint
  9347. cat >confcache <<\_ACEOF
  9348. # This file is a shell script that caches the results of configure
  9349. # tests run on this system so they can be shared between configure
  9350. # scripts and configure runs, see configure's option --config-cache.
  9351. # It is not useful on other systems. If it contains results you don't
  9352. # want to keep, you may remove or edit it.
  9353. #
  9354. # config.status only pays attention to the cache file if you give it
  9355. # the --recheck option to rerun configure.
  9356. #
  9357. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9358. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9359. # following values.
  9360. _ACEOF
  9361. # The following way of writing the cache mishandles newlines in values,
  9362. # but we know of no workaround that is simple, portable, and efficient.
  9363. # So, don't put newlines in cache variables' values.
  9364. # Ultrix sh set writes to stderr and can't be redirected directly,
  9365. # and sets the high bit in the cache file unless we assign to the vars.
  9366. {
  9367. (set) 2>&1 |
  9368. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9369. *ac_space=\ *)
  9370. # `set' does not quote correctly, so add quotes (double-quote
  9371. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9372. sed -n \
  9373. "s/'/'\\\\''/g;
  9374. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9375. ;;
  9376. *)
  9377. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9378. sed -n \
  9379. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9380. ;;
  9381. esac;
  9382. } |
  9383. sed '
  9384. t clear
  9385. : clear
  9386. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9387. t end
  9388. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9389. : end' >>confcache
  9390. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9391. if test -w $cache_file; then
  9392. test "x$cache_file" != "x/dev/null"
  9393. cat confcache >$cache_file
  9394. else
  9395. echo "not updating unwritable cache $cache_file"
  9396. fi
  9397. fi
  9398. rm -f confcache
  9399. for ac_func in clock fsync getrusage isascii inet_aton gethostbyname2
  9400. do
  9401. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9402. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9403. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9404. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9405. echo $ECHO_N "(cached) $ECHO_C" >&6
  9406. else
  9407. cat >conftest.$ac_ext <<_ACEOF
  9408. /* confdefs.h. */
  9409. _ACEOF
  9410. cat confdefs.h >>conftest.$ac_ext
  9411. cat >>conftest.$ac_ext <<_ACEOF
  9412. /* end confdefs.h. */
  9413. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9414. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9415. #define $ac_func innocuous_$ac_func
  9416. /* System header to define __stub macros and hopefully few prototypes,
  9417. which can conflict with char $ac_func (); below.
  9418. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9419. <limits.h> exists even on freestanding compilers. */
  9420. #ifdef __STDC__
  9421. # include <limits.h>
  9422. #else
  9423. # include <assert.h>
  9424. #endif
  9425. #undef $ac_func
  9426. /* Override any gcc2 internal prototype to avoid an error. */
  9427. #ifdef __cplusplus
  9428. extern "C"
  9429. {
  9430. #endif
  9431. /* We use char because int might match the return type of a gcc2
  9432. builtin and then its argument prototype would still apply. */
  9433. char $ac_func ();
  9434. /* The GNU C library defines this for functions which it implements
  9435. to always fail with ENOSYS. Some functions are actually named
  9436. something starting with __ and the normal name is an alias. */
  9437. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9438. choke me
  9439. #else
  9440. char (*f) () = $ac_func;
  9441. #endif
  9442. #ifdef __cplusplus
  9443. }
  9444. #endif
  9445. int
  9446. main ()
  9447. {
  9448. return f != $ac_func;
  9449. ;
  9450. return 0;
  9451. }
  9452. _ACEOF
  9453. rm -f conftest.$ac_objext conftest$ac_exeext
  9454. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9455. (eval $ac_link) 2>conftest.er1
  9456. ac_status=$?
  9457. grep -v '^ *+' conftest.er1 >conftest.err
  9458. rm -f conftest.er1
  9459. cat conftest.err >&5
  9460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9461. (exit $ac_status); } &&
  9462. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9463. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9464. (eval $ac_try) 2>&5
  9465. ac_status=$?
  9466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9467. (exit $ac_status); }; } &&
  9468. { ac_try='test -s conftest$ac_exeext'
  9469. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9470. (eval $ac_try) 2>&5
  9471. ac_status=$?
  9472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9473. (exit $ac_status); }; }; then
  9474. eval "$as_ac_var=yes"
  9475. else
  9476. echo "$as_me: failed program was:" >&5
  9477. sed 's/^/| /' conftest.$ac_ext >&5
  9478. eval "$as_ac_var=no"
  9479. fi
  9480. rm -f conftest.err conftest.$ac_objext \
  9481. conftest$ac_exeext conftest.$ac_ext
  9482. fi
  9483. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9484. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9485. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9486. cat >>confdefs.h <<_ACEOF
  9487. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9488. _ACEOF
  9489. fi
  9490. done
  9491. for ac_func in getipnodebyname memcpy memset random rename snprintf srandom
  9492. do
  9493. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9494. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9495. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9496. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9497. echo $ECHO_N "(cached) $ECHO_C" >&6
  9498. else
  9499. cat >conftest.$ac_ext <<_ACEOF
  9500. /* confdefs.h. */
  9501. _ACEOF
  9502. cat confdefs.h >>conftest.$ac_ext
  9503. cat >>conftest.$ac_ext <<_ACEOF
  9504. /* end confdefs.h. */
  9505. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9506. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9507. #define $ac_func innocuous_$ac_func
  9508. /* System header to define __stub macros and hopefully few prototypes,
  9509. which can conflict with char $ac_func (); below.
  9510. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9511. <limits.h> exists even on freestanding compilers. */
  9512. #ifdef __STDC__
  9513. # include <limits.h>
  9514. #else
  9515. # include <assert.h>
  9516. #endif
  9517. #undef $ac_func
  9518. /* Override any gcc2 internal prototype to avoid an error. */
  9519. #ifdef __cplusplus
  9520. extern "C"
  9521. {
  9522. #endif
  9523. /* We use char because int might match the return type of a gcc2
  9524. builtin and then its argument prototype would still apply. */
  9525. char $ac_func ();
  9526. /* The GNU C library defines this for functions which it implements
  9527. to always fail with ENOSYS. Some functions are actually named
  9528. something starting with __ and the normal name is an alias. */
  9529. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9530. choke me
  9531. #else
  9532. char (*f) () = $ac_func;
  9533. #endif
  9534. #ifdef __cplusplus
  9535. }
  9536. #endif
  9537. int
  9538. main ()
  9539. {
  9540. return f != $ac_func;
  9541. ;
  9542. return 0;
  9543. }
  9544. _ACEOF
  9545. rm -f conftest.$ac_objext conftest$ac_exeext
  9546. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9547. (eval $ac_link) 2>conftest.er1
  9548. ac_status=$?
  9549. grep -v '^ *+' conftest.er1 >conftest.err
  9550. rm -f conftest.er1
  9551. cat conftest.err >&5
  9552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9553. (exit $ac_status); } &&
  9554. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9555. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9556. (eval $ac_try) 2>&5
  9557. ac_status=$?
  9558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9559. (exit $ac_status); }; } &&
  9560. { ac_try='test -s conftest$ac_exeext'
  9561. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9562. (eval $ac_try) 2>&5
  9563. ac_status=$?
  9564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9565. (exit $ac_status); }; }; then
  9566. eval "$as_ac_var=yes"
  9567. else
  9568. echo "$as_me: failed program was:" >&5
  9569. sed 's/^/| /' conftest.$ac_ext >&5
  9570. eval "$as_ac_var=no"
  9571. fi
  9572. rm -f conftest.err conftest.$ac_objext \
  9573. conftest$ac_exeext conftest.$ac_ext
  9574. fi
  9575. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9576. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9577. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9578. cat >>confdefs.h <<_ACEOF
  9579. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9580. _ACEOF
  9581. fi
  9582. done
  9583. #checkpoint
  9584. cat >confcache <<\_ACEOF
  9585. # This file is a shell script that caches the results of configure
  9586. # tests run on this system so they can be shared between configure
  9587. # scripts and configure runs, see configure's option --config-cache.
  9588. # It is not useful on other systems. If it contains results you don't
  9589. # want to keep, you may remove or edit it.
  9590. #
  9591. # config.status only pays attention to the cache file if you give it
  9592. # the --recheck option to rerun configure.
  9593. #
  9594. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9595. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9596. # following values.
  9597. _ACEOF
  9598. # The following way of writing the cache mishandles newlines in values,
  9599. # but we know of no workaround that is simple, portable, and efficient.
  9600. # So, don't put newlines in cache variables' values.
  9601. # Ultrix sh set writes to stderr and can't be redirected directly,
  9602. # and sets the high bit in the cache file unless we assign to the vars.
  9603. {
  9604. (set) 2>&1 |
  9605. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9606. *ac_space=\ *)
  9607. # `set' does not quote correctly, so add quotes (double-quote
  9608. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9609. sed -n \
  9610. "s/'/'\\\\''/g;
  9611. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9612. ;;
  9613. *)
  9614. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9615. sed -n \
  9616. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9617. ;;
  9618. esac;
  9619. } |
  9620. sed '
  9621. t clear
  9622. : clear
  9623. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9624. t end
  9625. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9626. : end' >>confcache
  9627. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9628. if test -w $cache_file; then
  9629. test "x$cache_file" != "x/dev/null"
  9630. cat confcache >$cache_file
  9631. else
  9632. echo "not updating unwritable cache $cache_file"
  9633. fi
  9634. fi
  9635. rm -f confcache
  9636. for ac_func in strcasecmp strncasecmp vsnprintf
  9637. do
  9638. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9639. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9640. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9641. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9642. echo $ECHO_N "(cached) $ECHO_C" >&6
  9643. else
  9644. cat >conftest.$ac_ext <<_ACEOF
  9645. /* confdefs.h. */
  9646. _ACEOF
  9647. cat confdefs.h >>conftest.$ac_ext
  9648. cat >>conftest.$ac_ext <<_ACEOF
  9649. /* end confdefs.h. */
  9650. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9651. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9652. #define $ac_func innocuous_$ac_func
  9653. /* System header to define __stub macros and hopefully few prototypes,
  9654. which can conflict with char $ac_func (); below.
  9655. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9656. <limits.h> exists even on freestanding compilers. */
  9657. #ifdef __STDC__
  9658. # include <limits.h>
  9659. #else
  9660. # include <assert.h>
  9661. #endif
  9662. #undef $ac_func
  9663. /* Override any gcc2 internal prototype to avoid an error. */
  9664. #ifdef __cplusplus
  9665. extern "C"
  9666. {
  9667. #endif
  9668. /* We use char because int might match the return type of a gcc2
  9669. builtin and then its argument prototype would still apply. */
  9670. char $ac_func ();
  9671. /* The GNU C library defines this for functions which it implements
  9672. to always fail with ENOSYS. Some functions are actually named
  9673. something starting with __ and the normal name is an alias. */
  9674. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9675. choke me
  9676. #else
  9677. char (*f) () = $ac_func;
  9678. #endif
  9679. #ifdef __cplusplus
  9680. }
  9681. #endif
  9682. int
  9683. main ()
  9684. {
  9685. return f != $ac_func;
  9686. ;
  9687. return 0;
  9688. }
  9689. _ACEOF
  9690. rm -f conftest.$ac_objext conftest$ac_exeext
  9691. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9692. (eval $ac_link) 2>conftest.er1
  9693. ac_status=$?
  9694. grep -v '^ *+' conftest.er1 >conftest.err
  9695. rm -f conftest.er1
  9696. cat conftest.err >&5
  9697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9698. (exit $ac_status); } &&
  9699. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9700. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9701. (eval $ac_try) 2>&5
  9702. ac_status=$?
  9703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9704. (exit $ac_status); }; } &&
  9705. { ac_try='test -s conftest$ac_exeext'
  9706. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9707. (eval $ac_try) 2>&5
  9708. ac_status=$?
  9709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9710. (exit $ac_status); }; }; then
  9711. eval "$as_ac_var=yes"
  9712. else
  9713. echo "$as_me: failed program was:" >&5
  9714. sed 's/^/| /' conftest.$ac_ext >&5
  9715. eval "$as_ac_var=no"
  9716. fi
  9717. rm -f conftest.err conftest.$ac_objext \
  9718. conftest$ac_exeext conftest.$ac_ext
  9719. fi
  9720. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9721. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9722. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9723. cat >>confdefs.h <<_ACEOF
  9724. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9725. _ACEOF
  9726. fi
  9727. done
  9728. #autoscan suggested this....
  9729. #These are recommended by autoscan, but no code supports it currently
  9730. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  9731. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  9732. for ac_func in vsprintf
  9733. do
  9734. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9735. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9736. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9737. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9738. echo $ECHO_N "(cached) $ECHO_C" >&6
  9739. else
  9740. cat >conftest.$ac_ext <<_ACEOF
  9741. /* confdefs.h. */
  9742. _ACEOF
  9743. cat confdefs.h >>conftest.$ac_ext
  9744. cat >>conftest.$ac_ext <<_ACEOF
  9745. /* end confdefs.h. */
  9746. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9747. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9748. #define $ac_func innocuous_$ac_func
  9749. /* System header to define __stub macros and hopefully few prototypes,
  9750. which can conflict with char $ac_func (); below.
  9751. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9752. <limits.h> exists even on freestanding compilers. */
  9753. #ifdef __STDC__
  9754. # include <limits.h>
  9755. #else
  9756. # include <assert.h>
  9757. #endif
  9758. #undef $ac_func
  9759. /* Override any gcc2 internal prototype to avoid an error. */
  9760. #ifdef __cplusplus
  9761. extern "C"
  9762. {
  9763. #endif
  9764. /* We use char because int might match the return type of a gcc2
  9765. builtin and then its argument prototype would still apply. */
  9766. char $ac_func ();
  9767. /* The GNU C library defines this for functions which it implements
  9768. to always fail with ENOSYS. Some functions are actually named
  9769. something starting with __ and the normal name is an alias. */
  9770. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9771. choke me
  9772. #else
  9773. char (*f) () = $ac_func;
  9774. #endif
  9775. #ifdef __cplusplus
  9776. }
  9777. #endif
  9778. int
  9779. main ()
  9780. {
  9781. return f != $ac_func;
  9782. ;
  9783. return 0;
  9784. }
  9785. _ACEOF
  9786. rm -f conftest.$ac_objext conftest$ac_exeext
  9787. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9788. (eval $ac_link) 2>conftest.er1
  9789. ac_status=$?
  9790. grep -v '^ *+' conftest.er1 >conftest.err
  9791. rm -f conftest.er1
  9792. cat conftest.err >&5
  9793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9794. (exit $ac_status); } &&
  9795. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9796. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9797. (eval $ac_try) 2>&5
  9798. ac_status=$?
  9799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9800. (exit $ac_status); }; } &&
  9801. { ac_try='test -s conftest$ac_exeext'
  9802. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9803. (eval $ac_try) 2>&5
  9804. ac_status=$?
  9805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9806. (exit $ac_status); }; }; then
  9807. eval "$as_ac_var=yes"
  9808. else
  9809. echo "$as_me: failed program was:" >&5
  9810. sed 's/^/| /' conftest.$ac_ext >&5
  9811. eval "$as_ac_var=no"
  9812. fi
  9813. rm -f conftest.err conftest.$ac_objext \
  9814. conftest$ac_exeext conftest.$ac_ext
  9815. fi
  9816. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9817. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9818. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9819. cat >>confdefs.h <<_ACEOF
  9820. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9821. _ACEOF
  9822. fi
  9823. done
  9824. if test "$ac_cv_func_vsprintf" = "no"
  9825. then
  9826. cat << 'EOF' >&2
  9827. configure: error:
  9828. Your system does not have the sprintf/vsprintf libraries.
  9829. These are required to compile almost anything. Sorry.
  9830. EOF
  9831. exit 1
  9832. fi
  9833. for ac_func in uname
  9834. do
  9835. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9836. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9837. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9838. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9839. echo $ECHO_N "(cached) $ECHO_C" >&6
  9840. else
  9841. cat >conftest.$ac_ext <<_ACEOF
  9842. /* confdefs.h. */
  9843. _ACEOF
  9844. cat confdefs.h >>conftest.$ac_ext
  9845. cat >>conftest.$ac_ext <<_ACEOF
  9846. /* end confdefs.h. */
  9847. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9848. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9849. #define $ac_func innocuous_$ac_func
  9850. /* System header to define __stub macros and hopefully few prototypes,
  9851. which can conflict with char $ac_func (); below.
  9852. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9853. <limits.h> exists even on freestanding compilers. */
  9854. #ifdef __STDC__
  9855. # include <limits.h>
  9856. #else
  9857. # include <assert.h>
  9858. #endif
  9859. #undef $ac_func
  9860. /* Override any gcc2 internal prototype to avoid an error. */
  9861. #ifdef __cplusplus
  9862. extern "C"
  9863. {
  9864. #endif
  9865. /* We use char because int might match the return type of a gcc2
  9866. builtin and then its argument prototype would still apply. */
  9867. char $ac_func ();
  9868. /* The GNU C library defines this for functions which it implements
  9869. to always fail with ENOSYS. Some functions are actually named
  9870. something starting with __ and the normal name is an alias. */
  9871. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9872. choke me
  9873. #else
  9874. char (*f) () = $ac_func;
  9875. #endif
  9876. #ifdef __cplusplus
  9877. }
  9878. #endif
  9879. int
  9880. main ()
  9881. {
  9882. return f != $ac_func;
  9883. ;
  9884. return 0;
  9885. }
  9886. _ACEOF
  9887. rm -f conftest.$ac_objext conftest$ac_exeext
  9888. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9889. (eval $ac_link) 2>conftest.er1
  9890. ac_status=$?
  9891. grep -v '^ *+' conftest.er1 >conftest.err
  9892. rm -f conftest.er1
  9893. cat conftest.err >&5
  9894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9895. (exit $ac_status); } &&
  9896. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9897. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9898. (eval $ac_try) 2>&5
  9899. ac_status=$?
  9900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9901. (exit $ac_status); }; } &&
  9902. { ac_try='test -s conftest$ac_exeext'
  9903. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9904. (eval $ac_try) 2>&5
  9905. ac_status=$?
  9906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9907. (exit $ac_status); }; }; then
  9908. eval "$as_ac_var=yes"
  9909. else
  9910. echo "$as_me: failed program was:" >&5
  9911. sed 's/^/| /' conftest.$ac_ext >&5
  9912. eval "$as_ac_var=no"
  9913. fi
  9914. rm -f conftest.err conftest.$ac_objext \
  9915. conftest$ac_exeext conftest.$ac_ext
  9916. fi
  9917. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9918. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9919. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9920. cat >>confdefs.h <<_ACEOF
  9921. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9922. _ACEOF
  9923. fi
  9924. done
  9925. if test "$ac_cv_func_uname" = "no"
  9926. then
  9927. cat << 'EOF' >&2
  9928. configure: error:
  9929. Your system does not have the uname() function.
  9930. This is required for the botpack.
  9931. EOF
  9932. exit 1
  9933. fi
  9934. # Make sure we have stdc headers, since we can't compile without them
  9935. if test "$ac_cv_header_stdc" = "no"
  9936. then
  9937. cat << 'EOF' >&2
  9938. configure: error:
  9939. Your system must support ANSI C Header files.
  9940. These are required for the language support. Sorry.
  9941. EOF
  9942. exit 1
  9943. fi
  9944. #checkpoint
  9945. cat >confcache <<\_ACEOF
  9946. # This file is a shell script that caches the results of configure
  9947. # tests run on this system so they can be shared between configure
  9948. # scripts and configure runs, see configure's option --config-cache.
  9949. # It is not useful on other systems. If it contains results you don't
  9950. # want to keep, you may remove or edit it.
  9951. #
  9952. # config.status only pays attention to the cache file if you give it
  9953. # the --recheck option to rerun configure.
  9954. #
  9955. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9956. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9957. # following values.
  9958. _ACEOF
  9959. # The following way of writing the cache mishandles newlines in values,
  9960. # but we know of no workaround that is simple, portable, and efficient.
  9961. # So, don't put newlines in cache variables' values.
  9962. # Ultrix sh set writes to stderr and can't be redirected directly,
  9963. # and sets the high bit in the cache file unless we assign to the vars.
  9964. {
  9965. (set) 2>&1 |
  9966. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9967. *ac_space=\ *)
  9968. # `set' does not quote correctly, so add quotes (double-quote
  9969. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9970. sed -n \
  9971. "s/'/'\\\\''/g;
  9972. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9973. ;;
  9974. *)
  9975. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9976. sed -n \
  9977. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9978. ;;
  9979. esac;
  9980. } |
  9981. sed '
  9982. t clear
  9983. : clear
  9984. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9985. t end
  9986. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9987. : end' >>confcache
  9988. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9989. if test -w $cache_file; then
  9990. test "x$cache_file" != "x/dev/null"
  9991. cat confcache >$cache_file
  9992. else
  9993. echo "not updating unwritable cache $cache_file"
  9994. fi
  9995. fi
  9996. rm -f confcache
  9997. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  9998. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  9999. cat >>confdefs.h <<_ACEOF
  10000. #define EGG_VERSION $version_num
  10001. _ACEOF
  10002. #FIND_WRAPS
  10003. case "$srcdir" in
  10004. [\\/]* | ?:[\\/]*)
  10005. MOD_UPDIR=""
  10006. ;;
  10007. *)
  10008. MOD_UPDIR="../"
  10009. ;;
  10010. esac
  10011. 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"
  10012. for mf in $files; do
  10013. # Strip MF so we end up with the name of the file.
  10014. # echo "MF: $mf"
  10015. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10016. dirpart=`(dirname "$mf") 2>/dev/null ||
  10017. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10018. X"$mf" : 'X\(//\)[^/]' \| \
  10019. X"$mf" : 'X\(//\)$' \| \
  10020. X"$mf" : 'X\(/\)' \| \
  10021. . : '\(.\)' 2>/dev/null ||
  10022. echo X"$mf" |
  10023. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10024. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10025. /^X\(\/\/\)$/{ s//\1/; q; }
  10026. /^X\(\/\).*/{ s//\1/; q; }
  10027. s/.*/./; q'`
  10028. # echo "dirpart: $dirpart mf: $mf"
  10029. # rm -rf "$dirpart/.deps/"
  10030. rm -f "$dirpart/.deps/includes"
  10031. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  10032. for file in `sed -n -e '
  10033. /^OBJS = .*\\\\$/ {
  10034. s/^OBJS = //
  10035. :loop
  10036. s/\\\\$//
  10037. p
  10038. n
  10039. /\\\\$/ b loop
  10040. p
  10041. }
  10042. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  10043. do
  10044. base=`basename $file .o`
  10045. test -f "$dirpart/$base.c" || continue
  10046. if ! test -f "$dirpart/.deps/$base.Po"; then
  10047. echo '# dummy' > "$dirpart/.deps/$base.Po"
  10048. #Remove the .o file, because it needs to be recompiled for its dependancies.
  10049. if test -f "$dirpart/$base.o"; then
  10050. rm -f "$dirpart/$base.o"
  10051. fi
  10052. fi
  10053. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  10054. echo "_$base.c:" >> "$dirpart/.deps/includes"
  10055. done
  10056. done
  10057. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile"
  10058. cat >confcache <<\_ACEOF
  10059. # This file is a shell script that caches the results of configure
  10060. # tests run on this system so they can be shared between configure
  10061. # scripts and configure runs, see configure's option --config-cache.
  10062. # It is not useful on other systems. If it contains results you don't
  10063. # want to keep, you may remove or edit it.
  10064. #
  10065. # config.status only pays attention to the cache file if you give it
  10066. # the --recheck option to rerun configure.
  10067. #
  10068. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10069. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10070. # following values.
  10071. _ACEOF
  10072. # The following way of writing the cache mishandles newlines in values,
  10073. # but we know of no workaround that is simple, portable, and efficient.
  10074. # So, don't put newlines in cache variables' values.
  10075. # Ultrix sh set writes to stderr and can't be redirected directly,
  10076. # and sets the high bit in the cache file unless we assign to the vars.
  10077. {
  10078. (set) 2>&1 |
  10079. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10080. *ac_space=\ *)
  10081. # `set' does not quote correctly, so add quotes (double-quote
  10082. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10083. sed -n \
  10084. "s/'/'\\\\''/g;
  10085. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10086. ;;
  10087. *)
  10088. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10089. sed -n \
  10090. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10091. ;;
  10092. esac;
  10093. } |
  10094. sed '
  10095. t clear
  10096. : clear
  10097. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10098. t end
  10099. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10100. : end' >>confcache
  10101. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10102. if test -w $cache_file; then
  10103. test "x$cache_file" != "x/dev/null"
  10104. cat confcache >$cache_file
  10105. else
  10106. echo "not updating unwritable cache $cache_file"
  10107. fi
  10108. fi
  10109. rm -f confcache
  10110. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10111. # Let make expand exec_prefix.
  10112. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10113. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10114. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10115. # trailing colons and then remove the whole line if VPATH becomes empty
  10116. # (actually we leave an empty line to preserve line numbers).
  10117. if test "x$srcdir" = x.; then
  10118. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10119. s/:*\$(srcdir):*/:/;
  10120. s/:*\${srcdir}:*/:/;
  10121. s/:*@srcdir@:*/:/;
  10122. s/^\([^=]*=[ ]*\):*/\1/;
  10123. s/:*$//;
  10124. s/^[^=]*=[ ]*$//;
  10125. }'
  10126. fi
  10127. DEFS=-DHAVE_CONFIG_H
  10128. ac_libobjs=
  10129. ac_ltlibobjs=
  10130. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10131. # 1. Remove the extension, and $U if already installed.
  10132. ac_i=`echo "$ac_i" |
  10133. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  10134. # 2. Add them.
  10135. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  10136. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  10137. done
  10138. LIBOBJS=$ac_libobjs
  10139. LTLIBOBJS=$ac_ltlibobjs
  10140. : ${CONFIG_STATUS=./config.status}
  10141. ac_clean_files_save=$ac_clean_files
  10142. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10143. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  10144. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10145. cat >$CONFIG_STATUS <<_ACEOF
  10146. #! $SHELL
  10147. # Generated by $as_me.
  10148. # Run this file to recreate the current configuration.
  10149. # Compiler output produced by configure, useful for debugging
  10150. # configure, is in config.log if it exists.
  10151. debug=false
  10152. ac_cs_recheck=false
  10153. ac_cs_silent=false
  10154. SHELL=\${CONFIG_SHELL-$SHELL}
  10155. _ACEOF
  10156. cat >>$CONFIG_STATUS <<\_ACEOF
  10157. ## --------------------- ##
  10158. ## M4sh Initialization. ##
  10159. ## --------------------- ##
  10160. # Be Bourne compatible
  10161. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10162. emulate sh
  10163. NULLCMD=:
  10164. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10165. # is contrary to our usage. Disable this feature.
  10166. alias -g '${1+"$@"}'='"$@"'
  10167. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  10168. set -o posix
  10169. fi
  10170. DUALCASE=1; export DUALCASE # for MKS sh
  10171. # Support unset when possible.
  10172. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10173. as_unset=unset
  10174. else
  10175. as_unset=false
  10176. fi
  10177. # Work around bugs in pre-3.0 UWIN ksh.
  10178. $as_unset ENV MAIL MAILPATH
  10179. PS1='$ '
  10180. PS2='> '
  10181. PS4='+ '
  10182. # NLS nuisances.
  10183. for as_var in \
  10184. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  10185. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  10186. LC_TELEPHONE LC_TIME
  10187. do
  10188. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  10189. eval $as_var=C; export $as_var
  10190. else
  10191. $as_unset $as_var
  10192. fi
  10193. done
  10194. # Required to use basename.
  10195. if expr a : '\(a\)' >/dev/null 2>&1; then
  10196. as_expr=expr
  10197. else
  10198. as_expr=false
  10199. fi
  10200. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  10201. as_basename=basename
  10202. else
  10203. as_basename=false
  10204. fi
  10205. # Name of the executable.
  10206. as_me=`$as_basename "$0" ||
  10207. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10208. X"$0" : 'X\(//\)$' \| \
  10209. X"$0" : 'X\(/\)$' \| \
  10210. . : '\(.\)' 2>/dev/null ||
  10211. echo X/"$0" |
  10212. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  10213. /^X\/\(\/\/\)$/{ s//\1/; q; }
  10214. /^X\/\(\/\).*/{ s//\1/; q; }
  10215. s/.*/./; q'`
  10216. # PATH needs CR, and LINENO needs CR and PATH.
  10217. # Avoid depending upon Character Ranges.
  10218. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10219. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10220. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10221. as_cr_digits='0123456789'
  10222. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10223. # The user is always right.
  10224. if test "${PATH_SEPARATOR+set}" != set; then
  10225. echo "#! /bin/sh" >conf$$.sh
  10226. echo "exit 0" >>conf$$.sh
  10227. chmod +x conf$$.sh
  10228. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10229. PATH_SEPARATOR=';'
  10230. else
  10231. PATH_SEPARATOR=:
  10232. fi
  10233. rm -f conf$$.sh
  10234. fi
  10235. as_lineno_1=$LINENO
  10236. as_lineno_2=$LINENO
  10237. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10238. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10239. test "x$as_lineno_3" = "x$as_lineno_2" || {
  10240. # Find who we are. Look in the path if we contain no path at all
  10241. # relative or not.
  10242. case $0 in
  10243. *[\\/]* ) as_myself=$0 ;;
  10244. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10245. for as_dir in $PATH
  10246. do
  10247. IFS=$as_save_IFS
  10248. test -z "$as_dir" && as_dir=.
  10249. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10250. done
  10251. ;;
  10252. esac
  10253. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10254. # in which case we are not to be found in the path.
  10255. if test "x$as_myself" = x; then
  10256. as_myself=$0
  10257. fi
  10258. if test ! -f "$as_myself"; then
  10259. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  10260. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  10261. { (exit 1); exit 1; }; }
  10262. fi
  10263. case $CONFIG_SHELL in
  10264. '')
  10265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10266. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  10267. do
  10268. IFS=$as_save_IFS
  10269. test -z "$as_dir" && as_dir=.
  10270. for as_base in sh bash ksh sh5; do
  10271. case $as_dir in
  10272. /*)
  10273. if ("$as_dir/$as_base" -c '
  10274. as_lineno_1=$LINENO
  10275. as_lineno_2=$LINENO
  10276. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10277. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10278. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  10279. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  10280. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  10281. CONFIG_SHELL=$as_dir/$as_base
  10282. export CONFIG_SHELL
  10283. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  10284. fi;;
  10285. esac
  10286. done
  10287. done
  10288. ;;
  10289. esac
  10290. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  10291. # uniformly replaced by the line number. The first 'sed' inserts a
  10292. # line-number line before each line; the second 'sed' does the real
  10293. # work. The second script uses 'N' to pair each line-number line
  10294. # with the numbered line, and appends trailing '-' during
  10295. # substitution so that $LINENO is not a special case at line end.
  10296. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  10297. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  10298. sed '=' <$as_myself |
  10299. sed '
  10300. N
  10301. s,$,-,
  10302. : loop
  10303. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  10304. t loop
  10305. s,-$,,
  10306. s,^['$as_cr_digits']*\n,,
  10307. ' >$as_me.lineno &&
  10308. chmod +x $as_me.lineno ||
  10309. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  10310. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  10311. { (exit 1); exit 1; }; }
  10312. # Don't try to exec as it changes $[0], causing all sort of problems
  10313. # (the dirname of $[0] is not the place where we might find the
  10314. # original and so on. Autoconf is especially sensible to this).
  10315. . ./$as_me.lineno
  10316. # Exit status is that of the last command.
  10317. exit
  10318. }
  10319. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  10320. *c*,-n*) ECHO_N= ECHO_C='
  10321. ' ECHO_T=' ' ;;
  10322. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  10323. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  10324. esac
  10325. if expr a : '\(a\)' >/dev/null 2>&1; then
  10326. as_expr=expr
  10327. else
  10328. as_expr=false
  10329. fi
  10330. rm -f conf$$ conf$$.exe conf$$.file
  10331. echo >conf$$.file
  10332. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10333. # We could just check for DJGPP; but this test a) works b) is more generic
  10334. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  10335. if test -f conf$$.exe; then
  10336. # Don't use ln at all; we don't have any links
  10337. as_ln_s='cp -p'
  10338. else
  10339. as_ln_s='ln -s'
  10340. fi
  10341. elif ln conf$$.file conf$$ 2>/dev/null; then
  10342. as_ln_s=ln
  10343. else
  10344. as_ln_s='cp -p'
  10345. fi
  10346. rm -f conf$$ conf$$.exe conf$$.file
  10347. if mkdir -p . 2>/dev/null; then
  10348. as_mkdir_p=:
  10349. else
  10350. test -d ./-p && rmdir ./-p
  10351. as_mkdir_p=false
  10352. fi
  10353. as_executable_p="test -f"
  10354. # Sed expression to map a string onto a valid CPP name.
  10355. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10356. # Sed expression to map a string onto a valid variable name.
  10357. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10358. # IFS
  10359. # We need space, tab and new line, in precisely that order.
  10360. as_nl='
  10361. '
  10362. IFS=" $as_nl"
  10363. # CDPATH.
  10364. $as_unset CDPATH
  10365. exec 6>&1
  10366. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  10367. # report actual input values of CONFIG_FILES etc. instead of their
  10368. # values after options handling. Logging --version etc. is OK.
  10369. exec 5>>config.log
  10370. {
  10371. echo
  10372. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10373. ## Running $as_me. ##
  10374. _ASBOX
  10375. } >&5
  10376. cat >&5 <<_CSEOF
  10377. This file was extended by $as_me, which was
  10378. generated by GNU Autoconf 2.59. Invocation command line was
  10379. CONFIG_FILES = $CONFIG_FILES
  10380. CONFIG_HEADERS = $CONFIG_HEADERS
  10381. CONFIG_LINKS = $CONFIG_LINKS
  10382. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10383. $ $0 $@
  10384. _CSEOF
  10385. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  10386. echo >&5
  10387. _ACEOF
  10388. # Files that config.status was made for.
  10389. if test -n "$ac_config_files"; then
  10390. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  10391. fi
  10392. if test -n "$ac_config_headers"; then
  10393. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  10394. fi
  10395. if test -n "$ac_config_links"; then
  10396. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  10397. fi
  10398. if test -n "$ac_config_commands"; then
  10399. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  10400. fi
  10401. cat >>$CONFIG_STATUS <<\_ACEOF
  10402. ac_cs_usage="\
  10403. \`$as_me' instantiates files from templates according to the
  10404. current configuration.
  10405. Usage: $0 [OPTIONS] [FILE]...
  10406. -h, --help print this help, then exit
  10407. -V, --version print version number, then exit
  10408. -q, --quiet do not print progress messages
  10409. -d, --debug don't remove temporary files
  10410. --recheck update $as_me by reconfiguring in the same conditions
  10411. --file=FILE[:TEMPLATE]
  10412. instantiate the configuration file FILE
  10413. --header=FILE[:TEMPLATE]
  10414. instantiate the configuration header FILE
  10415. Configuration files:
  10416. $config_files
  10417. Configuration headers:
  10418. $config_headers
  10419. Report bugs to <bug-autoconf@gnu.org>."
  10420. _ACEOF
  10421. cat >>$CONFIG_STATUS <<_ACEOF
  10422. ac_cs_version="\\
  10423. config.status
  10424. configured by $0, generated by GNU Autoconf 2.59,
  10425. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  10426. Copyright (C) 2003 Free Software Foundation, Inc.
  10427. This config.status script is free software; the Free Software Foundation
  10428. gives unlimited permission to copy, distribute and modify it."
  10429. srcdir=$srcdir
  10430. _ACEOF
  10431. cat >>$CONFIG_STATUS <<\_ACEOF
  10432. # If no file are specified by the user, then we need to provide default
  10433. # value. By we need to know if files were specified by the user.
  10434. ac_need_defaults=:
  10435. while test $# != 0
  10436. do
  10437. case $1 in
  10438. --*=*)
  10439. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  10440. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  10441. ac_shift=:
  10442. ;;
  10443. -*)
  10444. ac_option=$1
  10445. ac_optarg=$2
  10446. ac_shift=shift
  10447. ;;
  10448. *) # This is not an option, so the user has probably given explicit
  10449. # arguments.
  10450. ac_option=$1
  10451. ac_need_defaults=false;;
  10452. esac
  10453. case $ac_option in
  10454. # Handling of the options.
  10455. _ACEOF
  10456. cat >>$CONFIG_STATUS <<\_ACEOF
  10457. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10458. ac_cs_recheck=: ;;
  10459. --version | --vers* | -V )
  10460. echo "$ac_cs_version"; exit 0 ;;
  10461. --he | --h)
  10462. # Conflict between --help and --header
  10463. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  10464. Try \`$0 --help' for more information." >&5
  10465. echo "$as_me: error: ambiguous option: $1
  10466. Try \`$0 --help' for more information." >&2;}
  10467. { (exit 1); exit 1; }; };;
  10468. --help | --hel | -h )
  10469. echo "$ac_cs_usage"; exit 0 ;;
  10470. --debug | --d* | -d )
  10471. debug=: ;;
  10472. --file | --fil | --fi | --f )
  10473. $ac_shift
  10474. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  10475. ac_need_defaults=false;;
  10476. --header | --heade | --head | --hea )
  10477. $ac_shift
  10478. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  10479. ac_need_defaults=false;;
  10480. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10481. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10482. ac_cs_silent=: ;;
  10483. # This is an error.
  10484. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  10485. Try \`$0 --help' for more information." >&5
  10486. echo "$as_me: error: unrecognized option: $1
  10487. Try \`$0 --help' for more information." >&2;}
  10488. { (exit 1); exit 1; }; } ;;
  10489. *) ac_config_targets="$ac_config_targets $1" ;;
  10490. esac
  10491. shift
  10492. done
  10493. ac_configure_extra_args=
  10494. if $ac_cs_silent; then
  10495. exec 6>/dev/null
  10496. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10497. fi
  10498. _ACEOF
  10499. cat >>$CONFIG_STATUS <<_ACEOF
  10500. if \$ac_cs_recheck; then
  10501. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  10502. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10503. fi
  10504. _ACEOF
  10505. cat >>$CONFIG_STATUS <<\_ACEOF
  10506. for ac_config_target in $ac_config_targets
  10507. do
  10508. case "$ac_config_target" in
  10509. # Handling of arguments.
  10510. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10511. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  10512. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  10513. "src/crypto/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  10514. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  10515. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  10516. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  10517. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  10518. { (exit 1); exit 1; }; };;
  10519. esac
  10520. done
  10521. # If the user did not use the arguments to specify the items to instantiate,
  10522. # then the envvar interface is used. Set only those that are not.
  10523. # We use the long form for the default assignment because of an extremely
  10524. # bizarre bug on SunOS 4.1.3.
  10525. if $ac_need_defaults; then
  10526. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10527. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10528. fi
  10529. # Have a temporary directory for convenience. Make it in the build tree
  10530. # simply because there is no reason to put it here, and in addition,
  10531. # creating and moving files from /tmp can sometimes cause problems.
  10532. # Create a temporary directory, and hook for its removal unless debugging.
  10533. $debug ||
  10534. {
  10535. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  10536. trap '{ (exit 1); exit 1; }' 1 2 13 15
  10537. }
  10538. # Create a (secure) tmp directory for tmp files.
  10539. {
  10540. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  10541. test -n "$tmp" && test -d "$tmp"
  10542. } ||
  10543. {
  10544. tmp=./confstat$$-$RANDOM
  10545. (umask 077 && mkdir $tmp)
  10546. } ||
  10547. {
  10548. echo "$me: cannot create a temporary directory in ." >&2
  10549. { (exit 1); exit 1; }
  10550. }
  10551. _ACEOF
  10552. cat >>$CONFIG_STATUS <<_ACEOF
  10553. #
  10554. # CONFIG_FILES section.
  10555. #
  10556. # No need to generate the scripts if there are no CONFIG_FILES.
  10557. # This happens for instance when ./config.status config.h
  10558. if test -n "\$CONFIG_FILES"; then
  10559. # Protect against being on the right side of a sed subst in config.status.
  10560. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  10561. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  10562. s,@SHELL@,$SHELL,;t t
  10563. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  10564. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  10565. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  10566. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  10567. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  10568. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  10569. s,@exec_prefix@,$exec_prefix,;t t
  10570. s,@prefix@,$prefix,;t t
  10571. s,@program_transform_name@,$program_transform_name,;t t
  10572. s,@bindir@,$bindir,;t t
  10573. s,@sbindir@,$sbindir,;t t
  10574. s,@libexecdir@,$libexecdir,;t t
  10575. s,@datadir@,$datadir,;t t
  10576. s,@sysconfdir@,$sysconfdir,;t t
  10577. s,@sharedstatedir@,$sharedstatedir,;t t
  10578. s,@localstatedir@,$localstatedir,;t t
  10579. s,@libdir@,$libdir,;t t
  10580. s,@includedir@,$includedir,;t t
  10581. s,@oldincludedir@,$oldincludedir,;t t
  10582. s,@infodir@,$infodir,;t t
  10583. s,@mandir@,$mandir,;t t
  10584. s,@build_alias@,$build_alias,;t t
  10585. s,@host_alias@,$host_alias,;t t
  10586. s,@target_alias@,$target_alias,;t t
  10587. s,@DEFS@,$DEFS,;t t
  10588. s,@ECHO_C@,$ECHO_C,;t t
  10589. s,@ECHO_N@,$ECHO_N,;t t
  10590. s,@ECHO_T@,$ECHO_T,;t t
  10591. s,@LIBS@,$LIBS,;t t
  10592. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  10593. s,@CXX@,$CXX,;t t
  10594. s,@CXXFLAGS@,$CXXFLAGS,;t t
  10595. s,@LDFLAGS@,$LDFLAGS,;t t
  10596. s,@CPPFLAGS@,$CPPFLAGS,;t t
  10597. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  10598. s,@EXEEXT@,$EXEEXT,;t t
  10599. s,@OBJEXT@,$OBJEXT,;t t
  10600. s,@CXXCPP@,$CXXCPP,;t t
  10601. s,@EGREP@,$EGREP,;t t
  10602. s,@CCDEPMODE@,$CCDEPMODE,;t t
  10603. s,@GCC3@,$GCC3,;t t
  10604. s,@SET_MAKE@,$SET_MAKE,;t t
  10605. s,@HEAD_1@,$HEAD_1,;t t
  10606. s,@AWK@,$AWK,;t t
  10607. s,@BASENAME@,$BASENAME,;t t
  10608. s,@OBJCOPY@,$OBJCOPY,;t t
  10609. s,@STRIP@,$STRIP,;t t
  10610. s,@DIFF@,$DIFF,;t t
  10611. s,@UNAME@,$UNAME,;t t
  10612. s,@CCACHE@,$CCACHE,;t t
  10613. s,@DISTCC@,$DISTCC,;t t
  10614. s,@CCDEBUG@,$CCDEBUG,;t t
  10615. s,@ZLIB@,$ZLIB,;t t
  10616. s,@LIBOBJS@,$LIBOBJS,;t t
  10617. s,@VERSION@,$VERSION,;t t
  10618. s,@NUMVER@,$NUMVER,;t t
  10619. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  10620. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  10621. CEOF
  10622. _ACEOF
  10623. cat >>$CONFIG_STATUS <<\_ACEOF
  10624. # Split the substitutions into bite-sized pieces for seds with
  10625. # small command number limits, like on Digital OSF/1 and HP-UX.
  10626. ac_max_sed_lines=48
  10627. ac_sed_frag=1 # Number of current file.
  10628. ac_beg=1 # First line for current file.
  10629. ac_end=$ac_max_sed_lines # Line after last line for current file.
  10630. ac_more_lines=:
  10631. ac_sed_cmds=
  10632. while $ac_more_lines; do
  10633. if test $ac_beg -gt 1; then
  10634. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  10635. else
  10636. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  10637. fi
  10638. if test ! -s $tmp/subs.frag; then
  10639. ac_more_lines=false
  10640. else
  10641. # The purpose of the label and of the branching condition is to
  10642. # speed up the sed processing (if there are no `@' at all, there
  10643. # is no need to browse any of the substitutions).
  10644. # These are the two extra sed commands mentioned above.
  10645. (echo ':t
  10646. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  10647. if test -z "$ac_sed_cmds"; then
  10648. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  10649. else
  10650. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  10651. fi
  10652. ac_sed_frag=`expr $ac_sed_frag + 1`
  10653. ac_beg=$ac_end
  10654. ac_end=`expr $ac_end + $ac_max_sed_lines`
  10655. fi
  10656. done
  10657. if test -z "$ac_sed_cmds"; then
  10658. ac_sed_cmds=cat
  10659. fi
  10660. fi # test -n "$CONFIG_FILES"
  10661. _ACEOF
  10662. cat >>$CONFIG_STATUS <<\_ACEOF
  10663. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  10664. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  10665. case $ac_file in
  10666. - | *:- | *:-:* ) # input from stdin
  10667. cat >$tmp/stdin
  10668. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10669. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10670. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10671. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10672. * ) ac_file_in=$ac_file.in ;;
  10673. esac
  10674. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  10675. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  10676. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10677. X"$ac_file" : 'X\(//\)[^/]' \| \
  10678. X"$ac_file" : 'X\(//\)$' \| \
  10679. X"$ac_file" : 'X\(/\)' \| \
  10680. . : '\(.\)' 2>/dev/null ||
  10681. echo X"$ac_file" |
  10682. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10683. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10684. /^X\(\/\/\)$/{ s//\1/; q; }
  10685. /^X\(\/\).*/{ s//\1/; q; }
  10686. s/.*/./; q'`
  10687. { if $as_mkdir_p; then
  10688. mkdir -p "$ac_dir"
  10689. else
  10690. as_dir="$ac_dir"
  10691. as_dirs=
  10692. while test ! -d "$as_dir"; do
  10693. as_dirs="$as_dir $as_dirs"
  10694. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  10695. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10696. X"$as_dir" : 'X\(//\)[^/]' \| \
  10697. X"$as_dir" : 'X\(//\)$' \| \
  10698. X"$as_dir" : 'X\(/\)' \| \
  10699. . : '\(.\)' 2>/dev/null ||
  10700. echo X"$as_dir" |
  10701. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10702. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10703. /^X\(\/\/\)$/{ s//\1/; q; }
  10704. /^X\(\/\).*/{ s//\1/; q; }
  10705. s/.*/./; q'`
  10706. done
  10707. test ! -n "$as_dirs" || mkdir $as_dirs
  10708. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  10709. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  10710. { (exit 1); exit 1; }; }; }
  10711. ac_builddir=.
  10712. if test "$ac_dir" != .; then
  10713. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  10714. # A "../" for each directory in $ac_dir_suffix.
  10715. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  10716. else
  10717. ac_dir_suffix= ac_top_builddir=
  10718. fi
  10719. case $srcdir in
  10720. .) # No --srcdir option. We are building in place.
  10721. ac_srcdir=.
  10722. if test -z "$ac_top_builddir"; then
  10723. ac_top_srcdir=.
  10724. else
  10725. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  10726. fi ;;
  10727. [\\/]* | ?:[\\/]* ) # Absolute path.
  10728. ac_srcdir=$srcdir$ac_dir_suffix;
  10729. ac_top_srcdir=$srcdir ;;
  10730. *) # Relative path.
  10731. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  10732. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  10733. esac
  10734. # Do not use `cd foo && pwd` to compute absolute paths, because
  10735. # the directories may not exist.
  10736. case `pwd` in
  10737. .) ac_abs_builddir="$ac_dir";;
  10738. *)
  10739. case "$ac_dir" in
  10740. .) ac_abs_builddir=`pwd`;;
  10741. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  10742. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  10743. esac;;
  10744. esac
  10745. case $ac_abs_builddir in
  10746. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  10747. *)
  10748. case ${ac_top_builddir}. in
  10749. .) ac_abs_top_builddir=$ac_abs_builddir;;
  10750. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  10751. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  10752. esac;;
  10753. esac
  10754. case $ac_abs_builddir in
  10755. .) ac_abs_srcdir=$ac_srcdir;;
  10756. *)
  10757. case $ac_srcdir in
  10758. .) ac_abs_srcdir=$ac_abs_builddir;;
  10759. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  10760. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  10761. esac;;
  10762. esac
  10763. case $ac_abs_builddir in
  10764. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  10765. *)
  10766. case $ac_top_srcdir in
  10767. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  10768. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  10769. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  10770. esac;;
  10771. esac
  10772. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10773. # use $as_me), people would be surprised to read:
  10774. # /* config.h. Generated by config.status. */
  10775. if test x"$ac_file" = x-; then
  10776. configure_input=
  10777. else
  10778. configure_input="$ac_file. "
  10779. fi
  10780. configure_input=$configure_input"Generated from `echo $ac_file_in |
  10781. sed 's,.*/,,'` by configure."
  10782. # First look for the input files in the build tree, otherwise in the
  10783. # src tree.
  10784. ac_file_inputs=`IFS=:
  10785. for f in $ac_file_in; do
  10786. case $f in
  10787. -) echo $tmp/stdin ;;
  10788. [\\/$]*)
  10789. # Absolute (can't be DOS-style, as IFS=:)
  10790. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10791. echo "$as_me: error: cannot find input file: $f" >&2;}
  10792. { (exit 1); exit 1; }; }
  10793. echo "$f";;
  10794. *) # Relative
  10795. if test -f "$f"; then
  10796. # Build tree
  10797. echo "$f"
  10798. elif test -f "$srcdir/$f"; then
  10799. # Source tree
  10800. echo "$srcdir/$f"
  10801. else
  10802. # /dev/null tree
  10803. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10804. echo "$as_me: error: cannot find input file: $f" >&2;}
  10805. { (exit 1); exit 1; }; }
  10806. fi;;
  10807. esac
  10808. done` || { (exit 1); exit 1; }
  10809. if test x"$ac_file" != x-; then
  10810. { echo "$as_me:$LINENO: creating $ac_file" >&5
  10811. echo "$as_me: creating $ac_file" >&6;}
  10812. rm -f "$ac_file"
  10813. fi
  10814. _ACEOF
  10815. cat >>$CONFIG_STATUS <<_ACEOF
  10816. sed "$ac_vpsub
  10817. $extrasub
  10818. _ACEOF
  10819. cat >>$CONFIG_STATUS <<\_ACEOF
  10820. :t
  10821. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10822. s,@configure_input@,$configure_input,;t t
  10823. s,@srcdir@,$ac_srcdir,;t t
  10824. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  10825. s,@top_srcdir@,$ac_top_srcdir,;t t
  10826. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  10827. s,@builddir@,$ac_builddir,;t t
  10828. s,@abs_builddir@,$ac_abs_builddir,;t t
  10829. s,@top_builddir@,$ac_top_builddir,;t t
  10830. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  10831. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  10832. rm -f $tmp/stdin
  10833. if test x"$ac_file" != x-; then
  10834. mv $tmp/out $ac_file
  10835. else
  10836. cat $tmp/out
  10837. rm -f $tmp/out
  10838. fi
  10839. done
  10840. _ACEOF
  10841. cat >>$CONFIG_STATUS <<\_ACEOF
  10842. #
  10843. # CONFIG_HEADER section.
  10844. #
  10845. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  10846. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  10847. #
  10848. # ac_d sets the value in "#define NAME VALUE" lines.
  10849. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  10850. ac_dB='[ ].*$,\1#\2'
  10851. ac_dC=' '
  10852. ac_dD=',;t'
  10853. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  10854. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  10855. ac_uB='$,\1#\2define\3'
  10856. ac_uC=' '
  10857. ac_uD=',;t'
  10858. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  10859. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  10860. case $ac_file in
  10861. - | *:- | *:-:* ) # input from stdin
  10862. cat >$tmp/stdin
  10863. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10864. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10865. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10866. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10867. * ) ac_file_in=$ac_file.in ;;
  10868. esac
  10869. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  10870. echo "$as_me: creating $ac_file" >&6;}
  10871. # First look for the input files in the build tree, otherwise in the
  10872. # src tree.
  10873. ac_file_inputs=`IFS=:
  10874. for f in $ac_file_in; do
  10875. case $f in
  10876. -) echo $tmp/stdin ;;
  10877. [\\/$]*)
  10878. # Absolute (can't be DOS-style, as IFS=:)
  10879. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10880. echo "$as_me: error: cannot find input file: $f" >&2;}
  10881. { (exit 1); exit 1; }; }
  10882. # Do quote $f, to prevent DOS paths from being IFS'd.
  10883. echo "$f";;
  10884. *) # Relative
  10885. if test -f "$f"; then
  10886. # Build tree
  10887. echo "$f"
  10888. elif test -f "$srcdir/$f"; then
  10889. # Source tree
  10890. echo "$srcdir/$f"
  10891. else
  10892. # /dev/null tree
  10893. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10894. echo "$as_me: error: cannot find input file: $f" >&2;}
  10895. { (exit 1); exit 1; }; }
  10896. fi;;
  10897. esac
  10898. done` || { (exit 1); exit 1; }
  10899. # Remove the trailing spaces.
  10900. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  10901. _ACEOF
  10902. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  10903. # `conftest.undefs', that substitutes the proper values into
  10904. # config.h.in to produce config.h. The first handles `#define'
  10905. # templates, and the second `#undef' templates.
  10906. # And first: Protect against being on the right side of a sed subst in
  10907. # config.status. Protect against being in an unquoted here document
  10908. # in config.status.
  10909. rm -f conftest.defines conftest.undefs
  10910. # Using a here document instead of a string reduces the quoting nightmare.
  10911. # Putting comments in sed scripts is not portable.
  10912. #
  10913. # `end' is used to avoid that the second main sed command (meant for
  10914. # 0-ary CPP macros) applies to n-ary macro definitions.
  10915. # See the Autoconf documentation for `clear'.
  10916. cat >confdef2sed.sed <<\_ACEOF
  10917. s/[\\&,]/\\&/g
  10918. s,[\\$`],\\&,g
  10919. t clear
  10920. : clear
  10921. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  10922. t end
  10923. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  10924. : end
  10925. _ACEOF
  10926. # If some macros were called several times there might be several times
  10927. # the same #defines, which is useless. Nevertheless, we may not want to
  10928. # sort them, since we want the *last* AC-DEFINE to be honored.
  10929. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  10930. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  10931. rm -f confdef2sed.sed
  10932. # This sed command replaces #undef with comments. This is necessary, for
  10933. # example, in the case of _POSIX_SOURCE, which is predefined and required
  10934. # on some systems where configure will not decide to define it.
  10935. cat >>conftest.undefs <<\_ACEOF
  10936. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  10937. _ACEOF
  10938. # Break up conftest.defines because some shells have a limit on the size
  10939. # of here documents, and old seds have small limits too (100 cmds).
  10940. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  10941. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  10942. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  10943. echo ' :' >>$CONFIG_STATUS
  10944. rm -f conftest.tail
  10945. while grep . conftest.defines >/dev/null
  10946. do
  10947. # Write a limited-size here document to $tmp/defines.sed.
  10948. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  10949. # Speed up: don't consider the non `#define' lines.
  10950. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  10951. # Work around the forget-to-reset-the-flag bug.
  10952. echo 't clr' >>$CONFIG_STATUS
  10953. echo ': clr' >>$CONFIG_STATUS
  10954. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  10955. echo 'CEOF
  10956. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  10957. rm -f $tmp/in
  10958. mv $tmp/out $tmp/in
  10959. ' >>$CONFIG_STATUS
  10960. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  10961. rm -f conftest.defines
  10962. mv conftest.tail conftest.defines
  10963. done
  10964. rm -f conftest.defines
  10965. echo ' fi # grep' >>$CONFIG_STATUS
  10966. echo >>$CONFIG_STATUS
  10967. # Break up conftest.undefs because some shells have a limit on the size
  10968. # of here documents, and old seds have small limits too (100 cmds).
  10969. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  10970. rm -f conftest.tail
  10971. while grep . conftest.undefs >/dev/null
  10972. do
  10973. # Write a limited-size here document to $tmp/undefs.sed.
  10974. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  10975. # Speed up: don't consider the non `#undef'
  10976. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  10977. # Work around the forget-to-reset-the-flag bug.
  10978. echo 't clr' >>$CONFIG_STATUS
  10979. echo ': clr' >>$CONFIG_STATUS
  10980. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  10981. echo 'CEOF
  10982. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  10983. rm -f $tmp/in
  10984. mv $tmp/out $tmp/in
  10985. ' >>$CONFIG_STATUS
  10986. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  10987. rm -f conftest.undefs
  10988. mv conftest.tail conftest.undefs
  10989. done
  10990. rm -f conftest.undefs
  10991. cat >>$CONFIG_STATUS <<\_ACEOF
  10992. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10993. # use $as_me), people would be surprised to read:
  10994. # /* config.h. Generated by config.status. */
  10995. if test x"$ac_file" = x-; then
  10996. echo "/* Generated by configure. */" >$tmp/config.h
  10997. else
  10998. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  10999. fi
  11000. cat $tmp/in >>$tmp/config.h
  11001. rm -f $tmp/in
  11002. if test x"$ac_file" != x-; then
  11003. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  11004. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11005. echo "$as_me: $ac_file is unchanged" >&6;}
  11006. else
  11007. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11008. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11009. X"$ac_file" : 'X\(//\)[^/]' \| \
  11010. X"$ac_file" : 'X\(//\)$' \| \
  11011. X"$ac_file" : 'X\(/\)' \| \
  11012. . : '\(.\)' 2>/dev/null ||
  11013. echo X"$ac_file" |
  11014. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11015. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11016. /^X\(\/\/\)$/{ s//\1/; q; }
  11017. /^X\(\/\).*/{ s//\1/; q; }
  11018. s/.*/./; q'`
  11019. { if $as_mkdir_p; then
  11020. mkdir -p "$ac_dir"
  11021. else
  11022. as_dir="$ac_dir"
  11023. as_dirs=
  11024. while test ! -d "$as_dir"; do
  11025. as_dirs="$as_dir $as_dirs"
  11026. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11027. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11028. X"$as_dir" : 'X\(//\)[^/]' \| \
  11029. X"$as_dir" : 'X\(//\)$' \| \
  11030. X"$as_dir" : 'X\(/\)' \| \
  11031. . : '\(.\)' 2>/dev/null ||
  11032. echo X"$as_dir" |
  11033. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11034. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11035. /^X\(\/\/\)$/{ s//\1/; q; }
  11036. /^X\(\/\).*/{ s//\1/; q; }
  11037. s/.*/./; q'`
  11038. done
  11039. test ! -n "$as_dirs" || mkdir $as_dirs
  11040. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11041. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11042. { (exit 1); exit 1; }; }; }
  11043. rm -f $ac_file
  11044. mv $tmp/config.h $ac_file
  11045. fi
  11046. else
  11047. cat $tmp/config.h
  11048. rm -f $tmp/config.h
  11049. fi
  11050. done
  11051. _ACEOF
  11052. cat >>$CONFIG_STATUS <<\_ACEOF
  11053. { (exit 0); exit 0; }
  11054. _ACEOF
  11055. chmod +x $CONFIG_STATUS
  11056. ac_clean_files=$ac_clean_files_save
  11057. # configure is writing to config.log, and then calls config.status.
  11058. # config.status does its own redirection, appending to config.log.
  11059. # Unfortunately, on DOS this fails, as config.log is still kept open
  11060. # by configure, so config.status won't be able to write to it; its
  11061. # output is simply discarded. So we exec the FD to /dev/null,
  11062. # effectively closing config.log, so it can be properly (re)opened and
  11063. # appended to by config.status. When coming back to configure, we
  11064. # need to make the FD available again.
  11065. if test "$no_create" != yes; then
  11066. ac_cs_success=:
  11067. ac_config_status_args=
  11068. test "$silent" = yes &&
  11069. ac_config_status_args="$ac_config_status_args --quiet"
  11070. exec 5>/dev/null
  11071. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11072. exec 5>>config.log
  11073. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11074. # would make configure fail if this is the last instruction.
  11075. $ac_cs_success || { (exit 1); exit 1; }
  11076. fi