configure 273 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948
  1. #! /bin/sh
  2. # From configure.ac Revision.
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.68.
  5. #
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  9. # Foundation, Inc.
  10. #
  11. #
  12. # This configure script is free software; the Free Software Foundation
  13. # gives unlimited permission to copy, distribute and modify it.
  14. #
  15. # Copyright (c) Bryan Drewery
  16. ## -------------------- ##
  17. ## M4sh Initialization. ##
  18. ## -------------------- ##
  19. # Be more Bourne compatible
  20. DUALCASE=1; export DUALCASE # for MKS sh
  21. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22. emulate sh
  23. NULLCMD=:
  24. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25. # is contrary to our usage. Disable this feature.
  26. alias -g '${1+"$@"}'='"$@"'
  27. setopt NO_GLOB_SUBST
  28. else
  29. case `(set -o) 2>/dev/null` in #(
  30. *posix*) :
  31. set -o posix ;; #(
  32. *) :
  33. ;;
  34. esac
  35. fi
  36. as_nl='
  37. '
  38. export as_nl
  39. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  40. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  42. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  43. # Prefer a ksh shell builtin over an external printf program on Solaris,
  44. # but without wasting forks for bash or zsh.
  45. if test -z "$BASH_VERSION$ZSH_VERSION" \
  46. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='print -r --'
  48. as_echo_n='print -rn --'
  49. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  50. as_echo='printf %s\n'
  51. as_echo_n='printf %s'
  52. else
  53. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  54. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  55. as_echo_n='/usr/ucb/echo -n'
  56. else
  57. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  58. as_echo_n_body='eval
  59. arg=$1;
  60. case $arg in #(
  61. *"$as_nl"*)
  62. expr "X$arg" : "X\\(.*\\)$as_nl";
  63. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  64. esac;
  65. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  66. '
  67. export as_echo_n_body
  68. as_echo_n='sh -c $as_echo_n_body as_echo'
  69. fi
  70. export as_echo_body
  71. as_echo='sh -c $as_echo_body as_echo'
  72. fi
  73. # The user is always right.
  74. if test "${PATH_SEPARATOR+set}" != set; then
  75. PATH_SEPARATOR=:
  76. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  77. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  78. PATH_SEPARATOR=';'
  79. }
  80. fi
  81. # IFS
  82. # We need space, tab and new line, in precisely that order. Quoting is
  83. # there to prevent editors from complaining about space-tab.
  84. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  85. # splitting by setting IFS to empty value.)
  86. IFS=" "" $as_nl"
  87. # Find who we are. Look in the path if we contain no directory separator.
  88. as_myself=
  89. case $0 in #((
  90. *[\\/]* ) as_myself=$0 ;;
  91. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  92. for as_dir in $PATH
  93. do
  94. IFS=$as_save_IFS
  95. test -z "$as_dir" && as_dir=.
  96. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  97. done
  98. IFS=$as_save_IFS
  99. ;;
  100. esac
  101. # We did not find ourselves, most probably we were run as `sh COMMAND'
  102. # in which case we are not to be found in the path.
  103. if test "x$as_myself" = x; then
  104. as_myself=$0
  105. fi
  106. if test ! -f "$as_myself"; then
  107. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  108. exit 1
  109. fi
  110. # Unset variables that we do not need and which cause bugs (e.g. in
  111. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  112. # suppresses any "Segmentation fault" message there. '((' could
  113. # trigger a bug in pdksh 5.2.14.
  114. for as_var in BASH_ENV ENV MAIL MAILPATH
  115. do eval test x\${$as_var+set} = xset \
  116. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  117. done
  118. PS1='$ '
  119. PS2='> '
  120. PS4='+ '
  121. # NLS nuisances.
  122. LC_ALL=C
  123. export LC_ALL
  124. LANGUAGE=C
  125. export LANGUAGE
  126. # CDPATH.
  127. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  128. if test "x$CONFIG_SHELL" = x; then
  129. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  130. emulate sh
  131. NULLCMD=:
  132. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  133. # is contrary to our usage. Disable this feature.
  134. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  135. setopt NO_GLOB_SUBST
  136. else
  137. case \`(set -o) 2>/dev/null\` in #(
  138. *posix*) :
  139. set -o posix ;; #(
  140. *) :
  141. ;;
  142. esac
  143. fi
  144. "
  145. as_required="as_fn_return () { (exit \$1); }
  146. as_fn_success () { as_fn_return 0; }
  147. as_fn_failure () { as_fn_return 1; }
  148. as_fn_ret_success () { return 0; }
  149. as_fn_ret_failure () { return 1; }
  150. exitcode=0
  151. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  152. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  153. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  154. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  155. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  156. else
  157. exitcode=1; echo positional parameters were not saved.
  158. fi
  159. test x\$exitcode = x0 || exit 1"
  160. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  161. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  162. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  163. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  164. test \$(( 1 + 1 )) = 2 || exit 1"
  165. if (eval "$as_required") 2>/dev/null; then :
  166. as_have_required=yes
  167. else
  168. as_have_required=no
  169. fi
  170. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  171. else
  172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  173. as_found=false
  174. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  175. do
  176. IFS=$as_save_IFS
  177. test -z "$as_dir" && as_dir=.
  178. as_found=:
  179. case $as_dir in #(
  180. /*)
  181. for as_base in sh bash ksh sh5; do
  182. # Try only shells that exist, to save several forks.
  183. as_shell=$as_dir/$as_base
  184. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  185. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  186. CONFIG_SHELL=$as_shell as_have_required=yes
  187. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  188. break 2
  189. fi
  190. fi
  191. done;;
  192. esac
  193. as_found=false
  194. done
  195. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  196. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  197. CONFIG_SHELL=$SHELL as_have_required=yes
  198. fi; }
  199. IFS=$as_save_IFS
  200. if test "x$CONFIG_SHELL" != x; then :
  201. # We cannot yet assume a decent shell, so we have to provide a
  202. # neutralization value for shells without unset; and this also
  203. # works around shells that cannot unset nonexistent variables.
  204. # Preserve -v and -x to the replacement shell.
  205. BASH_ENV=/dev/null
  206. ENV=/dev/null
  207. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  208. export CONFIG_SHELL
  209. case $- in # ((((
  210. *v*x* | *x*v* ) as_opts=-vx ;;
  211. *v* ) as_opts=-v ;;
  212. *x* ) as_opts=-x ;;
  213. * ) as_opts= ;;
  214. esac
  215. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  216. fi
  217. if test x$as_have_required = xno; then :
  218. $as_echo "$0: This script requires a shell more modern than all"
  219. $as_echo "$0: the shells that I found on your system."
  220. if test x${ZSH_VERSION+set} = xset ; then
  221. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  222. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  223. else
  224. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  225. $0: including any error possibly output before this
  226. $0: message. Then install a modern shell, or manually run
  227. $0: the script under such a shell if you do have one."
  228. fi
  229. exit 1
  230. fi
  231. fi
  232. fi
  233. SHELL=${CONFIG_SHELL-/bin/sh}
  234. export SHELL
  235. # Unset more variables known to interfere with behavior of common tools.
  236. CLICOLOR_FORCE= GREP_OPTIONS=
  237. unset CLICOLOR_FORCE GREP_OPTIONS
  238. ## --------------------- ##
  239. ## M4sh Shell Functions. ##
  240. ## --------------------- ##
  241. # as_fn_unset VAR
  242. # ---------------
  243. # Portably unset VAR.
  244. as_fn_unset ()
  245. {
  246. { eval $1=; unset $1;}
  247. }
  248. as_unset=as_fn_unset
  249. # as_fn_set_status STATUS
  250. # -----------------------
  251. # Set $? to STATUS, without forking.
  252. as_fn_set_status ()
  253. {
  254. return $1
  255. } # as_fn_set_status
  256. # as_fn_exit STATUS
  257. # -----------------
  258. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  259. as_fn_exit ()
  260. {
  261. set +e
  262. as_fn_set_status $1
  263. exit $1
  264. } # as_fn_exit
  265. # as_fn_mkdir_p
  266. # -------------
  267. # Create "$as_dir" as a directory, including parents if necessary.
  268. as_fn_mkdir_p ()
  269. {
  270. case $as_dir in #(
  271. -*) as_dir=./$as_dir;;
  272. esac
  273. test -d "$as_dir" || eval $as_mkdir_p || {
  274. as_dirs=
  275. while :; do
  276. case $as_dir in #(
  277. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  278. *) as_qdir=$as_dir;;
  279. esac
  280. as_dirs="'$as_qdir' $as_dirs"
  281. as_dir=`$as_dirname -- "$as_dir" ||
  282. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  283. X"$as_dir" : 'X\(//\)[^/]' \| \
  284. X"$as_dir" : 'X\(//\)$' \| \
  285. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  286. $as_echo X"$as_dir" |
  287. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\/\)[^/].*/{
  292. s//\1/
  293. q
  294. }
  295. /^X\(\/\/\)$/{
  296. s//\1/
  297. q
  298. }
  299. /^X\(\/\).*/{
  300. s//\1/
  301. q
  302. }
  303. s/.*/./; q'`
  304. test -d "$as_dir" && break
  305. done
  306. test -z "$as_dirs" || eval "mkdir $as_dirs"
  307. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  308. } # as_fn_mkdir_p
  309. # as_fn_append VAR VALUE
  310. # ----------------------
  311. # Append the text in VALUE to the end of the definition contained in VAR. Take
  312. # advantage of any shell optimizations that allow amortized linear growth over
  313. # repeated appends, instead of the typical quadratic growth present in naive
  314. # implementations.
  315. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  316. eval 'as_fn_append ()
  317. {
  318. eval $1+=\$2
  319. }'
  320. else
  321. as_fn_append ()
  322. {
  323. eval $1=\$$1\$2
  324. }
  325. fi # as_fn_append
  326. # as_fn_arith ARG...
  327. # ------------------
  328. # Perform arithmetic evaluation on the ARGs, and store the result in the
  329. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  330. # must be portable across $(()) and expr.
  331. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  332. eval 'as_fn_arith ()
  333. {
  334. as_val=$(( $* ))
  335. }'
  336. else
  337. as_fn_arith ()
  338. {
  339. as_val=`expr "$@" || test $? -eq 1`
  340. }
  341. fi # as_fn_arith
  342. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  343. # ----------------------------------------
  344. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  345. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  346. # script with STATUS, using 1 if that was 0.
  347. as_fn_error ()
  348. {
  349. as_status=$1; test $as_status -eq 0 && as_status=1
  350. if test "$4"; then
  351. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  352. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  353. fi
  354. $as_echo "$as_me: error: $2" >&2
  355. as_fn_exit $as_status
  356. } # as_fn_error
  357. if expr a : '\(a\)' >/dev/null 2>&1 &&
  358. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  359. as_expr=expr
  360. else
  361. as_expr=false
  362. fi
  363. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  364. as_basename=basename
  365. else
  366. as_basename=false
  367. fi
  368. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  369. as_dirname=dirname
  370. else
  371. as_dirname=false
  372. fi
  373. as_me=`$as_basename -- "$0" ||
  374. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  375. X"$0" : 'X\(//\)$' \| \
  376. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  377. $as_echo X/"$0" |
  378. sed '/^.*\/\([^/][^/]*\)\/*$/{
  379. s//\1/
  380. q
  381. }
  382. /^X\/\(\/\/\)$/{
  383. s//\1/
  384. q
  385. }
  386. /^X\/\(\/\).*/{
  387. s//\1/
  388. q
  389. }
  390. s/.*/./; q'`
  391. # Avoid depending upon Character Ranges.
  392. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  393. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  394. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  395. as_cr_digits='0123456789'
  396. as_cr_alnum=$as_cr_Letters$as_cr_digits
  397. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  398. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  399. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  400. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  401. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  402. sed -n '
  403. p
  404. /[$]LINENO/=
  405. ' <$as_myself |
  406. sed '
  407. s/[$]LINENO.*/&-/
  408. t lineno
  409. b
  410. :lineno
  411. N
  412. :loop
  413. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  414. t loop
  415. s/-\n.*//
  416. ' >$as_me.lineno &&
  417. chmod +x "$as_me.lineno" ||
  418. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  419. # Don't try to exec as it changes $[0], causing all sort of problems
  420. # (the dirname of $[0] is not the place where we might find the
  421. # original and so on. Autoconf is especially sensitive to this).
  422. . "./$as_me.lineno"
  423. # Exit status is that of the last command.
  424. exit
  425. }
  426. ECHO_C= ECHO_N= ECHO_T=
  427. case `echo -n x` in #(((((
  428. -n*)
  429. case `echo 'xy\c'` in
  430. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  431. xy) ECHO_C='\c';;
  432. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  433. ECHO_T=' ';;
  434. esac;;
  435. *)
  436. ECHO_N='-n';;
  437. esac
  438. rm -f conf$$ conf$$.exe conf$$.file
  439. if test -d conf$$.dir; then
  440. rm -f conf$$.dir/conf$$.file
  441. else
  442. rm -f conf$$.dir
  443. mkdir conf$$.dir 2>/dev/null
  444. fi
  445. if (echo >conf$$.file) 2>/dev/null; then
  446. if ln -s conf$$.file conf$$ 2>/dev/null; then
  447. as_ln_s='ln -s'
  448. # ... but there are two gotchas:
  449. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  450. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  451. # In both cases, we have to default to `cp -p'.
  452. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  453. as_ln_s='cp -p'
  454. elif ln conf$$.file conf$$ 2>/dev/null; then
  455. as_ln_s=ln
  456. else
  457. as_ln_s='cp -p'
  458. fi
  459. else
  460. as_ln_s='cp -p'
  461. fi
  462. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  463. rmdir conf$$.dir 2>/dev/null
  464. if mkdir -p . 2>/dev/null; then
  465. as_mkdir_p='mkdir -p "$as_dir"'
  466. else
  467. test -d ./-p && rmdir ./-p
  468. as_mkdir_p=false
  469. fi
  470. if test -x / >/dev/null 2>&1; then
  471. as_test_x='test -x'
  472. else
  473. if ls -dL / >/dev/null 2>&1; then
  474. as_ls_L_option=L
  475. else
  476. as_ls_L_option=
  477. fi
  478. as_test_x='
  479. eval sh -c '\''
  480. if test -d "$1"; then
  481. test -d "$1/.";
  482. else
  483. case $1 in #(
  484. -*)set "./$1";;
  485. esac;
  486. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  487. ???[sx]*):;;*)false;;esac;fi
  488. '\'' sh
  489. '
  490. fi
  491. as_executable_p=$as_test_x
  492. # Sed expression to map a string onto a valid CPP name.
  493. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  494. # Sed expression to map a string onto a valid variable name.
  495. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  496. test -n "$DJDIR" || exec 7<&0 </dev/null
  497. exec 6>&1
  498. # Name of the host.
  499. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  500. # so uname gets run too.
  501. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  502. #
  503. # Initializations.
  504. #
  505. ac_default_prefix=/usr/local
  506. ac_clean_files=
  507. ac_config_libobj_dir=.
  508. LIBOBJS=
  509. cross_compiling=no
  510. subdirs=
  511. MFLAGS=
  512. MAKEFLAGS=
  513. # Identity of this package.
  514. PACKAGE_NAME=
  515. PACKAGE_TARNAME=
  516. PACKAGE_VERSION=
  517. PACKAGE_STRING=
  518. PACKAGE_BUGREPORT=
  519. PACKAGE_URL=
  520. ac_unique_file="wraith"
  521. ac_unique_file="src/eggdrop.h"
  522. # Factoring default headers for most tests.
  523. ac_includes_default="\
  524. #include <stdio.h>
  525. #ifdef HAVE_SYS_TYPES_H
  526. # include <sys/types.h>
  527. #endif
  528. #ifdef HAVE_SYS_STAT_H
  529. # include <sys/stat.h>
  530. #endif
  531. #ifdef STDC_HEADERS
  532. # include <stdlib.h>
  533. # include <stddef.h>
  534. #else
  535. # ifdef HAVE_STDLIB_H
  536. # include <stdlib.h>
  537. # endif
  538. #endif
  539. #ifdef HAVE_STRING_H
  540. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  541. # include <memory.h>
  542. # endif
  543. # include <string.h>
  544. #endif
  545. #ifdef HAVE_STRINGS_H
  546. # include <strings.h>
  547. #endif
  548. #ifdef HAVE_INTTYPES_H
  549. # include <inttypes.h>
  550. #endif
  551. #ifdef HAVE_STDINT_H
  552. # include <stdint.h>
  553. #endif
  554. #ifdef HAVE_UNISTD_H
  555. # include <unistd.h>
  556. #endif"
  557. ac_header_list=
  558. ac_func_list=
  559. ac_subst_vars='LTLIBOBJS
  560. MOD_UPDIR
  561. NUMVER
  562. VERSION
  563. LIBOBJS
  564. TCL_LIBS
  565. TCL_REQS
  566. DEFAULT_MAKE
  567. TCLINCFN
  568. TCL_INCLUDES
  569. TCLLIBFN
  570. TCLLIB
  571. SSL_LIBS
  572. SSL_INCLUDES
  573. MAKEJOBS
  574. CCDEBUG
  575. STATIC
  576. BUILDARCH
  577. BUILDOS
  578. DISTCC
  579. CCACHE
  580. UNAME
  581. DIFF
  582. STRIP
  583. OBJCOPY
  584. BASENAME
  585. AWK
  586. HEAD_1
  587. SED
  588. SET_MAKE
  589. GCC4DEB
  590. GCC3DEB
  591. GCC3
  592. CCDEPMODE
  593. EGREP
  594. GREP
  595. CXXCPP
  596. OBJEXT
  597. EXEEXT
  598. ac_ct_CXX
  599. CPPFLAGS
  600. LDFLAGS
  601. CXXFLAGS
  602. CXX
  603. egg_ac_parameters
  604. target_alias
  605. host_alias
  606. build_alias
  607. LIBS
  608. ECHO_T
  609. ECHO_N
  610. ECHO_C
  611. DEFS
  612. mandir
  613. localedir
  614. libdir
  615. psdir
  616. pdfdir
  617. dvidir
  618. htmldir
  619. infodir
  620. docdir
  621. oldincludedir
  622. includedir
  623. localstatedir
  624. sharedstatedir
  625. sysconfdir
  626. datadir
  627. datarootdir
  628. libexecdir
  629. sbindir
  630. bindir
  631. program_transform_name
  632. prefix
  633. exec_prefix
  634. PACKAGE_URL
  635. PACKAGE_BUGREPORT
  636. PACKAGE_STRING
  637. PACKAGE_VERSION
  638. PACKAGE_TARNAME
  639. PACKAGE_NAME
  640. PATH_SEPARATOR
  641. SHELL'
  642. ac_subst_files=''
  643. ac_user_opts='
  644. enable_option_checking
  645. enable_ipv6
  646. with_openssl
  647. with_tcllib
  648. with_tclinc
  649. enable_script_tcl
  650. '
  651. ac_precious_vars='build_alias
  652. host_alias
  653. target_alias
  654. CXX
  655. CXXFLAGS
  656. LDFLAGS
  657. LIBS
  658. CPPFLAGS
  659. CCC
  660. CXXCPP'
  661. # Initialize some variables set by options.
  662. ac_init_help=
  663. ac_init_version=false
  664. ac_unrecognized_opts=
  665. ac_unrecognized_sep=
  666. # The variables have the same names as the options, with
  667. # dashes changed to underlines.
  668. cache_file=/dev/null
  669. exec_prefix=NONE
  670. no_create=
  671. no_recursion=
  672. prefix=NONE
  673. program_prefix=NONE
  674. program_suffix=NONE
  675. program_transform_name=s,x,x,
  676. silent=
  677. site=
  678. srcdir=
  679. verbose=
  680. x_includes=NONE
  681. x_libraries=NONE
  682. # Installation directory options.
  683. # These are left unexpanded so users can "make install exec_prefix=/foo"
  684. # and all the variables that are supposed to be based on exec_prefix
  685. # by default will actually change.
  686. # Use braces instead of parens because sh, perl, etc. also accept them.
  687. # (The list follows the same order as the GNU Coding Standards.)
  688. bindir='${exec_prefix}/bin'
  689. sbindir='${exec_prefix}/sbin'
  690. libexecdir='${exec_prefix}/libexec'
  691. datarootdir='${prefix}/share'
  692. datadir='${datarootdir}'
  693. sysconfdir='${prefix}/etc'
  694. sharedstatedir='${prefix}/com'
  695. localstatedir='${prefix}/var'
  696. includedir='${prefix}/include'
  697. oldincludedir='/usr/include'
  698. docdir='${datarootdir}/doc/${PACKAGE}'
  699. infodir='${datarootdir}/info'
  700. htmldir='${docdir}'
  701. dvidir='${docdir}'
  702. pdfdir='${docdir}'
  703. psdir='${docdir}'
  704. libdir='${exec_prefix}/lib'
  705. localedir='${datarootdir}/locale'
  706. mandir='${datarootdir}/man'
  707. ac_prev=
  708. ac_dashdash=
  709. for ac_option
  710. do
  711. # If the previous option needs an argument, assign it.
  712. if test -n "$ac_prev"; then
  713. eval $ac_prev=\$ac_option
  714. ac_prev=
  715. continue
  716. fi
  717. case $ac_option in
  718. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  719. *=) ac_optarg= ;;
  720. *) ac_optarg=yes ;;
  721. esac
  722. # Accept the important Cygnus configure options, so we can diagnose typos.
  723. case $ac_dashdash$ac_option in
  724. --)
  725. ac_dashdash=yes ;;
  726. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  727. ac_prev=bindir ;;
  728. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  729. bindir=$ac_optarg ;;
  730. -build | --build | --buil | --bui | --bu)
  731. ac_prev=build_alias ;;
  732. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  733. build_alias=$ac_optarg ;;
  734. -cache-file | --cache-file | --cache-fil | --cache-fi \
  735. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  736. ac_prev=cache_file ;;
  737. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  738. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  739. cache_file=$ac_optarg ;;
  740. --config-cache | -C)
  741. cache_file=config.cache ;;
  742. -datadir | --datadir | --datadi | --datad)
  743. ac_prev=datadir ;;
  744. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  745. datadir=$ac_optarg ;;
  746. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  747. | --dataroo | --dataro | --datar)
  748. ac_prev=datarootdir ;;
  749. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  750. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  751. datarootdir=$ac_optarg ;;
  752. -disable-* | --disable-*)
  753. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  754. # Reject names that are not valid shell variable names.
  755. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  756. as_fn_error $? "invalid feature name: $ac_useropt"
  757. ac_useropt_orig=$ac_useropt
  758. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  759. case $ac_user_opts in
  760. *"
  761. "enable_$ac_useropt"
  762. "*) ;;
  763. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  764. ac_unrecognized_sep=', ';;
  765. esac
  766. eval enable_$ac_useropt=no ;;
  767. -docdir | --docdir | --docdi | --doc | --do)
  768. ac_prev=docdir ;;
  769. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  770. docdir=$ac_optarg ;;
  771. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  772. ac_prev=dvidir ;;
  773. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  774. dvidir=$ac_optarg ;;
  775. -enable-* | --enable-*)
  776. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  777. # Reject names that are not valid shell variable names.
  778. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  779. as_fn_error $? "invalid feature name: $ac_useropt"
  780. ac_useropt_orig=$ac_useropt
  781. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  782. case $ac_user_opts in
  783. *"
  784. "enable_$ac_useropt"
  785. "*) ;;
  786. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  787. ac_unrecognized_sep=', ';;
  788. esac
  789. eval enable_$ac_useropt=\$ac_optarg ;;
  790. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  791. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  792. | --exec | --exe | --ex)
  793. ac_prev=exec_prefix ;;
  794. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  795. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  796. | --exec=* | --exe=* | --ex=*)
  797. exec_prefix=$ac_optarg ;;
  798. -gas | --gas | --ga | --g)
  799. # Obsolete; use --with-gas.
  800. with_gas=yes ;;
  801. -help | --help | --hel | --he | -h)
  802. ac_init_help=long ;;
  803. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  804. ac_init_help=recursive ;;
  805. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  806. ac_init_help=short ;;
  807. -host | --host | --hos | --ho)
  808. ac_prev=host_alias ;;
  809. -host=* | --host=* | --hos=* | --ho=*)
  810. host_alias=$ac_optarg ;;
  811. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  812. ac_prev=htmldir ;;
  813. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  814. | --ht=*)
  815. htmldir=$ac_optarg ;;
  816. -includedir | --includedir | --includedi | --included | --include \
  817. | --includ | --inclu | --incl | --inc)
  818. ac_prev=includedir ;;
  819. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  820. | --includ=* | --inclu=* | --incl=* | --inc=*)
  821. includedir=$ac_optarg ;;
  822. -infodir | --infodir | --infodi | --infod | --info | --inf)
  823. ac_prev=infodir ;;
  824. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  825. infodir=$ac_optarg ;;
  826. -libdir | --libdir | --libdi | --libd)
  827. ac_prev=libdir ;;
  828. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  829. libdir=$ac_optarg ;;
  830. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  831. | --libexe | --libex | --libe)
  832. ac_prev=libexecdir ;;
  833. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  834. | --libexe=* | --libex=* | --libe=*)
  835. libexecdir=$ac_optarg ;;
  836. -localedir | --localedir | --localedi | --localed | --locale)
  837. ac_prev=localedir ;;
  838. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  839. localedir=$ac_optarg ;;
  840. -localstatedir | --localstatedir | --localstatedi | --localstated \
  841. | --localstate | --localstat | --localsta | --localst | --locals)
  842. ac_prev=localstatedir ;;
  843. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  844. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  845. localstatedir=$ac_optarg ;;
  846. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  847. ac_prev=mandir ;;
  848. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  849. mandir=$ac_optarg ;;
  850. -nfp | --nfp | --nf)
  851. # Obsolete; use --without-fp.
  852. with_fp=no ;;
  853. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  854. | --no-cr | --no-c | -n)
  855. no_create=yes ;;
  856. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  857. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  858. no_recursion=yes ;;
  859. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  860. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  861. | --oldin | --oldi | --old | --ol | --o)
  862. ac_prev=oldincludedir ;;
  863. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  864. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  865. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  866. oldincludedir=$ac_optarg ;;
  867. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  868. ac_prev=prefix ;;
  869. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  870. prefix=$ac_optarg ;;
  871. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  872. | --program-pre | --program-pr | --program-p)
  873. ac_prev=program_prefix ;;
  874. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  875. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  876. program_prefix=$ac_optarg ;;
  877. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  878. | --program-suf | --program-su | --program-s)
  879. ac_prev=program_suffix ;;
  880. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  881. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  882. program_suffix=$ac_optarg ;;
  883. -program-transform-name | --program-transform-name \
  884. | --program-transform-nam | --program-transform-na \
  885. | --program-transform-n | --program-transform- \
  886. | --program-transform | --program-transfor \
  887. | --program-transfo | --program-transf \
  888. | --program-trans | --program-tran \
  889. | --progr-tra | --program-tr | --program-t)
  890. ac_prev=program_transform_name ;;
  891. -program-transform-name=* | --program-transform-name=* \
  892. | --program-transform-nam=* | --program-transform-na=* \
  893. | --program-transform-n=* | --program-transform-=* \
  894. | --program-transform=* | --program-transfor=* \
  895. | --program-transfo=* | --program-transf=* \
  896. | --program-trans=* | --program-tran=* \
  897. | --progr-tra=* | --program-tr=* | --program-t=*)
  898. program_transform_name=$ac_optarg ;;
  899. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  900. ac_prev=pdfdir ;;
  901. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  902. pdfdir=$ac_optarg ;;
  903. -psdir | --psdir | --psdi | --psd | --ps)
  904. ac_prev=psdir ;;
  905. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  906. psdir=$ac_optarg ;;
  907. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  908. | -silent | --silent | --silen | --sile | --sil)
  909. silent=yes ;;
  910. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  911. ac_prev=sbindir ;;
  912. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  913. | --sbi=* | --sb=*)
  914. sbindir=$ac_optarg ;;
  915. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  916. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  917. | --sharedst | --shareds | --shared | --share | --shar \
  918. | --sha | --sh)
  919. ac_prev=sharedstatedir ;;
  920. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  921. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  922. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  923. | --sha=* | --sh=*)
  924. sharedstatedir=$ac_optarg ;;
  925. -site | --site | --sit)
  926. ac_prev=site ;;
  927. -site=* | --site=* | --sit=*)
  928. site=$ac_optarg ;;
  929. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  930. ac_prev=srcdir ;;
  931. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  932. srcdir=$ac_optarg ;;
  933. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  934. | --syscon | --sysco | --sysc | --sys | --sy)
  935. ac_prev=sysconfdir ;;
  936. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  937. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  938. sysconfdir=$ac_optarg ;;
  939. -target | --target | --targe | --targ | --tar | --ta | --t)
  940. ac_prev=target_alias ;;
  941. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  942. target_alias=$ac_optarg ;;
  943. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  944. verbose=yes ;;
  945. -version | --version | --versio | --versi | --vers | -V)
  946. ac_init_version=: ;;
  947. -with-* | --with-*)
  948. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  949. # Reject names that are not valid shell variable names.
  950. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  951. as_fn_error $? "invalid package name: $ac_useropt"
  952. ac_useropt_orig=$ac_useropt
  953. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  954. case $ac_user_opts in
  955. *"
  956. "with_$ac_useropt"
  957. "*) ;;
  958. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  959. ac_unrecognized_sep=', ';;
  960. esac
  961. eval with_$ac_useropt=\$ac_optarg ;;
  962. -without-* | --without-*)
  963. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  964. # Reject names that are not valid shell variable names.
  965. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  966. as_fn_error $? "invalid package name: $ac_useropt"
  967. ac_useropt_orig=$ac_useropt
  968. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  969. case $ac_user_opts in
  970. *"
  971. "with_$ac_useropt"
  972. "*) ;;
  973. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  974. ac_unrecognized_sep=', ';;
  975. esac
  976. eval with_$ac_useropt=no ;;
  977. --x)
  978. # Obsolete; use --with-x.
  979. with_x=yes ;;
  980. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  981. | --x-incl | --x-inc | --x-in | --x-i)
  982. ac_prev=x_includes ;;
  983. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  984. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  985. x_includes=$ac_optarg ;;
  986. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  987. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  988. ac_prev=x_libraries ;;
  989. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  990. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  991. x_libraries=$ac_optarg ;;
  992. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  993. Try \`$0 --help' for more information"
  994. ;;
  995. *=*)
  996. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  997. # Reject names that are not valid shell variable names.
  998. case $ac_envvar in #(
  999. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1000. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1001. esac
  1002. eval $ac_envvar=\$ac_optarg
  1003. export $ac_envvar ;;
  1004. *)
  1005. # FIXME: should be removed in autoconf 3.0.
  1006. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1007. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1008. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1009. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1010. ;;
  1011. esac
  1012. done
  1013. if test -n "$ac_prev"; then
  1014. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1015. as_fn_error $? "missing argument to $ac_option"
  1016. fi
  1017. if test -n "$ac_unrecognized_opts"; then
  1018. case $enable_option_checking in
  1019. no) ;;
  1020. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1021. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1022. esac
  1023. fi
  1024. # Check all directory arguments for consistency.
  1025. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1026. datadir sysconfdir sharedstatedir localstatedir includedir \
  1027. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1028. libdir localedir mandir
  1029. do
  1030. eval ac_val=\$$ac_var
  1031. # Remove trailing slashes.
  1032. case $ac_val in
  1033. */ )
  1034. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1035. eval $ac_var=\$ac_val;;
  1036. esac
  1037. # Be sure to have absolute directory names.
  1038. case $ac_val in
  1039. [\\/$]* | ?:[\\/]* ) continue;;
  1040. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1041. esac
  1042. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1043. done
  1044. # There might be people who depend on the old broken behavior: `$host'
  1045. # used to hold the argument of --host etc.
  1046. # FIXME: To remove some day.
  1047. build=$build_alias
  1048. host=$host_alias
  1049. target=$target_alias
  1050. # FIXME: To remove some day.
  1051. if test "x$host_alias" != x; then
  1052. if test "x$build_alias" = x; then
  1053. cross_compiling=maybe
  1054. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1055. If a cross compiler is detected then cross compile mode will be used" >&2
  1056. elif test "x$build_alias" != "x$host_alias"; then
  1057. cross_compiling=yes
  1058. fi
  1059. fi
  1060. ac_tool_prefix=
  1061. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1062. test "$silent" = yes && exec 6>/dev/null
  1063. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1064. ac_ls_di=`ls -di .` &&
  1065. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1066. as_fn_error $? "working directory cannot be determined"
  1067. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1068. as_fn_error $? "pwd does not report name of working directory"
  1069. # Find the source files, if location was not specified.
  1070. if test -z "$srcdir"; then
  1071. ac_srcdir_defaulted=yes
  1072. # Try the directory containing this script, then the parent directory.
  1073. ac_confdir=`$as_dirname -- "$as_myself" ||
  1074. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1075. X"$as_myself" : 'X\(//\)[^/]' \| \
  1076. X"$as_myself" : 'X\(//\)$' \| \
  1077. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1078. $as_echo X"$as_myself" |
  1079. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1080. s//\1/
  1081. q
  1082. }
  1083. /^X\(\/\/\)[^/].*/{
  1084. s//\1/
  1085. q
  1086. }
  1087. /^X\(\/\/\)$/{
  1088. s//\1/
  1089. q
  1090. }
  1091. /^X\(\/\).*/{
  1092. s//\1/
  1093. q
  1094. }
  1095. s/.*/./; q'`
  1096. srcdir=$ac_confdir
  1097. if test ! -r "$srcdir/$ac_unique_file"; then
  1098. srcdir=..
  1099. fi
  1100. else
  1101. ac_srcdir_defaulted=no
  1102. fi
  1103. if test ! -r "$srcdir/$ac_unique_file"; then
  1104. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1105. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1106. fi
  1107. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1108. ac_abs_confdir=`(
  1109. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1110. pwd)`
  1111. # When building in place, set srcdir=.
  1112. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1113. srcdir=.
  1114. fi
  1115. # Remove unnecessary trailing slashes from srcdir.
  1116. # Double slashes in file names in object file debugging info
  1117. # mess up M-x gdb in Emacs.
  1118. case $srcdir in
  1119. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1120. esac
  1121. for ac_var in $ac_precious_vars; do
  1122. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1123. eval ac_env_${ac_var}_value=\$${ac_var}
  1124. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1125. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1126. done
  1127. #
  1128. # Report the --help message.
  1129. #
  1130. if test "$ac_init_help" = "long"; then
  1131. # Omit some internal or obsolete options to make the list less imposing.
  1132. # This message is too long to be a string in the A/UX 3.1 sh.
  1133. cat <<_ACEOF
  1134. \`configure' configures this package to adapt to many kinds of systems.
  1135. Usage: $0 [OPTION]... [VAR=VALUE]...
  1136. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1137. VAR=VALUE. See below for descriptions of some of the useful variables.
  1138. Defaults for the options are specified in brackets.
  1139. Configuration:
  1140. -h, --help display this help and exit
  1141. --help=short display options specific to this package
  1142. --help=recursive display the short help of all the included packages
  1143. -V, --version display version information and exit
  1144. -q, --quiet, --silent do not print \`checking ...' messages
  1145. --cache-file=FILE cache test results in FILE [disabled]
  1146. -C, --config-cache alias for \`--cache-file=config.cache'
  1147. -n, --no-create do not create output files
  1148. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1149. Installation directories:
  1150. --prefix=PREFIX install architecture-independent files in PREFIX
  1151. [$ac_default_prefix]
  1152. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1153. [PREFIX]
  1154. By default, \`make install' will install all the files in
  1155. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1156. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1157. for instance \`--prefix=\$HOME'.
  1158. For better control, use the options below.
  1159. Fine tuning of the installation directories:
  1160. --bindir=DIR user executables [EPREFIX/bin]
  1161. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1162. --libexecdir=DIR program executables [EPREFIX/libexec]
  1163. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1164. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1165. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1166. --libdir=DIR object code libraries [EPREFIX/lib]
  1167. --includedir=DIR C header files [PREFIX/include]
  1168. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1169. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1170. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1171. --infodir=DIR info documentation [DATAROOTDIR/info]
  1172. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1173. --mandir=DIR man documentation [DATAROOTDIR/man]
  1174. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1175. --htmldir=DIR html documentation [DOCDIR]
  1176. --dvidir=DIR dvi documentation [DOCDIR]
  1177. --pdfdir=DIR pdf documentation [DOCDIR]
  1178. --psdir=DIR ps documentation [DOCDIR]
  1179. _ACEOF
  1180. cat <<\_ACEOF
  1181. _ACEOF
  1182. fi
  1183. if test -n "$ac_init_help"; then
  1184. cat <<\_ACEOF
  1185. Optional Features:
  1186. --disable-option-checking ignore unrecognized --enable/--with options
  1187. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1188. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1189. --disable-ipv6 disable IPv6 support
  1190. --disable-script-tcl disable TCL Script support
  1191. Optional Packages:
  1192. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1193. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1194. --with-openssl=PATH Path to OpenSSL
  1195. --with-tcllib=PATH full path to Tcl library
  1196. --with-tclinc=PATH full path to Tcl header
  1197. Some influential environment variables:
  1198. CXX C++ compiler command
  1199. CXXFLAGS C++ compiler flags
  1200. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1201. nonstandard directory <lib dir>
  1202. LIBS libraries to pass to the linker, e.g. -l<library>
  1203. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1204. you have headers in a nonstandard directory <include dir>
  1205. CXXCPP C++ preprocessor
  1206. Use these variables to override the choices made by `configure' or to help
  1207. it to find libraries and programs with nonstandard names/locations.
  1208. Report bugs to the package provider.
  1209. _ACEOF
  1210. ac_status=$?
  1211. fi
  1212. if test "$ac_init_help" = "recursive"; then
  1213. # If there are subdirs, report their specific --help.
  1214. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1215. test -d "$ac_dir" ||
  1216. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1217. continue
  1218. ac_builddir=.
  1219. case "$ac_dir" in
  1220. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1221. *)
  1222. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1223. # A ".." for each directory in $ac_dir_suffix.
  1224. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1225. case $ac_top_builddir_sub in
  1226. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1227. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1228. esac ;;
  1229. esac
  1230. ac_abs_top_builddir=$ac_pwd
  1231. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1232. # for backward compatibility:
  1233. ac_top_builddir=$ac_top_build_prefix
  1234. case $srcdir in
  1235. .) # We are building in place.
  1236. ac_srcdir=.
  1237. ac_top_srcdir=$ac_top_builddir_sub
  1238. ac_abs_top_srcdir=$ac_pwd ;;
  1239. [\\/]* | ?:[\\/]* ) # Absolute name.
  1240. ac_srcdir=$srcdir$ac_dir_suffix;
  1241. ac_top_srcdir=$srcdir
  1242. ac_abs_top_srcdir=$srcdir ;;
  1243. *) # Relative name.
  1244. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1245. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1246. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1247. esac
  1248. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1249. cd "$ac_dir" || { ac_status=$?; continue; }
  1250. # Check for guested configure.
  1251. if test -f "$ac_srcdir/configure.gnu"; then
  1252. echo &&
  1253. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1254. elif test -f "$ac_srcdir/configure"; then
  1255. echo &&
  1256. $SHELL "$ac_srcdir/configure" --help=recursive
  1257. else
  1258. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1259. fi || ac_status=$?
  1260. cd "$ac_pwd" || { ac_status=$?; break; }
  1261. done
  1262. fi
  1263. test -n "$ac_init_help" && exit $ac_status
  1264. if $ac_init_version; then
  1265. cat <<\_ACEOF
  1266. configure
  1267. generated by GNU Autoconf 2.68
  1268. Copyright (C) 2010 Free Software Foundation, Inc.
  1269. This configure script is free software; the Free Software Foundation
  1270. gives unlimited permission to copy, distribute and modify it.
  1271. Copyright (c) Bryan Drewery
  1272. _ACEOF
  1273. exit
  1274. fi
  1275. ## ------------------------ ##
  1276. ## Autoconf initialization. ##
  1277. ## ------------------------ ##
  1278. # ac_fn_cxx_try_compile LINENO
  1279. # ----------------------------
  1280. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1281. ac_fn_cxx_try_compile ()
  1282. {
  1283. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1284. rm -f conftest.$ac_objext
  1285. if { { ac_try="$ac_compile"
  1286. case "(($ac_try" in
  1287. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1288. *) ac_try_echo=$ac_try;;
  1289. esac
  1290. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1291. $as_echo "$ac_try_echo"; } >&5
  1292. (eval "$ac_compile") 2>conftest.err
  1293. ac_status=$?
  1294. if test -s conftest.err; then
  1295. grep -v '^ *+' conftest.err >conftest.er1
  1296. cat conftest.er1 >&5
  1297. mv -f conftest.er1 conftest.err
  1298. fi
  1299. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1300. test $ac_status = 0; } && {
  1301. test -z "$ac_cxx_werror_flag" ||
  1302. test ! -s conftest.err
  1303. } && test -s conftest.$ac_objext; then :
  1304. ac_retval=0
  1305. else
  1306. $as_echo "$as_me: failed program was:" >&5
  1307. sed 's/^/| /' conftest.$ac_ext >&5
  1308. ac_retval=1
  1309. fi
  1310. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1311. as_fn_set_status $ac_retval
  1312. } # ac_fn_cxx_try_compile
  1313. # ac_fn_cxx_try_cpp LINENO
  1314. # ------------------------
  1315. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1316. ac_fn_cxx_try_cpp ()
  1317. {
  1318. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1319. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1320. case "(($ac_try" in
  1321. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1322. *) ac_try_echo=$ac_try;;
  1323. esac
  1324. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1325. $as_echo "$ac_try_echo"; } >&5
  1326. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1327. ac_status=$?
  1328. if test -s conftest.err; then
  1329. grep -v '^ *+' conftest.err >conftest.er1
  1330. cat conftest.er1 >&5
  1331. mv -f conftest.er1 conftest.err
  1332. fi
  1333. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1334. test $ac_status = 0; } > conftest.i && {
  1335. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1336. test ! -s conftest.err
  1337. }; then :
  1338. ac_retval=0
  1339. else
  1340. $as_echo "$as_me: failed program was:" >&5
  1341. sed 's/^/| /' conftest.$ac_ext >&5
  1342. ac_retval=1
  1343. fi
  1344. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1345. as_fn_set_status $ac_retval
  1346. } # ac_fn_cxx_try_cpp
  1347. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1348. # ---------------------------------------------------------
  1349. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1350. # the include files in INCLUDES and setting the cache variable VAR
  1351. # accordingly.
  1352. ac_fn_cxx_check_header_mongrel ()
  1353. {
  1354. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1355. if eval \${$3+:} false; then :
  1356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1357. $as_echo_n "checking for $2... " >&6; }
  1358. if eval \${$3+:} false; then :
  1359. $as_echo_n "(cached) " >&6
  1360. fi
  1361. eval ac_res=\$$3
  1362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1363. $as_echo "$ac_res" >&6; }
  1364. else
  1365. # Is the header compilable?
  1366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1367. $as_echo_n "checking $2 usability... " >&6; }
  1368. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1369. /* end build/confdefs.h. */
  1370. $4
  1371. #include <$2>
  1372. _ACEOF
  1373. if ac_fn_cxx_try_compile "$LINENO"; then :
  1374. ac_header_compiler=yes
  1375. else
  1376. ac_header_compiler=no
  1377. fi
  1378. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1380. $as_echo "$ac_header_compiler" >&6; }
  1381. # Is the header present?
  1382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1383. $as_echo_n "checking $2 presence... " >&6; }
  1384. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1385. /* end build/confdefs.h. */
  1386. #include <$2>
  1387. _ACEOF
  1388. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1389. ac_header_preproc=yes
  1390. else
  1391. ac_header_preproc=no
  1392. fi
  1393. rm -f conftest.err conftest.i conftest.$ac_ext
  1394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1395. $as_echo "$ac_header_preproc" >&6; }
  1396. # So? What about this header?
  1397. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1398. yes:no: )
  1399. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1400. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1401. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1402. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1403. ;;
  1404. no:yes:* )
  1405. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1406. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1407. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1408. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1409. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1410. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1411. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1412. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1413. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1414. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1415. ;;
  1416. esac
  1417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1418. $as_echo_n "checking for $2... " >&6; }
  1419. if eval \${$3+:} false; then :
  1420. $as_echo_n "(cached) " >&6
  1421. else
  1422. eval "$3=\$ac_header_compiler"
  1423. fi
  1424. eval ac_res=\$$3
  1425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1426. $as_echo "$ac_res" >&6; }
  1427. fi
  1428. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1429. } # ac_fn_cxx_check_header_mongrel
  1430. # ac_fn_cxx_try_run LINENO
  1431. # ------------------------
  1432. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1433. # that executables *can* be run.
  1434. ac_fn_cxx_try_run ()
  1435. {
  1436. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1437. if { { ac_try="$ac_link"
  1438. case "(($ac_try" in
  1439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1440. *) ac_try_echo=$ac_try;;
  1441. esac
  1442. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1443. $as_echo "$ac_try_echo"; } >&5
  1444. (eval "$ac_link") 2>&5
  1445. ac_status=$?
  1446. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1447. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1448. { { case "(($ac_try" in
  1449. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1450. *) ac_try_echo=$ac_try;;
  1451. esac
  1452. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1453. $as_echo "$ac_try_echo"; } >&5
  1454. (eval "$ac_try") 2>&5
  1455. ac_status=$?
  1456. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1457. test $ac_status = 0; }; }; then :
  1458. ac_retval=0
  1459. else
  1460. $as_echo "$as_me: program exited with status $ac_status" >&5
  1461. $as_echo "$as_me: failed program was:" >&5
  1462. sed 's/^/| /' conftest.$ac_ext >&5
  1463. ac_retval=$ac_status
  1464. fi
  1465. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1466. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1467. as_fn_set_status $ac_retval
  1468. } # ac_fn_cxx_try_run
  1469. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1470. # ---------------------------------------------------------
  1471. # Tests whether HEADER exists and can be compiled using the include files in
  1472. # INCLUDES, setting the cache variable VAR accordingly.
  1473. ac_fn_cxx_check_header_compile ()
  1474. {
  1475. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1477. $as_echo_n "checking for $2... " >&6; }
  1478. if eval \${$3+:} false; then :
  1479. $as_echo_n "(cached) " >&6
  1480. else
  1481. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1482. /* end build/confdefs.h. */
  1483. $4
  1484. #include <$2>
  1485. _ACEOF
  1486. if ac_fn_cxx_try_compile "$LINENO"; then :
  1487. eval "$3=yes"
  1488. else
  1489. eval "$3=no"
  1490. fi
  1491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1492. fi
  1493. eval ac_res=\$$3
  1494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1495. $as_echo "$ac_res" >&6; }
  1496. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1497. } # ac_fn_cxx_check_header_compile
  1498. # ac_fn_cxx_try_link LINENO
  1499. # -------------------------
  1500. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1501. ac_fn_cxx_try_link ()
  1502. {
  1503. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1504. rm -f conftest.$ac_objext conftest$ac_exeext
  1505. if { { ac_try="$ac_link"
  1506. case "(($ac_try" in
  1507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1508. *) ac_try_echo=$ac_try;;
  1509. esac
  1510. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1511. $as_echo "$ac_try_echo"; } >&5
  1512. (eval "$ac_link") 2>conftest.err
  1513. ac_status=$?
  1514. if test -s conftest.err; then
  1515. grep -v '^ *+' conftest.err >conftest.er1
  1516. cat conftest.er1 >&5
  1517. mv -f conftest.er1 conftest.err
  1518. fi
  1519. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1520. test $ac_status = 0; } && {
  1521. test -z "$ac_cxx_werror_flag" ||
  1522. test ! -s conftest.err
  1523. } && test -s conftest$ac_exeext && {
  1524. test "$cross_compiling" = yes ||
  1525. $as_test_x conftest$ac_exeext
  1526. }; then :
  1527. ac_retval=0
  1528. else
  1529. $as_echo "$as_me: failed program was:" >&5
  1530. sed 's/^/| /' conftest.$ac_ext >&5
  1531. ac_retval=1
  1532. fi
  1533. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1534. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1535. # interfere with the next link command; also delete a directory that is
  1536. # left behind by Apple's compiler. We do this before executing the actions.
  1537. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1538. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1539. as_fn_set_status $ac_retval
  1540. } # ac_fn_cxx_try_link
  1541. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1542. # ---------------------------------------------
  1543. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1544. # variable VAR accordingly.
  1545. ac_fn_cxx_check_type ()
  1546. {
  1547. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1549. $as_echo_n "checking for $2... " >&6; }
  1550. if eval \${$3+:} false; then :
  1551. $as_echo_n "(cached) " >&6
  1552. else
  1553. eval "$3=no"
  1554. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1555. /* end build/confdefs.h. */
  1556. $4
  1557. int
  1558. main ()
  1559. {
  1560. if (sizeof ($2))
  1561. return 0;
  1562. ;
  1563. return 0;
  1564. }
  1565. _ACEOF
  1566. if ac_fn_cxx_try_compile "$LINENO"; then :
  1567. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1568. /* end build/confdefs.h. */
  1569. $4
  1570. int
  1571. main ()
  1572. {
  1573. if (sizeof (($2)))
  1574. return 0;
  1575. ;
  1576. return 0;
  1577. }
  1578. _ACEOF
  1579. if ac_fn_cxx_try_compile "$LINENO"; then :
  1580. else
  1581. eval "$3=yes"
  1582. fi
  1583. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1584. fi
  1585. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1586. fi
  1587. eval ac_res=\$$3
  1588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1589. $as_echo "$ac_res" >&6; }
  1590. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1591. } # ac_fn_cxx_check_type
  1592. # ac_fn_c_find_intX_t LINENO BITS VAR
  1593. # -----------------------------------
  1594. # Finds a signed integer type with width BITS, setting cache variable VAR
  1595. # accordingly.
  1596. ac_fn_c_find_intX_t ()
  1597. {
  1598. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1600. $as_echo_n "checking for int$2_t... " >&6; }
  1601. if eval \${$3+:} false; then :
  1602. $as_echo_n "(cached) " >&6
  1603. else
  1604. eval "$3=no"
  1605. # Order is important - never check a type that is potentially smaller
  1606. # than half of the expected target width.
  1607. for ac_type in int$2_t 'int' 'long int' \
  1608. 'long long int' 'short int' 'signed char'; do
  1609. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1610. /* end build/confdefs.h. */
  1611. $ac_includes_default
  1612. enum { N = $2 / 2 - 1 };
  1613. int
  1614. main ()
  1615. {
  1616. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1617. test_array [0] = 0
  1618. ;
  1619. return 0;
  1620. }
  1621. _ACEOF
  1622. if ac_fn_cxx_try_compile "$LINENO"; then :
  1623. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1624. /* end build/confdefs.h. */
  1625. $ac_includes_default
  1626. enum { N = $2 / 2 - 1 };
  1627. int
  1628. main ()
  1629. {
  1630. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1631. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1632. test_array [0] = 0
  1633. ;
  1634. return 0;
  1635. }
  1636. _ACEOF
  1637. if ac_fn_cxx_try_compile "$LINENO"; then :
  1638. else
  1639. case $ac_type in #(
  1640. int$2_t) :
  1641. eval "$3=yes" ;; #(
  1642. *) :
  1643. eval "$3=\$ac_type" ;;
  1644. esac
  1645. fi
  1646. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1647. fi
  1648. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1649. if eval test \"x\$"$3"\" = x"no"; then :
  1650. else
  1651. break
  1652. fi
  1653. done
  1654. fi
  1655. eval ac_res=\$$3
  1656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1657. $as_echo "$ac_res" >&6; }
  1658. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1659. } # ac_fn_c_find_intX_t
  1660. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1661. # ------------------------------------
  1662. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1663. # accordingly.
  1664. ac_fn_c_find_uintX_t ()
  1665. {
  1666. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1668. $as_echo_n "checking for uint$2_t... " >&6; }
  1669. if eval \${$3+:} false; then :
  1670. $as_echo_n "(cached) " >&6
  1671. else
  1672. eval "$3=no"
  1673. # Order is important - never check a type that is potentially smaller
  1674. # than half of the expected target width.
  1675. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1676. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1677. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1678. /* end build/confdefs.h. */
  1679. $ac_includes_default
  1680. int
  1681. main ()
  1682. {
  1683. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1684. test_array [0] = 0
  1685. ;
  1686. return 0;
  1687. }
  1688. _ACEOF
  1689. if ac_fn_cxx_try_compile "$LINENO"; then :
  1690. case $ac_type in #(
  1691. uint$2_t) :
  1692. eval "$3=yes" ;; #(
  1693. *) :
  1694. eval "$3=\$ac_type" ;;
  1695. esac
  1696. fi
  1697. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1698. if eval test \"x\$"$3"\" = x"no"; then :
  1699. else
  1700. break
  1701. fi
  1702. done
  1703. fi
  1704. eval ac_res=\$$3
  1705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1706. $as_echo "$ac_res" >&6; }
  1707. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1708. } # ac_fn_c_find_uintX_t
  1709. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  1710. # ------------------------------------------------------
  1711. # Tries to find if the field MEMBER exists in type AGGR, after including
  1712. # INCLUDES, setting cache variable VAR accordingly.
  1713. ac_fn_cxx_check_member ()
  1714. {
  1715. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1717. $as_echo_n "checking for $2.$3... " >&6; }
  1718. if eval \${$4+:} false; then :
  1719. $as_echo_n "(cached) " >&6
  1720. else
  1721. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1722. /* end build/confdefs.h. */
  1723. $5
  1724. int
  1725. main ()
  1726. {
  1727. static $2 ac_aggr;
  1728. if (ac_aggr.$3)
  1729. return 0;
  1730. ;
  1731. return 0;
  1732. }
  1733. _ACEOF
  1734. if ac_fn_cxx_try_compile "$LINENO"; then :
  1735. eval "$4=yes"
  1736. else
  1737. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1738. /* end build/confdefs.h. */
  1739. $5
  1740. int
  1741. main ()
  1742. {
  1743. static $2 ac_aggr;
  1744. if (sizeof ac_aggr.$3)
  1745. return 0;
  1746. ;
  1747. return 0;
  1748. }
  1749. _ACEOF
  1750. if ac_fn_cxx_try_compile "$LINENO"; then :
  1751. eval "$4=yes"
  1752. else
  1753. eval "$4=no"
  1754. fi
  1755. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1756. fi
  1757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1758. fi
  1759. eval ac_res=\$$4
  1760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1761. $as_echo "$ac_res" >&6; }
  1762. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1763. } # ac_fn_cxx_check_member
  1764. # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
  1765. # -----------------------------------------------
  1766. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1767. # accordingly.
  1768. ac_fn_cxx_check_decl ()
  1769. {
  1770. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1771. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1772. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1774. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1775. if eval \${$3+:} false; then :
  1776. $as_echo_n "(cached) " >&6
  1777. else
  1778. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1779. /* end build/confdefs.h. */
  1780. $4
  1781. int
  1782. main ()
  1783. {
  1784. #ifndef $as_decl_name
  1785. #ifdef __cplusplus
  1786. (void) $as_decl_use;
  1787. #else
  1788. (void) $as_decl_name;
  1789. #endif
  1790. #endif
  1791. ;
  1792. return 0;
  1793. }
  1794. _ACEOF
  1795. if ac_fn_cxx_try_compile "$LINENO"; then :
  1796. eval "$3=yes"
  1797. else
  1798. eval "$3=no"
  1799. fi
  1800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1801. fi
  1802. eval ac_res=\$$3
  1803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1804. $as_echo "$ac_res" >&6; }
  1805. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1806. } # ac_fn_cxx_check_decl
  1807. # ac_fn_cxx_check_func LINENO FUNC VAR
  1808. # ------------------------------------
  1809. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1810. ac_fn_cxx_check_func ()
  1811. {
  1812. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1814. $as_echo_n "checking for $2... " >&6; }
  1815. if eval \${$3+:} false; then :
  1816. $as_echo_n "(cached) " >&6
  1817. else
  1818. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1819. /* end build/confdefs.h. */
  1820. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1821. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1822. #define $2 innocuous_$2
  1823. /* System header to define __stub macros and hopefully few prototypes,
  1824. which can conflict with char $2 (); below.
  1825. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1826. <limits.h> exists even on freestanding compilers. */
  1827. #ifdef __STDC__
  1828. # include <limits.h>
  1829. #else
  1830. # include <assert.h>
  1831. #endif
  1832. #undef $2
  1833. /* Override any GCC internal prototype to avoid an error.
  1834. Use char because int might match the return type of a GCC
  1835. builtin and then its argument prototype would still apply. */
  1836. #ifdef __cplusplus
  1837. extern "C"
  1838. #endif
  1839. char $2 ();
  1840. /* The GNU C library defines this for functions which it implements
  1841. to always fail with ENOSYS. Some functions are actually named
  1842. something starting with __ and the normal name is an alias. */
  1843. #if defined __stub_$2 || defined __stub___$2
  1844. choke me
  1845. #endif
  1846. int
  1847. main ()
  1848. {
  1849. return $2 ();
  1850. ;
  1851. return 0;
  1852. }
  1853. _ACEOF
  1854. if ac_fn_cxx_try_link "$LINENO"; then :
  1855. eval "$3=yes"
  1856. else
  1857. eval "$3=no"
  1858. fi
  1859. rm -f core conftest.err conftest.$ac_objext \
  1860. conftest$ac_exeext conftest.$ac_ext
  1861. fi
  1862. eval ac_res=\$$3
  1863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1864. $as_echo "$ac_res" >&6; }
  1865. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1866. } # ac_fn_cxx_check_func
  1867. cat >build/config.log <<_ACEOF
  1868. This file contains any messages produced by compilers while
  1869. running configure, to aid debugging if configure makes a mistake.
  1870. It was created by $as_me, which was
  1871. generated by GNU Autoconf 2.68. Invocation command line was
  1872. $ $0 $@
  1873. _ACEOF
  1874. exec 5>>build/config.log
  1875. {
  1876. cat <<_ASUNAME
  1877. ## --------- ##
  1878. ## Platform. ##
  1879. ## --------- ##
  1880. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1881. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1882. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1883. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1884. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1885. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1886. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1887. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1888. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1889. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1890. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1891. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1892. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1893. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1894. _ASUNAME
  1895. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1896. for as_dir in $PATH
  1897. do
  1898. IFS=$as_save_IFS
  1899. test -z "$as_dir" && as_dir=.
  1900. $as_echo "PATH: $as_dir"
  1901. done
  1902. IFS=$as_save_IFS
  1903. } >&5
  1904. cat >&5 <<_ACEOF
  1905. ## ----------- ##
  1906. ## Core tests. ##
  1907. ## ----------- ##
  1908. _ACEOF
  1909. # Keep a trace of the command line.
  1910. # Strip out --no-create and --no-recursion so they do not pile up.
  1911. # Strip out --silent because we don't want to record it for future runs.
  1912. # Also quote any args containing shell meta-characters.
  1913. # Make two passes to allow for proper duplicate-argument suppression.
  1914. ac_configure_args=
  1915. ac_configure_args0=
  1916. ac_configure_args1=
  1917. ac_must_keep_next=false
  1918. for ac_pass in 1 2
  1919. do
  1920. for ac_arg
  1921. do
  1922. case $ac_arg in
  1923. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1924. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1925. | -silent | --silent | --silen | --sile | --sil)
  1926. continue ;;
  1927. *\'*)
  1928. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1929. esac
  1930. case $ac_pass in
  1931. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1932. 2)
  1933. as_fn_append ac_configure_args1 " '$ac_arg'"
  1934. if test $ac_must_keep_next = true; then
  1935. ac_must_keep_next=false # Got value, back to normal.
  1936. else
  1937. case $ac_arg in
  1938. *=* | --config-cache | -C | -disable-* | --disable-* \
  1939. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1940. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1941. | -with-* | --with-* | -without-* | --without-* | --x)
  1942. case "$ac_configure_args0 " in
  1943. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1944. esac
  1945. ;;
  1946. -* ) ac_must_keep_next=true ;;
  1947. esac
  1948. fi
  1949. as_fn_append ac_configure_args " '$ac_arg'"
  1950. ;;
  1951. esac
  1952. done
  1953. done
  1954. { ac_configure_args0=; unset ac_configure_args0;}
  1955. { ac_configure_args1=; unset ac_configure_args1;}
  1956. # When interrupted or exit'd, cleanup temporary files, and complete
  1957. # build/config.log. We remove comments because anyway the quotes in there
  1958. # would cause problems or look ugly.
  1959. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1960. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1961. trap 'exit_status=$?
  1962. # Save into build/config.log some information that might help in debugging.
  1963. {
  1964. echo
  1965. $as_echo "## ---------------- ##
  1966. ## Cache variables. ##
  1967. ## ---------------- ##"
  1968. echo
  1969. # The following way of writing the cache mishandles newlines in values,
  1970. (
  1971. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1972. eval ac_val=\$$ac_var
  1973. case $ac_val in #(
  1974. *${as_nl}*)
  1975. case $ac_var in #(
  1976. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1977. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1978. esac
  1979. case $ac_var in #(
  1980. _ | IFS | as_nl) ;; #(
  1981. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1982. *) { eval $ac_var=; unset $ac_var;} ;;
  1983. esac ;;
  1984. esac
  1985. done
  1986. (set) 2>&1 |
  1987. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1988. *${as_nl}ac_space=\ *)
  1989. sed -n \
  1990. "s/'\''/'\''\\\\'\'''\''/g;
  1991. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1992. ;; #(
  1993. *)
  1994. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1995. ;;
  1996. esac |
  1997. sort
  1998. )
  1999. echo
  2000. $as_echo "## ----------------- ##
  2001. ## Output variables. ##
  2002. ## ----------------- ##"
  2003. echo
  2004. for ac_var in $ac_subst_vars
  2005. do
  2006. eval ac_val=\$$ac_var
  2007. case $ac_val in
  2008. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2009. esac
  2010. $as_echo "$ac_var='\''$ac_val'\''"
  2011. done | sort
  2012. echo
  2013. if test -n "$ac_subst_files"; then
  2014. $as_echo "## ------------------- ##
  2015. ## File substitutions. ##
  2016. ## ------------------- ##"
  2017. echo
  2018. for ac_var in $ac_subst_files
  2019. do
  2020. eval ac_val=\$$ac_var
  2021. case $ac_val in
  2022. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2023. esac
  2024. $as_echo "$ac_var='\''$ac_val'\''"
  2025. done | sort
  2026. echo
  2027. fi
  2028. if test -s build/confdefs.h; then
  2029. $as_echo "## ----------- ##
  2030. ## build/confdefs.h. ##
  2031. ## ----------- ##"
  2032. echo
  2033. cat build/confdefs.h
  2034. echo
  2035. fi
  2036. test "$ac_signal" != 0 &&
  2037. $as_echo "$as_me: caught signal $ac_signal"
  2038. $as_echo "$as_me: exit $exit_status"
  2039. } >&5
  2040. rm -f core *.core core.conftest.* &&
  2041. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2042. exit $exit_status
  2043. ' 0
  2044. for ac_signal in 1 2 13 15; do
  2045. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2046. done
  2047. ac_signal=0
  2048. # build/confdefs.h avoids OS command line length limits that DEFS can exceed.
  2049. rm -f -r conftest* build/confdefs.h
  2050. $as_echo "/* build/confdefs.h */" > build/confdefs.h
  2051. # Predefined preprocessor variables.
  2052. cat >>build/confdefs.h <<_ACEOF
  2053. #define PACKAGE_NAME "$PACKAGE_NAME"
  2054. _ACEOF
  2055. cat >>build/confdefs.h <<_ACEOF
  2056. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2057. _ACEOF
  2058. cat >>build/confdefs.h <<_ACEOF
  2059. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2060. _ACEOF
  2061. cat >>build/confdefs.h <<_ACEOF
  2062. #define PACKAGE_STRING "$PACKAGE_STRING"
  2063. _ACEOF
  2064. cat >>build/confdefs.h <<_ACEOF
  2065. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2066. _ACEOF
  2067. cat >>build/confdefs.h <<_ACEOF
  2068. #define PACKAGE_URL "$PACKAGE_URL"
  2069. _ACEOF
  2070. # Let the site file select an alternate cache file if it wants to.
  2071. # Prefer an explicitly selected file to automatically selected ones.
  2072. ac_site_file1=NONE
  2073. ac_site_file2=NONE
  2074. if test -n "$CONFIG_SITE"; then
  2075. # We do not want a PATH search for config.site.
  2076. case $CONFIG_SITE in #((
  2077. -*) ac_site_file1=./$CONFIG_SITE;;
  2078. */*) ac_site_file1=$CONFIG_SITE;;
  2079. *) ac_site_file1=./$CONFIG_SITE;;
  2080. esac
  2081. elif test "x$prefix" != xNONE; then
  2082. ac_site_file1=$prefix/share/config.site
  2083. ac_site_file2=$prefix/etc/config.site
  2084. else
  2085. ac_site_file1=$ac_default_prefix/share/config.site
  2086. ac_site_file2=$ac_default_prefix/etc/config.site
  2087. fi
  2088. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2089. do
  2090. test "x$ac_site_file" = xNONE && continue
  2091. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2092. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2093. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2094. sed 's/^/| /' "$ac_site_file" >&5
  2095. . "$ac_site_file" \
  2096. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2097. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2098. as_fn_error $? "failed to load site script $ac_site_file
  2099. See \`build/config.log' for more details" "$LINENO" 5; }
  2100. fi
  2101. done
  2102. if test -r "$cache_file"; then
  2103. # Some versions of bash will fail to source /dev/null (special files
  2104. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2105. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2106. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2107. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2108. case $cache_file in
  2109. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2110. *) . "./$cache_file";;
  2111. esac
  2112. fi
  2113. else
  2114. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2115. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2116. >$cache_file
  2117. fi
  2118. as_fn_append ac_header_list " sys/time.h"
  2119. as_fn_append ac_header_list " unistd.h"
  2120. as_fn_append ac_func_list " alarm"
  2121. as_fn_append ac_header_list " stdlib.h"
  2122. as_fn_append ac_header_list " sys/param.h"
  2123. # Check that the precious variables saved in the cache have kept the same
  2124. # value.
  2125. ac_cache_corrupted=false
  2126. for ac_var in $ac_precious_vars; do
  2127. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2128. eval ac_new_set=\$ac_env_${ac_var}_set
  2129. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2130. eval ac_new_val=\$ac_env_${ac_var}_value
  2131. case $ac_old_set,$ac_new_set in
  2132. set,)
  2133. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2134. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2135. ac_cache_corrupted=: ;;
  2136. ,set)
  2137. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2138. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2139. ac_cache_corrupted=: ;;
  2140. ,);;
  2141. *)
  2142. if test "x$ac_old_val" != "x$ac_new_val"; then
  2143. # differences in whitespace do not lead to failure.
  2144. ac_old_val_w=`echo x $ac_old_val`
  2145. ac_new_val_w=`echo x $ac_new_val`
  2146. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2147. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2148. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2149. ac_cache_corrupted=:
  2150. else
  2151. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2152. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2153. eval $ac_var=\$ac_old_val
  2154. fi
  2155. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2156. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2157. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2158. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2159. fi;;
  2160. esac
  2161. # Pass precious variables to build/config.status.
  2162. if test "$ac_new_set" = set; then
  2163. case $ac_new_val in
  2164. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2165. *) ac_arg=$ac_var=$ac_new_val ;;
  2166. esac
  2167. case " $ac_configure_args " in
  2168. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2169. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2170. esac
  2171. fi
  2172. done
  2173. if $ac_cache_corrupted; then
  2174. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2175. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2176. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2177. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2178. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2179. fi
  2180. ## -------------------- ##
  2181. ## Main body of script. ##
  2182. ## -------------------- ##
  2183. ac_ext=c
  2184. ac_cpp='$CPP $CPPFLAGS'
  2185. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2186. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2187. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2188. ac_config_headers="$ac_config_headers src/config.h"
  2189. # Remove --cache-file and --srcdir arguments so they do not pile up.
  2190. egg_ac_parameters=
  2191. ac_prev=
  2192. for ac_arg in $ac_configure_args; do
  2193. if test -n "$ac_prev"; then
  2194. ac_prev=
  2195. continue
  2196. fi
  2197. case $ac_arg in
  2198. -cache-file | --cache-file | --cache-fil | --cache-fi \
  2199. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  2200. ac_prev=cache_file ;;
  2201. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  2202. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  2203. | --c=*)
  2204. ;;
  2205. --config-cache | -C)
  2206. ;;
  2207. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  2208. ac_prev=srcdir ;;
  2209. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  2210. ;;
  2211. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  2212. esac
  2213. done
  2214. # Setup build environment
  2215. #AC_REQUIRE_CPP
  2216. ac_ext=cpp
  2217. ac_cpp='$CXXCPP $CPPFLAGS'
  2218. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2219. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2220. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2221. ac_ext=cpp
  2222. ac_cpp='$CXXCPP $CPPFLAGS'
  2223. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2224. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2225. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2226. if test -z "$CXX"; then
  2227. if test -n "$CCC"; then
  2228. CXX=$CCC
  2229. else
  2230. if test -n "$ac_tool_prefix"; then
  2231. for ac_prog in g++45 g++-4.5 g++-4.4 g++-4.4.1 g++-4.4.2 g++-4.4.0 g++44 g++4 g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2232. do
  2233. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2234. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2236. $as_echo_n "checking for $ac_word... " >&6; }
  2237. if ${ac_cv_prog_CXX+:} false; then :
  2238. $as_echo_n "(cached) " >&6
  2239. else
  2240. if test -n "$CXX"; then
  2241. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2242. else
  2243. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2244. for as_dir in $PATH
  2245. do
  2246. IFS=$as_save_IFS
  2247. test -z "$as_dir" && as_dir=.
  2248. for ac_exec_ext in '' $ac_executable_extensions; do
  2249. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2250. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2251. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2252. break 2
  2253. fi
  2254. done
  2255. done
  2256. IFS=$as_save_IFS
  2257. fi
  2258. fi
  2259. CXX=$ac_cv_prog_CXX
  2260. if test -n "$CXX"; then
  2261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2262. $as_echo "$CXX" >&6; }
  2263. else
  2264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2265. $as_echo "no" >&6; }
  2266. fi
  2267. test -n "$CXX" && break
  2268. done
  2269. fi
  2270. if test -z "$CXX"; then
  2271. ac_ct_CXX=$CXX
  2272. for ac_prog in g++45 g++-4.5 g++-4.4 g++-4.4.1 g++-4.4.2 g++-4.4.0 g++44 g++4 g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2273. do
  2274. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2275. set dummy $ac_prog; ac_word=$2
  2276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2277. $as_echo_n "checking for $ac_word... " >&6; }
  2278. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  2279. $as_echo_n "(cached) " >&6
  2280. else
  2281. if test -n "$ac_ct_CXX"; then
  2282. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2283. else
  2284. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2285. for as_dir in $PATH
  2286. do
  2287. IFS=$as_save_IFS
  2288. test -z "$as_dir" && as_dir=.
  2289. for ac_exec_ext in '' $ac_executable_extensions; do
  2290. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2291. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2292. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2293. break 2
  2294. fi
  2295. done
  2296. done
  2297. IFS=$as_save_IFS
  2298. fi
  2299. fi
  2300. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2301. if test -n "$ac_ct_CXX"; then
  2302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2303. $as_echo "$ac_ct_CXX" >&6; }
  2304. else
  2305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2306. $as_echo "no" >&6; }
  2307. fi
  2308. test -n "$ac_ct_CXX" && break
  2309. done
  2310. if test "x$ac_ct_CXX" = x; then
  2311. CXX="g++"
  2312. else
  2313. case $cross_compiling:$ac_tool_warned in
  2314. yes:)
  2315. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2316. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2317. ac_tool_warned=yes ;;
  2318. esac
  2319. CXX=$ac_ct_CXX
  2320. fi
  2321. fi
  2322. fi
  2323. fi
  2324. # Provide some information about the compiler.
  2325. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2326. set X $ac_compile
  2327. ac_compiler=$2
  2328. for ac_option in --version -v -V -qversion; do
  2329. { { ac_try="$ac_compiler $ac_option >&5"
  2330. case "(($ac_try" in
  2331. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2332. *) ac_try_echo=$ac_try;;
  2333. esac
  2334. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2335. $as_echo "$ac_try_echo"; } >&5
  2336. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2337. ac_status=$?
  2338. if test -s conftest.err; then
  2339. sed '10a\
  2340. ... rest of stderr output deleted ...
  2341. 10q' conftest.err >conftest.er1
  2342. cat conftest.er1 >&5
  2343. fi
  2344. rm -f conftest.er1 conftest.err
  2345. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2346. test $ac_status = 0; }
  2347. done
  2348. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2349. /* end build/confdefs.h. */
  2350. int
  2351. main ()
  2352. {
  2353. ;
  2354. return 0;
  2355. }
  2356. _ACEOF
  2357. ac_clean_files_save=$ac_clean_files
  2358. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2359. # Try to create an executable without -o first, disregard a.out.
  2360. # It will help us diagnose broken compilers, and finding out an intuition
  2361. # of exeext.
  2362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2363. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2364. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2365. # The possible output files:
  2366. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2367. ac_rmfiles=
  2368. for ac_file in $ac_files
  2369. do
  2370. case $ac_file in
  2371. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2372. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2373. esac
  2374. done
  2375. rm -f $ac_rmfiles
  2376. if { { ac_try="$ac_link_default"
  2377. case "(($ac_try" in
  2378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2379. *) ac_try_echo=$ac_try;;
  2380. esac
  2381. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2382. $as_echo "$ac_try_echo"; } >&5
  2383. (eval "$ac_link_default") 2>&5
  2384. ac_status=$?
  2385. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2386. test $ac_status = 0; }; then :
  2387. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2388. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2389. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2390. # so that the user can short-circuit this test for compilers unknown to
  2391. # Autoconf.
  2392. for ac_file in $ac_files ''
  2393. do
  2394. test -f "$ac_file" || continue
  2395. case $ac_file in
  2396. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2397. ;;
  2398. [ab].out )
  2399. # We found the default executable, but exeext='' is most
  2400. # certainly right.
  2401. break;;
  2402. *.* )
  2403. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2404. then :; else
  2405. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2406. fi
  2407. # We set ac_cv_exeext here because the later test for it is not
  2408. # safe: cross compilers may not add the suffix if given an `-o'
  2409. # argument, so we may need to know it at that point already.
  2410. # Even if this section looks crufty: it has the advantage of
  2411. # actually working.
  2412. break;;
  2413. * )
  2414. break;;
  2415. esac
  2416. done
  2417. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2418. else
  2419. ac_file=''
  2420. fi
  2421. if test -z "$ac_file"; then :
  2422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2423. $as_echo "no" >&6; }
  2424. $as_echo "$as_me: failed program was:" >&5
  2425. sed 's/^/| /' conftest.$ac_ext >&5
  2426. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2427. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2428. as_fn_error 77 "C++ compiler cannot create executables
  2429. See \`build/config.log' for more details" "$LINENO" 5; }
  2430. else
  2431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2432. $as_echo "yes" >&6; }
  2433. fi
  2434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2435. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2437. $as_echo "$ac_file" >&6; }
  2438. ac_exeext=$ac_cv_exeext
  2439. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2440. ac_clean_files=$ac_clean_files_save
  2441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2442. $as_echo_n "checking for suffix of executables... " >&6; }
  2443. if { { ac_try="$ac_link"
  2444. case "(($ac_try" in
  2445. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2446. *) ac_try_echo=$ac_try;;
  2447. esac
  2448. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2449. $as_echo "$ac_try_echo"; } >&5
  2450. (eval "$ac_link") 2>&5
  2451. ac_status=$?
  2452. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2453. test $ac_status = 0; }; then :
  2454. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2455. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2456. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2457. # `rm'.
  2458. for ac_file in conftest.exe conftest conftest.*; do
  2459. test -f "$ac_file" || continue
  2460. case $ac_file in
  2461. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2462. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2463. break;;
  2464. * ) break;;
  2465. esac
  2466. done
  2467. else
  2468. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2469. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2470. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2471. See \`build/config.log' for more details" "$LINENO" 5; }
  2472. fi
  2473. rm -f conftest conftest$ac_cv_exeext
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2475. $as_echo "$ac_cv_exeext" >&6; }
  2476. rm -f conftest.$ac_ext
  2477. EXEEXT=$ac_cv_exeext
  2478. ac_exeext=$EXEEXT
  2479. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2480. /* end build/confdefs.h. */
  2481. #include <stdio.h>
  2482. int
  2483. main ()
  2484. {
  2485. FILE *f = fopen ("conftest.out", "w");
  2486. return ferror (f) || fclose (f) != 0;
  2487. ;
  2488. return 0;
  2489. }
  2490. _ACEOF
  2491. ac_clean_files="$ac_clean_files conftest.out"
  2492. # Check that the compiler produces executables we can run. If not, either
  2493. # the compiler is broken, or we cross compile.
  2494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2495. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2496. if test "$cross_compiling" != yes; then
  2497. { { ac_try="$ac_link"
  2498. case "(($ac_try" in
  2499. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2500. *) ac_try_echo=$ac_try;;
  2501. esac
  2502. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2503. $as_echo "$ac_try_echo"; } >&5
  2504. (eval "$ac_link") 2>&5
  2505. ac_status=$?
  2506. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2507. test $ac_status = 0; }
  2508. if { ac_try='./conftest$ac_cv_exeext'
  2509. { { case "(($ac_try" in
  2510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2511. *) ac_try_echo=$ac_try;;
  2512. esac
  2513. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2514. $as_echo "$ac_try_echo"; } >&5
  2515. (eval "$ac_try") 2>&5
  2516. ac_status=$?
  2517. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2518. test $ac_status = 0; }; }; then
  2519. cross_compiling=no
  2520. else
  2521. if test "$cross_compiling" = maybe; then
  2522. cross_compiling=yes
  2523. else
  2524. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2525. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2526. as_fn_error $? "cannot run C++ compiled programs.
  2527. If you meant to cross compile, use \`--host'.
  2528. See \`build/config.log' for more details" "$LINENO" 5; }
  2529. fi
  2530. fi
  2531. fi
  2532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2533. $as_echo "$cross_compiling" >&6; }
  2534. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2535. ac_clean_files=$ac_clean_files_save
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2537. $as_echo_n "checking for suffix of object files... " >&6; }
  2538. if ${ac_cv_objext+:} false; then :
  2539. $as_echo_n "(cached) " >&6
  2540. else
  2541. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2542. /* end build/confdefs.h. */
  2543. int
  2544. main ()
  2545. {
  2546. ;
  2547. return 0;
  2548. }
  2549. _ACEOF
  2550. rm -f conftest.o conftest.obj
  2551. if { { ac_try="$ac_compile"
  2552. case "(($ac_try" in
  2553. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2554. *) ac_try_echo=$ac_try;;
  2555. esac
  2556. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2557. $as_echo "$ac_try_echo"; } >&5
  2558. (eval "$ac_compile") 2>&5
  2559. ac_status=$?
  2560. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2561. test $ac_status = 0; }; then :
  2562. for ac_file in conftest.o conftest.obj conftest.*; do
  2563. test -f "$ac_file" || continue;
  2564. case $ac_file in
  2565. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2566. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2567. break;;
  2568. esac
  2569. done
  2570. else
  2571. $as_echo "$as_me: failed program was:" >&5
  2572. sed 's/^/| /' conftest.$ac_ext >&5
  2573. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2574. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2575. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2576. See \`build/config.log' for more details" "$LINENO" 5; }
  2577. fi
  2578. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2579. fi
  2580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2581. $as_echo "$ac_cv_objext" >&6; }
  2582. OBJEXT=$ac_cv_objext
  2583. ac_objext=$OBJEXT
  2584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  2585. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2586. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  2587. $as_echo_n "(cached) " >&6
  2588. else
  2589. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2590. /* end build/confdefs.h. */
  2591. int
  2592. main ()
  2593. {
  2594. #ifndef __GNUC__
  2595. choke me
  2596. #endif
  2597. ;
  2598. return 0;
  2599. }
  2600. _ACEOF
  2601. if ac_fn_cxx_try_compile "$LINENO"; then :
  2602. ac_compiler_gnu=yes
  2603. else
  2604. ac_compiler_gnu=no
  2605. fi
  2606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2607. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2608. fi
  2609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  2610. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2611. if test $ac_compiler_gnu = yes; then
  2612. GXX=yes
  2613. else
  2614. GXX=
  2615. fi
  2616. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2617. ac_save_CXXFLAGS=$CXXFLAGS
  2618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  2619. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2620. if ${ac_cv_prog_cxx_g+:} false; then :
  2621. $as_echo_n "(cached) " >&6
  2622. else
  2623. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2624. ac_cxx_werror_flag=yes
  2625. ac_cv_prog_cxx_g=no
  2626. CXXFLAGS="-g"
  2627. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2628. /* end build/confdefs.h. */
  2629. int
  2630. main ()
  2631. {
  2632. ;
  2633. return 0;
  2634. }
  2635. _ACEOF
  2636. if ac_fn_cxx_try_compile "$LINENO"; then :
  2637. ac_cv_prog_cxx_g=yes
  2638. else
  2639. CXXFLAGS=""
  2640. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2641. /* end build/confdefs.h. */
  2642. int
  2643. main ()
  2644. {
  2645. ;
  2646. return 0;
  2647. }
  2648. _ACEOF
  2649. if ac_fn_cxx_try_compile "$LINENO"; then :
  2650. else
  2651. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2652. CXXFLAGS="-g"
  2653. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2654. /* end build/confdefs.h. */
  2655. int
  2656. main ()
  2657. {
  2658. ;
  2659. return 0;
  2660. }
  2661. _ACEOF
  2662. if ac_fn_cxx_try_compile "$LINENO"; then :
  2663. ac_cv_prog_cxx_g=yes
  2664. fi
  2665. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2666. fi
  2667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2668. fi
  2669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2670. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2671. fi
  2672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  2673. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  2674. if test "$ac_test_CXXFLAGS" = set; then
  2675. CXXFLAGS=$ac_save_CXXFLAGS
  2676. elif test $ac_cv_prog_cxx_g = yes; then
  2677. if test "$GXX" = yes; then
  2678. CXXFLAGS="-g -O2"
  2679. else
  2680. CXXFLAGS="-g"
  2681. fi
  2682. else
  2683. if test "$GXX" = yes; then
  2684. CXXFLAGS="-O2"
  2685. else
  2686. CXXFLAGS=
  2687. fi
  2688. fi
  2689. ac_ext=cpp
  2690. ac_cpp='$CXXCPP $CPPFLAGS'
  2691. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2692. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2693. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2694. if test "${cross_compiling-x}" = "x"
  2695. then
  2696. cat << 'EOF' >&2
  2697. configure: error:
  2698. This system does not appear to have a working C compiler.
  2699. A working C compiler is required to compile Wraith.
  2700. EOF
  2701. exit 1
  2702. fi
  2703. if test -n "$GXX"; then
  2704. CXXFLAGS="$CXXFLAGS"
  2705. fi
  2706. # Crazy machines
  2707. ac_ext=cpp
  2708. ac_cpp='$CXXCPP $CPPFLAGS'
  2709. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2710. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2711. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  2713. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  2714. if test -z "$CXXCPP"; then
  2715. if ${ac_cv_prog_CXXCPP+:} false; then :
  2716. $as_echo_n "(cached) " >&6
  2717. else
  2718. # Double quotes because CXXCPP needs to be expanded
  2719. for CXXCPP in "$CXX -E" "/lib/cpp"
  2720. do
  2721. ac_preproc_ok=false
  2722. for ac_cxx_preproc_warn_flag in '' yes
  2723. do
  2724. # Use a header file that comes with gcc, so configuring glibc
  2725. # with a fresh cross-compiler works.
  2726. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2727. # <limits.h> exists even on freestanding compilers.
  2728. # On the NeXT, cc -E runs the code through the compiler's parser,
  2729. # not just through cpp. "Syntax error" is here to catch this case.
  2730. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2731. /* end build/confdefs.h. */
  2732. #ifdef __STDC__
  2733. # include <limits.h>
  2734. #else
  2735. # include <assert.h>
  2736. #endif
  2737. Syntax error
  2738. _ACEOF
  2739. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2740. else
  2741. # Broken: fails on valid input.
  2742. continue
  2743. fi
  2744. rm -f conftest.err conftest.i conftest.$ac_ext
  2745. # OK, works on sane cases. Now check whether nonexistent headers
  2746. # can be detected and how.
  2747. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2748. /* end build/confdefs.h. */
  2749. #include <ac_nonexistent.h>
  2750. _ACEOF
  2751. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2752. # Broken: success on invalid input.
  2753. continue
  2754. else
  2755. # Passes both tests.
  2756. ac_preproc_ok=:
  2757. break
  2758. fi
  2759. rm -f conftest.err conftest.i conftest.$ac_ext
  2760. done
  2761. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2762. rm -f conftest.i conftest.err conftest.$ac_ext
  2763. if $ac_preproc_ok; then :
  2764. break
  2765. fi
  2766. done
  2767. ac_cv_prog_CXXCPP=$CXXCPP
  2768. fi
  2769. CXXCPP=$ac_cv_prog_CXXCPP
  2770. else
  2771. ac_cv_prog_CXXCPP=$CXXCPP
  2772. fi
  2773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  2774. $as_echo "$CXXCPP" >&6; }
  2775. ac_preproc_ok=false
  2776. for ac_cxx_preproc_warn_flag in '' yes
  2777. do
  2778. # Use a header file that comes with gcc, so configuring glibc
  2779. # with a fresh cross-compiler works.
  2780. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2781. # <limits.h> exists even on freestanding compilers.
  2782. # On the NeXT, cc -E runs the code through the compiler's parser,
  2783. # not just through cpp. "Syntax error" is here to catch this case.
  2784. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2785. /* end build/confdefs.h. */
  2786. #ifdef __STDC__
  2787. # include <limits.h>
  2788. #else
  2789. # include <assert.h>
  2790. #endif
  2791. Syntax error
  2792. _ACEOF
  2793. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2794. else
  2795. # Broken: fails on valid input.
  2796. continue
  2797. fi
  2798. rm -f conftest.err conftest.i conftest.$ac_ext
  2799. # OK, works on sane cases. Now check whether nonexistent headers
  2800. # can be detected and how.
  2801. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2802. /* end build/confdefs.h. */
  2803. #include <ac_nonexistent.h>
  2804. _ACEOF
  2805. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2806. # Broken: success on invalid input.
  2807. continue
  2808. else
  2809. # Passes both tests.
  2810. ac_preproc_ok=:
  2811. break
  2812. fi
  2813. rm -f conftest.err conftest.i conftest.$ac_ext
  2814. done
  2815. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2816. rm -f conftest.i conftest.err conftest.$ac_ext
  2817. if $ac_preproc_ok; then :
  2818. else
  2819. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2820. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2821. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  2822. See \`build/config.log' for more details" "$LINENO" 5; }
  2823. fi
  2824. ac_ext=cpp
  2825. ac_cpp='$CXXCPP $CPPFLAGS'
  2826. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2827. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2828. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  2830. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  2831. if ${ac_cv_path_GREP+:} false; then :
  2832. $as_echo_n "(cached) " >&6
  2833. else
  2834. if test -z "$GREP"; then
  2835. ac_path_GREP_found=false
  2836. # Loop through the user's path and test for each of PROGNAME-LIST
  2837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2838. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2839. do
  2840. IFS=$as_save_IFS
  2841. test -z "$as_dir" && as_dir=.
  2842. for ac_prog in grep ggrep; do
  2843. for ac_exec_ext in '' $ac_executable_extensions; do
  2844. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2845. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  2846. # Check for GNU ac_path_GREP and select it if it is found.
  2847. # Check for GNU $ac_path_GREP
  2848. case `"$ac_path_GREP" --version 2>&1` in
  2849. *GNU*)
  2850. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2851. *)
  2852. ac_count=0
  2853. $as_echo_n 0123456789 >"conftest.in"
  2854. while :
  2855. do
  2856. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2857. mv "conftest.tmp" "conftest.in"
  2858. cp "conftest.in" "conftest.nl"
  2859. $as_echo 'GREP' >> "conftest.nl"
  2860. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2861. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2862. as_fn_arith $ac_count + 1 && ac_count=$as_val
  2863. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2864. # Best one so far, save it but keep looking for a better one
  2865. ac_cv_path_GREP="$ac_path_GREP"
  2866. ac_path_GREP_max=$ac_count
  2867. fi
  2868. # 10*(2^10) chars as input seems more than enough
  2869. test $ac_count -gt 10 && break
  2870. done
  2871. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2872. esac
  2873. $ac_path_GREP_found && break 3
  2874. done
  2875. done
  2876. done
  2877. IFS=$as_save_IFS
  2878. if test -z "$ac_cv_path_GREP"; then
  2879. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  2880. fi
  2881. else
  2882. ac_cv_path_GREP=$GREP
  2883. fi
  2884. fi
  2885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  2886. $as_echo "$ac_cv_path_GREP" >&6; }
  2887. GREP="$ac_cv_path_GREP"
  2888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  2889. $as_echo_n "checking for egrep... " >&6; }
  2890. if ${ac_cv_path_EGREP+:} false; then :
  2891. $as_echo_n "(cached) " >&6
  2892. else
  2893. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2894. then ac_cv_path_EGREP="$GREP -E"
  2895. else
  2896. if test -z "$EGREP"; then
  2897. ac_path_EGREP_found=false
  2898. # Loop through the user's path and test for each of PROGNAME-LIST
  2899. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2900. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2901. do
  2902. IFS=$as_save_IFS
  2903. test -z "$as_dir" && as_dir=.
  2904. for ac_prog in egrep; do
  2905. for ac_exec_ext in '' $ac_executable_extensions; do
  2906. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  2907. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  2908. # Check for GNU ac_path_EGREP and select it if it is found.
  2909. # Check for GNU $ac_path_EGREP
  2910. case `"$ac_path_EGREP" --version 2>&1` in
  2911. *GNU*)
  2912. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  2913. *)
  2914. ac_count=0
  2915. $as_echo_n 0123456789 >"conftest.in"
  2916. while :
  2917. do
  2918. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2919. mv "conftest.tmp" "conftest.in"
  2920. cp "conftest.in" "conftest.nl"
  2921. $as_echo 'EGREP' >> "conftest.nl"
  2922. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2923. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2924. as_fn_arith $ac_count + 1 && ac_count=$as_val
  2925. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  2926. # Best one so far, save it but keep looking for a better one
  2927. ac_cv_path_EGREP="$ac_path_EGREP"
  2928. ac_path_EGREP_max=$ac_count
  2929. fi
  2930. # 10*(2^10) chars as input seems more than enough
  2931. test $ac_count -gt 10 && break
  2932. done
  2933. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2934. esac
  2935. $ac_path_EGREP_found && break 3
  2936. done
  2937. done
  2938. done
  2939. IFS=$as_save_IFS
  2940. if test -z "$ac_cv_path_EGREP"; then
  2941. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  2942. fi
  2943. else
  2944. ac_cv_path_EGREP=$EGREP
  2945. fi
  2946. fi
  2947. fi
  2948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  2949. $as_echo "$ac_cv_path_EGREP" >&6; }
  2950. EGREP="$ac_cv_path_EGREP"
  2951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  2952. $as_echo_n "checking for ANSI C header files... " >&6; }
  2953. if ${ac_cv_header_stdc+:} false; then :
  2954. $as_echo_n "(cached) " >&6
  2955. else
  2956. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2957. /* end build/confdefs.h. */
  2958. #include <stdlib.h>
  2959. #include <stdarg.h>
  2960. #include <string.h>
  2961. #include <float.h>
  2962. int
  2963. main ()
  2964. {
  2965. ;
  2966. return 0;
  2967. }
  2968. _ACEOF
  2969. if ac_fn_cxx_try_compile "$LINENO"; then :
  2970. ac_cv_header_stdc=yes
  2971. else
  2972. ac_cv_header_stdc=no
  2973. fi
  2974. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2975. if test $ac_cv_header_stdc = yes; then
  2976. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2977. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2978. /* end build/confdefs.h. */
  2979. #include <string.h>
  2980. _ACEOF
  2981. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2982. $EGREP "memchr" >/dev/null 2>&1; then :
  2983. else
  2984. ac_cv_header_stdc=no
  2985. fi
  2986. rm -f conftest*
  2987. fi
  2988. if test $ac_cv_header_stdc = yes; then
  2989. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2990. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2991. /* end build/confdefs.h. */
  2992. #include <stdlib.h>
  2993. _ACEOF
  2994. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2995. $EGREP "free" >/dev/null 2>&1; then :
  2996. else
  2997. ac_cv_header_stdc=no
  2998. fi
  2999. rm -f conftest*
  3000. fi
  3001. if test $ac_cv_header_stdc = yes; then
  3002. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3003. if test "$cross_compiling" = yes; then :
  3004. :
  3005. else
  3006. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3007. /* end build/confdefs.h. */
  3008. #include <ctype.h>
  3009. #include <stdlib.h>
  3010. #if ((' ' & 0x0FF) == 0x020)
  3011. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3012. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3013. #else
  3014. # define ISLOWER(c) \
  3015. (('a' <= (c) && (c) <= 'i') \
  3016. || ('j' <= (c) && (c) <= 'r') \
  3017. || ('s' <= (c) && (c) <= 'z'))
  3018. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3019. #endif
  3020. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3021. int
  3022. main ()
  3023. {
  3024. int i;
  3025. for (i = 0; i < 256; i++)
  3026. if (XOR (islower (i), ISLOWER (i))
  3027. || toupper (i) != TOUPPER (i))
  3028. return 2;
  3029. return 0;
  3030. }
  3031. _ACEOF
  3032. if ac_fn_cxx_try_run "$LINENO"; then :
  3033. else
  3034. ac_cv_header_stdc=no
  3035. fi
  3036. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3037. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3038. fi
  3039. fi
  3040. fi
  3041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3042. $as_echo "$ac_cv_header_stdc" >&6; }
  3043. if test $ac_cv_header_stdc = yes; then
  3044. $as_echo "#define STDC_HEADERS 1" >>build/confdefs.h
  3045. fi
  3046. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3047. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3048. inttypes.h stdint.h unistd.h
  3049. do :
  3050. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3051. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3052. "
  3053. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3054. cat >>build/confdefs.h <<_ACEOF
  3055. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3056. _ACEOF
  3057. fi
  3058. done
  3059. ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3060. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3061. MINIX=yes
  3062. else
  3063. MINIX=
  3064. fi
  3065. if test "$MINIX" = yes; then
  3066. $as_echo "#define _POSIX_SOURCE 1" >>build/confdefs.h
  3067. $as_echo "#define _POSIX_1_SOURCE 2" >>build/confdefs.h
  3068. $as_echo "#define _MINIX 1" >>build/confdefs.h
  3069. fi
  3070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3071. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3072. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3073. $as_echo_n "(cached) " >&6
  3074. else
  3075. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3076. /* end build/confdefs.h. */
  3077. # define __EXTENSIONS__ 1
  3078. $ac_includes_default
  3079. int
  3080. main ()
  3081. {
  3082. ;
  3083. return 0;
  3084. }
  3085. _ACEOF
  3086. if ac_fn_cxx_try_compile "$LINENO"; then :
  3087. ac_cv_safe_to_define___extensions__=yes
  3088. else
  3089. ac_cv_safe_to_define___extensions__=no
  3090. fi
  3091. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3092. fi
  3093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3094. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3095. test $ac_cv_safe_to_define___extensions__ = yes &&
  3096. $as_echo "#define __EXTENSIONS__ 1" >>build/confdefs.h
  3097. $as_echo "#define _ALL_SOURCE 1" >>build/confdefs.h
  3098. $as_echo "#define _GNU_SOURCE 1" >>build/confdefs.h
  3099. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>build/confdefs.h
  3100. $as_echo "#define _TANDEM_SOURCE 1" >>build/confdefs.h
  3101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
  3102. $as_echo_n "checking for library containing strerror... " >&6; }
  3103. if ${ac_cv_search_strerror+:} false; then :
  3104. $as_echo_n "(cached) " >&6
  3105. else
  3106. ac_func_search_save_LIBS=$LIBS
  3107. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3108. /* end build/confdefs.h. */
  3109. /* Override any GCC internal prototype to avoid an error.
  3110. Use char because int might match the return type of a GCC
  3111. builtin and then its argument prototype would still apply. */
  3112. #ifdef __cplusplus
  3113. extern "C"
  3114. #endif
  3115. char strerror ();
  3116. int
  3117. main ()
  3118. {
  3119. return strerror ();
  3120. ;
  3121. return 0;
  3122. }
  3123. _ACEOF
  3124. for ac_lib in '' cposix; do
  3125. if test -z "$ac_lib"; then
  3126. ac_res="none required"
  3127. else
  3128. ac_res=-l$ac_lib
  3129. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3130. fi
  3131. if ac_fn_cxx_try_link "$LINENO"; then :
  3132. ac_cv_search_strerror=$ac_res
  3133. fi
  3134. rm -f core conftest.err conftest.$ac_objext \
  3135. conftest$ac_exeext
  3136. if ${ac_cv_search_strerror+:} false; then :
  3137. break
  3138. fi
  3139. done
  3140. if ${ac_cv_search_strerror+:} false; then :
  3141. else
  3142. ac_cv_search_strerror=no
  3143. fi
  3144. rm conftest.$ac_ext
  3145. LIBS=$ac_func_search_save_LIBS
  3146. fi
  3147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
  3148. $as_echo "$ac_cv_search_strerror" >&6; }
  3149. ac_res=$ac_cv_search_strerror
  3150. if test "$ac_res" != no; then :
  3151. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  3152. fi
  3153. #checkpoint
  3154. cat >confcache <<\_ACEOF
  3155. # This file is a shell script that caches the results of configure
  3156. # tests run on this system so they can be shared between configure
  3157. # scripts and configure runs, see configure's option --config-cache.
  3158. # It is not useful on other systems. If it contains results you don't
  3159. # want to keep, you may remove or edit it.
  3160. #
  3161. # build/config.status only pays attention to the cache file if you give it
  3162. # the --recheck option to rerun configure.
  3163. #
  3164. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3165. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3166. # following values.
  3167. _ACEOF
  3168. # The following way of writing the cache mishandles newlines in values,
  3169. # but we know of no workaround that is simple, portable, and efficient.
  3170. # So, we kill variables containing newlines.
  3171. # Ultrix sh set writes to stderr and can't be redirected directly,
  3172. # and sets the high bit in the cache file unless we assign to the vars.
  3173. (
  3174. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3175. eval ac_val=\$$ac_var
  3176. case $ac_val in #(
  3177. *${as_nl}*)
  3178. case $ac_var in #(
  3179. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3180. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3181. esac
  3182. case $ac_var in #(
  3183. _ | IFS | as_nl) ;; #(
  3184. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3185. *) { eval $ac_var=; unset $ac_var;} ;;
  3186. esac ;;
  3187. esac
  3188. done
  3189. (set) 2>&1 |
  3190. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3191. *${as_nl}ac_space=\ *)
  3192. # `set' does not quote correctly, so add quotes: double-quote
  3193. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3194. sed -n \
  3195. "s/'/'\\\\''/g;
  3196. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3197. ;; #(
  3198. *)
  3199. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3200. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3201. ;;
  3202. esac |
  3203. sort
  3204. ) |
  3205. sed '
  3206. /^ac_cv_env_/b end
  3207. t clear
  3208. :clear
  3209. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3210. t end
  3211. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3212. :end' >>confcache
  3213. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3214. if test -w "$cache_file"; then
  3215. if test "x$cache_file" != "x/dev/null"; then
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3217. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3218. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3219. cat confcache >"$cache_file"
  3220. else
  3221. case $cache_file in #(
  3222. */* | ?:*)
  3223. mv -f confcache "$cache_file"$$ &&
  3224. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3225. *)
  3226. mv -f confcache "$cache_file" ;;
  3227. esac
  3228. fi
  3229. fi
  3230. else
  3231. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3232. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3233. fi
  3234. fi
  3235. rm -f confcache
  3236. # Speedup compile
  3237. if test -n "$GXX" && test -z "$no_wall"; then
  3238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wall" >&5
  3239. $as_echo_n "checking whether the compiler understands -Wall... " >&6; }
  3240. if ${egg_cv_var_ccwall+:} false; then :
  3241. $as_echo_n "(cached) " >&6
  3242. else
  3243. ac_old_CXXFLAGS="$CXXFLAGS"
  3244. CXXFLAGS="$CXXFLAGS -Wall"
  3245. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3246. /* end build/confdefs.h. */
  3247. int main ()
  3248. {
  3249. return(0);
  3250. }
  3251. _ACEOF
  3252. if ac_fn_cxx_try_compile "$LINENO"; then :
  3253. egg_cv_var_ccwall="yes"
  3254. else
  3255. egg_cv_var_ccwall="no"
  3256. fi
  3257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3258. CXXFLAGS="$ac_old_CXXFLAGS"
  3259. fi
  3260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccwall" >&5
  3261. $as_echo "$egg_cv_var_ccwall" >&6; }
  3262. if test "$egg_cv_var_ccwall" = "yes"; then
  3263. CXXFLAGS="$CXXFLAGS -Wall"
  3264. fi
  3265. fi
  3266. if test -n "$GXX" && test -z "$no_pipe"; then
  3267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -pipe" >&5
  3268. $as_echo_n "checking whether the compiler understands -pipe... " >&6; }
  3269. if ${egg_cv_var_ccpipe+:} false; then :
  3270. $as_echo_n "(cached) " >&6
  3271. else
  3272. ac_old_CXX="$CXX"
  3273. CXX="$CXX -pipe"
  3274. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3275. /* end build/confdefs.h. */
  3276. int main ()
  3277. {
  3278. return(0);
  3279. }
  3280. _ACEOF
  3281. if ac_fn_cxx_try_compile "$LINENO"; then :
  3282. egg_cv_var_ccpipe="yes"
  3283. else
  3284. egg_cv_var_ccpipe="no"
  3285. fi
  3286. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3287. CXX="$ac_old_CXX"
  3288. fi
  3289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccpipe" >&5
  3290. $as_echo "$egg_cv_var_ccpipe" >&6; }
  3291. if test "$egg_cv_var_ccpipe" = "yes"; then
  3292. CXX="$CXX -pipe"
  3293. fi
  3294. fi
  3295. CCDEPMODE=gcc
  3296. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  3297. if test $num -ge "3"; then
  3298. CCDEPMODE=gcc3
  3299. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  3300. GCC3="-W -Wno-unused-parameter -Wdisabled-optimization -Wno-write-strings -Wno-format-security -fno-strict-aliasing -Woverloaded-virtual -Wno-format-y2k"
  3301. GCC3DEB="-Wno-disabled-optimization -Wmissing-format-attribute"
  3302. fi
  3303. if test $num -ge "4"; then
  3304. GCC4DEB="-fstack-protector-all"
  3305. fi
  3306. #checkpoint
  3307. cat >confcache <<\_ACEOF
  3308. # This file is a shell script that caches the results of configure
  3309. # tests run on this system so they can be shared between configure
  3310. # scripts and configure runs, see configure's option --config-cache.
  3311. # It is not useful on other systems. If it contains results you don't
  3312. # want to keep, you may remove or edit it.
  3313. #
  3314. # build/config.status only pays attention to the cache file if you give it
  3315. # the --recheck option to rerun configure.
  3316. #
  3317. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3318. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3319. # following values.
  3320. _ACEOF
  3321. # The following way of writing the cache mishandles newlines in values,
  3322. # but we know of no workaround that is simple, portable, and efficient.
  3323. # So, we kill variables containing newlines.
  3324. # Ultrix sh set writes to stderr and can't be redirected directly,
  3325. # and sets the high bit in the cache file unless we assign to the vars.
  3326. (
  3327. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3328. eval ac_val=\$$ac_var
  3329. case $ac_val in #(
  3330. *${as_nl}*)
  3331. case $ac_var in #(
  3332. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3333. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3334. esac
  3335. case $ac_var in #(
  3336. _ | IFS | as_nl) ;; #(
  3337. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3338. *) { eval $ac_var=; unset $ac_var;} ;;
  3339. esac ;;
  3340. esac
  3341. done
  3342. (set) 2>&1 |
  3343. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3344. *${as_nl}ac_space=\ *)
  3345. # `set' does not quote correctly, so add quotes: double-quote
  3346. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3347. sed -n \
  3348. "s/'/'\\\\''/g;
  3349. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3350. ;; #(
  3351. *)
  3352. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3353. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3354. ;;
  3355. esac |
  3356. sort
  3357. ) |
  3358. sed '
  3359. /^ac_cv_env_/b end
  3360. t clear
  3361. :clear
  3362. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3363. t end
  3364. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3365. :end' >>confcache
  3366. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3367. if test -w "$cache_file"; then
  3368. if test "x$cache_file" != "x/dev/null"; then
  3369. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3370. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3371. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3372. cat confcache >"$cache_file"
  3373. else
  3374. case $cache_file in #(
  3375. */* | ?:*)
  3376. mv -f confcache "$cache_file"$$ &&
  3377. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3378. *)
  3379. mv -f confcache "$cache_file" ;;
  3380. esac
  3381. fi
  3382. fi
  3383. else
  3384. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3385. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3386. fi
  3387. fi
  3388. rm -f confcache
  3389. # Checks for programs
  3390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3391. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3392. set x ${MAKE-make}
  3393. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3394. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3395. $as_echo_n "(cached) " >&6
  3396. else
  3397. cat >conftest.make <<\_ACEOF
  3398. SHELL = /bin/sh
  3399. all:
  3400. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3401. _ACEOF
  3402. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3403. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3404. *@@@%%%=?*=@@@%%%*)
  3405. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3406. *)
  3407. eval ac_cv_prog_make_${ac_make}_set=no;;
  3408. esac
  3409. rm -f conftest.make
  3410. fi
  3411. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3413. $as_echo "yes" >&6; }
  3414. SET_MAKE=
  3415. else
  3416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3417. $as_echo "no" >&6; }
  3418. SET_MAKE="MAKE=${MAKE-make}"
  3419. fi
  3420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3421. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3422. if ${ac_cv_path_SED+:} false; then :
  3423. $as_echo_n "(cached) " >&6
  3424. else
  3425. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3426. for ac_i in 1 2 3 4 5 6 7; do
  3427. ac_script="$ac_script$as_nl$ac_script"
  3428. done
  3429. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3430. { ac_script=; unset ac_script;}
  3431. if test -z "$SED"; then
  3432. ac_path_SED_found=false
  3433. # Loop through the user's path and test for each of PROGNAME-LIST
  3434. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3435. for as_dir in $PATH
  3436. do
  3437. IFS=$as_save_IFS
  3438. test -z "$as_dir" && as_dir=.
  3439. for ac_prog in sed gsed; do
  3440. for ac_exec_ext in '' $ac_executable_extensions; do
  3441. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3442. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3443. # Check for GNU ac_path_SED and select it if it is found.
  3444. # Check for GNU $ac_path_SED
  3445. case `"$ac_path_SED" --version 2>&1` in
  3446. *GNU*)
  3447. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3448. *)
  3449. ac_count=0
  3450. $as_echo_n 0123456789 >"conftest.in"
  3451. while :
  3452. do
  3453. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3454. mv "conftest.tmp" "conftest.in"
  3455. cp "conftest.in" "conftest.nl"
  3456. $as_echo '' >> "conftest.nl"
  3457. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3458. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3459. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3460. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3461. # Best one so far, save it but keep looking for a better one
  3462. ac_cv_path_SED="$ac_path_SED"
  3463. ac_path_SED_max=$ac_count
  3464. fi
  3465. # 10*(2^10) chars as input seems more than enough
  3466. test $ac_count -gt 10 && break
  3467. done
  3468. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3469. esac
  3470. $ac_path_SED_found && break 3
  3471. done
  3472. done
  3473. done
  3474. IFS=$as_save_IFS
  3475. if test -z "$ac_cv_path_SED"; then
  3476. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3477. fi
  3478. else
  3479. ac_cv_path_SED=$SED
  3480. fi
  3481. fi
  3482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3483. $as_echo "$ac_cv_path_SED" >&6; }
  3484. SED="$ac_cv_path_SED"
  3485. rm -f conftest.sed
  3486. cat << 'EOF' > conftest.head
  3487. a
  3488. b
  3489. c
  3490. EOF
  3491. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  3492. do
  3493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_prog works" >&5
  3494. $as_echo_n "checking whether $ac_prog works... " >&6; }
  3495. if ${ac_cv_prog_HEAD_1+:} false; then :
  3496. $as_echo_n "(cached) " >&6
  3497. else
  3498. if test -n "$HEAD_1"
  3499. then
  3500. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  3501. else
  3502. if test "`cat conftest.head | $ac_prog`" = "a";
  3503. then
  3504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3505. $as_echo "yes" >&6; }
  3506. ac_cv_prog_HEAD_1=$ac_prog
  3507. else
  3508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3509. $as_echo "no" >&6; }
  3510. fi
  3511. fi
  3512. fi
  3513. test -n "$ac_cv_prog_HEAD_1" && break
  3514. done
  3515. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  3516. then
  3517. cat << 'EOF' >&2
  3518. configure: error:
  3519. This system seems to lack a working 'head -1' or 'head -n 1' command.
  3520. A working 'head -1' (or equivalent) command is required to compile Wraith.
  3521. EOF
  3522. exit 1
  3523. fi
  3524. rm -f conftest.head
  3525. HEAD_1=$ac_cv_prog_HEAD_1
  3526. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3527. for ac_prog in gawk mawk nawk awk
  3528. do
  3529. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3530. set dummy $ac_prog; ac_word=$2
  3531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3532. $as_echo_n "checking for $ac_word... " >&6; }
  3533. if ${ac_cv_prog_AWK+:} false; then :
  3534. $as_echo_n "(cached) " >&6
  3535. else
  3536. if test -n "$AWK"; then
  3537. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3538. else
  3539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3540. for as_dir in $PATH
  3541. do
  3542. IFS=$as_save_IFS
  3543. test -z "$as_dir" && as_dir=.
  3544. for ac_exec_ext in '' $ac_executable_extensions; do
  3545. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3546. ac_cv_prog_AWK="$ac_prog"
  3547. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3548. break 2
  3549. fi
  3550. done
  3551. done
  3552. IFS=$as_save_IFS
  3553. fi
  3554. fi
  3555. AWK=$ac_cv_prog_AWK
  3556. if test -n "$AWK"; then
  3557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3558. $as_echo "$AWK" >&6; }
  3559. else
  3560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3561. $as_echo "no" >&6; }
  3562. fi
  3563. test -n "$AWK" && break
  3564. done
  3565. if test "${AWK-x}" = "x"
  3566. then
  3567. cat << 'EOF' >&2
  3568. configure: error:
  3569. This system seems to lack a working 'awk' command.
  3570. A working 'awk' command is required to compile Wraith.
  3571. EOF
  3572. exit 1
  3573. fi
  3574. # basename is needed for Tcl library and header checks
  3575. # Extract the first word of "basename", so it can be a program name with args.
  3576. set dummy basename; ac_word=$2
  3577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3578. $as_echo_n "checking for $ac_word... " >&6; }
  3579. if ${ac_cv_prog_BASENAME+:} false; then :
  3580. $as_echo_n "(cached) " >&6
  3581. else
  3582. if test -n "$BASENAME"; then
  3583. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3584. else
  3585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3586. for as_dir in $PATH
  3587. do
  3588. IFS=$as_save_IFS
  3589. test -z "$as_dir" && as_dir=.
  3590. for ac_exec_ext in '' $ac_executable_extensions; do
  3591. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3592. ac_cv_prog_BASENAME="basename"
  3593. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3594. break 2
  3595. fi
  3596. done
  3597. done
  3598. IFS=$as_save_IFS
  3599. fi
  3600. fi
  3601. BASENAME=$ac_cv_prog_BASENAME
  3602. if test -n "$BASENAME"; then
  3603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
  3604. $as_echo "$BASENAME" >&6; }
  3605. else
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3607. $as_echo "no" >&6; }
  3608. fi
  3609. if test "${BASENAME-x}" = "x"
  3610. then
  3611. cat << 'EOF' >&2
  3612. configure: error:
  3613. This system seems to lack a working 'basename' command.
  3614. A working 'basename' command is required to compile Wraith.
  3615. EOF
  3616. exit 1
  3617. fi
  3618. # Extract the first word of "objcopy", so it can be a program name with args.
  3619. set dummy objcopy; ac_word=$2
  3620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3621. $as_echo_n "checking for $ac_word... " >&6; }
  3622. if ${ac_cv_prog_OBJCOPY+:} false; then :
  3623. $as_echo_n "(cached) " >&6
  3624. else
  3625. if test -n "$OBJCOPY"; then
  3626. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3627. else
  3628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3629. for as_dir in $PATH
  3630. do
  3631. IFS=$as_save_IFS
  3632. test -z "$as_dir" && as_dir=.
  3633. for ac_exec_ext in '' $ac_executable_extensions; do
  3634. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3635. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3636. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3637. break 2
  3638. fi
  3639. done
  3640. done
  3641. IFS=$as_save_IFS
  3642. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  3643. fi
  3644. fi
  3645. OBJCOPY=$ac_cv_prog_OBJCOPY
  3646. if test -n "$OBJCOPY"; then
  3647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  3648. $as_echo "$OBJCOPY" >&6; }
  3649. else
  3650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3651. $as_echo "no" >&6; }
  3652. fi
  3653. # Extract the first word of "strip", so it can be a program name with args.
  3654. set dummy strip; ac_word=$2
  3655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3656. $as_echo_n "checking for $ac_word... " >&6; }
  3657. if ${ac_cv_prog_STRIP+:} false; then :
  3658. $as_echo_n "(cached) " >&6
  3659. else
  3660. if test -n "$STRIP"; then
  3661. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3662. else
  3663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3664. for as_dir in $PATH
  3665. do
  3666. IFS=$as_save_IFS
  3667. test -z "$as_dir" && as_dir=.
  3668. for ac_exec_ext in '' $ac_executable_extensions; do
  3669. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3670. ac_cv_prog_STRIP="strip"
  3671. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3672. break 2
  3673. fi
  3674. done
  3675. done
  3676. IFS=$as_save_IFS
  3677. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3678. fi
  3679. fi
  3680. STRIP=$ac_cv_prog_STRIP
  3681. if test -n "$STRIP"; then
  3682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3683. $as_echo "$STRIP" >&6; }
  3684. else
  3685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3686. $as_echo "no" >&6; }
  3687. fi
  3688. # Extract the first word of "gdiff", so it can be a program name with args.
  3689. set dummy gdiff; ac_word=$2
  3690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3691. $as_echo_n "checking for $ac_word... " >&6; }
  3692. if ${ac_cv_prog_DIFF+:} false; then :
  3693. $as_echo_n "(cached) " >&6
  3694. else
  3695. if test -n "$DIFF"; then
  3696. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  3697. else
  3698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3699. for as_dir in $PATH
  3700. do
  3701. IFS=$as_save_IFS
  3702. test -z "$as_dir" && as_dir=.
  3703. for ac_exec_ext in '' $ac_executable_extensions; do
  3704. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3705. ac_cv_prog_DIFF="gdiff"
  3706. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3707. break 2
  3708. fi
  3709. done
  3710. done
  3711. IFS=$as_save_IFS
  3712. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  3713. fi
  3714. fi
  3715. DIFF=$ac_cv_prog_DIFF
  3716. if test -n "$DIFF"; then
  3717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
  3718. $as_echo "$DIFF" >&6; }
  3719. else
  3720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3721. $as_echo "no" >&6; }
  3722. fi
  3723. # Extract the first word of "uname", so it can be a program name with args.
  3724. set dummy uname; ac_word=$2
  3725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3726. $as_echo_n "checking for $ac_word... " >&6; }
  3727. if ${ac_cv_prog_UNAME+:} false; then :
  3728. $as_echo_n "(cached) " >&6
  3729. else
  3730. if test -n "$UNAME"; then
  3731. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3732. else
  3733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3734. for as_dir in $PATH
  3735. do
  3736. IFS=$as_save_IFS
  3737. test -z "$as_dir" && as_dir=.
  3738. for ac_exec_ext in '' $ac_executable_extensions; do
  3739. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3740. ac_cv_prog_UNAME="uname"
  3741. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3742. break 2
  3743. fi
  3744. done
  3745. done
  3746. IFS=$as_save_IFS
  3747. fi
  3748. fi
  3749. UNAME=$ac_cv_prog_UNAME
  3750. if test -n "$UNAME"; then
  3751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
  3752. $as_echo "$UNAME" >&6; }
  3753. else
  3754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3755. $as_echo "no" >&6; }
  3756. fi
  3757. # Extract the first word of "ccache", so it can be a program name with args.
  3758. set dummy ccache; ac_word=$2
  3759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3760. $as_echo_n "checking for $ac_word... " >&6; }
  3761. if ${ac_cv_prog_CCACHE+:} false; then :
  3762. $as_echo_n "(cached) " >&6
  3763. else
  3764. if test -n "$CCACHE"; then
  3765. ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
  3766. else
  3767. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3768. for as_dir in $PATH
  3769. do
  3770. IFS=$as_save_IFS
  3771. test -z "$as_dir" && as_dir=.
  3772. for ac_exec_ext in '' $ac_executable_extensions; do
  3773. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3774. ac_cv_prog_CCACHE="ccache"
  3775. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3776. break 2
  3777. fi
  3778. done
  3779. done
  3780. IFS=$as_save_IFS
  3781. fi
  3782. fi
  3783. CCACHE=$ac_cv_prog_CCACHE
  3784. if test -n "$CCACHE"; then
  3785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
  3786. $as_echo "$CCACHE" >&6; }
  3787. else
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3789. $as_echo "no" >&6; }
  3790. fi
  3791. # Extract the first word of "distcc", so it can be a program name with args.
  3792. set dummy distcc; ac_word=$2
  3793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3794. $as_echo_n "checking for $ac_word... " >&6; }
  3795. if ${ac_cv_prog_DISTCC+:} false; then :
  3796. $as_echo_n "(cached) " >&6
  3797. else
  3798. if test -n "$DISTCC"; then
  3799. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3800. else
  3801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3802. for as_dir in $PATH
  3803. do
  3804. IFS=$as_save_IFS
  3805. test -z "$as_dir" && as_dir=.
  3806. for ac_exec_ext in '' $ac_executable_extensions; do
  3807. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3808. ac_cv_prog_DISTCC="distcc"
  3809. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3810. break 2
  3811. fi
  3812. done
  3813. done
  3814. IFS=$as_save_IFS
  3815. fi
  3816. fi
  3817. DISTCC=$ac_cv_prog_DISTCC
  3818. if test -n "$DISTCC"; then
  3819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
  3820. $as_echo "$DISTCC" >&6; }
  3821. else
  3822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3823. $as_echo "no" >&6; }
  3824. fi
  3825. # Test the os and set the module linking settings
  3826. USE_STATIC=yes
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system type" >&5
  3828. $as_echo_n "checking system type... " >&6; }
  3829. if ${egg_cv_var_system_type+:} false; then :
  3830. $as_echo_n "(cached) " >&6
  3831. else
  3832. egg_cv_var_system_type=`$UNAME -s`
  3833. fi
  3834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_type" >&5
  3835. $as_echo "$egg_cv_var_system_type" >&6; }
  3836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system release" >&5
  3837. $as_echo_n "checking system release... " >&6; }
  3838. if ${egg_cv_var_system_release+:} false; then :
  3839. $as_echo_n "(cached) " >&6
  3840. else
  3841. egg_cv_var_system_release=`$UNAME -r`
  3842. fi
  3843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_release" >&5
  3844. $as_echo "$egg_cv_var_system_release" >&6; }
  3845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system machine" >&5
  3846. $as_echo_n "checking system machine... " >&6; }
  3847. if ${egg_cv_var_system_machine+:} false; then :
  3848. $as_echo_n "(cached) " >&6
  3849. else
  3850. egg_cv_var_system_machine=`$UNAME -m`
  3851. fi
  3852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_machine" >&5
  3853. $as_echo "$egg_cv_var_system_machine" >&6; }
  3854. BUILDOS="$egg_cv_var_system_type"
  3855. BUILDARCH="$egg_cv_var_system_machine"
  3856. USE_GENERIC_I486="yes"
  3857. case "$egg_cv_var_system_type" in
  3858. BSD/OS)
  3859. ;;
  3860. IRIX)
  3861. ;;
  3862. HP-UX)
  3863. $as_echo "#define MD32_XARRAY 1" >>build/confdefs.h
  3864. ;;
  3865. Ultrix)
  3866. SHELL=/bin/sh5
  3867. ;;
  3868. SINIX*)
  3869. ;;
  3870. BeOS)
  3871. ;;
  3872. Linux)
  3873. ;;
  3874. Lynx)
  3875. ;;
  3876. QNX)
  3877. ;;
  3878. OSF1)
  3879. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3880. V*)
  3881. if test "$AWK" = "gawk"
  3882. then
  3883. AWK=awk
  3884. fi
  3885. ;;
  3886. 1.0|1.1|1.2)
  3887. $as_echo "#define OSF1_HACKS 1" >>build/confdefs.h
  3888. ;;
  3889. 1.*)
  3890. $as_echo "#define OSF1_HACKS 1" >>build/confdefs.h
  3891. ;;
  3892. *)
  3893. ;;
  3894. esac
  3895. $as_echo "#define STOP_UAC 1" >>build/confdefs.h
  3896. $as_echo "#define BROKEN_SNPRINTF 1" >>build/confdefs.h
  3897. ;;
  3898. SunOS)
  3899. SUNOS="yes"
  3900. USE_STATIC="no"
  3901. ;;
  3902. Darwin)
  3903. USE_STATIC="no"
  3904. USE_GENERIC_I486="no"
  3905. ;;
  3906. *BSD)
  3907. # FreeBSD/OpenBSD/NetBSD
  3908. ;;
  3909. *)
  3910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is Mach based" >&5
  3911. $as_echo_n "checking if system is Mach based... " >&6; }
  3912. if test -r /mach
  3913. then
  3914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3915. $as_echo "yes" >&6; }
  3916. $as_echo "#define BORGCUBES 1" >>build/confdefs.h
  3917. else
  3918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3919. $as_echo "no" >&6; }
  3920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is QNX" >&5
  3921. $as_echo_n "checking if system is QNX... " >&6; }
  3922. if test -r /cmds
  3923. then
  3924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3925. $as_echo "yes" >&6; }
  3926. else
  3927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3928. $as_echo "no" >&6; }
  3929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Something unknown!" >&5
  3930. $as_echo "Something unknown!" >&6; }
  3931. fi
  3932. fi
  3933. ;;
  3934. esac
  3935. case "$egg_cv_var_system_machine" in
  3936. i*)
  3937. if test "$USE_GENERIC_I486" = "yes"; then
  3938. CXX="$CXX -march=i486"
  3939. BUILDARCH="i486"
  3940. fi
  3941. ;;
  3942. *)
  3943. ;;
  3944. esac
  3945. # Check for IPv6 support
  3946. #EGG_IPV6_SUPPORTED
  3947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether IPv6 is enabled" >&5
  3948. $as_echo_n "checking whether IPv6 is enabled... " >&6; }
  3949. # Check whether --enable-ipv6 was given.
  3950. if test "${enable_ipv6+set}" = set; then :
  3951. enableval=$enable_ipv6;
  3952. enable_ipv6=$enableval
  3953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  3954. $as_echo "$enableval" >&6; }
  3955. else
  3956. # default if not given is ENABLED
  3957. if test "x$enableval" = "x"; then
  3958. enableval="yes"
  3959. fi
  3960. enable_ipv6=$enableval
  3961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  3962. $as_echo "$enableval" >&6; }
  3963. $as_echo "#define USE_IPV6 1" >>build/confdefs.h
  3964. fi
  3965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
  3966. $as_echo_n "checking for socklen_t... " >&6; }
  3967. if ${egg_cv_socklen_t+:} false; then :
  3968. $as_echo_n "(cached) " >&6
  3969. else
  3970. if test "$cross_compiling" = yes; then :
  3971. egg_cv_socklen_t=no
  3972. else
  3973. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3974. /* end build/confdefs.h. */
  3975. #include <unistd.h>
  3976. #include <sys/types.h>
  3977. #include <sys/socket.h>
  3978. #include <netinet/in.h>
  3979. #include <arpa/inet.h>
  3980. int main()
  3981. {
  3982. socklen_t test = sizeof(int);
  3983. return 0;
  3984. }
  3985. _ACEOF
  3986. if ac_fn_cxx_try_run "$LINENO"; then :
  3987. egg_cv_socklen_t=yes
  3988. else
  3989. egg_cv_socklen_t=no
  3990. fi
  3991. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3992. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3993. fi
  3994. fi
  3995. if test "$egg_cv_socklen_t" = "yes"; then
  3996. $as_echo "#define HAVE_SOCKLEN_T 1" >>build/confdefs.h
  3997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3998. $as_echo "yes" >&6; }
  3999. else
  4000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4001. $as_echo "no" >&6; }
  4002. fi
  4003. # Check for inconsistent random() functions
  4004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random limit" >&5
  4005. $as_echo_n "checking for random limit... " >&6; }
  4006. case "$egg_cv_var_system_type" in
  4007. SunOS) RMAX=0x7FFFFFFF
  4008. ;;
  4009. *) RMAX=RAND_MAX
  4010. ;;
  4011. esac
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMAX" >&5
  4013. $as_echo "$RMAX" >&6; }
  4014. cat >>build/confdefs.h <<_ACEOF
  4015. #define RANDOM_MAX $RMAX
  4016. _ACEOF
  4017. # Create static binaries
  4018. if test "$USE_STATIC" = "yes"
  4019. then
  4020. if test -n "$GXX"
  4021. then
  4022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static" >&5
  4023. $as_echo_n "checking whether the compiler understands -static... " >&6; }
  4024. if ${egg_cv_var_ccstatic+:} false; then :
  4025. $as_echo_n "(cached) " >&6
  4026. else
  4027. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4028. /* end build/confdefs.h. */
  4029. int
  4030. main ()
  4031. {
  4032. ;
  4033. return 0;
  4034. }
  4035. _ACEOF
  4036. if ac_fn_cxx_try_compile "$LINENO"; then :
  4037. egg_cv_var_ccstatic="yes"
  4038. else
  4039. egg_cv_var_ccstatic="no"
  4040. fi
  4041. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4042. fi
  4043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccstatic" >&5
  4044. $as_echo "$egg_cv_var_ccstatic" >&6; }
  4045. if ! test "$egg_cv_var_ccstatic" = "yes"
  4046. then
  4047. cat << 'EOF' >&2
  4048. configure: error:
  4049. Your OS or C++ compiler does not support -static.
  4050. This compile flag is required for the botpack on this OS.
  4051. EOF
  4052. exit 1
  4053. fi
  4054. fi
  4055. STATIC="-static"
  4056. else
  4057. STATIC=""
  4058. fi
  4059. #checkpoint
  4060. cat >confcache <<\_ACEOF
  4061. # This file is a shell script that caches the results of configure
  4062. # tests run on this system so they can be shared between configure
  4063. # scripts and configure runs, see configure's option --config-cache.
  4064. # It is not useful on other systems. If it contains results you don't
  4065. # want to keep, you may remove or edit it.
  4066. #
  4067. # build/config.status only pays attention to the cache file if you give it
  4068. # the --recheck option to rerun configure.
  4069. #
  4070. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4071. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4072. # following values.
  4073. _ACEOF
  4074. # The following way of writing the cache mishandles newlines in values,
  4075. # but we know of no workaround that is simple, portable, and efficient.
  4076. # So, we kill variables containing newlines.
  4077. # Ultrix sh set writes to stderr and can't be redirected directly,
  4078. # and sets the high bit in the cache file unless we assign to the vars.
  4079. (
  4080. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4081. eval ac_val=\$$ac_var
  4082. case $ac_val in #(
  4083. *${as_nl}*)
  4084. case $ac_var in #(
  4085. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4086. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4087. esac
  4088. case $ac_var in #(
  4089. _ | IFS | as_nl) ;; #(
  4090. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4091. *) { eval $ac_var=; unset $ac_var;} ;;
  4092. esac ;;
  4093. esac
  4094. done
  4095. (set) 2>&1 |
  4096. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4097. *${as_nl}ac_space=\ *)
  4098. # `set' does not quote correctly, so add quotes: double-quote
  4099. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4100. sed -n \
  4101. "s/'/'\\\\''/g;
  4102. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4103. ;; #(
  4104. *)
  4105. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4106. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4107. ;;
  4108. esac |
  4109. sort
  4110. ) |
  4111. sed '
  4112. /^ac_cv_env_/b end
  4113. t clear
  4114. :clear
  4115. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4116. t end
  4117. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4118. :end' >>confcache
  4119. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4120. if test -w "$cache_file"; then
  4121. if test "x$cache_file" != "x/dev/null"; then
  4122. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4123. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4124. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4125. cat confcache >"$cache_file"
  4126. else
  4127. case $cache_file in #(
  4128. */* | ?:*)
  4129. mv -f confcache "$cache_file"$$ &&
  4130. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4131. *)
  4132. mv -f confcache "$cache_file" ;;
  4133. esac
  4134. fi
  4135. fi
  4136. else
  4137. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4138. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4139. fi
  4140. fi
  4141. rm -f confcache
  4142. # Checks for system libraries
  4143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  4144. $as_echo_n "checking for socket in -lsocket... " >&6; }
  4145. if ${ac_cv_lib_socket_socket+:} false; then :
  4146. $as_echo_n "(cached) " >&6
  4147. else
  4148. ac_check_lib_save_LIBS=$LIBS
  4149. LIBS="-lsocket $LIBS"
  4150. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4151. /* end build/confdefs.h. */
  4152. /* Override any GCC internal prototype to avoid an error.
  4153. Use char because int might match the return type of a GCC
  4154. builtin and then its argument prototype would still apply. */
  4155. #ifdef __cplusplus
  4156. extern "C"
  4157. #endif
  4158. char socket ();
  4159. int
  4160. main ()
  4161. {
  4162. return socket ();
  4163. ;
  4164. return 0;
  4165. }
  4166. _ACEOF
  4167. if ac_fn_cxx_try_link "$LINENO"; then :
  4168. ac_cv_lib_socket_socket=yes
  4169. else
  4170. ac_cv_lib_socket_socket=no
  4171. fi
  4172. rm -f core conftest.err conftest.$ac_objext \
  4173. conftest$ac_exeext conftest.$ac_ext
  4174. LIBS=$ac_check_lib_save_LIBS
  4175. fi
  4176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  4177. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  4178. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  4179. cat >>build/confdefs.h <<_ACEOF
  4180. #define HAVE_LIBSOCKET 1
  4181. _ACEOF
  4182. LIBS="-lsocket $LIBS"
  4183. fi
  4184. # AC_CHECK_LIB(nsl, connect)
  4185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  4186. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  4187. if ${ac_cv_lib_dl_dlopen+:} false; then :
  4188. $as_echo_n "(cached) " >&6
  4189. else
  4190. ac_check_lib_save_LIBS=$LIBS
  4191. LIBS="-ldl $LIBS"
  4192. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4193. /* end build/confdefs.h. */
  4194. /* Override any GCC internal prototype to avoid an error.
  4195. Use char because int might match the return type of a GCC
  4196. builtin and then its argument prototype would still apply. */
  4197. #ifdef __cplusplus
  4198. extern "C"
  4199. #endif
  4200. char dlopen ();
  4201. int
  4202. main ()
  4203. {
  4204. return dlopen ();
  4205. ;
  4206. return 0;
  4207. }
  4208. _ACEOF
  4209. if ac_fn_cxx_try_link "$LINENO"; then :
  4210. ac_cv_lib_dl_dlopen=yes
  4211. else
  4212. ac_cv_lib_dl_dlopen=no
  4213. fi
  4214. rm -f core conftest.err conftest.$ac_objext \
  4215. conftest$ac_exeext conftest.$ac_ext
  4216. LIBS=$ac_check_lib_save_LIBS
  4217. fi
  4218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  4219. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  4220. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  4221. cat >>build/confdefs.h <<_ACEOF
  4222. #define HAVE_LIBDL 1
  4223. _ACEOF
  4224. LIBS="-ldl $LIBS"
  4225. fi
  4226. # AC_CHECK_LIB(nsl, gethostbyname)
  4227. # AC_CHECK_LIB(dns, gethostbyname)
  4228. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4229. # This is needed for Tcl libraries compiled with thread support
  4230. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4231. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4232. # ac_cv_lib_pthread="-lpthread"], [dnl
  4233. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4234. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4235. # ac_cv_lib_pthread="-lpthread"], [dnl
  4236. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4237. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4238. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4239. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4240. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4241. # ac_cv_lib_pthread=""],
  4242. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4243. if test "$SUNOS" = "yes"; then
  4244. # For suns without yp
  4245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
  4246. $as_echo_n "checking for main in -ldl... " >&6; }
  4247. if ${ac_cv_lib_dl_main+:} false; then :
  4248. $as_echo_n "(cached) " >&6
  4249. else
  4250. ac_check_lib_save_LIBS=$LIBS
  4251. LIBS="-ldl $LIBS"
  4252. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4253. /* end build/confdefs.h. */
  4254. int
  4255. main ()
  4256. {
  4257. return main ();
  4258. ;
  4259. return 0;
  4260. }
  4261. _ACEOF
  4262. if ac_fn_cxx_try_link "$LINENO"; then :
  4263. ac_cv_lib_dl_main=yes
  4264. else
  4265. ac_cv_lib_dl_main=no
  4266. fi
  4267. rm -f core conftest.err conftest.$ac_objext \
  4268. conftest$ac_exeext conftest.$ac_ext
  4269. LIBS=$ac_check_lib_save_LIBS
  4270. fi
  4271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
  4272. $as_echo "$ac_cv_lib_dl_main" >&6; }
  4273. if test "x$ac_cv_lib_dl_main" = xyes; then :
  4274. cat >>build/confdefs.h <<_ACEOF
  4275. #define HAVE_LIBDL 1
  4276. _ACEOF
  4277. LIBS="-ldl $LIBS"
  4278. fi
  4279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
  4280. $as_echo_n "checking for main in -lsocket... " >&6; }
  4281. if ${ac_cv_lib_socket_main+:} false; then :
  4282. $as_echo_n "(cached) " >&6
  4283. else
  4284. ac_check_lib_save_LIBS=$LIBS
  4285. LIBS="-lsocket $LIBS"
  4286. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4287. /* end build/confdefs.h. */
  4288. int
  4289. main ()
  4290. {
  4291. return main ();
  4292. ;
  4293. return 0;
  4294. }
  4295. _ACEOF
  4296. if ac_fn_cxx_try_link "$LINENO"; then :
  4297. ac_cv_lib_socket_main=yes
  4298. else
  4299. ac_cv_lib_socket_main=no
  4300. fi
  4301. rm -f core conftest.err conftest.$ac_objext \
  4302. conftest$ac_exeext conftest.$ac_ext
  4303. LIBS=$ac_check_lib_save_LIBS
  4304. fi
  4305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
  4306. $as_echo "$ac_cv_lib_socket_main" >&6; }
  4307. if test "x$ac_cv_lib_socket_main" = xyes; then :
  4308. cat >>build/confdefs.h <<_ACEOF
  4309. #define HAVE_LIBSOCKET 1
  4310. _ACEOF
  4311. LIBS="-lsocket $LIBS"
  4312. fi
  4313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
  4314. $as_echo_n "checking for main in -lnsl... " >&6; }
  4315. if ${ac_cv_lib_nsl_main+:} false; then :
  4316. $as_echo_n "(cached) " >&6
  4317. else
  4318. ac_check_lib_save_LIBS=$LIBS
  4319. LIBS="-lnsl $LIBS"
  4320. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4321. /* end build/confdefs.h. */
  4322. int
  4323. main ()
  4324. {
  4325. return main ();
  4326. ;
  4327. return 0;
  4328. }
  4329. _ACEOF
  4330. if ac_fn_cxx_try_link "$LINENO"; then :
  4331. ac_cv_lib_nsl_main=yes
  4332. else
  4333. ac_cv_lib_nsl_main=no
  4334. fi
  4335. rm -f core conftest.err conftest.$ac_objext \
  4336. conftest$ac_exeext conftest.$ac_ext
  4337. LIBS=$ac_check_lib_save_LIBS
  4338. fi
  4339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
  4340. $as_echo "$ac_cv_lib_nsl_main" >&6; }
  4341. if test "x$ac_cv_lib_nsl_main" = xyes; then :
  4342. cat >>build/confdefs.h <<_ACEOF
  4343. #define HAVE_LIBNSL 1
  4344. _ACEOF
  4345. LIBS="-lnsl $LIBS"
  4346. fi
  4347. fi
  4348. # Checks for header files
  4349. ac_header_dirent=no
  4350. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4351. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  4353. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  4354. if eval \${$as_ac_Header+:} false; then :
  4355. $as_echo_n "(cached) " >&6
  4356. else
  4357. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4358. /* end build/confdefs.h. */
  4359. #include <sys/types.h>
  4360. #include <$ac_hdr>
  4361. int
  4362. main ()
  4363. {
  4364. if ((DIR *) 0)
  4365. return 0;
  4366. ;
  4367. return 0;
  4368. }
  4369. _ACEOF
  4370. if ac_fn_cxx_try_compile "$LINENO"; then :
  4371. eval "$as_ac_Header=yes"
  4372. else
  4373. eval "$as_ac_Header=no"
  4374. fi
  4375. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4376. fi
  4377. eval ac_res=\$$as_ac_Header
  4378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  4379. $as_echo "$ac_res" >&6; }
  4380. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4381. cat >>build/confdefs.h <<_ACEOF
  4382. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4383. _ACEOF
  4384. ac_header_dirent=$ac_hdr; break
  4385. fi
  4386. done
  4387. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4388. if test $ac_header_dirent = dirent.h; then
  4389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  4390. $as_echo_n "checking for library containing opendir... " >&6; }
  4391. if ${ac_cv_search_opendir+:} false; then :
  4392. $as_echo_n "(cached) " >&6
  4393. else
  4394. ac_func_search_save_LIBS=$LIBS
  4395. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4396. /* end build/confdefs.h. */
  4397. /* Override any GCC internal prototype to avoid an error.
  4398. Use char because int might match the return type of a GCC
  4399. builtin and then its argument prototype would still apply. */
  4400. #ifdef __cplusplus
  4401. extern "C"
  4402. #endif
  4403. char opendir ();
  4404. int
  4405. main ()
  4406. {
  4407. return opendir ();
  4408. ;
  4409. return 0;
  4410. }
  4411. _ACEOF
  4412. for ac_lib in '' dir; do
  4413. if test -z "$ac_lib"; then
  4414. ac_res="none required"
  4415. else
  4416. ac_res=-l$ac_lib
  4417. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4418. fi
  4419. if ac_fn_cxx_try_link "$LINENO"; then :
  4420. ac_cv_search_opendir=$ac_res
  4421. fi
  4422. rm -f core conftest.err conftest.$ac_objext \
  4423. conftest$ac_exeext
  4424. if ${ac_cv_search_opendir+:} false; then :
  4425. break
  4426. fi
  4427. done
  4428. if ${ac_cv_search_opendir+:} false; then :
  4429. else
  4430. ac_cv_search_opendir=no
  4431. fi
  4432. rm conftest.$ac_ext
  4433. LIBS=$ac_func_search_save_LIBS
  4434. fi
  4435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  4436. $as_echo "$ac_cv_search_opendir" >&6; }
  4437. ac_res=$ac_cv_search_opendir
  4438. if test "$ac_res" != no; then :
  4439. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4440. fi
  4441. else
  4442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  4443. $as_echo_n "checking for library containing opendir... " >&6; }
  4444. if ${ac_cv_search_opendir+:} false; then :
  4445. $as_echo_n "(cached) " >&6
  4446. else
  4447. ac_func_search_save_LIBS=$LIBS
  4448. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4449. /* end build/confdefs.h. */
  4450. /* Override any GCC internal prototype to avoid an error.
  4451. Use char because int might match the return type of a GCC
  4452. builtin and then its argument prototype would still apply. */
  4453. #ifdef __cplusplus
  4454. extern "C"
  4455. #endif
  4456. char opendir ();
  4457. int
  4458. main ()
  4459. {
  4460. return opendir ();
  4461. ;
  4462. return 0;
  4463. }
  4464. _ACEOF
  4465. for ac_lib in '' x; do
  4466. if test -z "$ac_lib"; then
  4467. ac_res="none required"
  4468. else
  4469. ac_res=-l$ac_lib
  4470. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4471. fi
  4472. if ac_fn_cxx_try_link "$LINENO"; then :
  4473. ac_cv_search_opendir=$ac_res
  4474. fi
  4475. rm -f core conftest.err conftest.$ac_objext \
  4476. conftest$ac_exeext
  4477. if ${ac_cv_search_opendir+:} false; then :
  4478. break
  4479. fi
  4480. done
  4481. if ${ac_cv_search_opendir+:} false; then :
  4482. else
  4483. ac_cv_search_opendir=no
  4484. fi
  4485. rm conftest.$ac_ext
  4486. LIBS=$ac_func_search_save_LIBS
  4487. fi
  4488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  4489. $as_echo "$ac_cv_search_opendir" >&6; }
  4490. ac_res=$ac_cv_search_opendir
  4491. if test "$ac_res" != no; then :
  4492. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4493. fi
  4494. fi
  4495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4496. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  4497. if ${ac_cv_header_sys_wait_h+:} false; then :
  4498. $as_echo_n "(cached) " >&6
  4499. else
  4500. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4501. /* end build/confdefs.h. */
  4502. #include <sys/types.h>
  4503. #include <sys/wait.h>
  4504. #ifndef WEXITSTATUS
  4505. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  4506. #endif
  4507. #ifndef WIFEXITED
  4508. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4509. #endif
  4510. int
  4511. main ()
  4512. {
  4513. int s;
  4514. wait (&s);
  4515. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4516. ;
  4517. return 0;
  4518. }
  4519. _ACEOF
  4520. if ac_fn_cxx_try_compile "$LINENO"; then :
  4521. ac_cv_header_sys_wait_h=yes
  4522. else
  4523. ac_cv_header_sys_wait_h=no
  4524. fi
  4525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4526. fi
  4527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  4528. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  4529. if test $ac_cv_header_sys_wait_h = yes; then
  4530. $as_echo "#define HAVE_SYS_WAIT_H 1" >>build/confdefs.h
  4531. fi
  4532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  4533. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  4534. if ${ac_cv_header_time+:} false; then :
  4535. $as_echo_n "(cached) " >&6
  4536. else
  4537. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4538. /* end build/confdefs.h. */
  4539. #include <sys/types.h>
  4540. #include <sys/time.h>
  4541. #include <time.h>
  4542. int
  4543. main ()
  4544. {
  4545. if ((struct tm *) 0)
  4546. return 0;
  4547. ;
  4548. return 0;
  4549. }
  4550. _ACEOF
  4551. if ac_fn_cxx_try_compile "$LINENO"; then :
  4552. ac_cv_header_time=yes
  4553. else
  4554. ac_cv_header_time=no
  4555. fi
  4556. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4557. fi
  4558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  4559. $as_echo "$ac_cv_header_time" >&6; }
  4560. if test $ac_cv_header_time = yes; then
  4561. $as_echo "#define TIME_WITH_SYS_TIME 1" >>build/confdefs.h
  4562. fi
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  4564. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  4565. if ${ac_cv_header_stat_broken+:} false; then :
  4566. $as_echo_n "(cached) " >&6
  4567. else
  4568. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4569. /* end build/confdefs.h. */
  4570. #include <sys/types.h>
  4571. #include <sys/stat.h>
  4572. #if defined S_ISBLK && defined S_IFDIR
  4573. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  4574. #endif
  4575. #if defined S_ISBLK && defined S_IFCHR
  4576. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  4577. #endif
  4578. #if defined S_ISLNK && defined S_IFREG
  4579. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  4580. #endif
  4581. #if defined S_ISSOCK && defined S_IFREG
  4582. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  4583. #endif
  4584. _ACEOF
  4585. if ac_fn_cxx_try_compile "$LINENO"; then :
  4586. ac_cv_header_stat_broken=no
  4587. else
  4588. ac_cv_header_stat_broken=yes
  4589. fi
  4590. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4591. fi
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  4593. $as_echo "$ac_cv_header_stat_broken" >&6; }
  4594. if test $ac_cv_header_stat_broken = yes; then
  4595. $as_echo "#define STAT_MACROS_BROKEN 1" >>build/confdefs.h
  4596. fi
  4597. #checkpoint
  4598. cat >confcache <<\_ACEOF
  4599. # This file is a shell script that caches the results of configure
  4600. # tests run on this system so they can be shared between configure
  4601. # scripts and configure runs, see configure's option --config-cache.
  4602. # It is not useful on other systems. If it contains results you don't
  4603. # want to keep, you may remove or edit it.
  4604. #
  4605. # build/config.status only pays attention to the cache file if you give it
  4606. # the --recheck option to rerun configure.
  4607. #
  4608. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4609. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4610. # following values.
  4611. _ACEOF
  4612. # The following way of writing the cache mishandles newlines in values,
  4613. # but we know of no workaround that is simple, portable, and efficient.
  4614. # So, we kill variables containing newlines.
  4615. # Ultrix sh set writes to stderr and can't be redirected directly,
  4616. # and sets the high bit in the cache file unless we assign to the vars.
  4617. (
  4618. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4619. eval ac_val=\$$ac_var
  4620. case $ac_val in #(
  4621. *${as_nl}*)
  4622. case $ac_var in #(
  4623. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4624. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4625. esac
  4626. case $ac_var in #(
  4627. _ | IFS | as_nl) ;; #(
  4628. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4629. *) { eval $ac_var=; unset $ac_var;} ;;
  4630. esac ;;
  4631. esac
  4632. done
  4633. (set) 2>&1 |
  4634. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4635. *${as_nl}ac_space=\ *)
  4636. # `set' does not quote correctly, so add quotes: double-quote
  4637. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4638. sed -n \
  4639. "s/'/'\\\\''/g;
  4640. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4641. ;; #(
  4642. *)
  4643. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4644. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4645. ;;
  4646. esac |
  4647. sort
  4648. ) |
  4649. sed '
  4650. /^ac_cv_env_/b end
  4651. t clear
  4652. :clear
  4653. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4654. t end
  4655. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4656. :end' >>confcache
  4657. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4658. if test -w "$cache_file"; then
  4659. if test "x$cache_file" != "x/dev/null"; then
  4660. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4661. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4662. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4663. cat confcache >"$cache_file"
  4664. else
  4665. case $cache_file in #(
  4666. */* | ?:*)
  4667. mv -f confcache "$cache_file"$$ &&
  4668. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4669. *)
  4670. mv -f confcache "$cache_file" ;;
  4671. esac
  4672. fi
  4673. fi
  4674. else
  4675. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4676. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4677. fi
  4678. fi
  4679. rm -f confcache
  4680. for ac_header in stdarg.h std_arg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  4681. do :
  4682. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4683. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4684. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4685. cat >>build/confdefs.h <<_ACEOF
  4686. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4687. _ACEOF
  4688. fi
  4689. done
  4690. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h sys/ptrace.h paths.h sys/prctl.h
  4691. do :
  4692. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4693. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4694. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4695. cat >>build/confdefs.h <<_ACEOF
  4696. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4697. _ACEOF
  4698. fi
  4699. done
  4700. #checkpoint
  4701. cat >confcache <<\_ACEOF
  4702. # This file is a shell script that caches the results of configure
  4703. # tests run on this system so they can be shared between configure
  4704. # scripts and configure runs, see configure's option --config-cache.
  4705. # It is not useful on other systems. If it contains results you don't
  4706. # want to keep, you may remove or edit it.
  4707. #
  4708. # build/config.status only pays attention to the cache file if you give it
  4709. # the --recheck option to rerun configure.
  4710. #
  4711. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4712. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4713. # following values.
  4714. _ACEOF
  4715. # The following way of writing the cache mishandles newlines in values,
  4716. # but we know of no workaround that is simple, portable, and efficient.
  4717. # So, we kill variables containing newlines.
  4718. # Ultrix sh set writes to stderr and can't be redirected directly,
  4719. # and sets the high bit in the cache file unless we assign to the vars.
  4720. (
  4721. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4722. eval ac_val=\$$ac_var
  4723. case $ac_val in #(
  4724. *${as_nl}*)
  4725. case $ac_var in #(
  4726. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4727. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4728. esac
  4729. case $ac_var in #(
  4730. _ | IFS | as_nl) ;; #(
  4731. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4732. *) { eval $ac_var=; unset $ac_var;} ;;
  4733. esac ;;
  4734. esac
  4735. done
  4736. (set) 2>&1 |
  4737. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4738. *${as_nl}ac_space=\ *)
  4739. # `set' does not quote correctly, so add quotes: double-quote
  4740. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4741. sed -n \
  4742. "s/'/'\\\\''/g;
  4743. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4744. ;; #(
  4745. *)
  4746. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4747. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4748. ;;
  4749. esac |
  4750. sort
  4751. ) |
  4752. sed '
  4753. /^ac_cv_env_/b end
  4754. t clear
  4755. :clear
  4756. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4757. t end
  4758. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4759. :end' >>confcache
  4760. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4761. if test -w "$cache_file"; then
  4762. if test "x$cache_file" != "x/dev/null"; then
  4763. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4764. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4765. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4766. cat confcache >"$cache_file"
  4767. else
  4768. case $cache_file in #(
  4769. */* | ?:*)
  4770. mv -f confcache "$cache_file"$$ &&
  4771. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4772. *)
  4773. mv -f confcache "$cache_file" ;;
  4774. esac
  4775. fi
  4776. fi
  4777. else
  4778. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4779. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4780. fi
  4781. fi
  4782. rm -f confcache
  4783. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  4784. #AC_CHECK_HEADERS(zlib.h)
  4785. #EGG_CHECK_ZLIB
  4786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to OpenSSL" >&5
  4787. $as_echo_n "checking for path to OpenSSL... " >&6; }
  4788. # Check whether --with-openssl was given.
  4789. if test "${with_openssl+set}" = set; then :
  4790. withval=$with_openssl; with_openssl_path=$withval
  4791. else
  4792. with_openssl_path=auto
  4793. fi
  4794. cf_openssl_basedir=""
  4795. if test "$with_openssl_path" != "auto"; then
  4796. cf_openssl_basedir="`echo ${with_openssl_path} | sed 's/\/$//'`"
  4797. else
  4798. for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do
  4799. if test -f "${dirs}/include/openssl/opensslv.h" ; then
  4800. cf_openssl_basedir="${dirs}"
  4801. break
  4802. fi
  4803. done
  4804. unset dirs
  4805. fi
  4806. if test ! -z "$cf_openssl_basedir"; then
  4807. if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
  4808. SSL_INCLUDES="-I${cf_openssl_basedir}/include"
  4809. SSL_LIBS="-L${cf_openssl_basedir}/lib"
  4810. else
  4811. cf_openssl_basedir=""
  4812. fi
  4813. else
  4814. if test -f "/usr/include/openssl/opensslv.h" ; then
  4815. cf_openssl_basedir="/usr"
  4816. fi
  4817. fi
  4818. if test ! -z "$cf_openssl_basedir"; then
  4819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
  4820. $as_echo "$cf_openssl_basedir" >&6; }
  4821. else
  4822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  4823. $as_echo "not found" >&6; }
  4824. as_fn_error 1 "OpenSSL is required." "$LINENO" 5
  4825. fi
  4826. unset cf_openssl_basedir
  4827. save_CXX="$CXX"
  4828. CXX="$CXX $SSL_INCLUDES"
  4829. save_LIBS="$LIBS"
  4830. LIBS="$LIBS $SSL_LIBS"
  4831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
  4832. $as_echo_n "checking for OpenSSL version... " >&6; }
  4833. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4834. /* end build/confdefs.h. */
  4835. #include <openssl/opensslv.h>
  4836. int
  4837. main ()
  4838. {
  4839. #if !defined(OPENSSL_VERSION_NUMBER)
  4840. #error "Missing openssl version"
  4841. #endif
  4842. #if (OPENSSL_VERSION_NUMBER < 0x0090800f)
  4843. #error "Old/Insecure OpenSSL version " OPENSSL_VERSION_TEXT
  4844. #endif
  4845. ;
  4846. return 0;
  4847. }
  4848. _ACEOF
  4849. if ac_fn_cxx_try_compile "$LINENO"; then :
  4850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  4851. $as_echo "OK" >&6; }
  4852. else
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old." >&5
  4854. $as_echo "too old." >&6; }
  4855. as_fn_error 1 "OpenSSL version is too old." "$LINENO" 5
  4856. fi
  4857. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4858. CXX="$CXX $SSL_LIBS"
  4859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AES_encrypt in -lcrypto" >&5
  4860. $as_echo_n "checking for AES_encrypt in -lcrypto... " >&6; }
  4861. if ${ac_cv_lib_crypto_AES_encrypt+:} false; then :
  4862. $as_echo_n "(cached) " >&6
  4863. else
  4864. ac_check_lib_save_LIBS=$LIBS
  4865. LIBS="-lcrypto $LIBS"
  4866. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4867. /* end build/confdefs.h. */
  4868. /* Override any GCC internal prototype to avoid an error.
  4869. Use char because int might match the return type of a GCC
  4870. builtin and then its argument prototype would still apply. */
  4871. #ifdef __cplusplus
  4872. extern "C"
  4873. #endif
  4874. char AES_encrypt ();
  4875. int
  4876. main ()
  4877. {
  4878. return AES_encrypt ();
  4879. ;
  4880. return 0;
  4881. }
  4882. _ACEOF
  4883. if ac_fn_cxx_try_link "$LINENO"; then :
  4884. ac_cv_lib_crypto_AES_encrypt=yes
  4885. else
  4886. ac_cv_lib_crypto_AES_encrypt=no
  4887. fi
  4888. rm -f core conftest.err conftest.$ac_objext \
  4889. conftest$ac_exeext conftest.$ac_ext
  4890. LIBS=$ac_check_lib_save_LIBS
  4891. fi
  4892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_AES_encrypt" >&5
  4893. $as_echo "$ac_cv_lib_crypto_AES_encrypt" >&6; }
  4894. if test "x$ac_cv_lib_crypto_AES_encrypt" = xyes; then :
  4895. if test "$USE_STATIC" = "yes"; then
  4896. SSL_LIBS="$SSL_LIBS -Wl,-Bstatic -lcrypto -Wl,-Bdynamic"
  4897. else
  4898. SSL_LIBS="$SSL_LIBS -lcrypto"
  4899. fi
  4900. else
  4901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found." >&5
  4902. $as_echo "not found." >&6; }
  4903. as_fn_error 1 "Libcrypto/openssl is required." "$LINENO" 5
  4904. fi
  4905. CXX="$save_CXX"
  4906. LIBS="$save_LIBS"
  4907. cat >>build/confdefs.h <<_ACEOF
  4908. #define EGG_SSL_EXT 1
  4909. _ACEOF
  4910. # TCL checks
  4911. # Tcl version to recommend if no Tcl is found, and the site where it can be
  4912. # found for download.
  4913. tclrecommendver="8.5.X"
  4914. tclrecommendsite="ftp://tcl.activestate.com/pub/tcl/tcl8_5/"
  4915. # Tcl library filename prefixes, suffixes, and search paths.
  4916. tcllibnames="tcl8.5 tcl85 tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 \
  4917. tcl8.1 tcl81 tcl8.0 tcl80 tcl tcl7.6 tcl76 tcl7.5 tcl75 \
  4918. tcl7.4 tcl74 tcl7.3 tcl73 tcl7.2 tcl72 tcl7.1 tcl71 \
  4919. tcl7.0 tcl70"
  4920. tcllibextensions=".so .so.1 .so.1.0 .so.1.1 .so.1.2 .dll .dylib .sl .a"
  4921. tcllibpaths="$HOME/lib $HOME/tcl/lib \
  4922. /usr/local/lib /usr/lib /lib /lib64 /usr/lib64 \
  4923. /usr/local/lib/tcl8.5 /usr/lib/tcl8.5 \
  4924. /usr/local/lib/tcl8.4 /usr/lib/tcl8.4 \
  4925. /usr/local/lib/tcl8.3 /usr/lib/tcl8.3 \
  4926. /usr/local/pkgs/tcl/lib /sys/lib /usr/pkg/lib \
  4927. /usr/i486-linuxaout/lib /beos/system/lib $HOME"
  4928. # Tcl header filenames and search paths.
  4929. tclheadernames="tcl.h"
  4930. tclheaderpaths="$HOME/include $HOME/tcl/include \
  4931. /usr/local/include /usr/include \
  4932. /usr/local/include/tcl8.5 /usr/include/tcl8.5 \
  4933. /usr/local/include/tcl8.4 /usr/include/tcl8.4 \
  4934. /usr/local/include/tcl8.3 /usr/include/tcl8.3 \
  4935. /usr/local/pkgs/tcl/include /sys/include \
  4936. /usr/pkg/lib /beos/system/include /beos/devel/include $HOME"
  4937. # Misc Tcl checks.
  4938. # Check whether --with-tcllib was given.
  4939. if test "${with_tcllib+set}" = set; then :
  4940. withval=$with_tcllib; tcllibname="$withval"
  4941. fi
  4942. # Check whether --with-tclinc was given.
  4943. if test "${with_tclinc+set}" = set; then :
  4944. withval=$with_tclinc; tclincname="$withval"
  4945. fi
  4946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TCL Script is enabled" >&5
  4947. $as_echo_n "checking whether TCL Script is enabled... " >&6; }
  4948. # Check whether --enable-script-tcl was given.
  4949. if test "${enable_script_tcl+set}" = set; then :
  4950. enableval=$enable_script_tcl;
  4951. enable_script_tcl=$enableval
  4952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  4953. $as_echo "$enableval" >&6; }
  4954. else
  4955. # default if not given is ENABLED
  4956. if test "x$enableval" = "x"; then
  4957. enableval="yes"
  4958. fi
  4959. enable_script_tcl=$enableval
  4960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  4961. $as_echo "$enableval" >&6; }
  4962. $as_echo "#define USE_SCRIPT_TCL 1" >>build/confdefs.h
  4963. fi
  4964. WARN=0
  4965. # Make sure either both or neither $tcllibname and $tclincname are set
  4966. if test "x$tcllibname" != x; then
  4967. if test "x$tclincname" = x; then
  4968. WARN=1
  4969. tcllibname=""
  4970. TCLLIB=""
  4971. TCLINC=""
  4972. fi
  4973. else
  4974. if test "x$tclincname" != x; then
  4975. WARN=1
  4976. tclincname=""
  4977. TCLLIB=""
  4978. TCLINC=""
  4979. fi
  4980. fi
  4981. if test "$WARN" = 1; then
  4982. cat << 'EOF' >&2
  4983. configure: WARNING:
  4984. You must specify both --with-tcllib and --with-tclinc for either to work.
  4985. configure will now attempt to autodetect both the Tcl library and header.
  4986. EOF
  4987. fi
  4988. WARN=0
  4989. # Make sure either both or neither $TCLLIB and $TCLINC are set
  4990. if test "x$TCLLIB" != x; then
  4991. if test "x$TCLINC" = x; then
  4992. WARN=1
  4993. WVAR1=TCLLIB
  4994. WVAR2=TCLINC
  4995. TCLLIB=""
  4996. fi
  4997. else
  4998. if test "x$TCLINC" != x; then
  4999. WARN=1
  5000. WVAR1=TCLINC
  5001. WVAR2=TCLLIB
  5002. TCLINC=""
  5003. fi
  5004. fi
  5005. if test "$WARN" = 1; then
  5006. cat << EOF >&2
  5007. configure: WARNING:
  5008. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  5009. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5010. configure will now attempt to autodetect both the Tcl library and header.
  5011. EOF
  5012. fi
  5013. # Look for Tcl library: if $tcllibname is set, check there first
  5014. if test "x$tcllibname" != x; then
  5015. if test -f "$tcllibname" && test -r "$tcllibname"; then
  5016. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  5017. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  5018. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  5019. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  5020. else
  5021. cat << EOF >&2
  5022. configure: WARNING:
  5023. The file '$tcllibname' given to option --with-tcllib is not valid.
  5024. configure will now attempt to autodetect both the Tcl library and header.
  5025. EOF
  5026. tcllibname=""
  5027. tclincname=""
  5028. TCLLIB=""
  5029. TCLLIBFN=""
  5030. TCLINC=""
  5031. TCLINCFN=""
  5032. fi
  5033. fi
  5034. # Look for Tcl header: if $tclincname is set, check there first
  5035. if test "x$tclincname" != x; then
  5036. if test -f "$tclincname" && test -r "$tclincname"; then
  5037. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  5038. TCLINCFN=`$BASENAME $tclincname`
  5039. else
  5040. cat << EOF >&2
  5041. configure: WARNING:
  5042. The file '$tclincname' given to option --with-tclinc is not valid.
  5043. configure will now attempt to autodetect both the Tcl library and header.
  5044. EOF
  5045. tcllibname=""
  5046. tclincname=""
  5047. TCLLIB=""
  5048. TCLLIBFN=""
  5049. TCLINC=""
  5050. TCLINCFN=""
  5051. fi
  5052. fi
  5053. # Look for Tcl library: if $TCLLIB is set, check there first
  5054. if test "x$TCLLIBFN" = x && test "x$TCLLIB" != x; then
  5055. if test -d "$TCLLIB"; then
  5056. for tcllibfns in $tcllibnames; do
  5057. for tcllibext in $tcllibextensions; do
  5058. if test -r "${TCLLIB}/lib${tcllibfns}${tcllibext}"; then
  5059. TCLLIBFN="${tcllibfns}${tcllibext}"
  5060. TCLLIBEXT="$tcllibext"
  5061. TCLLIBFNS="$tcllibfns"
  5062. break 2
  5063. fi
  5064. done
  5065. done
  5066. fi
  5067. if test "x$TCLLIBFN" = x; then
  5068. cat << 'EOF' >&2
  5069. configure: WARNING:
  5070. Environment variable TCLLIB was set, but incorrectly.
  5071. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5072. configure will now attempt to autodetect both the Tcl library and header.
  5073. EOF
  5074. TCLLIB=""
  5075. TCLLIBFN=""
  5076. TCLINC=""
  5077. TCLINCFN=""
  5078. fi
  5079. fi
  5080. # Look for Tcl header: if $TCLINC is set, check there first
  5081. if test "x$TCLINCFN" = x && test "x$TCLINC" != x; then
  5082. if test -d "$TCLINC"; then
  5083. for tclheaderfn in $tclheadernames; do
  5084. if test -r "${TCLINC}/${tclheaderfn}"; then
  5085. TCLINCFN="$tclheaderfn"
  5086. break
  5087. fi
  5088. done
  5089. fi
  5090. if test "x$TCLINCFN" = x; then
  5091. cat << 'EOF' >&2
  5092. configure: WARNING:
  5093. Environment variable TCLINC was set, but incorrectly.
  5094. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5095. configure will now attempt to autodetect both the Tcl library and header.
  5096. EOF
  5097. TCLLIB=""
  5098. TCLLIBFN=""
  5099. TCLINC=""
  5100. TCLINCFN=""
  5101. fi
  5102. fi
  5103. if test "$enable_script_tcl" = "yes"; then
  5104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library" >&5
  5105. $as_echo_n "checking for Tcl library... " >&6; }
  5106. # Attempt autodetect for $TCLLIBFN if it's not set
  5107. if test "x$TCLLIBFN" != x; then
  5108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${TCLLIB}/lib${TCLLIBFN}" >&5
  5109. $as_echo "using ${TCLLIB}/lib${TCLLIBFN}" >&6; }
  5110. else
  5111. for tcllibfns in $tcllibnames; do
  5112. for tcllibext in $tcllibextensions; do
  5113. for tcllibpath in $tcllibpaths; do
  5114. if test -r "${tcllibpath}/lib${tcllibfns}${tcllibext}"; then
  5115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tcllibpath}/lib${tcllibfns}${tcllibext}" >&5
  5116. $as_echo "found ${tcllibpath}/lib${tcllibfns}${tcllibext}" >&6; }
  5117. TCLLIB="$tcllibpath"
  5118. TCLLIBFN="${tcllibfns}${tcllibext}"
  5119. TCLLIBEXT="$tcllibext"
  5120. TCLLIBFNS="$tcllibfns"
  5121. break 3
  5122. fi
  5123. done
  5124. done
  5125. done
  5126. fi
  5127. # Show if $TCLLIBFN wasn't found
  5128. if test "x$TCLLIBFN" = x; then
  5129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5130. $as_echo "not found" >&6; }
  5131. fi
  5132. fi
  5133. if test "$enable_script_tcl" = "yes"; then
  5134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl header" >&5
  5135. $as_echo_n "checking for Tcl header... " >&6; }
  5136. # Attempt autodetect for $TCLINCFN if it's not set
  5137. if test "x$TCLINCFN" != x; then
  5138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${TCLINC}/${TCLINCFN}" >&5
  5139. $as_echo "using ${TCLINC}/${TCLINCFN}" >&6; }
  5140. else
  5141. for tclheaderpath in $tclheaderpaths; do
  5142. for tclheaderfn in $tclheadernames; do
  5143. if test -r "${tclheaderpath}/${tclheaderfn}"; then
  5144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tclheaderpath}/${tclheaderfn}" >&5
  5145. $as_echo "found ${tclheaderpath}/${tclheaderfn}" >&6; }
  5146. TCLINC="$tclheaderpath"
  5147. TCLINCFN="$tclheaderfn"
  5148. break 2
  5149. fi
  5150. done
  5151. done
  5152. # FreeBSD hack ...
  5153. if test "x$TCLINCFN" = x; then
  5154. for tcllibfns in $tcllibnames; do
  5155. for tclheaderpath in $tclheaderpaths; do
  5156. for tclheaderfn in $tclheadernames; do
  5157. if test -r "${tclheaderpath}/${tcllibfns}/${tclheaderfn}"; then
  5158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}" >&5
  5159. $as_echo "found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}" >&6; }
  5160. TCLINC="${tclheaderpath}/${tcllibfns}"
  5161. TCLINCFN="$tclheaderfn"
  5162. break 3
  5163. fi
  5164. done
  5165. done
  5166. done
  5167. fi
  5168. fi
  5169. TCL_INCLUDES=""
  5170. if ! test "x$TCLINC" = x; then
  5171. TCL_INCLUDES="-I$TCLINC"
  5172. fi
  5173. if test "x$TCLINCFN" = x; then
  5174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5175. $as_echo "not found" >&6; }
  5176. fi
  5177. fi
  5178. if test "$enable_script_tcl" = "yes"; then
  5179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Tcl system has changed" >&5
  5180. $as_echo_n "checking whether the Tcl system has changed... " >&6; }
  5181. egg_tcl_changed="yes"
  5182. egg_tcl_id="${TCLLIB}:${TCLLIBFN}:${TCLINC}:${TCLINCFN}"
  5183. if test "$egg_tcl_id" != ":::"; then
  5184. egg_tcl_cached="yes"
  5185. if ${egg_cv_var_tcl_id+:} false; then :
  5186. $as_echo_n "(cached) " >&6
  5187. else
  5188. egg_cv_var_tcl_id="$egg_tcl_id"
  5189. egg_tcl_cached="no"
  5190. fi
  5191. if test "$egg_tcl_cached" = yes; then
  5192. if test "x$egg_cv_var_tcl_id" = "x$egg_tcl_id"; then
  5193. egg_tcl_changed="no"
  5194. else
  5195. egg_cv_var_tcl_id="$egg_tcl_id"
  5196. fi
  5197. fi
  5198. fi
  5199. if test "$egg_tcl_changed" = yes; then
  5200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5201. $as_echo "yes" >&6; }
  5202. else
  5203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5204. $as_echo "no" >&6; }
  5205. fi
  5206. fi
  5207. if test "$enable_script_tcl" = "yes"; then
  5208. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  5209. TCL_FOUND=0
  5210. if test "x$TCLLIBFN" != x && test "x$TCLINCFN" != x; then
  5211. TCL_FOUND=1
  5212. # Check Tcl's version
  5213. if test "$egg_tcl_changed" = yes; then
  5214. unset egg_cv_var_tcl_version
  5215. fi
  5216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl version" >&5
  5217. $as_echo_n "checking for Tcl version... " >&6; }
  5218. if ${egg_cv_var_tcl_version+:} false; then :
  5219. $as_echo_n "(cached) " >&6
  5220. else
  5221. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`
  5222. fi
  5223. if test "x$egg_cv_var_tcl_version" != x; then
  5224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_tcl_version" >&5
  5225. $as_echo "$egg_cv_var_tcl_version" >&6; }
  5226. else
  5227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5228. $as_echo "not found" >&6; }
  5229. TCL_FOUND=0
  5230. fi
  5231. # Check Tcl's patch level (if available)
  5232. if test "$egg_tcl_changed" = yes; then
  5233. unset egg_cv_var_tcl_patch_level
  5234. fi
  5235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl patch level" >&5
  5236. $as_echo_n "checking for Tcl patch level... " >&6; }
  5237. if ${egg_cv_var_tcl_patch_level+:} false; then :
  5238. $as_echo_n "(cached) " >&6
  5239. else
  5240. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`"
  5241. fi
  5242. if test "x$egg_cv_var_tcl_patch_level" != x; then
  5243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_tcl_patch_level" >&5
  5244. $as_echo "$egg_cv_var_tcl_patch_level" >&6; }
  5245. else
  5246. egg_cv_var_tcl_patch_level="unknown"
  5247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
  5248. $as_echo "unknown" >&6; }
  5249. fi
  5250. fi
  5251. # Check if we found Tcl's version
  5252. if test "$TCL_FOUND" = 0; then
  5253. cat << 'EOF' >&2
  5254. configure: error:
  5255. Tcl cannot be found on this system.
  5256. Tcl is not required. Wraith will be compiled without TCL support. If you
  5257. already have Tcl installed on this system, please specify the path by
  5258. rerunning ./configure using the --with-tcllib='/path/to/libtcl.so' and
  5259. --with-tclinc='/path/to/tcl.h' options.
  5260. EOF
  5261. else
  5262. $as_echo "#define HAVE_LIBTCL 1" >>build/confdefs.h
  5263. fi
  5264. fi
  5265. if test "$enable_script_tcl" = "yes"; then
  5266. # Is this version of Tcl too old for us to use ?
  5267. TCL_VER_PRE70=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 7) print "yes"; else print "no"}'`
  5268. if test "$TCL_VER_PRE70" = yes; then
  5269. cat << EOF >&2
  5270. configure: error:
  5271. Your Tcl version is much too old for Wraith to use. You should
  5272. download and compile a more recent version. The most reliable
  5273. current version is $tclrecommendver and can be downloaded from
  5274. ${tclrecommendsite}.
  5275. See doc/COMPILE-GUIDE's 'Tcl Detection and Installation' section
  5276. for more information.
  5277. EOF
  5278. exit 1
  5279. fi
  5280. fi
  5281. # Set variables for Tcl library tests
  5282. TCL_TEST_LIB="$TCLLIBFNS"
  5283. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  5284. if test "x$ac_cv_lib_pthread" != x; then
  5285. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  5286. fi
  5287. if test "$enable_script_tcl" = "yes"; then
  5288. if test "$egg_tcl_changed" = yes; then
  5289. unset egg_cv_var_tcl_free
  5290. fi
  5291. # Check for Tcl_Free()
  5292. as_ac_Lib=`$as_echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_Free" | $as_tr_sh`
  5293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  5294. $as_echo_n "checking for Tcl_Free in -l$TCL_TEST_LIB... " >&6; }
  5295. if eval \${$as_ac_Lib+:} false; then :
  5296. $as_echo_n "(cached) " >&6
  5297. else
  5298. ac_check_lib_save_LIBS=$LIBS
  5299. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  5300. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5301. /* end build/confdefs.h. */
  5302. /* Override any GCC internal prototype to avoid an error.
  5303. Use char because int might match the return type of a GCC
  5304. builtin and then its argument prototype would still apply. */
  5305. #ifdef __cplusplus
  5306. extern "C"
  5307. #endif
  5308. char Tcl_Free ();
  5309. int
  5310. main ()
  5311. {
  5312. return Tcl_Free ();
  5313. ;
  5314. return 0;
  5315. }
  5316. _ACEOF
  5317. if ac_fn_cxx_try_link "$LINENO"; then :
  5318. eval "$as_ac_Lib=yes"
  5319. else
  5320. eval "$as_ac_Lib=no"
  5321. fi
  5322. rm -f core conftest.err conftest.$ac_objext \
  5323. conftest$ac_exeext conftest.$ac_ext
  5324. LIBS=$ac_check_lib_save_LIBS
  5325. fi
  5326. eval ac_res=\$$as_ac_Lib
  5327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5328. $as_echo "$ac_res" >&6; }
  5329. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  5330. egg_cv_var_tcl_free="yes"
  5331. else
  5332. egg_cv_var_tcl_free="no"
  5333. fi
  5334. if test "$egg_cv_var_tcl_free" = yes; then
  5335. $as_echo "#define HAVE_TCL_FREE 1" >>build/confdefs.h
  5336. fi
  5337. fi
  5338. #EGG_TCL_CHECK_GETCURRENTTHREAD
  5339. #EGG_TCL_CHECK_GETTHREADDATA
  5340. if test "$enable_script_tcl" = "yes"; then
  5341. if test "$egg_tcl_changed" = yes; then
  5342. unset egg_cv_var_tcl_setnotifier
  5343. fi
  5344. # Check for Tcl_SetNotifier()
  5345. as_ac_Lib=`$as_echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_SetNotifier" | $as_tr_sh`
  5346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_SetNotifier in -l$TCL_TEST_LIB" >&5
  5347. $as_echo_n "checking for Tcl_SetNotifier in -l$TCL_TEST_LIB... " >&6; }
  5348. if eval \${$as_ac_Lib+:} false; then :
  5349. $as_echo_n "(cached) " >&6
  5350. else
  5351. ac_check_lib_save_LIBS=$LIBS
  5352. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  5353. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5354. /* end build/confdefs.h. */
  5355. /* Override any GCC internal prototype to avoid an error.
  5356. Use char because int might match the return type of a GCC
  5357. builtin and then its argument prototype would still apply. */
  5358. #ifdef __cplusplus
  5359. extern "C"
  5360. #endif
  5361. char Tcl_SetNotifier ();
  5362. int
  5363. main ()
  5364. {
  5365. return Tcl_SetNotifier ();
  5366. ;
  5367. return 0;
  5368. }
  5369. _ACEOF
  5370. if ac_fn_cxx_try_link "$LINENO"; then :
  5371. eval "$as_ac_Lib=yes"
  5372. else
  5373. eval "$as_ac_Lib=no"
  5374. fi
  5375. rm -f core conftest.err conftest.$ac_objext \
  5376. conftest$ac_exeext conftest.$ac_ext
  5377. LIBS=$ac_check_lib_save_LIBS
  5378. fi
  5379. eval ac_res=\$$as_ac_Lib
  5380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5381. $as_echo "$ac_res" >&6; }
  5382. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  5383. egg_cv_var_tcl_setnotifier="yes"
  5384. else
  5385. egg_cv_var_tcl_setnotifier="no"
  5386. fi
  5387. if test "$egg_cv_var_tcl_setnotifier" = yes; then
  5388. $as_echo "#define HAVE_TCL_SETNOTIFIER 1" >>build/confdefs.h
  5389. fi
  5390. fi
  5391. if test "$enable_script_tcl" = "yes"; then
  5392. if test "$EGG_CYGWIN" = yes; then
  5393. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5394. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  5395. else
  5396. if test "$TCLLIBEXT" != ".a"; then
  5397. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5398. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  5399. else
  5400. # Set default make as static for unshared Tcl library
  5401. if test "$DEFAULT_MAKE" != static; then
  5402. cat << 'EOF' >&2
  5403. configure: WARNING:
  5404. Your Tcl library is not a shared lib.
  5405. configure will now set default make type to static.
  5406. EOF
  5407. DEFAULT_MAKE="static"
  5408. fi
  5409. # Are we using a pre 7.4 Tcl version ?
  5410. TCL_VER_PRE74=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (((i[1] == 7) && (i[2] < 4)) || (i[1] < 7)) print "yes"; else print "no"}'`
  5411. if test "$TCL_VER_PRE74" = no; then
  5412. # Was the --with-tcllib option given ?
  5413. if test "x$tcllibname" != x; then
  5414. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5415. TCL_LIBS="${TCLLIB}/lib${TCLLIBFN} $EGG_MATH_LIB"
  5416. else
  5417. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5418. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  5419. fi
  5420. else
  5421. cat << EOF >&2
  5422. configure: WARNING:
  5423. Your Tcl version ($egg_cv_var_tcl_version) is older than 7.4.
  5424. There are known problems, but we will attempt to work around them.
  5425. EOF
  5426. TCL_REQS="libtcle.a"
  5427. TCL_LIBS="-L`pwd` -ltcle $EGG_MATH_LIB"
  5428. fi
  5429. fi
  5430. fi
  5431. fi
  5432. cat >confcache <<\_ACEOF
  5433. # This file is a shell script that caches the results of configure
  5434. # tests run on this system so they can be shared between configure
  5435. # scripts and configure runs, see configure's option --config-cache.
  5436. # It is not useful on other systems. If it contains results you don't
  5437. # want to keep, you may remove or edit it.
  5438. #
  5439. # build/config.status only pays attention to the cache file if you give it
  5440. # the --recheck option to rerun configure.
  5441. #
  5442. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5443. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5444. # following values.
  5445. _ACEOF
  5446. # The following way of writing the cache mishandles newlines in values,
  5447. # but we know of no workaround that is simple, portable, and efficient.
  5448. # So, we kill variables containing newlines.
  5449. # Ultrix sh set writes to stderr and can't be redirected directly,
  5450. # and sets the high bit in the cache file unless we assign to the vars.
  5451. (
  5452. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5453. eval ac_val=\$$ac_var
  5454. case $ac_val in #(
  5455. *${as_nl}*)
  5456. case $ac_var in #(
  5457. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5458. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5459. esac
  5460. case $ac_var in #(
  5461. _ | IFS | as_nl) ;; #(
  5462. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5463. *) { eval $ac_var=; unset $ac_var;} ;;
  5464. esac ;;
  5465. esac
  5466. done
  5467. (set) 2>&1 |
  5468. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5469. *${as_nl}ac_space=\ *)
  5470. # `set' does not quote correctly, so add quotes: double-quote
  5471. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5472. sed -n \
  5473. "s/'/'\\\\''/g;
  5474. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5475. ;; #(
  5476. *)
  5477. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5478. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5479. ;;
  5480. esac |
  5481. sort
  5482. ) |
  5483. sed '
  5484. /^ac_cv_env_/b end
  5485. t clear
  5486. :clear
  5487. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5488. t end
  5489. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5490. :end' >>confcache
  5491. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5492. if test -w "$cache_file"; then
  5493. if test "x$cache_file" != "x/dev/null"; then
  5494. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5495. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5496. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5497. cat confcache >"$cache_file"
  5498. else
  5499. case $cache_file in #(
  5500. */* | ?:*)
  5501. mv -f confcache "$cache_file"$$ &&
  5502. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5503. *)
  5504. mv -f confcache "$cache_file" ;;
  5505. esac
  5506. fi
  5507. fi
  5508. else
  5509. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5510. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5511. fi
  5512. fi
  5513. rm -f confcache
  5514. #AC_SUBST(ZLIB)dnl
  5515. # Checks for typedefs, structures, and compiler characteristics
  5516. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  5517. if test "x$ac_cv_type_pid_t" = xyes; then :
  5518. else
  5519. cat >>build/confdefs.h <<_ACEOF
  5520. #define pid_t int
  5521. _ACEOF
  5522. fi
  5523. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  5524. if test "x$ac_cv_type_size_t" = xyes; then :
  5525. else
  5526. cat >>build/confdefs.h <<_ACEOF
  5527. #define size_t unsigned int
  5528. _ACEOF
  5529. fi
  5530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  5531. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  5532. if ${ac_cv_type_uid_t+:} false; then :
  5533. $as_echo_n "(cached) " >&6
  5534. else
  5535. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5536. /* end build/confdefs.h. */
  5537. #include <sys/types.h>
  5538. _ACEOF
  5539. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5540. $EGREP "uid_t" >/dev/null 2>&1; then :
  5541. ac_cv_type_uid_t=yes
  5542. else
  5543. ac_cv_type_uid_t=no
  5544. fi
  5545. rm -f conftest*
  5546. fi
  5547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  5548. $as_echo "$ac_cv_type_uid_t" >&6; }
  5549. if test $ac_cv_type_uid_t = no; then
  5550. $as_echo "#define uid_t int" >>build/confdefs.h
  5551. $as_echo "#define gid_t int" >>build/confdefs.h
  5552. fi
  5553. #AC_C_CONST
  5554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  5555. $as_echo_n "checking for working volatile... " >&6; }
  5556. if ${ac_cv_c_volatile+:} false; then :
  5557. $as_echo_n "(cached) " >&6
  5558. else
  5559. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5560. /* end build/confdefs.h. */
  5561. int
  5562. main ()
  5563. {
  5564. volatile int x;
  5565. int * volatile y = (int *) 0;
  5566. return !x && !y;
  5567. ;
  5568. return 0;
  5569. }
  5570. _ACEOF
  5571. if ac_fn_cxx_try_compile "$LINENO"; then :
  5572. ac_cv_c_volatile=yes
  5573. else
  5574. ac_cv_c_volatile=no
  5575. fi
  5576. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5577. fi
  5578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  5579. $as_echo "$ac_cv_c_volatile" >&6; }
  5580. if test $ac_cv_c_volatile = no; then
  5581. $as_echo "#define volatile /**/" >>build/confdefs.h
  5582. fi
  5583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  5584. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  5585. if ${ac_cv_c_bigendian+:} false; then :
  5586. $as_echo_n "(cached) " >&6
  5587. else
  5588. ac_cv_c_bigendian=unknown
  5589. # See if we're dealing with a universal compiler.
  5590. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5591. /* end build/confdefs.h. */
  5592. #ifndef __APPLE_CC__
  5593. not a universal capable compiler
  5594. #endif
  5595. typedef int dummy;
  5596. _ACEOF
  5597. if ac_fn_cxx_try_compile "$LINENO"; then :
  5598. # Check for potential -arch flags. It is not universal unless
  5599. # there are at least two -arch flags with different values.
  5600. ac_arch=
  5601. ac_prev=
  5602. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  5603. if test -n "$ac_prev"; then
  5604. case $ac_word in
  5605. i?86 | x86_64 | ppc | ppc64)
  5606. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  5607. ac_arch=$ac_word
  5608. else
  5609. ac_cv_c_bigendian=universal
  5610. break
  5611. fi
  5612. ;;
  5613. esac
  5614. ac_prev=
  5615. elif test "x$ac_word" = "x-arch"; then
  5616. ac_prev=arch
  5617. fi
  5618. done
  5619. fi
  5620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5621. if test $ac_cv_c_bigendian = unknown; then
  5622. # See if sys/param.h defines the BYTE_ORDER macro.
  5623. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5624. /* end build/confdefs.h. */
  5625. #include <sys/types.h>
  5626. #include <sys/param.h>
  5627. int
  5628. main ()
  5629. {
  5630. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  5631. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  5632. && LITTLE_ENDIAN)
  5633. bogus endian macros
  5634. #endif
  5635. ;
  5636. return 0;
  5637. }
  5638. _ACEOF
  5639. if ac_fn_cxx_try_compile "$LINENO"; then :
  5640. # It does; now see whether it defined to BIG_ENDIAN or not.
  5641. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5642. /* end build/confdefs.h. */
  5643. #include <sys/types.h>
  5644. #include <sys/param.h>
  5645. int
  5646. main ()
  5647. {
  5648. #if BYTE_ORDER != BIG_ENDIAN
  5649. not big endian
  5650. #endif
  5651. ;
  5652. return 0;
  5653. }
  5654. _ACEOF
  5655. if ac_fn_cxx_try_compile "$LINENO"; then :
  5656. ac_cv_c_bigendian=yes
  5657. else
  5658. ac_cv_c_bigendian=no
  5659. fi
  5660. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5661. fi
  5662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5663. fi
  5664. if test $ac_cv_c_bigendian = unknown; then
  5665. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  5666. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5667. /* end build/confdefs.h. */
  5668. #include <limits.h>
  5669. int
  5670. main ()
  5671. {
  5672. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  5673. bogus endian macros
  5674. #endif
  5675. ;
  5676. return 0;
  5677. }
  5678. _ACEOF
  5679. if ac_fn_cxx_try_compile "$LINENO"; then :
  5680. # It does; now see whether it defined to _BIG_ENDIAN or not.
  5681. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5682. /* end build/confdefs.h. */
  5683. #include <limits.h>
  5684. int
  5685. main ()
  5686. {
  5687. #ifndef _BIG_ENDIAN
  5688. not big endian
  5689. #endif
  5690. ;
  5691. return 0;
  5692. }
  5693. _ACEOF
  5694. if ac_fn_cxx_try_compile "$LINENO"; then :
  5695. ac_cv_c_bigendian=yes
  5696. else
  5697. ac_cv_c_bigendian=no
  5698. fi
  5699. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5700. fi
  5701. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5702. fi
  5703. if test $ac_cv_c_bigendian = unknown; then
  5704. # Compile a test program.
  5705. if test "$cross_compiling" = yes; then :
  5706. # Try to guess by grepping values from an object file.
  5707. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5708. /* end build/confdefs.h. */
  5709. short int ascii_mm[] =
  5710. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5711. short int ascii_ii[] =
  5712. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5713. int use_ascii (int i) {
  5714. return ascii_mm[i] + ascii_ii[i];
  5715. }
  5716. short int ebcdic_ii[] =
  5717. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5718. short int ebcdic_mm[] =
  5719. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5720. int use_ebcdic (int i) {
  5721. return ebcdic_mm[i] + ebcdic_ii[i];
  5722. }
  5723. extern int foo;
  5724. int
  5725. main ()
  5726. {
  5727. return use_ascii (foo) == use_ebcdic (foo);
  5728. ;
  5729. return 0;
  5730. }
  5731. _ACEOF
  5732. if ac_fn_cxx_try_compile "$LINENO"; then :
  5733. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  5734. ac_cv_c_bigendian=yes
  5735. fi
  5736. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5737. if test "$ac_cv_c_bigendian" = unknown; then
  5738. ac_cv_c_bigendian=no
  5739. else
  5740. # finding both strings is unlikely to happen, but who knows?
  5741. ac_cv_c_bigendian=unknown
  5742. fi
  5743. fi
  5744. fi
  5745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5746. else
  5747. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5748. /* end build/confdefs.h. */
  5749. $ac_includes_default
  5750. int
  5751. main ()
  5752. {
  5753. /* Are we little or big endian? From Harbison&Steele. */
  5754. union
  5755. {
  5756. long int l;
  5757. char c[sizeof (long int)];
  5758. } u;
  5759. u.l = 1;
  5760. return u.c[sizeof (long int) - 1] == 1;
  5761. ;
  5762. return 0;
  5763. }
  5764. _ACEOF
  5765. if ac_fn_cxx_try_run "$LINENO"; then :
  5766. ac_cv_c_bigendian=no
  5767. else
  5768. ac_cv_c_bigendian=yes
  5769. fi
  5770. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5771. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5772. fi
  5773. fi
  5774. fi
  5775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  5776. $as_echo "$ac_cv_c_bigendian" >&6; }
  5777. case $ac_cv_c_bigendian in #(
  5778. yes)
  5779. $as_echo "#define B_ENDIAN 1" >>build/confdefs.h
  5780. ;; #(
  5781. no)
  5782. $as_echo "#define L_ENDIAN 1" >>build/confdefs.h
  5783. ;; #(
  5784. universal)
  5785. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>build/confdefs.h
  5786. ;; #(
  5787. *)
  5788. as_fn_error $? "unknown endianness
  5789. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  5790. esac
  5791. #AC_C_INLINE
  5792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
  5793. $as_echo_n "checking whether char is unsigned... " >&6; }
  5794. if ${ac_cv_c_char_unsigned+:} false; then :
  5795. $as_echo_n "(cached) " >&6
  5796. else
  5797. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5798. /* end build/confdefs.h. */
  5799. $ac_includes_default
  5800. int
  5801. main ()
  5802. {
  5803. static int test_array [1 - 2 * !(((char) -1) < 0)];
  5804. test_array [0] = 0
  5805. ;
  5806. return 0;
  5807. }
  5808. _ACEOF
  5809. if ac_fn_cxx_try_compile "$LINENO"; then :
  5810. ac_cv_c_char_unsigned=no
  5811. else
  5812. ac_cv_c_char_unsigned=yes
  5813. fi
  5814. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5815. fi
  5816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
  5817. $as_echo "$ac_cv_c_char_unsigned" >&6; }
  5818. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  5819. $as_echo "#define __CHAR_UNSIGNED__ 1" >>build/confdefs.h
  5820. fi
  5821. #AC_C_STRINGIZE
  5822. #AC_C_PROTOTYPES
  5823. #checkpoint
  5824. cat >confcache <<\_ACEOF
  5825. # This file is a shell script that caches the results of configure
  5826. # tests run on this system so they can be shared between configure
  5827. # scripts and configure runs, see configure's option --config-cache.
  5828. # It is not useful on other systems. If it contains results you don't
  5829. # want to keep, you may remove or edit it.
  5830. #
  5831. # build/config.status only pays attention to the cache file if you give it
  5832. # the --recheck option to rerun configure.
  5833. #
  5834. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5835. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5836. # following values.
  5837. _ACEOF
  5838. # The following way of writing the cache mishandles newlines in values,
  5839. # but we know of no workaround that is simple, portable, and efficient.
  5840. # So, we kill variables containing newlines.
  5841. # Ultrix sh set writes to stderr and can't be redirected directly,
  5842. # and sets the high bit in the cache file unless we assign to the vars.
  5843. (
  5844. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5845. eval ac_val=\$$ac_var
  5846. case $ac_val in #(
  5847. *${as_nl}*)
  5848. case $ac_var in #(
  5849. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5850. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5851. esac
  5852. case $ac_var in #(
  5853. _ | IFS | as_nl) ;; #(
  5854. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5855. *) { eval $ac_var=; unset $ac_var;} ;;
  5856. esac ;;
  5857. esac
  5858. done
  5859. (set) 2>&1 |
  5860. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5861. *${as_nl}ac_space=\ *)
  5862. # `set' does not quote correctly, so add quotes: double-quote
  5863. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5864. sed -n \
  5865. "s/'/'\\\\''/g;
  5866. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5867. ;; #(
  5868. *)
  5869. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5870. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5871. ;;
  5872. esac |
  5873. sort
  5874. ) |
  5875. sed '
  5876. /^ac_cv_env_/b end
  5877. t clear
  5878. :clear
  5879. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5880. t end
  5881. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5882. :end' >>confcache
  5883. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5884. if test -w "$cache_file"; then
  5885. if test "x$cache_file" != "x/dev/null"; then
  5886. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5887. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5888. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5889. cat confcache >"$cache_file"
  5890. else
  5891. case $cache_file in #(
  5892. */* | ?:*)
  5893. mv -f confcache "$cache_file"$$ &&
  5894. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5895. *)
  5896. mv -f confcache "$cache_file" ;;
  5897. esac
  5898. fi
  5899. fi
  5900. else
  5901. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5902. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5903. fi
  5904. fi
  5905. rm -f confcache
  5906. # Checks for typedefs, structures, and compiler characteristics
  5907. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  5908. if test "x$ac_cv_type_pid_t" = xyes; then :
  5909. else
  5910. cat >>build/confdefs.h <<_ACEOF
  5911. #define pid_t int
  5912. _ACEOF
  5913. fi
  5914. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  5915. if test "x$ac_cv_type_size_t" = xyes; then :
  5916. else
  5917. cat >>build/confdefs.h <<_ACEOF
  5918. #define size_t unsigned int
  5919. _ACEOF
  5920. fi
  5921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  5922. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  5923. if ${ac_cv_type_uid_t+:} false; then :
  5924. $as_echo_n "(cached) " >&6
  5925. else
  5926. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5927. /* end build/confdefs.h. */
  5928. #include <sys/types.h>
  5929. _ACEOF
  5930. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5931. $EGREP "uid_t" >/dev/null 2>&1; then :
  5932. ac_cv_type_uid_t=yes
  5933. else
  5934. ac_cv_type_uid_t=no
  5935. fi
  5936. rm -f conftest*
  5937. fi
  5938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  5939. $as_echo "$ac_cv_type_uid_t" >&6; }
  5940. if test $ac_cv_type_uid_t = no; then
  5941. $as_echo "#define uid_t int" >>build/confdefs.h
  5942. $as_echo "#define gid_t int" >>build/confdefs.h
  5943. fi
  5944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  5945. $as_echo_n "checking for long long int... " >&6; }
  5946. if ${ac_cv_type_long_long_int+:} false; then :
  5947. $as_echo_n "(cached) " >&6
  5948. else
  5949. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5950. /* end build/confdefs.h. */
  5951. /* For now, do not test the preprocessor; as of 2007 there are too many
  5952. implementations with broken preprocessors. Perhaps this can
  5953. be revisited in 2012. In the meantime, code should not expect
  5954. #if to work with literals wider than 32 bits. */
  5955. /* Test literals. */
  5956. long long int ll = 9223372036854775807ll;
  5957. long long int nll = -9223372036854775807LL;
  5958. unsigned long long int ull = 18446744073709551615ULL;
  5959. /* Test constant expressions. */
  5960. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  5961. ? 1 : -1)];
  5962. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  5963. ? 1 : -1)];
  5964. int i = 63;
  5965. int
  5966. main ()
  5967. {
  5968. /* Test availability of runtime routines for shift and division. */
  5969. long long int llmax = 9223372036854775807ll;
  5970. unsigned long long int ullmax = 18446744073709551615ull;
  5971. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  5972. | (llmax / ll) | (llmax % ll)
  5973. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  5974. | (ullmax / ull) | (ullmax % ull));
  5975. ;
  5976. return 0;
  5977. }
  5978. _ACEOF
  5979. if ac_fn_cxx_try_link "$LINENO"; then :
  5980. if test "$cross_compiling" = yes; then :
  5981. ac_cv_type_long_long_int=yes
  5982. else
  5983. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5984. /* end build/confdefs.h. */
  5985. #include <limits.h>
  5986. #ifndef LLONG_MAX
  5987. # define HALF \
  5988. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  5989. # define LLONG_MAX (HALF - 1 + HALF)
  5990. #endif
  5991. int
  5992. main ()
  5993. {
  5994. long long int n = 1;
  5995. int i;
  5996. for (i = 0; ; i++)
  5997. {
  5998. long long int m = n << i;
  5999. if (m >> i != n)
  6000. return 1;
  6001. if (LLONG_MAX / 2 < m)
  6002. break;
  6003. }
  6004. return 0;
  6005. ;
  6006. return 0;
  6007. }
  6008. _ACEOF
  6009. if ac_fn_cxx_try_run "$LINENO"; then :
  6010. ac_cv_type_long_long_int=yes
  6011. else
  6012. ac_cv_type_long_long_int=no
  6013. fi
  6014. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6015. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6016. fi
  6017. else
  6018. ac_cv_type_long_long_int=no
  6019. fi
  6020. rm -f core conftest.err conftest.$ac_objext \
  6021. conftest$ac_exeext conftest.$ac_ext
  6022. fi
  6023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  6024. $as_echo "$ac_cv_type_long_long_int" >&6; }
  6025. if test $ac_cv_type_long_long_int = yes; then
  6026. $as_echo "#define HAVE_LONG_LONG_INT 1" >>build/confdefs.h
  6027. fi
  6028. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  6029. case $ac_cv_c_int8_t in #(
  6030. no|yes) ;; #(
  6031. *)
  6032. cat >>build/confdefs.h <<_ACEOF
  6033. #define int8_t $ac_cv_c_int8_t
  6034. _ACEOF
  6035. ;;
  6036. esac
  6037. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  6038. case $ac_cv_c_uint8_t in #(
  6039. no|yes) ;; #(
  6040. *)
  6041. $as_echo "#define _UINT8_T 1" >>build/confdefs.h
  6042. cat >>build/confdefs.h <<_ACEOF
  6043. #define uint8_t $ac_cv_c_uint8_t
  6044. _ACEOF
  6045. ;;
  6046. esac
  6047. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  6048. case $ac_cv_c_int16_t in #(
  6049. no|yes) ;; #(
  6050. *)
  6051. cat >>build/confdefs.h <<_ACEOF
  6052. #define int16_t $ac_cv_c_int16_t
  6053. _ACEOF
  6054. ;;
  6055. esac
  6056. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  6057. case $ac_cv_c_uint16_t in #(
  6058. no|yes) ;; #(
  6059. *)
  6060. cat >>build/confdefs.h <<_ACEOF
  6061. #define uint16_t $ac_cv_c_uint16_t
  6062. _ACEOF
  6063. ;;
  6064. esac
  6065. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  6066. case $ac_cv_c_int32_t in #(
  6067. no|yes) ;; #(
  6068. *)
  6069. cat >>build/confdefs.h <<_ACEOF
  6070. #define int32_t $ac_cv_c_int32_t
  6071. _ACEOF
  6072. ;;
  6073. esac
  6074. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  6075. case $ac_cv_c_uint32_t in #(
  6076. no|yes) ;; #(
  6077. *)
  6078. $as_echo "#define _UINT32_T 1" >>build/confdefs.h
  6079. cat >>build/confdefs.h <<_ACEOF
  6080. #define uint32_t $ac_cv_c_uint32_t
  6081. _ACEOF
  6082. ;;
  6083. esac
  6084. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  6085. case $ac_cv_c_int64_t in #(
  6086. no|yes) ;; #(
  6087. *)
  6088. cat >>build/confdefs.h <<_ACEOF
  6089. #define int64_t $ac_cv_c_int64_t
  6090. _ACEOF
  6091. ;;
  6092. esac
  6093. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  6094. case $ac_cv_c_uint64_t in #(
  6095. no|yes) ;; #(
  6096. *)
  6097. $as_echo "#define _UINT64_T 1" >>build/confdefs.h
  6098. cat >>build/confdefs.h <<_ACEOF
  6099. #define uint64_t $ac_cv_c_uint64_t
  6100. _ACEOF
  6101. ;;
  6102. esac
  6103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  6104. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  6105. if ${ac_cv_struct_tm+:} false; then :
  6106. $as_echo_n "(cached) " >&6
  6107. else
  6108. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6109. /* end build/confdefs.h. */
  6110. #include <sys/types.h>
  6111. #include <time.h>
  6112. int
  6113. main ()
  6114. {
  6115. struct tm tm;
  6116. int *p = &tm.tm_sec;
  6117. return !p;
  6118. ;
  6119. return 0;
  6120. }
  6121. _ACEOF
  6122. if ac_fn_cxx_try_compile "$LINENO"; then :
  6123. ac_cv_struct_tm=time.h
  6124. else
  6125. ac_cv_struct_tm=sys/time.h
  6126. fi
  6127. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6128. fi
  6129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  6130. $as_echo "$ac_cv_struct_tm" >&6; }
  6131. if test $ac_cv_struct_tm = sys/time.h; then
  6132. $as_echo "#define TM_IN_SYS_TIME 1" >>build/confdefs.h
  6133. fi
  6134. ac_fn_cxx_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  6135. #include <$ac_cv_struct_tm>
  6136. "
  6137. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
  6138. cat >>build/confdefs.h <<_ACEOF
  6139. #define HAVE_STRUCT_TM_TM_ZONE 1
  6140. _ACEOF
  6141. fi
  6142. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  6143. $as_echo "#define HAVE_TM_ZONE 1" >>build/confdefs.h
  6144. else
  6145. ac_fn_cxx_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  6146. "
  6147. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  6148. ac_have_decl=1
  6149. else
  6150. ac_have_decl=0
  6151. fi
  6152. cat >>build/confdefs.h <<_ACEOF
  6153. #define HAVE_DECL_TZNAME $ac_have_decl
  6154. _ACEOF
  6155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  6156. $as_echo_n "checking for tzname... " >&6; }
  6157. if ${ac_cv_var_tzname+:} false; then :
  6158. $as_echo_n "(cached) " >&6
  6159. else
  6160. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6161. /* end build/confdefs.h. */
  6162. #include <time.h>
  6163. #if !HAVE_DECL_TZNAME
  6164. extern char *tzname[];
  6165. #endif
  6166. int
  6167. main ()
  6168. {
  6169. return tzname[0][0];
  6170. ;
  6171. return 0;
  6172. }
  6173. _ACEOF
  6174. if ac_fn_cxx_try_link "$LINENO"; then :
  6175. ac_cv_var_tzname=yes
  6176. else
  6177. ac_cv_var_tzname=no
  6178. fi
  6179. rm -f core conftest.err conftest.$ac_objext \
  6180. conftest$ac_exeext conftest.$ac_ext
  6181. fi
  6182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  6183. $as_echo "$ac_cv_var_tzname" >&6; }
  6184. if test $ac_cv_var_tzname = yes; then
  6185. $as_echo "#define HAVE_TZNAME 1" >>build/confdefs.h
  6186. fi
  6187. fi
  6188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  6189. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  6190. if ${ac_cv_struct_tm+:} false; then :
  6191. $as_echo_n "(cached) " >&6
  6192. else
  6193. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6194. /* end build/confdefs.h. */
  6195. #include <sys/types.h>
  6196. #include <time.h>
  6197. int
  6198. main ()
  6199. {
  6200. struct tm tm;
  6201. int *p = &tm.tm_sec;
  6202. return !p;
  6203. ;
  6204. return 0;
  6205. }
  6206. _ACEOF
  6207. if ac_fn_cxx_try_compile "$LINENO"; then :
  6208. ac_cv_struct_tm=time.h
  6209. else
  6210. ac_cv_struct_tm=sys/time.h
  6211. fi
  6212. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6213. fi
  6214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  6215. $as_echo "$ac_cv_struct_tm" >&6; }
  6216. if test $ac_cv_struct_tm = sys/time.h; then
  6217. $as_echo "#define TM_IN_SYS_TIME 1" >>build/confdefs.h
  6218. fi
  6219. # Checks for library functions
  6220. for ac_header in vfork.h
  6221. do :
  6222. ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  6223. if test "x$ac_cv_header_vfork_h" = xyes; then :
  6224. cat >>build/confdefs.h <<_ACEOF
  6225. #define HAVE_VFORK_H 1
  6226. _ACEOF
  6227. fi
  6228. done
  6229. for ac_func in fork vfork
  6230. do :
  6231. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6232. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6233. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6234. cat >>build/confdefs.h <<_ACEOF
  6235. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6236. _ACEOF
  6237. fi
  6238. done
  6239. if test "x$ac_cv_func_fork" = xyes; then
  6240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  6241. $as_echo_n "checking for working fork... " >&6; }
  6242. if ${ac_cv_func_fork_works+:} false; then :
  6243. $as_echo_n "(cached) " >&6
  6244. else
  6245. if test "$cross_compiling" = yes; then :
  6246. ac_cv_func_fork_works=cross
  6247. else
  6248. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6249. /* end build/confdefs.h. */
  6250. $ac_includes_default
  6251. int
  6252. main ()
  6253. {
  6254. /* By Ruediger Kuhlmann. */
  6255. return fork () < 0;
  6256. ;
  6257. return 0;
  6258. }
  6259. _ACEOF
  6260. if ac_fn_cxx_try_run "$LINENO"; then :
  6261. ac_cv_func_fork_works=yes
  6262. else
  6263. ac_cv_func_fork_works=no
  6264. fi
  6265. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6266. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6267. fi
  6268. fi
  6269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  6270. $as_echo "$ac_cv_func_fork_works" >&6; }
  6271. else
  6272. ac_cv_func_fork_works=$ac_cv_func_fork
  6273. fi
  6274. if test "x$ac_cv_func_fork_works" = xcross; then
  6275. case $host in
  6276. *-*-amigaos* | *-*-msdosdjgpp*)
  6277. # Override, as these systems have only a dummy fork() stub
  6278. ac_cv_func_fork_works=no
  6279. ;;
  6280. *)
  6281. ac_cv_func_fork_works=yes
  6282. ;;
  6283. esac
  6284. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  6285. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  6286. fi
  6287. ac_cv_func_vfork_works=$ac_cv_func_vfork
  6288. if test "x$ac_cv_func_vfork" = xyes; then
  6289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  6290. $as_echo_n "checking for working vfork... " >&6; }
  6291. if ${ac_cv_func_vfork_works+:} false; then :
  6292. $as_echo_n "(cached) " >&6
  6293. else
  6294. if test "$cross_compiling" = yes; then :
  6295. ac_cv_func_vfork_works=cross
  6296. else
  6297. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6298. /* end build/confdefs.h. */
  6299. /* Thanks to Paul Eggert for this test. */
  6300. $ac_includes_default
  6301. #include <sys/wait.h>
  6302. #ifdef HAVE_VFORK_H
  6303. # include <vfork.h>
  6304. #endif
  6305. /* On some sparc systems, changes by the child to local and incoming
  6306. argument registers are propagated back to the parent. The compiler
  6307. is told about this with #include <vfork.h>, but some compilers
  6308. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  6309. static variable whose address is put into a register that is
  6310. clobbered by the vfork. */
  6311. static void
  6312. #ifdef __cplusplus
  6313. sparc_address_test (int arg)
  6314. # else
  6315. sparc_address_test (arg) int arg;
  6316. #endif
  6317. {
  6318. static pid_t child;
  6319. if (!child) {
  6320. child = vfork ();
  6321. if (child < 0) {
  6322. perror ("vfork");
  6323. _exit(2);
  6324. }
  6325. if (!child) {
  6326. arg = getpid();
  6327. write(-1, "", 0);
  6328. _exit (arg);
  6329. }
  6330. }
  6331. }
  6332. int
  6333. main ()
  6334. {
  6335. pid_t parent = getpid ();
  6336. pid_t child;
  6337. sparc_address_test (0);
  6338. child = vfork ();
  6339. if (child == 0) {
  6340. /* Here is another test for sparc vfork register problems. This
  6341. test uses lots of local variables, at least as many local
  6342. variables as main has allocated so far including compiler
  6343. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  6344. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  6345. reuse the register of parent for one of the local variables,
  6346. since it will think that parent can't possibly be used any more
  6347. in this routine. Assigning to the local variable will thus
  6348. munge parent in the parent process. */
  6349. pid_t
  6350. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  6351. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  6352. /* Convince the compiler that p..p7 are live; otherwise, it might
  6353. use the same hardware register for all 8 local variables. */
  6354. if (p != p1 || p != p2 || p != p3 || p != p4
  6355. || p != p5 || p != p6 || p != p7)
  6356. _exit(1);
  6357. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  6358. from child file descriptors. If the child closes a descriptor
  6359. before it execs or exits, this munges the parent's descriptor
  6360. as well. Test for this by closing stdout in the child. */
  6361. _exit(close(fileno(stdout)) != 0);
  6362. } else {
  6363. int status;
  6364. struct stat st;
  6365. while (wait(&status) != child)
  6366. ;
  6367. return (
  6368. /* Was there some problem with vforking? */
  6369. child < 0
  6370. /* Did the child fail? (This shouldn't happen.) */
  6371. || status
  6372. /* Did the vfork/compiler bug occur? */
  6373. || parent != getpid()
  6374. /* Did the file descriptor bug occur? */
  6375. || fstat(fileno(stdout), &st) != 0
  6376. );
  6377. }
  6378. }
  6379. _ACEOF
  6380. if ac_fn_cxx_try_run "$LINENO"; then :
  6381. ac_cv_func_vfork_works=yes
  6382. else
  6383. ac_cv_func_vfork_works=no
  6384. fi
  6385. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6386. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6387. fi
  6388. fi
  6389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  6390. $as_echo "$ac_cv_func_vfork_works" >&6; }
  6391. fi;
  6392. if test "x$ac_cv_func_fork_works" = xcross; then
  6393. ac_cv_func_vfork_works=$ac_cv_func_vfork
  6394. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  6395. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  6396. fi
  6397. if test "x$ac_cv_func_vfork_works" = xyes; then
  6398. $as_echo "#define HAVE_WORKING_VFORK 1" >>build/confdefs.h
  6399. else
  6400. $as_echo "#define vfork fork" >>build/confdefs.h
  6401. fi
  6402. if test "x$ac_cv_func_fork_works" = xyes; then
  6403. $as_echo "#define HAVE_WORKING_FORK 1" >>build/confdefs.h
  6404. fi
  6405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  6406. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  6407. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  6408. $as_echo_n "(cached) " >&6
  6409. else
  6410. rm -f conftest.sym conftest.file
  6411. echo >conftest.file
  6412. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  6413. if test "$cross_compiling" = yes; then :
  6414. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6415. else
  6416. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6417. /* end build/confdefs.h. */
  6418. $ac_includes_default
  6419. int
  6420. main ()
  6421. {
  6422. struct stat sbuf;
  6423. /* Linux will dereference the symlink and fail, as required by POSIX.
  6424. That is better in the sense that it means we will not
  6425. have to compile and use the lstat wrapper. */
  6426. return lstat ("conftest.sym/", &sbuf) == 0;
  6427. ;
  6428. return 0;
  6429. }
  6430. _ACEOF
  6431. if ac_fn_cxx_try_run "$LINENO"; then :
  6432. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  6433. else
  6434. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6435. fi
  6436. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6437. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6438. fi
  6439. else
  6440. # If the `ln -s' command failed, then we probably don't even
  6441. # have an lstat function.
  6442. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6443. fi
  6444. rm -f conftest.sym conftest.file
  6445. fi
  6446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  6447. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  6448. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  6449. cat >>build/confdefs.h <<_ACEOF
  6450. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  6451. _ACEOF
  6452. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  6453. case " $LIBOBJS " in
  6454. *" lstat.$ac_objext "* ) ;;
  6455. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  6456. ;;
  6457. esac
  6458. fi
  6459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
  6460. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  6461. if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
  6462. $as_echo_n "(cached) " >&6
  6463. else
  6464. if test "$cross_compiling" = yes; then :
  6465. ac_cv_func_lstat_empty_string_bug=yes
  6466. else
  6467. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6468. /* end build/confdefs.h. */
  6469. $ac_includes_default
  6470. int
  6471. main ()
  6472. {
  6473. struct stat sbuf;
  6474. return lstat ("", &sbuf) == 0;
  6475. ;
  6476. return 0;
  6477. }
  6478. _ACEOF
  6479. if ac_fn_cxx_try_run "$LINENO"; then :
  6480. ac_cv_func_lstat_empty_string_bug=no
  6481. else
  6482. ac_cv_func_lstat_empty_string_bug=yes
  6483. fi
  6484. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6485. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6486. fi
  6487. fi
  6488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
  6489. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  6490. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  6491. case " $LIBOBJS " in
  6492. *" lstat.$ac_objext "* ) ;;
  6493. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  6494. ;;
  6495. esac
  6496. cat >>build/confdefs.h <<_ACEOF
  6497. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  6498. _ACEOF
  6499. fi
  6500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  6501. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  6502. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  6503. $as_echo_n "(cached) " >&6
  6504. else
  6505. rm -f conftest.sym conftest.file
  6506. echo >conftest.file
  6507. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  6508. if test "$cross_compiling" = yes; then :
  6509. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6510. else
  6511. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6512. /* end build/confdefs.h. */
  6513. $ac_includes_default
  6514. int
  6515. main ()
  6516. {
  6517. struct stat sbuf;
  6518. /* Linux will dereference the symlink and fail, as required by POSIX.
  6519. That is better in the sense that it means we will not
  6520. have to compile and use the lstat wrapper. */
  6521. return lstat ("conftest.sym/", &sbuf) == 0;
  6522. ;
  6523. return 0;
  6524. }
  6525. _ACEOF
  6526. if ac_fn_cxx_try_run "$LINENO"; then :
  6527. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  6528. else
  6529. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6530. fi
  6531. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6532. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6533. fi
  6534. else
  6535. # If the `ln -s' command failed, then we probably don't even
  6536. # have an lstat function.
  6537. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6538. fi
  6539. rm -f conftest.sym conftest.file
  6540. fi
  6541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  6542. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  6543. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  6544. cat >>build/confdefs.h <<_ACEOF
  6545. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  6546. _ACEOF
  6547. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  6548. case " $LIBOBJS " in
  6549. *" lstat.$ac_objext "* ) ;;
  6550. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  6551. ;;
  6552. esac
  6553. fi
  6554. for ac_header in stdlib.h
  6555. do :
  6556. ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  6557. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  6558. cat >>build/confdefs.h <<_ACEOF
  6559. #define HAVE_STDLIB_H 1
  6560. _ACEOF
  6561. fi
  6562. done
  6563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  6564. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  6565. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  6566. $as_echo_n "(cached) " >&6
  6567. else
  6568. if test "$cross_compiling" = yes; then :
  6569. ac_cv_func_malloc_0_nonnull=no
  6570. else
  6571. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6572. /* end build/confdefs.h. */
  6573. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  6574. # include <stdlib.h>
  6575. #else
  6576. char *malloc ();
  6577. #endif
  6578. int
  6579. main ()
  6580. {
  6581. return ! malloc (0);
  6582. ;
  6583. return 0;
  6584. }
  6585. _ACEOF
  6586. if ac_fn_cxx_try_run "$LINENO"; then :
  6587. ac_cv_func_malloc_0_nonnull=yes
  6588. else
  6589. ac_cv_func_malloc_0_nonnull=no
  6590. fi
  6591. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6592. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6593. fi
  6594. fi
  6595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  6596. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  6597. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  6598. $as_echo "#define HAVE_MALLOC 1" >>build/confdefs.h
  6599. else
  6600. $as_echo "#define HAVE_MALLOC 0" >>build/confdefs.h
  6601. case " $LIBOBJS " in
  6602. *" malloc.$ac_objext "* ) ;;
  6603. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  6604. ;;
  6605. esac
  6606. $as_echo "#define malloc rpl_malloc" >>build/confdefs.h
  6607. fi
  6608. for ac_header in $ac_header_list
  6609. do :
  6610. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6611. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6612. "
  6613. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6614. cat >>build/confdefs.h <<_ACEOF
  6615. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6616. _ACEOF
  6617. fi
  6618. done
  6619. for ac_func in $ac_func_list
  6620. do :
  6621. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6622. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6623. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6624. cat >>build/confdefs.h <<_ACEOF
  6625. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6626. _ACEOF
  6627. fi
  6628. done
  6629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  6630. $as_echo_n "checking for working mktime... " >&6; }
  6631. if ${ac_cv_func_working_mktime+:} false; then :
  6632. $as_echo_n "(cached) " >&6
  6633. else
  6634. if test "$cross_compiling" = yes; then :
  6635. ac_cv_func_working_mktime=no
  6636. else
  6637. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6638. /* end build/confdefs.h. */
  6639. /* Test program from Paul Eggert and Tony Leneis. */
  6640. #ifdef TIME_WITH_SYS_TIME
  6641. # include <sys/time.h>
  6642. # include <time.h>
  6643. #else
  6644. # ifdef HAVE_SYS_TIME_H
  6645. # include <sys/time.h>
  6646. # else
  6647. # include <time.h>
  6648. # endif
  6649. #endif
  6650. #include <limits.h>
  6651. #include <stdlib.h>
  6652. #ifdef HAVE_UNISTD_H
  6653. # include <unistd.h>
  6654. #endif
  6655. #ifndef HAVE_ALARM
  6656. # define alarm(X) /* empty */
  6657. #endif
  6658. /* Work around redefinition to rpl_putenv by other config tests. */
  6659. #undef putenv
  6660. static time_t time_t_max;
  6661. static time_t time_t_min;
  6662. /* Values we'll use to set the TZ environment variable. */
  6663. static const char *tz_strings[] = {
  6664. (const char *) 0, "TZ=GMT0", "TZ=JST-9",
  6665. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  6666. };
  6667. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  6668. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  6669. Based on a problem report from Andreas Jaeger. */
  6670. static int
  6671. spring_forward_gap ()
  6672. {
  6673. /* glibc (up to about 1998-10-07) failed this test. */
  6674. struct tm tm;
  6675. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  6676. instead of "TZ=America/Vancouver" in order to detect the bug even
  6677. on systems that don't support the Olson extension, or don't have the
  6678. full zoneinfo tables installed. */
  6679. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  6680. tm.tm_year = 98;
  6681. tm.tm_mon = 3;
  6682. tm.tm_mday = 5;
  6683. tm.tm_hour = 2;
  6684. tm.tm_min = 0;
  6685. tm.tm_sec = 0;
  6686. tm.tm_isdst = -1;
  6687. return mktime (&tm) != (time_t) -1;
  6688. }
  6689. static int
  6690. mktime_test1 (time_t now)
  6691. {
  6692. struct tm *lt;
  6693. return ! (lt = localtime (&now)) || mktime (lt) == now;
  6694. }
  6695. static int
  6696. mktime_test (time_t now)
  6697. {
  6698. return (mktime_test1 (now)
  6699. && mktime_test1 ((time_t) (time_t_max - now))
  6700. && mktime_test1 ((time_t) (time_t_min + now)));
  6701. }
  6702. static int
  6703. irix_6_4_bug ()
  6704. {
  6705. /* Based on code from Ariel Faigon. */
  6706. struct tm tm;
  6707. tm.tm_year = 96;
  6708. tm.tm_mon = 3;
  6709. tm.tm_mday = 0;
  6710. tm.tm_hour = 0;
  6711. tm.tm_min = 0;
  6712. tm.tm_sec = 0;
  6713. tm.tm_isdst = -1;
  6714. mktime (&tm);
  6715. return tm.tm_mon == 2 && tm.tm_mday == 31;
  6716. }
  6717. static int
  6718. bigtime_test (int j)
  6719. {
  6720. struct tm tm;
  6721. time_t now;
  6722. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  6723. now = mktime (&tm);
  6724. if (now != (time_t) -1)
  6725. {
  6726. struct tm *lt = localtime (&now);
  6727. if (! (lt
  6728. && lt->tm_year == tm.tm_year
  6729. && lt->tm_mon == tm.tm_mon
  6730. && lt->tm_mday == tm.tm_mday
  6731. && lt->tm_hour == tm.tm_hour
  6732. && lt->tm_min == tm.tm_min
  6733. && lt->tm_sec == tm.tm_sec
  6734. && lt->tm_yday == tm.tm_yday
  6735. && lt->tm_wday == tm.tm_wday
  6736. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  6737. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  6738. return 0;
  6739. }
  6740. return 1;
  6741. }
  6742. static int
  6743. year_2050_test ()
  6744. {
  6745. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  6746. ignoring leap seconds. */
  6747. unsigned long int answer = 2527315200UL;
  6748. struct tm tm;
  6749. time_t t;
  6750. tm.tm_year = 2050 - 1900;
  6751. tm.tm_mon = 2 - 1;
  6752. tm.tm_mday = 1;
  6753. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  6754. tm.tm_isdst = -1;
  6755. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  6756. instead of "TZ=America/Vancouver" in order to detect the bug even
  6757. on systems that don't support the Olson extension, or don't have the
  6758. full zoneinfo tables installed. */
  6759. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  6760. t = mktime (&tm);
  6761. /* Check that the result is either a failure, or close enough
  6762. to the correct answer that we can assume the discrepancy is
  6763. due to leap seconds. */
  6764. return (t == (time_t) -1
  6765. || (0 < t && answer - 120 <= t && t <= answer + 120));
  6766. }
  6767. int
  6768. main ()
  6769. {
  6770. time_t t, delta;
  6771. int i, j;
  6772. /* This test makes some buggy mktime implementations loop.
  6773. Give up after 60 seconds; a mktime slower than that
  6774. isn't worth using anyway. */
  6775. alarm (60);
  6776. for (;;)
  6777. {
  6778. t = (time_t_max << 1) + 1;
  6779. if (t <= time_t_max)
  6780. break;
  6781. time_t_max = t;
  6782. }
  6783. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  6784. delta = time_t_max / 997; /* a suitable prime number */
  6785. for (i = 0; i < N_STRINGS; i++)
  6786. {
  6787. if (tz_strings[i])
  6788. putenv ((char*) tz_strings[i]);
  6789. for (t = 0; t <= time_t_max - delta; t += delta)
  6790. if (! mktime_test (t))
  6791. return 1;
  6792. if (! (mktime_test ((time_t) 1)
  6793. && mktime_test ((time_t) (60 * 60))
  6794. && mktime_test ((time_t) (60 * 60 * 24))))
  6795. return 1;
  6796. for (j = 1; ; j <<= 1)
  6797. if (! bigtime_test (j))
  6798. return 1;
  6799. else if (INT_MAX / 2 < j)
  6800. break;
  6801. if (! bigtime_test (INT_MAX))
  6802. return 1;
  6803. }
  6804. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  6805. }
  6806. _ACEOF
  6807. if ac_fn_cxx_try_run "$LINENO"; then :
  6808. ac_cv_func_working_mktime=yes
  6809. else
  6810. ac_cv_func_working_mktime=no
  6811. fi
  6812. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6813. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6814. fi
  6815. fi
  6816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  6817. $as_echo "$ac_cv_func_working_mktime" >&6; }
  6818. if test $ac_cv_func_working_mktime = no; then
  6819. case " $LIBOBJS " in
  6820. *" mktime.$ac_objext "* ) ;;
  6821. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  6822. ;;
  6823. esac
  6824. fi
  6825. for ac_func in getpagesize
  6826. do :
  6827. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  6828. if test "x$ac_cv_func_getpagesize" = xyes; then :
  6829. cat >>build/confdefs.h <<_ACEOF
  6830. #define HAVE_GETPAGESIZE 1
  6831. _ACEOF
  6832. fi
  6833. done
  6834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  6835. $as_echo_n "checking for working mmap... " >&6; }
  6836. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  6837. $as_echo_n "(cached) " >&6
  6838. else
  6839. if test "$cross_compiling" = yes; then :
  6840. ac_cv_func_mmap_fixed_mapped=no
  6841. else
  6842. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6843. /* end build/confdefs.h. */
  6844. $ac_includes_default
  6845. /* malloc might have been renamed as rpl_malloc. */
  6846. #undef malloc
  6847. /* Thanks to Mike Haertel and Jim Avera for this test.
  6848. Here is a matrix of mmap possibilities:
  6849. mmap private not fixed
  6850. mmap private fixed at somewhere currently unmapped
  6851. mmap private fixed at somewhere already mapped
  6852. mmap shared not fixed
  6853. mmap shared fixed at somewhere currently unmapped
  6854. mmap shared fixed at somewhere already mapped
  6855. For private mappings, we should verify that changes cannot be read()
  6856. back from the file, nor mmap's back from the file at a different
  6857. address. (There have been systems where private was not correctly
  6858. implemented like the infamous i386 svr4.0, and systems where the
  6859. VM page cache was not coherent with the file system buffer cache
  6860. like early versions of FreeBSD and possibly contemporary NetBSD.)
  6861. For shared mappings, we should conversely verify that changes get
  6862. propagated back to all the places they're supposed to be.
  6863. Grep wants private fixed already mapped.
  6864. The main things grep needs to know about mmap are:
  6865. * does it exist and is it safe to write into the mmap'd area
  6866. * how to use it (BSD variants) */
  6867. #include <fcntl.h>
  6868. #include <sys/mman.h>
  6869. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  6870. char *malloc ();
  6871. #endif
  6872. /* This mess was copied from the GNU getpagesize.h. */
  6873. #ifndef HAVE_GETPAGESIZE
  6874. # ifdef _SC_PAGESIZE
  6875. # define getpagesize() sysconf(_SC_PAGESIZE)
  6876. # else /* no _SC_PAGESIZE */
  6877. # ifdef HAVE_SYS_PARAM_H
  6878. # include <sys/param.h>
  6879. # ifdef EXEC_PAGESIZE
  6880. # define getpagesize() EXEC_PAGESIZE
  6881. # else /* no EXEC_PAGESIZE */
  6882. # ifdef NBPG
  6883. # define getpagesize() NBPG * CLSIZE
  6884. # ifndef CLSIZE
  6885. # define CLSIZE 1
  6886. # endif /* no CLSIZE */
  6887. # else /* no NBPG */
  6888. # ifdef NBPC
  6889. # define getpagesize() NBPC
  6890. # else /* no NBPC */
  6891. # ifdef PAGESIZE
  6892. # define getpagesize() PAGESIZE
  6893. # endif /* PAGESIZE */
  6894. # endif /* no NBPC */
  6895. # endif /* no NBPG */
  6896. # endif /* no EXEC_PAGESIZE */
  6897. # else /* no HAVE_SYS_PARAM_H */
  6898. # define getpagesize() 8192 /* punt totally */
  6899. # endif /* no HAVE_SYS_PARAM_H */
  6900. # endif /* no _SC_PAGESIZE */
  6901. #endif /* no HAVE_GETPAGESIZE */
  6902. int
  6903. main ()
  6904. {
  6905. char *data, *data2, *data3;
  6906. const char *cdata2;
  6907. int i, pagesize;
  6908. int fd, fd2;
  6909. pagesize = getpagesize ();
  6910. /* First, make a file with some known garbage in it. */
  6911. data = (char *) malloc (pagesize);
  6912. if (!data)
  6913. return 1;
  6914. for (i = 0; i < pagesize; ++i)
  6915. *(data + i) = rand ();
  6916. umask (0);
  6917. fd = creat ("conftest.mmap", 0600);
  6918. if (fd < 0)
  6919. return 2;
  6920. if (write (fd, data, pagesize) != pagesize)
  6921. return 3;
  6922. close (fd);
  6923. /* Next, check that the tail of a page is zero-filled. File must have
  6924. non-zero length, otherwise we risk SIGBUS for entire page. */
  6925. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  6926. if (fd2 < 0)
  6927. return 4;
  6928. cdata2 = "";
  6929. if (write (fd2, cdata2, 1) != 1)
  6930. return 5;
  6931. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  6932. if (data2 == MAP_FAILED)
  6933. return 6;
  6934. for (i = 0; i < pagesize; ++i)
  6935. if (*(data2 + i))
  6936. return 7;
  6937. close (fd2);
  6938. if (munmap (data2, pagesize))
  6939. return 8;
  6940. /* Next, try to mmap the file at a fixed address which already has
  6941. something else allocated at it. If we can, also make sure that
  6942. we see the same garbage. */
  6943. fd = open ("conftest.mmap", O_RDWR);
  6944. if (fd < 0)
  6945. return 9;
  6946. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  6947. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  6948. return 10;
  6949. for (i = 0; i < pagesize; ++i)
  6950. if (*(data + i) != *(data2 + i))
  6951. return 11;
  6952. /* Finally, make sure that changes to the mapped area do not
  6953. percolate back to the file as seen by read(). (This is a bug on
  6954. some variants of i386 svr4.0.) */
  6955. for (i = 0; i < pagesize; ++i)
  6956. *(data2 + i) = *(data2 + i) + 1;
  6957. data3 = (char *) malloc (pagesize);
  6958. if (!data3)
  6959. return 12;
  6960. if (read (fd, data3, pagesize) != pagesize)
  6961. return 13;
  6962. for (i = 0; i < pagesize; ++i)
  6963. if (*(data + i) != *(data3 + i))
  6964. return 14;
  6965. close (fd);
  6966. return 0;
  6967. }
  6968. _ACEOF
  6969. if ac_fn_cxx_try_run "$LINENO"; then :
  6970. ac_cv_func_mmap_fixed_mapped=yes
  6971. else
  6972. ac_cv_func_mmap_fixed_mapped=no
  6973. fi
  6974. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6975. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6976. fi
  6977. fi
  6978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  6979. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  6980. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  6981. $as_echo "#define HAVE_MMAP 1" >>build/confdefs.h
  6982. fi
  6983. rm -f conftest.mmap conftest.txt
  6984. for ac_header in stdlib.h
  6985. do :
  6986. ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  6987. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  6988. cat >>build/confdefs.h <<_ACEOF
  6989. #define HAVE_STDLIB_H 1
  6990. _ACEOF
  6991. fi
  6992. done
  6993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
  6994. $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
  6995. if ${ac_cv_func_realloc_0_nonnull+:} false; then :
  6996. $as_echo_n "(cached) " >&6
  6997. else
  6998. if test "$cross_compiling" = yes; then :
  6999. ac_cv_func_realloc_0_nonnull=no
  7000. else
  7001. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7002. /* end build/confdefs.h. */
  7003. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  7004. # include <stdlib.h>
  7005. #else
  7006. char *realloc ();
  7007. #endif
  7008. int
  7009. main ()
  7010. {
  7011. return ! realloc (0, 0);
  7012. ;
  7013. return 0;
  7014. }
  7015. _ACEOF
  7016. if ac_fn_cxx_try_run "$LINENO"; then :
  7017. ac_cv_func_realloc_0_nonnull=yes
  7018. else
  7019. ac_cv_func_realloc_0_nonnull=no
  7020. fi
  7021. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7022. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7023. fi
  7024. fi
  7025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
  7026. $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
  7027. if test $ac_cv_func_realloc_0_nonnull = yes; then :
  7028. $as_echo "#define HAVE_REALLOC 1" >>build/confdefs.h
  7029. else
  7030. $as_echo "#define HAVE_REALLOC 0" >>build/confdefs.h
  7031. case " $LIBOBJS " in
  7032. *" realloc.$ac_objext "* ) ;;
  7033. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  7034. ;;
  7035. esac
  7036. $as_echo "#define realloc rpl_realloc" >>build/confdefs.h
  7037. fi
  7038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  7039. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  7040. if ${ac_cv_func_stat_empty_string_bug+:} false; then :
  7041. $as_echo_n "(cached) " >&6
  7042. else
  7043. if test "$cross_compiling" = yes; then :
  7044. ac_cv_func_stat_empty_string_bug=yes
  7045. else
  7046. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7047. /* end build/confdefs.h. */
  7048. $ac_includes_default
  7049. int
  7050. main ()
  7051. {
  7052. struct stat sbuf;
  7053. return stat ("", &sbuf) == 0;
  7054. ;
  7055. return 0;
  7056. }
  7057. _ACEOF
  7058. if ac_fn_cxx_try_run "$LINENO"; then :
  7059. ac_cv_func_stat_empty_string_bug=no
  7060. else
  7061. ac_cv_func_stat_empty_string_bug=yes
  7062. fi
  7063. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7064. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7065. fi
  7066. fi
  7067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  7068. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  7069. if test $ac_cv_func_stat_empty_string_bug = yes; then
  7070. case " $LIBOBJS " in
  7071. *" stat.$ac_objext "* ) ;;
  7072. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  7073. ;;
  7074. esac
  7075. cat >>build/confdefs.h <<_ACEOF
  7076. #define HAVE_STAT_EMPTY_STRING_BUG 1
  7077. _ACEOF
  7078. fi
  7079. ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
  7080. #include <sys/time.h>
  7081. #include <time.h>
  7082. "
  7083. if test "x$ac_cv_type_struct_timespec" = xyes; then :
  7084. $as_echo "#define HAVE_TIMESPEC 1" >>build/confdefs.h
  7085. fi
  7086. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  7087. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
  7088. if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
  7089. $as_echo "#define HAVE_ST_MTIM 1" >>build/confdefs.h
  7090. else
  7091. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
  7092. if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
  7093. $as_echo "#define HAVE_ST_MTIMESPEC 1" >>build/confdefs.h
  7094. fi
  7095. fi
  7096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-parameter timespecsub" >&5
  7097. $as_echo_n "checking for two-parameter timespecsub... " >&6; }
  7098. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7099. /* end build/confdefs.h. */
  7100. #include <sys/types.h>
  7101. #include <sys/time.h>
  7102. int
  7103. main ()
  7104. {
  7105. struct timespec ts1, ts2;
  7106. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  7107. #ifndef timespecsub
  7108. #error missing timespecsub
  7109. #endif
  7110. timespecsub(&ts1, &ts2);
  7111. ;
  7112. return 0;
  7113. }
  7114. _ACEOF
  7115. if ac_fn_cxx_try_compile "$LINENO"; then :
  7116. $as_echo "#define HAVE_TIMESPECSUB2 1" >>build/confdefs.h
  7117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7118. $as_echo "yes" >&6; }
  7119. else
  7120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7121. $as_echo "no" >&6; }
  7122. fi
  7123. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7124. fi
  7125. for ac_func in strftime
  7126. do :
  7127. ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  7128. if test "x$ac_cv_func_strftime" = xyes; then :
  7129. cat >>build/confdefs.h <<_ACEOF
  7130. #define HAVE_STRFTIME 1
  7131. _ACEOF
  7132. else
  7133. # strftime is in -lintl on SCO UNIX.
  7134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  7135. $as_echo_n "checking for strftime in -lintl... " >&6; }
  7136. if ${ac_cv_lib_intl_strftime+:} false; then :
  7137. $as_echo_n "(cached) " >&6
  7138. else
  7139. ac_check_lib_save_LIBS=$LIBS
  7140. LIBS="-lintl $LIBS"
  7141. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7142. /* end build/confdefs.h. */
  7143. /* Override any GCC internal prototype to avoid an error.
  7144. Use char because int might match the return type of a GCC
  7145. builtin and then its argument prototype would still apply. */
  7146. #ifdef __cplusplus
  7147. extern "C"
  7148. #endif
  7149. char strftime ();
  7150. int
  7151. main ()
  7152. {
  7153. return strftime ();
  7154. ;
  7155. return 0;
  7156. }
  7157. _ACEOF
  7158. if ac_fn_cxx_try_link "$LINENO"; then :
  7159. ac_cv_lib_intl_strftime=yes
  7160. else
  7161. ac_cv_lib_intl_strftime=no
  7162. fi
  7163. rm -f core conftest.err conftest.$ac_objext \
  7164. conftest$ac_exeext conftest.$ac_ext
  7165. LIBS=$ac_check_lib_save_LIBS
  7166. fi
  7167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  7168. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  7169. if test "x$ac_cv_lib_intl_strftime" = xyes; then :
  7170. $as_echo "#define HAVE_STRFTIME 1" >>build/confdefs.h
  7171. LIBS="-lintl $LIBS"
  7172. fi
  7173. fi
  7174. done
  7175. #checkpoint
  7176. cat >confcache <<\_ACEOF
  7177. # This file is a shell script that caches the results of configure
  7178. # tests run on this system so they can be shared between configure
  7179. # scripts and configure runs, see configure's option --config-cache.
  7180. # It is not useful on other systems. If it contains results you don't
  7181. # want to keep, you may remove or edit it.
  7182. #
  7183. # build/config.status only pays attention to the cache file if you give it
  7184. # the --recheck option to rerun configure.
  7185. #
  7186. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7187. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7188. # following values.
  7189. _ACEOF
  7190. # The following way of writing the cache mishandles newlines in values,
  7191. # but we know of no workaround that is simple, portable, and efficient.
  7192. # So, we kill variables containing newlines.
  7193. # Ultrix sh set writes to stderr and can't be redirected directly,
  7194. # and sets the high bit in the cache file unless we assign to the vars.
  7195. (
  7196. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7197. eval ac_val=\$$ac_var
  7198. case $ac_val in #(
  7199. *${as_nl}*)
  7200. case $ac_var in #(
  7201. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7202. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7203. esac
  7204. case $ac_var in #(
  7205. _ | IFS | as_nl) ;; #(
  7206. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7207. *) { eval $ac_var=; unset $ac_var;} ;;
  7208. esac ;;
  7209. esac
  7210. done
  7211. (set) 2>&1 |
  7212. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7213. *${as_nl}ac_space=\ *)
  7214. # `set' does not quote correctly, so add quotes: double-quote
  7215. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7216. sed -n \
  7217. "s/'/'\\\\''/g;
  7218. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7219. ;; #(
  7220. *)
  7221. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7222. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7223. ;;
  7224. esac |
  7225. sort
  7226. ) |
  7227. sed '
  7228. /^ac_cv_env_/b end
  7229. t clear
  7230. :clear
  7231. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7232. t end
  7233. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7234. :end' >>confcache
  7235. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7236. if test -w "$cache_file"; then
  7237. if test "x$cache_file" != "x/dev/null"; then
  7238. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7239. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7240. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7241. cat confcache >"$cache_file"
  7242. else
  7243. case $cache_file in #(
  7244. */* | ?:*)
  7245. mv -f confcache "$cache_file"$$ &&
  7246. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7247. *)
  7248. mv -f confcache "$cache_file" ;;
  7249. esac
  7250. fi
  7251. fi
  7252. else
  7253. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7254. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7255. fi
  7256. fi
  7257. rm -f confcache
  7258. for ac_func in clock fsync getrusage isascii getpassphrase
  7259. do :
  7260. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7261. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7262. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7263. cat >>build/confdefs.h <<_ACEOF
  7264. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7265. _ACEOF
  7266. fi
  7267. done
  7268. for ac_func in memcpy memset random rename snprintf srandom gettime
  7269. do :
  7270. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7271. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7272. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7273. cat >>build/confdefs.h <<_ACEOF
  7274. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7275. _ACEOF
  7276. fi
  7277. done
  7278. #checkpoint
  7279. cat >confcache <<\_ACEOF
  7280. # This file is a shell script that caches the results of configure
  7281. # tests run on this system so they can be shared between configure
  7282. # scripts and configure runs, see configure's option --config-cache.
  7283. # It is not useful on other systems. If it contains results you don't
  7284. # want to keep, you may remove or edit it.
  7285. #
  7286. # build/config.status only pays attention to the cache file if you give it
  7287. # the --recheck option to rerun configure.
  7288. #
  7289. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7290. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7291. # following values.
  7292. _ACEOF
  7293. # The following way of writing the cache mishandles newlines in values,
  7294. # but we know of no workaround that is simple, portable, and efficient.
  7295. # So, we kill variables containing newlines.
  7296. # Ultrix sh set writes to stderr and can't be redirected directly,
  7297. # and sets the high bit in the cache file unless we assign to the vars.
  7298. (
  7299. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7300. eval ac_val=\$$ac_var
  7301. case $ac_val in #(
  7302. *${as_nl}*)
  7303. case $ac_var in #(
  7304. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7305. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7306. esac
  7307. case $ac_var in #(
  7308. _ | IFS | as_nl) ;; #(
  7309. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7310. *) { eval $ac_var=; unset $ac_var;} ;;
  7311. esac ;;
  7312. esac
  7313. done
  7314. (set) 2>&1 |
  7315. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7316. *${as_nl}ac_space=\ *)
  7317. # `set' does not quote correctly, so add quotes: double-quote
  7318. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7319. sed -n \
  7320. "s/'/'\\\\''/g;
  7321. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7322. ;; #(
  7323. *)
  7324. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7325. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7326. ;;
  7327. esac |
  7328. sort
  7329. ) |
  7330. sed '
  7331. /^ac_cv_env_/b end
  7332. t clear
  7333. :clear
  7334. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7335. t end
  7336. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7337. :end' >>confcache
  7338. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7339. if test -w "$cache_file"; then
  7340. if test "x$cache_file" != "x/dev/null"; then
  7341. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7342. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7343. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7344. cat confcache >"$cache_file"
  7345. else
  7346. case $cache_file in #(
  7347. */* | ?:*)
  7348. mv -f confcache "$cache_file"$$ &&
  7349. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7350. *)
  7351. mv -f confcache "$cache_file" ;;
  7352. esac
  7353. fi
  7354. fi
  7355. else
  7356. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7357. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7358. fi
  7359. fi
  7360. rm -f confcache
  7361. for ac_func in strcasecmp strncasecmp vsnprintf
  7362. do :
  7363. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7364. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7365. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7366. cat >>build/confdefs.h <<_ACEOF
  7367. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7368. _ACEOF
  7369. fi
  7370. done
  7371. #autoscan suggested this....
  7372. #These are recommended by autoscan, but no code supports it currently
  7373. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  7374. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  7375. for ac_func in vsprintf
  7376. do :
  7377. ac_fn_cxx_check_func "$LINENO" "vsprintf" "ac_cv_func_vsprintf"
  7378. if test "x$ac_cv_func_vsprintf" = xyes; then :
  7379. cat >>build/confdefs.h <<_ACEOF
  7380. #define HAVE_VSPRINTF 1
  7381. _ACEOF
  7382. fi
  7383. done
  7384. if test "$ac_cv_func_vsprintf" = "no"
  7385. then
  7386. cat << 'EOF' >&2
  7387. configure: error:
  7388. Your system does not have the sprintf/vsprintf libraries.
  7389. These are required to compile almost anything. Sorry.
  7390. EOF
  7391. exit 1
  7392. fi
  7393. for ac_func in uname
  7394. do :
  7395. ac_fn_cxx_check_func "$LINENO" "uname" "ac_cv_func_uname"
  7396. if test "x$ac_cv_func_uname" = xyes; then :
  7397. cat >>build/confdefs.h <<_ACEOF
  7398. #define HAVE_UNAME 1
  7399. _ACEOF
  7400. fi
  7401. done
  7402. if test "$ac_cv_func_uname" = "no"
  7403. then
  7404. cat << 'EOF' >&2
  7405. configure: error:
  7406. Your system does not have the uname() function.
  7407. This is required for the botpack.
  7408. EOF
  7409. exit 1
  7410. fi
  7411. # Make sure we have stdc headers, since we can't compile without them
  7412. if test "$ac_cv_header_stdc" = "no"
  7413. then
  7414. cat << 'EOF' >&2
  7415. configure: error:
  7416. Your system must support ANSI C Header files.
  7417. These are required for the language support. Sorry.
  7418. EOF
  7419. exit 1
  7420. fi
  7421. #checkpoint
  7422. cat >confcache <<\_ACEOF
  7423. # This file is a shell script that caches the results of configure
  7424. # tests run on this system so they can be shared between configure
  7425. # scripts and configure runs, see configure's option --config-cache.
  7426. # It is not useful on other systems. If it contains results you don't
  7427. # want to keep, you may remove or edit it.
  7428. #
  7429. # build/config.status only pays attention to the cache file if you give it
  7430. # the --recheck option to rerun configure.
  7431. #
  7432. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7433. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7434. # following values.
  7435. _ACEOF
  7436. # The following way of writing the cache mishandles newlines in values,
  7437. # but we know of no workaround that is simple, portable, and efficient.
  7438. # So, we kill variables containing newlines.
  7439. # Ultrix sh set writes to stderr and can't be redirected directly,
  7440. # and sets the high bit in the cache file unless we assign to the vars.
  7441. (
  7442. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7443. eval ac_val=\$$ac_var
  7444. case $ac_val in #(
  7445. *${as_nl}*)
  7446. case $ac_var in #(
  7447. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7448. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7449. esac
  7450. case $ac_var in #(
  7451. _ | IFS | as_nl) ;; #(
  7452. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7453. *) { eval $ac_var=; unset $ac_var;} ;;
  7454. esac ;;
  7455. esac
  7456. done
  7457. (set) 2>&1 |
  7458. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7459. *${as_nl}ac_space=\ *)
  7460. # `set' does not quote correctly, so add quotes: double-quote
  7461. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7462. sed -n \
  7463. "s/'/'\\\\''/g;
  7464. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7465. ;; #(
  7466. *)
  7467. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7468. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7469. ;;
  7470. esac |
  7471. sort
  7472. ) |
  7473. sed '
  7474. /^ac_cv_env_/b end
  7475. t clear
  7476. :clear
  7477. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7478. t end
  7479. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7480. :end' >>confcache
  7481. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7482. if test -w "$cache_file"; then
  7483. if test "x$cache_file" != "x/dev/null"; then
  7484. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7485. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7486. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7487. cat confcache >"$cache_file"
  7488. else
  7489. case $cache_file in #(
  7490. */* | ?:*)
  7491. mv -f confcache "$cache_file"$$ &&
  7492. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7493. *)
  7494. mv -f confcache "$cache_file" ;;
  7495. esac
  7496. fi
  7497. fi
  7498. else
  7499. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7500. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7501. fi
  7502. fi
  7503. rm -f confcache
  7504. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  7505. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  7506. cat >>build/confdefs.h <<_ACEOF
  7507. #define EGG_VERSION $version_num
  7508. _ACEOF
  7509. #FIND_WRAPS
  7510. case "$srcdir" in
  7511. [\\/]* | ?:[\\/]*)
  7512. MOD_UPDIR=""
  7513. ;;
  7514. *)
  7515. MOD_UPDIR="../"
  7516. ;;
  7517. esac
  7518. 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/server.mod/Makefile src/mod/share.mod/Makefile src/mod/transfer.mod/Makefile src/mod/update.mod/Makefile"
  7519. for mf in $files; do
  7520. # Strip MF so we end up with the name of the file.
  7521. # echo "MF: $mf"
  7522. mf=`echo "$mf" | sed -e 's/:.*$//'`
  7523. dirpart=`$as_dirname -- "$mf" ||
  7524. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7525. X"$mf" : 'X\(//\)[^/]' \| \
  7526. X"$mf" : 'X\(//\)$' \| \
  7527. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  7528. $as_echo X"$mf" |
  7529. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7530. s//\1/
  7531. q
  7532. }
  7533. /^X\(\/\/\)[^/].*/{
  7534. s//\1/
  7535. q
  7536. }
  7537. /^X\(\/\/\)$/{
  7538. s//\1/
  7539. q
  7540. }
  7541. /^X\(\/\).*/{
  7542. s//\1/
  7543. q
  7544. }
  7545. s/.*/./; q'`
  7546. # echo "dirpart: $dirpart mf: $mf"
  7547. # rm -rf "$dirpart/.deps/"
  7548. rm -f "$dirpart/.deps/includes"
  7549. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  7550. for file in `sed -n -e '
  7551. /^OBJS = .*\\\\$/ {
  7552. s/^OBJS = //
  7553. :loop
  7554. s/\\\\$//
  7555. p
  7556. n
  7557. /\\\\$/ b loop
  7558. p
  7559. }
  7560. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  7561. do
  7562. base=`basename $file .o`
  7563. test -f "$dirpart/$base.c" || continue
  7564. if ! test -f "$dirpart/.deps/$base.Po"; then
  7565. echo '# dummy' > "$dirpart/.deps/$base.Po"
  7566. #Remove the .o file, because it needs to be recompiled for its dependancies.
  7567. if test -f "$dirpart/$base.o"; then
  7568. rm -f "$dirpart/$base.o"
  7569. fi
  7570. fi
  7571. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  7572. done
  7573. done
  7574. ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/buildinfo.h src/mod/mod.mk"
  7575. cat >confcache <<\_ACEOF
  7576. # This file is a shell script that caches the results of configure
  7577. # tests run on this system so they can be shared between configure
  7578. # scripts and configure runs, see configure's option --config-cache.
  7579. # It is not useful on other systems. If it contains results you don't
  7580. # want to keep, you may remove or edit it.
  7581. #
  7582. # build/config.status only pays attention to the cache file if you give it
  7583. # the --recheck option to rerun configure.
  7584. #
  7585. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7586. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7587. # following values.
  7588. _ACEOF
  7589. # The following way of writing the cache mishandles newlines in values,
  7590. # but we know of no workaround that is simple, portable, and efficient.
  7591. # So, we kill variables containing newlines.
  7592. # Ultrix sh set writes to stderr and can't be redirected directly,
  7593. # and sets the high bit in the cache file unless we assign to the vars.
  7594. (
  7595. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7596. eval ac_val=\$$ac_var
  7597. case $ac_val in #(
  7598. *${as_nl}*)
  7599. case $ac_var in #(
  7600. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7601. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7602. esac
  7603. case $ac_var in #(
  7604. _ | IFS | as_nl) ;; #(
  7605. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7606. *) { eval $ac_var=; unset $ac_var;} ;;
  7607. esac ;;
  7608. esac
  7609. done
  7610. (set) 2>&1 |
  7611. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7612. *${as_nl}ac_space=\ *)
  7613. # `set' does not quote correctly, so add quotes: double-quote
  7614. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7615. sed -n \
  7616. "s/'/'\\\\''/g;
  7617. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7618. ;; #(
  7619. *)
  7620. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7621. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7622. ;;
  7623. esac |
  7624. sort
  7625. ) |
  7626. sed '
  7627. /^ac_cv_env_/b end
  7628. t clear
  7629. :clear
  7630. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7631. t end
  7632. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7633. :end' >>confcache
  7634. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7635. if test -w "$cache_file"; then
  7636. if test "x$cache_file" != "x/dev/null"; then
  7637. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7638. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7639. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7640. cat confcache >"$cache_file"
  7641. else
  7642. case $cache_file in #(
  7643. */* | ?:*)
  7644. mv -f confcache "$cache_file"$$ &&
  7645. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7646. *)
  7647. mv -f confcache "$cache_file" ;;
  7648. esac
  7649. fi
  7650. fi
  7651. else
  7652. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7653. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7654. fi
  7655. fi
  7656. rm -f confcache
  7657. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  7658. # Let make expand exec_prefix.
  7659. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  7660. DEFS=-DHAVE_CONFIG_H
  7661. ac_libobjs=
  7662. ac_ltlibobjs=
  7663. U=
  7664. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  7665. # 1. Remove the extension, and $U if already installed.
  7666. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  7667. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  7668. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  7669. # will be set to the directory where LIBOBJS objects are built.
  7670. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  7671. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  7672. done
  7673. LIBOBJS=$ac_libobjs
  7674. LTLIBOBJS=$ac_ltlibobjs
  7675. : "${CONFIG_STATUS=./build/config.status}"
  7676. ac_write_fail=0
  7677. ac_clean_files_save=$ac_clean_files
  7678. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  7679. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  7680. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  7681. as_write_fail=0
  7682. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  7683. #! $SHELL
  7684. # Generated by $as_me.
  7685. # Run this file to recreate the current configuration.
  7686. # Compiler output produced by configure, useful for debugging
  7687. # configure, is in build/config.log if it exists.
  7688. debug=false
  7689. ac_cs_recheck=false
  7690. ac_cs_silent=false
  7691. SHELL=\${CONFIG_SHELL-$SHELL}
  7692. export SHELL
  7693. _ASEOF
  7694. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  7695. ## -------------------- ##
  7696. ## M4sh Initialization. ##
  7697. ## -------------------- ##
  7698. # Be more Bourne compatible
  7699. DUALCASE=1; export DUALCASE # for MKS sh
  7700. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  7701. emulate sh
  7702. NULLCMD=:
  7703. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  7704. # is contrary to our usage. Disable this feature.
  7705. alias -g '${1+"$@"}'='"$@"'
  7706. setopt NO_GLOB_SUBST
  7707. else
  7708. case `(set -o) 2>/dev/null` in #(
  7709. *posix*) :
  7710. set -o posix ;; #(
  7711. *) :
  7712. ;;
  7713. esac
  7714. fi
  7715. as_nl='
  7716. '
  7717. export as_nl
  7718. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  7719. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  7720. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  7721. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  7722. # Prefer a ksh shell builtin over an external printf program on Solaris,
  7723. # but without wasting forks for bash or zsh.
  7724. if test -z "$BASH_VERSION$ZSH_VERSION" \
  7725. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  7726. as_echo='print -r --'
  7727. as_echo_n='print -rn --'
  7728. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  7729. as_echo='printf %s\n'
  7730. as_echo_n='printf %s'
  7731. else
  7732. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  7733. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  7734. as_echo_n='/usr/ucb/echo -n'
  7735. else
  7736. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  7737. as_echo_n_body='eval
  7738. arg=$1;
  7739. case $arg in #(
  7740. *"$as_nl"*)
  7741. expr "X$arg" : "X\\(.*\\)$as_nl";
  7742. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  7743. esac;
  7744. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  7745. '
  7746. export as_echo_n_body
  7747. as_echo_n='sh -c $as_echo_n_body as_echo'
  7748. fi
  7749. export as_echo_body
  7750. as_echo='sh -c $as_echo_body as_echo'
  7751. fi
  7752. # The user is always right.
  7753. if test "${PATH_SEPARATOR+set}" != set; then
  7754. PATH_SEPARATOR=:
  7755. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  7756. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  7757. PATH_SEPARATOR=';'
  7758. }
  7759. fi
  7760. # IFS
  7761. # We need space, tab and new line, in precisely that order. Quoting is
  7762. # there to prevent editors from complaining about space-tab.
  7763. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  7764. # splitting by setting IFS to empty value.)
  7765. IFS=" "" $as_nl"
  7766. # Find who we are. Look in the path if we contain no directory separator.
  7767. as_myself=
  7768. case $0 in #((
  7769. *[\\/]* ) as_myself=$0 ;;
  7770. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7771. for as_dir in $PATH
  7772. do
  7773. IFS=$as_save_IFS
  7774. test -z "$as_dir" && as_dir=.
  7775. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  7776. done
  7777. IFS=$as_save_IFS
  7778. ;;
  7779. esac
  7780. # We did not find ourselves, most probably we were run as `sh COMMAND'
  7781. # in which case we are not to be found in the path.
  7782. if test "x$as_myself" = x; then
  7783. as_myself=$0
  7784. fi
  7785. if test ! -f "$as_myself"; then
  7786. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  7787. exit 1
  7788. fi
  7789. # Unset variables that we do not need and which cause bugs (e.g. in
  7790. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  7791. # suppresses any "Segmentation fault" message there. '((' could
  7792. # trigger a bug in pdksh 5.2.14.
  7793. for as_var in BASH_ENV ENV MAIL MAILPATH
  7794. do eval test x\${$as_var+set} = xset \
  7795. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  7796. done
  7797. PS1='$ '
  7798. PS2='> '
  7799. PS4='+ '
  7800. # NLS nuisances.
  7801. LC_ALL=C
  7802. export LC_ALL
  7803. LANGUAGE=C
  7804. export LANGUAGE
  7805. # CDPATH.
  7806. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  7807. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  7808. # ----------------------------------------
  7809. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  7810. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  7811. # script with STATUS, using 1 if that was 0.
  7812. as_fn_error ()
  7813. {
  7814. as_status=$1; test $as_status -eq 0 && as_status=1
  7815. if test "$4"; then
  7816. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  7817. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  7818. fi
  7819. $as_echo "$as_me: error: $2" >&2
  7820. as_fn_exit $as_status
  7821. } # as_fn_error
  7822. # as_fn_set_status STATUS
  7823. # -----------------------
  7824. # Set $? to STATUS, without forking.
  7825. as_fn_set_status ()
  7826. {
  7827. return $1
  7828. } # as_fn_set_status
  7829. # as_fn_exit STATUS
  7830. # -----------------
  7831. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  7832. as_fn_exit ()
  7833. {
  7834. set +e
  7835. as_fn_set_status $1
  7836. exit $1
  7837. } # as_fn_exit
  7838. # as_fn_unset VAR
  7839. # ---------------
  7840. # Portably unset VAR.
  7841. as_fn_unset ()
  7842. {
  7843. { eval $1=; unset $1;}
  7844. }
  7845. as_unset=as_fn_unset
  7846. # as_fn_append VAR VALUE
  7847. # ----------------------
  7848. # Append the text in VALUE to the end of the definition contained in VAR. Take
  7849. # advantage of any shell optimizations that allow amortized linear growth over
  7850. # repeated appends, instead of the typical quadratic growth present in naive
  7851. # implementations.
  7852. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  7853. eval 'as_fn_append ()
  7854. {
  7855. eval $1+=\$2
  7856. }'
  7857. else
  7858. as_fn_append ()
  7859. {
  7860. eval $1=\$$1\$2
  7861. }
  7862. fi # as_fn_append
  7863. # as_fn_arith ARG...
  7864. # ------------------
  7865. # Perform arithmetic evaluation on the ARGs, and store the result in the
  7866. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  7867. # must be portable across $(()) and expr.
  7868. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  7869. eval 'as_fn_arith ()
  7870. {
  7871. as_val=$(( $* ))
  7872. }'
  7873. else
  7874. as_fn_arith ()
  7875. {
  7876. as_val=`expr "$@" || test $? -eq 1`
  7877. }
  7878. fi # as_fn_arith
  7879. if expr a : '\(a\)' >/dev/null 2>&1 &&
  7880. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  7881. as_expr=expr
  7882. else
  7883. as_expr=false
  7884. fi
  7885. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  7886. as_basename=basename
  7887. else
  7888. as_basename=false
  7889. fi
  7890. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  7891. as_dirname=dirname
  7892. else
  7893. as_dirname=false
  7894. fi
  7895. as_me=`$as_basename -- "$0" ||
  7896. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  7897. X"$0" : 'X\(//\)$' \| \
  7898. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  7899. $as_echo X/"$0" |
  7900. sed '/^.*\/\([^/][^/]*\)\/*$/{
  7901. s//\1/
  7902. q
  7903. }
  7904. /^X\/\(\/\/\)$/{
  7905. s//\1/
  7906. q
  7907. }
  7908. /^X\/\(\/\).*/{
  7909. s//\1/
  7910. q
  7911. }
  7912. s/.*/./; q'`
  7913. # Avoid depending upon Character Ranges.
  7914. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  7915. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  7916. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  7917. as_cr_digits='0123456789'
  7918. as_cr_alnum=$as_cr_Letters$as_cr_digits
  7919. ECHO_C= ECHO_N= ECHO_T=
  7920. case `echo -n x` in #(((((
  7921. -n*)
  7922. case `echo 'xy\c'` in
  7923. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  7924. xy) ECHO_C='\c';;
  7925. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  7926. ECHO_T=' ';;
  7927. esac;;
  7928. *)
  7929. ECHO_N='-n';;
  7930. esac
  7931. rm -f conf$$ conf$$.exe conf$$.file
  7932. if test -d conf$$.dir; then
  7933. rm -f conf$$.dir/conf$$.file
  7934. else
  7935. rm -f conf$$.dir
  7936. mkdir conf$$.dir 2>/dev/null
  7937. fi
  7938. if (echo >conf$$.file) 2>/dev/null; then
  7939. if ln -s conf$$.file conf$$ 2>/dev/null; then
  7940. as_ln_s='ln -s'
  7941. # ... but there are two gotchas:
  7942. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  7943. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  7944. # In both cases, we have to default to `cp -p'.
  7945. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  7946. as_ln_s='cp -p'
  7947. elif ln conf$$.file conf$$ 2>/dev/null; then
  7948. as_ln_s=ln
  7949. else
  7950. as_ln_s='cp -p'
  7951. fi
  7952. else
  7953. as_ln_s='cp -p'
  7954. fi
  7955. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  7956. rmdir conf$$.dir 2>/dev/null
  7957. # as_fn_mkdir_p
  7958. # -------------
  7959. # Create "$as_dir" as a directory, including parents if necessary.
  7960. as_fn_mkdir_p ()
  7961. {
  7962. case $as_dir in #(
  7963. -*) as_dir=./$as_dir;;
  7964. esac
  7965. test -d "$as_dir" || eval $as_mkdir_p || {
  7966. as_dirs=
  7967. while :; do
  7968. case $as_dir in #(
  7969. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  7970. *) as_qdir=$as_dir;;
  7971. esac
  7972. as_dirs="'$as_qdir' $as_dirs"
  7973. as_dir=`$as_dirname -- "$as_dir" ||
  7974. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7975. X"$as_dir" : 'X\(//\)[^/]' \| \
  7976. X"$as_dir" : 'X\(//\)$' \| \
  7977. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  7978. $as_echo X"$as_dir" |
  7979. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7980. s//\1/
  7981. q
  7982. }
  7983. /^X\(\/\/\)[^/].*/{
  7984. s//\1/
  7985. q
  7986. }
  7987. /^X\(\/\/\)$/{
  7988. s//\1/
  7989. q
  7990. }
  7991. /^X\(\/\).*/{
  7992. s//\1/
  7993. q
  7994. }
  7995. s/.*/./; q'`
  7996. test -d "$as_dir" && break
  7997. done
  7998. test -z "$as_dirs" || eval "mkdir $as_dirs"
  7999. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  8000. } # as_fn_mkdir_p
  8001. if mkdir -p . 2>/dev/null; then
  8002. as_mkdir_p='mkdir -p "$as_dir"'
  8003. else
  8004. test -d ./-p && rmdir ./-p
  8005. as_mkdir_p=false
  8006. fi
  8007. if test -x / >/dev/null 2>&1; then
  8008. as_test_x='test -x'
  8009. else
  8010. if ls -dL / >/dev/null 2>&1; then
  8011. as_ls_L_option=L
  8012. else
  8013. as_ls_L_option=
  8014. fi
  8015. as_test_x='
  8016. eval sh -c '\''
  8017. if test -d "$1"; then
  8018. test -d "$1/.";
  8019. else
  8020. case $1 in #(
  8021. -*)set "./$1";;
  8022. esac;
  8023. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  8024. ???[sx]*):;;*)false;;esac;fi
  8025. '\'' sh
  8026. '
  8027. fi
  8028. as_executable_p=$as_test_x
  8029. # Sed expression to map a string onto a valid CPP name.
  8030. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8031. # Sed expression to map a string onto a valid variable name.
  8032. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8033. exec 6>&1
  8034. ## ----------------------------------- ##
  8035. ## Main body of $CONFIG_STATUS script. ##
  8036. ## ----------------------------------- ##
  8037. _ASEOF
  8038. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  8039. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8040. # Save the log message, to keep $0 and so on meaningful, and to
  8041. # report actual input values of CONFIG_FILES etc. instead of their
  8042. # values after options handling.
  8043. ac_log="
  8044. This file was extended by $as_me, which was
  8045. generated by GNU Autoconf 2.68. Invocation command line was
  8046. CONFIG_FILES = $CONFIG_FILES
  8047. CONFIG_HEADERS = $CONFIG_HEADERS
  8048. CONFIG_LINKS = $CONFIG_LINKS
  8049. CONFIG_COMMANDS = $CONFIG_COMMANDS
  8050. $ $0 $@
  8051. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  8052. "
  8053. _ACEOF
  8054. case $ac_config_files in *"
  8055. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  8056. esac
  8057. case $ac_config_headers in *"
  8058. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  8059. esac
  8060. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8061. # Files that build/config.status was made for.
  8062. config_files="$ac_config_files"
  8063. config_headers="$ac_config_headers"
  8064. _ACEOF
  8065. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8066. ac_cs_usage="\
  8067. \`$as_me' instantiates files and other configuration actions
  8068. from templates according to the current configuration. Unless the files
  8069. and actions are specified as TAGs, all are instantiated by default.
  8070. Usage: $0 [OPTION]... [TAG]...
  8071. -h, --help print this help, then exit
  8072. -V, --version print version number and configuration settings, then exit
  8073. --config print configuration, then exit
  8074. -q, --quiet, --silent
  8075. do not print progress messages
  8076. -d, --debug don't remove temporary files
  8077. --recheck update $as_me by reconfiguring in the same conditions
  8078. --file=FILE[:TEMPLATE]
  8079. instantiate the configuration file FILE
  8080. --header=FILE[:TEMPLATE]
  8081. instantiate the configuration header FILE
  8082. Configuration files:
  8083. $config_files
  8084. Configuration headers:
  8085. $config_headers
  8086. Report bugs to the package provider."
  8087. _ACEOF
  8088. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8089. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  8090. ac_cs_version="\\
  8091. build/config.status
  8092. configured by $0, generated by GNU Autoconf 2.68,
  8093. with options \\"\$ac_cs_config\\"
  8094. Copyright (C) 2010 Free Software Foundation, Inc.
  8095. This build/config.status script is free software; the Free Software Foundation
  8096. gives unlimited permission to copy, distribute and modify it."
  8097. ac_pwd='$ac_pwd'
  8098. srcdir='$srcdir'
  8099. AWK='$AWK'
  8100. test -n "\$AWK" || AWK=awk
  8101. _ACEOF
  8102. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8103. # The default lists apply if the user does not specify any file.
  8104. ac_need_defaults=:
  8105. while test $# != 0
  8106. do
  8107. case $1 in
  8108. --*=?*)
  8109. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8110. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  8111. ac_shift=:
  8112. ;;
  8113. --*=)
  8114. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8115. ac_optarg=
  8116. ac_shift=:
  8117. ;;
  8118. *)
  8119. ac_option=$1
  8120. ac_optarg=$2
  8121. ac_shift=shift
  8122. ;;
  8123. esac
  8124. case $ac_option in
  8125. # Handling of the options.
  8126. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8127. ac_cs_recheck=: ;;
  8128. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  8129. $as_echo "$ac_cs_version"; exit ;;
  8130. --config | --confi | --conf | --con | --co | --c )
  8131. $as_echo "$ac_cs_config"; exit ;;
  8132. --debug | --debu | --deb | --de | --d | -d )
  8133. debug=: ;;
  8134. --file | --fil | --fi | --f )
  8135. $ac_shift
  8136. case $ac_optarg in
  8137. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8138. '') as_fn_error $? "missing file argument" ;;
  8139. esac
  8140. as_fn_append CONFIG_FILES " '$ac_optarg'"
  8141. ac_need_defaults=false;;
  8142. --header | --heade | --head | --hea )
  8143. $ac_shift
  8144. case $ac_optarg in
  8145. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8146. esac
  8147. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  8148. ac_need_defaults=false;;
  8149. --he | --h)
  8150. # Conflict between --help and --header
  8151. as_fn_error $? "ambiguous option: \`$1'
  8152. Try \`$0 --help' for more information.";;
  8153. --help | --hel | -h )
  8154. $as_echo "$ac_cs_usage"; exit ;;
  8155. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8156. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  8157. ac_cs_silent=: ;;
  8158. # This is an error.
  8159. -*) as_fn_error $? "unrecognized option: \`$1'
  8160. Try \`$0 --help' for more information." ;;
  8161. *) as_fn_append ac_config_targets " $1"
  8162. ac_need_defaults=false ;;
  8163. esac
  8164. shift
  8165. done
  8166. ac_configure_extra_args=
  8167. if $ac_cs_silent; then
  8168. exec 6>/dev/null
  8169. ac_configure_extra_args="$ac_configure_extra_args --silent"
  8170. fi
  8171. _ACEOF
  8172. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8173. if \$ac_cs_recheck; then
  8174. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8175. shift
  8176. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  8177. CONFIG_SHELL='$SHELL'
  8178. export CONFIG_SHELL
  8179. exec "\$@"
  8180. fi
  8181. _ACEOF
  8182. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8183. exec 5>>build/config.log
  8184. {
  8185. echo
  8186. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8187. ## Running $as_me. ##
  8188. _ASBOX
  8189. $as_echo "$ac_log"
  8190. } >&5
  8191. _ACEOF
  8192. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8193. _ACEOF
  8194. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8195. # Handling of arguments.
  8196. for ac_config_target in $ac_config_targets
  8197. do
  8198. case $ac_config_target in
  8199. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  8200. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8201. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  8202. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  8203. "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  8204. "src/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  8205. "src/mod/Makefile") CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  8206. "src/buildinfo.h") CONFIG_FILES="$CONFIG_FILES src/buildinfo.h" ;;
  8207. "src/mod/mod.mk") CONFIG_FILES="$CONFIG_FILES src/mod/mod.mk" ;;
  8208. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  8209. esac
  8210. done
  8211. # If the user did not use the arguments to specify the items to instantiate,
  8212. # then the envvar interface is used. Set only those that are not.
  8213. # We use the long form for the default assignment because of an extremely
  8214. # bizarre bug on SunOS 4.1.3.
  8215. if $ac_need_defaults; then
  8216. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  8217. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  8218. fi
  8219. # Have a temporary directory for convenience. Make it in the build tree
  8220. # simply because there is no reason against having it here, and in addition,
  8221. # creating and moving files from /tmp can sometimes cause problems.
  8222. # Hook for its removal unless debugging.
  8223. # Note that there is a small window in which the directory will not be cleaned:
  8224. # after its creation but before its name has been assigned to `$tmp'.
  8225. $debug ||
  8226. {
  8227. tmp= ac_tmp=
  8228. trap 'exit_status=$?
  8229. : "${ac_tmp:=$tmp}"
  8230. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  8231. ' 0
  8232. trap 'as_fn_exit 1' 1 2 13 15
  8233. }
  8234. # Create a (secure) tmp directory for tmp files.
  8235. {
  8236. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  8237. test -d "$tmp"
  8238. } ||
  8239. {
  8240. tmp=./conf$$-$RANDOM
  8241. (umask 077 && mkdir "$tmp")
  8242. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  8243. ac_tmp=$tmp
  8244. # Set up the scripts for CONFIG_FILES section.
  8245. # No need to generate them if there are no CONFIG_FILES.
  8246. # This happens for instance with `./build/config.status config.h'.
  8247. if test -n "$CONFIG_FILES"; then
  8248. ac_cr=`echo X | tr X '\015'`
  8249. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  8250. # But we know of no other shell where ac_cr would be empty at this
  8251. # point, so we can use a bashism as a fallback.
  8252. if test "x$ac_cr" = x; then
  8253. eval ac_cr=\$\'\\r\'
  8254. fi
  8255. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  8256. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  8257. ac_cs_awk_cr='\\r'
  8258. else
  8259. ac_cs_awk_cr=$ac_cr
  8260. fi
  8261. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  8262. _ACEOF
  8263. {
  8264. echo "cat >conf$$subs.awk <<_ACEOF" &&
  8265. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  8266. echo "_ACEOF"
  8267. } >conf$$subs.sh ||
  8268. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8269. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  8270. ac_delim='%!_!# '
  8271. for ac_last_try in false false false false false :; do
  8272. . ./conf$$subs.sh ||
  8273. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8274. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  8275. if test $ac_delim_n = $ac_delim_num; then
  8276. break
  8277. elif $ac_last_try; then
  8278. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8279. else
  8280. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8281. fi
  8282. done
  8283. rm -f conf$$subs.sh
  8284. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8285. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  8286. _ACEOF
  8287. sed -n '
  8288. h
  8289. s/^/S["/; s/!.*/"]=/
  8290. p
  8291. g
  8292. s/^[^!]*!//
  8293. :repl
  8294. t repl
  8295. s/'"$ac_delim"'$//
  8296. t delim
  8297. :nl
  8298. h
  8299. s/\(.\{148\}\)..*/\1/
  8300. t more1
  8301. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  8302. p
  8303. n
  8304. b repl
  8305. :more1
  8306. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8307. p
  8308. g
  8309. s/.\{148\}//
  8310. t nl
  8311. :delim
  8312. h
  8313. s/\(.\{148\}\)..*/\1/
  8314. t more2
  8315. s/["\\]/\\&/g; s/^/"/; s/$/"/
  8316. p
  8317. b
  8318. :more2
  8319. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8320. p
  8321. g
  8322. s/.\{148\}//
  8323. t delim
  8324. ' <conf$$subs.awk | sed '
  8325. /^[^""]/{
  8326. N
  8327. s/\n//
  8328. }
  8329. ' >>$CONFIG_STATUS || ac_write_fail=1
  8330. rm -f conf$$subs.awk
  8331. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8332. _ACAWK
  8333. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  8334. for (key in S) S_is_set[key] = 1
  8335. FS = ""
  8336. }
  8337. {
  8338. line = $ 0
  8339. nfields = split(line, field, "@")
  8340. substed = 0
  8341. len = length(field[1])
  8342. for (i = 2; i < nfields; i++) {
  8343. key = field[i]
  8344. keylen = length(key)
  8345. if (S_is_set[key]) {
  8346. value = S[key]
  8347. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  8348. len += length(value) + length(field[++i])
  8349. substed = 1
  8350. } else
  8351. len += 1 + keylen
  8352. }
  8353. print line
  8354. }
  8355. _ACAWK
  8356. _ACEOF
  8357. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8358. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  8359. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  8360. else
  8361. cat
  8362. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  8363. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  8364. _ACEOF
  8365. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  8366. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  8367. # trailing colons and then remove the whole line if VPATH becomes empty
  8368. # (actually we leave an empty line to preserve line numbers).
  8369. if test "x$srcdir" = x.; then
  8370. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  8371. h
  8372. s///
  8373. s/^/:/
  8374. s/[ ]*$/:/
  8375. s/:\$(srcdir):/:/g
  8376. s/:\${srcdir}:/:/g
  8377. s/:@srcdir@:/:/g
  8378. s/^:*//
  8379. s/:*$//
  8380. x
  8381. s/\(=[ ]*\).*/\1/
  8382. G
  8383. s/\n//
  8384. s/^[^=]*=[ ]*$//
  8385. }'
  8386. fi
  8387. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8388. fi # test -n "$CONFIG_FILES"
  8389. # Set up the scripts for CONFIG_HEADERS section.
  8390. # No need to generate them if there are no CONFIG_HEADERS.
  8391. # This happens for instance with `./build/config.status Makefile'.
  8392. if test -n "$CONFIG_HEADERS"; then
  8393. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  8394. BEGIN {
  8395. _ACEOF
  8396. # Transform build/confdefs.h into an awk script `defines.awk', embedded as
  8397. # here-document in build/config.status, that substitutes the proper values into
  8398. # config.h.in to produce config.h.
  8399. # Create a delimiter string that does not exist in build/confdefs.h, to ease
  8400. # handling of long lines.
  8401. ac_delim='%!_!# '
  8402. for ac_last_try in false false :; do
  8403. ac_tt=`sed -n "/$ac_delim/p" build/confdefs.h`
  8404. if test -z "$ac_tt"; then
  8405. break
  8406. elif $ac_last_try; then
  8407. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  8408. else
  8409. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8410. fi
  8411. done
  8412. # For the awk script, D is an array of macro values keyed by name,
  8413. # likewise P contains macro parameters if any. Preserve backslash
  8414. # newline sequences.
  8415. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  8416. sed -n '
  8417. s/.\{148\}/&'"$ac_delim"'/g
  8418. t rset
  8419. :rset
  8420. s/^[ ]*#[ ]*define[ ][ ]*/ /
  8421. t def
  8422. d
  8423. :def
  8424. s/\\$//
  8425. t bsnl
  8426. s/["\\]/\\&/g
  8427. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8428. D["\1"]=" \3"/p
  8429. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  8430. d
  8431. :bsnl
  8432. s/["\\]/\\&/g
  8433. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8434. D["\1"]=" \3\\\\\\n"\\/p
  8435. t cont
  8436. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  8437. t cont
  8438. d
  8439. :cont
  8440. n
  8441. s/.\{148\}/&'"$ac_delim"'/g
  8442. t clear
  8443. :clear
  8444. s/\\$//
  8445. t bsnlc
  8446. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  8447. d
  8448. :bsnlc
  8449. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  8450. b cont
  8451. ' <build/confdefs.h | sed '
  8452. s/'"$ac_delim"'/"\\\
  8453. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  8454. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8455. for (key in D) D_is_set[key] = 1
  8456. FS = ""
  8457. }
  8458. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  8459. line = \$ 0
  8460. split(line, arg, " ")
  8461. if (arg[1] == "#") {
  8462. defundef = arg[2]
  8463. mac1 = arg[3]
  8464. } else {
  8465. defundef = substr(arg[1], 2)
  8466. mac1 = arg[2]
  8467. }
  8468. split(mac1, mac2, "(") #)
  8469. macro = mac2[1]
  8470. prefix = substr(line, 1, index(line, defundef) - 1)
  8471. if (D_is_set[macro]) {
  8472. # Preserve the white space surrounding the "#".
  8473. print prefix "define", macro P[macro] D[macro]
  8474. next
  8475. } else {
  8476. # Replace #undef with comments. This is necessary, for example,
  8477. # in the case of _POSIX_SOURCE, which is predefined and required
  8478. # on some systems where configure will not decide to define it.
  8479. if (defundef == "undef") {
  8480. print "/*", prefix defundef, macro, "*/"
  8481. next
  8482. }
  8483. }
  8484. }
  8485. { print }
  8486. _ACAWK
  8487. _ACEOF
  8488. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8489. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  8490. fi # test -n "$CONFIG_HEADERS"
  8491. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  8492. shift
  8493. for ac_tag
  8494. do
  8495. case $ac_tag in
  8496. :[FHLC]) ac_mode=$ac_tag; continue;;
  8497. esac
  8498. case $ac_mode$ac_tag in
  8499. :[FHL]*:*);;
  8500. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  8501. :[FH]-) ac_tag=-:-;;
  8502. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  8503. esac
  8504. ac_save_IFS=$IFS
  8505. IFS=:
  8506. set x $ac_tag
  8507. IFS=$ac_save_IFS
  8508. shift
  8509. ac_file=$1
  8510. shift
  8511. case $ac_mode in
  8512. :L) ac_source=$1;;
  8513. :[FH])
  8514. ac_file_inputs=
  8515. for ac_f
  8516. do
  8517. case $ac_f in
  8518. -) ac_f="$ac_tmp/stdin";;
  8519. *) # Look for the file first in the build tree, then in the source tree
  8520. # (if the path is not absolute). The absolute path cannot be DOS-style,
  8521. # because $ac_f cannot contain `:'.
  8522. test -f "$ac_f" ||
  8523. case $ac_f in
  8524. [\\/$]*) false;;
  8525. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  8526. esac ||
  8527. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  8528. esac
  8529. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  8530. as_fn_append ac_file_inputs " '$ac_f'"
  8531. done
  8532. # Let's still pretend it is `configure' which instantiates (i.e., don't
  8533. # use $as_me), people would be surprised to read:
  8534. # /* config.h. Generated by build/config.status. */
  8535. configure_input='Generated from '`
  8536. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  8537. `' by configure.'
  8538. if test x"$ac_file" != x-; then
  8539. configure_input="$ac_file. $configure_input"
  8540. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  8541. $as_echo "$as_me: creating $ac_file" >&6;}
  8542. fi
  8543. # Neutralize special characters interpreted by sed in replacement strings.
  8544. case $configure_input in #(
  8545. *\&* | *\|* | *\\* )
  8546. ac_sed_conf_input=`$as_echo "$configure_input" |
  8547. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  8548. *) ac_sed_conf_input=$configure_input;;
  8549. esac
  8550. case $ac_tag in
  8551. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  8552. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  8553. esac
  8554. ;;
  8555. esac
  8556. ac_dir=`$as_dirname -- "$ac_file" ||
  8557. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8558. X"$ac_file" : 'X\(//\)[^/]' \| \
  8559. X"$ac_file" : 'X\(//\)$' \| \
  8560. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  8561. $as_echo X"$ac_file" |
  8562. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8563. s//\1/
  8564. q
  8565. }
  8566. /^X\(\/\/\)[^/].*/{
  8567. s//\1/
  8568. q
  8569. }
  8570. /^X\(\/\/\)$/{
  8571. s//\1/
  8572. q
  8573. }
  8574. /^X\(\/\).*/{
  8575. s//\1/
  8576. q
  8577. }
  8578. s/.*/./; q'`
  8579. as_dir="$ac_dir"; as_fn_mkdir_p
  8580. ac_builddir=.
  8581. case "$ac_dir" in
  8582. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8583. *)
  8584. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  8585. # A ".." for each directory in $ac_dir_suffix.
  8586. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  8587. case $ac_top_builddir_sub in
  8588. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8589. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  8590. esac ;;
  8591. esac
  8592. ac_abs_top_builddir=$ac_pwd
  8593. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  8594. # for backward compatibility:
  8595. ac_top_builddir=$ac_top_build_prefix
  8596. case $srcdir in
  8597. .) # We are building in place.
  8598. ac_srcdir=.
  8599. ac_top_srcdir=$ac_top_builddir_sub
  8600. ac_abs_top_srcdir=$ac_pwd ;;
  8601. [\\/]* | ?:[\\/]* ) # Absolute name.
  8602. ac_srcdir=$srcdir$ac_dir_suffix;
  8603. ac_top_srcdir=$srcdir
  8604. ac_abs_top_srcdir=$srcdir ;;
  8605. *) # Relative name.
  8606. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  8607. ac_top_srcdir=$ac_top_build_prefix$srcdir
  8608. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  8609. esac
  8610. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  8611. case $ac_mode in
  8612. :F)
  8613. #
  8614. # CONFIG_FILE
  8615. #
  8616. _ACEOF
  8617. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8618. # If the template does not know about datarootdir, expand it.
  8619. # FIXME: This hack should be removed a few years after 2.60.
  8620. ac_datarootdir_hack=; ac_datarootdir_seen=
  8621. ac_sed_dataroot='
  8622. /datarootdir/ {
  8623. p
  8624. q
  8625. }
  8626. /@datadir@/p
  8627. /@docdir@/p
  8628. /@infodir@/p
  8629. /@localedir@/p
  8630. /@mandir@/p'
  8631. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  8632. *datarootdir*) ac_datarootdir_seen=yes;;
  8633. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  8634. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  8635. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  8636. _ACEOF
  8637. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8638. ac_datarootdir_hack='
  8639. s&@datadir@&$datadir&g
  8640. s&@docdir@&$docdir&g
  8641. s&@infodir@&$infodir&g
  8642. s&@localedir@&$localedir&g
  8643. s&@mandir@&$mandir&g
  8644. s&\\\${datarootdir}&$datarootdir&g' ;;
  8645. esac
  8646. _ACEOF
  8647. # Neutralize VPATH when `$srcdir' = `.'.
  8648. # Shell code in configure.ac might set extrasub.
  8649. # FIXME: do we really want to maintain this feature?
  8650. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8651. ac_sed_extra="$ac_vpsub
  8652. $extrasub
  8653. _ACEOF
  8654. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8655. :t
  8656. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  8657. s|@configure_input@|$ac_sed_conf_input|;t t
  8658. s&@top_builddir@&$ac_top_builddir_sub&;t t
  8659. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  8660. s&@srcdir@&$ac_srcdir&;t t
  8661. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  8662. s&@top_srcdir@&$ac_top_srcdir&;t t
  8663. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  8664. s&@builddir@&$ac_builddir&;t t
  8665. s&@abs_builddir@&$ac_abs_builddir&;t t
  8666. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  8667. $ac_datarootdir_hack
  8668. "
  8669. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  8670. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8671. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  8672. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  8673. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  8674. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  8675. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8676. which seems to be undefined. Please make sure it is defined" >&5
  8677. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8678. which seems to be undefined. Please make sure it is defined" >&2;}
  8679. rm -f "$ac_tmp/stdin"
  8680. case $ac_file in
  8681. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  8682. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  8683. esac \
  8684. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8685. ;;
  8686. :H)
  8687. #
  8688. # CONFIG_HEADER
  8689. #
  8690. if test x"$ac_file" != x-; then
  8691. {
  8692. $as_echo "/* $configure_input */" \
  8693. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  8694. } >"$ac_tmp/config.h" \
  8695. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8696. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  8697. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  8698. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  8699. else
  8700. rm -f "$ac_file"
  8701. mv "$ac_tmp/config.h" "$ac_file" \
  8702. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8703. fi
  8704. else
  8705. $as_echo "/* $configure_input */" \
  8706. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  8707. || as_fn_error $? "could not create -" "$LINENO" 5
  8708. fi
  8709. ;;
  8710. esac
  8711. done # for ac_tag
  8712. as_fn_exit 0
  8713. _ACEOF
  8714. ac_clean_files=$ac_clean_files_save
  8715. test $ac_write_fail = 0 ||
  8716. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  8717. # configure is writing to build/config.log, and then calls build/config.status.
  8718. # build/config.status does its own redirection, appending to build/config.log.
  8719. # Unfortunately, on DOS this fails, as build/config.log is still kept open
  8720. # by configure, so build/config.status won't be able to write to it; its
  8721. # output is simply discarded. So we exec the FD to /dev/null,
  8722. # effectively closing build/config.log, so it can be properly (re)opened and
  8723. # appended to by build/config.status. When coming back to configure, we
  8724. # need to make the FD available again.
  8725. if test "$no_create" != yes; then
  8726. ac_cs_success=:
  8727. ac_config_status_args=
  8728. test "$silent" = yes &&
  8729. ac_config_status_args="$ac_config_status_args --quiet"
  8730. exec 5>/dev/null
  8731. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  8732. exec 5>>build/config.log
  8733. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  8734. # would make configure fail if this is the last instruction.
  8735. $ac_cs_success || as_fn_exit 1
  8736. fi
  8737. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  8738. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  8739. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  8740. fi
  8741. GIT_REQUIRED=1
  8742. if [ "$GIT_REQUIRED" = "1" ]; then
  8743. if ! test -d .git; then
  8744. echo ""
  8745. echo ""
  8746. echo "You have downloaded a GIT version of wraith."
  8747. echo "Either 'git clone' from a git repository or download a source tarball"
  8748. echo "A distribution version can be found at http://wraith.botpack.net/wiki/Download"
  8749. echo ""
  8750. echo ""
  8751. exit 1
  8752. fi
  8753. fi
  8754. CXX="$CXX" TCL_INCLUDES="$TCL_INCLUDES" SSL_INCLUDES="$SSL_INCLUDES" SED="$SED" src/generate_defs.sh
  8755. if [ $? -ne 0 ]; then
  8756. exit 1
  8757. fi
  8758. echo ""
  8759. echo ""
  8760. echo "------------ Configuring BDLIB ------------"
  8761. if test -d .git; then
  8762. git submodule init
  8763. git submodule update
  8764. fi
  8765. test -f lib/bdlib/configure && cd lib/bdlib && MAKEJOBS="$MAKEJOBS" ./configure