configure 269 KB

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