configure 271 KB

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