configure 276 KB

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