configure 274 KB

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