configure 274 KB

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