configure 277 KB

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