configure 331 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.41 .
  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 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. #AC_CHECK_PROG(CCACHE, ccache, ccache)
  2924. # Extract the first word of "distcc", so it can be a program name with args.
  2925. set dummy distcc; ac_word=$2
  2926. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2927. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2928. if test "${ac_cv_prog_DISTCC+set}" = set; then
  2929. echo $ECHO_N "(cached) $ECHO_C" >&6
  2930. else
  2931. if test -n "$DISTCC"; then
  2932. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  2933. else
  2934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2935. for as_dir in $PATH
  2936. do
  2937. IFS=$as_save_IFS
  2938. test -z "$as_dir" && as_dir=.
  2939. for ac_exec_ext in '' $ac_executable_extensions; do
  2940. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2941. ac_cv_prog_DISTCC="distcc"
  2942. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2943. break 2
  2944. fi
  2945. done
  2946. done
  2947. fi
  2948. fi
  2949. DISTCC=$ac_cv_prog_DISTCC
  2950. if test -n "$DISTCC"; then
  2951. echo "$as_me:$LINENO: result: $DISTCC" >&5
  2952. echo "${ECHO_T}$DISTCC" >&6
  2953. else
  2954. echo "$as_me:$LINENO: result: no" >&5
  2955. echo "${ECHO_T}no" >&6
  2956. fi
  2957. # Test the os and set the module linking settings
  2958. EGG_CYGWIN=no
  2959. echo "$as_me:$LINENO: checking system type" >&5
  2960. echo $ECHO_N "checking system type... $ECHO_C" >&6
  2961. if test "${egg_cv_var_system_type+set}" = set; then
  2962. echo $ECHO_N "(cached) $ECHO_C" >&6
  2963. else
  2964. egg_cv_var_system_type=`$UNAME -s`
  2965. fi
  2966. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  2967. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  2968. echo "$as_me:$LINENO: checking system release" >&5
  2969. echo $ECHO_N "checking system release... $ECHO_C" >&6
  2970. if test "${egg_cv_var_system_release+set}" = set; then
  2971. echo $ECHO_N "(cached) $ECHO_C" >&6
  2972. else
  2973. egg_cv_var_system_release=`$UNAME -r`
  2974. fi
  2975. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  2976. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  2977. echo "$as_me:$LINENO: checking system machine" >&5
  2978. echo $ECHO_N "checking system machine... $ECHO_C" >&6
  2979. if test "${egg_cv_var_system_machine+set}" = set; then
  2980. echo $ECHO_N "(cached) $ECHO_C" >&6
  2981. else
  2982. egg_cv_var_system_machine=`$UNAME -m`
  2983. fi
  2984. echo "$as_me:$LINENO: result: $egg_cv_var_system_machine" >&5
  2985. echo "${ECHO_T}$egg_cv_var_system_machine" >&6
  2986. case "$egg_cv_var_system_machine" in
  2987. i*)
  2988. CXX="$CXX -march=i486"
  2989. ;;
  2990. *)
  2991. ;;
  2992. esac
  2993. case "$egg_cv_var_system_type" in
  2994. BSD/OS)
  2995. ;;
  2996. CYGWI*)
  2997. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  2998. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  2999. WIN32FLAGS=
  3000. cat >conftest.$ac_ext <<_ACEOF
  3001. /* confdefs.h. */
  3002. _ACEOF
  3003. cat confdefs.h >>conftest.$ac_ext
  3004. cat >>conftest.$ac_ext <<_ACEOF
  3005. /* end confdefs.h. */
  3006. int
  3007. main ()
  3008. {
  3009. #ifndef WIN32
  3010. # ifndef _WIN32
  3011. # error WIN32 or _WIN32 not defined
  3012. # endif
  3013. #endif
  3014. ;
  3015. return 0;
  3016. }
  3017. _ACEOF
  3018. rm -f conftest.$ac_objext
  3019. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3020. (eval $ac_compile) 2>conftest.er1
  3021. ac_status=$?
  3022. grep -v '^ *+' conftest.er1 >conftest.err
  3023. rm -f conftest.er1
  3024. cat conftest.err >&5
  3025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3026. (exit $ac_status); } &&
  3027. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3028. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3029. (eval $ac_try) 2>&5
  3030. ac_status=$?
  3031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3032. (exit $ac_status); }; } &&
  3033. { ac_try='test -s conftest.$ac_objext'
  3034. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3035. (eval $ac_try) 2>&5
  3036. ac_status=$?
  3037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3038. (exit $ac_status); }; }; then
  3039. echo "$as_me:$LINENO: result: present by default" >&5
  3040. echo "${ECHO_T}present by default" >&6
  3041. else
  3042. echo "$as_me: failed program was:" >&5
  3043. sed 's/^/| /' conftest.$ac_ext >&5
  3044. ac_compile_save="$ac_compile"
  3045. save_CXX="$CXX"
  3046. ac_compile="$ac_compile -mwin32"
  3047. CXX="$CXX -mwin32"
  3048. cat >conftest.$ac_ext <<_ACEOF
  3049. /* confdefs.h. */
  3050. _ACEOF
  3051. cat confdefs.h >>conftest.$ac_ext
  3052. cat >>conftest.$ac_ext <<_ACEOF
  3053. /* end confdefs.h. */
  3054. int
  3055. main ()
  3056. {
  3057. #ifndef WIN32
  3058. # ifndef _WIN32
  3059. # error WIN32 or _WIN32 not defined
  3060. # endif
  3061. #endif
  3062. ;
  3063. return 0;
  3064. }
  3065. _ACEOF
  3066. rm -f conftest.$ac_objext
  3067. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3068. (eval $ac_compile) 2>conftest.er1
  3069. ac_status=$?
  3070. grep -v '^ *+' conftest.er1 >conftest.err
  3071. rm -f conftest.er1
  3072. cat conftest.err >&5
  3073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3074. (exit $ac_status); } &&
  3075. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3076. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3077. (eval $ac_try) 2>&5
  3078. ac_status=$?
  3079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3080. (exit $ac_status); }; } &&
  3081. { ac_try='test -s conftest.$ac_objext'
  3082. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3083. (eval $ac_try) 2>&5
  3084. ac_status=$?
  3085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3086. (exit $ac_status); }; }; then
  3087. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3088. echo "${ECHO_T}found via -mwin32" >&6
  3089. ac_compile="$ac_compile_save"
  3090. CXX="$save_CC"
  3091. WIN32FLAGS="-mwin32"
  3092. else
  3093. echo "$as_me: failed program was:" >&5
  3094. sed 's/^/| /' conftest.$ac_ext >&5
  3095. ac_compile="$ac_compile_save"
  3096. CXX="$save_CC"
  3097. echo "$as_me:$LINENO: result: not found" >&5
  3098. echo "${ECHO_T}not found" >&6
  3099. fi
  3100. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3101. fi
  3102. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3103. CXX="$CXX $WIN32FLAGS"
  3104. EGG_CYGWIN="yes"
  3105. if test $EGG_CYGWIN = "yes"; then
  3106. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3107. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3108. if test -r /usr/lib/binmode.o; then
  3109. echo "$as_me:$LINENO: result: yes" >&5
  3110. echo "${ECHO_T}yes" >&6
  3111. LIBS="$LIBS /usr/lib/binmode.o"
  3112. else
  3113. echo "$as_me:$LINENO: result: no" >&5
  3114. echo "${ECHO_T}no" >&6
  3115. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3116. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3117. fi
  3118. fi
  3119. cat >>confdefs.h <<\_ACEOF
  3120. #define CYGWIN_HACKS 1
  3121. _ACEOF
  3122. cat >>confdefs.h <<\_ACEOF
  3123. #define WIN32_LEAN_AND_MEAN 1
  3124. _ACEOF
  3125. ;;
  3126. IRIX)
  3127. ;;
  3128. Ultrix)
  3129. SHELL=/bin/sh5
  3130. ;;
  3131. SINIX*)
  3132. ;;
  3133. BeOS)
  3134. ;;
  3135. Linux)
  3136. ;;
  3137. Lynx)
  3138. ;;
  3139. QNX)
  3140. ;;
  3141. OSF1)
  3142. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3143. V*)
  3144. if test "$AWK" = "gawk"
  3145. then
  3146. AWK=awk
  3147. fi
  3148. ;;
  3149. 1.0|1.1|1.2)
  3150. cat >>confdefs.h <<\_ACEOF
  3151. #define OSF1_HACKS 1
  3152. _ACEOF
  3153. ;;
  3154. 1.*)
  3155. cat >>confdefs.h <<\_ACEOF
  3156. #define OSF1_HACKS 1
  3157. _ACEOF
  3158. ;;
  3159. *)
  3160. ;;
  3161. esac
  3162. cat >>confdefs.h <<\_ACEOF
  3163. #define STOP_UAC 1
  3164. _ACEOF
  3165. cat >>confdefs.h <<\_ACEOF
  3166. #define BROKEN_SNPRINTF 1
  3167. _ACEOF
  3168. ;;
  3169. SunOS)
  3170. ;;
  3171. *BSD)
  3172. # FreeBSD/OpenBSD/NetBSD
  3173. ;;
  3174. *)
  3175. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3176. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3177. if test -r /mach
  3178. then
  3179. echo "$as_me:$LINENO: result: yes" >&5
  3180. echo "${ECHO_T}yes" >&6
  3181. cat >>confdefs.h <<\_ACEOF
  3182. #define BORGCUBES 1
  3183. _ACEOF
  3184. else
  3185. echo "$as_me:$LINENO: result: no" >&5
  3186. echo "${ECHO_T}no" >&6
  3187. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3188. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3189. if test -r /cmds
  3190. then
  3191. echo "$as_me:$LINENO: result: yes" >&5
  3192. echo "${ECHO_T}yes" >&6
  3193. else
  3194. echo "$as_me:$LINENO: result: no" >&5
  3195. echo "${ECHO_T}no" >&6
  3196. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3197. echo "${ECHO_T}Something unknown!" >&6
  3198. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3199. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3200. fi
  3201. fi
  3202. ;;
  3203. esac
  3204. # Check for IPv6 support
  3205. #EGG_IPV6_SUPPORTED
  3206. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  3207. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  3208. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  3209. if test "${enable_ipv6+set}" = set; then
  3210. enableval="$enable_ipv6"
  3211. ac_cv_dipv6="yes"
  3212. echo "$as_me:$LINENO: result: yes" >&5
  3213. echo "${ECHO_T}yes" >&6
  3214. else
  3215. ac_cv_dipv6="no"
  3216. if test "$egg_cv_ipv6_supported" = "no"; then
  3217. ac_cv_dipv6="no"
  3218. fi
  3219. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  3220. echo "${ECHO_T}$ac_cv_dipv6" >&6
  3221. fi;
  3222. if ! test "$EGG_CYGWIN" = "yes"; then
  3223. if test "$ac_cv_dipv6" = "no"; then
  3224. cat >>confdefs.h <<\_ACEOF
  3225. #define USE_IPV6 1
  3226. _ACEOF
  3227. fi
  3228. fi
  3229. echo "$as_me:$LINENO: checking for socklen_t" >&5
  3230. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  3231. if test "${egg_cv_socklen_t+set}" = set; then
  3232. echo $ECHO_N "(cached) $ECHO_C" >&6
  3233. else
  3234. if test "$cross_compiling" = yes; then
  3235. egg_cv_socklen_t=no
  3236. else
  3237. cat >conftest.$ac_ext <<_ACEOF
  3238. /* confdefs.h. */
  3239. _ACEOF
  3240. cat confdefs.h >>conftest.$ac_ext
  3241. cat >>conftest.$ac_ext <<_ACEOF
  3242. /* end confdefs.h. */
  3243. #include <unistd.h>
  3244. #include <sys/types.h>
  3245. #include <sys/socket.h>
  3246. #include <netinet/in.h>
  3247. #include <arpa/inet.h>
  3248. int main()
  3249. {
  3250. socklen_t test = sizeof(int);
  3251. return 0;
  3252. }
  3253. _ACEOF
  3254. rm -f conftest$ac_exeext
  3255. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3256. (eval $ac_link) 2>&5
  3257. ac_status=$?
  3258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3259. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3260. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3261. (eval $ac_try) 2>&5
  3262. ac_status=$?
  3263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3264. (exit $ac_status); }; }; then
  3265. egg_cv_socklen_t=yes
  3266. else
  3267. echo "$as_me: program exited with status $ac_status" >&5
  3268. echo "$as_me: failed program was:" >&5
  3269. sed 's/^/| /' conftest.$ac_ext >&5
  3270. ( exit $ac_status )
  3271. egg_cv_socklen_t=no
  3272. fi
  3273. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3274. fi
  3275. fi
  3276. if test "$egg_cv_socklen_t" = "yes"; then
  3277. cat >>confdefs.h <<\_ACEOF
  3278. #define HAVE_SOCKLEN_T 1
  3279. _ACEOF
  3280. echo "$as_me:$LINENO: result: yes" >&5
  3281. echo "${ECHO_T}yes" >&6
  3282. else
  3283. echo "$as_me:$LINENO: result: no" >&5
  3284. echo "${ECHO_T}no" >&6
  3285. fi
  3286. # Check for inconsistent random() functions
  3287. echo "$as_me:$LINENO: checking for random limit" >&5
  3288. echo $ECHO_N "checking for random limit... $ECHO_C" >&6
  3289. case "$egg_cv_var_system_type" in
  3290. SunOS) RMAX=0x7FFFFFFF
  3291. ;;
  3292. *) RMAX=RAND_MAX
  3293. ;;
  3294. esac
  3295. echo "$as_me:$LINENO: result: $RMAX" >&5
  3296. echo "${ECHO_T}$RMAX" >&6
  3297. cat >>confdefs.h <<_ACEOF
  3298. #define RANDOM_MAX $RMAX
  3299. _ACEOF
  3300. # Create static binaries
  3301. if test -z "$no_static"
  3302. then
  3303. if test -n "$GXX"
  3304. then
  3305. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  3306. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  3307. if test "${egg_cv_var_ccstatic+set}" = set; then
  3308. echo $ECHO_N "(cached) $ECHO_C" >&6
  3309. else
  3310. ac_old_CXX="$CXX"
  3311. CXX="$CXX -static"
  3312. cat >conftest.$ac_ext <<_ACEOF
  3313. /* confdefs.h. */
  3314. _ACEOF
  3315. cat confdefs.h >>conftest.$ac_ext
  3316. cat >>conftest.$ac_ext <<_ACEOF
  3317. /* end confdefs.h. */
  3318. int
  3319. main ()
  3320. {
  3321. ;
  3322. return 0;
  3323. }
  3324. _ACEOF
  3325. rm -f conftest.$ac_objext
  3326. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3327. (eval $ac_compile) 2>conftest.er1
  3328. ac_status=$?
  3329. grep -v '^ *+' conftest.er1 >conftest.err
  3330. rm -f conftest.er1
  3331. cat conftest.err >&5
  3332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3333. (exit $ac_status); } &&
  3334. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3335. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3336. (eval $ac_try) 2>&5
  3337. ac_status=$?
  3338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3339. (exit $ac_status); }; } &&
  3340. { ac_try='test -s conftest.$ac_objext'
  3341. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3342. (eval $ac_try) 2>&5
  3343. ac_status=$?
  3344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3345. (exit $ac_status); }; }; then
  3346. egg_cv_var_ccstatic="yes"
  3347. else
  3348. echo "$as_me: failed program was:" >&5
  3349. sed 's/^/| /' conftest.$ac_ext >&5
  3350. egg_cv_var_ccstatic="no"
  3351. fi
  3352. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3353. CXX="$ac_old_CXX"
  3354. fi
  3355. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  3356. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  3357. if test "$egg_cv_var_ccstatic" = "yes"
  3358. then
  3359. CCDEBUG="$CXX"
  3360. CXX="$CXX -static"
  3361. else
  3362. cat << 'EOF' >&2
  3363. configure: error:
  3364. Your C compiler does not support -static.
  3365. This compile flag is required for the botpack.
  3366. EOF
  3367. exit 1
  3368. fi
  3369. fi
  3370. fi
  3371. #checkpoint
  3372. cat >confcache <<\_ACEOF
  3373. # This file is a shell script that caches the results of configure
  3374. # tests run on this system so they can be shared between configure
  3375. # scripts and configure runs, see configure's option --config-cache.
  3376. # It is not useful on other systems. If it contains results you don't
  3377. # want to keep, you may remove or edit it.
  3378. #
  3379. # config.status only pays attention to the cache file if you give it
  3380. # the --recheck option to rerun configure.
  3381. #
  3382. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3383. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3384. # following values.
  3385. _ACEOF
  3386. # The following way of writing the cache mishandles newlines in values,
  3387. # but we know of no workaround that is simple, portable, and efficient.
  3388. # So, don't put newlines in cache variables' values.
  3389. # Ultrix sh set writes to stderr and can't be redirected directly,
  3390. # and sets the high bit in the cache file unless we assign to the vars.
  3391. {
  3392. (set) 2>&1 |
  3393. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  3394. *ac_space=\ *)
  3395. # `set' does not quote correctly, so add quotes (double-quote
  3396. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3397. sed -n \
  3398. "s/'/'\\\\''/g;
  3399. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3400. ;;
  3401. *)
  3402. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3403. sed -n \
  3404. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  3405. ;;
  3406. esac;
  3407. } |
  3408. sed '
  3409. t clear
  3410. : clear
  3411. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3412. t end
  3413. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3414. : end' >>confcache
  3415. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  3416. if test -w $cache_file; then
  3417. test "x$cache_file" != "x/dev/null"
  3418. cat confcache >$cache_file
  3419. else
  3420. echo "not updating unwritable cache $cache_file"
  3421. fi
  3422. fi
  3423. rm -f confcache
  3424. # Checks for system libraries
  3425. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  3426. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  3427. if test "${ac_cv_lib_socket_socket+set}" = set; then
  3428. echo $ECHO_N "(cached) $ECHO_C" >&6
  3429. else
  3430. ac_check_lib_save_LIBS=$LIBS
  3431. LIBS="-lsocket $LIBS"
  3432. cat >conftest.$ac_ext <<_ACEOF
  3433. /* confdefs.h. */
  3434. _ACEOF
  3435. cat confdefs.h >>conftest.$ac_ext
  3436. cat >>conftest.$ac_ext <<_ACEOF
  3437. /* end confdefs.h. */
  3438. /* Override any gcc2 internal prototype to avoid an error. */
  3439. #ifdef __cplusplus
  3440. extern "C"
  3441. #endif
  3442. /* We use char because int might match the return type of a gcc2
  3443. builtin and then its argument prototype would still apply. */
  3444. char socket ();
  3445. int
  3446. main ()
  3447. {
  3448. socket ();
  3449. ;
  3450. return 0;
  3451. }
  3452. _ACEOF
  3453. rm -f conftest.$ac_objext conftest$ac_exeext
  3454. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3455. (eval $ac_link) 2>conftest.er1
  3456. ac_status=$?
  3457. grep -v '^ *+' conftest.er1 >conftest.err
  3458. rm -f conftest.er1
  3459. cat conftest.err >&5
  3460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3461. (exit $ac_status); } &&
  3462. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3463. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3464. (eval $ac_try) 2>&5
  3465. ac_status=$?
  3466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3467. (exit $ac_status); }; } &&
  3468. { ac_try='test -s conftest$ac_exeext'
  3469. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3470. (eval $ac_try) 2>&5
  3471. ac_status=$?
  3472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3473. (exit $ac_status); }; }; then
  3474. ac_cv_lib_socket_socket=yes
  3475. else
  3476. echo "$as_me: failed program was:" >&5
  3477. sed 's/^/| /' conftest.$ac_ext >&5
  3478. ac_cv_lib_socket_socket=no
  3479. fi
  3480. rm -f conftest.err conftest.$ac_objext \
  3481. conftest$ac_exeext conftest.$ac_ext
  3482. LIBS=$ac_check_lib_save_LIBS
  3483. fi
  3484. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  3485. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  3486. if test $ac_cv_lib_socket_socket = yes; then
  3487. cat >>confdefs.h <<_ACEOF
  3488. #define HAVE_LIBSOCKET 1
  3489. _ACEOF
  3490. LIBS="-lsocket $LIBS"
  3491. fi
  3492. # AC_CHECK_LIB(nsl, connect)
  3493. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  3494. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  3495. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  3496. echo $ECHO_N "(cached) $ECHO_C" >&6
  3497. else
  3498. ac_check_lib_save_LIBS=$LIBS
  3499. LIBS="-ldns $LIBS"
  3500. cat >conftest.$ac_ext <<_ACEOF
  3501. /* confdefs.h. */
  3502. _ACEOF
  3503. cat confdefs.h >>conftest.$ac_ext
  3504. cat >>conftest.$ac_ext <<_ACEOF
  3505. /* end confdefs.h. */
  3506. /* Override any gcc2 internal prototype to avoid an error. */
  3507. #ifdef __cplusplus
  3508. extern "C"
  3509. #endif
  3510. /* We use char because int might match the return type of a gcc2
  3511. builtin and then its argument prototype would still apply. */
  3512. char gethostbyname ();
  3513. int
  3514. main ()
  3515. {
  3516. gethostbyname ();
  3517. ;
  3518. return 0;
  3519. }
  3520. _ACEOF
  3521. rm -f conftest.$ac_objext conftest$ac_exeext
  3522. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3523. (eval $ac_link) 2>conftest.er1
  3524. ac_status=$?
  3525. grep -v '^ *+' conftest.er1 >conftest.err
  3526. rm -f conftest.er1
  3527. cat conftest.err >&5
  3528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3529. (exit $ac_status); } &&
  3530. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3531. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3532. (eval $ac_try) 2>&5
  3533. ac_status=$?
  3534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3535. (exit $ac_status); }; } &&
  3536. { ac_try='test -s conftest$ac_exeext'
  3537. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3538. (eval $ac_try) 2>&5
  3539. ac_status=$?
  3540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3541. (exit $ac_status); }; }; then
  3542. ac_cv_lib_dns_gethostbyname=yes
  3543. else
  3544. echo "$as_me: failed program was:" >&5
  3545. sed 's/^/| /' conftest.$ac_ext >&5
  3546. ac_cv_lib_dns_gethostbyname=no
  3547. fi
  3548. rm -f conftest.err conftest.$ac_objext \
  3549. conftest$ac_exeext conftest.$ac_ext
  3550. LIBS=$ac_check_lib_save_LIBS
  3551. fi
  3552. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  3553. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  3554. if test $ac_cv_lib_dns_gethostbyname = yes; then
  3555. cat >>confdefs.h <<_ACEOF
  3556. #define HAVE_LIBDNS 1
  3557. _ACEOF
  3558. LIBS="-ldns $LIBS"
  3559. fi
  3560. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  3561. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
  3562. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lcrypto", SSL="", -lcrypto)
  3563. # This is needed for Tcl libraries compiled with thread support
  3564. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  3565. # ac_cv_lib_pthread_pthread_mutex_init=yes
  3566. # ac_cv_lib_pthread="-lpthread"], [dnl
  3567. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  3568. # ac_cv_lib_pthread_pthread_mutex_init=yes
  3569. # ac_cv_lib_pthread="-lpthread"], [dnl
  3570. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  3571. # ac_cv_lib_pthread_pthread_mutex_init=yes
  3572. # ac_cv_lib_pthread="-lpthreads"], [dnl
  3573. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  3574. # ac_cv_lib_pthread_pthread_mutex_init=yes
  3575. # ac_cv_lib_pthread=""],
  3576. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  3577. # Checks for header files
  3578. ac_header_dirent=no
  3579. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  3580. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  3581. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  3582. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  3583. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3584. echo $ECHO_N "(cached) $ECHO_C" >&6
  3585. else
  3586. cat >conftest.$ac_ext <<_ACEOF
  3587. /* confdefs.h. */
  3588. _ACEOF
  3589. cat confdefs.h >>conftest.$ac_ext
  3590. cat >>conftest.$ac_ext <<_ACEOF
  3591. /* end confdefs.h. */
  3592. #include <sys/types.h>
  3593. #include <$ac_hdr>
  3594. int
  3595. main ()
  3596. {
  3597. if ((DIR *) 0)
  3598. return 0;
  3599. ;
  3600. return 0;
  3601. }
  3602. _ACEOF
  3603. rm -f conftest.$ac_objext
  3604. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3605. (eval $ac_compile) 2>conftest.er1
  3606. ac_status=$?
  3607. grep -v '^ *+' conftest.er1 >conftest.err
  3608. rm -f conftest.er1
  3609. cat conftest.err >&5
  3610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3611. (exit $ac_status); } &&
  3612. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3613. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3614. (eval $ac_try) 2>&5
  3615. ac_status=$?
  3616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3617. (exit $ac_status); }; } &&
  3618. { ac_try='test -s conftest.$ac_objext'
  3619. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3620. (eval $ac_try) 2>&5
  3621. ac_status=$?
  3622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3623. (exit $ac_status); }; }; then
  3624. eval "$as_ac_Header=yes"
  3625. else
  3626. echo "$as_me: failed program was:" >&5
  3627. sed 's/^/| /' conftest.$ac_ext >&5
  3628. eval "$as_ac_Header=no"
  3629. fi
  3630. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3631. fi
  3632. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3633. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3634. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3635. cat >>confdefs.h <<_ACEOF
  3636. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  3637. _ACEOF
  3638. ac_header_dirent=$ac_hdr; break
  3639. fi
  3640. done
  3641. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  3642. if test $ac_header_dirent = dirent.h; then
  3643. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  3644. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  3645. if test "${ac_cv_search_opendir+set}" = set; then
  3646. echo $ECHO_N "(cached) $ECHO_C" >&6
  3647. else
  3648. ac_func_search_save_LIBS=$LIBS
  3649. ac_cv_search_opendir=no
  3650. cat >conftest.$ac_ext <<_ACEOF
  3651. /* confdefs.h. */
  3652. _ACEOF
  3653. cat confdefs.h >>conftest.$ac_ext
  3654. cat >>conftest.$ac_ext <<_ACEOF
  3655. /* end confdefs.h. */
  3656. /* Override any gcc2 internal prototype to avoid an error. */
  3657. #ifdef __cplusplus
  3658. extern "C"
  3659. #endif
  3660. /* We use char because int might match the return type of a gcc2
  3661. builtin and then its argument prototype would still apply. */
  3662. char opendir ();
  3663. int
  3664. main ()
  3665. {
  3666. opendir ();
  3667. ;
  3668. return 0;
  3669. }
  3670. _ACEOF
  3671. rm -f conftest.$ac_objext conftest$ac_exeext
  3672. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3673. (eval $ac_link) 2>conftest.er1
  3674. ac_status=$?
  3675. grep -v '^ *+' conftest.er1 >conftest.err
  3676. rm -f conftest.er1
  3677. cat conftest.err >&5
  3678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3679. (exit $ac_status); } &&
  3680. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3681. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3682. (eval $ac_try) 2>&5
  3683. ac_status=$?
  3684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3685. (exit $ac_status); }; } &&
  3686. { ac_try='test -s conftest$ac_exeext'
  3687. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3688. (eval $ac_try) 2>&5
  3689. ac_status=$?
  3690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3691. (exit $ac_status); }; }; then
  3692. ac_cv_search_opendir="none required"
  3693. else
  3694. echo "$as_me: failed program was:" >&5
  3695. sed 's/^/| /' conftest.$ac_ext >&5
  3696. fi
  3697. rm -f conftest.err conftest.$ac_objext \
  3698. conftest$ac_exeext conftest.$ac_ext
  3699. if test "$ac_cv_search_opendir" = no; then
  3700. for ac_lib in dir; do
  3701. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3702. cat >conftest.$ac_ext <<_ACEOF
  3703. /* confdefs.h. */
  3704. _ACEOF
  3705. cat confdefs.h >>conftest.$ac_ext
  3706. cat >>conftest.$ac_ext <<_ACEOF
  3707. /* end confdefs.h. */
  3708. /* Override any gcc2 internal prototype to avoid an error. */
  3709. #ifdef __cplusplus
  3710. extern "C"
  3711. #endif
  3712. /* We use char because int might match the return type of a gcc2
  3713. builtin and then its argument prototype would still apply. */
  3714. char opendir ();
  3715. int
  3716. main ()
  3717. {
  3718. opendir ();
  3719. ;
  3720. return 0;
  3721. }
  3722. _ACEOF
  3723. rm -f conftest.$ac_objext conftest$ac_exeext
  3724. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3725. (eval $ac_link) 2>conftest.er1
  3726. ac_status=$?
  3727. grep -v '^ *+' conftest.er1 >conftest.err
  3728. rm -f conftest.er1
  3729. cat conftest.err >&5
  3730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3731. (exit $ac_status); } &&
  3732. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3733. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3734. (eval $ac_try) 2>&5
  3735. ac_status=$?
  3736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3737. (exit $ac_status); }; } &&
  3738. { ac_try='test -s conftest$ac_exeext'
  3739. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3740. (eval $ac_try) 2>&5
  3741. ac_status=$?
  3742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3743. (exit $ac_status); }; }; then
  3744. ac_cv_search_opendir="-l$ac_lib"
  3745. break
  3746. else
  3747. echo "$as_me: failed program was:" >&5
  3748. sed 's/^/| /' conftest.$ac_ext >&5
  3749. fi
  3750. rm -f conftest.err conftest.$ac_objext \
  3751. conftest$ac_exeext conftest.$ac_ext
  3752. done
  3753. fi
  3754. LIBS=$ac_func_search_save_LIBS
  3755. fi
  3756. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  3757. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  3758. if test "$ac_cv_search_opendir" != no; then
  3759. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  3760. fi
  3761. else
  3762. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  3763. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  3764. if test "${ac_cv_search_opendir+set}" = set; then
  3765. echo $ECHO_N "(cached) $ECHO_C" >&6
  3766. else
  3767. ac_func_search_save_LIBS=$LIBS
  3768. ac_cv_search_opendir=no
  3769. cat >conftest.$ac_ext <<_ACEOF
  3770. /* confdefs.h. */
  3771. _ACEOF
  3772. cat confdefs.h >>conftest.$ac_ext
  3773. cat >>conftest.$ac_ext <<_ACEOF
  3774. /* end confdefs.h. */
  3775. /* Override any gcc2 internal prototype to avoid an error. */
  3776. #ifdef __cplusplus
  3777. extern "C"
  3778. #endif
  3779. /* We use char because int might match the return type of a gcc2
  3780. builtin and then its argument prototype would still apply. */
  3781. char opendir ();
  3782. int
  3783. main ()
  3784. {
  3785. opendir ();
  3786. ;
  3787. return 0;
  3788. }
  3789. _ACEOF
  3790. rm -f conftest.$ac_objext conftest$ac_exeext
  3791. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3792. (eval $ac_link) 2>conftest.er1
  3793. ac_status=$?
  3794. grep -v '^ *+' conftest.er1 >conftest.err
  3795. rm -f conftest.er1
  3796. cat conftest.err >&5
  3797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3798. (exit $ac_status); } &&
  3799. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3801. (eval $ac_try) 2>&5
  3802. ac_status=$?
  3803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3804. (exit $ac_status); }; } &&
  3805. { ac_try='test -s conftest$ac_exeext'
  3806. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3807. (eval $ac_try) 2>&5
  3808. ac_status=$?
  3809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3810. (exit $ac_status); }; }; then
  3811. ac_cv_search_opendir="none required"
  3812. else
  3813. echo "$as_me: failed program was:" >&5
  3814. sed 's/^/| /' conftest.$ac_ext >&5
  3815. fi
  3816. rm -f conftest.err conftest.$ac_objext \
  3817. conftest$ac_exeext conftest.$ac_ext
  3818. if test "$ac_cv_search_opendir" = no; then
  3819. for ac_lib in x; do
  3820. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3821. cat >conftest.$ac_ext <<_ACEOF
  3822. /* confdefs.h. */
  3823. _ACEOF
  3824. cat confdefs.h >>conftest.$ac_ext
  3825. cat >>conftest.$ac_ext <<_ACEOF
  3826. /* end confdefs.h. */
  3827. /* Override any gcc2 internal prototype to avoid an error. */
  3828. #ifdef __cplusplus
  3829. extern "C"
  3830. #endif
  3831. /* We use char because int might match the return type of a gcc2
  3832. builtin and then its argument prototype would still apply. */
  3833. char opendir ();
  3834. int
  3835. main ()
  3836. {
  3837. opendir ();
  3838. ;
  3839. return 0;
  3840. }
  3841. _ACEOF
  3842. rm -f conftest.$ac_objext conftest$ac_exeext
  3843. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3844. (eval $ac_link) 2>conftest.er1
  3845. ac_status=$?
  3846. grep -v '^ *+' conftest.er1 >conftest.err
  3847. rm -f conftest.er1
  3848. cat conftest.err >&5
  3849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3850. (exit $ac_status); } &&
  3851. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3852. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3853. (eval $ac_try) 2>&5
  3854. ac_status=$?
  3855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3856. (exit $ac_status); }; } &&
  3857. { ac_try='test -s conftest$ac_exeext'
  3858. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3859. (eval $ac_try) 2>&5
  3860. ac_status=$?
  3861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3862. (exit $ac_status); }; }; then
  3863. ac_cv_search_opendir="-l$ac_lib"
  3864. break
  3865. else
  3866. echo "$as_me: failed program was:" >&5
  3867. sed 's/^/| /' conftest.$ac_ext >&5
  3868. fi
  3869. rm -f conftest.err conftest.$ac_objext \
  3870. conftest$ac_exeext conftest.$ac_ext
  3871. done
  3872. fi
  3873. LIBS=$ac_func_search_save_LIBS
  3874. fi
  3875. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  3876. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  3877. if test "$ac_cv_search_opendir" != no; then
  3878. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  3879. fi
  3880. fi
  3881. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  3882. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  3883. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  3884. echo $ECHO_N "(cached) $ECHO_C" >&6
  3885. else
  3886. cat >conftest.$ac_ext <<_ACEOF
  3887. /* confdefs.h. */
  3888. _ACEOF
  3889. cat confdefs.h >>conftest.$ac_ext
  3890. cat >>conftest.$ac_ext <<_ACEOF
  3891. /* end confdefs.h. */
  3892. #include <sys/types.h>
  3893. #include <sys/wait.h>
  3894. #ifndef WEXITSTATUS
  3895. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  3896. #endif
  3897. #ifndef WIFEXITED
  3898. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  3899. #endif
  3900. int
  3901. main ()
  3902. {
  3903. int s;
  3904. wait (&s);
  3905. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  3906. ;
  3907. return 0;
  3908. }
  3909. _ACEOF
  3910. rm -f conftest.$ac_objext
  3911. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3912. (eval $ac_compile) 2>conftest.er1
  3913. ac_status=$?
  3914. grep -v '^ *+' conftest.er1 >conftest.err
  3915. rm -f conftest.er1
  3916. cat conftest.err >&5
  3917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3918. (exit $ac_status); } &&
  3919. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3920. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3921. (eval $ac_try) 2>&5
  3922. ac_status=$?
  3923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3924. (exit $ac_status); }; } &&
  3925. { ac_try='test -s conftest.$ac_objext'
  3926. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3927. (eval $ac_try) 2>&5
  3928. ac_status=$?
  3929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3930. (exit $ac_status); }; }; then
  3931. ac_cv_header_sys_wait_h=yes
  3932. else
  3933. echo "$as_me: failed program was:" >&5
  3934. sed 's/^/| /' conftest.$ac_ext >&5
  3935. ac_cv_header_sys_wait_h=no
  3936. fi
  3937. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3938. fi
  3939. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  3940. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  3941. if test $ac_cv_header_sys_wait_h = yes; then
  3942. cat >>confdefs.h <<\_ACEOF
  3943. #define HAVE_SYS_WAIT_H 1
  3944. _ACEOF
  3945. fi
  3946. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  3947. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  3948. if test "${ac_cv_header_time+set}" = set; then
  3949. echo $ECHO_N "(cached) $ECHO_C" >&6
  3950. else
  3951. cat >conftest.$ac_ext <<_ACEOF
  3952. /* confdefs.h. */
  3953. _ACEOF
  3954. cat confdefs.h >>conftest.$ac_ext
  3955. cat >>conftest.$ac_ext <<_ACEOF
  3956. /* end confdefs.h. */
  3957. #include <sys/types.h>
  3958. #include <sys/time.h>
  3959. #include <time.h>
  3960. int
  3961. main ()
  3962. {
  3963. if ((struct tm *) 0)
  3964. return 0;
  3965. ;
  3966. return 0;
  3967. }
  3968. _ACEOF
  3969. rm -f conftest.$ac_objext
  3970. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3971. (eval $ac_compile) 2>conftest.er1
  3972. ac_status=$?
  3973. grep -v '^ *+' conftest.er1 >conftest.err
  3974. rm -f conftest.er1
  3975. cat conftest.err >&5
  3976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3977. (exit $ac_status); } &&
  3978. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3979. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3980. (eval $ac_try) 2>&5
  3981. ac_status=$?
  3982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3983. (exit $ac_status); }; } &&
  3984. { ac_try='test -s conftest.$ac_objext'
  3985. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3986. (eval $ac_try) 2>&5
  3987. ac_status=$?
  3988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3989. (exit $ac_status); }; }; then
  3990. ac_cv_header_time=yes
  3991. else
  3992. echo "$as_me: failed program was:" >&5
  3993. sed 's/^/| /' conftest.$ac_ext >&5
  3994. ac_cv_header_time=no
  3995. fi
  3996. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3997. fi
  3998. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  3999. echo "${ECHO_T}$ac_cv_header_time" >&6
  4000. if test $ac_cv_header_time = yes; then
  4001. cat >>confdefs.h <<\_ACEOF
  4002. #define TIME_WITH_SYS_TIME 1
  4003. _ACEOF
  4004. fi
  4005. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  4006. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  4007. if test "${ac_cv_header_stat_broken+set}" = set; then
  4008. echo $ECHO_N "(cached) $ECHO_C" >&6
  4009. else
  4010. cat >conftest.$ac_ext <<_ACEOF
  4011. /* confdefs.h. */
  4012. _ACEOF
  4013. cat confdefs.h >>conftest.$ac_ext
  4014. cat >>conftest.$ac_ext <<_ACEOF
  4015. /* end confdefs.h. */
  4016. #include <sys/types.h>
  4017. #include <sys/stat.h>
  4018. #if defined(S_ISBLK) && defined(S_IFDIR)
  4019. # if S_ISBLK (S_IFDIR)
  4020. You lose.
  4021. # endif
  4022. #endif
  4023. #if defined(S_ISBLK) && defined(S_IFCHR)
  4024. # if S_ISBLK (S_IFCHR)
  4025. You lose.
  4026. # endif
  4027. #endif
  4028. #if defined(S_ISLNK) && defined(S_IFREG)
  4029. # if S_ISLNK (S_IFREG)
  4030. You lose.
  4031. # endif
  4032. #endif
  4033. #if defined(S_ISSOCK) && defined(S_IFREG)
  4034. # if S_ISSOCK (S_IFREG)
  4035. You lose.
  4036. # endif
  4037. #endif
  4038. _ACEOF
  4039. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4040. $EGREP "You lose" >/dev/null 2>&1; then
  4041. ac_cv_header_stat_broken=yes
  4042. else
  4043. ac_cv_header_stat_broken=no
  4044. fi
  4045. rm -f conftest*
  4046. fi
  4047. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  4048. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  4049. if test $ac_cv_header_stat_broken = yes; then
  4050. cat >>confdefs.h <<\_ACEOF
  4051. #define STAT_MACROS_BROKEN 1
  4052. _ACEOF
  4053. fi
  4054. #checkpoint
  4055. cat >confcache <<\_ACEOF
  4056. # This file is a shell script that caches the results of configure
  4057. # tests run on this system so they can be shared between configure
  4058. # scripts and configure runs, see configure's option --config-cache.
  4059. # It is not useful on other systems. If it contains results you don't
  4060. # want to keep, you may remove or edit it.
  4061. #
  4062. # config.status only pays attention to the cache file if you give it
  4063. # the --recheck option to rerun configure.
  4064. #
  4065. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4066. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4067. # following values.
  4068. _ACEOF
  4069. # The following way of writing the cache mishandles newlines in values,
  4070. # but we know of no workaround that is simple, portable, and efficient.
  4071. # So, don't put newlines in cache variables' values.
  4072. # Ultrix sh set writes to stderr and can't be redirected directly,
  4073. # and sets the high bit in the cache file unless we assign to the vars.
  4074. {
  4075. (set) 2>&1 |
  4076. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4077. *ac_space=\ *)
  4078. # `set' does not quote correctly, so add quotes (double-quote
  4079. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4080. sed -n \
  4081. "s/'/'\\\\''/g;
  4082. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4083. ;;
  4084. *)
  4085. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4086. sed -n \
  4087. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4088. ;;
  4089. esac;
  4090. } |
  4091. sed '
  4092. t clear
  4093. : clear
  4094. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4095. t end
  4096. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4097. : end' >>confcache
  4098. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4099. if test -w $cache_file; then
  4100. test "x$cache_file" != "x/dev/null"
  4101. cat confcache >$cache_file
  4102. else
  4103. echo "not updating unwritable cache $cache_file"
  4104. fi
  4105. fi
  4106. rm -f confcache
  4107. for ac_header in stdarg.h std_arg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  4108. do
  4109. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4110. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4111. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4112. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4113. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4114. echo $ECHO_N "(cached) $ECHO_C" >&6
  4115. fi
  4116. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4117. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4118. else
  4119. # Is the header compilable?
  4120. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4121. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4122. cat >conftest.$ac_ext <<_ACEOF
  4123. /* confdefs.h. */
  4124. _ACEOF
  4125. cat confdefs.h >>conftest.$ac_ext
  4126. cat >>conftest.$ac_ext <<_ACEOF
  4127. /* end confdefs.h. */
  4128. $ac_includes_default
  4129. #include <$ac_header>
  4130. _ACEOF
  4131. rm -f conftest.$ac_objext
  4132. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4133. (eval $ac_compile) 2>conftest.er1
  4134. ac_status=$?
  4135. grep -v '^ *+' conftest.er1 >conftest.err
  4136. rm -f conftest.er1
  4137. cat conftest.err >&5
  4138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4139. (exit $ac_status); } &&
  4140. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4141. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4142. (eval $ac_try) 2>&5
  4143. ac_status=$?
  4144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4145. (exit $ac_status); }; } &&
  4146. { ac_try='test -s conftest.$ac_objext'
  4147. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4148. (eval $ac_try) 2>&5
  4149. ac_status=$?
  4150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4151. (exit $ac_status); }; }; then
  4152. ac_header_compiler=yes
  4153. else
  4154. echo "$as_me: failed program was:" >&5
  4155. sed 's/^/| /' conftest.$ac_ext >&5
  4156. ac_header_compiler=no
  4157. fi
  4158. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4159. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4160. echo "${ECHO_T}$ac_header_compiler" >&6
  4161. # Is the header present?
  4162. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4163. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4164. cat >conftest.$ac_ext <<_ACEOF
  4165. /* confdefs.h. */
  4166. _ACEOF
  4167. cat confdefs.h >>conftest.$ac_ext
  4168. cat >>conftest.$ac_ext <<_ACEOF
  4169. /* end confdefs.h. */
  4170. #include <$ac_header>
  4171. _ACEOF
  4172. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4173. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4174. ac_status=$?
  4175. grep -v '^ *+' conftest.er1 >conftest.err
  4176. rm -f conftest.er1
  4177. cat conftest.err >&5
  4178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4179. (exit $ac_status); } >/dev/null; then
  4180. if test -s conftest.err; then
  4181. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4182. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4183. else
  4184. ac_cpp_err=
  4185. fi
  4186. else
  4187. ac_cpp_err=yes
  4188. fi
  4189. if test -z "$ac_cpp_err"; then
  4190. ac_header_preproc=yes
  4191. else
  4192. echo "$as_me: failed program was:" >&5
  4193. sed 's/^/| /' conftest.$ac_ext >&5
  4194. ac_header_preproc=no
  4195. fi
  4196. rm -f conftest.err conftest.$ac_ext
  4197. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4198. echo "${ECHO_T}$ac_header_preproc" >&6
  4199. # So? What about this header?
  4200. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4201. yes:no: )
  4202. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4203. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4204. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4205. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4206. ac_header_preproc=yes
  4207. ;;
  4208. no:yes:* )
  4209. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4210. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4211. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4212. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4213. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4214. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4215. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4216. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4217. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4218. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4219. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4220. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4221. (
  4222. cat <<\_ASBOX
  4223. ## ------------------------------------------ ##
  4224. ## Report this to the AC_PACKAGE_NAME lists. ##
  4225. ## ------------------------------------------ ##
  4226. _ASBOX
  4227. ) |
  4228. sed "s/^/$as_me: WARNING: /" >&2
  4229. ;;
  4230. esac
  4231. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4232. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4233. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4234. echo $ECHO_N "(cached) $ECHO_C" >&6
  4235. else
  4236. eval "$as_ac_Header=\$ac_header_preproc"
  4237. fi
  4238. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4239. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4240. fi
  4241. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4242. cat >>confdefs.h <<_ACEOF
  4243. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4244. _ACEOF
  4245. fi
  4246. done
  4247. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h sys/ptrace.h paths.h
  4248. do
  4249. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4250. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4251. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4252. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4253. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4254. echo $ECHO_N "(cached) $ECHO_C" >&6
  4255. fi
  4256. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4257. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4258. else
  4259. # Is the header compilable?
  4260. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4261. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4262. cat >conftest.$ac_ext <<_ACEOF
  4263. /* confdefs.h. */
  4264. _ACEOF
  4265. cat confdefs.h >>conftest.$ac_ext
  4266. cat >>conftest.$ac_ext <<_ACEOF
  4267. /* end confdefs.h. */
  4268. $ac_includes_default
  4269. #include <$ac_header>
  4270. _ACEOF
  4271. rm -f conftest.$ac_objext
  4272. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4273. (eval $ac_compile) 2>conftest.er1
  4274. ac_status=$?
  4275. grep -v '^ *+' conftest.er1 >conftest.err
  4276. rm -f conftest.er1
  4277. cat conftest.err >&5
  4278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4279. (exit $ac_status); } &&
  4280. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4281. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4282. (eval $ac_try) 2>&5
  4283. ac_status=$?
  4284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4285. (exit $ac_status); }; } &&
  4286. { ac_try='test -s conftest.$ac_objext'
  4287. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4288. (eval $ac_try) 2>&5
  4289. ac_status=$?
  4290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4291. (exit $ac_status); }; }; then
  4292. ac_header_compiler=yes
  4293. else
  4294. echo "$as_me: failed program was:" >&5
  4295. sed 's/^/| /' conftest.$ac_ext >&5
  4296. ac_header_compiler=no
  4297. fi
  4298. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4299. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4300. echo "${ECHO_T}$ac_header_compiler" >&6
  4301. # Is the header present?
  4302. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4303. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4304. cat >conftest.$ac_ext <<_ACEOF
  4305. /* confdefs.h. */
  4306. _ACEOF
  4307. cat confdefs.h >>conftest.$ac_ext
  4308. cat >>conftest.$ac_ext <<_ACEOF
  4309. /* end confdefs.h. */
  4310. #include <$ac_header>
  4311. _ACEOF
  4312. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4313. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4314. ac_status=$?
  4315. grep -v '^ *+' conftest.er1 >conftest.err
  4316. rm -f conftest.er1
  4317. cat conftest.err >&5
  4318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4319. (exit $ac_status); } >/dev/null; then
  4320. if test -s conftest.err; then
  4321. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4322. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4323. else
  4324. ac_cpp_err=
  4325. fi
  4326. else
  4327. ac_cpp_err=yes
  4328. fi
  4329. if test -z "$ac_cpp_err"; then
  4330. ac_header_preproc=yes
  4331. else
  4332. echo "$as_me: failed program was:" >&5
  4333. sed 's/^/| /' conftest.$ac_ext >&5
  4334. ac_header_preproc=no
  4335. fi
  4336. rm -f conftest.err conftest.$ac_ext
  4337. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4338. echo "${ECHO_T}$ac_header_preproc" >&6
  4339. # So? What about this header?
  4340. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4341. yes:no: )
  4342. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4343. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4344. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4345. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4346. ac_header_preproc=yes
  4347. ;;
  4348. no:yes:* )
  4349. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4350. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4351. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4352. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4353. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4354. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4355. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4356. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4357. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4358. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4359. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4360. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4361. (
  4362. cat <<\_ASBOX
  4363. ## ------------------------------------------ ##
  4364. ## Report this to the AC_PACKAGE_NAME lists. ##
  4365. ## ------------------------------------------ ##
  4366. _ASBOX
  4367. ) |
  4368. sed "s/^/$as_me: WARNING: /" >&2
  4369. ;;
  4370. esac
  4371. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4372. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4373. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4374. echo $ECHO_N "(cached) $ECHO_C" >&6
  4375. else
  4376. eval "$as_ac_Header=\$ac_header_preproc"
  4377. fi
  4378. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4379. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4380. fi
  4381. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4382. cat >>confdefs.h <<_ACEOF
  4383. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4384. _ACEOF
  4385. fi
  4386. done
  4387. #checkpoint
  4388. cat >confcache <<\_ACEOF
  4389. # This file is a shell script that caches the results of configure
  4390. # tests run on this system so they can be shared between configure
  4391. # scripts and configure runs, see configure's option --config-cache.
  4392. # It is not useful on other systems. If it contains results you don't
  4393. # want to keep, you may remove or edit it.
  4394. #
  4395. # config.status only pays attention to the cache file if you give it
  4396. # the --recheck option to rerun configure.
  4397. #
  4398. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4399. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4400. # following values.
  4401. _ACEOF
  4402. # The following way of writing the cache mishandles newlines in values,
  4403. # but we know of no workaround that is simple, portable, and efficient.
  4404. # So, don't put newlines in cache variables' values.
  4405. # Ultrix sh set writes to stderr and can't be redirected directly,
  4406. # and sets the high bit in the cache file unless we assign to the vars.
  4407. {
  4408. (set) 2>&1 |
  4409. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4410. *ac_space=\ *)
  4411. # `set' does not quote correctly, so add quotes (double-quote
  4412. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4413. sed -n \
  4414. "s/'/'\\\\''/g;
  4415. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4416. ;;
  4417. *)
  4418. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4419. sed -n \
  4420. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4421. ;;
  4422. esac;
  4423. } |
  4424. sed '
  4425. t clear
  4426. : clear
  4427. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4428. t end
  4429. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4430. : end' >>confcache
  4431. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4432. if test -w $cache_file; then
  4433. test "x$cache_file" != "x/dev/null"
  4434. cat confcache >$cache_file
  4435. else
  4436. echo "not updating unwritable cache $cache_file"
  4437. fi
  4438. fi
  4439. rm -f confcache
  4440. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  4441. #AC_CHECK_HEADERS(zlib.h)
  4442. #EGG_CHECK_ZLIB
  4443. #EGG_CHECK_SSL
  4444. #AC_SUBST(SSL)dnl
  4445. # Checks for typedefs, structures, and compiler characteristics
  4446. echo "$as_me:$LINENO: checking for pid_t" >&5
  4447. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  4448. if test "${ac_cv_type_pid_t+set}" = set; then
  4449. echo $ECHO_N "(cached) $ECHO_C" >&6
  4450. else
  4451. cat >conftest.$ac_ext <<_ACEOF
  4452. /* confdefs.h. */
  4453. _ACEOF
  4454. cat confdefs.h >>conftest.$ac_ext
  4455. cat >>conftest.$ac_ext <<_ACEOF
  4456. /* end confdefs.h. */
  4457. $ac_includes_default
  4458. int
  4459. main ()
  4460. {
  4461. if ((pid_t *) 0)
  4462. return 0;
  4463. if (sizeof (pid_t))
  4464. return 0;
  4465. ;
  4466. return 0;
  4467. }
  4468. _ACEOF
  4469. rm -f conftest.$ac_objext
  4470. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4471. (eval $ac_compile) 2>conftest.er1
  4472. ac_status=$?
  4473. grep -v '^ *+' conftest.er1 >conftest.err
  4474. rm -f conftest.er1
  4475. cat conftest.err >&5
  4476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4477. (exit $ac_status); } &&
  4478. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4479. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4480. (eval $ac_try) 2>&5
  4481. ac_status=$?
  4482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4483. (exit $ac_status); }; } &&
  4484. { ac_try='test -s conftest.$ac_objext'
  4485. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4486. (eval $ac_try) 2>&5
  4487. ac_status=$?
  4488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4489. (exit $ac_status); }; }; then
  4490. ac_cv_type_pid_t=yes
  4491. else
  4492. echo "$as_me: failed program was:" >&5
  4493. sed 's/^/| /' conftest.$ac_ext >&5
  4494. ac_cv_type_pid_t=no
  4495. fi
  4496. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4497. fi
  4498. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  4499. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  4500. if test $ac_cv_type_pid_t = yes; then
  4501. :
  4502. else
  4503. cat >>confdefs.h <<_ACEOF
  4504. #define pid_t int
  4505. _ACEOF
  4506. fi
  4507. echo "$as_me:$LINENO: checking for size_t" >&5
  4508. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  4509. if test "${ac_cv_type_size_t+set}" = set; then
  4510. echo $ECHO_N "(cached) $ECHO_C" >&6
  4511. else
  4512. cat >conftest.$ac_ext <<_ACEOF
  4513. /* confdefs.h. */
  4514. _ACEOF
  4515. cat confdefs.h >>conftest.$ac_ext
  4516. cat >>conftest.$ac_ext <<_ACEOF
  4517. /* end confdefs.h. */
  4518. $ac_includes_default
  4519. int
  4520. main ()
  4521. {
  4522. if ((size_t *) 0)
  4523. return 0;
  4524. if (sizeof (size_t))
  4525. return 0;
  4526. ;
  4527. return 0;
  4528. }
  4529. _ACEOF
  4530. rm -f conftest.$ac_objext
  4531. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4532. (eval $ac_compile) 2>conftest.er1
  4533. ac_status=$?
  4534. grep -v '^ *+' conftest.er1 >conftest.err
  4535. rm -f conftest.er1
  4536. cat conftest.err >&5
  4537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4538. (exit $ac_status); } &&
  4539. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4540. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4541. (eval $ac_try) 2>&5
  4542. ac_status=$?
  4543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4544. (exit $ac_status); }; } &&
  4545. { ac_try='test -s conftest.$ac_objext'
  4546. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4547. (eval $ac_try) 2>&5
  4548. ac_status=$?
  4549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4550. (exit $ac_status); }; }; then
  4551. ac_cv_type_size_t=yes
  4552. else
  4553. echo "$as_me: failed program was:" >&5
  4554. sed 's/^/| /' conftest.$ac_ext >&5
  4555. ac_cv_type_size_t=no
  4556. fi
  4557. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4558. fi
  4559. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  4560. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  4561. if test $ac_cv_type_size_t = yes; then
  4562. :
  4563. else
  4564. cat >>confdefs.h <<_ACEOF
  4565. #define size_t unsigned
  4566. _ACEOF
  4567. fi
  4568. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  4569. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  4570. if test "${ac_cv_type_uid_t+set}" = set; then
  4571. echo $ECHO_N "(cached) $ECHO_C" >&6
  4572. else
  4573. cat >conftest.$ac_ext <<_ACEOF
  4574. /* confdefs.h. */
  4575. _ACEOF
  4576. cat confdefs.h >>conftest.$ac_ext
  4577. cat >>conftest.$ac_ext <<_ACEOF
  4578. /* end confdefs.h. */
  4579. #include <sys/types.h>
  4580. _ACEOF
  4581. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4582. $EGREP "uid_t" >/dev/null 2>&1; then
  4583. ac_cv_type_uid_t=yes
  4584. else
  4585. ac_cv_type_uid_t=no
  4586. fi
  4587. rm -f conftest*
  4588. fi
  4589. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  4590. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  4591. if test $ac_cv_type_uid_t = no; then
  4592. cat >>confdefs.h <<\_ACEOF
  4593. #define uid_t int
  4594. _ACEOF
  4595. cat >>confdefs.h <<\_ACEOF
  4596. #define gid_t int
  4597. _ACEOF
  4598. fi
  4599. #AC_C_CONST
  4600. echo "$as_me:$LINENO: checking for working volatile" >&5
  4601. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  4602. if test "${ac_cv_c_volatile+set}" = set; then
  4603. echo $ECHO_N "(cached) $ECHO_C" >&6
  4604. else
  4605. cat >conftest.$ac_ext <<_ACEOF
  4606. /* confdefs.h. */
  4607. _ACEOF
  4608. cat confdefs.h >>conftest.$ac_ext
  4609. cat >>conftest.$ac_ext <<_ACEOF
  4610. /* end confdefs.h. */
  4611. int
  4612. main ()
  4613. {
  4614. volatile int x;
  4615. int * volatile y;
  4616. ;
  4617. return 0;
  4618. }
  4619. _ACEOF
  4620. rm -f conftest.$ac_objext
  4621. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4622. (eval $ac_compile) 2>conftest.er1
  4623. ac_status=$?
  4624. grep -v '^ *+' conftest.er1 >conftest.err
  4625. rm -f conftest.er1
  4626. cat conftest.err >&5
  4627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4628. (exit $ac_status); } &&
  4629. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4630. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4631. (eval $ac_try) 2>&5
  4632. ac_status=$?
  4633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4634. (exit $ac_status); }; } &&
  4635. { ac_try='test -s conftest.$ac_objext'
  4636. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4637. (eval $ac_try) 2>&5
  4638. ac_status=$?
  4639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4640. (exit $ac_status); }; }; then
  4641. ac_cv_c_volatile=yes
  4642. else
  4643. echo "$as_me: failed program was:" >&5
  4644. sed 's/^/| /' conftest.$ac_ext >&5
  4645. ac_cv_c_volatile=no
  4646. fi
  4647. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4648. fi
  4649. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  4650. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  4651. if test $ac_cv_c_volatile = no; then
  4652. cat >>confdefs.h <<\_ACEOF
  4653. #define volatile
  4654. _ACEOF
  4655. fi
  4656. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  4657. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  4658. if test "${ac_cv_c_bigendian+set}" = set; then
  4659. echo $ECHO_N "(cached) $ECHO_C" >&6
  4660. else
  4661. # See if sys/param.h defines the BYTE_ORDER macro.
  4662. cat >conftest.$ac_ext <<_ACEOF
  4663. /* confdefs.h. */
  4664. _ACEOF
  4665. cat confdefs.h >>conftest.$ac_ext
  4666. cat >>conftest.$ac_ext <<_ACEOF
  4667. /* end confdefs.h. */
  4668. #include <sys/types.h>
  4669. #include <sys/param.h>
  4670. int
  4671. main ()
  4672. {
  4673. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  4674. bogus endian macros
  4675. #endif
  4676. ;
  4677. return 0;
  4678. }
  4679. _ACEOF
  4680. rm -f conftest.$ac_objext
  4681. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4682. (eval $ac_compile) 2>conftest.er1
  4683. ac_status=$?
  4684. grep -v '^ *+' conftest.er1 >conftest.err
  4685. rm -f conftest.er1
  4686. cat conftest.err >&5
  4687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4688. (exit $ac_status); } &&
  4689. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4690. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4691. (eval $ac_try) 2>&5
  4692. ac_status=$?
  4693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4694. (exit $ac_status); }; } &&
  4695. { ac_try='test -s conftest.$ac_objext'
  4696. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4697. (eval $ac_try) 2>&5
  4698. ac_status=$?
  4699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4700. (exit $ac_status); }; }; then
  4701. # It does; now see whether it defined to BIG_ENDIAN or not.
  4702. cat >conftest.$ac_ext <<_ACEOF
  4703. /* confdefs.h. */
  4704. _ACEOF
  4705. cat confdefs.h >>conftest.$ac_ext
  4706. cat >>conftest.$ac_ext <<_ACEOF
  4707. /* end confdefs.h. */
  4708. #include <sys/types.h>
  4709. #include <sys/param.h>
  4710. int
  4711. main ()
  4712. {
  4713. #if BYTE_ORDER != BIG_ENDIAN
  4714. not big endian
  4715. #endif
  4716. ;
  4717. return 0;
  4718. }
  4719. _ACEOF
  4720. rm -f conftest.$ac_objext
  4721. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4722. (eval $ac_compile) 2>conftest.er1
  4723. ac_status=$?
  4724. grep -v '^ *+' conftest.er1 >conftest.err
  4725. rm -f conftest.er1
  4726. cat conftest.err >&5
  4727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4728. (exit $ac_status); } &&
  4729. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4730. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4731. (eval $ac_try) 2>&5
  4732. ac_status=$?
  4733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4734. (exit $ac_status); }; } &&
  4735. { ac_try='test -s conftest.$ac_objext'
  4736. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4737. (eval $ac_try) 2>&5
  4738. ac_status=$?
  4739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4740. (exit $ac_status); }; }; then
  4741. ac_cv_c_bigendian=yes
  4742. else
  4743. echo "$as_me: failed program was:" >&5
  4744. sed 's/^/| /' conftest.$ac_ext >&5
  4745. ac_cv_c_bigendian=no
  4746. fi
  4747. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4748. else
  4749. echo "$as_me: failed program was:" >&5
  4750. sed 's/^/| /' conftest.$ac_ext >&5
  4751. # It does not; compile a test program.
  4752. if test "$cross_compiling" = yes; then
  4753. # try to guess the endianness by grepping values into an object file
  4754. ac_cv_c_bigendian=unknown
  4755. cat >conftest.$ac_ext <<_ACEOF
  4756. /* confdefs.h. */
  4757. _ACEOF
  4758. cat confdefs.h >>conftest.$ac_ext
  4759. cat >>conftest.$ac_ext <<_ACEOF
  4760. /* end confdefs.h. */
  4761. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4762. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4763. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  4764. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4765. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4766. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  4767. int
  4768. main ()
  4769. {
  4770. _ascii (); _ebcdic ();
  4771. ;
  4772. return 0;
  4773. }
  4774. _ACEOF
  4775. rm -f conftest.$ac_objext
  4776. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4777. (eval $ac_compile) 2>conftest.er1
  4778. ac_status=$?
  4779. grep -v '^ *+' conftest.er1 >conftest.err
  4780. rm -f conftest.er1
  4781. cat conftest.err >&5
  4782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4783. (exit $ac_status); } &&
  4784. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4785. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4786. (eval $ac_try) 2>&5
  4787. ac_status=$?
  4788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4789. (exit $ac_status); }; } &&
  4790. { ac_try='test -s conftest.$ac_objext'
  4791. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4792. (eval $ac_try) 2>&5
  4793. ac_status=$?
  4794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4795. (exit $ac_status); }; }; then
  4796. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  4797. ac_cv_c_bigendian=yes
  4798. fi
  4799. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4800. if test "$ac_cv_c_bigendian" = unknown; then
  4801. ac_cv_c_bigendian=no
  4802. else
  4803. # finding both strings is unlikely to happen, but who knows?
  4804. ac_cv_c_bigendian=unknown
  4805. fi
  4806. fi
  4807. else
  4808. echo "$as_me: failed program was:" >&5
  4809. sed 's/^/| /' conftest.$ac_ext >&5
  4810. fi
  4811. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4812. else
  4813. cat >conftest.$ac_ext <<_ACEOF
  4814. /* confdefs.h. */
  4815. _ACEOF
  4816. cat confdefs.h >>conftest.$ac_ext
  4817. cat >>conftest.$ac_ext <<_ACEOF
  4818. /* end confdefs.h. */
  4819. int
  4820. main ()
  4821. {
  4822. /* Are we little or big endian? From Harbison&Steele. */
  4823. union
  4824. {
  4825. long l;
  4826. char c[sizeof (long)];
  4827. } u;
  4828. u.l = 1;
  4829. exit (u.c[sizeof (long) - 1] == 1);
  4830. }
  4831. _ACEOF
  4832. rm -f conftest$ac_exeext
  4833. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4834. (eval $ac_link) 2>&5
  4835. ac_status=$?
  4836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4837. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4838. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4839. (eval $ac_try) 2>&5
  4840. ac_status=$?
  4841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4842. (exit $ac_status); }; }; then
  4843. ac_cv_c_bigendian=no
  4844. else
  4845. echo "$as_me: program exited with status $ac_status" >&5
  4846. echo "$as_me: failed program was:" >&5
  4847. sed 's/^/| /' conftest.$ac_ext >&5
  4848. ( exit $ac_status )
  4849. ac_cv_c_bigendian=yes
  4850. fi
  4851. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4852. fi
  4853. fi
  4854. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4855. fi
  4856. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  4857. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  4858. case $ac_cv_c_bigendian in
  4859. yes)
  4860. cat >>confdefs.h <<\_ACEOF
  4861. #define WORDS_BIGENDIAN 1
  4862. _ACEOF
  4863. ;;
  4864. no)
  4865. ;;
  4866. *)
  4867. { { echo "$as_me:$LINENO: error: unknown endianness
  4868. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  4869. echo "$as_me: error: unknown endianness
  4870. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  4871. { (exit 1); exit 1; }; } ;;
  4872. esac
  4873. #AC_C_INLINE
  4874. echo "$as_me:$LINENO: checking whether char is unsigned" >&5
  4875. echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
  4876. if test "${ac_cv_c_char_unsigned+set}" = set; then
  4877. echo $ECHO_N "(cached) $ECHO_C" >&6
  4878. else
  4879. cat >conftest.$ac_ext <<_ACEOF
  4880. /* confdefs.h. */
  4881. _ACEOF
  4882. cat confdefs.h >>conftest.$ac_ext
  4883. cat >>conftest.$ac_ext <<_ACEOF
  4884. /* end confdefs.h. */
  4885. $ac_includes_default
  4886. int
  4887. main ()
  4888. {
  4889. static int test_array [1 - 2 * !(((char) -1) < 0)];
  4890. test_array [0] = 0
  4891. ;
  4892. return 0;
  4893. }
  4894. _ACEOF
  4895. rm -f conftest.$ac_objext
  4896. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4897. (eval $ac_compile) 2>conftest.er1
  4898. ac_status=$?
  4899. grep -v '^ *+' conftest.er1 >conftest.err
  4900. rm -f conftest.er1
  4901. cat conftest.err >&5
  4902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4903. (exit $ac_status); } &&
  4904. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4905. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4906. (eval $ac_try) 2>&5
  4907. ac_status=$?
  4908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4909. (exit $ac_status); }; } &&
  4910. { ac_try='test -s conftest.$ac_objext'
  4911. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4912. (eval $ac_try) 2>&5
  4913. ac_status=$?
  4914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4915. (exit $ac_status); }; }; then
  4916. ac_cv_c_char_unsigned=no
  4917. else
  4918. echo "$as_me: failed program was:" >&5
  4919. sed 's/^/| /' conftest.$ac_ext >&5
  4920. ac_cv_c_char_unsigned=yes
  4921. fi
  4922. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4923. fi
  4924. echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
  4925. echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
  4926. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  4927. cat >>confdefs.h <<\_ACEOF
  4928. #define __CHAR_UNSIGNED__ 1
  4929. _ACEOF
  4930. fi
  4931. #AC_C_STRINGIZE
  4932. #AC_C_PROTOTYPES
  4933. #checkpoint
  4934. cat >confcache <<\_ACEOF
  4935. # This file is a shell script that caches the results of configure
  4936. # tests run on this system so they can be shared between configure
  4937. # scripts and configure runs, see configure's option --config-cache.
  4938. # It is not useful on other systems. If it contains results you don't
  4939. # want to keep, you may remove or edit it.
  4940. #
  4941. # config.status only pays attention to the cache file if you give it
  4942. # the --recheck option to rerun configure.
  4943. #
  4944. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4945. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4946. # following values.
  4947. _ACEOF
  4948. # The following way of writing the cache mishandles newlines in values,
  4949. # but we know of no workaround that is simple, portable, and efficient.
  4950. # So, don't put newlines in cache variables' values.
  4951. # Ultrix sh set writes to stderr and can't be redirected directly,
  4952. # and sets the high bit in the cache file unless we assign to the vars.
  4953. {
  4954. (set) 2>&1 |
  4955. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4956. *ac_space=\ *)
  4957. # `set' does not quote correctly, so add quotes (double-quote
  4958. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4959. sed -n \
  4960. "s/'/'\\\\''/g;
  4961. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4962. ;;
  4963. *)
  4964. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4965. sed -n \
  4966. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4967. ;;
  4968. esac;
  4969. } |
  4970. sed '
  4971. t clear
  4972. : clear
  4973. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4974. t end
  4975. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4976. : end' >>confcache
  4977. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4978. if test -w $cache_file; then
  4979. test "x$cache_file" != "x/dev/null"
  4980. cat confcache >$cache_file
  4981. else
  4982. echo "not updating unwritable cache $cache_file"
  4983. fi
  4984. fi
  4985. rm -f confcache
  4986. echo "$as_me:$LINENO: checking for int" >&5
  4987. echo $ECHO_N "checking for int... $ECHO_C" >&6
  4988. if test "${ac_cv_type_int+set}" = set; then
  4989. echo $ECHO_N "(cached) $ECHO_C" >&6
  4990. else
  4991. cat >conftest.$ac_ext <<_ACEOF
  4992. /* confdefs.h. */
  4993. _ACEOF
  4994. cat confdefs.h >>conftest.$ac_ext
  4995. cat >>conftest.$ac_ext <<_ACEOF
  4996. /* end confdefs.h. */
  4997. $ac_includes_default
  4998. int
  4999. main ()
  5000. {
  5001. if ((int *) 0)
  5002. return 0;
  5003. if (sizeof (int))
  5004. return 0;
  5005. ;
  5006. return 0;
  5007. }
  5008. _ACEOF
  5009. rm -f conftest.$ac_objext
  5010. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5011. (eval $ac_compile) 2>conftest.er1
  5012. ac_status=$?
  5013. grep -v '^ *+' conftest.er1 >conftest.err
  5014. rm -f conftest.er1
  5015. cat conftest.err >&5
  5016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5017. (exit $ac_status); } &&
  5018. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5019. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5020. (eval $ac_try) 2>&5
  5021. ac_status=$?
  5022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5023. (exit $ac_status); }; } &&
  5024. { ac_try='test -s conftest.$ac_objext'
  5025. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5026. (eval $ac_try) 2>&5
  5027. ac_status=$?
  5028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5029. (exit $ac_status); }; }; then
  5030. ac_cv_type_int=yes
  5031. else
  5032. echo "$as_me: failed program was:" >&5
  5033. sed 's/^/| /' conftest.$ac_ext >&5
  5034. ac_cv_type_int=no
  5035. fi
  5036. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5037. fi
  5038. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  5039. echo "${ECHO_T}$ac_cv_type_int" >&6
  5040. echo "$as_me:$LINENO: checking size of int" >&5
  5041. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  5042. if test "${ac_cv_sizeof_int+set}" = set; then
  5043. echo $ECHO_N "(cached) $ECHO_C" >&6
  5044. else
  5045. if test "$ac_cv_type_int" = yes; then
  5046. # The cast to unsigned long works around a bug in the HP C Compiler
  5047. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5048. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5049. # This bug is HP SR number 8606223364.
  5050. if test "$cross_compiling" = yes; then
  5051. # Depending upon the size, compute the lo and hi bounds.
  5052. cat >conftest.$ac_ext <<_ACEOF
  5053. /* confdefs.h. */
  5054. _ACEOF
  5055. cat confdefs.h >>conftest.$ac_ext
  5056. cat >>conftest.$ac_ext <<_ACEOF
  5057. /* end confdefs.h. */
  5058. $ac_includes_default
  5059. int
  5060. main ()
  5061. {
  5062. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  5063. test_array [0] = 0
  5064. ;
  5065. return 0;
  5066. }
  5067. _ACEOF
  5068. rm -f conftest.$ac_objext
  5069. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5070. (eval $ac_compile) 2>conftest.er1
  5071. ac_status=$?
  5072. grep -v '^ *+' conftest.er1 >conftest.err
  5073. rm -f conftest.er1
  5074. cat conftest.err >&5
  5075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5076. (exit $ac_status); } &&
  5077. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5078. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5079. (eval $ac_try) 2>&5
  5080. ac_status=$?
  5081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5082. (exit $ac_status); }; } &&
  5083. { ac_try='test -s conftest.$ac_objext'
  5084. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5085. (eval $ac_try) 2>&5
  5086. ac_status=$?
  5087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5088. (exit $ac_status); }; }; then
  5089. ac_lo=0 ac_mid=0
  5090. while :; do
  5091. cat >conftest.$ac_ext <<_ACEOF
  5092. /* confdefs.h. */
  5093. _ACEOF
  5094. cat confdefs.h >>conftest.$ac_ext
  5095. cat >>conftest.$ac_ext <<_ACEOF
  5096. /* end confdefs.h. */
  5097. $ac_includes_default
  5098. int
  5099. main ()
  5100. {
  5101. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  5102. test_array [0] = 0
  5103. ;
  5104. return 0;
  5105. }
  5106. _ACEOF
  5107. rm -f conftest.$ac_objext
  5108. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5109. (eval $ac_compile) 2>conftest.er1
  5110. ac_status=$?
  5111. grep -v '^ *+' conftest.er1 >conftest.err
  5112. rm -f conftest.er1
  5113. cat conftest.err >&5
  5114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5115. (exit $ac_status); } &&
  5116. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5117. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5118. (eval $ac_try) 2>&5
  5119. ac_status=$?
  5120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5121. (exit $ac_status); }; } &&
  5122. { ac_try='test -s conftest.$ac_objext'
  5123. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5124. (eval $ac_try) 2>&5
  5125. ac_status=$?
  5126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5127. (exit $ac_status); }; }; then
  5128. ac_hi=$ac_mid; break
  5129. else
  5130. echo "$as_me: failed program was:" >&5
  5131. sed 's/^/| /' conftest.$ac_ext >&5
  5132. ac_lo=`expr $ac_mid + 1`
  5133. if test $ac_lo -le $ac_mid; then
  5134. ac_lo= ac_hi=
  5135. break
  5136. fi
  5137. ac_mid=`expr 2 '*' $ac_mid + 1`
  5138. fi
  5139. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5140. done
  5141. else
  5142. echo "$as_me: failed program was:" >&5
  5143. sed 's/^/| /' conftest.$ac_ext >&5
  5144. cat >conftest.$ac_ext <<_ACEOF
  5145. /* confdefs.h. */
  5146. _ACEOF
  5147. cat confdefs.h >>conftest.$ac_ext
  5148. cat >>conftest.$ac_ext <<_ACEOF
  5149. /* end confdefs.h. */
  5150. $ac_includes_default
  5151. int
  5152. main ()
  5153. {
  5154. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  5155. test_array [0] = 0
  5156. ;
  5157. return 0;
  5158. }
  5159. _ACEOF
  5160. rm -f conftest.$ac_objext
  5161. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5162. (eval $ac_compile) 2>conftest.er1
  5163. ac_status=$?
  5164. grep -v '^ *+' conftest.er1 >conftest.err
  5165. rm -f conftest.er1
  5166. cat conftest.err >&5
  5167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5168. (exit $ac_status); } &&
  5169. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5170. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5171. (eval $ac_try) 2>&5
  5172. ac_status=$?
  5173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5174. (exit $ac_status); }; } &&
  5175. { ac_try='test -s conftest.$ac_objext'
  5176. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5177. (eval $ac_try) 2>&5
  5178. ac_status=$?
  5179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5180. (exit $ac_status); }; }; then
  5181. ac_hi=-1 ac_mid=-1
  5182. while :; do
  5183. cat >conftest.$ac_ext <<_ACEOF
  5184. /* confdefs.h. */
  5185. _ACEOF
  5186. cat confdefs.h >>conftest.$ac_ext
  5187. cat >>conftest.$ac_ext <<_ACEOF
  5188. /* end confdefs.h. */
  5189. $ac_includes_default
  5190. int
  5191. main ()
  5192. {
  5193. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  5194. test_array [0] = 0
  5195. ;
  5196. return 0;
  5197. }
  5198. _ACEOF
  5199. rm -f conftest.$ac_objext
  5200. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5201. (eval $ac_compile) 2>conftest.er1
  5202. ac_status=$?
  5203. grep -v '^ *+' conftest.er1 >conftest.err
  5204. rm -f conftest.er1
  5205. cat conftest.err >&5
  5206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5207. (exit $ac_status); } &&
  5208. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5209. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5210. (eval $ac_try) 2>&5
  5211. ac_status=$?
  5212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5213. (exit $ac_status); }; } &&
  5214. { ac_try='test -s conftest.$ac_objext'
  5215. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5216. (eval $ac_try) 2>&5
  5217. ac_status=$?
  5218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5219. (exit $ac_status); }; }; then
  5220. ac_lo=$ac_mid; break
  5221. else
  5222. echo "$as_me: failed program was:" >&5
  5223. sed 's/^/| /' conftest.$ac_ext >&5
  5224. ac_hi=`expr '(' $ac_mid ')' - 1`
  5225. if test $ac_mid -le $ac_hi; then
  5226. ac_lo= ac_hi=
  5227. break
  5228. fi
  5229. ac_mid=`expr 2 '*' $ac_mid`
  5230. fi
  5231. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5232. done
  5233. else
  5234. echo "$as_me: failed program was:" >&5
  5235. sed 's/^/| /' conftest.$ac_ext >&5
  5236. ac_lo= ac_hi=
  5237. fi
  5238. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5239. fi
  5240. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5241. # Binary search between lo and hi bounds.
  5242. while test "x$ac_lo" != "x$ac_hi"; do
  5243. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5244. cat >conftest.$ac_ext <<_ACEOF
  5245. /* confdefs.h. */
  5246. _ACEOF
  5247. cat confdefs.h >>conftest.$ac_ext
  5248. cat >>conftest.$ac_ext <<_ACEOF
  5249. /* end confdefs.h. */
  5250. $ac_includes_default
  5251. int
  5252. main ()
  5253. {
  5254. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  5255. test_array [0] = 0
  5256. ;
  5257. return 0;
  5258. }
  5259. _ACEOF
  5260. rm -f conftest.$ac_objext
  5261. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5262. (eval $ac_compile) 2>conftest.er1
  5263. ac_status=$?
  5264. grep -v '^ *+' conftest.er1 >conftest.err
  5265. rm -f conftest.er1
  5266. cat conftest.err >&5
  5267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5268. (exit $ac_status); } &&
  5269. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5270. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5271. (eval $ac_try) 2>&5
  5272. ac_status=$?
  5273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5274. (exit $ac_status); }; } &&
  5275. { ac_try='test -s conftest.$ac_objext'
  5276. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5277. (eval $ac_try) 2>&5
  5278. ac_status=$?
  5279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5280. (exit $ac_status); }; }; then
  5281. ac_hi=$ac_mid
  5282. else
  5283. echo "$as_me: failed program was:" >&5
  5284. sed 's/^/| /' conftest.$ac_ext >&5
  5285. ac_lo=`expr '(' $ac_mid ')' + 1`
  5286. fi
  5287. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5288. done
  5289. case $ac_lo in
  5290. ?*) ac_cv_sizeof_int=$ac_lo;;
  5291. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  5292. See \`config.log' for more details." >&5
  5293. echo "$as_me: error: cannot compute sizeof (int), 77
  5294. See \`config.log' for more details." >&2;}
  5295. { (exit 1); exit 1; }; } ;;
  5296. esac
  5297. else
  5298. if test "$cross_compiling" = yes; then
  5299. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  5300. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  5301. { (exit 1); exit 1; }; }
  5302. else
  5303. cat >conftest.$ac_ext <<_ACEOF
  5304. /* confdefs.h. */
  5305. _ACEOF
  5306. cat confdefs.h >>conftest.$ac_ext
  5307. cat >>conftest.$ac_ext <<_ACEOF
  5308. /* end confdefs.h. */
  5309. $ac_includes_default
  5310. long longval () { return (long) (sizeof (int)); }
  5311. unsigned long ulongval () { return (long) (sizeof (int)); }
  5312. #include <stdio.h>
  5313. #include <stdlib.h>
  5314. int
  5315. main ()
  5316. {
  5317. FILE *f = fopen ("conftest.val", "w");
  5318. if (! f)
  5319. exit (1);
  5320. if (((long) (sizeof (int))) < 0)
  5321. {
  5322. long i = longval ();
  5323. if (i != ((long) (sizeof (int))))
  5324. exit (1);
  5325. fprintf (f, "%ld\n", i);
  5326. }
  5327. else
  5328. {
  5329. unsigned long i = ulongval ();
  5330. if (i != ((long) (sizeof (int))))
  5331. exit (1);
  5332. fprintf (f, "%lu\n", i);
  5333. }
  5334. exit (ferror (f) || fclose (f) != 0);
  5335. ;
  5336. return 0;
  5337. }
  5338. _ACEOF
  5339. rm -f conftest$ac_exeext
  5340. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5341. (eval $ac_link) 2>&5
  5342. ac_status=$?
  5343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5344. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5345. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5346. (eval $ac_try) 2>&5
  5347. ac_status=$?
  5348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5349. (exit $ac_status); }; }; then
  5350. ac_cv_sizeof_int=`cat conftest.val`
  5351. else
  5352. echo "$as_me: program exited with status $ac_status" >&5
  5353. echo "$as_me: failed program was:" >&5
  5354. sed 's/^/| /' conftest.$ac_ext >&5
  5355. ( exit $ac_status )
  5356. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  5357. See \`config.log' for more details." >&5
  5358. echo "$as_me: error: cannot compute sizeof (int), 77
  5359. See \`config.log' for more details." >&2;}
  5360. { (exit 1); exit 1; }; }
  5361. fi
  5362. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5363. fi
  5364. fi
  5365. rm -f conftest.val
  5366. else
  5367. ac_cv_sizeof_int=0
  5368. fi
  5369. fi
  5370. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  5371. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  5372. cat >>confdefs.h <<_ACEOF
  5373. #define SIZEOF_INT $ac_cv_sizeof_int
  5374. _ACEOF
  5375. echo "$as_me:$LINENO: checking for short" >&5
  5376. echo $ECHO_N "checking for short... $ECHO_C" >&6
  5377. if test "${ac_cv_type_short+set}" = set; then
  5378. echo $ECHO_N "(cached) $ECHO_C" >&6
  5379. else
  5380. cat >conftest.$ac_ext <<_ACEOF
  5381. /* confdefs.h. */
  5382. _ACEOF
  5383. cat confdefs.h >>conftest.$ac_ext
  5384. cat >>conftest.$ac_ext <<_ACEOF
  5385. /* end confdefs.h. */
  5386. $ac_includes_default
  5387. int
  5388. main ()
  5389. {
  5390. if ((short *) 0)
  5391. return 0;
  5392. if (sizeof (short))
  5393. return 0;
  5394. ;
  5395. return 0;
  5396. }
  5397. _ACEOF
  5398. rm -f conftest.$ac_objext
  5399. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5400. (eval $ac_compile) 2>conftest.er1
  5401. ac_status=$?
  5402. grep -v '^ *+' conftest.er1 >conftest.err
  5403. rm -f conftest.er1
  5404. cat conftest.err >&5
  5405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5406. (exit $ac_status); } &&
  5407. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5408. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5409. (eval $ac_try) 2>&5
  5410. ac_status=$?
  5411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5412. (exit $ac_status); }; } &&
  5413. { ac_try='test -s conftest.$ac_objext'
  5414. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5415. (eval $ac_try) 2>&5
  5416. ac_status=$?
  5417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5418. (exit $ac_status); }; }; then
  5419. ac_cv_type_short=yes
  5420. else
  5421. echo "$as_me: failed program was:" >&5
  5422. sed 's/^/| /' conftest.$ac_ext >&5
  5423. ac_cv_type_short=no
  5424. fi
  5425. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5426. fi
  5427. echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  5428. echo "${ECHO_T}$ac_cv_type_short" >&6
  5429. echo "$as_me:$LINENO: checking size of short" >&5
  5430. echo $ECHO_N "checking size of short... $ECHO_C" >&6
  5431. if test "${ac_cv_sizeof_short+set}" = set; then
  5432. echo $ECHO_N "(cached) $ECHO_C" >&6
  5433. else
  5434. if test "$ac_cv_type_short" = yes; then
  5435. # The cast to unsigned long works around a bug in the HP C Compiler
  5436. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5437. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5438. # This bug is HP SR number 8606223364.
  5439. if test "$cross_compiling" = yes; then
  5440. # Depending upon the size, compute the lo and hi bounds.
  5441. cat >conftest.$ac_ext <<_ACEOF
  5442. /* confdefs.h. */
  5443. _ACEOF
  5444. cat confdefs.h >>conftest.$ac_ext
  5445. cat >>conftest.$ac_ext <<_ACEOF
  5446. /* end confdefs.h. */
  5447. $ac_includes_default
  5448. int
  5449. main ()
  5450. {
  5451. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
  5452. test_array [0] = 0
  5453. ;
  5454. return 0;
  5455. }
  5456. _ACEOF
  5457. rm -f conftest.$ac_objext
  5458. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5459. (eval $ac_compile) 2>conftest.er1
  5460. ac_status=$?
  5461. grep -v '^ *+' conftest.er1 >conftest.err
  5462. rm -f conftest.er1
  5463. cat conftest.err >&5
  5464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5465. (exit $ac_status); } &&
  5466. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5467. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5468. (eval $ac_try) 2>&5
  5469. ac_status=$?
  5470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5471. (exit $ac_status); }; } &&
  5472. { ac_try='test -s conftest.$ac_objext'
  5473. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5474. (eval $ac_try) 2>&5
  5475. ac_status=$?
  5476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5477. (exit $ac_status); }; }; then
  5478. ac_lo=0 ac_mid=0
  5479. while :; do
  5480. cat >conftest.$ac_ext <<_ACEOF
  5481. /* confdefs.h. */
  5482. _ACEOF
  5483. cat confdefs.h >>conftest.$ac_ext
  5484. cat >>conftest.$ac_ext <<_ACEOF
  5485. /* end confdefs.h. */
  5486. $ac_includes_default
  5487. int
  5488. main ()
  5489. {
  5490. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  5491. test_array [0] = 0
  5492. ;
  5493. return 0;
  5494. }
  5495. _ACEOF
  5496. rm -f conftest.$ac_objext
  5497. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5498. (eval $ac_compile) 2>conftest.er1
  5499. ac_status=$?
  5500. grep -v '^ *+' conftest.er1 >conftest.err
  5501. rm -f conftest.er1
  5502. cat conftest.err >&5
  5503. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5504. (exit $ac_status); } &&
  5505. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5506. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5507. (eval $ac_try) 2>&5
  5508. ac_status=$?
  5509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5510. (exit $ac_status); }; } &&
  5511. { ac_try='test -s conftest.$ac_objext'
  5512. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5513. (eval $ac_try) 2>&5
  5514. ac_status=$?
  5515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5516. (exit $ac_status); }; }; then
  5517. ac_hi=$ac_mid; break
  5518. else
  5519. echo "$as_me: failed program was:" >&5
  5520. sed 's/^/| /' conftest.$ac_ext >&5
  5521. ac_lo=`expr $ac_mid + 1`
  5522. if test $ac_lo -le $ac_mid; then
  5523. ac_lo= ac_hi=
  5524. break
  5525. fi
  5526. ac_mid=`expr 2 '*' $ac_mid + 1`
  5527. fi
  5528. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5529. done
  5530. else
  5531. echo "$as_me: failed program was:" >&5
  5532. sed 's/^/| /' conftest.$ac_ext >&5
  5533. cat >conftest.$ac_ext <<_ACEOF
  5534. /* confdefs.h. */
  5535. _ACEOF
  5536. cat confdefs.h >>conftest.$ac_ext
  5537. cat >>conftest.$ac_ext <<_ACEOF
  5538. /* end confdefs.h. */
  5539. $ac_includes_default
  5540. int
  5541. main ()
  5542. {
  5543. static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
  5544. test_array [0] = 0
  5545. ;
  5546. return 0;
  5547. }
  5548. _ACEOF
  5549. rm -f conftest.$ac_objext
  5550. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5551. (eval $ac_compile) 2>conftest.er1
  5552. ac_status=$?
  5553. grep -v '^ *+' conftest.er1 >conftest.err
  5554. rm -f conftest.er1
  5555. cat conftest.err >&5
  5556. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5557. (exit $ac_status); } &&
  5558. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5559. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5560. (eval $ac_try) 2>&5
  5561. ac_status=$?
  5562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5563. (exit $ac_status); }; } &&
  5564. { ac_try='test -s conftest.$ac_objext'
  5565. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5566. (eval $ac_try) 2>&5
  5567. ac_status=$?
  5568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5569. (exit $ac_status); }; }; then
  5570. ac_hi=-1 ac_mid=-1
  5571. while :; do
  5572. cat >conftest.$ac_ext <<_ACEOF
  5573. /* confdefs.h. */
  5574. _ACEOF
  5575. cat confdefs.h >>conftest.$ac_ext
  5576. cat >>conftest.$ac_ext <<_ACEOF
  5577. /* end confdefs.h. */
  5578. $ac_includes_default
  5579. int
  5580. main ()
  5581. {
  5582. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
  5583. test_array [0] = 0
  5584. ;
  5585. return 0;
  5586. }
  5587. _ACEOF
  5588. rm -f conftest.$ac_objext
  5589. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5590. (eval $ac_compile) 2>conftest.er1
  5591. ac_status=$?
  5592. grep -v '^ *+' conftest.er1 >conftest.err
  5593. rm -f conftest.er1
  5594. cat conftest.err >&5
  5595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5596. (exit $ac_status); } &&
  5597. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5598. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5599. (eval $ac_try) 2>&5
  5600. ac_status=$?
  5601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5602. (exit $ac_status); }; } &&
  5603. { ac_try='test -s conftest.$ac_objext'
  5604. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5605. (eval $ac_try) 2>&5
  5606. ac_status=$?
  5607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5608. (exit $ac_status); }; }; then
  5609. ac_lo=$ac_mid; break
  5610. else
  5611. echo "$as_me: failed program was:" >&5
  5612. sed 's/^/| /' conftest.$ac_ext >&5
  5613. ac_hi=`expr '(' $ac_mid ')' - 1`
  5614. if test $ac_mid -le $ac_hi; then
  5615. ac_lo= ac_hi=
  5616. break
  5617. fi
  5618. ac_mid=`expr 2 '*' $ac_mid`
  5619. fi
  5620. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5621. done
  5622. else
  5623. echo "$as_me: failed program was:" >&5
  5624. sed 's/^/| /' conftest.$ac_ext >&5
  5625. ac_lo= ac_hi=
  5626. fi
  5627. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5628. fi
  5629. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5630. # Binary search between lo and hi bounds.
  5631. while test "x$ac_lo" != "x$ac_hi"; do
  5632. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5633. cat >conftest.$ac_ext <<_ACEOF
  5634. /* confdefs.h. */
  5635. _ACEOF
  5636. cat confdefs.h >>conftest.$ac_ext
  5637. cat >>conftest.$ac_ext <<_ACEOF
  5638. /* end confdefs.h. */
  5639. $ac_includes_default
  5640. int
  5641. main ()
  5642. {
  5643. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  5644. test_array [0] = 0
  5645. ;
  5646. return 0;
  5647. }
  5648. _ACEOF
  5649. rm -f conftest.$ac_objext
  5650. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5651. (eval $ac_compile) 2>conftest.er1
  5652. ac_status=$?
  5653. grep -v '^ *+' conftest.er1 >conftest.err
  5654. rm -f conftest.er1
  5655. cat conftest.err >&5
  5656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5657. (exit $ac_status); } &&
  5658. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5659. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5660. (eval $ac_try) 2>&5
  5661. ac_status=$?
  5662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5663. (exit $ac_status); }; } &&
  5664. { ac_try='test -s conftest.$ac_objext'
  5665. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5666. (eval $ac_try) 2>&5
  5667. ac_status=$?
  5668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5669. (exit $ac_status); }; }; then
  5670. ac_hi=$ac_mid
  5671. else
  5672. echo "$as_me: failed program was:" >&5
  5673. sed 's/^/| /' conftest.$ac_ext >&5
  5674. ac_lo=`expr '(' $ac_mid ')' + 1`
  5675. fi
  5676. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5677. done
  5678. case $ac_lo in
  5679. ?*) ac_cv_sizeof_short=$ac_lo;;
  5680. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  5681. See \`config.log' for more details." >&5
  5682. echo "$as_me: error: cannot compute sizeof (short), 77
  5683. See \`config.log' for more details." >&2;}
  5684. { (exit 1); exit 1; }; } ;;
  5685. esac
  5686. else
  5687. if test "$cross_compiling" = yes; then
  5688. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  5689. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  5690. { (exit 1); exit 1; }; }
  5691. else
  5692. cat >conftest.$ac_ext <<_ACEOF
  5693. /* confdefs.h. */
  5694. _ACEOF
  5695. cat confdefs.h >>conftest.$ac_ext
  5696. cat >>conftest.$ac_ext <<_ACEOF
  5697. /* end confdefs.h. */
  5698. $ac_includes_default
  5699. long longval () { return (long) (sizeof (short)); }
  5700. unsigned long ulongval () { return (long) (sizeof (short)); }
  5701. #include <stdio.h>
  5702. #include <stdlib.h>
  5703. int
  5704. main ()
  5705. {
  5706. FILE *f = fopen ("conftest.val", "w");
  5707. if (! f)
  5708. exit (1);
  5709. if (((long) (sizeof (short))) < 0)
  5710. {
  5711. long i = longval ();
  5712. if (i != ((long) (sizeof (short))))
  5713. exit (1);
  5714. fprintf (f, "%ld\n", i);
  5715. }
  5716. else
  5717. {
  5718. unsigned long i = ulongval ();
  5719. if (i != ((long) (sizeof (short))))
  5720. exit (1);
  5721. fprintf (f, "%lu\n", i);
  5722. }
  5723. exit (ferror (f) || fclose (f) != 0);
  5724. ;
  5725. return 0;
  5726. }
  5727. _ACEOF
  5728. rm -f conftest$ac_exeext
  5729. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5730. (eval $ac_link) 2>&5
  5731. ac_status=$?
  5732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5733. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5734. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5735. (eval $ac_try) 2>&5
  5736. ac_status=$?
  5737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5738. (exit $ac_status); }; }; then
  5739. ac_cv_sizeof_short=`cat conftest.val`
  5740. else
  5741. echo "$as_me: program exited with status $ac_status" >&5
  5742. echo "$as_me: failed program was:" >&5
  5743. sed 's/^/| /' conftest.$ac_ext >&5
  5744. ( exit $ac_status )
  5745. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  5746. See \`config.log' for more details." >&5
  5747. echo "$as_me: error: cannot compute sizeof (short), 77
  5748. See \`config.log' for more details." >&2;}
  5749. { (exit 1); exit 1; }; }
  5750. fi
  5751. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5752. fi
  5753. fi
  5754. rm -f conftest.val
  5755. else
  5756. ac_cv_sizeof_short=0
  5757. fi
  5758. fi
  5759. echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  5760. echo "${ECHO_T}$ac_cv_sizeof_short" >&6
  5761. cat >>confdefs.h <<_ACEOF
  5762. #define SIZEOF_SHORT $ac_cv_sizeof_short
  5763. _ACEOF
  5764. echo "$as_me:$LINENO: checking for long" >&5
  5765. echo $ECHO_N "checking for long... $ECHO_C" >&6
  5766. if test "${ac_cv_type_long+set}" = set; then
  5767. echo $ECHO_N "(cached) $ECHO_C" >&6
  5768. else
  5769. cat >conftest.$ac_ext <<_ACEOF
  5770. /* confdefs.h. */
  5771. _ACEOF
  5772. cat confdefs.h >>conftest.$ac_ext
  5773. cat >>conftest.$ac_ext <<_ACEOF
  5774. /* end confdefs.h. */
  5775. $ac_includes_default
  5776. int
  5777. main ()
  5778. {
  5779. if ((long *) 0)
  5780. return 0;
  5781. if (sizeof (long))
  5782. return 0;
  5783. ;
  5784. return 0;
  5785. }
  5786. _ACEOF
  5787. rm -f conftest.$ac_objext
  5788. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5789. (eval $ac_compile) 2>conftest.er1
  5790. ac_status=$?
  5791. grep -v '^ *+' conftest.er1 >conftest.err
  5792. rm -f conftest.er1
  5793. cat conftest.err >&5
  5794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5795. (exit $ac_status); } &&
  5796. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5797. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5798. (eval $ac_try) 2>&5
  5799. ac_status=$?
  5800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5801. (exit $ac_status); }; } &&
  5802. { ac_try='test -s conftest.$ac_objext'
  5803. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5804. (eval $ac_try) 2>&5
  5805. ac_status=$?
  5806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5807. (exit $ac_status); }; }; then
  5808. ac_cv_type_long=yes
  5809. else
  5810. echo "$as_me: failed program was:" >&5
  5811. sed 's/^/| /' conftest.$ac_ext >&5
  5812. ac_cv_type_long=no
  5813. fi
  5814. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5815. fi
  5816. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  5817. echo "${ECHO_T}$ac_cv_type_long" >&6
  5818. echo "$as_me:$LINENO: checking size of long" >&5
  5819. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  5820. if test "${ac_cv_sizeof_long+set}" = set; then
  5821. echo $ECHO_N "(cached) $ECHO_C" >&6
  5822. else
  5823. if test "$ac_cv_type_long" = yes; then
  5824. # The cast to unsigned long works around a bug in the HP C Compiler
  5825. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5826. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5827. # This bug is HP SR number 8606223364.
  5828. if test "$cross_compiling" = yes; then
  5829. # Depending upon the size, compute the lo and hi bounds.
  5830. cat >conftest.$ac_ext <<_ACEOF
  5831. /* confdefs.h. */
  5832. _ACEOF
  5833. cat confdefs.h >>conftest.$ac_ext
  5834. cat >>conftest.$ac_ext <<_ACEOF
  5835. /* end confdefs.h. */
  5836. $ac_includes_default
  5837. int
  5838. main ()
  5839. {
  5840. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  5841. test_array [0] = 0
  5842. ;
  5843. return 0;
  5844. }
  5845. _ACEOF
  5846. rm -f conftest.$ac_objext
  5847. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5848. (eval $ac_compile) 2>conftest.er1
  5849. ac_status=$?
  5850. grep -v '^ *+' conftest.er1 >conftest.err
  5851. rm -f conftest.er1
  5852. cat conftest.err >&5
  5853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5854. (exit $ac_status); } &&
  5855. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5856. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5857. (eval $ac_try) 2>&5
  5858. ac_status=$?
  5859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5860. (exit $ac_status); }; } &&
  5861. { ac_try='test -s conftest.$ac_objext'
  5862. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5863. (eval $ac_try) 2>&5
  5864. ac_status=$?
  5865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5866. (exit $ac_status); }; }; then
  5867. ac_lo=0 ac_mid=0
  5868. while :; do
  5869. cat >conftest.$ac_ext <<_ACEOF
  5870. /* confdefs.h. */
  5871. _ACEOF
  5872. cat confdefs.h >>conftest.$ac_ext
  5873. cat >>conftest.$ac_ext <<_ACEOF
  5874. /* end confdefs.h. */
  5875. $ac_includes_default
  5876. int
  5877. main ()
  5878. {
  5879. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  5880. test_array [0] = 0
  5881. ;
  5882. return 0;
  5883. }
  5884. _ACEOF
  5885. rm -f conftest.$ac_objext
  5886. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5887. (eval $ac_compile) 2>conftest.er1
  5888. ac_status=$?
  5889. grep -v '^ *+' conftest.er1 >conftest.err
  5890. rm -f conftest.er1
  5891. cat conftest.err >&5
  5892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5893. (exit $ac_status); } &&
  5894. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5895. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5896. (eval $ac_try) 2>&5
  5897. ac_status=$?
  5898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5899. (exit $ac_status); }; } &&
  5900. { ac_try='test -s conftest.$ac_objext'
  5901. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5902. (eval $ac_try) 2>&5
  5903. ac_status=$?
  5904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5905. (exit $ac_status); }; }; then
  5906. ac_hi=$ac_mid; break
  5907. else
  5908. echo "$as_me: failed program was:" >&5
  5909. sed 's/^/| /' conftest.$ac_ext >&5
  5910. ac_lo=`expr $ac_mid + 1`
  5911. if test $ac_lo -le $ac_mid; then
  5912. ac_lo= ac_hi=
  5913. break
  5914. fi
  5915. ac_mid=`expr 2 '*' $ac_mid + 1`
  5916. fi
  5917. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5918. done
  5919. else
  5920. echo "$as_me: failed program was:" >&5
  5921. sed 's/^/| /' conftest.$ac_ext >&5
  5922. cat >conftest.$ac_ext <<_ACEOF
  5923. /* confdefs.h. */
  5924. _ACEOF
  5925. cat confdefs.h >>conftest.$ac_ext
  5926. cat >>conftest.$ac_ext <<_ACEOF
  5927. /* end confdefs.h. */
  5928. $ac_includes_default
  5929. int
  5930. main ()
  5931. {
  5932. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  5933. test_array [0] = 0
  5934. ;
  5935. return 0;
  5936. }
  5937. _ACEOF
  5938. rm -f conftest.$ac_objext
  5939. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5940. (eval $ac_compile) 2>conftest.er1
  5941. ac_status=$?
  5942. grep -v '^ *+' conftest.er1 >conftest.err
  5943. rm -f conftest.er1
  5944. cat conftest.err >&5
  5945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5946. (exit $ac_status); } &&
  5947. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5948. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5949. (eval $ac_try) 2>&5
  5950. ac_status=$?
  5951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5952. (exit $ac_status); }; } &&
  5953. { ac_try='test -s conftest.$ac_objext'
  5954. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5955. (eval $ac_try) 2>&5
  5956. ac_status=$?
  5957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5958. (exit $ac_status); }; }; then
  5959. ac_hi=-1 ac_mid=-1
  5960. while :; do
  5961. cat >conftest.$ac_ext <<_ACEOF
  5962. /* confdefs.h. */
  5963. _ACEOF
  5964. cat confdefs.h >>conftest.$ac_ext
  5965. cat >>conftest.$ac_ext <<_ACEOF
  5966. /* end confdefs.h. */
  5967. $ac_includes_default
  5968. int
  5969. main ()
  5970. {
  5971. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  5972. test_array [0] = 0
  5973. ;
  5974. return 0;
  5975. }
  5976. _ACEOF
  5977. rm -f conftest.$ac_objext
  5978. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5979. (eval $ac_compile) 2>conftest.er1
  5980. ac_status=$?
  5981. grep -v '^ *+' conftest.er1 >conftest.err
  5982. rm -f conftest.er1
  5983. cat conftest.err >&5
  5984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5985. (exit $ac_status); } &&
  5986. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5987. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5988. (eval $ac_try) 2>&5
  5989. ac_status=$?
  5990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5991. (exit $ac_status); }; } &&
  5992. { ac_try='test -s conftest.$ac_objext'
  5993. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5994. (eval $ac_try) 2>&5
  5995. ac_status=$?
  5996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5997. (exit $ac_status); }; }; then
  5998. ac_lo=$ac_mid; break
  5999. else
  6000. echo "$as_me: failed program was:" >&5
  6001. sed 's/^/| /' conftest.$ac_ext >&5
  6002. ac_hi=`expr '(' $ac_mid ')' - 1`
  6003. if test $ac_mid -le $ac_hi; then
  6004. ac_lo= ac_hi=
  6005. break
  6006. fi
  6007. ac_mid=`expr 2 '*' $ac_mid`
  6008. fi
  6009. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6010. done
  6011. else
  6012. echo "$as_me: failed program was:" >&5
  6013. sed 's/^/| /' conftest.$ac_ext >&5
  6014. ac_lo= ac_hi=
  6015. fi
  6016. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6017. fi
  6018. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6019. # Binary search between lo and hi bounds.
  6020. while test "x$ac_lo" != "x$ac_hi"; do
  6021. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6022. cat >conftest.$ac_ext <<_ACEOF
  6023. /* confdefs.h. */
  6024. _ACEOF
  6025. cat confdefs.h >>conftest.$ac_ext
  6026. cat >>conftest.$ac_ext <<_ACEOF
  6027. /* end confdefs.h. */
  6028. $ac_includes_default
  6029. int
  6030. main ()
  6031. {
  6032. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6033. test_array [0] = 0
  6034. ;
  6035. return 0;
  6036. }
  6037. _ACEOF
  6038. rm -f conftest.$ac_objext
  6039. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6040. (eval $ac_compile) 2>conftest.er1
  6041. ac_status=$?
  6042. grep -v '^ *+' conftest.er1 >conftest.err
  6043. rm -f conftest.er1
  6044. cat conftest.err >&5
  6045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6046. (exit $ac_status); } &&
  6047. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6048. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6049. (eval $ac_try) 2>&5
  6050. ac_status=$?
  6051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6052. (exit $ac_status); }; } &&
  6053. { ac_try='test -s conftest.$ac_objext'
  6054. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6055. (eval $ac_try) 2>&5
  6056. ac_status=$?
  6057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6058. (exit $ac_status); }; }; then
  6059. ac_hi=$ac_mid
  6060. else
  6061. echo "$as_me: failed program was:" >&5
  6062. sed 's/^/| /' conftest.$ac_ext >&5
  6063. ac_lo=`expr '(' $ac_mid ')' + 1`
  6064. fi
  6065. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6066. done
  6067. case $ac_lo in
  6068. ?*) ac_cv_sizeof_long=$ac_lo;;
  6069. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6070. See \`config.log' for more details." >&5
  6071. echo "$as_me: error: cannot compute sizeof (long), 77
  6072. See \`config.log' for more details." >&2;}
  6073. { (exit 1); exit 1; }; } ;;
  6074. esac
  6075. else
  6076. if test "$cross_compiling" = yes; then
  6077. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6078. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6079. { (exit 1); exit 1; }; }
  6080. else
  6081. cat >conftest.$ac_ext <<_ACEOF
  6082. /* confdefs.h. */
  6083. _ACEOF
  6084. cat confdefs.h >>conftest.$ac_ext
  6085. cat >>conftest.$ac_ext <<_ACEOF
  6086. /* end confdefs.h. */
  6087. $ac_includes_default
  6088. long longval () { return (long) (sizeof (long)); }
  6089. unsigned long ulongval () { return (long) (sizeof (long)); }
  6090. #include <stdio.h>
  6091. #include <stdlib.h>
  6092. int
  6093. main ()
  6094. {
  6095. FILE *f = fopen ("conftest.val", "w");
  6096. if (! f)
  6097. exit (1);
  6098. if (((long) (sizeof (long))) < 0)
  6099. {
  6100. long i = longval ();
  6101. if (i != ((long) (sizeof (long))))
  6102. exit (1);
  6103. fprintf (f, "%ld\n", i);
  6104. }
  6105. else
  6106. {
  6107. unsigned long i = ulongval ();
  6108. if (i != ((long) (sizeof (long))))
  6109. exit (1);
  6110. fprintf (f, "%lu\n", i);
  6111. }
  6112. exit (ferror (f) || fclose (f) != 0);
  6113. ;
  6114. return 0;
  6115. }
  6116. _ACEOF
  6117. rm -f conftest$ac_exeext
  6118. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6119. (eval $ac_link) 2>&5
  6120. ac_status=$?
  6121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6122. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6123. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6124. (eval $ac_try) 2>&5
  6125. ac_status=$?
  6126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6127. (exit $ac_status); }; }; then
  6128. ac_cv_sizeof_long=`cat conftest.val`
  6129. else
  6130. echo "$as_me: program exited with status $ac_status" >&5
  6131. echo "$as_me: failed program was:" >&5
  6132. sed 's/^/| /' conftest.$ac_ext >&5
  6133. ( exit $ac_status )
  6134. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6135. See \`config.log' for more details." >&5
  6136. echo "$as_me: error: cannot compute sizeof (long), 77
  6137. See \`config.log' for more details." >&2;}
  6138. { (exit 1); exit 1; }; }
  6139. fi
  6140. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6141. fi
  6142. fi
  6143. rm -f conftest.val
  6144. else
  6145. ac_cv_sizeof_long=0
  6146. fi
  6147. fi
  6148. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  6149. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  6150. cat >>confdefs.h <<_ACEOF
  6151. #define SIZEOF_LONG $ac_cv_sizeof_long
  6152. _ACEOF
  6153. echo "$as_me:$LINENO: checking for long long" >&5
  6154. echo $ECHO_N "checking for long long... $ECHO_C" >&6
  6155. if test "${ac_cv_type_long_long+set}" = set; then
  6156. echo $ECHO_N "(cached) $ECHO_C" >&6
  6157. else
  6158. cat >conftest.$ac_ext <<_ACEOF
  6159. /* confdefs.h. */
  6160. _ACEOF
  6161. cat confdefs.h >>conftest.$ac_ext
  6162. cat >>conftest.$ac_ext <<_ACEOF
  6163. /* end confdefs.h. */
  6164. $ac_includes_default
  6165. int
  6166. main ()
  6167. {
  6168. if ((long long *) 0)
  6169. return 0;
  6170. if (sizeof (long long))
  6171. return 0;
  6172. ;
  6173. return 0;
  6174. }
  6175. _ACEOF
  6176. rm -f conftest.$ac_objext
  6177. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6178. (eval $ac_compile) 2>conftest.er1
  6179. ac_status=$?
  6180. grep -v '^ *+' conftest.er1 >conftest.err
  6181. rm -f conftest.er1
  6182. cat conftest.err >&5
  6183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6184. (exit $ac_status); } &&
  6185. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6186. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6187. (eval $ac_try) 2>&5
  6188. ac_status=$?
  6189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6190. (exit $ac_status); }; } &&
  6191. { ac_try='test -s conftest.$ac_objext'
  6192. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6193. (eval $ac_try) 2>&5
  6194. ac_status=$?
  6195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6196. (exit $ac_status); }; }; then
  6197. ac_cv_type_long_long=yes
  6198. else
  6199. echo "$as_me: failed program was:" >&5
  6200. sed 's/^/| /' conftest.$ac_ext >&5
  6201. ac_cv_type_long_long=no
  6202. fi
  6203. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6204. fi
  6205. echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  6206. echo "${ECHO_T}$ac_cv_type_long_long" >&6
  6207. echo "$as_me:$LINENO: checking size of long long" >&5
  6208. echo $ECHO_N "checking size of long long... $ECHO_C" >&6
  6209. if test "${ac_cv_sizeof_long_long+set}" = set; then
  6210. echo $ECHO_N "(cached) $ECHO_C" >&6
  6211. else
  6212. if test "$ac_cv_type_long_long" = yes; then
  6213. # The cast to unsigned long works around a bug in the HP C Compiler
  6214. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6215. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6216. # This bug is HP SR number 8606223364.
  6217. if test "$cross_compiling" = yes; then
  6218. # Depending upon the size, compute the lo and hi bounds.
  6219. cat >conftest.$ac_ext <<_ACEOF
  6220. /* confdefs.h. */
  6221. _ACEOF
  6222. cat confdefs.h >>conftest.$ac_ext
  6223. cat >>conftest.$ac_ext <<_ACEOF
  6224. /* end confdefs.h. */
  6225. $ac_includes_default
  6226. int
  6227. main ()
  6228. {
  6229. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
  6230. test_array [0] = 0
  6231. ;
  6232. return 0;
  6233. }
  6234. _ACEOF
  6235. rm -f conftest.$ac_objext
  6236. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6237. (eval $ac_compile) 2>conftest.er1
  6238. ac_status=$?
  6239. grep -v '^ *+' conftest.er1 >conftest.err
  6240. rm -f conftest.er1
  6241. cat conftest.err >&5
  6242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6243. (exit $ac_status); } &&
  6244. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6245. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6246. (eval $ac_try) 2>&5
  6247. ac_status=$?
  6248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6249. (exit $ac_status); }; } &&
  6250. { ac_try='test -s conftest.$ac_objext'
  6251. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6252. (eval $ac_try) 2>&5
  6253. ac_status=$?
  6254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6255. (exit $ac_status); }; }; then
  6256. ac_lo=0 ac_mid=0
  6257. while :; do
  6258. cat >conftest.$ac_ext <<_ACEOF
  6259. /* confdefs.h. */
  6260. _ACEOF
  6261. cat confdefs.h >>conftest.$ac_ext
  6262. cat >>conftest.$ac_ext <<_ACEOF
  6263. /* end confdefs.h. */
  6264. $ac_includes_default
  6265. int
  6266. main ()
  6267. {
  6268. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  6269. test_array [0] = 0
  6270. ;
  6271. return 0;
  6272. }
  6273. _ACEOF
  6274. rm -f conftest.$ac_objext
  6275. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6276. (eval $ac_compile) 2>conftest.er1
  6277. ac_status=$?
  6278. grep -v '^ *+' conftest.er1 >conftest.err
  6279. rm -f conftest.er1
  6280. cat conftest.err >&5
  6281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6282. (exit $ac_status); } &&
  6283. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6284. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6285. (eval $ac_try) 2>&5
  6286. ac_status=$?
  6287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6288. (exit $ac_status); }; } &&
  6289. { ac_try='test -s conftest.$ac_objext'
  6290. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6291. (eval $ac_try) 2>&5
  6292. ac_status=$?
  6293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6294. (exit $ac_status); }; }; then
  6295. ac_hi=$ac_mid; break
  6296. else
  6297. echo "$as_me: failed program was:" >&5
  6298. sed 's/^/| /' conftest.$ac_ext >&5
  6299. ac_lo=`expr $ac_mid + 1`
  6300. if test $ac_lo -le $ac_mid; then
  6301. ac_lo= ac_hi=
  6302. break
  6303. fi
  6304. ac_mid=`expr 2 '*' $ac_mid + 1`
  6305. fi
  6306. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6307. done
  6308. else
  6309. echo "$as_me: failed program was:" >&5
  6310. sed 's/^/| /' conftest.$ac_ext >&5
  6311. cat >conftest.$ac_ext <<_ACEOF
  6312. /* confdefs.h. */
  6313. _ACEOF
  6314. cat confdefs.h >>conftest.$ac_ext
  6315. cat >>conftest.$ac_ext <<_ACEOF
  6316. /* end confdefs.h. */
  6317. $ac_includes_default
  6318. int
  6319. main ()
  6320. {
  6321. static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
  6322. test_array [0] = 0
  6323. ;
  6324. return 0;
  6325. }
  6326. _ACEOF
  6327. rm -f conftest.$ac_objext
  6328. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6329. (eval $ac_compile) 2>conftest.er1
  6330. ac_status=$?
  6331. grep -v '^ *+' conftest.er1 >conftest.err
  6332. rm -f conftest.er1
  6333. cat conftest.err >&5
  6334. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6335. (exit $ac_status); } &&
  6336. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6337. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6338. (eval $ac_try) 2>&5
  6339. ac_status=$?
  6340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6341. (exit $ac_status); }; } &&
  6342. { ac_try='test -s conftest.$ac_objext'
  6343. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6344. (eval $ac_try) 2>&5
  6345. ac_status=$?
  6346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6347. (exit $ac_status); }; }; then
  6348. ac_hi=-1 ac_mid=-1
  6349. while :; do
  6350. cat >conftest.$ac_ext <<_ACEOF
  6351. /* confdefs.h. */
  6352. _ACEOF
  6353. cat confdefs.h >>conftest.$ac_ext
  6354. cat >>conftest.$ac_ext <<_ACEOF
  6355. /* end confdefs.h. */
  6356. $ac_includes_default
  6357. int
  6358. main ()
  6359. {
  6360. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
  6361. test_array [0] = 0
  6362. ;
  6363. return 0;
  6364. }
  6365. _ACEOF
  6366. rm -f conftest.$ac_objext
  6367. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6368. (eval $ac_compile) 2>conftest.er1
  6369. ac_status=$?
  6370. grep -v '^ *+' conftest.er1 >conftest.err
  6371. rm -f conftest.er1
  6372. cat conftest.err >&5
  6373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6374. (exit $ac_status); } &&
  6375. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6376. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6377. (eval $ac_try) 2>&5
  6378. ac_status=$?
  6379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6380. (exit $ac_status); }; } &&
  6381. { ac_try='test -s conftest.$ac_objext'
  6382. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6383. (eval $ac_try) 2>&5
  6384. ac_status=$?
  6385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6386. (exit $ac_status); }; }; then
  6387. ac_lo=$ac_mid; break
  6388. else
  6389. echo "$as_me: failed program was:" >&5
  6390. sed 's/^/| /' conftest.$ac_ext >&5
  6391. ac_hi=`expr '(' $ac_mid ')' - 1`
  6392. if test $ac_mid -le $ac_hi; then
  6393. ac_lo= ac_hi=
  6394. break
  6395. fi
  6396. ac_mid=`expr 2 '*' $ac_mid`
  6397. fi
  6398. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6399. done
  6400. else
  6401. echo "$as_me: failed program was:" >&5
  6402. sed 's/^/| /' conftest.$ac_ext >&5
  6403. ac_lo= ac_hi=
  6404. fi
  6405. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6406. fi
  6407. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6408. # Binary search between lo and hi bounds.
  6409. while test "x$ac_lo" != "x$ac_hi"; do
  6410. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6411. cat >conftest.$ac_ext <<_ACEOF
  6412. /* confdefs.h. */
  6413. _ACEOF
  6414. cat confdefs.h >>conftest.$ac_ext
  6415. cat >>conftest.$ac_ext <<_ACEOF
  6416. /* end confdefs.h. */
  6417. $ac_includes_default
  6418. int
  6419. main ()
  6420. {
  6421. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  6422. test_array [0] = 0
  6423. ;
  6424. return 0;
  6425. }
  6426. _ACEOF
  6427. rm -f conftest.$ac_objext
  6428. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6429. (eval $ac_compile) 2>conftest.er1
  6430. ac_status=$?
  6431. grep -v '^ *+' conftest.er1 >conftest.err
  6432. rm -f conftest.er1
  6433. cat conftest.err >&5
  6434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6435. (exit $ac_status); } &&
  6436. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6437. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6438. (eval $ac_try) 2>&5
  6439. ac_status=$?
  6440. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6441. (exit $ac_status); }; } &&
  6442. { ac_try='test -s conftest.$ac_objext'
  6443. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6444. (eval $ac_try) 2>&5
  6445. ac_status=$?
  6446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6447. (exit $ac_status); }; }; then
  6448. ac_hi=$ac_mid
  6449. else
  6450. echo "$as_me: failed program was:" >&5
  6451. sed 's/^/| /' conftest.$ac_ext >&5
  6452. ac_lo=`expr '(' $ac_mid ')' + 1`
  6453. fi
  6454. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6455. done
  6456. case $ac_lo in
  6457. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  6458. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  6459. See \`config.log' for more details." >&5
  6460. echo "$as_me: error: cannot compute sizeof (long long), 77
  6461. See \`config.log' for more details." >&2;}
  6462. { (exit 1); exit 1; }; } ;;
  6463. esac
  6464. else
  6465. if test "$cross_compiling" = yes; then
  6466. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6467. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6468. { (exit 1); exit 1; }; }
  6469. else
  6470. cat >conftest.$ac_ext <<_ACEOF
  6471. /* confdefs.h. */
  6472. _ACEOF
  6473. cat confdefs.h >>conftest.$ac_ext
  6474. cat >>conftest.$ac_ext <<_ACEOF
  6475. /* end confdefs.h. */
  6476. $ac_includes_default
  6477. long longval () { return (long) (sizeof (long long)); }
  6478. unsigned long ulongval () { return (long) (sizeof (long long)); }
  6479. #include <stdio.h>
  6480. #include <stdlib.h>
  6481. int
  6482. main ()
  6483. {
  6484. FILE *f = fopen ("conftest.val", "w");
  6485. if (! f)
  6486. exit (1);
  6487. if (((long) (sizeof (long long))) < 0)
  6488. {
  6489. long i = longval ();
  6490. if (i != ((long) (sizeof (long long))))
  6491. exit (1);
  6492. fprintf (f, "%ld\n", i);
  6493. }
  6494. else
  6495. {
  6496. unsigned long i = ulongval ();
  6497. if (i != ((long) (sizeof (long long))))
  6498. exit (1);
  6499. fprintf (f, "%lu\n", i);
  6500. }
  6501. exit (ferror (f) || fclose (f) != 0);
  6502. ;
  6503. return 0;
  6504. }
  6505. _ACEOF
  6506. rm -f conftest$ac_exeext
  6507. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6508. (eval $ac_link) 2>&5
  6509. ac_status=$?
  6510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6511. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6512. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6513. (eval $ac_try) 2>&5
  6514. ac_status=$?
  6515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6516. (exit $ac_status); }; }; then
  6517. ac_cv_sizeof_long_long=`cat conftest.val`
  6518. else
  6519. echo "$as_me: program exited with status $ac_status" >&5
  6520. echo "$as_me: failed program was:" >&5
  6521. sed 's/^/| /' conftest.$ac_ext >&5
  6522. ( exit $ac_status )
  6523. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  6524. See \`config.log' for more details." >&5
  6525. echo "$as_me: error: cannot compute sizeof (long long), 77
  6526. See \`config.log' for more details." >&2;}
  6527. { (exit 1); exit 1; }; }
  6528. fi
  6529. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6530. fi
  6531. fi
  6532. rm -f conftest.val
  6533. else
  6534. ac_cv_sizeof_long_long=0
  6535. fi
  6536. fi
  6537. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  6538. echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
  6539. cat >>confdefs.h <<_ACEOF
  6540. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  6541. _ACEOF
  6542. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  6543. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  6544. if test "${ac_cv_struct_tm+set}" = set; then
  6545. echo $ECHO_N "(cached) $ECHO_C" >&6
  6546. else
  6547. cat >conftest.$ac_ext <<_ACEOF
  6548. /* confdefs.h. */
  6549. _ACEOF
  6550. cat confdefs.h >>conftest.$ac_ext
  6551. cat >>conftest.$ac_ext <<_ACEOF
  6552. /* end confdefs.h. */
  6553. #include <sys/types.h>
  6554. #include <time.h>
  6555. int
  6556. main ()
  6557. {
  6558. struct tm *tp; tp->tm_sec;
  6559. ;
  6560. return 0;
  6561. }
  6562. _ACEOF
  6563. rm -f conftest.$ac_objext
  6564. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6565. (eval $ac_compile) 2>conftest.er1
  6566. ac_status=$?
  6567. grep -v '^ *+' conftest.er1 >conftest.err
  6568. rm -f conftest.er1
  6569. cat conftest.err >&5
  6570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6571. (exit $ac_status); } &&
  6572. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6573. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6574. (eval $ac_try) 2>&5
  6575. ac_status=$?
  6576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6577. (exit $ac_status); }; } &&
  6578. { ac_try='test -s conftest.$ac_objext'
  6579. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6580. (eval $ac_try) 2>&5
  6581. ac_status=$?
  6582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6583. (exit $ac_status); }; }; then
  6584. ac_cv_struct_tm=time.h
  6585. else
  6586. echo "$as_me: failed program was:" >&5
  6587. sed 's/^/| /' conftest.$ac_ext >&5
  6588. ac_cv_struct_tm=sys/time.h
  6589. fi
  6590. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6591. fi
  6592. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  6593. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  6594. if test $ac_cv_struct_tm = sys/time.h; then
  6595. cat >>confdefs.h <<\_ACEOF
  6596. #define TM_IN_SYS_TIME 1
  6597. _ACEOF
  6598. fi
  6599. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  6600. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  6601. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  6602. echo $ECHO_N "(cached) $ECHO_C" >&6
  6603. else
  6604. cat >conftest.$ac_ext <<_ACEOF
  6605. /* confdefs.h. */
  6606. _ACEOF
  6607. cat confdefs.h >>conftest.$ac_ext
  6608. cat >>conftest.$ac_ext <<_ACEOF
  6609. /* end confdefs.h. */
  6610. #include <sys/types.h>
  6611. #include <$ac_cv_struct_tm>
  6612. int
  6613. main ()
  6614. {
  6615. static struct tm ac_aggr;
  6616. if (ac_aggr.tm_zone)
  6617. return 0;
  6618. ;
  6619. return 0;
  6620. }
  6621. _ACEOF
  6622. rm -f conftest.$ac_objext
  6623. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6624. (eval $ac_compile) 2>conftest.er1
  6625. ac_status=$?
  6626. grep -v '^ *+' conftest.er1 >conftest.err
  6627. rm -f conftest.er1
  6628. cat conftest.err >&5
  6629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6630. (exit $ac_status); } &&
  6631. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6632. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6633. (eval $ac_try) 2>&5
  6634. ac_status=$?
  6635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6636. (exit $ac_status); }; } &&
  6637. { ac_try='test -s conftest.$ac_objext'
  6638. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6639. (eval $ac_try) 2>&5
  6640. ac_status=$?
  6641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6642. (exit $ac_status); }; }; then
  6643. ac_cv_member_struct_tm_tm_zone=yes
  6644. else
  6645. echo "$as_me: failed program was:" >&5
  6646. sed 's/^/| /' conftest.$ac_ext >&5
  6647. cat >conftest.$ac_ext <<_ACEOF
  6648. /* confdefs.h. */
  6649. _ACEOF
  6650. cat confdefs.h >>conftest.$ac_ext
  6651. cat >>conftest.$ac_ext <<_ACEOF
  6652. /* end confdefs.h. */
  6653. #include <sys/types.h>
  6654. #include <$ac_cv_struct_tm>
  6655. int
  6656. main ()
  6657. {
  6658. static struct tm ac_aggr;
  6659. if (sizeof ac_aggr.tm_zone)
  6660. return 0;
  6661. ;
  6662. return 0;
  6663. }
  6664. _ACEOF
  6665. rm -f conftest.$ac_objext
  6666. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6667. (eval $ac_compile) 2>conftest.er1
  6668. ac_status=$?
  6669. grep -v '^ *+' conftest.er1 >conftest.err
  6670. rm -f conftest.er1
  6671. cat conftest.err >&5
  6672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6673. (exit $ac_status); } &&
  6674. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6675. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6676. (eval $ac_try) 2>&5
  6677. ac_status=$?
  6678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6679. (exit $ac_status); }; } &&
  6680. { ac_try='test -s conftest.$ac_objext'
  6681. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6682. (eval $ac_try) 2>&5
  6683. ac_status=$?
  6684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6685. (exit $ac_status); }; }; then
  6686. ac_cv_member_struct_tm_tm_zone=yes
  6687. else
  6688. echo "$as_me: failed program was:" >&5
  6689. sed 's/^/| /' conftest.$ac_ext >&5
  6690. ac_cv_member_struct_tm_tm_zone=no
  6691. fi
  6692. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6693. fi
  6694. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6695. fi
  6696. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  6697. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  6698. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  6699. cat >>confdefs.h <<_ACEOF
  6700. #define HAVE_STRUCT_TM_TM_ZONE 1
  6701. _ACEOF
  6702. fi
  6703. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  6704. cat >>confdefs.h <<\_ACEOF
  6705. #define HAVE_TM_ZONE 1
  6706. _ACEOF
  6707. else
  6708. echo "$as_me:$LINENO: checking for tzname" >&5
  6709. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  6710. if test "${ac_cv_var_tzname+set}" = set; then
  6711. echo $ECHO_N "(cached) $ECHO_C" >&6
  6712. else
  6713. cat >conftest.$ac_ext <<_ACEOF
  6714. /* confdefs.h. */
  6715. _ACEOF
  6716. cat confdefs.h >>conftest.$ac_ext
  6717. cat >>conftest.$ac_ext <<_ACEOF
  6718. /* end confdefs.h. */
  6719. #include <time.h>
  6720. #ifndef tzname /* For SGI. */
  6721. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  6722. #endif
  6723. int
  6724. main ()
  6725. {
  6726. atoi(*tzname);
  6727. ;
  6728. return 0;
  6729. }
  6730. _ACEOF
  6731. rm -f conftest.$ac_objext conftest$ac_exeext
  6732. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6733. (eval $ac_link) 2>conftest.er1
  6734. ac_status=$?
  6735. grep -v '^ *+' conftest.er1 >conftest.err
  6736. rm -f conftest.er1
  6737. cat conftest.err >&5
  6738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6739. (exit $ac_status); } &&
  6740. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6741. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6742. (eval $ac_try) 2>&5
  6743. ac_status=$?
  6744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6745. (exit $ac_status); }; } &&
  6746. { ac_try='test -s conftest$ac_exeext'
  6747. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6748. (eval $ac_try) 2>&5
  6749. ac_status=$?
  6750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6751. (exit $ac_status); }; }; then
  6752. ac_cv_var_tzname=yes
  6753. else
  6754. echo "$as_me: failed program was:" >&5
  6755. sed 's/^/| /' conftest.$ac_ext >&5
  6756. ac_cv_var_tzname=no
  6757. fi
  6758. rm -f conftest.err conftest.$ac_objext \
  6759. conftest$ac_exeext conftest.$ac_ext
  6760. fi
  6761. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  6762. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  6763. if test $ac_cv_var_tzname = yes; then
  6764. cat >>confdefs.h <<\_ACEOF
  6765. #define HAVE_TZNAME 1
  6766. _ACEOF
  6767. fi
  6768. fi
  6769. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  6770. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  6771. if test "${ac_cv_struct_tm+set}" = set; then
  6772. echo $ECHO_N "(cached) $ECHO_C" >&6
  6773. else
  6774. cat >conftest.$ac_ext <<_ACEOF
  6775. /* confdefs.h. */
  6776. _ACEOF
  6777. cat confdefs.h >>conftest.$ac_ext
  6778. cat >>conftest.$ac_ext <<_ACEOF
  6779. /* end confdefs.h. */
  6780. #include <sys/types.h>
  6781. #include <time.h>
  6782. int
  6783. main ()
  6784. {
  6785. struct tm *tp; tp->tm_sec;
  6786. ;
  6787. return 0;
  6788. }
  6789. _ACEOF
  6790. rm -f conftest.$ac_objext
  6791. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6792. (eval $ac_compile) 2>conftest.er1
  6793. ac_status=$?
  6794. grep -v '^ *+' conftest.er1 >conftest.err
  6795. rm -f conftest.er1
  6796. cat conftest.err >&5
  6797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6798. (exit $ac_status); } &&
  6799. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6801. (eval $ac_try) 2>&5
  6802. ac_status=$?
  6803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6804. (exit $ac_status); }; } &&
  6805. { ac_try='test -s conftest.$ac_objext'
  6806. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6807. (eval $ac_try) 2>&5
  6808. ac_status=$?
  6809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6810. (exit $ac_status); }; }; then
  6811. ac_cv_struct_tm=time.h
  6812. else
  6813. echo "$as_me: failed program was:" >&5
  6814. sed 's/^/| /' conftest.$ac_ext >&5
  6815. ac_cv_struct_tm=sys/time.h
  6816. fi
  6817. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6818. fi
  6819. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  6820. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  6821. if test $ac_cv_struct_tm = sys/time.h; then
  6822. cat >>confdefs.h <<\_ACEOF
  6823. #define TM_IN_SYS_TIME 1
  6824. _ACEOF
  6825. fi
  6826. #checkpoint
  6827. cat >confcache <<\_ACEOF
  6828. # This file is a shell script that caches the results of configure
  6829. # tests run on this system so they can be shared between configure
  6830. # scripts and configure runs, see configure's option --config-cache.
  6831. # It is not useful on other systems. If it contains results you don't
  6832. # want to keep, you may remove or edit it.
  6833. #
  6834. # config.status only pays attention to the cache file if you give it
  6835. # the --recheck option to rerun configure.
  6836. #
  6837. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6838. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6839. # following values.
  6840. _ACEOF
  6841. # The following way of writing the cache mishandles newlines in values,
  6842. # but we know of no workaround that is simple, portable, and efficient.
  6843. # So, don't put newlines in cache variables' values.
  6844. # Ultrix sh set writes to stderr and can't be redirected directly,
  6845. # and sets the high bit in the cache file unless we assign to the vars.
  6846. {
  6847. (set) 2>&1 |
  6848. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6849. *ac_space=\ *)
  6850. # `set' does not quote correctly, so add quotes (double-quote
  6851. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6852. sed -n \
  6853. "s/'/'\\\\''/g;
  6854. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6855. ;;
  6856. *)
  6857. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6858. sed -n \
  6859. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  6860. ;;
  6861. esac;
  6862. } |
  6863. sed '
  6864. t clear
  6865. : clear
  6866. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6867. t end
  6868. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6869. : end' >>confcache
  6870. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  6871. if test -w $cache_file; then
  6872. test "x$cache_file" != "x/dev/null"
  6873. cat confcache >$cache_file
  6874. else
  6875. echo "not updating unwritable cache $cache_file"
  6876. fi
  6877. fi
  6878. rm -f confcache
  6879. # Checks for library functions
  6880. for ac_header in unistd.h vfork.h
  6881. do
  6882. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6883. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6884. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6885. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6886. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6887. echo $ECHO_N "(cached) $ECHO_C" >&6
  6888. fi
  6889. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6890. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6891. else
  6892. # Is the header compilable?
  6893. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6894. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6895. cat >conftest.$ac_ext <<_ACEOF
  6896. /* confdefs.h. */
  6897. _ACEOF
  6898. cat confdefs.h >>conftest.$ac_ext
  6899. cat >>conftest.$ac_ext <<_ACEOF
  6900. /* end confdefs.h. */
  6901. $ac_includes_default
  6902. #include <$ac_header>
  6903. _ACEOF
  6904. rm -f conftest.$ac_objext
  6905. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6906. (eval $ac_compile) 2>conftest.er1
  6907. ac_status=$?
  6908. grep -v '^ *+' conftest.er1 >conftest.err
  6909. rm -f conftest.er1
  6910. cat conftest.err >&5
  6911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6912. (exit $ac_status); } &&
  6913. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6914. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6915. (eval $ac_try) 2>&5
  6916. ac_status=$?
  6917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6918. (exit $ac_status); }; } &&
  6919. { ac_try='test -s conftest.$ac_objext'
  6920. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6921. (eval $ac_try) 2>&5
  6922. ac_status=$?
  6923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6924. (exit $ac_status); }; }; then
  6925. ac_header_compiler=yes
  6926. else
  6927. echo "$as_me: failed program was:" >&5
  6928. sed 's/^/| /' conftest.$ac_ext >&5
  6929. ac_header_compiler=no
  6930. fi
  6931. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6932. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6933. echo "${ECHO_T}$ac_header_compiler" >&6
  6934. # Is the header present?
  6935. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6936. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6937. cat >conftest.$ac_ext <<_ACEOF
  6938. /* confdefs.h. */
  6939. _ACEOF
  6940. cat confdefs.h >>conftest.$ac_ext
  6941. cat >>conftest.$ac_ext <<_ACEOF
  6942. /* end confdefs.h. */
  6943. #include <$ac_header>
  6944. _ACEOF
  6945. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6946. (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
  6953. if test -s conftest.err; then
  6954. ac_cpp_err=$ac_cxx_preproc_warn_flag
  6955. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  6956. else
  6957. ac_cpp_err=
  6958. fi
  6959. else
  6960. ac_cpp_err=yes
  6961. fi
  6962. if test -z "$ac_cpp_err"; then
  6963. ac_header_preproc=yes
  6964. else
  6965. echo "$as_me: failed program was:" >&5
  6966. sed 's/^/| /' conftest.$ac_ext >&5
  6967. ac_header_preproc=no
  6968. fi
  6969. rm -f conftest.err conftest.$ac_ext
  6970. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6971. echo "${ECHO_T}$ac_header_preproc" >&6
  6972. # So? What about this header?
  6973. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  6974. yes:no: )
  6975. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6976. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6977. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6978. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6979. ac_header_preproc=yes
  6980. ;;
  6981. no:yes:* )
  6982. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6983. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6984. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6985. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6986. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6987. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6988. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6989. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6990. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6991. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6992. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6993. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6994. (
  6995. cat <<\_ASBOX
  6996. ## ------------------------------------------ ##
  6997. ## Report this to the AC_PACKAGE_NAME lists. ##
  6998. ## ------------------------------------------ ##
  6999. _ASBOX
  7000. ) |
  7001. sed "s/^/$as_me: WARNING: /" >&2
  7002. ;;
  7003. esac
  7004. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7005. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7006. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7007. echo $ECHO_N "(cached) $ECHO_C" >&6
  7008. else
  7009. eval "$as_ac_Header=\$ac_header_preproc"
  7010. fi
  7011. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7012. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7013. fi
  7014. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7015. cat >>confdefs.h <<_ACEOF
  7016. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7017. _ACEOF
  7018. fi
  7019. done
  7020. for ac_func in fork vfork
  7021. do
  7022. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7023. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7024. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7025. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7026. echo $ECHO_N "(cached) $ECHO_C" >&6
  7027. else
  7028. cat >conftest.$ac_ext <<_ACEOF
  7029. /* confdefs.h. */
  7030. _ACEOF
  7031. cat confdefs.h >>conftest.$ac_ext
  7032. cat >>conftest.$ac_ext <<_ACEOF
  7033. /* end confdefs.h. */
  7034. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7035. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7036. #define $ac_func innocuous_$ac_func
  7037. /* System header to define __stub macros and hopefully few prototypes,
  7038. which can conflict with char $ac_func (); below.
  7039. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7040. <limits.h> exists even on freestanding compilers. */
  7041. #ifdef __STDC__
  7042. # include <limits.h>
  7043. #else
  7044. # include <assert.h>
  7045. #endif
  7046. #undef $ac_func
  7047. /* Override any gcc2 internal prototype to avoid an error. */
  7048. #ifdef __cplusplus
  7049. extern "C"
  7050. {
  7051. #endif
  7052. /* We use char because int might match the return type of a gcc2
  7053. builtin and then its argument prototype would still apply. */
  7054. char $ac_func ();
  7055. /* The GNU C library defines this for functions which it implements
  7056. to always fail with ENOSYS. Some functions are actually named
  7057. something starting with __ and the normal name is an alias. */
  7058. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7059. choke me
  7060. #else
  7061. char (*f) () = $ac_func;
  7062. #endif
  7063. #ifdef __cplusplus
  7064. }
  7065. #endif
  7066. int
  7067. main ()
  7068. {
  7069. return f != $ac_func;
  7070. ;
  7071. return 0;
  7072. }
  7073. _ACEOF
  7074. rm -f conftest.$ac_objext conftest$ac_exeext
  7075. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7076. (eval $ac_link) 2>conftest.er1
  7077. ac_status=$?
  7078. grep -v '^ *+' conftest.er1 >conftest.err
  7079. rm -f conftest.er1
  7080. cat conftest.err >&5
  7081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7082. (exit $ac_status); } &&
  7083. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7084. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7085. (eval $ac_try) 2>&5
  7086. ac_status=$?
  7087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7088. (exit $ac_status); }; } &&
  7089. { ac_try='test -s conftest$ac_exeext'
  7090. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7091. (eval $ac_try) 2>&5
  7092. ac_status=$?
  7093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7094. (exit $ac_status); }; }; then
  7095. eval "$as_ac_var=yes"
  7096. else
  7097. echo "$as_me: failed program was:" >&5
  7098. sed 's/^/| /' conftest.$ac_ext >&5
  7099. eval "$as_ac_var=no"
  7100. fi
  7101. rm -f conftest.err conftest.$ac_objext \
  7102. conftest$ac_exeext conftest.$ac_ext
  7103. fi
  7104. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7105. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7106. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7107. cat >>confdefs.h <<_ACEOF
  7108. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7109. _ACEOF
  7110. fi
  7111. done
  7112. if test "x$ac_cv_func_fork" = xyes; then
  7113. echo "$as_me:$LINENO: checking for working fork" >&5
  7114. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  7115. if test "${ac_cv_func_fork_works+set}" = set; then
  7116. echo $ECHO_N "(cached) $ECHO_C" >&6
  7117. else
  7118. if test "$cross_compiling" = yes; then
  7119. ac_cv_func_fork_works=cross
  7120. else
  7121. cat >conftest.$ac_ext <<_ACEOF
  7122. /* By Ruediger Kuhlmann. */
  7123. #include <sys/types.h>
  7124. #if HAVE_UNISTD_H
  7125. # include <unistd.h>
  7126. #endif
  7127. /* Some systems only have a dummy stub for fork() */
  7128. int main ()
  7129. {
  7130. if (fork() < 0)
  7131. exit (1);
  7132. exit (0);
  7133. }
  7134. _ACEOF
  7135. rm -f conftest$ac_exeext
  7136. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7137. (eval $ac_link) 2>&5
  7138. ac_status=$?
  7139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7140. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7141. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7142. (eval $ac_try) 2>&5
  7143. ac_status=$?
  7144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7145. (exit $ac_status); }; }; then
  7146. ac_cv_func_fork_works=yes
  7147. else
  7148. echo "$as_me: program exited with status $ac_status" >&5
  7149. echo "$as_me: failed program was:" >&5
  7150. sed 's/^/| /' conftest.$ac_ext >&5
  7151. ( exit $ac_status )
  7152. ac_cv_func_fork_works=no
  7153. fi
  7154. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7155. fi
  7156. fi
  7157. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  7158. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  7159. else
  7160. ac_cv_func_fork_works=$ac_cv_func_fork
  7161. fi
  7162. if test "x$ac_cv_func_fork_works" = xcross; then
  7163. case $host in
  7164. *-*-amigaos* | *-*-msdosdjgpp*)
  7165. # Override, as these systems have only a dummy fork() stub
  7166. ac_cv_func_fork_works=no
  7167. ;;
  7168. *)
  7169. ac_cv_func_fork_works=yes
  7170. ;;
  7171. esac
  7172. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  7173. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  7174. fi
  7175. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7176. if test "x$ac_cv_func_vfork" = xyes; then
  7177. echo "$as_me:$LINENO: checking for working vfork" >&5
  7178. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  7179. if test "${ac_cv_func_vfork_works+set}" = set; then
  7180. echo $ECHO_N "(cached) $ECHO_C" >&6
  7181. else
  7182. if test "$cross_compiling" = yes; then
  7183. ac_cv_func_vfork_works=cross
  7184. else
  7185. cat >conftest.$ac_ext <<_ACEOF
  7186. /* confdefs.h. */
  7187. _ACEOF
  7188. cat confdefs.h >>conftest.$ac_ext
  7189. cat >>conftest.$ac_ext <<_ACEOF
  7190. /* end confdefs.h. */
  7191. /* Thanks to Paul Eggert for this test. */
  7192. #include <stdio.h>
  7193. #include <stdlib.h>
  7194. #include <sys/types.h>
  7195. #include <sys/stat.h>
  7196. #include <sys/wait.h>
  7197. #if HAVE_UNISTD_H
  7198. # include <unistd.h>
  7199. #endif
  7200. #if HAVE_VFORK_H
  7201. # include <vfork.h>
  7202. #endif
  7203. /* On some sparc systems, changes by the child to local and incoming
  7204. argument registers are propagated back to the parent. The compiler
  7205. is told about this with #include <vfork.h>, but some compilers
  7206. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  7207. static variable whose address is put into a register that is
  7208. clobbered by the vfork. */
  7209. static void
  7210. #ifdef __cplusplus
  7211. sparc_address_test (int arg)
  7212. # else
  7213. sparc_address_test (arg) int arg;
  7214. #endif
  7215. {
  7216. static pid_t child;
  7217. if (!child) {
  7218. child = vfork ();
  7219. if (child < 0) {
  7220. perror ("vfork");
  7221. _exit(2);
  7222. }
  7223. if (!child) {
  7224. arg = getpid();
  7225. write(-1, "", 0);
  7226. _exit (arg);
  7227. }
  7228. }
  7229. }
  7230. int
  7231. main ()
  7232. {
  7233. pid_t parent = getpid ();
  7234. pid_t child;
  7235. sparc_address_test (0);
  7236. child = vfork ();
  7237. if (child == 0) {
  7238. /* Here is another test for sparc vfork register problems. This
  7239. test uses lots of local variables, at least as many local
  7240. variables as main has allocated so far including compiler
  7241. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  7242. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  7243. reuse the register of parent for one of the local variables,
  7244. since it will think that parent can't possibly be used any more
  7245. in this routine. Assigning to the local variable will thus
  7246. munge parent in the parent process. */
  7247. pid_t
  7248. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  7249. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  7250. /* Convince the compiler that p..p7 are live; otherwise, it might
  7251. use the same hardware register for all 8 local variables. */
  7252. if (p != p1 || p != p2 || p != p3 || p != p4
  7253. || p != p5 || p != p6 || p != p7)
  7254. _exit(1);
  7255. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  7256. from child file descriptors. If the child closes a descriptor
  7257. before it execs or exits, this munges the parent's descriptor
  7258. as well. Test for this by closing stdout in the child. */
  7259. _exit(close(fileno(stdout)) != 0);
  7260. } else {
  7261. int status;
  7262. struct stat st;
  7263. while (wait(&status) != child)
  7264. ;
  7265. exit(
  7266. /* Was there some problem with vforking? */
  7267. child < 0
  7268. /* Did the child fail? (This shouldn't happen.) */
  7269. || status
  7270. /* Did the vfork/compiler bug occur? */
  7271. || parent != getpid()
  7272. /* Did the file descriptor bug occur? */
  7273. || fstat(fileno(stdout), &st) != 0
  7274. );
  7275. }
  7276. }
  7277. _ACEOF
  7278. rm -f conftest$ac_exeext
  7279. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7280. (eval $ac_link) 2>&5
  7281. ac_status=$?
  7282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7283. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7284. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7285. (eval $ac_try) 2>&5
  7286. ac_status=$?
  7287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7288. (exit $ac_status); }; }; then
  7289. ac_cv_func_vfork_works=yes
  7290. else
  7291. echo "$as_me: program exited with status $ac_status" >&5
  7292. echo "$as_me: failed program was:" >&5
  7293. sed 's/^/| /' conftest.$ac_ext >&5
  7294. ( exit $ac_status )
  7295. ac_cv_func_vfork_works=no
  7296. fi
  7297. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7298. fi
  7299. fi
  7300. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  7301. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  7302. fi;
  7303. if test "x$ac_cv_func_fork_works" = xcross; then
  7304. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7305. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  7306. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  7307. fi
  7308. if test "x$ac_cv_func_vfork_works" = xyes; then
  7309. cat >>confdefs.h <<\_ACEOF
  7310. #define HAVE_WORKING_VFORK 1
  7311. _ACEOF
  7312. else
  7313. cat >>confdefs.h <<\_ACEOF
  7314. #define vfork fork
  7315. _ACEOF
  7316. fi
  7317. if test "x$ac_cv_func_fork_works" = xyes; then
  7318. cat >>confdefs.h <<\_ACEOF
  7319. #define HAVE_WORKING_FORK 1
  7320. _ACEOF
  7321. fi
  7322. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  7323. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  7324. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  7325. echo $ECHO_N "(cached) $ECHO_C" >&6
  7326. else
  7327. rm -f conftest.sym conftest.file
  7328. echo >conftest.file
  7329. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  7330. if test "$cross_compiling" = yes; then
  7331. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7332. else
  7333. cat >conftest.$ac_ext <<_ACEOF
  7334. /* confdefs.h. */
  7335. _ACEOF
  7336. cat confdefs.h >>conftest.$ac_ext
  7337. cat >>conftest.$ac_ext <<_ACEOF
  7338. /* end confdefs.h. */
  7339. $ac_includes_default
  7340. int
  7341. main ()
  7342. {
  7343. struct stat sbuf;
  7344. /* Linux will dereference the symlink and fail.
  7345. That is better in the sense that it means we will not
  7346. have to compile and use the lstat wrapper. */
  7347. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  7348. ;
  7349. return 0;
  7350. }
  7351. _ACEOF
  7352. rm -f conftest$ac_exeext
  7353. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7354. (eval $ac_link) 2>&5
  7355. ac_status=$?
  7356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7357. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7358. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7359. (eval $ac_try) 2>&5
  7360. ac_status=$?
  7361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7362. (exit $ac_status); }; }; then
  7363. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  7364. else
  7365. echo "$as_me: program exited with status $ac_status" >&5
  7366. echo "$as_me: failed program was:" >&5
  7367. sed 's/^/| /' conftest.$ac_ext >&5
  7368. ( exit $ac_status )
  7369. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7370. fi
  7371. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7372. fi
  7373. else
  7374. # If the `ln -s' command failed, then we probably don't even
  7375. # have an lstat function.
  7376. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7377. fi
  7378. rm -f conftest.sym conftest.file
  7379. fi
  7380. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  7381. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  7382. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  7383. cat >>confdefs.h <<_ACEOF
  7384. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  7385. _ACEOF
  7386. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  7387. case $LIBOBJS in
  7388. "lstat.$ac_objext" | \
  7389. *" lstat.$ac_objext" | \
  7390. "lstat.$ac_objext "* | \
  7391. *" lstat.$ac_objext "* ) ;;
  7392. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  7393. esac
  7394. fi
  7395. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  7396. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  7397. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  7398. echo $ECHO_N "(cached) $ECHO_C" >&6
  7399. else
  7400. if test "$cross_compiling" = yes; then
  7401. ac_cv_func_lstat_empty_string_bug=yes
  7402. else
  7403. cat >conftest.$ac_ext <<_ACEOF
  7404. /* confdefs.h. */
  7405. _ACEOF
  7406. cat confdefs.h >>conftest.$ac_ext
  7407. cat >>conftest.$ac_ext <<_ACEOF
  7408. /* end confdefs.h. */
  7409. $ac_includes_default
  7410. int
  7411. main ()
  7412. {
  7413. struct stat sbuf;
  7414. exit (lstat ("", &sbuf) ? 1 : 0);
  7415. ;
  7416. return 0;
  7417. }
  7418. _ACEOF
  7419. rm -f conftest$ac_exeext
  7420. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7421. (eval $ac_link) 2>&5
  7422. ac_status=$?
  7423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7424. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7425. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7426. (eval $ac_try) 2>&5
  7427. ac_status=$?
  7428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7429. (exit $ac_status); }; }; then
  7430. ac_cv_func_lstat_empty_string_bug=yes
  7431. else
  7432. echo "$as_me: program exited with status $ac_status" >&5
  7433. echo "$as_me: failed program was:" >&5
  7434. sed 's/^/| /' conftest.$ac_ext >&5
  7435. ( exit $ac_status )
  7436. ac_cv_func_lstat_empty_string_bug=no
  7437. fi
  7438. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7439. fi
  7440. fi
  7441. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  7442. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  7443. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  7444. case $LIBOBJS in
  7445. "lstat.$ac_objext" | \
  7446. *" lstat.$ac_objext" | \
  7447. "lstat.$ac_objext "* | \
  7448. *" lstat.$ac_objext "* ) ;;
  7449. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  7450. esac
  7451. cat >>confdefs.h <<_ACEOF
  7452. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  7453. _ACEOF
  7454. fi
  7455. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  7456. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  7457. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  7458. echo $ECHO_N "(cached) $ECHO_C" >&6
  7459. else
  7460. rm -f conftest.sym conftest.file
  7461. echo >conftest.file
  7462. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  7463. if test "$cross_compiling" = yes; then
  7464. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7465. else
  7466. cat >conftest.$ac_ext <<_ACEOF
  7467. /* confdefs.h. */
  7468. _ACEOF
  7469. cat confdefs.h >>conftest.$ac_ext
  7470. cat >>conftest.$ac_ext <<_ACEOF
  7471. /* end confdefs.h. */
  7472. $ac_includes_default
  7473. int
  7474. main ()
  7475. {
  7476. struct stat sbuf;
  7477. /* Linux will dereference the symlink and fail.
  7478. That is better in the sense that it means we will not
  7479. have to compile and use the lstat wrapper. */
  7480. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  7481. ;
  7482. return 0;
  7483. }
  7484. _ACEOF
  7485. rm -f conftest$ac_exeext
  7486. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7487. (eval $ac_link) 2>&5
  7488. ac_status=$?
  7489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7490. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7491. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7492. (eval $ac_try) 2>&5
  7493. ac_status=$?
  7494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7495. (exit $ac_status); }; }; then
  7496. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  7497. else
  7498. echo "$as_me: program exited with status $ac_status" >&5
  7499. echo "$as_me: failed program was:" >&5
  7500. sed 's/^/| /' conftest.$ac_ext >&5
  7501. ( exit $ac_status )
  7502. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7503. fi
  7504. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7505. fi
  7506. else
  7507. # If the `ln -s' command failed, then we probably don't even
  7508. # have an lstat function.
  7509. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7510. fi
  7511. rm -f conftest.sym conftest.file
  7512. fi
  7513. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  7514. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  7515. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  7516. cat >>confdefs.h <<_ACEOF
  7517. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  7518. _ACEOF
  7519. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  7520. case $LIBOBJS in
  7521. "lstat.$ac_objext" | \
  7522. *" lstat.$ac_objext" | \
  7523. "lstat.$ac_objext "* | \
  7524. *" lstat.$ac_objext "* ) ;;
  7525. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  7526. esac
  7527. fi
  7528. for ac_header in stdlib.h
  7529. do
  7530. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7531. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7532. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7533. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7534. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7535. echo $ECHO_N "(cached) $ECHO_C" >&6
  7536. fi
  7537. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7538. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7539. else
  7540. # Is the header compilable?
  7541. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7542. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7543. cat >conftest.$ac_ext <<_ACEOF
  7544. /* confdefs.h. */
  7545. _ACEOF
  7546. cat confdefs.h >>conftest.$ac_ext
  7547. cat >>conftest.$ac_ext <<_ACEOF
  7548. /* end confdefs.h. */
  7549. $ac_includes_default
  7550. #include <$ac_header>
  7551. _ACEOF
  7552. rm -f conftest.$ac_objext
  7553. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7554. (eval $ac_compile) 2>conftest.er1
  7555. ac_status=$?
  7556. grep -v '^ *+' conftest.er1 >conftest.err
  7557. rm -f conftest.er1
  7558. cat conftest.err >&5
  7559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7560. (exit $ac_status); } &&
  7561. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7562. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7563. (eval $ac_try) 2>&5
  7564. ac_status=$?
  7565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7566. (exit $ac_status); }; } &&
  7567. { ac_try='test -s conftest.$ac_objext'
  7568. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7569. (eval $ac_try) 2>&5
  7570. ac_status=$?
  7571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7572. (exit $ac_status); }; }; then
  7573. ac_header_compiler=yes
  7574. else
  7575. echo "$as_me: failed program was:" >&5
  7576. sed 's/^/| /' conftest.$ac_ext >&5
  7577. ac_header_compiler=no
  7578. fi
  7579. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7580. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7581. echo "${ECHO_T}$ac_header_compiler" >&6
  7582. # Is the header present?
  7583. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7584. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7585. cat >conftest.$ac_ext <<_ACEOF
  7586. /* confdefs.h. */
  7587. _ACEOF
  7588. cat confdefs.h >>conftest.$ac_ext
  7589. cat >>conftest.$ac_ext <<_ACEOF
  7590. /* end confdefs.h. */
  7591. #include <$ac_header>
  7592. _ACEOF
  7593. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7594. (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
  7601. if test -s conftest.err; then
  7602. ac_cpp_err=$ac_cxx_preproc_warn_flag
  7603. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  7604. else
  7605. ac_cpp_err=
  7606. fi
  7607. else
  7608. ac_cpp_err=yes
  7609. fi
  7610. if test -z "$ac_cpp_err"; then
  7611. ac_header_preproc=yes
  7612. else
  7613. echo "$as_me: failed program was:" >&5
  7614. sed 's/^/| /' conftest.$ac_ext >&5
  7615. ac_header_preproc=no
  7616. fi
  7617. rm -f conftest.err conftest.$ac_ext
  7618. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7619. echo "${ECHO_T}$ac_header_preproc" >&6
  7620. # So? What about this header?
  7621. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7622. yes:no: )
  7623. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7624. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7625. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7626. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7627. ac_header_preproc=yes
  7628. ;;
  7629. no:yes:* )
  7630. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7631. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7632. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7633. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7634. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7635. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7636. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7637. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7638. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7639. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7640. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7641. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7642. (
  7643. cat <<\_ASBOX
  7644. ## ------------------------------------------ ##
  7645. ## Report this to the AC_PACKAGE_NAME lists. ##
  7646. ## ------------------------------------------ ##
  7647. _ASBOX
  7648. ) |
  7649. sed "s/^/$as_me: WARNING: /" >&2
  7650. ;;
  7651. esac
  7652. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7653. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7654. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7655. echo $ECHO_N "(cached) $ECHO_C" >&6
  7656. else
  7657. eval "$as_ac_Header=\$ac_header_preproc"
  7658. fi
  7659. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7660. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7661. fi
  7662. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7663. cat >>confdefs.h <<_ACEOF
  7664. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7665. _ACEOF
  7666. fi
  7667. done
  7668. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  7669. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  7670. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  7671. echo $ECHO_N "(cached) $ECHO_C" >&6
  7672. else
  7673. if test "$cross_compiling" = yes; then
  7674. ac_cv_func_malloc_0_nonnull=no
  7675. else
  7676. cat >conftest.$ac_ext <<_ACEOF
  7677. /* confdefs.h. */
  7678. _ACEOF
  7679. cat confdefs.h >>conftest.$ac_ext
  7680. cat >>conftest.$ac_ext <<_ACEOF
  7681. /* end confdefs.h. */
  7682. #if STDC_HEADERS || HAVE_STDLIB_H
  7683. # include <stdlib.h>
  7684. #else
  7685. char *malloc ();
  7686. #endif
  7687. int
  7688. main ()
  7689. {
  7690. exit (malloc (0) ? 0 : 1);
  7691. ;
  7692. return 0;
  7693. }
  7694. _ACEOF
  7695. rm -f conftest$ac_exeext
  7696. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7697. (eval $ac_link) 2>&5
  7698. ac_status=$?
  7699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7700. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7701. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7702. (eval $ac_try) 2>&5
  7703. ac_status=$?
  7704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7705. (exit $ac_status); }; }; then
  7706. ac_cv_func_malloc_0_nonnull=yes
  7707. else
  7708. echo "$as_me: program exited with status $ac_status" >&5
  7709. echo "$as_me: failed program was:" >&5
  7710. sed 's/^/| /' conftest.$ac_ext >&5
  7711. ( exit $ac_status )
  7712. ac_cv_func_malloc_0_nonnull=no
  7713. fi
  7714. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7715. fi
  7716. fi
  7717. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  7718. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  7719. if test $ac_cv_func_malloc_0_nonnull = yes; then
  7720. cat >>confdefs.h <<\_ACEOF
  7721. #define HAVE_MALLOC 1
  7722. _ACEOF
  7723. else
  7724. cat >>confdefs.h <<\_ACEOF
  7725. #define HAVE_MALLOC 0
  7726. _ACEOF
  7727. case $LIBOBJS in
  7728. "malloc.$ac_objext" | \
  7729. *" malloc.$ac_objext" | \
  7730. "malloc.$ac_objext "* | \
  7731. *" malloc.$ac_objext "* ) ;;
  7732. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  7733. esac
  7734. cat >>confdefs.h <<\_ACEOF
  7735. #define malloc rpl_malloc
  7736. _ACEOF
  7737. fi
  7738. for ac_header in stdlib.h sys/time.h unistd.h
  7739. do
  7740. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7741. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7742. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7743. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7744. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7745. echo $ECHO_N "(cached) $ECHO_C" >&6
  7746. fi
  7747. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7748. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7749. else
  7750. # Is the header compilable?
  7751. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7752. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7753. cat >conftest.$ac_ext <<_ACEOF
  7754. /* confdefs.h. */
  7755. _ACEOF
  7756. cat confdefs.h >>conftest.$ac_ext
  7757. cat >>conftest.$ac_ext <<_ACEOF
  7758. /* end confdefs.h. */
  7759. $ac_includes_default
  7760. #include <$ac_header>
  7761. _ACEOF
  7762. rm -f conftest.$ac_objext
  7763. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7764. (eval $ac_compile) 2>conftest.er1
  7765. ac_status=$?
  7766. grep -v '^ *+' conftest.er1 >conftest.err
  7767. rm -f conftest.er1
  7768. cat conftest.err >&5
  7769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7770. (exit $ac_status); } &&
  7771. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7772. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7773. (eval $ac_try) 2>&5
  7774. ac_status=$?
  7775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7776. (exit $ac_status); }; } &&
  7777. { ac_try='test -s conftest.$ac_objext'
  7778. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7779. (eval $ac_try) 2>&5
  7780. ac_status=$?
  7781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7782. (exit $ac_status); }; }; then
  7783. ac_header_compiler=yes
  7784. else
  7785. echo "$as_me: failed program was:" >&5
  7786. sed 's/^/| /' conftest.$ac_ext >&5
  7787. ac_header_compiler=no
  7788. fi
  7789. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7790. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7791. echo "${ECHO_T}$ac_header_compiler" >&6
  7792. # Is the header present?
  7793. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7794. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7795. cat >conftest.$ac_ext <<_ACEOF
  7796. /* confdefs.h. */
  7797. _ACEOF
  7798. cat confdefs.h >>conftest.$ac_ext
  7799. cat >>conftest.$ac_ext <<_ACEOF
  7800. /* end confdefs.h. */
  7801. #include <$ac_header>
  7802. _ACEOF
  7803. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7804. (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
  7811. if test -s conftest.err; then
  7812. ac_cpp_err=$ac_cxx_preproc_warn_flag
  7813. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  7814. else
  7815. ac_cpp_err=
  7816. fi
  7817. else
  7818. ac_cpp_err=yes
  7819. fi
  7820. if test -z "$ac_cpp_err"; then
  7821. ac_header_preproc=yes
  7822. else
  7823. echo "$as_me: failed program was:" >&5
  7824. sed 's/^/| /' conftest.$ac_ext >&5
  7825. ac_header_preproc=no
  7826. fi
  7827. rm -f conftest.err conftest.$ac_ext
  7828. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7829. echo "${ECHO_T}$ac_header_preproc" >&6
  7830. # So? What about this header?
  7831. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7832. yes:no: )
  7833. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7834. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7835. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7836. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7837. ac_header_preproc=yes
  7838. ;;
  7839. no:yes:* )
  7840. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7841. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7842. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7843. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7844. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7845. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7846. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7847. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7848. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7849. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7850. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7851. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7852. (
  7853. cat <<\_ASBOX
  7854. ## ------------------------------------------ ##
  7855. ## Report this to the AC_PACKAGE_NAME lists. ##
  7856. ## ------------------------------------------ ##
  7857. _ASBOX
  7858. ) |
  7859. sed "s/^/$as_me: WARNING: /" >&2
  7860. ;;
  7861. esac
  7862. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7863. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7864. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7865. echo $ECHO_N "(cached) $ECHO_C" >&6
  7866. else
  7867. eval "$as_ac_Header=\$ac_header_preproc"
  7868. fi
  7869. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7870. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7871. fi
  7872. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7873. cat >>confdefs.h <<_ACEOF
  7874. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7875. _ACEOF
  7876. fi
  7877. done
  7878. for ac_func in alarm
  7879. do
  7880. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7881. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7882. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7883. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7884. echo $ECHO_N "(cached) $ECHO_C" >&6
  7885. else
  7886. cat >conftest.$ac_ext <<_ACEOF
  7887. /* confdefs.h. */
  7888. _ACEOF
  7889. cat confdefs.h >>conftest.$ac_ext
  7890. cat >>conftest.$ac_ext <<_ACEOF
  7891. /* end confdefs.h. */
  7892. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7893. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7894. #define $ac_func innocuous_$ac_func
  7895. /* System header to define __stub macros and hopefully few prototypes,
  7896. which can conflict with char $ac_func (); below.
  7897. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7898. <limits.h> exists even on freestanding compilers. */
  7899. #ifdef __STDC__
  7900. # include <limits.h>
  7901. #else
  7902. # include <assert.h>
  7903. #endif
  7904. #undef $ac_func
  7905. /* Override any gcc2 internal prototype to avoid an error. */
  7906. #ifdef __cplusplus
  7907. extern "C"
  7908. {
  7909. #endif
  7910. /* We use char because int might match the return type of a gcc2
  7911. builtin and then its argument prototype would still apply. */
  7912. char $ac_func ();
  7913. /* The GNU C library defines this for functions which it implements
  7914. to always fail with ENOSYS. Some functions are actually named
  7915. something starting with __ and the normal name is an alias. */
  7916. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7917. choke me
  7918. #else
  7919. char (*f) () = $ac_func;
  7920. #endif
  7921. #ifdef __cplusplus
  7922. }
  7923. #endif
  7924. int
  7925. main ()
  7926. {
  7927. return f != $ac_func;
  7928. ;
  7929. return 0;
  7930. }
  7931. _ACEOF
  7932. rm -f conftest.$ac_objext conftest$ac_exeext
  7933. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7934. (eval $ac_link) 2>conftest.er1
  7935. ac_status=$?
  7936. grep -v '^ *+' conftest.er1 >conftest.err
  7937. rm -f conftest.er1
  7938. cat conftest.err >&5
  7939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7940. (exit $ac_status); } &&
  7941. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7942. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7943. (eval $ac_try) 2>&5
  7944. ac_status=$?
  7945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7946. (exit $ac_status); }; } &&
  7947. { ac_try='test -s conftest$ac_exeext'
  7948. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7949. (eval $ac_try) 2>&5
  7950. ac_status=$?
  7951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7952. (exit $ac_status); }; }; then
  7953. eval "$as_ac_var=yes"
  7954. else
  7955. echo "$as_me: failed program was:" >&5
  7956. sed 's/^/| /' conftest.$ac_ext >&5
  7957. eval "$as_ac_var=no"
  7958. fi
  7959. rm -f conftest.err conftest.$ac_objext \
  7960. conftest$ac_exeext conftest.$ac_ext
  7961. fi
  7962. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7963. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7964. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7965. cat >>confdefs.h <<_ACEOF
  7966. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7967. _ACEOF
  7968. fi
  7969. done
  7970. echo "$as_me:$LINENO: checking for working mktime" >&5
  7971. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  7972. if test "${ac_cv_func_working_mktime+set}" = set; then
  7973. echo $ECHO_N "(cached) $ECHO_C" >&6
  7974. else
  7975. if test "$cross_compiling" = yes; then
  7976. ac_cv_func_working_mktime=no
  7977. else
  7978. cat >conftest.$ac_ext <<_ACEOF
  7979. /* confdefs.h. */
  7980. _ACEOF
  7981. cat confdefs.h >>conftest.$ac_ext
  7982. cat >>conftest.$ac_ext <<_ACEOF
  7983. /* end confdefs.h. */
  7984. /* Test program from Paul Eggert and Tony Leneis. */
  7985. #if TIME_WITH_SYS_TIME
  7986. # include <sys/time.h>
  7987. # include <time.h>
  7988. #else
  7989. # if HAVE_SYS_TIME_H
  7990. # include <sys/time.h>
  7991. # else
  7992. # include <time.h>
  7993. # endif
  7994. #endif
  7995. #if HAVE_STDLIB_H
  7996. # include <stdlib.h>
  7997. #endif
  7998. #if HAVE_UNISTD_H
  7999. # include <unistd.h>
  8000. #endif
  8001. #if !HAVE_ALARM
  8002. # define alarm(X) /* empty */
  8003. #endif
  8004. /* Work around redefinition to rpl_putenv by other config tests. */
  8005. #undef putenv
  8006. static time_t time_t_max;
  8007. static time_t time_t_min;
  8008. /* Values we'll use to set the TZ environment variable. */
  8009. static char *tz_strings[] = {
  8010. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  8011. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  8012. };
  8013. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  8014. /* Fail if mktime fails to convert a date in the spring-forward gap.
  8015. Based on a problem report from Andreas Jaeger. */
  8016. static void
  8017. spring_forward_gap ()
  8018. {
  8019. /* glibc (up to about 1998-10-07) failed this test. */
  8020. struct tm tm;
  8021. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  8022. instead of "TZ=America/Vancouver" in order to detect the bug even
  8023. on systems that don't support the Olson extension, or don't have the
  8024. full zoneinfo tables installed. */
  8025. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  8026. tm.tm_year = 98;
  8027. tm.tm_mon = 3;
  8028. tm.tm_mday = 5;
  8029. tm.tm_hour = 2;
  8030. tm.tm_min = 0;
  8031. tm.tm_sec = 0;
  8032. tm.tm_isdst = -1;
  8033. if (mktime (&tm) == (time_t)-1)
  8034. exit (1);
  8035. }
  8036. static void
  8037. mktime_test1 (now)
  8038. time_t now;
  8039. {
  8040. struct tm *lt;
  8041. if ((lt = localtime (&now)) && mktime (lt) != now)
  8042. exit (1);
  8043. }
  8044. static void
  8045. mktime_test (now)
  8046. time_t now;
  8047. {
  8048. mktime_test1 (now);
  8049. mktime_test1 ((time_t) (time_t_max - now));
  8050. mktime_test1 ((time_t) (time_t_min + now));
  8051. }
  8052. static void
  8053. irix_6_4_bug ()
  8054. {
  8055. /* Based on code from Ariel Faigon. */
  8056. struct tm tm;
  8057. tm.tm_year = 96;
  8058. tm.tm_mon = 3;
  8059. tm.tm_mday = 0;
  8060. tm.tm_hour = 0;
  8061. tm.tm_min = 0;
  8062. tm.tm_sec = 0;
  8063. tm.tm_isdst = -1;
  8064. mktime (&tm);
  8065. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  8066. exit (1);
  8067. }
  8068. static void
  8069. bigtime_test (j)
  8070. int j;
  8071. {
  8072. struct tm tm;
  8073. time_t now;
  8074. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  8075. now = mktime (&tm);
  8076. if (now != (time_t) -1)
  8077. {
  8078. struct tm *lt = localtime (&now);
  8079. if (! (lt
  8080. && lt->tm_year == tm.tm_year
  8081. && lt->tm_mon == tm.tm_mon
  8082. && lt->tm_mday == tm.tm_mday
  8083. && lt->tm_hour == tm.tm_hour
  8084. && lt->tm_min == tm.tm_min
  8085. && lt->tm_sec == tm.tm_sec
  8086. && lt->tm_yday == tm.tm_yday
  8087. && lt->tm_wday == tm.tm_wday
  8088. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  8089. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  8090. exit (1);
  8091. }
  8092. }
  8093. int
  8094. main ()
  8095. {
  8096. time_t t, delta;
  8097. int i, j;
  8098. /* This test makes some buggy mktime implementations loop.
  8099. Give up after 60 seconds; a mktime slower than that
  8100. isn't worth using anyway. */
  8101. alarm (60);
  8102. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  8103. continue;
  8104. time_t_max--;
  8105. if ((time_t) -1 < 0)
  8106. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  8107. continue;
  8108. delta = time_t_max / 997; /* a suitable prime number */
  8109. for (i = 0; i < N_STRINGS; i++)
  8110. {
  8111. if (tz_strings[i])
  8112. putenv (tz_strings[i]);
  8113. for (t = 0; t <= time_t_max - delta; t += delta)
  8114. mktime_test (t);
  8115. mktime_test ((time_t) 1);
  8116. mktime_test ((time_t) (60 * 60));
  8117. mktime_test ((time_t) (60 * 60 * 24));
  8118. for (j = 1; 0 < j; j *= 2)
  8119. bigtime_test (j);
  8120. bigtime_test (j - 1);
  8121. }
  8122. irix_6_4_bug ();
  8123. spring_forward_gap ();
  8124. exit (0);
  8125. }
  8126. _ACEOF
  8127. rm -f conftest$ac_exeext
  8128. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8129. (eval $ac_link) 2>&5
  8130. ac_status=$?
  8131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8132. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8133. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8134. (eval $ac_try) 2>&5
  8135. ac_status=$?
  8136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8137. (exit $ac_status); }; }; then
  8138. ac_cv_func_working_mktime=yes
  8139. else
  8140. echo "$as_me: program exited with status $ac_status" >&5
  8141. echo "$as_me: failed program was:" >&5
  8142. sed 's/^/| /' conftest.$ac_ext >&5
  8143. ( exit $ac_status )
  8144. ac_cv_func_working_mktime=no
  8145. fi
  8146. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8147. fi
  8148. fi
  8149. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  8150. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  8151. if test $ac_cv_func_working_mktime = no; then
  8152. case $LIBOBJS in
  8153. "mktime.$ac_objext" | \
  8154. *" mktime.$ac_objext" | \
  8155. "mktime.$ac_objext "* | \
  8156. *" mktime.$ac_objext "* ) ;;
  8157. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  8158. esac
  8159. fi
  8160. for ac_header in stdlib.h unistd.h
  8161. do
  8162. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8163. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8164. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8165. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8166. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8167. echo $ECHO_N "(cached) $ECHO_C" >&6
  8168. fi
  8169. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8170. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8171. else
  8172. # Is the header compilable?
  8173. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8174. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8175. cat >conftest.$ac_ext <<_ACEOF
  8176. /* confdefs.h. */
  8177. _ACEOF
  8178. cat confdefs.h >>conftest.$ac_ext
  8179. cat >>conftest.$ac_ext <<_ACEOF
  8180. /* end confdefs.h. */
  8181. $ac_includes_default
  8182. #include <$ac_header>
  8183. _ACEOF
  8184. rm -f conftest.$ac_objext
  8185. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8186. (eval $ac_compile) 2>conftest.er1
  8187. ac_status=$?
  8188. grep -v '^ *+' conftest.er1 >conftest.err
  8189. rm -f conftest.er1
  8190. cat conftest.err >&5
  8191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8192. (exit $ac_status); } &&
  8193. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8194. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8195. (eval $ac_try) 2>&5
  8196. ac_status=$?
  8197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8198. (exit $ac_status); }; } &&
  8199. { ac_try='test -s conftest.$ac_objext'
  8200. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8201. (eval $ac_try) 2>&5
  8202. ac_status=$?
  8203. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8204. (exit $ac_status); }; }; then
  8205. ac_header_compiler=yes
  8206. else
  8207. echo "$as_me: failed program was:" >&5
  8208. sed 's/^/| /' conftest.$ac_ext >&5
  8209. ac_header_compiler=no
  8210. fi
  8211. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8212. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8213. echo "${ECHO_T}$ac_header_compiler" >&6
  8214. # Is the header present?
  8215. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8216. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8217. cat >conftest.$ac_ext <<_ACEOF
  8218. /* confdefs.h. */
  8219. _ACEOF
  8220. cat confdefs.h >>conftest.$ac_ext
  8221. cat >>conftest.$ac_ext <<_ACEOF
  8222. /* end confdefs.h. */
  8223. #include <$ac_header>
  8224. _ACEOF
  8225. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8226. (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
  8233. if test -s conftest.err; then
  8234. ac_cpp_err=$ac_cxx_preproc_warn_flag
  8235. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  8236. else
  8237. ac_cpp_err=
  8238. fi
  8239. else
  8240. ac_cpp_err=yes
  8241. fi
  8242. if test -z "$ac_cpp_err"; then
  8243. ac_header_preproc=yes
  8244. else
  8245. echo "$as_me: failed program was:" >&5
  8246. sed 's/^/| /' conftest.$ac_ext >&5
  8247. ac_header_preproc=no
  8248. fi
  8249. rm -f conftest.err conftest.$ac_ext
  8250. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8251. echo "${ECHO_T}$ac_header_preproc" >&6
  8252. # So? What about this header?
  8253. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8254. yes:no: )
  8255. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8256. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8257. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8258. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8259. ac_header_preproc=yes
  8260. ;;
  8261. no:yes:* )
  8262. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8263. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8264. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8265. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8266. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8267. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8268. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8269. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8270. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8271. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8272. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8273. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8274. (
  8275. cat <<\_ASBOX
  8276. ## ------------------------------------------ ##
  8277. ## Report this to the AC_PACKAGE_NAME lists. ##
  8278. ## ------------------------------------------ ##
  8279. _ASBOX
  8280. ) |
  8281. sed "s/^/$as_me: WARNING: /" >&2
  8282. ;;
  8283. esac
  8284. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8285. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8286. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8287. echo $ECHO_N "(cached) $ECHO_C" >&6
  8288. else
  8289. eval "$as_ac_Header=\$ac_header_preproc"
  8290. fi
  8291. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8292. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8293. fi
  8294. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8295. cat >>confdefs.h <<_ACEOF
  8296. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8297. _ACEOF
  8298. fi
  8299. done
  8300. for ac_func in getpagesize
  8301. do
  8302. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8303. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8304. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8305. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8306. echo $ECHO_N "(cached) $ECHO_C" >&6
  8307. else
  8308. cat >conftest.$ac_ext <<_ACEOF
  8309. /* confdefs.h. */
  8310. _ACEOF
  8311. cat confdefs.h >>conftest.$ac_ext
  8312. cat >>conftest.$ac_ext <<_ACEOF
  8313. /* end confdefs.h. */
  8314. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8315. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8316. #define $ac_func innocuous_$ac_func
  8317. /* System header to define __stub macros and hopefully few prototypes,
  8318. which can conflict with char $ac_func (); below.
  8319. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8320. <limits.h> exists even on freestanding compilers. */
  8321. #ifdef __STDC__
  8322. # include <limits.h>
  8323. #else
  8324. # include <assert.h>
  8325. #endif
  8326. #undef $ac_func
  8327. /* Override any gcc2 internal prototype to avoid an error. */
  8328. #ifdef __cplusplus
  8329. extern "C"
  8330. {
  8331. #endif
  8332. /* We use char because int might match the return type of a gcc2
  8333. builtin and then its argument prototype would still apply. */
  8334. char $ac_func ();
  8335. /* The GNU C library defines this for functions which it implements
  8336. to always fail with ENOSYS. Some functions are actually named
  8337. something starting with __ and the normal name is an alias. */
  8338. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8339. choke me
  8340. #else
  8341. char (*f) () = $ac_func;
  8342. #endif
  8343. #ifdef __cplusplus
  8344. }
  8345. #endif
  8346. int
  8347. main ()
  8348. {
  8349. return f != $ac_func;
  8350. ;
  8351. return 0;
  8352. }
  8353. _ACEOF
  8354. rm -f conftest.$ac_objext conftest$ac_exeext
  8355. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8356. (eval $ac_link) 2>conftest.er1
  8357. ac_status=$?
  8358. grep -v '^ *+' conftest.er1 >conftest.err
  8359. rm -f conftest.er1
  8360. cat conftest.err >&5
  8361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8362. (exit $ac_status); } &&
  8363. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8364. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8365. (eval $ac_try) 2>&5
  8366. ac_status=$?
  8367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8368. (exit $ac_status); }; } &&
  8369. { ac_try='test -s conftest$ac_exeext'
  8370. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8371. (eval $ac_try) 2>&5
  8372. ac_status=$?
  8373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8374. (exit $ac_status); }; }; then
  8375. eval "$as_ac_var=yes"
  8376. else
  8377. echo "$as_me: failed program was:" >&5
  8378. sed 's/^/| /' conftest.$ac_ext >&5
  8379. eval "$as_ac_var=no"
  8380. fi
  8381. rm -f conftest.err conftest.$ac_objext \
  8382. conftest$ac_exeext conftest.$ac_ext
  8383. fi
  8384. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8385. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8386. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8387. cat >>confdefs.h <<_ACEOF
  8388. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8389. _ACEOF
  8390. fi
  8391. done
  8392. echo "$as_me:$LINENO: checking for working mmap" >&5
  8393. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  8394. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  8395. echo $ECHO_N "(cached) $ECHO_C" >&6
  8396. else
  8397. if test "$cross_compiling" = yes; then
  8398. ac_cv_func_mmap_fixed_mapped=no
  8399. else
  8400. cat >conftest.$ac_ext <<_ACEOF
  8401. /* confdefs.h. */
  8402. _ACEOF
  8403. cat confdefs.h >>conftest.$ac_ext
  8404. cat >>conftest.$ac_ext <<_ACEOF
  8405. /* end confdefs.h. */
  8406. $ac_includes_default
  8407. /* malloc might have been renamed as rpl_malloc. */
  8408. #undef malloc
  8409. /* Thanks to Mike Haertel and Jim Avera for this test.
  8410. Here is a matrix of mmap possibilities:
  8411. mmap private not fixed
  8412. mmap private fixed at somewhere currently unmapped
  8413. mmap private fixed at somewhere already mapped
  8414. mmap shared not fixed
  8415. mmap shared fixed at somewhere currently unmapped
  8416. mmap shared fixed at somewhere already mapped
  8417. For private mappings, we should verify that changes cannot be read()
  8418. back from the file, nor mmap's back from the file at a different
  8419. address. (There have been systems where private was not correctly
  8420. implemented like the infamous i386 svr4.0, and systems where the
  8421. VM page cache was not coherent with the file system buffer cache
  8422. like early versions of FreeBSD and possibly contemporary NetBSD.)
  8423. For shared mappings, we should conversely verify that changes get
  8424. propagated back to all the places they're supposed to be.
  8425. Grep wants private fixed already mapped.
  8426. The main things grep needs to know about mmap are:
  8427. * does it exist and is it safe to write into the mmap'd area
  8428. * how to use it (BSD variants) */
  8429. #include <fcntl.h>
  8430. #include <sys/mman.h>
  8431. #if !STDC_HEADERS && !HAVE_STDLIB_H
  8432. char *malloc ();
  8433. #endif
  8434. /* This mess was copied from the GNU getpagesize.h. */
  8435. #if !HAVE_GETPAGESIZE
  8436. /* Assume that all systems that can run configure have sys/param.h. */
  8437. # if !HAVE_SYS_PARAM_H
  8438. # define HAVE_SYS_PARAM_H 1
  8439. # endif
  8440. # ifdef _SC_PAGESIZE
  8441. # define getpagesize() sysconf(_SC_PAGESIZE)
  8442. # else /* no _SC_PAGESIZE */
  8443. # if HAVE_SYS_PARAM_H
  8444. # include <sys/param.h>
  8445. # ifdef EXEC_PAGESIZE
  8446. # define getpagesize() EXEC_PAGESIZE
  8447. # else /* no EXEC_PAGESIZE */
  8448. # ifdef NBPG
  8449. # define getpagesize() NBPG * CLSIZE
  8450. # ifndef CLSIZE
  8451. # define CLSIZE 1
  8452. # endif /* no CLSIZE */
  8453. # else /* no NBPG */
  8454. # ifdef NBPC
  8455. # define getpagesize() NBPC
  8456. # else /* no NBPC */
  8457. # ifdef PAGESIZE
  8458. # define getpagesize() PAGESIZE
  8459. # endif /* PAGESIZE */
  8460. # endif /* no NBPC */
  8461. # endif /* no NBPG */
  8462. # endif /* no EXEC_PAGESIZE */
  8463. # else /* no HAVE_SYS_PARAM_H */
  8464. # define getpagesize() 8192 /* punt totally */
  8465. # endif /* no HAVE_SYS_PARAM_H */
  8466. # endif /* no _SC_PAGESIZE */
  8467. #endif /* no HAVE_GETPAGESIZE */
  8468. int
  8469. main ()
  8470. {
  8471. char *data, *data2, *data3;
  8472. int i, pagesize;
  8473. int fd;
  8474. pagesize = getpagesize ();
  8475. /* First, make a file with some known garbage in it. */
  8476. data = (char *) malloc (pagesize);
  8477. if (!data)
  8478. exit (1);
  8479. for (i = 0; i < pagesize; ++i)
  8480. *(data + i) = rand ();
  8481. umask (0);
  8482. fd = creat ("conftest.mmap", 0600);
  8483. if (fd < 0)
  8484. exit (1);
  8485. if (write (fd, data, pagesize) != pagesize)
  8486. exit (1);
  8487. close (fd);
  8488. /* Next, try to mmap the file at a fixed address which already has
  8489. something else allocated at it. If we can, also make sure that
  8490. we see the same garbage. */
  8491. fd = open ("conftest.mmap", O_RDWR);
  8492. if (fd < 0)
  8493. exit (1);
  8494. data2 = (char *) malloc (2 * pagesize);
  8495. if (!data2)
  8496. exit (1);
  8497. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  8498. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  8499. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  8500. exit (1);
  8501. for (i = 0; i < pagesize; ++i)
  8502. if (*(data + i) != *(data2 + i))
  8503. exit (1);
  8504. /* Finally, make sure that changes to the mapped area do not
  8505. percolate back to the file as seen by read(). (This is a bug on
  8506. some variants of i386 svr4.0.) */
  8507. for (i = 0; i < pagesize; ++i)
  8508. *(data2 + i) = *(data2 + i) + 1;
  8509. data3 = (char *) malloc (pagesize);
  8510. if (!data3)
  8511. exit (1);
  8512. if (read (fd, data3, pagesize) != pagesize)
  8513. exit (1);
  8514. for (i = 0; i < pagesize; ++i)
  8515. if (*(data + i) != *(data3 + i))
  8516. exit (1);
  8517. close (fd);
  8518. exit (0);
  8519. }
  8520. _ACEOF
  8521. rm -f conftest$ac_exeext
  8522. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8523. (eval $ac_link) 2>&5
  8524. ac_status=$?
  8525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8526. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8527. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8528. (eval $ac_try) 2>&5
  8529. ac_status=$?
  8530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8531. (exit $ac_status); }; }; then
  8532. ac_cv_func_mmap_fixed_mapped=yes
  8533. else
  8534. echo "$as_me: program exited with status $ac_status" >&5
  8535. echo "$as_me: failed program was:" >&5
  8536. sed 's/^/| /' conftest.$ac_ext >&5
  8537. ( exit $ac_status )
  8538. ac_cv_func_mmap_fixed_mapped=no
  8539. fi
  8540. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8541. fi
  8542. fi
  8543. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  8544. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  8545. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  8546. cat >>confdefs.h <<\_ACEOF
  8547. #define HAVE_MMAP 1
  8548. _ACEOF
  8549. fi
  8550. rm -f conftest.mmap
  8551. for ac_header in stdlib.h
  8552. do
  8553. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8554. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8555. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8556. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8557. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8558. echo $ECHO_N "(cached) $ECHO_C" >&6
  8559. fi
  8560. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8561. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8562. else
  8563. # Is the header compilable?
  8564. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8565. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8566. cat >conftest.$ac_ext <<_ACEOF
  8567. /* confdefs.h. */
  8568. _ACEOF
  8569. cat confdefs.h >>conftest.$ac_ext
  8570. cat >>conftest.$ac_ext <<_ACEOF
  8571. /* end confdefs.h. */
  8572. $ac_includes_default
  8573. #include <$ac_header>
  8574. _ACEOF
  8575. rm -f conftest.$ac_objext
  8576. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8577. (eval $ac_compile) 2>conftest.er1
  8578. ac_status=$?
  8579. grep -v '^ *+' conftest.er1 >conftest.err
  8580. rm -f conftest.er1
  8581. cat conftest.err >&5
  8582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8583. (exit $ac_status); } &&
  8584. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8585. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8586. (eval $ac_try) 2>&5
  8587. ac_status=$?
  8588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8589. (exit $ac_status); }; } &&
  8590. { ac_try='test -s conftest.$ac_objext'
  8591. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8592. (eval $ac_try) 2>&5
  8593. ac_status=$?
  8594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8595. (exit $ac_status); }; }; then
  8596. ac_header_compiler=yes
  8597. else
  8598. echo "$as_me: failed program was:" >&5
  8599. sed 's/^/| /' conftest.$ac_ext >&5
  8600. ac_header_compiler=no
  8601. fi
  8602. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8603. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8604. echo "${ECHO_T}$ac_header_compiler" >&6
  8605. # Is the header present?
  8606. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8607. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8608. cat >conftest.$ac_ext <<_ACEOF
  8609. /* confdefs.h. */
  8610. _ACEOF
  8611. cat confdefs.h >>conftest.$ac_ext
  8612. cat >>conftest.$ac_ext <<_ACEOF
  8613. /* end confdefs.h. */
  8614. #include <$ac_header>
  8615. _ACEOF
  8616. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8617. (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
  8624. if test -s conftest.err; then
  8625. ac_cpp_err=$ac_cxx_preproc_warn_flag
  8626. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  8627. else
  8628. ac_cpp_err=
  8629. fi
  8630. else
  8631. ac_cpp_err=yes
  8632. fi
  8633. if test -z "$ac_cpp_err"; then
  8634. ac_header_preproc=yes
  8635. else
  8636. echo "$as_me: failed program was:" >&5
  8637. sed 's/^/| /' conftest.$ac_ext >&5
  8638. ac_header_preproc=no
  8639. fi
  8640. rm -f conftest.err conftest.$ac_ext
  8641. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8642. echo "${ECHO_T}$ac_header_preproc" >&6
  8643. # So? What about this header?
  8644. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8645. yes:no: )
  8646. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8647. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8648. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8649. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8650. ac_header_preproc=yes
  8651. ;;
  8652. no:yes:* )
  8653. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8654. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8655. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8656. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8657. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8658. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8659. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8660. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8661. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8662. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8663. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8664. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8665. (
  8666. cat <<\_ASBOX
  8667. ## ------------------------------------------ ##
  8668. ## Report this to the AC_PACKAGE_NAME lists. ##
  8669. ## ------------------------------------------ ##
  8670. _ASBOX
  8671. ) |
  8672. sed "s/^/$as_me: WARNING: /" >&2
  8673. ;;
  8674. esac
  8675. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8676. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8677. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8678. echo $ECHO_N "(cached) $ECHO_C" >&6
  8679. else
  8680. eval "$as_ac_Header=\$ac_header_preproc"
  8681. fi
  8682. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8683. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8684. fi
  8685. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8686. cat >>confdefs.h <<_ACEOF
  8687. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8688. _ACEOF
  8689. fi
  8690. done
  8691. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  8692. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  8693. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  8694. echo $ECHO_N "(cached) $ECHO_C" >&6
  8695. else
  8696. if test "$cross_compiling" = yes; then
  8697. ac_cv_func_realloc_0_nonnull=no
  8698. else
  8699. cat >conftest.$ac_ext <<_ACEOF
  8700. /* confdefs.h. */
  8701. _ACEOF
  8702. cat confdefs.h >>conftest.$ac_ext
  8703. cat >>conftest.$ac_ext <<_ACEOF
  8704. /* end confdefs.h. */
  8705. #if STDC_HEADERS || HAVE_STDLIB_H
  8706. # include <stdlib.h>
  8707. #else
  8708. char *realloc ();
  8709. #endif
  8710. int
  8711. main ()
  8712. {
  8713. exit (realloc (0, 0) ? 0 : 1);
  8714. ;
  8715. return 0;
  8716. }
  8717. _ACEOF
  8718. rm -f conftest$ac_exeext
  8719. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8720. (eval $ac_link) 2>&5
  8721. ac_status=$?
  8722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8723. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8724. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8725. (eval $ac_try) 2>&5
  8726. ac_status=$?
  8727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8728. (exit $ac_status); }; }; then
  8729. ac_cv_func_realloc_0_nonnull=yes
  8730. else
  8731. echo "$as_me: program exited with status $ac_status" >&5
  8732. echo "$as_me: failed program was:" >&5
  8733. sed 's/^/| /' conftest.$ac_ext >&5
  8734. ( exit $ac_status )
  8735. ac_cv_func_realloc_0_nonnull=no
  8736. fi
  8737. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8738. fi
  8739. fi
  8740. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  8741. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  8742. if test $ac_cv_func_realloc_0_nonnull = yes; then
  8743. cat >>confdefs.h <<\_ACEOF
  8744. #define HAVE_REALLOC 1
  8745. _ACEOF
  8746. else
  8747. cat >>confdefs.h <<\_ACEOF
  8748. #define HAVE_REALLOC 0
  8749. _ACEOF
  8750. case $LIBOBJS in
  8751. "realloc.$ac_objext" | \
  8752. *" realloc.$ac_objext" | \
  8753. "realloc.$ac_objext "* | \
  8754. *" realloc.$ac_objext "* ) ;;
  8755. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  8756. esac
  8757. cat >>confdefs.h <<\_ACEOF
  8758. #define realloc rpl_realloc
  8759. _ACEOF
  8760. fi
  8761. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  8762. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  8763. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  8764. echo $ECHO_N "(cached) $ECHO_C" >&6
  8765. else
  8766. if test "$cross_compiling" = yes; then
  8767. ac_cv_func_stat_empty_string_bug=yes
  8768. else
  8769. cat >conftest.$ac_ext <<_ACEOF
  8770. /* confdefs.h. */
  8771. _ACEOF
  8772. cat confdefs.h >>conftest.$ac_ext
  8773. cat >>conftest.$ac_ext <<_ACEOF
  8774. /* end confdefs.h. */
  8775. $ac_includes_default
  8776. int
  8777. main ()
  8778. {
  8779. struct stat sbuf;
  8780. exit (stat ("", &sbuf) ? 1 : 0);
  8781. ;
  8782. return 0;
  8783. }
  8784. _ACEOF
  8785. rm -f conftest$ac_exeext
  8786. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8787. (eval $ac_link) 2>&5
  8788. ac_status=$?
  8789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8790. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8791. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8792. (eval $ac_try) 2>&5
  8793. ac_status=$?
  8794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8795. (exit $ac_status); }; }; then
  8796. ac_cv_func_stat_empty_string_bug=yes
  8797. else
  8798. echo "$as_me: program exited with status $ac_status" >&5
  8799. echo "$as_me: failed program was:" >&5
  8800. sed 's/^/| /' conftest.$ac_ext >&5
  8801. ( exit $ac_status )
  8802. ac_cv_func_stat_empty_string_bug=no
  8803. fi
  8804. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8805. fi
  8806. fi
  8807. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  8808. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  8809. if test $ac_cv_func_stat_empty_string_bug = yes; then
  8810. case $LIBOBJS in
  8811. "stat.$ac_objext" | \
  8812. *" stat.$ac_objext" | \
  8813. "stat.$ac_objext "* | \
  8814. *" stat.$ac_objext "* ) ;;
  8815. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  8816. esac
  8817. cat >>confdefs.h <<_ACEOF
  8818. #define HAVE_STAT_EMPTY_STRING_BUG 1
  8819. _ACEOF
  8820. fi
  8821. for ac_func in strftime
  8822. do
  8823. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8824. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8825. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8826. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8827. echo $ECHO_N "(cached) $ECHO_C" >&6
  8828. else
  8829. cat >conftest.$ac_ext <<_ACEOF
  8830. /* confdefs.h. */
  8831. _ACEOF
  8832. cat confdefs.h >>conftest.$ac_ext
  8833. cat >>conftest.$ac_ext <<_ACEOF
  8834. /* end confdefs.h. */
  8835. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8836. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8837. #define $ac_func innocuous_$ac_func
  8838. /* System header to define __stub macros and hopefully few prototypes,
  8839. which can conflict with char $ac_func (); below.
  8840. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8841. <limits.h> exists even on freestanding compilers. */
  8842. #ifdef __STDC__
  8843. # include <limits.h>
  8844. #else
  8845. # include <assert.h>
  8846. #endif
  8847. #undef $ac_func
  8848. /* Override any gcc2 internal prototype to avoid an error. */
  8849. #ifdef __cplusplus
  8850. extern "C"
  8851. {
  8852. #endif
  8853. /* We use char because int might match the return type of a gcc2
  8854. builtin and then its argument prototype would still apply. */
  8855. char $ac_func ();
  8856. /* The GNU C library defines this for functions which it implements
  8857. to always fail with ENOSYS. Some functions are actually named
  8858. something starting with __ and the normal name is an alias. */
  8859. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8860. choke me
  8861. #else
  8862. char (*f) () = $ac_func;
  8863. #endif
  8864. #ifdef __cplusplus
  8865. }
  8866. #endif
  8867. int
  8868. main ()
  8869. {
  8870. return f != $ac_func;
  8871. ;
  8872. return 0;
  8873. }
  8874. _ACEOF
  8875. rm -f conftest.$ac_objext conftest$ac_exeext
  8876. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8877. (eval $ac_link) 2>conftest.er1
  8878. ac_status=$?
  8879. grep -v '^ *+' conftest.er1 >conftest.err
  8880. rm -f conftest.er1
  8881. cat conftest.err >&5
  8882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8883. (exit $ac_status); } &&
  8884. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8885. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8886. (eval $ac_try) 2>&5
  8887. ac_status=$?
  8888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8889. (exit $ac_status); }; } &&
  8890. { ac_try='test -s conftest$ac_exeext'
  8891. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8892. (eval $ac_try) 2>&5
  8893. ac_status=$?
  8894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8895. (exit $ac_status); }; }; then
  8896. eval "$as_ac_var=yes"
  8897. else
  8898. echo "$as_me: failed program was:" >&5
  8899. sed 's/^/| /' conftest.$ac_ext >&5
  8900. eval "$as_ac_var=no"
  8901. fi
  8902. rm -f conftest.err conftest.$ac_objext \
  8903. conftest$ac_exeext conftest.$ac_ext
  8904. fi
  8905. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8906. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8907. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8908. cat >>confdefs.h <<_ACEOF
  8909. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8910. _ACEOF
  8911. else
  8912. # strftime is in -lintl on SCO UNIX.
  8913. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  8914. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  8915. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  8916. echo $ECHO_N "(cached) $ECHO_C" >&6
  8917. else
  8918. ac_check_lib_save_LIBS=$LIBS
  8919. LIBS="-lintl $LIBS"
  8920. cat >conftest.$ac_ext <<_ACEOF
  8921. /* confdefs.h. */
  8922. _ACEOF
  8923. cat confdefs.h >>conftest.$ac_ext
  8924. cat >>conftest.$ac_ext <<_ACEOF
  8925. /* end confdefs.h. */
  8926. /* Override any gcc2 internal prototype to avoid an error. */
  8927. #ifdef __cplusplus
  8928. extern "C"
  8929. #endif
  8930. /* We use char because int might match the return type of a gcc2
  8931. builtin and then its argument prototype would still apply. */
  8932. char strftime ();
  8933. int
  8934. main ()
  8935. {
  8936. strftime ();
  8937. ;
  8938. return 0;
  8939. }
  8940. _ACEOF
  8941. rm -f conftest.$ac_objext conftest$ac_exeext
  8942. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8943. (eval $ac_link) 2>conftest.er1
  8944. ac_status=$?
  8945. grep -v '^ *+' conftest.er1 >conftest.err
  8946. rm -f conftest.er1
  8947. cat conftest.err >&5
  8948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8949. (exit $ac_status); } &&
  8950. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8951. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8952. (eval $ac_try) 2>&5
  8953. ac_status=$?
  8954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8955. (exit $ac_status); }; } &&
  8956. { ac_try='test -s conftest$ac_exeext'
  8957. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8958. (eval $ac_try) 2>&5
  8959. ac_status=$?
  8960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8961. (exit $ac_status); }; }; then
  8962. ac_cv_lib_intl_strftime=yes
  8963. else
  8964. echo "$as_me: failed program was:" >&5
  8965. sed 's/^/| /' conftest.$ac_ext >&5
  8966. ac_cv_lib_intl_strftime=no
  8967. fi
  8968. rm -f conftest.err conftest.$ac_objext \
  8969. conftest$ac_exeext conftest.$ac_ext
  8970. LIBS=$ac_check_lib_save_LIBS
  8971. fi
  8972. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  8973. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  8974. if test $ac_cv_lib_intl_strftime = yes; then
  8975. cat >>confdefs.h <<\_ACEOF
  8976. #define HAVE_STRFTIME 1
  8977. _ACEOF
  8978. LIBS="-lintl $LIBS"
  8979. fi
  8980. fi
  8981. done
  8982. #checkpoint
  8983. cat >confcache <<\_ACEOF
  8984. # This file is a shell script that caches the results of configure
  8985. # tests run on this system so they can be shared between configure
  8986. # scripts and configure runs, see configure's option --config-cache.
  8987. # It is not useful on other systems. If it contains results you don't
  8988. # want to keep, you may remove or edit it.
  8989. #
  8990. # config.status only pays attention to the cache file if you give it
  8991. # the --recheck option to rerun configure.
  8992. #
  8993. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8994. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8995. # following values.
  8996. _ACEOF
  8997. # The following way of writing the cache mishandles newlines in values,
  8998. # but we know of no workaround that is simple, portable, and efficient.
  8999. # So, don't put newlines in cache variables' values.
  9000. # Ultrix sh set writes to stderr and can't be redirected directly,
  9001. # and sets the high bit in the cache file unless we assign to the vars.
  9002. {
  9003. (set) 2>&1 |
  9004. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9005. *ac_space=\ *)
  9006. # `set' does not quote correctly, so add quotes (double-quote
  9007. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9008. sed -n \
  9009. "s/'/'\\\\''/g;
  9010. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9011. ;;
  9012. *)
  9013. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9014. sed -n \
  9015. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9016. ;;
  9017. esac;
  9018. } |
  9019. sed '
  9020. t clear
  9021. : clear
  9022. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9023. t end
  9024. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9025. : end' >>confcache
  9026. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9027. if test -w $cache_file; then
  9028. test "x$cache_file" != "x/dev/null"
  9029. cat confcache >$cache_file
  9030. else
  9031. echo "not updating unwritable cache $cache_file"
  9032. fi
  9033. fi
  9034. rm -f confcache
  9035. for ac_func in clock fsync getrusage isascii inet_aton gethostbyname2
  9036. do
  9037. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9038. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9039. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9040. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9041. echo $ECHO_N "(cached) $ECHO_C" >&6
  9042. else
  9043. cat >conftest.$ac_ext <<_ACEOF
  9044. /* confdefs.h. */
  9045. _ACEOF
  9046. cat confdefs.h >>conftest.$ac_ext
  9047. cat >>conftest.$ac_ext <<_ACEOF
  9048. /* end confdefs.h. */
  9049. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9050. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9051. #define $ac_func innocuous_$ac_func
  9052. /* System header to define __stub macros and hopefully few prototypes,
  9053. which can conflict with char $ac_func (); below.
  9054. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9055. <limits.h> exists even on freestanding compilers. */
  9056. #ifdef __STDC__
  9057. # include <limits.h>
  9058. #else
  9059. # include <assert.h>
  9060. #endif
  9061. #undef $ac_func
  9062. /* Override any gcc2 internal prototype to avoid an error. */
  9063. #ifdef __cplusplus
  9064. extern "C"
  9065. {
  9066. #endif
  9067. /* We use char because int might match the return type of a gcc2
  9068. builtin and then its argument prototype would still apply. */
  9069. char $ac_func ();
  9070. /* The GNU C library defines this for functions which it implements
  9071. to always fail with ENOSYS. Some functions are actually named
  9072. something starting with __ and the normal name is an alias. */
  9073. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9074. choke me
  9075. #else
  9076. char (*f) () = $ac_func;
  9077. #endif
  9078. #ifdef __cplusplus
  9079. }
  9080. #endif
  9081. int
  9082. main ()
  9083. {
  9084. return f != $ac_func;
  9085. ;
  9086. return 0;
  9087. }
  9088. _ACEOF
  9089. rm -f conftest.$ac_objext conftest$ac_exeext
  9090. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9091. (eval $ac_link) 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_exeext'
  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. eval "$as_ac_var=yes"
  9111. else
  9112. echo "$as_me: failed program was:" >&5
  9113. sed 's/^/| /' conftest.$ac_ext >&5
  9114. eval "$as_ac_var=no"
  9115. fi
  9116. rm -f conftest.err conftest.$ac_objext \
  9117. conftest$ac_exeext conftest.$ac_ext
  9118. fi
  9119. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9120. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9121. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9122. cat >>confdefs.h <<_ACEOF
  9123. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9124. _ACEOF
  9125. fi
  9126. done
  9127. for ac_func in getipnodebyname memcpy memset random rename snprintf srandom
  9128. do
  9129. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9130. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9131. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9132. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9133. echo $ECHO_N "(cached) $ECHO_C" >&6
  9134. else
  9135. cat >conftest.$ac_ext <<_ACEOF
  9136. /* confdefs.h. */
  9137. _ACEOF
  9138. cat confdefs.h >>conftest.$ac_ext
  9139. cat >>conftest.$ac_ext <<_ACEOF
  9140. /* end confdefs.h. */
  9141. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9142. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9143. #define $ac_func innocuous_$ac_func
  9144. /* System header to define __stub macros and hopefully few prototypes,
  9145. which can conflict with char $ac_func (); below.
  9146. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9147. <limits.h> exists even on freestanding compilers. */
  9148. #ifdef __STDC__
  9149. # include <limits.h>
  9150. #else
  9151. # include <assert.h>
  9152. #endif
  9153. #undef $ac_func
  9154. /* Override any gcc2 internal prototype to avoid an error. */
  9155. #ifdef __cplusplus
  9156. extern "C"
  9157. {
  9158. #endif
  9159. /* We use char because int might match the return type of a gcc2
  9160. builtin and then its argument prototype would still apply. */
  9161. char $ac_func ();
  9162. /* The GNU C library defines this for functions which it implements
  9163. to always fail with ENOSYS. Some functions are actually named
  9164. something starting with __ and the normal name is an alias. */
  9165. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9166. choke me
  9167. #else
  9168. char (*f) () = $ac_func;
  9169. #endif
  9170. #ifdef __cplusplus
  9171. }
  9172. #endif
  9173. int
  9174. main ()
  9175. {
  9176. return f != $ac_func;
  9177. ;
  9178. return 0;
  9179. }
  9180. _ACEOF
  9181. rm -f conftest.$ac_objext conftest$ac_exeext
  9182. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9183. (eval $ac_link) 2>conftest.er1
  9184. ac_status=$?
  9185. grep -v '^ *+' conftest.er1 >conftest.err
  9186. rm -f conftest.er1
  9187. cat conftest.err >&5
  9188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9189. (exit $ac_status); } &&
  9190. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9191. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9192. (eval $ac_try) 2>&5
  9193. ac_status=$?
  9194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9195. (exit $ac_status); }; } &&
  9196. { ac_try='test -s conftest$ac_exeext'
  9197. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9198. (eval $ac_try) 2>&5
  9199. ac_status=$?
  9200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9201. (exit $ac_status); }; }; then
  9202. eval "$as_ac_var=yes"
  9203. else
  9204. echo "$as_me: failed program was:" >&5
  9205. sed 's/^/| /' conftest.$ac_ext >&5
  9206. eval "$as_ac_var=no"
  9207. fi
  9208. rm -f conftest.err conftest.$ac_objext \
  9209. conftest$ac_exeext conftest.$ac_ext
  9210. fi
  9211. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9212. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9213. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9214. cat >>confdefs.h <<_ACEOF
  9215. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9216. _ACEOF
  9217. fi
  9218. done
  9219. #checkpoint
  9220. cat >confcache <<\_ACEOF
  9221. # This file is a shell script that caches the results of configure
  9222. # tests run on this system so they can be shared between configure
  9223. # scripts and configure runs, see configure's option --config-cache.
  9224. # It is not useful on other systems. If it contains results you don't
  9225. # want to keep, you may remove or edit it.
  9226. #
  9227. # config.status only pays attention to the cache file if you give it
  9228. # the --recheck option to rerun configure.
  9229. #
  9230. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9231. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9232. # following values.
  9233. _ACEOF
  9234. # The following way of writing the cache mishandles newlines in values,
  9235. # but we know of no workaround that is simple, portable, and efficient.
  9236. # So, don't put newlines in cache variables' values.
  9237. # Ultrix sh set writes to stderr and can't be redirected directly,
  9238. # and sets the high bit in the cache file unless we assign to the vars.
  9239. {
  9240. (set) 2>&1 |
  9241. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9242. *ac_space=\ *)
  9243. # `set' does not quote correctly, so add quotes (double-quote
  9244. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9245. sed -n \
  9246. "s/'/'\\\\''/g;
  9247. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9248. ;;
  9249. *)
  9250. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9251. sed -n \
  9252. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9253. ;;
  9254. esac;
  9255. } |
  9256. sed '
  9257. t clear
  9258. : clear
  9259. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9260. t end
  9261. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9262. : end' >>confcache
  9263. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9264. if test -w $cache_file; then
  9265. test "x$cache_file" != "x/dev/null"
  9266. cat confcache >$cache_file
  9267. else
  9268. echo "not updating unwritable cache $cache_file"
  9269. fi
  9270. fi
  9271. rm -f confcache
  9272. for ac_func in strcasecmp strncasecmp vsnprintf
  9273. do
  9274. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9275. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9276. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9277. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9278. echo $ECHO_N "(cached) $ECHO_C" >&6
  9279. else
  9280. cat >conftest.$ac_ext <<_ACEOF
  9281. /* confdefs.h. */
  9282. _ACEOF
  9283. cat confdefs.h >>conftest.$ac_ext
  9284. cat >>conftest.$ac_ext <<_ACEOF
  9285. /* end confdefs.h. */
  9286. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9287. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9288. #define $ac_func innocuous_$ac_func
  9289. /* System header to define __stub macros and hopefully few prototypes,
  9290. which can conflict with char $ac_func (); below.
  9291. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9292. <limits.h> exists even on freestanding compilers. */
  9293. #ifdef __STDC__
  9294. # include <limits.h>
  9295. #else
  9296. # include <assert.h>
  9297. #endif
  9298. #undef $ac_func
  9299. /* Override any gcc2 internal prototype to avoid an error. */
  9300. #ifdef __cplusplus
  9301. extern "C"
  9302. {
  9303. #endif
  9304. /* We use char because int might match the return type of a gcc2
  9305. builtin and then its argument prototype would still apply. */
  9306. char $ac_func ();
  9307. /* The GNU C library defines this for functions which it implements
  9308. to always fail with ENOSYS. Some functions are actually named
  9309. something starting with __ and the normal name is an alias. */
  9310. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9311. choke me
  9312. #else
  9313. char (*f) () = $ac_func;
  9314. #endif
  9315. #ifdef __cplusplus
  9316. }
  9317. #endif
  9318. int
  9319. main ()
  9320. {
  9321. return f != $ac_func;
  9322. ;
  9323. return 0;
  9324. }
  9325. _ACEOF
  9326. rm -f conftest.$ac_objext conftest$ac_exeext
  9327. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9328. (eval $ac_link) 2>conftest.er1
  9329. ac_status=$?
  9330. grep -v '^ *+' conftest.er1 >conftest.err
  9331. rm -f conftest.er1
  9332. cat conftest.err >&5
  9333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9334. (exit $ac_status); } &&
  9335. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9336. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9337. (eval $ac_try) 2>&5
  9338. ac_status=$?
  9339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9340. (exit $ac_status); }; } &&
  9341. { ac_try='test -s conftest$ac_exeext'
  9342. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9343. (eval $ac_try) 2>&5
  9344. ac_status=$?
  9345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9346. (exit $ac_status); }; }; then
  9347. eval "$as_ac_var=yes"
  9348. else
  9349. echo "$as_me: failed program was:" >&5
  9350. sed 's/^/| /' conftest.$ac_ext >&5
  9351. eval "$as_ac_var=no"
  9352. fi
  9353. rm -f conftest.err conftest.$ac_objext \
  9354. conftest$ac_exeext conftest.$ac_ext
  9355. fi
  9356. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9357. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9358. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9359. cat >>confdefs.h <<_ACEOF
  9360. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9361. _ACEOF
  9362. fi
  9363. done
  9364. #autoscan suggested this....
  9365. #These are recommended by autoscan, but no code supports it currently
  9366. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  9367. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  9368. for ac_func in vsprintf
  9369. do
  9370. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9371. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9372. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9373. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9374. echo $ECHO_N "(cached) $ECHO_C" >&6
  9375. else
  9376. cat >conftest.$ac_ext <<_ACEOF
  9377. /* confdefs.h. */
  9378. _ACEOF
  9379. cat confdefs.h >>conftest.$ac_ext
  9380. cat >>conftest.$ac_ext <<_ACEOF
  9381. /* end confdefs.h. */
  9382. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9383. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9384. #define $ac_func innocuous_$ac_func
  9385. /* System header to define __stub macros and hopefully few prototypes,
  9386. which can conflict with char $ac_func (); below.
  9387. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9388. <limits.h> exists even on freestanding compilers. */
  9389. #ifdef __STDC__
  9390. # include <limits.h>
  9391. #else
  9392. # include <assert.h>
  9393. #endif
  9394. #undef $ac_func
  9395. /* Override any gcc2 internal prototype to avoid an error. */
  9396. #ifdef __cplusplus
  9397. extern "C"
  9398. {
  9399. #endif
  9400. /* We use char because int might match the return type of a gcc2
  9401. builtin and then its argument prototype would still apply. */
  9402. char $ac_func ();
  9403. /* The GNU C library defines this for functions which it implements
  9404. to always fail with ENOSYS. Some functions are actually named
  9405. something starting with __ and the normal name is an alias. */
  9406. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9407. choke me
  9408. #else
  9409. char (*f) () = $ac_func;
  9410. #endif
  9411. #ifdef __cplusplus
  9412. }
  9413. #endif
  9414. int
  9415. main ()
  9416. {
  9417. return f != $ac_func;
  9418. ;
  9419. return 0;
  9420. }
  9421. _ACEOF
  9422. rm -f conftest.$ac_objext conftest$ac_exeext
  9423. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9424. (eval $ac_link) 2>conftest.er1
  9425. ac_status=$?
  9426. grep -v '^ *+' conftest.er1 >conftest.err
  9427. rm -f conftest.er1
  9428. cat conftest.err >&5
  9429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9430. (exit $ac_status); } &&
  9431. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9432. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9433. (eval $ac_try) 2>&5
  9434. ac_status=$?
  9435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9436. (exit $ac_status); }; } &&
  9437. { ac_try='test -s conftest$ac_exeext'
  9438. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9439. (eval $ac_try) 2>&5
  9440. ac_status=$?
  9441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9442. (exit $ac_status); }; }; then
  9443. eval "$as_ac_var=yes"
  9444. else
  9445. echo "$as_me: failed program was:" >&5
  9446. sed 's/^/| /' conftest.$ac_ext >&5
  9447. eval "$as_ac_var=no"
  9448. fi
  9449. rm -f conftest.err conftest.$ac_objext \
  9450. conftest$ac_exeext conftest.$ac_ext
  9451. fi
  9452. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9453. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9454. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9455. cat >>confdefs.h <<_ACEOF
  9456. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9457. _ACEOF
  9458. fi
  9459. done
  9460. if test "$ac_cv_func_vsprintf" = "no"
  9461. then
  9462. cat << 'EOF' >&2
  9463. configure: error:
  9464. Your system does not have the sprintf/vsprintf libraries.
  9465. These are required to compile almost anything. Sorry.
  9466. EOF
  9467. exit 1
  9468. fi
  9469. for ac_func in uname
  9470. do
  9471. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9472. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9473. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9474. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9475. echo $ECHO_N "(cached) $ECHO_C" >&6
  9476. else
  9477. cat >conftest.$ac_ext <<_ACEOF
  9478. /* confdefs.h. */
  9479. _ACEOF
  9480. cat confdefs.h >>conftest.$ac_ext
  9481. cat >>conftest.$ac_ext <<_ACEOF
  9482. /* end confdefs.h. */
  9483. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9484. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9485. #define $ac_func innocuous_$ac_func
  9486. /* System header to define __stub macros and hopefully few prototypes,
  9487. which can conflict with char $ac_func (); below.
  9488. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9489. <limits.h> exists even on freestanding compilers. */
  9490. #ifdef __STDC__
  9491. # include <limits.h>
  9492. #else
  9493. # include <assert.h>
  9494. #endif
  9495. #undef $ac_func
  9496. /* Override any gcc2 internal prototype to avoid an error. */
  9497. #ifdef __cplusplus
  9498. extern "C"
  9499. {
  9500. #endif
  9501. /* We use char because int might match the return type of a gcc2
  9502. builtin and then its argument prototype would still apply. */
  9503. char $ac_func ();
  9504. /* The GNU C library defines this for functions which it implements
  9505. to always fail with ENOSYS. Some functions are actually named
  9506. something starting with __ and the normal name is an alias. */
  9507. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9508. choke me
  9509. #else
  9510. char (*f) () = $ac_func;
  9511. #endif
  9512. #ifdef __cplusplus
  9513. }
  9514. #endif
  9515. int
  9516. main ()
  9517. {
  9518. return f != $ac_func;
  9519. ;
  9520. return 0;
  9521. }
  9522. _ACEOF
  9523. rm -f conftest.$ac_objext conftest$ac_exeext
  9524. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9525. (eval $ac_link) 2>conftest.er1
  9526. ac_status=$?
  9527. grep -v '^ *+' conftest.er1 >conftest.err
  9528. rm -f conftest.er1
  9529. cat conftest.err >&5
  9530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9531. (exit $ac_status); } &&
  9532. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9533. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9534. (eval $ac_try) 2>&5
  9535. ac_status=$?
  9536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9537. (exit $ac_status); }; } &&
  9538. { ac_try='test -s conftest$ac_exeext'
  9539. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9540. (eval $ac_try) 2>&5
  9541. ac_status=$?
  9542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9543. (exit $ac_status); }; }; then
  9544. eval "$as_ac_var=yes"
  9545. else
  9546. echo "$as_me: failed program was:" >&5
  9547. sed 's/^/| /' conftest.$ac_ext >&5
  9548. eval "$as_ac_var=no"
  9549. fi
  9550. rm -f conftest.err conftest.$ac_objext \
  9551. conftest$ac_exeext conftest.$ac_ext
  9552. fi
  9553. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9554. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9555. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9556. cat >>confdefs.h <<_ACEOF
  9557. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9558. _ACEOF
  9559. fi
  9560. done
  9561. if test "$ac_cv_func_uname" = "no"
  9562. then
  9563. cat << 'EOF' >&2
  9564. configure: error:
  9565. Your system does not have the uname() function.
  9566. This is required for the botpack.
  9567. EOF
  9568. exit 1
  9569. fi
  9570. # Make sure we have stdc headers, since we can't compile without them
  9571. if test "$ac_cv_header_stdc" = "no"
  9572. then
  9573. cat << 'EOF' >&2
  9574. configure: error:
  9575. Your system must support ANSI C Header files.
  9576. These are required for the language support. Sorry.
  9577. EOF
  9578. exit 1
  9579. fi
  9580. #checkpoint
  9581. cat >confcache <<\_ACEOF
  9582. # This file is a shell script that caches the results of configure
  9583. # tests run on this system so they can be shared between configure
  9584. # scripts and configure runs, see configure's option --config-cache.
  9585. # It is not useful on other systems. If it contains results you don't
  9586. # want to keep, you may remove or edit it.
  9587. #
  9588. # config.status only pays attention to the cache file if you give it
  9589. # the --recheck option to rerun configure.
  9590. #
  9591. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9592. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9593. # following values.
  9594. _ACEOF
  9595. # The following way of writing the cache mishandles newlines in values,
  9596. # but we know of no workaround that is simple, portable, and efficient.
  9597. # So, don't put newlines in cache variables' values.
  9598. # Ultrix sh set writes to stderr and can't be redirected directly,
  9599. # and sets the high bit in the cache file unless we assign to the vars.
  9600. {
  9601. (set) 2>&1 |
  9602. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9603. *ac_space=\ *)
  9604. # `set' does not quote correctly, so add quotes (double-quote
  9605. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9606. sed -n \
  9607. "s/'/'\\\\''/g;
  9608. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9609. ;;
  9610. *)
  9611. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9612. sed -n \
  9613. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9614. ;;
  9615. esac;
  9616. } |
  9617. sed '
  9618. t clear
  9619. : clear
  9620. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9621. t end
  9622. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9623. : end' >>confcache
  9624. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9625. if test -w $cache_file; then
  9626. test "x$cache_file" != "x/dev/null"
  9627. cat confcache >$cache_file
  9628. else
  9629. echo "not updating unwritable cache $cache_file"
  9630. fi
  9631. fi
  9632. rm -f confcache
  9633. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  9634. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  9635. cat >>confdefs.h <<_ACEOF
  9636. #define EGG_VERSION $version_num
  9637. _ACEOF
  9638. #FIND_WRAPS
  9639. case "$srcdir" in
  9640. [\\/]* | ?:[\\/]*)
  9641. MOD_UPDIR=""
  9642. ;;
  9643. *)
  9644. MOD_UPDIR="../"
  9645. ;;
  9646. esac
  9647. 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"
  9648. for mf in $files; do
  9649. # Strip MF so we end up with the name of the file.
  9650. # echo "MF: $mf"
  9651. mf=`echo "$mf" | sed -e 's/:.*$//'`
  9652. dirpart=`(dirname "$mf") 2>/dev/null ||
  9653. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9654. X"$mf" : 'X\(//\)[^/]' \| \
  9655. X"$mf" : 'X\(//\)$' \| \
  9656. X"$mf" : 'X\(/\)' \| \
  9657. . : '\(.\)' 2>/dev/null ||
  9658. echo X"$mf" |
  9659. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9660. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9661. /^X\(\/\/\)$/{ s//\1/; q; }
  9662. /^X\(\/\).*/{ s//\1/; q; }
  9663. s/.*/./; q'`
  9664. # echo "dirpart: $dirpart mf: $mf"
  9665. # rm -rf "$dirpart/.deps/"
  9666. rm -f "$dirpart/.deps/includes"
  9667. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  9668. for file in `sed -n -e '
  9669. /^OBJS = .*\\\\$/ {
  9670. s/^OBJS = //
  9671. :loop
  9672. s/\\\\$//
  9673. p
  9674. n
  9675. /\\\\$/ b loop
  9676. p
  9677. }
  9678. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  9679. do
  9680. base=`basename $file .o`
  9681. test -f "$dirpart/$base.c" || continue
  9682. if ! test -f "$dirpart/.deps/$base.Po"; then
  9683. echo '# dummy' > "$dirpart/.deps/$base.Po"
  9684. #Remove the .o file, because it needs to be recompiled for its dependancies.
  9685. if test -f "$dirpart/$base.o"; then
  9686. rm -f "$dirpart/$base.o"
  9687. fi
  9688. fi
  9689. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  9690. echo "_$base.c:" >> "$dirpart/.deps/includes"
  9691. done
  9692. done
  9693. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile"
  9694. cat >confcache <<\_ACEOF
  9695. # This file is a shell script that caches the results of configure
  9696. # tests run on this system so they can be shared between configure
  9697. # scripts and configure runs, see configure's option --config-cache.
  9698. # It is not useful on other systems. If it contains results you don't
  9699. # want to keep, you may remove or edit it.
  9700. #
  9701. # config.status only pays attention to the cache file if you give it
  9702. # the --recheck option to rerun configure.
  9703. #
  9704. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9705. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9706. # following values.
  9707. _ACEOF
  9708. # The following way of writing the cache mishandles newlines in values,
  9709. # but we know of no workaround that is simple, portable, and efficient.
  9710. # So, don't put newlines in cache variables' values.
  9711. # Ultrix sh set writes to stderr and can't be redirected directly,
  9712. # and sets the high bit in the cache file unless we assign to the vars.
  9713. {
  9714. (set) 2>&1 |
  9715. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9716. *ac_space=\ *)
  9717. # `set' does not quote correctly, so add quotes (double-quote
  9718. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9719. sed -n \
  9720. "s/'/'\\\\''/g;
  9721. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9722. ;;
  9723. *)
  9724. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9725. sed -n \
  9726. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9727. ;;
  9728. esac;
  9729. } |
  9730. sed '
  9731. t clear
  9732. : clear
  9733. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9734. t end
  9735. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9736. : end' >>confcache
  9737. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9738. if test -w $cache_file; then
  9739. test "x$cache_file" != "x/dev/null"
  9740. cat confcache >$cache_file
  9741. else
  9742. echo "not updating unwritable cache $cache_file"
  9743. fi
  9744. fi
  9745. rm -f confcache
  9746. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9747. # Let make expand exec_prefix.
  9748. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9749. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  9750. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  9751. # trailing colons and then remove the whole line if VPATH becomes empty
  9752. # (actually we leave an empty line to preserve line numbers).
  9753. if test "x$srcdir" = x.; then
  9754. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  9755. s/:*\$(srcdir):*/:/;
  9756. s/:*\${srcdir}:*/:/;
  9757. s/:*@srcdir@:*/:/;
  9758. s/^\([^=]*=[ ]*\):*/\1/;
  9759. s/:*$//;
  9760. s/^[^=]*=[ ]*$//;
  9761. }'
  9762. fi
  9763. DEFS=-DHAVE_CONFIG_H
  9764. ac_libobjs=
  9765. ac_ltlibobjs=
  9766. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9767. # 1. Remove the extension, and $U if already installed.
  9768. ac_i=`echo "$ac_i" |
  9769. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  9770. # 2. Add them.
  9771. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  9772. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  9773. done
  9774. LIBOBJS=$ac_libobjs
  9775. LTLIBOBJS=$ac_ltlibobjs
  9776. : ${CONFIG_STATUS=./config.status}
  9777. ac_clean_files_save=$ac_clean_files
  9778. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9779. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  9780. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9781. cat >$CONFIG_STATUS <<_ACEOF
  9782. #! $SHELL
  9783. # Generated by $as_me.
  9784. # Run this file to recreate the current configuration.
  9785. # Compiler output produced by configure, useful for debugging
  9786. # configure, is in config.log if it exists.
  9787. debug=false
  9788. ac_cs_recheck=false
  9789. ac_cs_silent=false
  9790. SHELL=\${CONFIG_SHELL-$SHELL}
  9791. _ACEOF
  9792. cat >>$CONFIG_STATUS <<\_ACEOF
  9793. ## --------------------- ##
  9794. ## M4sh Initialization. ##
  9795. ## --------------------- ##
  9796. # Be Bourne compatible
  9797. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  9798. emulate sh
  9799. NULLCMD=:
  9800. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  9801. # is contrary to our usage. Disable this feature.
  9802. alias -g '${1+"$@"}'='"$@"'
  9803. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  9804. set -o posix
  9805. fi
  9806. DUALCASE=1; export DUALCASE # for MKS sh
  9807. # Support unset when possible.
  9808. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9809. as_unset=unset
  9810. else
  9811. as_unset=false
  9812. fi
  9813. # Work around bugs in pre-3.0 UWIN ksh.
  9814. $as_unset ENV MAIL MAILPATH
  9815. PS1='$ '
  9816. PS2='> '
  9817. PS4='+ '
  9818. # NLS nuisances.
  9819. for as_var in \
  9820. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  9821. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  9822. LC_TELEPHONE LC_TIME
  9823. do
  9824. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  9825. eval $as_var=C; export $as_var
  9826. else
  9827. $as_unset $as_var
  9828. fi
  9829. done
  9830. # Required to use basename.
  9831. if expr a : '\(a\)' >/dev/null 2>&1; then
  9832. as_expr=expr
  9833. else
  9834. as_expr=false
  9835. fi
  9836. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  9837. as_basename=basename
  9838. else
  9839. as_basename=false
  9840. fi
  9841. # Name of the executable.
  9842. as_me=`$as_basename "$0" ||
  9843. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9844. X"$0" : 'X\(//\)$' \| \
  9845. X"$0" : 'X\(/\)$' \| \
  9846. . : '\(.\)' 2>/dev/null ||
  9847. echo X/"$0" |
  9848. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  9849. /^X\/\(\/\/\)$/{ s//\1/; q; }
  9850. /^X\/\(\/\).*/{ s//\1/; q; }
  9851. s/.*/./; q'`
  9852. # PATH needs CR, and LINENO needs CR and PATH.
  9853. # Avoid depending upon Character Ranges.
  9854. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9855. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9856. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9857. as_cr_digits='0123456789'
  9858. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9859. # The user is always right.
  9860. if test "${PATH_SEPARATOR+set}" != set; then
  9861. echo "#! /bin/sh" >conf$$.sh
  9862. echo "exit 0" >>conf$$.sh
  9863. chmod +x conf$$.sh
  9864. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9865. PATH_SEPARATOR=';'
  9866. else
  9867. PATH_SEPARATOR=:
  9868. fi
  9869. rm -f conf$$.sh
  9870. fi
  9871. as_lineno_1=$LINENO
  9872. as_lineno_2=$LINENO
  9873. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  9874. test "x$as_lineno_1" != "x$as_lineno_2" &&
  9875. test "x$as_lineno_3" = "x$as_lineno_2" || {
  9876. # Find who we are. Look in the path if we contain no path at all
  9877. # relative or not.
  9878. case $0 in
  9879. *[\\/]* ) as_myself=$0 ;;
  9880. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9881. for as_dir in $PATH
  9882. do
  9883. IFS=$as_save_IFS
  9884. test -z "$as_dir" && as_dir=.
  9885. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9886. done
  9887. ;;
  9888. esac
  9889. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9890. # in which case we are not to be found in the path.
  9891. if test "x$as_myself" = x; then
  9892. as_myself=$0
  9893. fi
  9894. if test ! -f "$as_myself"; then
  9895. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  9896. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  9897. { (exit 1); exit 1; }; }
  9898. fi
  9899. case $CONFIG_SHELL in
  9900. '')
  9901. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9902. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  9903. do
  9904. IFS=$as_save_IFS
  9905. test -z "$as_dir" && as_dir=.
  9906. for as_base in sh bash ksh sh5; do
  9907. case $as_dir in
  9908. /*)
  9909. if ("$as_dir/$as_base" -c '
  9910. as_lineno_1=$LINENO
  9911. as_lineno_2=$LINENO
  9912. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  9913. test "x$as_lineno_1" != "x$as_lineno_2" &&
  9914. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  9915. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  9916. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  9917. CONFIG_SHELL=$as_dir/$as_base
  9918. export CONFIG_SHELL
  9919. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  9920. fi;;
  9921. esac
  9922. done
  9923. done
  9924. ;;
  9925. esac
  9926. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  9927. # uniformly replaced by the line number. The first 'sed' inserts a
  9928. # line-number line before each line; the second 'sed' does the real
  9929. # work. The second script uses 'N' to pair each line-number line
  9930. # with the numbered line, and appends trailing '-' during
  9931. # substitution so that $LINENO is not a special case at line end.
  9932. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  9933. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  9934. sed '=' <$as_myself |
  9935. sed '
  9936. N
  9937. s,$,-,
  9938. : loop
  9939. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  9940. t loop
  9941. s,-$,,
  9942. s,^['$as_cr_digits']*\n,,
  9943. ' >$as_me.lineno &&
  9944. chmod +x $as_me.lineno ||
  9945. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  9946. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  9947. { (exit 1); exit 1; }; }
  9948. # Don't try to exec as it changes $[0], causing all sort of problems
  9949. # (the dirname of $[0] is not the place where we might find the
  9950. # original and so on. Autoconf is especially sensible to this).
  9951. . ./$as_me.lineno
  9952. # Exit status is that of the last command.
  9953. exit
  9954. }
  9955. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  9956. *c*,-n*) ECHO_N= ECHO_C='
  9957. ' ECHO_T=' ' ;;
  9958. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  9959. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  9960. esac
  9961. if expr a : '\(a\)' >/dev/null 2>&1; then
  9962. as_expr=expr
  9963. else
  9964. as_expr=false
  9965. fi
  9966. rm -f conf$$ conf$$.exe conf$$.file
  9967. echo >conf$$.file
  9968. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9969. # We could just check for DJGPP; but this test a) works b) is more generic
  9970. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  9971. if test -f conf$$.exe; then
  9972. # Don't use ln at all; we don't have any links
  9973. as_ln_s='cp -p'
  9974. else
  9975. as_ln_s='ln -s'
  9976. fi
  9977. elif ln conf$$.file conf$$ 2>/dev/null; then
  9978. as_ln_s=ln
  9979. else
  9980. as_ln_s='cp -p'
  9981. fi
  9982. rm -f conf$$ conf$$.exe conf$$.file
  9983. if mkdir -p . 2>/dev/null; then
  9984. as_mkdir_p=:
  9985. else
  9986. test -d ./-p && rmdir ./-p
  9987. as_mkdir_p=false
  9988. fi
  9989. as_executable_p="test -f"
  9990. # Sed expression to map a string onto a valid CPP name.
  9991. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9992. # Sed expression to map a string onto a valid variable name.
  9993. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9994. # IFS
  9995. # We need space, tab and new line, in precisely that order.
  9996. as_nl='
  9997. '
  9998. IFS=" $as_nl"
  9999. # CDPATH.
  10000. $as_unset CDPATH
  10001. exec 6>&1
  10002. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  10003. # report actual input values of CONFIG_FILES etc. instead of their
  10004. # values after options handling. Logging --version etc. is OK.
  10005. exec 5>>config.log
  10006. {
  10007. echo
  10008. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10009. ## Running $as_me. ##
  10010. _ASBOX
  10011. } >&5
  10012. cat >&5 <<_CSEOF
  10013. This file was extended by $as_me, which was
  10014. generated by GNU Autoconf 2.59. Invocation command line was
  10015. CONFIG_FILES = $CONFIG_FILES
  10016. CONFIG_HEADERS = $CONFIG_HEADERS
  10017. CONFIG_LINKS = $CONFIG_LINKS
  10018. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10019. $ $0 $@
  10020. _CSEOF
  10021. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  10022. echo >&5
  10023. _ACEOF
  10024. # Files that config.status was made for.
  10025. if test -n "$ac_config_files"; then
  10026. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  10027. fi
  10028. if test -n "$ac_config_headers"; then
  10029. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  10030. fi
  10031. if test -n "$ac_config_links"; then
  10032. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  10033. fi
  10034. if test -n "$ac_config_commands"; then
  10035. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  10036. fi
  10037. cat >>$CONFIG_STATUS <<\_ACEOF
  10038. ac_cs_usage="\
  10039. \`$as_me' instantiates files from templates according to the
  10040. current configuration.
  10041. Usage: $0 [OPTIONS] [FILE]...
  10042. -h, --help print this help, then exit
  10043. -V, --version print version number, then exit
  10044. -q, --quiet do not print progress messages
  10045. -d, --debug don't remove temporary files
  10046. --recheck update $as_me by reconfiguring in the same conditions
  10047. --file=FILE[:TEMPLATE]
  10048. instantiate the configuration file FILE
  10049. --header=FILE[:TEMPLATE]
  10050. instantiate the configuration header FILE
  10051. Configuration files:
  10052. $config_files
  10053. Configuration headers:
  10054. $config_headers
  10055. Report bugs to <bug-autoconf@gnu.org>."
  10056. _ACEOF
  10057. cat >>$CONFIG_STATUS <<_ACEOF
  10058. ac_cs_version="\\
  10059. config.status
  10060. configured by $0, generated by GNU Autoconf 2.59,
  10061. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  10062. Copyright (C) 2003 Free Software Foundation, Inc.
  10063. This config.status script is free software; the Free Software Foundation
  10064. gives unlimited permission to copy, distribute and modify it."
  10065. srcdir=$srcdir
  10066. _ACEOF
  10067. cat >>$CONFIG_STATUS <<\_ACEOF
  10068. # If no file are specified by the user, then we need to provide default
  10069. # value. By we need to know if files were specified by the user.
  10070. ac_need_defaults=:
  10071. while test $# != 0
  10072. do
  10073. case $1 in
  10074. --*=*)
  10075. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  10076. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  10077. ac_shift=:
  10078. ;;
  10079. -*)
  10080. ac_option=$1
  10081. ac_optarg=$2
  10082. ac_shift=shift
  10083. ;;
  10084. *) # This is not an option, so the user has probably given explicit
  10085. # arguments.
  10086. ac_option=$1
  10087. ac_need_defaults=false;;
  10088. esac
  10089. case $ac_option in
  10090. # Handling of the options.
  10091. _ACEOF
  10092. cat >>$CONFIG_STATUS <<\_ACEOF
  10093. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10094. ac_cs_recheck=: ;;
  10095. --version | --vers* | -V )
  10096. echo "$ac_cs_version"; exit 0 ;;
  10097. --he | --h)
  10098. # Conflict between --help and --header
  10099. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  10100. Try \`$0 --help' for more information." >&5
  10101. echo "$as_me: error: ambiguous option: $1
  10102. Try \`$0 --help' for more information." >&2;}
  10103. { (exit 1); exit 1; }; };;
  10104. --help | --hel | -h )
  10105. echo "$ac_cs_usage"; exit 0 ;;
  10106. --debug | --d* | -d )
  10107. debug=: ;;
  10108. --file | --fil | --fi | --f )
  10109. $ac_shift
  10110. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  10111. ac_need_defaults=false;;
  10112. --header | --heade | --head | --hea )
  10113. $ac_shift
  10114. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  10115. ac_need_defaults=false;;
  10116. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10117. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10118. ac_cs_silent=: ;;
  10119. # This is an error.
  10120. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  10121. Try \`$0 --help' for more information." >&5
  10122. echo "$as_me: error: unrecognized option: $1
  10123. Try \`$0 --help' for more information." >&2;}
  10124. { (exit 1); exit 1; }; } ;;
  10125. *) ac_config_targets="$ac_config_targets $1" ;;
  10126. esac
  10127. shift
  10128. done
  10129. ac_configure_extra_args=
  10130. if $ac_cs_silent; then
  10131. exec 6>/dev/null
  10132. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10133. fi
  10134. _ACEOF
  10135. cat >>$CONFIG_STATUS <<_ACEOF
  10136. if \$ac_cs_recheck; then
  10137. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  10138. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10139. fi
  10140. _ACEOF
  10141. cat >>$CONFIG_STATUS <<\_ACEOF
  10142. for ac_config_target in $ac_config_targets
  10143. do
  10144. case "$ac_config_target" in
  10145. # Handling of arguments.
  10146. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10147. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  10148. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  10149. "src/crypto/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  10150. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  10151. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  10152. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  10153. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  10154. { (exit 1); exit 1; }; };;
  10155. esac
  10156. done
  10157. # If the user did not use the arguments to specify the items to instantiate,
  10158. # then the envvar interface is used. Set only those that are not.
  10159. # We use the long form for the default assignment because of an extremely
  10160. # bizarre bug on SunOS 4.1.3.
  10161. if $ac_need_defaults; then
  10162. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10163. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10164. fi
  10165. # Have a temporary directory for convenience. Make it in the build tree
  10166. # simply because there is no reason to put it here, and in addition,
  10167. # creating and moving files from /tmp can sometimes cause problems.
  10168. # Create a temporary directory, and hook for its removal unless debugging.
  10169. $debug ||
  10170. {
  10171. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  10172. trap '{ (exit 1); exit 1; }' 1 2 13 15
  10173. }
  10174. # Create a (secure) tmp directory for tmp files.
  10175. {
  10176. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  10177. test -n "$tmp" && test -d "$tmp"
  10178. } ||
  10179. {
  10180. tmp=./confstat$$-$RANDOM
  10181. (umask 077 && mkdir $tmp)
  10182. } ||
  10183. {
  10184. echo "$me: cannot create a temporary directory in ." >&2
  10185. { (exit 1); exit 1; }
  10186. }
  10187. _ACEOF
  10188. cat >>$CONFIG_STATUS <<_ACEOF
  10189. #
  10190. # CONFIG_FILES section.
  10191. #
  10192. # No need to generate the scripts if there are no CONFIG_FILES.
  10193. # This happens for instance when ./config.status config.h
  10194. if test -n "\$CONFIG_FILES"; then
  10195. # Protect against being on the right side of a sed subst in config.status.
  10196. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  10197. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  10198. s,@SHELL@,$SHELL,;t t
  10199. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  10200. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  10201. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  10202. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  10203. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  10204. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  10205. s,@exec_prefix@,$exec_prefix,;t t
  10206. s,@prefix@,$prefix,;t t
  10207. s,@program_transform_name@,$program_transform_name,;t t
  10208. s,@bindir@,$bindir,;t t
  10209. s,@sbindir@,$sbindir,;t t
  10210. s,@libexecdir@,$libexecdir,;t t
  10211. s,@datadir@,$datadir,;t t
  10212. s,@sysconfdir@,$sysconfdir,;t t
  10213. s,@sharedstatedir@,$sharedstatedir,;t t
  10214. s,@localstatedir@,$localstatedir,;t t
  10215. s,@libdir@,$libdir,;t t
  10216. s,@includedir@,$includedir,;t t
  10217. s,@oldincludedir@,$oldincludedir,;t t
  10218. s,@infodir@,$infodir,;t t
  10219. s,@mandir@,$mandir,;t t
  10220. s,@build_alias@,$build_alias,;t t
  10221. s,@host_alias@,$host_alias,;t t
  10222. s,@target_alias@,$target_alias,;t t
  10223. s,@DEFS@,$DEFS,;t t
  10224. s,@ECHO_C@,$ECHO_C,;t t
  10225. s,@ECHO_N@,$ECHO_N,;t t
  10226. s,@ECHO_T@,$ECHO_T,;t t
  10227. s,@LIBS@,$LIBS,;t t
  10228. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  10229. s,@CXX@,$CXX,;t t
  10230. s,@CXXFLAGS@,$CXXFLAGS,;t t
  10231. s,@LDFLAGS@,$LDFLAGS,;t t
  10232. s,@CPPFLAGS@,$CPPFLAGS,;t t
  10233. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  10234. s,@EXEEXT@,$EXEEXT,;t t
  10235. s,@OBJEXT@,$OBJEXT,;t t
  10236. s,@CXXCPP@,$CXXCPP,;t t
  10237. s,@EGREP@,$EGREP,;t t
  10238. s,@CCDEPMODE@,$CCDEPMODE,;t t
  10239. s,@GCC3@,$GCC3,;t t
  10240. s,@SET_MAKE@,$SET_MAKE,;t t
  10241. s,@HEAD_1@,$HEAD_1,;t t
  10242. s,@AWK@,$AWK,;t t
  10243. s,@BASENAME@,$BASENAME,;t t
  10244. s,@OBJCOPY@,$OBJCOPY,;t t
  10245. s,@STRIP@,$STRIP,;t t
  10246. s,@DIFF@,$DIFF,;t t
  10247. s,@UNAME@,$UNAME,;t t
  10248. s,@DISTCC@,$DISTCC,;t t
  10249. s,@CCDEBUG@,$CCDEBUG,;t t
  10250. s,@ZLIB@,$ZLIB,;t t
  10251. s,@LIBOBJS@,$LIBOBJS,;t t
  10252. s,@VERSION@,$VERSION,;t t
  10253. s,@NUMVER@,$NUMVER,;t t
  10254. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  10255. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  10256. CEOF
  10257. _ACEOF
  10258. cat >>$CONFIG_STATUS <<\_ACEOF
  10259. # Split the substitutions into bite-sized pieces for seds with
  10260. # small command number limits, like on Digital OSF/1 and HP-UX.
  10261. ac_max_sed_lines=48
  10262. ac_sed_frag=1 # Number of current file.
  10263. ac_beg=1 # First line for current file.
  10264. ac_end=$ac_max_sed_lines # Line after last line for current file.
  10265. ac_more_lines=:
  10266. ac_sed_cmds=
  10267. while $ac_more_lines; do
  10268. if test $ac_beg -gt 1; then
  10269. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  10270. else
  10271. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  10272. fi
  10273. if test ! -s $tmp/subs.frag; then
  10274. ac_more_lines=false
  10275. else
  10276. # The purpose of the label and of the branching condition is to
  10277. # speed up the sed processing (if there are no `@' at all, there
  10278. # is no need to browse any of the substitutions).
  10279. # These are the two extra sed commands mentioned above.
  10280. (echo ':t
  10281. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  10282. if test -z "$ac_sed_cmds"; then
  10283. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  10284. else
  10285. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  10286. fi
  10287. ac_sed_frag=`expr $ac_sed_frag + 1`
  10288. ac_beg=$ac_end
  10289. ac_end=`expr $ac_end + $ac_max_sed_lines`
  10290. fi
  10291. done
  10292. if test -z "$ac_sed_cmds"; then
  10293. ac_sed_cmds=cat
  10294. fi
  10295. fi # test -n "$CONFIG_FILES"
  10296. _ACEOF
  10297. cat >>$CONFIG_STATUS <<\_ACEOF
  10298. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  10299. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  10300. case $ac_file in
  10301. - | *:- | *:-:* ) # input from stdin
  10302. cat >$tmp/stdin
  10303. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10304. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10305. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10306. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10307. * ) ac_file_in=$ac_file.in ;;
  10308. esac
  10309. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  10310. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  10311. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10312. X"$ac_file" : 'X\(//\)[^/]' \| \
  10313. X"$ac_file" : 'X\(//\)$' \| \
  10314. X"$ac_file" : 'X\(/\)' \| \
  10315. . : '\(.\)' 2>/dev/null ||
  10316. echo X"$ac_file" |
  10317. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10318. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10319. /^X\(\/\/\)$/{ s//\1/; q; }
  10320. /^X\(\/\).*/{ s//\1/; q; }
  10321. s/.*/./; q'`
  10322. { if $as_mkdir_p; then
  10323. mkdir -p "$ac_dir"
  10324. else
  10325. as_dir="$ac_dir"
  10326. as_dirs=
  10327. while test ! -d "$as_dir"; do
  10328. as_dirs="$as_dir $as_dirs"
  10329. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  10330. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10331. X"$as_dir" : 'X\(//\)[^/]' \| \
  10332. X"$as_dir" : 'X\(//\)$' \| \
  10333. X"$as_dir" : 'X\(/\)' \| \
  10334. . : '\(.\)' 2>/dev/null ||
  10335. echo X"$as_dir" |
  10336. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10337. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10338. /^X\(\/\/\)$/{ s//\1/; q; }
  10339. /^X\(\/\).*/{ s//\1/; q; }
  10340. s/.*/./; q'`
  10341. done
  10342. test ! -n "$as_dirs" || mkdir $as_dirs
  10343. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  10344. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  10345. { (exit 1); exit 1; }; }; }
  10346. ac_builddir=.
  10347. if test "$ac_dir" != .; then
  10348. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  10349. # A "../" for each directory in $ac_dir_suffix.
  10350. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  10351. else
  10352. ac_dir_suffix= ac_top_builddir=
  10353. fi
  10354. case $srcdir in
  10355. .) # No --srcdir option. We are building in place.
  10356. ac_srcdir=.
  10357. if test -z "$ac_top_builddir"; then
  10358. ac_top_srcdir=.
  10359. else
  10360. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  10361. fi ;;
  10362. [\\/]* | ?:[\\/]* ) # Absolute path.
  10363. ac_srcdir=$srcdir$ac_dir_suffix;
  10364. ac_top_srcdir=$srcdir ;;
  10365. *) # Relative path.
  10366. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  10367. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  10368. esac
  10369. # Do not use `cd foo && pwd` to compute absolute paths, because
  10370. # the directories may not exist.
  10371. case `pwd` in
  10372. .) ac_abs_builddir="$ac_dir";;
  10373. *)
  10374. case "$ac_dir" in
  10375. .) ac_abs_builddir=`pwd`;;
  10376. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  10377. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  10378. esac;;
  10379. esac
  10380. case $ac_abs_builddir in
  10381. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  10382. *)
  10383. case ${ac_top_builddir}. in
  10384. .) ac_abs_top_builddir=$ac_abs_builddir;;
  10385. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  10386. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  10387. esac;;
  10388. esac
  10389. case $ac_abs_builddir in
  10390. .) ac_abs_srcdir=$ac_srcdir;;
  10391. *)
  10392. case $ac_srcdir in
  10393. .) ac_abs_srcdir=$ac_abs_builddir;;
  10394. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  10395. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  10396. esac;;
  10397. esac
  10398. case $ac_abs_builddir in
  10399. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  10400. *)
  10401. case $ac_top_srcdir in
  10402. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  10403. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  10404. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  10405. esac;;
  10406. esac
  10407. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10408. # use $as_me), people would be surprised to read:
  10409. # /* config.h. Generated by config.status. */
  10410. if test x"$ac_file" = x-; then
  10411. configure_input=
  10412. else
  10413. configure_input="$ac_file. "
  10414. fi
  10415. configure_input=$configure_input"Generated from `echo $ac_file_in |
  10416. sed 's,.*/,,'` by configure."
  10417. # First look for the input files in the build tree, otherwise in the
  10418. # src tree.
  10419. ac_file_inputs=`IFS=:
  10420. for f in $ac_file_in; do
  10421. case $f in
  10422. -) echo $tmp/stdin ;;
  10423. [\\/$]*)
  10424. # Absolute (can't be DOS-style, as IFS=:)
  10425. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10426. echo "$as_me: error: cannot find input file: $f" >&2;}
  10427. { (exit 1); exit 1; }; }
  10428. echo "$f";;
  10429. *) # Relative
  10430. if test -f "$f"; then
  10431. # Build tree
  10432. echo "$f"
  10433. elif test -f "$srcdir/$f"; then
  10434. # Source tree
  10435. echo "$srcdir/$f"
  10436. else
  10437. # /dev/null tree
  10438. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10439. echo "$as_me: error: cannot find input file: $f" >&2;}
  10440. { (exit 1); exit 1; }; }
  10441. fi;;
  10442. esac
  10443. done` || { (exit 1); exit 1; }
  10444. if test x"$ac_file" != x-; then
  10445. { echo "$as_me:$LINENO: creating $ac_file" >&5
  10446. echo "$as_me: creating $ac_file" >&6;}
  10447. rm -f "$ac_file"
  10448. fi
  10449. _ACEOF
  10450. cat >>$CONFIG_STATUS <<_ACEOF
  10451. sed "$ac_vpsub
  10452. $extrasub
  10453. _ACEOF
  10454. cat >>$CONFIG_STATUS <<\_ACEOF
  10455. :t
  10456. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10457. s,@configure_input@,$configure_input,;t t
  10458. s,@srcdir@,$ac_srcdir,;t t
  10459. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  10460. s,@top_srcdir@,$ac_top_srcdir,;t t
  10461. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  10462. s,@builddir@,$ac_builddir,;t t
  10463. s,@abs_builddir@,$ac_abs_builddir,;t t
  10464. s,@top_builddir@,$ac_top_builddir,;t t
  10465. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  10466. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  10467. rm -f $tmp/stdin
  10468. if test x"$ac_file" != x-; then
  10469. mv $tmp/out $ac_file
  10470. else
  10471. cat $tmp/out
  10472. rm -f $tmp/out
  10473. fi
  10474. done
  10475. _ACEOF
  10476. cat >>$CONFIG_STATUS <<\_ACEOF
  10477. #
  10478. # CONFIG_HEADER section.
  10479. #
  10480. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  10481. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  10482. #
  10483. # ac_d sets the value in "#define NAME VALUE" lines.
  10484. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  10485. ac_dB='[ ].*$,\1#\2'
  10486. ac_dC=' '
  10487. ac_dD=',;t'
  10488. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  10489. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  10490. ac_uB='$,\1#\2define\3'
  10491. ac_uC=' '
  10492. ac_uD=',;t'
  10493. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  10494. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  10495. case $ac_file in
  10496. - | *:- | *:-:* ) # input from stdin
  10497. cat >$tmp/stdin
  10498. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10499. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10500. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10501. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10502. * ) ac_file_in=$ac_file.in ;;
  10503. esac
  10504. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  10505. echo "$as_me: creating $ac_file" >&6;}
  10506. # First look for the input files in the build tree, otherwise in the
  10507. # src tree.
  10508. ac_file_inputs=`IFS=:
  10509. for f in $ac_file_in; do
  10510. case $f in
  10511. -) echo $tmp/stdin ;;
  10512. [\\/$]*)
  10513. # Absolute (can't be DOS-style, as IFS=:)
  10514. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10515. echo "$as_me: error: cannot find input file: $f" >&2;}
  10516. { (exit 1); exit 1; }; }
  10517. # Do quote $f, to prevent DOS paths from being IFS'd.
  10518. echo "$f";;
  10519. *) # Relative
  10520. if test -f "$f"; then
  10521. # Build tree
  10522. echo "$f"
  10523. elif test -f "$srcdir/$f"; then
  10524. # Source tree
  10525. echo "$srcdir/$f"
  10526. else
  10527. # /dev/null tree
  10528. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10529. echo "$as_me: error: cannot find input file: $f" >&2;}
  10530. { (exit 1); exit 1; }; }
  10531. fi;;
  10532. esac
  10533. done` || { (exit 1); exit 1; }
  10534. # Remove the trailing spaces.
  10535. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  10536. _ACEOF
  10537. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  10538. # `conftest.undefs', that substitutes the proper values into
  10539. # config.h.in to produce config.h. The first handles `#define'
  10540. # templates, and the second `#undef' templates.
  10541. # And first: Protect against being on the right side of a sed subst in
  10542. # config.status. Protect against being in an unquoted here document
  10543. # in config.status.
  10544. rm -f conftest.defines conftest.undefs
  10545. # Using a here document instead of a string reduces the quoting nightmare.
  10546. # Putting comments in sed scripts is not portable.
  10547. #
  10548. # `end' is used to avoid that the second main sed command (meant for
  10549. # 0-ary CPP macros) applies to n-ary macro definitions.
  10550. # See the Autoconf documentation for `clear'.
  10551. cat >confdef2sed.sed <<\_ACEOF
  10552. s/[\\&,]/\\&/g
  10553. s,[\\$`],\\&,g
  10554. t clear
  10555. : clear
  10556. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  10557. t end
  10558. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  10559. : end
  10560. _ACEOF
  10561. # If some macros were called several times there might be several times
  10562. # the same #defines, which is useless. Nevertheless, we may not want to
  10563. # sort them, since we want the *last* AC-DEFINE to be honored.
  10564. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  10565. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  10566. rm -f confdef2sed.sed
  10567. # This sed command replaces #undef with comments. This is necessary, for
  10568. # example, in the case of _POSIX_SOURCE, which is predefined and required
  10569. # on some systems where configure will not decide to define it.
  10570. cat >>conftest.undefs <<\_ACEOF
  10571. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  10572. _ACEOF
  10573. # Break up conftest.defines because some shells have a limit on the size
  10574. # of here documents, and old seds have small limits too (100 cmds).
  10575. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  10576. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  10577. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  10578. echo ' :' >>$CONFIG_STATUS
  10579. rm -f conftest.tail
  10580. while grep . conftest.defines >/dev/null
  10581. do
  10582. # Write a limited-size here document to $tmp/defines.sed.
  10583. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  10584. # Speed up: don't consider the non `#define' lines.
  10585. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  10586. # Work around the forget-to-reset-the-flag bug.
  10587. echo 't clr' >>$CONFIG_STATUS
  10588. echo ': clr' >>$CONFIG_STATUS
  10589. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  10590. echo 'CEOF
  10591. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  10592. rm -f $tmp/in
  10593. mv $tmp/out $tmp/in
  10594. ' >>$CONFIG_STATUS
  10595. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  10596. rm -f conftest.defines
  10597. mv conftest.tail conftest.defines
  10598. done
  10599. rm -f conftest.defines
  10600. echo ' fi # grep' >>$CONFIG_STATUS
  10601. echo >>$CONFIG_STATUS
  10602. # Break up conftest.undefs because some shells have a limit on the size
  10603. # of here documents, and old seds have small limits too (100 cmds).
  10604. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  10605. rm -f conftest.tail
  10606. while grep . conftest.undefs >/dev/null
  10607. do
  10608. # Write a limited-size here document to $tmp/undefs.sed.
  10609. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  10610. # Speed up: don't consider the non `#undef'
  10611. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  10612. # Work around the forget-to-reset-the-flag bug.
  10613. echo 't clr' >>$CONFIG_STATUS
  10614. echo ': clr' >>$CONFIG_STATUS
  10615. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  10616. echo 'CEOF
  10617. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  10618. rm -f $tmp/in
  10619. mv $tmp/out $tmp/in
  10620. ' >>$CONFIG_STATUS
  10621. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  10622. rm -f conftest.undefs
  10623. mv conftest.tail conftest.undefs
  10624. done
  10625. rm -f conftest.undefs
  10626. cat >>$CONFIG_STATUS <<\_ACEOF
  10627. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10628. # use $as_me), people would be surprised to read:
  10629. # /* config.h. Generated by config.status. */
  10630. if test x"$ac_file" = x-; then
  10631. echo "/* Generated by configure. */" >$tmp/config.h
  10632. else
  10633. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  10634. fi
  10635. cat $tmp/in >>$tmp/config.h
  10636. rm -f $tmp/in
  10637. if test x"$ac_file" != x-; then
  10638. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  10639. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  10640. echo "$as_me: $ac_file is unchanged" >&6;}
  10641. else
  10642. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  10643. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10644. X"$ac_file" : 'X\(//\)[^/]' \| \
  10645. X"$ac_file" : 'X\(//\)$' \| \
  10646. X"$ac_file" : 'X\(/\)' \| \
  10647. . : '\(.\)' 2>/dev/null ||
  10648. echo X"$ac_file" |
  10649. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10650. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10651. /^X\(\/\/\)$/{ s//\1/; q; }
  10652. /^X\(\/\).*/{ s//\1/; q; }
  10653. s/.*/./; q'`
  10654. { if $as_mkdir_p; then
  10655. mkdir -p "$ac_dir"
  10656. else
  10657. as_dir="$ac_dir"
  10658. as_dirs=
  10659. while test ! -d "$as_dir"; do
  10660. as_dirs="$as_dir $as_dirs"
  10661. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  10662. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10663. X"$as_dir" : 'X\(//\)[^/]' \| \
  10664. X"$as_dir" : 'X\(//\)$' \| \
  10665. X"$as_dir" : 'X\(/\)' \| \
  10666. . : '\(.\)' 2>/dev/null ||
  10667. echo X"$as_dir" |
  10668. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10669. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10670. /^X\(\/\/\)$/{ s//\1/; q; }
  10671. /^X\(\/\).*/{ s//\1/; q; }
  10672. s/.*/./; q'`
  10673. done
  10674. test ! -n "$as_dirs" || mkdir $as_dirs
  10675. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  10676. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  10677. { (exit 1); exit 1; }; }; }
  10678. rm -f $ac_file
  10679. mv $tmp/config.h $ac_file
  10680. fi
  10681. else
  10682. cat $tmp/config.h
  10683. rm -f $tmp/config.h
  10684. fi
  10685. done
  10686. _ACEOF
  10687. cat >>$CONFIG_STATUS <<\_ACEOF
  10688. { (exit 0); exit 0; }
  10689. _ACEOF
  10690. chmod +x $CONFIG_STATUS
  10691. ac_clean_files=$ac_clean_files_save
  10692. # configure is writing to config.log, and then calls config.status.
  10693. # config.status does its own redirection, appending to config.log.
  10694. # Unfortunately, on DOS this fails, as config.log is still kept open
  10695. # by configure, so config.status won't be able to write to it; its
  10696. # output is simply discarded. So we exec the FD to /dev/null,
  10697. # effectively closing config.log, so it can be properly (re)opened and
  10698. # appended to by config.status. When coming back to configure, we
  10699. # need to make the FD available again.
  10700. if test "$no_create" != yes; then
  10701. ac_cs_success=:
  10702. ac_config_status_args=
  10703. test "$silent" = yes &&
  10704. ac_config_status_args="$ac_config_status_args --quiet"
  10705. exec 5>/dev/null
  10706. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  10707. exec 5>>config.log
  10708. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10709. # would make configure fail if this is the last instruction.
  10710. $ac_cs_success || { (exit 1); exit 1; }
  10711. fi