configure 330 KB

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