configure 291 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575
  1. #! /bin/sh
  2. # From configure.ac Revision.
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.69.
  5. #
  6. #
  7. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. #
  13. # Copyright (c) Bryan Drewery
  14. ## -------------------- ##
  15. ## M4sh Initialization. ##
  16. ## -------------------- ##
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else
  27. case `(set -o) 2>/dev/null` in #(
  28. *posix*) :
  29. set -o posix ;; #(
  30. *) :
  31. ;;
  32. esac
  33. fi
  34. as_nl='
  35. '
  36. export as_nl
  37. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  38. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  41. # Prefer a ksh shell builtin over an external printf program on Solaris,
  42. # but without wasting forks for bash or zsh.
  43. if test -z "$BASH_VERSION$ZSH_VERSION" \
  44. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='print -r --'
  46. as_echo_n='print -rn --'
  47. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  48. as_echo='printf %s\n'
  49. as_echo_n='printf %s'
  50. else
  51. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  52. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  53. as_echo_n='/usr/ucb/echo -n'
  54. else
  55. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  56. as_echo_n_body='eval
  57. arg=$1;
  58. case $arg in #(
  59. *"$as_nl"*)
  60. expr "X$arg" : "X\\(.*\\)$as_nl";
  61. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  62. esac;
  63. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  64. '
  65. export as_echo_n_body
  66. as_echo_n='sh -c $as_echo_n_body as_echo'
  67. fi
  68. export as_echo_body
  69. as_echo='sh -c $as_echo_body as_echo'
  70. fi
  71. # The user is always right.
  72. if test "${PATH_SEPARATOR+set}" != set; then
  73. PATH_SEPARATOR=:
  74. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  75. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  76. PATH_SEPARATOR=';'
  77. }
  78. fi
  79. # IFS
  80. # We need space, tab and new line, in precisely that order. Quoting is
  81. # there to prevent editors from complaining about space-tab.
  82. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  83. # splitting by setting IFS to empty value.)
  84. IFS=" "" $as_nl"
  85. # Find who we are. Look in the path if we contain no directory separator.
  86. as_myself=
  87. case $0 in #((
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. exit 1
  107. fi
  108. # Unset variables that we do not need and which cause bugs (e.g. in
  109. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  110. # suppresses any "Segmentation fault" message there. '((' could
  111. # trigger a bug in pdksh 5.2.14.
  112. for as_var in BASH_ENV ENV MAIL MAILPATH
  113. do eval test x\${$as_var+set} = xset \
  114. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  115. done
  116. PS1='$ '
  117. PS2='> '
  118. PS4='+ '
  119. # NLS nuisances.
  120. LC_ALL=C
  121. export LC_ALL
  122. LANGUAGE=C
  123. export LANGUAGE
  124. # CDPATH.
  125. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  126. # Use a proper internal environment variable to ensure we don't fall
  127. # into an infinite loop, continuously re-executing ourselves.
  128. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  129. _as_can_reexec=no; export _as_can_reexec;
  130. # We cannot yet assume a decent shell, so we have to provide a
  131. # neutralization value for shells without unset; and this also
  132. # works around shells that cannot unset nonexistent variables.
  133. # Preserve -v and -x to the replacement shell.
  134. BASH_ENV=/dev/null
  135. ENV=/dev/null
  136. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  137. case $- in # ((((
  138. *v*x* | *x*v* ) as_opts=-vx ;;
  139. *v* ) as_opts=-v ;;
  140. *x* ) as_opts=-x ;;
  141. * ) as_opts= ;;
  142. esac
  143. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  144. # Admittedly, this is quite paranoid, since all the known shells bail
  145. # out after a failed `exec'.
  146. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  147. as_fn_exit 255
  148. fi
  149. # We don't want this to propagate to other subprocesses.
  150. { _as_can_reexec=; unset _as_can_reexec;}
  151. if test "x$CONFIG_SHELL" = x; then
  152. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  153. emulate sh
  154. NULLCMD=:
  155. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  156. # is contrary to our usage. Disable this feature.
  157. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  158. setopt NO_GLOB_SUBST
  159. else
  160. case \`(set -o) 2>/dev/null\` in #(
  161. *posix*) :
  162. set -o posix ;; #(
  163. *) :
  164. ;;
  165. esac
  166. fi
  167. "
  168. as_required="as_fn_return () { (exit \$1); }
  169. as_fn_success () { as_fn_return 0; }
  170. as_fn_failure () { as_fn_return 1; }
  171. as_fn_ret_success () { return 0; }
  172. as_fn_ret_failure () { return 1; }
  173. exitcode=0
  174. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  175. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  176. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  177. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  178. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  179. else
  180. exitcode=1; echo positional parameters were not saved.
  181. fi
  182. test x\$exitcode = x0 || exit 1
  183. test -x / || exit 1"
  184. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  185. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  186. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  187. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  188. test \$(( 1 + 1 )) = 2 || exit 1"
  189. if (eval "$as_required") 2>/dev/null; then :
  190. as_have_required=yes
  191. else
  192. as_have_required=no
  193. fi
  194. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  195. else
  196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  197. as_found=false
  198. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  199. do
  200. IFS=$as_save_IFS
  201. test -z "$as_dir" && as_dir=.
  202. as_found=:
  203. case $as_dir in #(
  204. /*)
  205. for as_base in sh bash ksh sh5; do
  206. # Try only shells that exist, to save several forks.
  207. as_shell=$as_dir/$as_base
  208. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  209. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  210. CONFIG_SHELL=$as_shell as_have_required=yes
  211. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  212. break 2
  213. fi
  214. fi
  215. done;;
  216. esac
  217. as_found=false
  218. done
  219. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  220. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  221. CONFIG_SHELL=$SHELL as_have_required=yes
  222. fi; }
  223. IFS=$as_save_IFS
  224. if test "x$CONFIG_SHELL" != x; then :
  225. export CONFIG_SHELL
  226. # We cannot yet assume a decent shell, so we have to provide a
  227. # neutralization value for shells without unset; and this also
  228. # works around shells that cannot unset nonexistent variables.
  229. # Preserve -v and -x to the replacement shell.
  230. BASH_ENV=/dev/null
  231. ENV=/dev/null
  232. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  233. case $- in # ((((
  234. *v*x* | *x*v* ) as_opts=-vx ;;
  235. *v* ) as_opts=-v ;;
  236. *x* ) as_opts=-x ;;
  237. * ) as_opts= ;;
  238. esac
  239. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  240. # Admittedly, this is quite paranoid, since all the known shells bail
  241. # out after a failed `exec'.
  242. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  243. exit 255
  244. fi
  245. if test x$as_have_required = xno; then :
  246. $as_echo "$0: This script requires a shell more modern than all"
  247. $as_echo "$0: the shells that I found on your system."
  248. if test x${ZSH_VERSION+set} = xset ; then
  249. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  250. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  251. else
  252. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  253. $0: including any error possibly output before this
  254. $0: message. Then install a modern shell, or manually run
  255. $0: the script under such a shell if you do have one."
  256. fi
  257. exit 1
  258. fi
  259. fi
  260. fi
  261. SHELL=${CONFIG_SHELL-/bin/sh}
  262. export SHELL
  263. # Unset more variables known to interfere with behavior of common tools.
  264. CLICOLOR_FORCE= GREP_OPTIONS=
  265. unset CLICOLOR_FORCE GREP_OPTIONS
  266. ## --------------------- ##
  267. ## M4sh Shell Functions. ##
  268. ## --------------------- ##
  269. # as_fn_unset VAR
  270. # ---------------
  271. # Portably unset VAR.
  272. as_fn_unset ()
  273. {
  274. { eval $1=; unset $1;}
  275. }
  276. as_unset=as_fn_unset
  277. # as_fn_set_status STATUS
  278. # -----------------------
  279. # Set $? to STATUS, without forking.
  280. as_fn_set_status ()
  281. {
  282. return $1
  283. } # as_fn_set_status
  284. # as_fn_exit STATUS
  285. # -----------------
  286. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  287. as_fn_exit ()
  288. {
  289. set +e
  290. as_fn_set_status $1
  291. exit $1
  292. } # as_fn_exit
  293. # as_fn_mkdir_p
  294. # -------------
  295. # Create "$as_dir" as a directory, including parents if necessary.
  296. as_fn_mkdir_p ()
  297. {
  298. case $as_dir in #(
  299. -*) as_dir=./$as_dir;;
  300. esac
  301. test -d "$as_dir" || eval $as_mkdir_p || {
  302. as_dirs=
  303. while :; do
  304. case $as_dir in #(
  305. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  306. *) as_qdir=$as_dir;;
  307. esac
  308. as_dirs="'$as_qdir' $as_dirs"
  309. as_dir=`$as_dirname -- "$as_dir" ||
  310. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  311. X"$as_dir" : 'X\(//\)[^/]' \| \
  312. X"$as_dir" : 'X\(//\)$' \| \
  313. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  314. $as_echo X"$as_dir" |
  315. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  316. s//\1/
  317. q
  318. }
  319. /^X\(\/\/\)[^/].*/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)$/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\).*/{
  328. s//\1/
  329. q
  330. }
  331. s/.*/./; q'`
  332. test -d "$as_dir" && break
  333. done
  334. test -z "$as_dirs" || eval "mkdir $as_dirs"
  335. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  336. } # as_fn_mkdir_p
  337. # as_fn_executable_p FILE
  338. # -----------------------
  339. # Test if FILE is an executable regular file.
  340. as_fn_executable_p ()
  341. {
  342. test -f "$1" && test -x "$1"
  343. } # as_fn_executable_p
  344. # as_fn_append VAR VALUE
  345. # ----------------------
  346. # Append the text in VALUE to the end of the definition contained in VAR. Take
  347. # advantage of any shell optimizations that allow amortized linear growth over
  348. # repeated appends, instead of the typical quadratic growth present in naive
  349. # implementations.
  350. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  351. eval 'as_fn_append ()
  352. {
  353. eval $1+=\$2
  354. }'
  355. else
  356. as_fn_append ()
  357. {
  358. eval $1=\$$1\$2
  359. }
  360. fi # as_fn_append
  361. # as_fn_arith ARG...
  362. # ------------------
  363. # Perform arithmetic evaluation on the ARGs, and store the result in the
  364. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  365. # must be portable across $(()) and expr.
  366. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  367. eval 'as_fn_arith ()
  368. {
  369. as_val=$(( $* ))
  370. }'
  371. else
  372. as_fn_arith ()
  373. {
  374. as_val=`expr "$@" || test $? -eq 1`
  375. }
  376. fi # as_fn_arith
  377. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  378. # ----------------------------------------
  379. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  380. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  381. # script with STATUS, using 1 if that was 0.
  382. as_fn_error ()
  383. {
  384. as_status=$1; test $as_status -eq 0 && as_status=1
  385. if test "$4"; then
  386. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  387. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  388. fi
  389. $as_echo "$as_me: error: $2" >&2
  390. as_fn_exit $as_status
  391. } # as_fn_error
  392. if expr a : '\(a\)' >/dev/null 2>&1 &&
  393. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  394. as_expr=expr
  395. else
  396. as_expr=false
  397. fi
  398. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  399. as_basename=basename
  400. else
  401. as_basename=false
  402. fi
  403. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  404. as_dirname=dirname
  405. else
  406. as_dirname=false
  407. fi
  408. as_me=`$as_basename -- "$0" ||
  409. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  410. X"$0" : 'X\(//\)$' \| \
  411. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  412. $as_echo X/"$0" |
  413. sed '/^.*\/\([^/][^/]*\)\/*$/{
  414. s//\1/
  415. q
  416. }
  417. /^X\/\(\/\/\)$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\).*/{
  422. s//\1/
  423. q
  424. }
  425. s/.*/./; q'`
  426. # Avoid depending upon Character Ranges.
  427. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  428. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  429. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  430. as_cr_digits='0123456789'
  431. as_cr_alnum=$as_cr_Letters$as_cr_digits
  432. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  433. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  434. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  435. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  436. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  437. sed -n '
  438. p
  439. /[$]LINENO/=
  440. ' <$as_myself |
  441. sed '
  442. s/[$]LINENO.*/&-/
  443. t lineno
  444. b
  445. :lineno
  446. N
  447. :loop
  448. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  449. t loop
  450. s/-\n.*//
  451. ' >$as_me.lineno &&
  452. chmod +x "$as_me.lineno" ||
  453. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  454. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  455. # already done that, so ensure we don't try to do so again and fall
  456. # in an infinite loop. This has already happened in practice.
  457. _as_can_reexec=no; export _as_can_reexec
  458. # Don't try to exec as it changes $[0], causing all sort of problems
  459. # (the dirname of $[0] is not the place where we might find the
  460. # original and so on. Autoconf is especially sensitive to this).
  461. . "./$as_me.lineno"
  462. # Exit status is that of the last command.
  463. exit
  464. }
  465. ECHO_C= ECHO_N= ECHO_T=
  466. case `echo -n x` in #(((((
  467. -n*)
  468. case `echo 'xy\c'` in
  469. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  470. xy) ECHO_C='\c';;
  471. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  472. ECHO_T=' ';;
  473. esac;;
  474. *)
  475. ECHO_N='-n';;
  476. esac
  477. rm -f conf$$ conf$$.exe conf$$.file
  478. if test -d conf$$.dir; then
  479. rm -f conf$$.dir/conf$$.file
  480. else
  481. rm -f conf$$.dir
  482. mkdir conf$$.dir 2>/dev/null
  483. fi
  484. if (echo >conf$$.file) 2>/dev/null; then
  485. if ln -s conf$$.file conf$$ 2>/dev/null; then
  486. as_ln_s='ln -s'
  487. # ... but there are two gotchas:
  488. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  489. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  490. # In both cases, we have to default to `cp -pR'.
  491. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  492. as_ln_s='cp -pR'
  493. elif ln conf$$.file conf$$ 2>/dev/null; then
  494. as_ln_s=ln
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. else
  499. as_ln_s='cp -pR'
  500. fi
  501. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  502. rmdir conf$$.dir 2>/dev/null
  503. if mkdir -p . 2>/dev/null; then
  504. as_mkdir_p='mkdir -p "$as_dir"'
  505. else
  506. test -d ./-p && rmdir ./-p
  507. as_mkdir_p=false
  508. fi
  509. as_test_x='test -x'
  510. as_executable_p=as_fn_executable_p
  511. # Sed expression to map a string onto a valid CPP name.
  512. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  513. # Sed expression to map a string onto a valid variable name.
  514. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  515. test -n "$DJDIR" || exec 7<&0 </dev/null
  516. exec 6>&1
  517. # Name of the host.
  518. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  519. # so uname gets run too.
  520. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  521. #
  522. # Initializations.
  523. #
  524. ac_default_prefix=/usr/local
  525. ac_clean_files=
  526. ac_config_libobj_dir=.
  527. LIBOBJS=
  528. cross_compiling=no
  529. subdirs=
  530. MFLAGS=
  531. MAKEFLAGS=
  532. # Identity of this package.
  533. PACKAGE_NAME=
  534. PACKAGE_TARNAME=
  535. PACKAGE_VERSION=
  536. PACKAGE_STRING=
  537. PACKAGE_BUGREPORT=
  538. PACKAGE_URL=
  539. ac_unique_file="wraith"
  540. ac_unique_file="src/eggdrop.h"
  541. # Factoring default headers for most tests.
  542. ac_includes_default="\
  543. #include <stdio.h>
  544. #ifdef HAVE_SYS_TYPES_H
  545. # include <sys/types.h>
  546. #endif
  547. #ifdef HAVE_SYS_STAT_H
  548. # include <sys/stat.h>
  549. #endif
  550. #ifdef STDC_HEADERS
  551. # include <stdlib.h>
  552. # include <stddef.h>
  553. #else
  554. # ifdef HAVE_STDLIB_H
  555. # include <stdlib.h>
  556. # endif
  557. #endif
  558. #ifdef HAVE_STRING_H
  559. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  560. # include <memory.h>
  561. # endif
  562. # include <string.h>
  563. #endif
  564. #ifdef HAVE_STRINGS_H
  565. # include <strings.h>
  566. #endif
  567. #ifdef HAVE_INTTYPES_H
  568. # include <inttypes.h>
  569. #endif
  570. #ifdef HAVE_STDINT_H
  571. # include <stdint.h>
  572. #endif
  573. #ifdef HAVE_UNISTD_H
  574. # include <unistd.h>
  575. #endif"
  576. ac_header_list=
  577. ac_func_list=
  578. enable_option_checking=no
  579. ac_subst_vars='LTLIBOBJS
  580. subdirs
  581. MOD_UPDIR
  582. NUMVER
  583. VERSION
  584. LIBOBJS
  585. TCL_LIBS
  586. TCL_REQS
  587. DEFAULT_MAKE
  588. TCLINCFN
  589. TCL_INCLUDES
  590. TCLLIBFN
  591. TCLLIB
  592. SSL_LIBS
  593. SSL_INCLUDES
  594. LIBELF_LIB
  595. LIBELF_BUNDLED
  596. EGREP
  597. GREP
  598. DEBCXXFLAGS
  599. STATIC
  600. BUILDARCH
  601. BUILDOS
  602. UNAME
  603. DIFF
  604. STRIP
  605. OBJCOPY
  606. BASENAME
  607. AWK
  608. HEAD_1
  609. SED
  610. SET_MAKE
  611. GCC4DEB
  612. GCC3DEB
  613. GCC3_CXXFLAGS
  614. GCC3_CFLAGS
  615. CCDEPMODE
  616. HAVE_CXX11
  617. CXXCPP
  618. CC
  619. OBJEXT
  620. EXEEXT
  621. ac_ct_CXX
  622. CPPFLAGS
  623. LDFLAGS
  624. CXXFLAGS
  625. CXX
  626. egg_ac_parameters
  627. target_alias
  628. host_alias
  629. build_alias
  630. LIBS
  631. ECHO_T
  632. ECHO_N
  633. ECHO_C
  634. DEFS
  635. mandir
  636. localedir
  637. libdir
  638. psdir
  639. pdfdir
  640. dvidir
  641. htmldir
  642. infodir
  643. docdir
  644. oldincludedir
  645. includedir
  646. localstatedir
  647. sharedstatedir
  648. sysconfdir
  649. datadir
  650. datarootdir
  651. libexecdir
  652. sbindir
  653. bindir
  654. program_transform_name
  655. prefix
  656. exec_prefix
  657. PACKAGE_URL
  658. PACKAGE_BUGREPORT
  659. PACKAGE_STRING
  660. PACKAGE_VERSION
  661. PACKAGE_TARNAME
  662. PACKAGE_NAME
  663. PATH_SEPARATOR
  664. SHELL'
  665. ac_subst_files=''
  666. ac_user_opts='
  667. enable_option_checking
  668. enable_ipv6
  669. with_openssl
  670. with_tcllib
  671. with_tclinc
  672. enable_script_tcl
  673. '
  674. ac_precious_vars='build_alias
  675. host_alias
  676. target_alias
  677. CXX
  678. CXXFLAGS
  679. LDFLAGS
  680. LIBS
  681. CPPFLAGS
  682. CCC
  683. CXXCPP'
  684. ac_subdirs_all='lib/bdlib
  685. lib/libelf'
  686. # Initialize some variables set by options.
  687. ac_init_help=
  688. ac_init_version=false
  689. ac_unrecognized_opts=
  690. ac_unrecognized_sep=
  691. # The variables have the same names as the options, with
  692. # dashes changed to underlines.
  693. cache_file=/dev/null
  694. exec_prefix=NONE
  695. no_create=
  696. no_recursion=
  697. prefix=NONE
  698. program_prefix=NONE
  699. program_suffix=NONE
  700. program_transform_name=s,x,x,
  701. silent=
  702. site=
  703. srcdir=
  704. verbose=
  705. x_includes=NONE
  706. x_libraries=NONE
  707. # Installation directory options.
  708. # These are left unexpanded so users can "make install exec_prefix=/foo"
  709. # and all the variables that are supposed to be based on exec_prefix
  710. # by default will actually change.
  711. # Use braces instead of parens because sh, perl, etc. also accept them.
  712. # (The list follows the same order as the GNU Coding Standards.)
  713. bindir='${exec_prefix}/bin'
  714. sbindir='${exec_prefix}/sbin'
  715. libexecdir='${exec_prefix}/libexec'
  716. datarootdir='${prefix}/share'
  717. datadir='${datarootdir}'
  718. sysconfdir='${prefix}/etc'
  719. sharedstatedir='${prefix}/com'
  720. localstatedir='${prefix}/var'
  721. includedir='${prefix}/include'
  722. oldincludedir='/usr/include'
  723. docdir='${datarootdir}/doc/${PACKAGE}'
  724. infodir='${datarootdir}/info'
  725. htmldir='${docdir}'
  726. dvidir='${docdir}'
  727. pdfdir='${docdir}'
  728. psdir='${docdir}'
  729. libdir='${exec_prefix}/lib'
  730. localedir='${datarootdir}/locale'
  731. mandir='${datarootdir}/man'
  732. ac_prev=
  733. ac_dashdash=
  734. for ac_option
  735. do
  736. # If the previous option needs an argument, assign it.
  737. if test -n "$ac_prev"; then
  738. eval $ac_prev=\$ac_option
  739. ac_prev=
  740. continue
  741. fi
  742. case $ac_option in
  743. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  744. *=) ac_optarg= ;;
  745. *) ac_optarg=yes ;;
  746. esac
  747. # Accept the important Cygnus configure options, so we can diagnose typos.
  748. case $ac_dashdash$ac_option in
  749. --)
  750. ac_dashdash=yes ;;
  751. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  752. ac_prev=bindir ;;
  753. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  754. bindir=$ac_optarg ;;
  755. -build | --build | --buil | --bui | --bu)
  756. ac_prev=build_alias ;;
  757. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  758. build_alias=$ac_optarg ;;
  759. -cache-file | --cache-file | --cache-fil | --cache-fi \
  760. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  761. ac_prev=cache_file ;;
  762. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  763. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  764. cache_file=$ac_optarg ;;
  765. --config-cache | -C)
  766. cache_file=config.cache ;;
  767. -datadir | --datadir | --datadi | --datad)
  768. ac_prev=datadir ;;
  769. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  770. datadir=$ac_optarg ;;
  771. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  772. | --dataroo | --dataro | --datar)
  773. ac_prev=datarootdir ;;
  774. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  775. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  776. datarootdir=$ac_optarg ;;
  777. -disable-* | --disable-*)
  778. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  779. # Reject names that are not valid shell variable names.
  780. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  781. as_fn_error $? "invalid feature name: $ac_useropt"
  782. ac_useropt_orig=$ac_useropt
  783. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  784. case $ac_user_opts in
  785. *"
  786. "enable_$ac_useropt"
  787. "*) ;;
  788. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  789. ac_unrecognized_sep=', ';;
  790. esac
  791. eval enable_$ac_useropt=no ;;
  792. -docdir | --docdir | --docdi | --doc | --do)
  793. ac_prev=docdir ;;
  794. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  795. docdir=$ac_optarg ;;
  796. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  797. ac_prev=dvidir ;;
  798. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  799. dvidir=$ac_optarg ;;
  800. -enable-* | --enable-*)
  801. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  802. # Reject names that are not valid shell variable names.
  803. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  804. as_fn_error $? "invalid feature name: $ac_useropt"
  805. ac_useropt_orig=$ac_useropt
  806. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  807. case $ac_user_opts in
  808. *"
  809. "enable_$ac_useropt"
  810. "*) ;;
  811. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  812. ac_unrecognized_sep=', ';;
  813. esac
  814. eval enable_$ac_useropt=\$ac_optarg ;;
  815. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  816. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  817. | --exec | --exe | --ex)
  818. ac_prev=exec_prefix ;;
  819. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  820. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  821. | --exec=* | --exe=* | --ex=*)
  822. exec_prefix=$ac_optarg ;;
  823. -gas | --gas | --ga | --g)
  824. # Obsolete; use --with-gas.
  825. with_gas=yes ;;
  826. -help | --help | --hel | --he | -h)
  827. ac_init_help=long ;;
  828. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  829. ac_init_help=recursive ;;
  830. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  831. ac_init_help=short ;;
  832. -host | --host | --hos | --ho)
  833. ac_prev=host_alias ;;
  834. -host=* | --host=* | --hos=* | --ho=*)
  835. host_alias=$ac_optarg ;;
  836. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  837. ac_prev=htmldir ;;
  838. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  839. | --ht=*)
  840. htmldir=$ac_optarg ;;
  841. -includedir | --includedir | --includedi | --included | --include \
  842. | --includ | --inclu | --incl | --inc)
  843. ac_prev=includedir ;;
  844. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  845. | --includ=* | --inclu=* | --incl=* | --inc=*)
  846. includedir=$ac_optarg ;;
  847. -infodir | --infodir | --infodi | --infod | --info | --inf)
  848. ac_prev=infodir ;;
  849. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  850. infodir=$ac_optarg ;;
  851. -libdir | --libdir | --libdi | --libd)
  852. ac_prev=libdir ;;
  853. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  854. libdir=$ac_optarg ;;
  855. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  856. | --libexe | --libex | --libe)
  857. ac_prev=libexecdir ;;
  858. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  859. | --libexe=* | --libex=* | --libe=*)
  860. libexecdir=$ac_optarg ;;
  861. -localedir | --localedir | --localedi | --localed | --locale)
  862. ac_prev=localedir ;;
  863. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  864. localedir=$ac_optarg ;;
  865. -localstatedir | --localstatedir | --localstatedi | --localstated \
  866. | --localstate | --localstat | --localsta | --localst | --locals)
  867. ac_prev=localstatedir ;;
  868. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  869. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  870. localstatedir=$ac_optarg ;;
  871. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  872. ac_prev=mandir ;;
  873. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  874. mandir=$ac_optarg ;;
  875. -nfp | --nfp | --nf)
  876. # Obsolete; use --without-fp.
  877. with_fp=no ;;
  878. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  879. | --no-cr | --no-c | -n)
  880. no_create=yes ;;
  881. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  882. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  883. no_recursion=yes ;;
  884. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  885. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  886. | --oldin | --oldi | --old | --ol | --o)
  887. ac_prev=oldincludedir ;;
  888. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  889. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  890. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  891. oldincludedir=$ac_optarg ;;
  892. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  893. ac_prev=prefix ;;
  894. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  895. prefix=$ac_optarg ;;
  896. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  897. | --program-pre | --program-pr | --program-p)
  898. ac_prev=program_prefix ;;
  899. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  900. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  901. program_prefix=$ac_optarg ;;
  902. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  903. | --program-suf | --program-su | --program-s)
  904. ac_prev=program_suffix ;;
  905. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  906. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  907. program_suffix=$ac_optarg ;;
  908. -program-transform-name | --program-transform-name \
  909. | --program-transform-nam | --program-transform-na \
  910. | --program-transform-n | --program-transform- \
  911. | --program-transform | --program-transfor \
  912. | --program-transfo | --program-transf \
  913. | --program-trans | --program-tran \
  914. | --progr-tra | --program-tr | --program-t)
  915. ac_prev=program_transform_name ;;
  916. -program-transform-name=* | --program-transform-name=* \
  917. | --program-transform-nam=* | --program-transform-na=* \
  918. | --program-transform-n=* | --program-transform-=* \
  919. | --program-transform=* | --program-transfor=* \
  920. | --program-transfo=* | --program-transf=* \
  921. | --program-trans=* | --program-tran=* \
  922. | --progr-tra=* | --program-tr=* | --program-t=*)
  923. program_transform_name=$ac_optarg ;;
  924. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  925. ac_prev=pdfdir ;;
  926. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  927. pdfdir=$ac_optarg ;;
  928. -psdir | --psdir | --psdi | --psd | --ps)
  929. ac_prev=psdir ;;
  930. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  931. psdir=$ac_optarg ;;
  932. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  933. | -silent | --silent | --silen | --sile | --sil)
  934. silent=yes ;;
  935. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  936. ac_prev=sbindir ;;
  937. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  938. | --sbi=* | --sb=*)
  939. sbindir=$ac_optarg ;;
  940. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  941. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  942. | --sharedst | --shareds | --shared | --share | --shar \
  943. | --sha | --sh)
  944. ac_prev=sharedstatedir ;;
  945. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  946. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  947. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  948. | --sha=* | --sh=*)
  949. sharedstatedir=$ac_optarg ;;
  950. -site | --site | --sit)
  951. ac_prev=site ;;
  952. -site=* | --site=* | --sit=*)
  953. site=$ac_optarg ;;
  954. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  955. ac_prev=srcdir ;;
  956. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  957. srcdir=$ac_optarg ;;
  958. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  959. | --syscon | --sysco | --sysc | --sys | --sy)
  960. ac_prev=sysconfdir ;;
  961. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  962. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  963. sysconfdir=$ac_optarg ;;
  964. -target | --target | --targe | --targ | --tar | --ta | --t)
  965. ac_prev=target_alias ;;
  966. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  967. target_alias=$ac_optarg ;;
  968. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  969. verbose=yes ;;
  970. -version | --version | --versio | --versi | --vers | -V)
  971. ac_init_version=: ;;
  972. -with-* | --with-*)
  973. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  974. # Reject names that are not valid shell variable names.
  975. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  976. as_fn_error $? "invalid package name: $ac_useropt"
  977. ac_useropt_orig=$ac_useropt
  978. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  979. case $ac_user_opts in
  980. *"
  981. "with_$ac_useropt"
  982. "*) ;;
  983. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  984. ac_unrecognized_sep=', ';;
  985. esac
  986. eval with_$ac_useropt=\$ac_optarg ;;
  987. -without-* | --without-*)
  988. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  989. # Reject names that are not valid shell variable names.
  990. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  991. as_fn_error $? "invalid package name: $ac_useropt"
  992. ac_useropt_orig=$ac_useropt
  993. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  994. case $ac_user_opts in
  995. *"
  996. "with_$ac_useropt"
  997. "*) ;;
  998. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  999. ac_unrecognized_sep=', ';;
  1000. esac
  1001. eval with_$ac_useropt=no ;;
  1002. --x)
  1003. # Obsolete; use --with-x.
  1004. with_x=yes ;;
  1005. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1006. | --x-incl | --x-inc | --x-in | --x-i)
  1007. ac_prev=x_includes ;;
  1008. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1009. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1010. x_includes=$ac_optarg ;;
  1011. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1012. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1013. ac_prev=x_libraries ;;
  1014. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1015. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1016. x_libraries=$ac_optarg ;;
  1017. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1018. Try \`$0 --help' for more information"
  1019. ;;
  1020. *=*)
  1021. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1022. # Reject names that are not valid shell variable names.
  1023. case $ac_envvar in #(
  1024. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1025. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1026. esac
  1027. eval $ac_envvar=\$ac_optarg
  1028. export $ac_envvar ;;
  1029. *)
  1030. # FIXME: should be removed in autoconf 3.0.
  1031. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1032. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1033. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1034. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1035. ;;
  1036. esac
  1037. done
  1038. if test -n "$ac_prev"; then
  1039. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1040. as_fn_error $? "missing argument to $ac_option"
  1041. fi
  1042. if test -n "$ac_unrecognized_opts"; then
  1043. case $enable_option_checking in
  1044. no) ;;
  1045. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1046. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1047. esac
  1048. fi
  1049. # Check all directory arguments for consistency.
  1050. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1051. datadir sysconfdir sharedstatedir localstatedir includedir \
  1052. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1053. libdir localedir mandir
  1054. do
  1055. eval ac_val=\$$ac_var
  1056. # Remove trailing slashes.
  1057. case $ac_val in
  1058. */ )
  1059. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1060. eval $ac_var=\$ac_val;;
  1061. esac
  1062. # Be sure to have absolute directory names.
  1063. case $ac_val in
  1064. [\\/$]* | ?:[\\/]* ) continue;;
  1065. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1066. esac
  1067. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1068. done
  1069. # There might be people who depend on the old broken behavior: `$host'
  1070. # used to hold the argument of --host etc.
  1071. # FIXME: To remove some day.
  1072. build=$build_alias
  1073. host=$host_alias
  1074. target=$target_alias
  1075. # FIXME: To remove some day.
  1076. if test "x$host_alias" != x; then
  1077. if test "x$build_alias" = x; then
  1078. cross_compiling=maybe
  1079. elif test "x$build_alias" != "x$host_alias"; then
  1080. cross_compiling=yes
  1081. fi
  1082. fi
  1083. ac_tool_prefix=
  1084. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1085. test "$silent" = yes && exec 6>/dev/null
  1086. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1087. ac_ls_di=`ls -di .` &&
  1088. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1089. as_fn_error $? "working directory cannot be determined"
  1090. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1091. as_fn_error $? "pwd does not report name of working directory"
  1092. # Find the source files, if location was not specified.
  1093. if test -z "$srcdir"; then
  1094. ac_srcdir_defaulted=yes
  1095. # Try the directory containing this script, then the parent directory.
  1096. ac_confdir=`$as_dirname -- "$as_myself" ||
  1097. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1098. X"$as_myself" : 'X\(//\)[^/]' \| \
  1099. X"$as_myself" : 'X\(//\)$' \| \
  1100. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1101. $as_echo X"$as_myself" |
  1102. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1103. s//\1/
  1104. q
  1105. }
  1106. /^X\(\/\/\)[^/].*/{
  1107. s//\1/
  1108. q
  1109. }
  1110. /^X\(\/\/\)$/{
  1111. s//\1/
  1112. q
  1113. }
  1114. /^X\(\/\).*/{
  1115. s//\1/
  1116. q
  1117. }
  1118. s/.*/./; q'`
  1119. srcdir=$ac_confdir
  1120. if test ! -r "$srcdir/$ac_unique_file"; then
  1121. srcdir=..
  1122. fi
  1123. else
  1124. ac_srcdir_defaulted=no
  1125. fi
  1126. if test ! -r "$srcdir/$ac_unique_file"; then
  1127. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1128. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1129. fi
  1130. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1131. ac_abs_confdir=`(
  1132. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1133. pwd)`
  1134. # When building in place, set srcdir=.
  1135. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1136. srcdir=.
  1137. fi
  1138. # Remove unnecessary trailing slashes from srcdir.
  1139. # Double slashes in file names in object file debugging info
  1140. # mess up M-x gdb in Emacs.
  1141. case $srcdir in
  1142. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1143. esac
  1144. for ac_var in $ac_precious_vars; do
  1145. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1146. eval ac_env_${ac_var}_value=\$${ac_var}
  1147. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1148. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1149. done
  1150. #
  1151. # Report the --help message.
  1152. #
  1153. if test "$ac_init_help" = "long"; then
  1154. # Omit some internal or obsolete options to make the list less imposing.
  1155. # This message is too long to be a string in the A/UX 3.1 sh.
  1156. cat <<_ACEOF
  1157. \`configure' configures this package to adapt to many kinds of systems.
  1158. Usage: $0 [OPTION]... [VAR=VALUE]...
  1159. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1160. VAR=VALUE. See below for descriptions of some of the useful variables.
  1161. Defaults for the options are specified in brackets.
  1162. Configuration:
  1163. -h, --help display this help and exit
  1164. --help=short display options specific to this package
  1165. --help=recursive display the short help of all the included packages
  1166. -V, --version display version information and exit
  1167. -q, --quiet, --silent do not print \`checking ...' messages
  1168. --cache-file=FILE cache test results in FILE [disabled]
  1169. -C, --config-cache alias for \`--cache-file=config.cache'
  1170. -n, --no-create do not create output files
  1171. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1172. Installation directories:
  1173. --prefix=PREFIX install architecture-independent files in PREFIX
  1174. [$ac_default_prefix]
  1175. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1176. [PREFIX]
  1177. By default, \`make install' will install all the files in
  1178. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1179. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1180. for instance \`--prefix=\$HOME'.
  1181. For better control, use the options below.
  1182. Fine tuning of the installation directories:
  1183. --bindir=DIR user executables [EPREFIX/bin]
  1184. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1185. --libexecdir=DIR program executables [EPREFIX/libexec]
  1186. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1187. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1188. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1189. --libdir=DIR object code libraries [EPREFIX/lib]
  1190. --includedir=DIR C header files [PREFIX/include]
  1191. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1192. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1193. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1194. --infodir=DIR info documentation [DATAROOTDIR/info]
  1195. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1196. --mandir=DIR man documentation [DATAROOTDIR/man]
  1197. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1198. --htmldir=DIR html documentation [DOCDIR]
  1199. --dvidir=DIR dvi documentation [DOCDIR]
  1200. --pdfdir=DIR pdf documentation [DOCDIR]
  1201. --psdir=DIR ps documentation [DOCDIR]
  1202. _ACEOF
  1203. cat <<\_ACEOF
  1204. _ACEOF
  1205. fi
  1206. if test -n "$ac_init_help"; then
  1207. cat <<\_ACEOF
  1208. Optional Features:
  1209. --disable-option-checking ignore unrecognized --enable/--with options
  1210. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1211. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1212. --disable-ipv6 disable IPv6 support
  1213. --disable-script-tcl disable TCL Script support
  1214. Optional Packages:
  1215. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1216. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1217. --with-openssl=PATH Path to OpenSSL
  1218. --with-tcllib=PATH full path to Tcl library
  1219. --with-tclinc=PATH full path to Tcl header
  1220. Some influential environment variables:
  1221. CXX C++ compiler command
  1222. CXXFLAGS C++ compiler flags
  1223. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1224. nonstandard directory <lib dir>
  1225. LIBS libraries to pass to the linker, e.g. -l<library>
  1226. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1227. you have headers in a nonstandard directory <include dir>
  1228. CXXCPP C++ preprocessor
  1229. Use these variables to override the choices made by `configure' or to help
  1230. it to find libraries and programs with nonstandard names/locations.
  1231. Report bugs to the package provider.
  1232. _ACEOF
  1233. ac_status=$?
  1234. fi
  1235. if test "$ac_init_help" = "recursive"; then
  1236. # If there are subdirs, report their specific --help.
  1237. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1238. test -d "$ac_dir" ||
  1239. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1240. continue
  1241. ac_builddir=.
  1242. case "$ac_dir" in
  1243. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1244. *)
  1245. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1246. # A ".." for each directory in $ac_dir_suffix.
  1247. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1248. case $ac_top_builddir_sub in
  1249. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1250. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1251. esac ;;
  1252. esac
  1253. ac_abs_top_builddir=$ac_pwd
  1254. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1255. # for backward compatibility:
  1256. ac_top_builddir=$ac_top_build_prefix
  1257. case $srcdir in
  1258. .) # We are building in place.
  1259. ac_srcdir=.
  1260. ac_top_srcdir=$ac_top_builddir_sub
  1261. ac_abs_top_srcdir=$ac_pwd ;;
  1262. [\\/]* | ?:[\\/]* ) # Absolute name.
  1263. ac_srcdir=$srcdir$ac_dir_suffix;
  1264. ac_top_srcdir=$srcdir
  1265. ac_abs_top_srcdir=$srcdir ;;
  1266. *) # Relative name.
  1267. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1268. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1269. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1270. esac
  1271. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1272. cd "$ac_dir" || { ac_status=$?; continue; }
  1273. # Check for guested configure.
  1274. if test -f "$ac_srcdir/configure.gnu"; then
  1275. echo &&
  1276. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1277. elif test -f "$ac_srcdir/configure"; then
  1278. echo &&
  1279. $SHELL "$ac_srcdir/configure" --help=recursive
  1280. else
  1281. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1282. fi || ac_status=$?
  1283. cd "$ac_pwd" || { ac_status=$?; break; }
  1284. done
  1285. fi
  1286. test -n "$ac_init_help" && exit $ac_status
  1287. if $ac_init_version; then
  1288. cat <<\_ACEOF
  1289. configure
  1290. generated by GNU Autoconf 2.69
  1291. Copyright (C) 2012 Free Software Foundation, Inc.
  1292. This configure script is free software; the Free Software Foundation
  1293. gives unlimited permission to copy, distribute and modify it.
  1294. Copyright (c) Bryan Drewery
  1295. _ACEOF
  1296. exit
  1297. fi
  1298. ## ------------------------ ##
  1299. ## Autoconf initialization. ##
  1300. ## ------------------------ ##
  1301. # ac_fn_cxx_try_compile LINENO
  1302. # ----------------------------
  1303. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1304. ac_fn_cxx_try_compile ()
  1305. {
  1306. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1307. rm -f conftest.$ac_objext
  1308. if { { ac_try="$ac_compile"
  1309. case "(($ac_try" in
  1310. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1311. *) ac_try_echo=$ac_try;;
  1312. esac
  1313. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1314. $as_echo "$ac_try_echo"; } >&5
  1315. (eval "$ac_compile") 2>conftest.err
  1316. ac_status=$?
  1317. if test -s conftest.err; then
  1318. grep -v '^ *+' conftest.err >conftest.er1
  1319. cat conftest.er1 >&5
  1320. mv -f conftest.er1 conftest.err
  1321. fi
  1322. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1323. test $ac_status = 0; } && {
  1324. test -z "$ac_cxx_werror_flag" ||
  1325. test ! -s conftest.err
  1326. } && test -s conftest.$ac_objext; then :
  1327. ac_retval=0
  1328. else
  1329. $as_echo "$as_me: failed program was:" >&5
  1330. sed 's/^/| /' conftest.$ac_ext >&5
  1331. ac_retval=1
  1332. fi
  1333. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1334. as_fn_set_status $ac_retval
  1335. } # ac_fn_cxx_try_compile
  1336. # ac_fn_cxx_try_cpp LINENO
  1337. # ------------------------
  1338. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1339. ac_fn_cxx_try_cpp ()
  1340. {
  1341. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1342. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1343. case "(($ac_try" in
  1344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1345. *) ac_try_echo=$ac_try;;
  1346. esac
  1347. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1348. $as_echo "$ac_try_echo"; } >&5
  1349. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1350. ac_status=$?
  1351. if test -s conftest.err; then
  1352. grep -v '^ *+' conftest.err >conftest.er1
  1353. cat conftest.er1 >&5
  1354. mv -f conftest.er1 conftest.err
  1355. fi
  1356. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1357. test $ac_status = 0; } > conftest.i && {
  1358. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1359. test ! -s conftest.err
  1360. }; then :
  1361. ac_retval=0
  1362. else
  1363. $as_echo "$as_me: failed program was:" >&5
  1364. sed 's/^/| /' conftest.$ac_ext >&5
  1365. ac_retval=1
  1366. fi
  1367. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1368. as_fn_set_status $ac_retval
  1369. } # ac_fn_cxx_try_cpp
  1370. # ac_fn_cxx_try_run LINENO
  1371. # ------------------------
  1372. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1373. # that executables *can* be run.
  1374. ac_fn_cxx_try_run ()
  1375. {
  1376. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1377. if { { ac_try="$ac_link"
  1378. case "(($ac_try" in
  1379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1380. *) ac_try_echo=$ac_try;;
  1381. esac
  1382. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1383. $as_echo "$ac_try_echo"; } >&5
  1384. (eval "$ac_link") 2>&5
  1385. ac_status=$?
  1386. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1387. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1388. { { case "(($ac_try" in
  1389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1390. *) ac_try_echo=$ac_try;;
  1391. esac
  1392. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1393. $as_echo "$ac_try_echo"; } >&5
  1394. (eval "$ac_try") 2>&5
  1395. ac_status=$?
  1396. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1397. test $ac_status = 0; }; }; then :
  1398. ac_retval=0
  1399. else
  1400. $as_echo "$as_me: program exited with status $ac_status" >&5
  1401. $as_echo "$as_me: failed program was:" >&5
  1402. sed 's/^/| /' conftest.$ac_ext >&5
  1403. ac_retval=$ac_status
  1404. fi
  1405. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1406. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1407. as_fn_set_status $ac_retval
  1408. } # ac_fn_cxx_try_run
  1409. # ac_fn_cxx_try_link LINENO
  1410. # -------------------------
  1411. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1412. ac_fn_cxx_try_link ()
  1413. {
  1414. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1415. rm -f conftest.$ac_objext conftest$ac_exeext
  1416. if { { ac_try="$ac_link"
  1417. case "(($ac_try" in
  1418. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1419. *) ac_try_echo=$ac_try;;
  1420. esac
  1421. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1422. $as_echo "$ac_try_echo"; } >&5
  1423. (eval "$ac_link") 2>conftest.err
  1424. ac_status=$?
  1425. if test -s conftest.err; then
  1426. grep -v '^ *+' conftest.err >conftest.er1
  1427. cat conftest.er1 >&5
  1428. mv -f conftest.er1 conftest.err
  1429. fi
  1430. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1431. test $ac_status = 0; } && {
  1432. test -z "$ac_cxx_werror_flag" ||
  1433. test ! -s conftest.err
  1434. } && test -s conftest$ac_exeext && {
  1435. test "$cross_compiling" = yes ||
  1436. test -x conftest$ac_exeext
  1437. }; then :
  1438. ac_retval=0
  1439. else
  1440. $as_echo "$as_me: failed program was:" >&5
  1441. sed 's/^/| /' conftest.$ac_ext >&5
  1442. ac_retval=1
  1443. fi
  1444. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1445. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1446. # interfere with the next link command; also delete a directory that is
  1447. # left behind by Apple's compiler. We do this before executing the actions.
  1448. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1449. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1450. as_fn_set_status $ac_retval
  1451. } # ac_fn_cxx_try_link
  1452. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1453. # ---------------------------------------------------------
  1454. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1455. # the include files in INCLUDES and setting the cache variable VAR
  1456. # accordingly.
  1457. ac_fn_cxx_check_header_mongrel ()
  1458. {
  1459. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1460. if eval \${$3+:} false; then :
  1461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1462. $as_echo_n "checking for $2... " >&6; }
  1463. if eval \${$3+:} false; then :
  1464. $as_echo_n "(cached) " >&6
  1465. fi
  1466. eval ac_res=\$$3
  1467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1468. $as_echo "$ac_res" >&6; }
  1469. else
  1470. # Is the header compilable?
  1471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1472. $as_echo_n "checking $2 usability... " >&6; }
  1473. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1474. /* end build/confdefs.h. */
  1475. $4
  1476. #include <$2>
  1477. _ACEOF
  1478. if ac_fn_cxx_try_compile "$LINENO"; then :
  1479. ac_header_compiler=yes
  1480. else
  1481. ac_header_compiler=no
  1482. fi
  1483. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1485. $as_echo "$ac_header_compiler" >&6; }
  1486. # Is the header present?
  1487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1488. $as_echo_n "checking $2 presence... " >&6; }
  1489. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1490. /* end build/confdefs.h. */
  1491. #include <$2>
  1492. _ACEOF
  1493. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1494. ac_header_preproc=yes
  1495. else
  1496. ac_header_preproc=no
  1497. fi
  1498. rm -f conftest.err conftest.i conftest.$ac_ext
  1499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1500. $as_echo "$ac_header_preproc" >&6; }
  1501. # So? What about this header?
  1502. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1503. yes:no: )
  1504. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1505. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1506. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1507. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1508. ;;
  1509. no:yes:* )
  1510. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1511. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1512. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1513. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1514. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1515. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1516. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1517. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1518. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1519. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1520. ;;
  1521. esac
  1522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1523. $as_echo_n "checking for $2... " >&6; }
  1524. if eval \${$3+:} false; then :
  1525. $as_echo_n "(cached) " >&6
  1526. else
  1527. eval "$3=\$ac_header_compiler"
  1528. fi
  1529. eval ac_res=\$$3
  1530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1531. $as_echo "$ac_res" >&6; }
  1532. fi
  1533. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1534. } # ac_fn_cxx_check_header_mongrel
  1535. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1536. # ---------------------------------------------------------
  1537. # Tests whether HEADER exists and can be compiled using the include files in
  1538. # INCLUDES, setting the cache variable VAR accordingly.
  1539. ac_fn_cxx_check_header_compile ()
  1540. {
  1541. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1543. $as_echo_n "checking for $2... " >&6; }
  1544. if eval \${$3+:} false; then :
  1545. $as_echo_n "(cached) " >&6
  1546. else
  1547. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1548. /* end build/confdefs.h. */
  1549. $4
  1550. #include <$2>
  1551. _ACEOF
  1552. if ac_fn_cxx_try_compile "$LINENO"; then :
  1553. eval "$3=yes"
  1554. else
  1555. eval "$3=no"
  1556. fi
  1557. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1558. fi
  1559. eval ac_res=\$$3
  1560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1561. $as_echo "$ac_res" >&6; }
  1562. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1563. } # ac_fn_cxx_check_header_compile
  1564. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1565. # ---------------------------------------------
  1566. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1567. # variable VAR accordingly.
  1568. ac_fn_cxx_check_type ()
  1569. {
  1570. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1572. $as_echo_n "checking for $2... " >&6; }
  1573. if eval \${$3+:} false; then :
  1574. $as_echo_n "(cached) " >&6
  1575. else
  1576. eval "$3=no"
  1577. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1578. /* end build/confdefs.h. */
  1579. $4
  1580. int
  1581. main ()
  1582. {
  1583. if (sizeof ($2))
  1584. return 0;
  1585. ;
  1586. return 0;
  1587. }
  1588. _ACEOF
  1589. if ac_fn_cxx_try_compile "$LINENO"; then :
  1590. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1591. /* end build/confdefs.h. */
  1592. $4
  1593. int
  1594. main ()
  1595. {
  1596. if (sizeof (($2)))
  1597. return 0;
  1598. ;
  1599. return 0;
  1600. }
  1601. _ACEOF
  1602. if ac_fn_cxx_try_compile "$LINENO"; then :
  1603. else
  1604. eval "$3=yes"
  1605. fi
  1606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1607. fi
  1608. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1609. fi
  1610. eval ac_res=\$$3
  1611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1612. $as_echo "$ac_res" >&6; }
  1613. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1614. } # ac_fn_cxx_check_type
  1615. # ac_fn_c_find_intX_t LINENO BITS VAR
  1616. # -----------------------------------
  1617. # Finds a signed integer type with width BITS, setting cache variable VAR
  1618. # accordingly.
  1619. ac_fn_c_find_intX_t ()
  1620. {
  1621. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1623. $as_echo_n "checking for int$2_t... " >&6; }
  1624. if eval \${$3+:} false; then :
  1625. $as_echo_n "(cached) " >&6
  1626. else
  1627. eval "$3=no"
  1628. # Order is important - never check a type that is potentially smaller
  1629. # than half of the expected target width.
  1630. for ac_type in int$2_t 'int' 'long int' \
  1631. 'long long int' 'short int' 'signed char'; do
  1632. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1633. /* end build/confdefs.h. */
  1634. $ac_includes_default
  1635. enum { N = $2 / 2 - 1 };
  1636. int
  1637. main ()
  1638. {
  1639. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1640. test_array [0] = 0;
  1641. return test_array [0];
  1642. ;
  1643. return 0;
  1644. }
  1645. _ACEOF
  1646. if ac_fn_cxx_try_compile "$LINENO"; then :
  1647. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1648. /* end build/confdefs.h. */
  1649. $ac_includes_default
  1650. enum { N = $2 / 2 - 1 };
  1651. int
  1652. main ()
  1653. {
  1654. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1655. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1656. test_array [0] = 0;
  1657. return test_array [0];
  1658. ;
  1659. return 0;
  1660. }
  1661. _ACEOF
  1662. if ac_fn_cxx_try_compile "$LINENO"; then :
  1663. else
  1664. case $ac_type in #(
  1665. int$2_t) :
  1666. eval "$3=yes" ;; #(
  1667. *) :
  1668. eval "$3=\$ac_type" ;;
  1669. esac
  1670. fi
  1671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1672. fi
  1673. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1674. if eval test \"x\$"$3"\" = x"no"; then :
  1675. else
  1676. break
  1677. fi
  1678. done
  1679. fi
  1680. eval ac_res=\$$3
  1681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1682. $as_echo "$ac_res" >&6; }
  1683. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1684. } # ac_fn_c_find_intX_t
  1685. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1686. # ------------------------------------
  1687. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1688. # accordingly.
  1689. ac_fn_c_find_uintX_t ()
  1690. {
  1691. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1693. $as_echo_n "checking for uint$2_t... " >&6; }
  1694. if eval \${$3+:} false; then :
  1695. $as_echo_n "(cached) " >&6
  1696. else
  1697. eval "$3=no"
  1698. # Order is important - never check a type that is potentially smaller
  1699. # than half of the expected target width.
  1700. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1701. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1702. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1703. /* end build/confdefs.h. */
  1704. $ac_includes_default
  1705. int
  1706. main ()
  1707. {
  1708. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1709. test_array [0] = 0;
  1710. return test_array [0];
  1711. ;
  1712. return 0;
  1713. }
  1714. _ACEOF
  1715. if ac_fn_cxx_try_compile "$LINENO"; then :
  1716. case $ac_type in #(
  1717. uint$2_t) :
  1718. eval "$3=yes" ;; #(
  1719. *) :
  1720. eval "$3=\$ac_type" ;;
  1721. esac
  1722. fi
  1723. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1724. if eval test \"x\$"$3"\" = x"no"; then :
  1725. else
  1726. break
  1727. fi
  1728. done
  1729. fi
  1730. eval ac_res=\$$3
  1731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1732. $as_echo "$ac_res" >&6; }
  1733. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1734. } # ac_fn_c_find_uintX_t
  1735. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  1736. # ------------------------------------------------------
  1737. # Tries to find if the field MEMBER exists in type AGGR, after including
  1738. # INCLUDES, setting cache variable VAR accordingly.
  1739. ac_fn_cxx_check_member ()
  1740. {
  1741. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1743. $as_echo_n "checking for $2.$3... " >&6; }
  1744. if eval \${$4+:} false; then :
  1745. $as_echo_n "(cached) " >&6
  1746. else
  1747. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1748. /* end build/confdefs.h. */
  1749. $5
  1750. int
  1751. main ()
  1752. {
  1753. static $2 ac_aggr;
  1754. if (ac_aggr.$3)
  1755. return 0;
  1756. ;
  1757. return 0;
  1758. }
  1759. _ACEOF
  1760. if ac_fn_cxx_try_compile "$LINENO"; then :
  1761. eval "$4=yes"
  1762. else
  1763. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1764. /* end build/confdefs.h. */
  1765. $5
  1766. int
  1767. main ()
  1768. {
  1769. static $2 ac_aggr;
  1770. if (sizeof ac_aggr.$3)
  1771. return 0;
  1772. ;
  1773. return 0;
  1774. }
  1775. _ACEOF
  1776. if ac_fn_cxx_try_compile "$LINENO"; then :
  1777. eval "$4=yes"
  1778. else
  1779. eval "$4=no"
  1780. fi
  1781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1782. fi
  1783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1784. fi
  1785. eval ac_res=\$$4
  1786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1787. $as_echo "$ac_res" >&6; }
  1788. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1789. } # ac_fn_cxx_check_member
  1790. # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
  1791. # -----------------------------------------------
  1792. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1793. # accordingly.
  1794. ac_fn_cxx_check_decl ()
  1795. {
  1796. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1797. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1798. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1800. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1801. if eval \${$3+:} false; then :
  1802. $as_echo_n "(cached) " >&6
  1803. else
  1804. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1805. /* end build/confdefs.h. */
  1806. $4
  1807. int
  1808. main ()
  1809. {
  1810. #ifndef $as_decl_name
  1811. #ifdef __cplusplus
  1812. (void) $as_decl_use;
  1813. #else
  1814. (void) $as_decl_name;
  1815. #endif
  1816. #endif
  1817. ;
  1818. return 0;
  1819. }
  1820. _ACEOF
  1821. if ac_fn_cxx_try_compile "$LINENO"; then :
  1822. eval "$3=yes"
  1823. else
  1824. eval "$3=no"
  1825. fi
  1826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1827. fi
  1828. eval ac_res=\$$3
  1829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1830. $as_echo "$ac_res" >&6; }
  1831. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1832. } # ac_fn_cxx_check_decl
  1833. # ac_fn_cxx_check_func LINENO FUNC VAR
  1834. # ------------------------------------
  1835. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1836. ac_fn_cxx_check_func ()
  1837. {
  1838. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1840. $as_echo_n "checking for $2... " >&6; }
  1841. if eval \${$3+:} false; then :
  1842. $as_echo_n "(cached) " >&6
  1843. else
  1844. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1845. /* end build/confdefs.h. */
  1846. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1847. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1848. #define $2 innocuous_$2
  1849. /* System header to define __stub macros and hopefully few prototypes,
  1850. which can conflict with char $2 (); below.
  1851. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1852. <limits.h> exists even on freestanding compilers. */
  1853. #ifdef __STDC__
  1854. # include <limits.h>
  1855. #else
  1856. # include <assert.h>
  1857. #endif
  1858. #undef $2
  1859. /* Override any GCC internal prototype to avoid an error.
  1860. Use char because int might match the return type of a GCC
  1861. builtin and then its argument prototype would still apply. */
  1862. #ifdef __cplusplus
  1863. extern "C"
  1864. #endif
  1865. char $2 ();
  1866. /* The GNU C library defines this for functions which it implements
  1867. to always fail with ENOSYS. Some functions are actually named
  1868. something starting with __ and the normal name is an alias. */
  1869. #if defined __stub_$2 || defined __stub___$2
  1870. choke me
  1871. #endif
  1872. int
  1873. main ()
  1874. {
  1875. return $2 ();
  1876. ;
  1877. return 0;
  1878. }
  1879. _ACEOF
  1880. if ac_fn_cxx_try_link "$LINENO"; then :
  1881. eval "$3=yes"
  1882. else
  1883. eval "$3=no"
  1884. fi
  1885. rm -f core conftest.err conftest.$ac_objext \
  1886. conftest$ac_exeext conftest.$ac_ext
  1887. fi
  1888. eval ac_res=\$$3
  1889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1890. $as_echo "$ac_res" >&6; }
  1891. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1892. } # ac_fn_cxx_check_func
  1893. cat >build/config.log <<_ACEOF
  1894. This file contains any messages produced by compilers while
  1895. running configure, to aid debugging if configure makes a mistake.
  1896. It was created by $as_me, which was
  1897. generated by GNU Autoconf 2.69. Invocation command line was
  1898. $ $0 $@
  1899. _ACEOF
  1900. exec 5>>build/config.log
  1901. {
  1902. cat <<_ASUNAME
  1903. ## --------- ##
  1904. ## Platform. ##
  1905. ## --------- ##
  1906. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1907. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1908. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1909. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1910. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1911. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1912. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1913. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1914. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1915. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1916. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1917. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1918. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1919. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1920. _ASUNAME
  1921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1922. for as_dir in $PATH
  1923. do
  1924. IFS=$as_save_IFS
  1925. test -z "$as_dir" && as_dir=.
  1926. $as_echo "PATH: $as_dir"
  1927. done
  1928. IFS=$as_save_IFS
  1929. } >&5
  1930. cat >&5 <<_ACEOF
  1931. ## ----------- ##
  1932. ## Core tests. ##
  1933. ## ----------- ##
  1934. _ACEOF
  1935. # Keep a trace of the command line.
  1936. # Strip out --no-create and --no-recursion so they do not pile up.
  1937. # Strip out --silent because we don't want to record it for future runs.
  1938. # Also quote any args containing shell meta-characters.
  1939. # Make two passes to allow for proper duplicate-argument suppression.
  1940. ac_configure_args=
  1941. ac_configure_args0=
  1942. ac_configure_args1=
  1943. ac_must_keep_next=false
  1944. for ac_pass in 1 2
  1945. do
  1946. for ac_arg
  1947. do
  1948. case $ac_arg in
  1949. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1950. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1951. | -silent | --silent | --silen | --sile | --sil)
  1952. continue ;;
  1953. *\'*)
  1954. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1955. esac
  1956. case $ac_pass in
  1957. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1958. 2)
  1959. as_fn_append ac_configure_args1 " '$ac_arg'"
  1960. if test $ac_must_keep_next = true; then
  1961. ac_must_keep_next=false # Got value, back to normal.
  1962. else
  1963. case $ac_arg in
  1964. *=* | --config-cache | -C | -disable-* | --disable-* \
  1965. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1966. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1967. | -with-* | --with-* | -without-* | --without-* | --x)
  1968. case "$ac_configure_args0 " in
  1969. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1970. esac
  1971. ;;
  1972. -* ) ac_must_keep_next=true ;;
  1973. esac
  1974. fi
  1975. as_fn_append ac_configure_args " '$ac_arg'"
  1976. ;;
  1977. esac
  1978. done
  1979. done
  1980. { ac_configure_args0=; unset ac_configure_args0;}
  1981. { ac_configure_args1=; unset ac_configure_args1;}
  1982. # When interrupted or exit'd, cleanup temporary files, and complete
  1983. # build/config.log. We remove comments because anyway the quotes in there
  1984. # would cause problems or look ugly.
  1985. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1986. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1987. trap 'exit_status=$?
  1988. # Save into build/config.log some information that might help in debugging.
  1989. {
  1990. echo
  1991. $as_echo "## ---------------- ##
  1992. ## Cache variables. ##
  1993. ## ---------------- ##"
  1994. echo
  1995. # The following way of writing the cache mishandles newlines in values,
  1996. (
  1997. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1998. eval ac_val=\$$ac_var
  1999. case $ac_val in #(
  2000. *${as_nl}*)
  2001. case $ac_var in #(
  2002. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2003. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2004. esac
  2005. case $ac_var in #(
  2006. _ | IFS | as_nl) ;; #(
  2007. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2008. *) { eval $ac_var=; unset $ac_var;} ;;
  2009. esac ;;
  2010. esac
  2011. done
  2012. (set) 2>&1 |
  2013. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2014. *${as_nl}ac_space=\ *)
  2015. sed -n \
  2016. "s/'\''/'\''\\\\'\'''\''/g;
  2017. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2018. ;; #(
  2019. *)
  2020. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2021. ;;
  2022. esac |
  2023. sort
  2024. )
  2025. echo
  2026. $as_echo "## ----------------- ##
  2027. ## Output variables. ##
  2028. ## ----------------- ##"
  2029. echo
  2030. for ac_var in $ac_subst_vars
  2031. do
  2032. eval ac_val=\$$ac_var
  2033. case $ac_val in
  2034. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2035. esac
  2036. $as_echo "$ac_var='\''$ac_val'\''"
  2037. done | sort
  2038. echo
  2039. if test -n "$ac_subst_files"; then
  2040. $as_echo "## ------------------- ##
  2041. ## File substitutions. ##
  2042. ## ------------------- ##"
  2043. echo
  2044. for ac_var in $ac_subst_files
  2045. do
  2046. eval ac_val=\$$ac_var
  2047. case $ac_val in
  2048. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2049. esac
  2050. $as_echo "$ac_var='\''$ac_val'\''"
  2051. done | sort
  2052. echo
  2053. fi
  2054. if test -s build/confdefs.h; then
  2055. $as_echo "## ----------- ##
  2056. ## build/confdefs.h. ##
  2057. ## ----------- ##"
  2058. echo
  2059. cat build/confdefs.h
  2060. echo
  2061. fi
  2062. test "$ac_signal" != 0 &&
  2063. $as_echo "$as_me: caught signal $ac_signal"
  2064. $as_echo "$as_me: exit $exit_status"
  2065. } >&5
  2066. rm -f core *.core core.conftest.* &&
  2067. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2068. exit $exit_status
  2069. ' 0
  2070. for ac_signal in 1 2 13 15; do
  2071. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2072. done
  2073. ac_signal=0
  2074. # build/confdefs.h avoids OS command line length limits that DEFS can exceed.
  2075. rm -f -r conftest* build/confdefs.h
  2076. $as_echo "/* build/confdefs.h */" > build/confdefs.h
  2077. # Predefined preprocessor variables.
  2078. cat >>build/confdefs.h <<_ACEOF
  2079. #define PACKAGE_NAME "$PACKAGE_NAME"
  2080. _ACEOF
  2081. cat >>build/confdefs.h <<_ACEOF
  2082. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2083. _ACEOF
  2084. cat >>build/confdefs.h <<_ACEOF
  2085. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2086. _ACEOF
  2087. cat >>build/confdefs.h <<_ACEOF
  2088. #define PACKAGE_STRING "$PACKAGE_STRING"
  2089. _ACEOF
  2090. cat >>build/confdefs.h <<_ACEOF
  2091. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2092. _ACEOF
  2093. cat >>build/confdefs.h <<_ACEOF
  2094. #define PACKAGE_URL "$PACKAGE_URL"
  2095. _ACEOF
  2096. # Let the site file select an alternate cache file if it wants to.
  2097. # Prefer an explicitly selected file to automatically selected ones.
  2098. ac_site_file1=NONE
  2099. ac_site_file2=NONE
  2100. if test -n "$CONFIG_SITE"; then
  2101. # We do not want a PATH search for config.site.
  2102. case $CONFIG_SITE in #((
  2103. -*) ac_site_file1=./$CONFIG_SITE;;
  2104. */*) ac_site_file1=$CONFIG_SITE;;
  2105. *) ac_site_file1=./$CONFIG_SITE;;
  2106. esac
  2107. elif test "x$prefix" != xNONE; then
  2108. ac_site_file1=$prefix/share/config.site
  2109. ac_site_file2=$prefix/etc/config.site
  2110. else
  2111. ac_site_file1=$ac_default_prefix/share/config.site
  2112. ac_site_file2=$ac_default_prefix/etc/config.site
  2113. fi
  2114. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2115. do
  2116. test "x$ac_site_file" = xNONE && continue
  2117. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2118. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2119. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2120. sed 's/^/| /' "$ac_site_file" >&5
  2121. . "$ac_site_file" \
  2122. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2123. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2124. as_fn_error $? "failed to load site script $ac_site_file
  2125. See \`build/config.log' for more details" "$LINENO" 5; }
  2126. fi
  2127. done
  2128. if test -r "$cache_file"; then
  2129. # Some versions of bash will fail to source /dev/null (special files
  2130. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2131. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2132. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2133. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2134. case $cache_file in
  2135. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2136. *) . "./$cache_file";;
  2137. esac
  2138. fi
  2139. else
  2140. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2141. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2142. >$cache_file
  2143. fi
  2144. as_fn_append ac_header_list " sys/time.h"
  2145. as_fn_append ac_header_list " unistd.h"
  2146. as_fn_append ac_func_list " alarm"
  2147. as_fn_append ac_header_list " stdlib.h"
  2148. as_fn_append ac_header_list " sys/param.h"
  2149. # Check that the precious variables saved in the cache have kept the same
  2150. # value.
  2151. ac_cache_corrupted=false
  2152. for ac_var in $ac_precious_vars; do
  2153. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2154. eval ac_new_set=\$ac_env_${ac_var}_set
  2155. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2156. eval ac_new_val=\$ac_env_${ac_var}_value
  2157. case $ac_old_set,$ac_new_set in
  2158. set,)
  2159. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2160. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2161. ac_cache_corrupted=: ;;
  2162. ,set)
  2163. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2164. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2165. ac_cache_corrupted=: ;;
  2166. ,);;
  2167. *)
  2168. if test "x$ac_old_val" != "x$ac_new_val"; then
  2169. # differences in whitespace do not lead to failure.
  2170. ac_old_val_w=`echo x $ac_old_val`
  2171. ac_new_val_w=`echo x $ac_new_val`
  2172. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2173. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2174. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2175. ac_cache_corrupted=:
  2176. else
  2177. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2178. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2179. eval $ac_var=\$ac_old_val
  2180. fi
  2181. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2182. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2183. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2184. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2185. fi;;
  2186. esac
  2187. # Pass precious variables to build/config.status.
  2188. if test "$ac_new_set" = set; then
  2189. case $ac_new_val in
  2190. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2191. *) ac_arg=$ac_var=$ac_new_val ;;
  2192. esac
  2193. case " $ac_configure_args " in
  2194. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2195. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2196. esac
  2197. fi
  2198. done
  2199. if $ac_cache_corrupted; then
  2200. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2201. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2202. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2203. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2204. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2205. fi
  2206. ## -------------------- ##
  2207. ## Main body of script. ##
  2208. ## -------------------- ##
  2209. ac_ext=c
  2210. ac_cpp='$CPP $CPPFLAGS'
  2211. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2212. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2213. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2214. ac_config_headers="$ac_config_headers src/config.h"
  2215. ac_aux_dir=
  2216. for ac_dir in build/autotools "$srcdir"/build/autotools; do
  2217. if test -f "$ac_dir/install-sh"; then
  2218. ac_aux_dir=$ac_dir
  2219. ac_install_sh="$ac_aux_dir/install-sh -c"
  2220. break
  2221. elif test -f "$ac_dir/install.sh"; then
  2222. ac_aux_dir=$ac_dir
  2223. ac_install_sh="$ac_aux_dir/install.sh -c"
  2224. break
  2225. elif test -f "$ac_dir/shtool"; then
  2226. ac_aux_dir=$ac_dir
  2227. ac_install_sh="$ac_aux_dir/shtool install -c"
  2228. break
  2229. fi
  2230. done
  2231. if test -z "$ac_aux_dir"; then
  2232. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build/autotools \"$srcdir\"/build/autotools" "$LINENO" 5
  2233. fi
  2234. # These three variables are undocumented and unsupported,
  2235. # and are intended to be withdrawn in a future Autoconf release.
  2236. # They can cause serious problems if a builder's source tree is in a directory
  2237. # whose full name contains unusual characters.
  2238. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2239. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2240. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2241. # Remove --cache-file and --srcdir arguments so they do not pile up.
  2242. egg_ac_parameters=
  2243. ac_prev=
  2244. for ac_arg in $ac_configure_args; do
  2245. if test -n "$ac_prev"; then
  2246. ac_prev=
  2247. continue
  2248. fi
  2249. case $ac_arg in
  2250. -cache-file | --cache-file | --cache-fil | --cache-fi \
  2251. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  2252. ac_prev=cache_file ;;
  2253. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  2254. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  2255. | --c=*)
  2256. ;;
  2257. --config-cache | -C)
  2258. ;;
  2259. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  2260. ac_prev=srcdir ;;
  2261. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  2262. ;;
  2263. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  2264. esac
  2265. done
  2266. # Setup build environment
  2267. #AC_REQUIRE_CPP
  2268. ac_ext=cpp
  2269. ac_cpp='$CXXCPP $CPPFLAGS'
  2270. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2271. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2272. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2273. ac_ext=cpp
  2274. ac_cpp='$CXXCPP $CPPFLAGS'
  2275. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2276. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2277. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2278. if test -z "$CXX"; then
  2279. if test -n "$CCC"; then
  2280. CXX=$CCC
  2281. else
  2282. if test -n "$ac_tool_prefix"; then
  2283. for ac_prog in g++49 g++-4.9 g++48 g++-4.8 g++47 g++-4.7 clang++ g++46 g++-4.6 g++45 g++-4.5 g++-4.4 g++-4.4.1 g++-4.4.2 g++-4.4.0 g++44 g++4 eg++ g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2284. do
  2285. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2286. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2288. $as_echo_n "checking for $ac_word... " >&6; }
  2289. if ${ac_cv_prog_CXX+:} false; then :
  2290. $as_echo_n "(cached) " >&6
  2291. else
  2292. if test -n "$CXX"; then
  2293. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2294. else
  2295. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2296. for as_dir in $PATH
  2297. do
  2298. IFS=$as_save_IFS
  2299. test -z "$as_dir" && as_dir=.
  2300. for ac_exec_ext in '' $ac_executable_extensions; do
  2301. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2302. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2303. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2304. break 2
  2305. fi
  2306. done
  2307. done
  2308. IFS=$as_save_IFS
  2309. fi
  2310. fi
  2311. CXX=$ac_cv_prog_CXX
  2312. if test -n "$CXX"; then
  2313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2314. $as_echo "$CXX" >&6; }
  2315. else
  2316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2317. $as_echo "no" >&6; }
  2318. fi
  2319. test -n "$CXX" && break
  2320. done
  2321. fi
  2322. if test -z "$CXX"; then
  2323. ac_ct_CXX=$CXX
  2324. for ac_prog in g++49 g++-4.9 g++48 g++-4.8 g++47 g++-4.7 clang++ g++46 g++-4.6 g++45 g++-4.5 g++-4.4 g++-4.4.1 g++-4.4.2 g++-4.4.0 g++44 g++4 eg++ g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2325. do
  2326. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2327. set dummy $ac_prog; ac_word=$2
  2328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2329. $as_echo_n "checking for $ac_word... " >&6; }
  2330. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  2331. $as_echo_n "(cached) " >&6
  2332. else
  2333. if test -n "$ac_ct_CXX"; then
  2334. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2335. else
  2336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2337. for as_dir in $PATH
  2338. do
  2339. IFS=$as_save_IFS
  2340. test -z "$as_dir" && as_dir=.
  2341. for ac_exec_ext in '' $ac_executable_extensions; do
  2342. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2343. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2344. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2345. break 2
  2346. fi
  2347. done
  2348. done
  2349. IFS=$as_save_IFS
  2350. fi
  2351. fi
  2352. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2353. if test -n "$ac_ct_CXX"; then
  2354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2355. $as_echo "$ac_ct_CXX" >&6; }
  2356. else
  2357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2358. $as_echo "no" >&6; }
  2359. fi
  2360. test -n "$ac_ct_CXX" && break
  2361. done
  2362. if test "x$ac_ct_CXX" = x; then
  2363. CXX="g++"
  2364. else
  2365. case $cross_compiling:$ac_tool_warned in
  2366. yes:)
  2367. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2368. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2369. ac_tool_warned=yes ;;
  2370. esac
  2371. CXX=$ac_ct_CXX
  2372. fi
  2373. fi
  2374. fi
  2375. fi
  2376. # Provide some information about the compiler.
  2377. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2378. set X $ac_compile
  2379. ac_compiler=$2
  2380. for ac_option in --version -v -V -qversion; do
  2381. { { ac_try="$ac_compiler $ac_option >&5"
  2382. case "(($ac_try" in
  2383. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2384. *) ac_try_echo=$ac_try;;
  2385. esac
  2386. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2387. $as_echo "$ac_try_echo"; } >&5
  2388. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2389. ac_status=$?
  2390. if test -s conftest.err; then
  2391. sed '10a\
  2392. ... rest of stderr output deleted ...
  2393. 10q' conftest.err >conftest.er1
  2394. cat conftest.er1 >&5
  2395. fi
  2396. rm -f conftest.er1 conftest.err
  2397. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2398. test $ac_status = 0; }
  2399. done
  2400. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2401. /* end build/confdefs.h. */
  2402. int
  2403. main ()
  2404. {
  2405. ;
  2406. return 0;
  2407. }
  2408. _ACEOF
  2409. ac_clean_files_save=$ac_clean_files
  2410. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2411. # Try to create an executable without -o first, disregard a.out.
  2412. # It will help us diagnose broken compilers, and finding out an intuition
  2413. # of exeext.
  2414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2415. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2416. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2417. # The possible output files:
  2418. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2419. ac_rmfiles=
  2420. for ac_file in $ac_files
  2421. do
  2422. case $ac_file in
  2423. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2424. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2425. esac
  2426. done
  2427. rm -f $ac_rmfiles
  2428. if { { ac_try="$ac_link_default"
  2429. case "(($ac_try" in
  2430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2431. *) ac_try_echo=$ac_try;;
  2432. esac
  2433. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2434. $as_echo "$ac_try_echo"; } >&5
  2435. (eval "$ac_link_default") 2>&5
  2436. ac_status=$?
  2437. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2438. test $ac_status = 0; }; then :
  2439. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2440. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2441. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2442. # so that the user can short-circuit this test for compilers unknown to
  2443. # Autoconf.
  2444. for ac_file in $ac_files ''
  2445. do
  2446. test -f "$ac_file" || continue
  2447. case $ac_file in
  2448. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2449. ;;
  2450. [ab].out )
  2451. # We found the default executable, but exeext='' is most
  2452. # certainly right.
  2453. break;;
  2454. *.* )
  2455. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2456. then :; else
  2457. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2458. fi
  2459. # We set ac_cv_exeext here because the later test for it is not
  2460. # safe: cross compilers may not add the suffix if given an `-o'
  2461. # argument, so we may need to know it at that point already.
  2462. # Even if this section looks crufty: it has the advantage of
  2463. # actually working.
  2464. break;;
  2465. * )
  2466. break;;
  2467. esac
  2468. done
  2469. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2470. else
  2471. ac_file=''
  2472. fi
  2473. if test -z "$ac_file"; then :
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2475. $as_echo "no" >&6; }
  2476. $as_echo "$as_me: failed program was:" >&5
  2477. sed 's/^/| /' conftest.$ac_ext >&5
  2478. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2479. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2480. as_fn_error 77 "C++ compiler cannot create executables
  2481. See \`build/config.log' for more details" "$LINENO" 5; }
  2482. else
  2483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2484. $as_echo "yes" >&6; }
  2485. fi
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2487. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2489. $as_echo "$ac_file" >&6; }
  2490. ac_exeext=$ac_cv_exeext
  2491. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2492. ac_clean_files=$ac_clean_files_save
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2494. $as_echo_n "checking for suffix of executables... " >&6; }
  2495. if { { ac_try="$ac_link"
  2496. case "(($ac_try" in
  2497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2498. *) ac_try_echo=$ac_try;;
  2499. esac
  2500. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2501. $as_echo "$ac_try_echo"; } >&5
  2502. (eval "$ac_link") 2>&5
  2503. ac_status=$?
  2504. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2505. test $ac_status = 0; }; then :
  2506. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2507. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2508. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2509. # `rm'.
  2510. for ac_file in conftest.exe conftest conftest.*; do
  2511. test -f "$ac_file" || continue
  2512. case $ac_file in
  2513. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2514. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2515. break;;
  2516. * ) break;;
  2517. esac
  2518. done
  2519. else
  2520. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2521. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2522. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2523. See \`build/config.log' for more details" "$LINENO" 5; }
  2524. fi
  2525. rm -f conftest conftest$ac_cv_exeext
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2527. $as_echo "$ac_cv_exeext" >&6; }
  2528. rm -f conftest.$ac_ext
  2529. EXEEXT=$ac_cv_exeext
  2530. ac_exeext=$EXEEXT
  2531. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2532. /* end build/confdefs.h. */
  2533. #include <stdio.h>
  2534. int
  2535. main ()
  2536. {
  2537. FILE *f = fopen ("conftest.out", "w");
  2538. return ferror (f) || fclose (f) != 0;
  2539. ;
  2540. return 0;
  2541. }
  2542. _ACEOF
  2543. ac_clean_files="$ac_clean_files conftest.out"
  2544. # Check that the compiler produces executables we can run. If not, either
  2545. # the compiler is broken, or we cross compile.
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2547. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2548. if test "$cross_compiling" != yes; then
  2549. { { ac_try="$ac_link"
  2550. case "(($ac_try" in
  2551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2552. *) ac_try_echo=$ac_try;;
  2553. esac
  2554. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2555. $as_echo "$ac_try_echo"; } >&5
  2556. (eval "$ac_link") 2>&5
  2557. ac_status=$?
  2558. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2559. test $ac_status = 0; }
  2560. if { ac_try='./conftest$ac_cv_exeext'
  2561. { { case "(($ac_try" in
  2562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2563. *) ac_try_echo=$ac_try;;
  2564. esac
  2565. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2566. $as_echo "$ac_try_echo"; } >&5
  2567. (eval "$ac_try") 2>&5
  2568. ac_status=$?
  2569. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2570. test $ac_status = 0; }; }; then
  2571. cross_compiling=no
  2572. else
  2573. if test "$cross_compiling" = maybe; then
  2574. cross_compiling=yes
  2575. else
  2576. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2577. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2578. as_fn_error $? "cannot run C++ compiled programs.
  2579. If you meant to cross compile, use \`--host'.
  2580. See \`build/config.log' for more details" "$LINENO" 5; }
  2581. fi
  2582. fi
  2583. fi
  2584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2585. $as_echo "$cross_compiling" >&6; }
  2586. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2587. ac_clean_files=$ac_clean_files_save
  2588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2589. $as_echo_n "checking for suffix of object files... " >&6; }
  2590. if ${ac_cv_objext+:} false; then :
  2591. $as_echo_n "(cached) " >&6
  2592. else
  2593. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2594. /* end build/confdefs.h. */
  2595. int
  2596. main ()
  2597. {
  2598. ;
  2599. return 0;
  2600. }
  2601. _ACEOF
  2602. rm -f conftest.o conftest.obj
  2603. if { { ac_try="$ac_compile"
  2604. case "(($ac_try" in
  2605. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2606. *) ac_try_echo=$ac_try;;
  2607. esac
  2608. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2609. $as_echo "$ac_try_echo"; } >&5
  2610. (eval "$ac_compile") 2>&5
  2611. ac_status=$?
  2612. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2613. test $ac_status = 0; }; then :
  2614. for ac_file in conftest.o conftest.obj conftest.*; do
  2615. test -f "$ac_file" || continue;
  2616. case $ac_file in
  2617. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2618. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2619. break;;
  2620. esac
  2621. done
  2622. else
  2623. $as_echo "$as_me: failed program was:" >&5
  2624. sed 's/^/| /' conftest.$ac_ext >&5
  2625. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2626. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2627. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2628. See \`build/config.log' for more details" "$LINENO" 5; }
  2629. fi
  2630. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2631. fi
  2632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2633. $as_echo "$ac_cv_objext" >&6; }
  2634. OBJEXT=$ac_cv_objext
  2635. ac_objext=$OBJEXT
  2636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  2637. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2638. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  2639. $as_echo_n "(cached) " >&6
  2640. else
  2641. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2642. /* end build/confdefs.h. */
  2643. int
  2644. main ()
  2645. {
  2646. #ifndef __GNUC__
  2647. choke me
  2648. #endif
  2649. ;
  2650. return 0;
  2651. }
  2652. _ACEOF
  2653. if ac_fn_cxx_try_compile "$LINENO"; then :
  2654. ac_compiler_gnu=yes
  2655. else
  2656. ac_compiler_gnu=no
  2657. fi
  2658. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2659. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2660. fi
  2661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  2662. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2663. if test $ac_compiler_gnu = yes; then
  2664. GXX=yes
  2665. else
  2666. GXX=
  2667. fi
  2668. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2669. ac_save_CXXFLAGS=$CXXFLAGS
  2670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  2671. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2672. if ${ac_cv_prog_cxx_g+:} false; then :
  2673. $as_echo_n "(cached) " >&6
  2674. else
  2675. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2676. ac_cxx_werror_flag=yes
  2677. ac_cv_prog_cxx_g=no
  2678. CXXFLAGS="-g"
  2679. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2680. /* end build/confdefs.h. */
  2681. int
  2682. main ()
  2683. {
  2684. ;
  2685. return 0;
  2686. }
  2687. _ACEOF
  2688. if ac_fn_cxx_try_compile "$LINENO"; then :
  2689. ac_cv_prog_cxx_g=yes
  2690. else
  2691. CXXFLAGS=""
  2692. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2693. /* end build/confdefs.h. */
  2694. int
  2695. main ()
  2696. {
  2697. ;
  2698. return 0;
  2699. }
  2700. _ACEOF
  2701. if ac_fn_cxx_try_compile "$LINENO"; then :
  2702. else
  2703. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2704. CXXFLAGS="-g"
  2705. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2706. /* end build/confdefs.h. */
  2707. int
  2708. main ()
  2709. {
  2710. ;
  2711. return 0;
  2712. }
  2713. _ACEOF
  2714. if ac_fn_cxx_try_compile "$LINENO"; then :
  2715. ac_cv_prog_cxx_g=yes
  2716. fi
  2717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2718. fi
  2719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2720. fi
  2721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2722. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2723. fi
  2724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  2725. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  2726. if test "$ac_test_CXXFLAGS" = set; then
  2727. CXXFLAGS=$ac_save_CXXFLAGS
  2728. elif test $ac_cv_prog_cxx_g = yes; then
  2729. if test "$GXX" = yes; then
  2730. CXXFLAGS="-g -O2"
  2731. else
  2732. CXXFLAGS="-g"
  2733. fi
  2734. else
  2735. if test "$GXX" = yes; then
  2736. CXXFLAGS="-O2"
  2737. else
  2738. CXXFLAGS=
  2739. fi
  2740. fi
  2741. ac_ext=cpp
  2742. ac_cpp='$CXXCPP $CPPFLAGS'
  2743. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2744. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2745. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2746. CC="${CXX} -x c"
  2747. ac_ext=cpp
  2748. ac_cpp='$CXXCPP $CPPFLAGS'
  2749. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2750. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2751. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  2753. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  2754. if test -z "$CXXCPP"; then
  2755. if ${ac_cv_prog_CXXCPP+:} false; then :
  2756. $as_echo_n "(cached) " >&6
  2757. else
  2758. # Double quotes because CXXCPP needs to be expanded
  2759. for CXXCPP in "$CXX -E" "/lib/cpp"
  2760. do
  2761. ac_preproc_ok=false
  2762. for ac_cxx_preproc_warn_flag in '' yes
  2763. do
  2764. # Use a header file that comes with gcc, so configuring glibc
  2765. # with a fresh cross-compiler works.
  2766. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2767. # <limits.h> exists even on freestanding compilers.
  2768. # On the NeXT, cc -E runs the code through the compiler's parser,
  2769. # not just through cpp. "Syntax error" is here to catch this case.
  2770. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2771. /* end build/confdefs.h. */
  2772. #ifdef __STDC__
  2773. # include <limits.h>
  2774. #else
  2775. # include <assert.h>
  2776. #endif
  2777. Syntax error
  2778. _ACEOF
  2779. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2780. else
  2781. # Broken: fails on valid input.
  2782. continue
  2783. fi
  2784. rm -f conftest.err conftest.i conftest.$ac_ext
  2785. # OK, works on sane cases. Now check whether nonexistent headers
  2786. # can be detected and how.
  2787. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2788. /* end build/confdefs.h. */
  2789. #include <ac_nonexistent.h>
  2790. _ACEOF
  2791. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2792. # Broken: success on invalid input.
  2793. continue
  2794. else
  2795. # Passes both tests.
  2796. ac_preproc_ok=:
  2797. break
  2798. fi
  2799. rm -f conftest.err conftest.i conftest.$ac_ext
  2800. done
  2801. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2802. rm -f conftest.i conftest.err conftest.$ac_ext
  2803. if $ac_preproc_ok; then :
  2804. break
  2805. fi
  2806. done
  2807. ac_cv_prog_CXXCPP=$CXXCPP
  2808. fi
  2809. CXXCPP=$ac_cv_prog_CXXCPP
  2810. else
  2811. ac_cv_prog_CXXCPP=$CXXCPP
  2812. fi
  2813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  2814. $as_echo "$CXXCPP" >&6; }
  2815. ac_preproc_ok=false
  2816. for ac_cxx_preproc_warn_flag in '' yes
  2817. do
  2818. # Use a header file that comes with gcc, so configuring glibc
  2819. # with a fresh cross-compiler works.
  2820. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2821. # <limits.h> exists even on freestanding compilers.
  2822. # On the NeXT, cc -E runs the code through the compiler's parser,
  2823. # not just through cpp. "Syntax error" is here to catch this case.
  2824. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2825. /* end build/confdefs.h. */
  2826. #ifdef __STDC__
  2827. # include <limits.h>
  2828. #else
  2829. # include <assert.h>
  2830. #endif
  2831. Syntax error
  2832. _ACEOF
  2833. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2834. else
  2835. # Broken: fails on valid input.
  2836. continue
  2837. fi
  2838. rm -f conftest.err conftest.i conftest.$ac_ext
  2839. # OK, works on sane cases. Now check whether nonexistent headers
  2840. # can be detected and how.
  2841. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2842. /* end build/confdefs.h. */
  2843. #include <ac_nonexistent.h>
  2844. _ACEOF
  2845. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2846. # Broken: success on invalid input.
  2847. continue
  2848. else
  2849. # Passes both tests.
  2850. ac_preproc_ok=:
  2851. break
  2852. fi
  2853. rm -f conftest.err conftest.i conftest.$ac_ext
  2854. done
  2855. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2856. rm -f conftest.i conftest.err conftest.$ac_ext
  2857. if $ac_preproc_ok; then :
  2858. else
  2859. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2860. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2861. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  2862. See \`build/config.log' for more details" "$LINENO" 5; }
  2863. fi
  2864. ac_ext=cpp
  2865. ac_cpp='$CXXCPP $CPPFLAGS'
  2866. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2867. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2868. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2869. ax_cxx_compile_cxx11_required=true
  2870. ac_ext=cpp
  2871. ac_cpp='$CXXCPP $CPPFLAGS'
  2872. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2873. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2874. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2875. ac_success=no
  2876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
  2877. $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
  2878. if ${ax_cv_cxx_compile_cxx11+:} false; then :
  2879. $as_echo_n "(cached) " >&6
  2880. else
  2881. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2882. /* end build/confdefs.h. */
  2883. template <typename T>
  2884. struct check
  2885. {
  2886. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  2887. };
  2888. struct Base {
  2889. virtual void f() {}
  2890. };
  2891. struct Child : public Base {
  2892. virtual void f() override {}
  2893. };
  2894. typedef check<check<bool>> right_angle_brackets;
  2895. int a;
  2896. decltype(a) b;
  2897. typedef check<int> check_type;
  2898. check_type c;
  2899. check_type&& cr = static_cast<check_type&&>(c);
  2900. auto d = a;
  2901. auto l = [](){};
  2902. // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable]
  2903. struct use_l { use_l() { l(); } };
  2904. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  2905. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
  2906. namespace test_template_alias_sfinae {
  2907. struct foo {};
  2908. template<typename T>
  2909. using member = typename T::member_type;
  2910. template<typename T>
  2911. void func(...) {}
  2912. template<typename T>
  2913. void func(member<T>*) {}
  2914. void test();
  2915. void test() {
  2916. func<foo>(0);
  2917. }
  2918. }
  2919. _ACEOF
  2920. if ac_fn_cxx_try_compile "$LINENO"; then :
  2921. ax_cv_cxx_compile_cxx11=yes
  2922. else
  2923. ax_cv_cxx_compile_cxx11=no
  2924. fi
  2925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2926. fi
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
  2928. $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
  2929. if test x$ax_cv_cxx_compile_cxx11 = xyes; then
  2930. ac_success=yes
  2931. fi
  2932. if test x$ac_success = xno; then
  2933. for switch in -std=c++11 -std=c++0x; do
  2934. cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  2936. $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
  2937. if eval \${$cachevar+:} false; then :
  2938. $as_echo_n "(cached) " >&6
  2939. else
  2940. ac_save_CXXFLAGS="$CXXFLAGS"
  2941. CXXFLAGS="$CXXFLAGS $switch"
  2942. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2943. /* end build/confdefs.h. */
  2944. template <typename T>
  2945. struct check
  2946. {
  2947. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  2948. };
  2949. struct Base {
  2950. virtual void f() {}
  2951. };
  2952. struct Child : public Base {
  2953. virtual void f() override {}
  2954. };
  2955. typedef check<check<bool>> right_angle_brackets;
  2956. int a;
  2957. decltype(a) b;
  2958. typedef check<int> check_type;
  2959. check_type c;
  2960. check_type&& cr = static_cast<check_type&&>(c);
  2961. auto d = a;
  2962. auto l = [](){};
  2963. // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable]
  2964. struct use_l { use_l() { l(); } };
  2965. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  2966. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
  2967. namespace test_template_alias_sfinae {
  2968. struct foo {};
  2969. template<typename T>
  2970. using member = typename T::member_type;
  2971. template<typename T>
  2972. void func(...) {}
  2973. template<typename T>
  2974. void func(member<T>*) {}
  2975. void test();
  2976. void test() {
  2977. func<foo>(0);
  2978. }
  2979. }
  2980. _ACEOF
  2981. if ac_fn_cxx_try_compile "$LINENO"; then :
  2982. eval $cachevar=yes
  2983. else
  2984. eval $cachevar=no
  2985. fi
  2986. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2987. CXXFLAGS="$ac_save_CXXFLAGS"
  2988. fi
  2989. eval ac_res=\$$cachevar
  2990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2991. $as_echo "$ac_res" >&6; }
  2992. if eval test x\$$cachevar = xyes; then
  2993. CXXFLAGS="$CXXFLAGS $switch"
  2994. ac_success=yes
  2995. break
  2996. fi
  2997. done
  2998. fi
  2999. ac_ext=cpp
  3000. ac_cpp='$CXXCPP $CPPFLAGS'
  3001. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3002. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3003. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3004. if test x$ax_cxx_compile_cxx11_required = xtrue; then
  3005. if test x$ac_success = xno; then
  3006. as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
  3007. fi
  3008. else
  3009. if test x$ac_success = xno; then
  3010. HAVE_CXX11=0
  3011. { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
  3012. $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
  3013. else
  3014. HAVE_CXX11=1
  3015. $as_echo "#define HAVE_CXX11 1" >>build/confdefs.h
  3016. fi
  3017. fi
  3018. if test "${cross_compiling-x}" = "x"
  3019. then
  3020. cat << 'EOF' >&2
  3021. configure: error:
  3022. This system does not appear to have a working C compiler.
  3023. A working C compiler is required to compile Wraith.
  3024. EOF
  3025. exit 1
  3026. fi
  3027. if test -n "$GXX"; then
  3028. CXXFLAGS="$CXXFLAGS"
  3029. fi
  3030. #checkpoint
  3031. cat >confcache <<\_ACEOF
  3032. # This file is a shell script that caches the results of configure
  3033. # tests run on this system so they can be shared between configure
  3034. # scripts and configure runs, see configure's option --config-cache.
  3035. # It is not useful on other systems. If it contains results you don't
  3036. # want to keep, you may remove or edit it.
  3037. #
  3038. # build/config.status only pays attention to the cache file if you give it
  3039. # the --recheck option to rerun configure.
  3040. #
  3041. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3042. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3043. # following values.
  3044. _ACEOF
  3045. # The following way of writing the cache mishandles newlines in values,
  3046. # but we know of no workaround that is simple, portable, and efficient.
  3047. # So, we kill variables containing newlines.
  3048. # Ultrix sh set writes to stderr and can't be redirected directly,
  3049. # and sets the high bit in the cache file unless we assign to the vars.
  3050. (
  3051. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3052. eval ac_val=\$$ac_var
  3053. case $ac_val in #(
  3054. *${as_nl}*)
  3055. case $ac_var in #(
  3056. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3057. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3058. esac
  3059. case $ac_var in #(
  3060. _ | IFS | as_nl) ;; #(
  3061. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3062. *) { eval $ac_var=; unset $ac_var;} ;;
  3063. esac ;;
  3064. esac
  3065. done
  3066. (set) 2>&1 |
  3067. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3068. *${as_nl}ac_space=\ *)
  3069. # `set' does not quote correctly, so add quotes: double-quote
  3070. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3071. sed -n \
  3072. "s/'/'\\\\''/g;
  3073. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3074. ;; #(
  3075. *)
  3076. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3077. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3078. ;;
  3079. esac |
  3080. sort
  3081. ) |
  3082. sed '
  3083. /^ac_cv_env_/b end
  3084. t clear
  3085. :clear
  3086. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3087. t end
  3088. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3089. :end' >>confcache
  3090. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3091. if test -w "$cache_file"; then
  3092. if test "x$cache_file" != "x/dev/null"; then
  3093. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3094. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3095. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3096. cat confcache >"$cache_file"
  3097. else
  3098. case $cache_file in #(
  3099. */* | ?:*)
  3100. mv -f confcache "$cache_file"$$ &&
  3101. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3102. *)
  3103. mv -f confcache "$cache_file" ;;
  3104. esac
  3105. fi
  3106. fi
  3107. else
  3108. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3109. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3110. fi
  3111. fi
  3112. rm -f confcache
  3113. # Speedup compile
  3114. if test -n "$GXX" && test -z "$no_wall"; then
  3115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wall" >&5
  3116. $as_echo_n "checking whether the compiler understands -Wall... " >&6; }
  3117. if ${egg_cv_var_ccwall+:} false; then :
  3118. $as_echo_n "(cached) " >&6
  3119. else
  3120. ac_old_CXXFLAGS="$CXXFLAGS"
  3121. CXXFLAGS="$CXXFLAGS -Wall"
  3122. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3123. /* end build/confdefs.h. */
  3124. int main ()
  3125. {
  3126. return(0);
  3127. }
  3128. _ACEOF
  3129. if ac_fn_cxx_try_compile "$LINENO"; then :
  3130. egg_cv_var_ccwall="yes"
  3131. else
  3132. egg_cv_var_ccwall="no"
  3133. fi
  3134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3135. CXXFLAGS="$ac_old_CXXFLAGS"
  3136. fi
  3137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccwall" >&5
  3138. $as_echo "$egg_cv_var_ccwall" >&6; }
  3139. if test "$egg_cv_var_ccwall" = "yes"; then
  3140. CXXFLAGS="$CXXFLAGS -Wall"
  3141. fi
  3142. fi
  3143. if test -n "$GXX" && test -z "$no_pipe"; then
  3144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -pipe" >&5
  3145. $as_echo_n "checking whether the compiler understands -pipe... " >&6; }
  3146. if ${egg_cv_var_ccpipe+:} false; then :
  3147. $as_echo_n "(cached) " >&6
  3148. else
  3149. ac_old_CXX="$CXX"
  3150. CXX="$CXX -pipe"
  3151. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3152. /* end build/confdefs.h. */
  3153. int main ()
  3154. {
  3155. return(0);
  3156. }
  3157. _ACEOF
  3158. if ac_fn_cxx_try_compile "$LINENO"; then :
  3159. egg_cv_var_ccpipe="yes"
  3160. else
  3161. egg_cv_var_ccpipe="no"
  3162. fi
  3163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3164. CXX="$ac_old_CXX"
  3165. fi
  3166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccpipe" >&5
  3167. $as_echo "$egg_cv_var_ccpipe" >&6; }
  3168. if test "$egg_cv_var_ccpipe" = "yes"; then
  3169. CXX="$CXX -pipe"
  3170. fi
  3171. fi
  3172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fcolor-diagnostics" >&5
  3173. $as_echo_n "checking whether the compiler understands -fcolor-diagnostics... " >&6; }
  3174. if ${ax_cv_prog_cc_colordiagnostics+:} false; then :
  3175. $as_echo_n "(cached) " >&6
  3176. else
  3177. ac_ext=cpp
  3178. ac_cpp='$CXXCPP $CPPFLAGS'
  3179. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3180. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3181. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3182. ac_saved_flags="$CXXFLAGS"
  3183. CXXFLAGS="-Werror -fcolor-diagnostics"
  3184. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3185. /* end build/confdefs.h. */
  3186. int
  3187. main ()
  3188. {
  3189. ;
  3190. return 0;
  3191. }
  3192. _ACEOF
  3193. if ac_fn_cxx_try_compile "$LINENO"; then :
  3194. ax_cv_prog_cc_colordiagnostics="yes"
  3195. else
  3196. ax_cv_prog_cc_colordiagnostics="no"
  3197. fi
  3198. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3199. CXXFLAGS="$ac_saved_flags"
  3200. ac_ext=cpp
  3201. ac_cpp='$CXXCPP $CPPFLAGS'
  3202. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3203. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3204. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3205. fi
  3206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_colordiagnostics" >&5
  3207. $as_echo "$ax_cv_prog_cc_colordiagnostics" >&6; }
  3208. if [ "$ax_cv_prog_cc_colordiagnostics" = "yes" ]; then
  3209. CXXFLAGS="$CXXFLAGS -fcolor-diagnostics"
  3210. elif [ -n "" ]; then
  3211. cat << 'EOF' >&2
  3212. configure: error:
  3213. Your OS or C++ compiler does not support -fcolor-diagnostics.
  3214. This compile flag is required.
  3215. EOF
  3216. exit 1
  3217. fi
  3218. #CXX_FLAG_CHECK([CXXFLAGS], [-Qunused-arguments], [unusedarguments])
  3219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wno-invalid-source-encoding" >&5
  3220. $as_echo_n "checking whether the compiler understands -Wno-invalid-source-encoding... " >&6; }
  3221. if ${ax_cv_prog_cc_invalid_source_encoding+:} false; then :
  3222. $as_echo_n "(cached) " >&6
  3223. else
  3224. ac_ext=cpp
  3225. ac_cpp='$CXXCPP $CPPFLAGS'
  3226. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3227. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3228. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3229. ac_saved_flags="$CXXFLAGS"
  3230. CXXFLAGS="-Werror -Wno-invalid-source-encoding"
  3231. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3232. /* end build/confdefs.h. */
  3233. int
  3234. main ()
  3235. {
  3236. ;
  3237. return 0;
  3238. }
  3239. _ACEOF
  3240. if ac_fn_cxx_try_compile "$LINENO"; then :
  3241. ax_cv_prog_cc_invalid_source_encoding="yes"
  3242. else
  3243. ax_cv_prog_cc_invalid_source_encoding="no"
  3244. fi
  3245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3246. CXXFLAGS="$ac_saved_flags"
  3247. ac_ext=cpp
  3248. ac_cpp='$CXXCPP $CPPFLAGS'
  3249. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3250. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3251. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3252. fi
  3253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_invalid_source_encoding" >&5
  3254. $as_echo "$ax_cv_prog_cc_invalid_source_encoding" >&6; }
  3255. if [ "$ax_cv_prog_cc_invalid_source_encoding" = "yes" ]; then
  3256. CXXFLAGS="$CXXFLAGS -Wno-invalid-source-encoding"
  3257. elif [ -n "" ]; then
  3258. cat << 'EOF' >&2
  3259. configure: error:
  3260. Your OS or C++ compiler does not support -Wno-invalid-source-encoding.
  3261. This compile flag is required.
  3262. EOF
  3263. exit 1
  3264. fi
  3265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector" >&5
  3266. $as_echo_n "checking whether the compiler understands -fstack-protector... " >&6; }
  3267. if ${ax_cv_prog_cc_stackprotector+:} false; then :
  3268. $as_echo_n "(cached) " >&6
  3269. else
  3270. ac_ext=cpp
  3271. ac_cpp='$CXXCPP $CPPFLAGS'
  3272. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3273. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3274. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3275. ac_saved_flags="$CXXFLAGS"
  3276. CXXFLAGS="-Werror -fstack-protector"
  3277. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3278. /* end build/confdefs.h. */
  3279. int
  3280. main ()
  3281. {
  3282. ;
  3283. return 0;
  3284. }
  3285. _ACEOF
  3286. if ac_fn_cxx_try_compile "$LINENO"; then :
  3287. ax_cv_prog_cc_stackprotector="yes"
  3288. else
  3289. ax_cv_prog_cc_stackprotector="no"
  3290. fi
  3291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3292. CXXFLAGS="$ac_saved_flags"
  3293. ac_ext=cpp
  3294. ac_cpp='$CXXCPP $CPPFLAGS'
  3295. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3296. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3297. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3298. fi
  3299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotector" >&5
  3300. $as_echo "$ax_cv_prog_cc_stackprotector" >&6; }
  3301. if [ "$ax_cv_prog_cc_stackprotector" = "yes" ]; then
  3302. CXXFLAGS="$CXXFLAGS -fstack-protector"
  3303. elif [ -n "" ]; then
  3304. cat << 'EOF' >&2
  3305. configure: error:
  3306. Your OS or C++ compiler does not support -fstack-protector.
  3307. This compile flag is required.
  3308. EOF
  3309. exit 1
  3310. fi
  3311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector-strong" >&5
  3312. $as_echo_n "checking whether the compiler understands -fstack-protector-strong... " >&6; }
  3313. if ${ax_cv_prog_cc_stackprotectorstrong+:} false; then :
  3314. $as_echo_n "(cached) " >&6
  3315. else
  3316. ac_ext=cpp
  3317. ac_cpp='$CXXCPP $CPPFLAGS'
  3318. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3319. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3320. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3321. ac_saved_flags="$CXXFLAGS"
  3322. CXXFLAGS="-Werror -fstack-protector-strong"
  3323. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3324. /* end build/confdefs.h. */
  3325. int
  3326. main ()
  3327. {
  3328. ;
  3329. return 0;
  3330. }
  3331. _ACEOF
  3332. if ac_fn_cxx_try_compile "$LINENO"; then :
  3333. ax_cv_prog_cc_stackprotectorstrong="yes"
  3334. else
  3335. ax_cv_prog_cc_stackprotectorstrong="no"
  3336. fi
  3337. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3338. CXXFLAGS="$ac_saved_flags"
  3339. ac_ext=cpp
  3340. ac_cpp='$CXXCPP $CPPFLAGS'
  3341. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3342. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3343. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3344. fi
  3345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotectorstrong" >&5
  3346. $as_echo "$ax_cv_prog_cc_stackprotectorstrong" >&6; }
  3347. if [ "$ax_cv_prog_cc_stackprotectorstrong" = "yes" ]; then
  3348. CXXFLAGS="$CXXFLAGS -fstack-protector-strong"
  3349. elif [ -n "" ]; then
  3350. cat << 'EOF' >&2
  3351. configure: error:
  3352. Your OS or C++ compiler does not support -fstack-protector-strong.
  3353. This compile flag is required.
  3354. EOF
  3355. exit 1
  3356. fi
  3357. if [ "${ax_cv_prog_cc_stackprotectorstrong}" = "yes" ]; then
  3358. LDFLAGS="${LDFLAGS} -fstack-protector-strong"
  3359. elif [ "${ax_cv_prog_cc_stackprotector}" = "yes" ]; then
  3360. LDFLAGS="${LDFLAGS} -fstack-protector"
  3361. fi
  3362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Og" >&5
  3363. $as_echo_n "checking whether the compiler understands -Og... " >&6; }
  3364. if ${ax_cv_prog_cc_Og+:} false; then :
  3365. $as_echo_n "(cached) " >&6
  3366. else
  3367. ac_ext=cpp
  3368. ac_cpp='$CXXCPP $CPPFLAGS'
  3369. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3370. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3371. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3372. ac_saved_flags="$CXXFLAGS"
  3373. CXXFLAGS="-Werror -Og"
  3374. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3375. /* end build/confdefs.h. */
  3376. int
  3377. main ()
  3378. {
  3379. ;
  3380. return 0;
  3381. }
  3382. _ACEOF
  3383. if ac_fn_cxx_try_compile "$LINENO"; then :
  3384. ax_cv_prog_cc_Og="yes"
  3385. else
  3386. ax_cv_prog_cc_Og="no"
  3387. fi
  3388. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3389. CXXFLAGS="$ac_saved_flags"
  3390. ac_ext=cpp
  3391. ac_cpp='$CXXCPP $CPPFLAGS'
  3392. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3393. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3394. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3395. fi
  3396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_Og" >&5
  3397. $as_echo "$ax_cv_prog_cc_Og" >&6; }
  3398. if [ "$ax_cv_prog_cc_Og" = "yes" ]; then
  3399. DEBCXXFLAGS="$DEBCXXFLAGS -Og"
  3400. elif [ -n "" ]; then
  3401. cat << 'EOF' >&2
  3402. configure: error:
  3403. Your OS or C++ compiler does not support -Og.
  3404. This compile flag is required.
  3405. EOF
  3406. exit 1
  3407. fi
  3408. if [ "${ax_cv_prog_cc_Og}" = "no" ]; then
  3409. DEBCXXFLAGS="${DEBCXXFLAGS} -O0"
  3410. fi
  3411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector-all" >&5
  3412. $as_echo_n "checking whether the compiler understands -fstack-protector-all... " >&6; }
  3413. if ${ax_cv_prog_cc_stackprotectorall+:} false; then :
  3414. $as_echo_n "(cached) " >&6
  3415. else
  3416. ac_ext=cpp
  3417. ac_cpp='$CXXCPP $CPPFLAGS'
  3418. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3419. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3420. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3421. ac_saved_flags="$CXXFLAGS"
  3422. CXXFLAGS="-Werror -fstack-protector-all"
  3423. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3424. /* end build/confdefs.h. */
  3425. int
  3426. main ()
  3427. {
  3428. ;
  3429. return 0;
  3430. }
  3431. _ACEOF
  3432. if ac_fn_cxx_try_compile "$LINENO"; then :
  3433. ax_cv_prog_cc_stackprotectorall="yes"
  3434. else
  3435. ax_cv_prog_cc_stackprotectorall="no"
  3436. fi
  3437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3438. CXXFLAGS="$ac_saved_flags"
  3439. ac_ext=cpp
  3440. ac_cpp='$CXXCPP $CPPFLAGS'
  3441. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3442. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3443. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3444. fi
  3445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotectorall" >&5
  3446. $as_echo "$ax_cv_prog_cc_stackprotectorall" >&6; }
  3447. if [ "$ax_cv_prog_cc_stackprotectorall" = "yes" ]; then
  3448. DEBCXXFLAGS="$DEBCXXFLAGS -fstack-protector-all"
  3449. elif [ -n "" ]; then
  3450. cat << 'EOF' >&2
  3451. configure: error:
  3452. Your OS or C++ compiler does not support -fstack-protector-all.
  3453. This compile flag is required.
  3454. EOF
  3455. exit 1
  3456. fi
  3457. CCDEPMODE=gcc
  3458. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  3459. if test $num -ge "3"; then
  3460. CCDEPMODE=gcc3
  3461. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  3462. GCC3_CFLAGS="-W -Wno-unused-parameter -Wdisabled-optimization -Wno-write-strings -Wno-format-security -fno-strict-aliasing -Wno-format-y2k"
  3463. GCC3_CXXFLAGS="-Woverloaded-virtual"
  3464. GCC3DEB="-Wno-disabled-optimization -Wmissing-format-attribute"
  3465. fi
  3466. #checkpoint
  3467. cat >confcache <<\_ACEOF
  3468. # This file is a shell script that caches the results of configure
  3469. # tests run on this system so they can be shared between configure
  3470. # scripts and configure runs, see configure's option --config-cache.
  3471. # It is not useful on other systems. If it contains results you don't
  3472. # want to keep, you may remove or edit it.
  3473. #
  3474. # build/config.status only pays attention to the cache file if you give it
  3475. # the --recheck option to rerun configure.
  3476. #
  3477. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3478. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3479. # following values.
  3480. _ACEOF
  3481. # The following way of writing the cache mishandles newlines in values,
  3482. # but we know of no workaround that is simple, portable, and efficient.
  3483. # So, we kill variables containing newlines.
  3484. # Ultrix sh set writes to stderr and can't be redirected directly,
  3485. # and sets the high bit in the cache file unless we assign to the vars.
  3486. (
  3487. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3488. eval ac_val=\$$ac_var
  3489. case $ac_val in #(
  3490. *${as_nl}*)
  3491. case $ac_var in #(
  3492. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3493. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3494. esac
  3495. case $ac_var in #(
  3496. _ | IFS | as_nl) ;; #(
  3497. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3498. *) { eval $ac_var=; unset $ac_var;} ;;
  3499. esac ;;
  3500. esac
  3501. done
  3502. (set) 2>&1 |
  3503. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3504. *${as_nl}ac_space=\ *)
  3505. # `set' does not quote correctly, so add quotes: double-quote
  3506. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3507. sed -n \
  3508. "s/'/'\\\\''/g;
  3509. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3510. ;; #(
  3511. *)
  3512. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3513. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3514. ;;
  3515. esac |
  3516. sort
  3517. ) |
  3518. sed '
  3519. /^ac_cv_env_/b end
  3520. t clear
  3521. :clear
  3522. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3523. t end
  3524. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3525. :end' >>confcache
  3526. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3527. if test -w "$cache_file"; then
  3528. if test "x$cache_file" != "x/dev/null"; then
  3529. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3530. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3531. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3532. cat confcache >"$cache_file"
  3533. else
  3534. case $cache_file in #(
  3535. */* | ?:*)
  3536. mv -f confcache "$cache_file"$$ &&
  3537. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3538. *)
  3539. mv -f confcache "$cache_file" ;;
  3540. esac
  3541. fi
  3542. fi
  3543. else
  3544. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3545. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3546. fi
  3547. fi
  3548. rm -f confcache
  3549. # Checks for programs
  3550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3551. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3552. set x ${MAKE-make}
  3553. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3554. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3555. $as_echo_n "(cached) " >&6
  3556. else
  3557. cat >conftest.make <<\_ACEOF
  3558. SHELL = /bin/sh
  3559. all:
  3560. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3561. _ACEOF
  3562. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3563. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3564. *@@@%%%=?*=@@@%%%*)
  3565. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3566. *)
  3567. eval ac_cv_prog_make_${ac_make}_set=no;;
  3568. esac
  3569. rm -f conftest.make
  3570. fi
  3571. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3573. $as_echo "yes" >&6; }
  3574. SET_MAKE=
  3575. else
  3576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3577. $as_echo "no" >&6; }
  3578. SET_MAKE="MAKE=${MAKE-make}"
  3579. fi
  3580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3581. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3582. if ${ac_cv_path_SED+:} false; then :
  3583. $as_echo_n "(cached) " >&6
  3584. else
  3585. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3586. for ac_i in 1 2 3 4 5 6 7; do
  3587. ac_script="$ac_script$as_nl$ac_script"
  3588. done
  3589. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3590. { ac_script=; unset ac_script;}
  3591. if test -z "$SED"; then
  3592. ac_path_SED_found=false
  3593. # Loop through the user's path and test for each of PROGNAME-LIST
  3594. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3595. for as_dir in $PATH
  3596. do
  3597. IFS=$as_save_IFS
  3598. test -z "$as_dir" && as_dir=.
  3599. for ac_prog in sed gsed; do
  3600. for ac_exec_ext in '' $ac_executable_extensions; do
  3601. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3602. as_fn_executable_p "$ac_path_SED" || continue
  3603. # Check for GNU ac_path_SED and select it if it is found.
  3604. # Check for GNU $ac_path_SED
  3605. case `"$ac_path_SED" --version 2>&1` in
  3606. *GNU*)
  3607. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3608. *)
  3609. ac_count=0
  3610. $as_echo_n 0123456789 >"conftest.in"
  3611. while :
  3612. do
  3613. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3614. mv "conftest.tmp" "conftest.in"
  3615. cp "conftest.in" "conftest.nl"
  3616. $as_echo '' >> "conftest.nl"
  3617. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3618. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3619. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3620. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3621. # Best one so far, save it but keep looking for a better one
  3622. ac_cv_path_SED="$ac_path_SED"
  3623. ac_path_SED_max=$ac_count
  3624. fi
  3625. # 10*(2^10) chars as input seems more than enough
  3626. test $ac_count -gt 10 && break
  3627. done
  3628. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3629. esac
  3630. $ac_path_SED_found && break 3
  3631. done
  3632. done
  3633. done
  3634. IFS=$as_save_IFS
  3635. if test -z "$ac_cv_path_SED"; then
  3636. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3637. fi
  3638. else
  3639. ac_cv_path_SED=$SED
  3640. fi
  3641. fi
  3642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3643. $as_echo "$ac_cv_path_SED" >&6; }
  3644. SED="$ac_cv_path_SED"
  3645. rm -f conftest.sed
  3646. cat << 'EOF' > conftest.head
  3647. a
  3648. b
  3649. c
  3650. EOF
  3651. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  3652. do
  3653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_prog works" >&5
  3654. $as_echo_n "checking whether $ac_prog works... " >&6; }
  3655. if ${ac_cv_prog_HEAD_1+:} false; then :
  3656. $as_echo_n "(cached) " >&6
  3657. else
  3658. if test -n "$HEAD_1"
  3659. then
  3660. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  3661. else
  3662. if test "`cat conftest.head | $ac_prog`" = "a";
  3663. then
  3664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3665. $as_echo "yes" >&6; }
  3666. ac_cv_prog_HEAD_1=$ac_prog
  3667. else
  3668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3669. $as_echo "no" >&6; }
  3670. fi
  3671. fi
  3672. fi
  3673. test -n "$ac_cv_prog_HEAD_1" && break
  3674. done
  3675. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  3676. then
  3677. cat << 'EOF' >&2
  3678. configure: error:
  3679. This system seems to lack a working 'head -1' or 'head -n 1' command.
  3680. A working 'head -1' (or equivalent) command is required to compile Wraith.
  3681. EOF
  3682. exit 1
  3683. fi
  3684. rm -f conftest.head
  3685. HEAD_1=$ac_cv_prog_HEAD_1
  3686. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3687. for ac_prog in gawk mawk nawk awk
  3688. do
  3689. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3690. set dummy $ac_prog; ac_word=$2
  3691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3692. $as_echo_n "checking for $ac_word... " >&6; }
  3693. if ${ac_cv_prog_AWK+:} false; then :
  3694. $as_echo_n "(cached) " >&6
  3695. else
  3696. if test -n "$AWK"; then
  3697. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3698. else
  3699. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3700. for as_dir in $PATH
  3701. do
  3702. IFS=$as_save_IFS
  3703. test -z "$as_dir" && as_dir=.
  3704. for ac_exec_ext in '' $ac_executable_extensions; do
  3705. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3706. ac_cv_prog_AWK="$ac_prog"
  3707. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3708. break 2
  3709. fi
  3710. done
  3711. done
  3712. IFS=$as_save_IFS
  3713. fi
  3714. fi
  3715. AWK=$ac_cv_prog_AWK
  3716. if test -n "$AWK"; then
  3717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3718. $as_echo "$AWK" >&6; }
  3719. else
  3720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3721. $as_echo "no" >&6; }
  3722. fi
  3723. test -n "$AWK" && break
  3724. done
  3725. if test "${AWK-x}" = "x"
  3726. then
  3727. cat << 'EOF' >&2
  3728. configure: error:
  3729. This system seems to lack a working 'awk' command.
  3730. A working 'awk' command is required to compile Wraith.
  3731. EOF
  3732. exit 1
  3733. fi
  3734. # basename is needed for Tcl library and header checks
  3735. # Extract the first word of "basename", so it can be a program name with args.
  3736. set dummy basename; ac_word=$2
  3737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3738. $as_echo_n "checking for $ac_word... " >&6; }
  3739. if ${ac_cv_prog_BASENAME+:} false; then :
  3740. $as_echo_n "(cached) " >&6
  3741. else
  3742. if test -n "$BASENAME"; then
  3743. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3744. else
  3745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3746. for as_dir in $PATH
  3747. do
  3748. IFS=$as_save_IFS
  3749. test -z "$as_dir" && as_dir=.
  3750. for ac_exec_ext in '' $ac_executable_extensions; do
  3751. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3752. ac_cv_prog_BASENAME="basename"
  3753. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3754. break 2
  3755. fi
  3756. done
  3757. done
  3758. IFS=$as_save_IFS
  3759. fi
  3760. fi
  3761. BASENAME=$ac_cv_prog_BASENAME
  3762. if test -n "$BASENAME"; then
  3763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
  3764. $as_echo "$BASENAME" >&6; }
  3765. else
  3766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3767. $as_echo "no" >&6; }
  3768. fi
  3769. if test "${BASENAME-x}" = "x"
  3770. then
  3771. cat << 'EOF' >&2
  3772. configure: error:
  3773. This system seems to lack a working 'basename' command.
  3774. A working 'basename' command is required to compile Wraith.
  3775. EOF
  3776. exit 1
  3777. fi
  3778. # Extract the first word of "objcopy", so it can be a program name with args.
  3779. set dummy objcopy; ac_word=$2
  3780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3781. $as_echo_n "checking for $ac_word... " >&6; }
  3782. if ${ac_cv_prog_OBJCOPY+:} false; then :
  3783. $as_echo_n "(cached) " >&6
  3784. else
  3785. if test -n "$OBJCOPY"; then
  3786. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3787. else
  3788. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3789. for as_dir in $PATH
  3790. do
  3791. IFS=$as_save_IFS
  3792. test -z "$as_dir" && as_dir=.
  3793. for ac_exec_ext in '' $ac_executable_extensions; do
  3794. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3795. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3796. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3797. break 2
  3798. fi
  3799. done
  3800. done
  3801. IFS=$as_save_IFS
  3802. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  3803. fi
  3804. fi
  3805. OBJCOPY=$ac_cv_prog_OBJCOPY
  3806. if test -n "$OBJCOPY"; then
  3807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  3808. $as_echo "$OBJCOPY" >&6; }
  3809. else
  3810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3811. $as_echo "no" >&6; }
  3812. fi
  3813. # Extract the first word of "strip", so it can be a program name with args.
  3814. set dummy strip; ac_word=$2
  3815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3816. $as_echo_n "checking for $ac_word... " >&6; }
  3817. if ${ac_cv_prog_STRIP+:} false; then :
  3818. $as_echo_n "(cached) " >&6
  3819. else
  3820. if test -n "$STRIP"; then
  3821. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3822. else
  3823. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3824. for as_dir in $PATH
  3825. do
  3826. IFS=$as_save_IFS
  3827. test -z "$as_dir" && as_dir=.
  3828. for ac_exec_ext in '' $ac_executable_extensions; do
  3829. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3830. ac_cv_prog_STRIP="strip"
  3831. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3832. break 2
  3833. fi
  3834. done
  3835. done
  3836. IFS=$as_save_IFS
  3837. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3838. fi
  3839. fi
  3840. STRIP=$ac_cv_prog_STRIP
  3841. if test -n "$STRIP"; then
  3842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3843. $as_echo "$STRIP" >&6; }
  3844. else
  3845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3846. $as_echo "no" >&6; }
  3847. fi
  3848. # Extract the first word of "gdiff", so it can be a program name with args.
  3849. set dummy gdiff; ac_word=$2
  3850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3851. $as_echo_n "checking for $ac_word... " >&6; }
  3852. if ${ac_cv_prog_DIFF+:} false; then :
  3853. $as_echo_n "(cached) " >&6
  3854. else
  3855. if test -n "$DIFF"; then
  3856. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  3857. else
  3858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3859. for as_dir in $PATH
  3860. do
  3861. IFS=$as_save_IFS
  3862. test -z "$as_dir" && as_dir=.
  3863. for ac_exec_ext in '' $ac_executable_extensions; do
  3864. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3865. ac_cv_prog_DIFF="gdiff"
  3866. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3867. break 2
  3868. fi
  3869. done
  3870. done
  3871. IFS=$as_save_IFS
  3872. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  3873. fi
  3874. fi
  3875. DIFF=$ac_cv_prog_DIFF
  3876. if test -n "$DIFF"; then
  3877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
  3878. $as_echo "$DIFF" >&6; }
  3879. else
  3880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3881. $as_echo "no" >&6; }
  3882. fi
  3883. # Extract the first word of "uname", so it can be a program name with args.
  3884. set dummy uname; ac_word=$2
  3885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3886. $as_echo_n "checking for $ac_word... " >&6; }
  3887. if ${ac_cv_prog_UNAME+:} false; then :
  3888. $as_echo_n "(cached) " >&6
  3889. else
  3890. if test -n "$UNAME"; then
  3891. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3892. else
  3893. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3894. for as_dir in $PATH
  3895. do
  3896. IFS=$as_save_IFS
  3897. test -z "$as_dir" && as_dir=.
  3898. for ac_exec_ext in '' $ac_executable_extensions; do
  3899. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3900. ac_cv_prog_UNAME="uname"
  3901. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3902. break 2
  3903. fi
  3904. done
  3905. done
  3906. IFS=$as_save_IFS
  3907. fi
  3908. fi
  3909. UNAME=$ac_cv_prog_UNAME
  3910. if test -n "$UNAME"; then
  3911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
  3912. $as_echo "$UNAME" >&6; }
  3913. else
  3914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3915. $as_echo "no" >&6; }
  3916. fi
  3917. # Test the os and set the module linking settings
  3918. USE_STATIC=yes
  3919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system type" >&5
  3920. $as_echo_n "checking system type... " >&6; }
  3921. if ${egg_cv_var_system_type+:} false; then :
  3922. $as_echo_n "(cached) " >&6
  3923. else
  3924. egg_cv_var_system_type=`$UNAME -s`
  3925. fi
  3926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_type" >&5
  3927. $as_echo "$egg_cv_var_system_type" >&6; }
  3928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system release" >&5
  3929. $as_echo_n "checking system release... " >&6; }
  3930. if ${egg_cv_var_system_release+:} false; then :
  3931. $as_echo_n "(cached) " >&6
  3932. else
  3933. egg_cv_var_system_release=`$UNAME -r`
  3934. fi
  3935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_release" >&5
  3936. $as_echo "$egg_cv_var_system_release" >&6; }
  3937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system machine" >&5
  3938. $as_echo_n "checking system machine... " >&6; }
  3939. if ${egg_cv_var_system_machine+:} false; then :
  3940. $as_echo_n "(cached) " >&6
  3941. else
  3942. egg_cv_var_system_machine=`$UNAME -m`
  3943. fi
  3944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_machine" >&5
  3945. $as_echo "$egg_cv_var_system_machine" >&6; }
  3946. BUILDOS="$egg_cv_var_system_type"
  3947. BUILDARCH="$egg_cv_var_system_machine"
  3948. USE_GENERIC_I486="yes"
  3949. case "$egg_cv_var_system_type" in
  3950. BSD/OS)
  3951. ;;
  3952. IRIX)
  3953. ;;
  3954. HP-UX)
  3955. $as_echo "#define MD32_XARRAY 1" >>build/confdefs.h
  3956. ;;
  3957. Ultrix)
  3958. SHELL=/bin/sh5
  3959. ;;
  3960. SINIX*)
  3961. ;;
  3962. BeOS)
  3963. ;;
  3964. Linux)
  3965. ;;
  3966. Lynx)
  3967. ;;
  3968. QNX)
  3969. ;;
  3970. OSF1)
  3971. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3972. V*)
  3973. if test "$AWK" = "gawk"
  3974. then
  3975. AWK=awk
  3976. fi
  3977. ;;
  3978. 1.0|1.1|1.2)
  3979. $as_echo "#define OSF1_HACKS 1" >>build/confdefs.h
  3980. ;;
  3981. 1.*)
  3982. $as_echo "#define OSF1_HACKS 1" >>build/confdefs.h
  3983. ;;
  3984. *)
  3985. ;;
  3986. esac
  3987. $as_echo "#define STOP_UAC 1" >>build/confdefs.h
  3988. $as_echo "#define BROKEN_SNPRINTF 1" >>build/confdefs.h
  3989. ;;
  3990. SunOS)
  3991. SUNOS="yes"
  3992. USE_STATIC="no"
  3993. ;;
  3994. Darwin)
  3995. USE_STATIC="no"
  3996. USE_GENERIC_I486="no"
  3997. ;;
  3998. *BSD)
  3999. # FreeBSD/OpenBSD/NetBSD
  4000. ;;
  4001. *)
  4002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is Mach based" >&5
  4003. $as_echo_n "checking if system is Mach based... " >&6; }
  4004. if test -r /mach
  4005. then
  4006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4007. $as_echo "yes" >&6; }
  4008. $as_echo "#define BORGCUBES 1" >>build/confdefs.h
  4009. else
  4010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4011. $as_echo "no" >&6; }
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is QNX" >&5
  4013. $as_echo_n "checking if system is QNX... " >&6; }
  4014. if test -r /cmds
  4015. then
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4017. $as_echo "yes" >&6; }
  4018. else
  4019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4020. $as_echo "no" >&6; }
  4021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Something unknown!" >&5
  4022. $as_echo "Something unknown!" >&6; }
  4023. fi
  4024. fi
  4025. ;;
  4026. esac
  4027. case "$egg_cv_var_system_machine" in
  4028. i*)
  4029. if test "$USE_GENERIC_I486" = "yes"; then
  4030. CXX="$CXX -march=i486"
  4031. BUILDARCH="i486"
  4032. fi
  4033. ;;
  4034. *)
  4035. ;;
  4036. esac
  4037. # Check for IPv6 support
  4038. #EGG_IPV6_SUPPORTED
  4039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether IPv6 is enabled" >&5
  4040. $as_echo_n "checking whether IPv6 is enabled... " >&6; }
  4041. # Check whether --enable-ipv6 was given.
  4042. if test "${enable_ipv6+set}" = set; then :
  4043. enableval=$enable_ipv6;
  4044. enable_ipv6=$enableval
  4045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  4046. $as_echo "$enableval" >&6; }
  4047. else
  4048. # default if not given is ENABLED
  4049. if test "x$enableval" = "x"; then
  4050. enableval="yes"
  4051. fi
  4052. enable_ipv6=$enableval
  4053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  4054. $as_echo "$enableval" >&6; }
  4055. $as_echo "#define USE_IPV6 1" >>build/confdefs.h
  4056. fi
  4057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
  4058. $as_echo_n "checking for socklen_t... " >&6; }
  4059. if ${egg_cv_socklen_t+:} false; then :
  4060. $as_echo_n "(cached) " >&6
  4061. else
  4062. if test "$cross_compiling" = yes; then :
  4063. egg_cv_socklen_t=no
  4064. else
  4065. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4066. /* end build/confdefs.h. */
  4067. #include <unistd.h>
  4068. #include <sys/types.h>
  4069. #include <sys/socket.h>
  4070. #include <netinet/in.h>
  4071. #include <arpa/inet.h>
  4072. int main()
  4073. {
  4074. socklen_t test = sizeof(int);
  4075. return 0;
  4076. }
  4077. _ACEOF
  4078. if ac_fn_cxx_try_run "$LINENO"; then :
  4079. egg_cv_socklen_t=yes
  4080. else
  4081. egg_cv_socklen_t=no
  4082. fi
  4083. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4084. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4085. fi
  4086. fi
  4087. if test "$egg_cv_socklen_t" = "yes"; then
  4088. $as_echo "#define HAVE_SOCKLEN_T 1" >>build/confdefs.h
  4089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4090. $as_echo "yes" >&6; }
  4091. else
  4092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4093. $as_echo "no" >&6; }
  4094. fi
  4095. # Check for inconsistent random() functions
  4096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random limit" >&5
  4097. $as_echo_n "checking for random limit... " >&6; }
  4098. case "$egg_cv_var_system_type" in
  4099. SunOS) RMAX=0x7FFFFFFF
  4100. ;;
  4101. *) RMAX=RAND_MAX
  4102. ;;
  4103. esac
  4104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMAX" >&5
  4105. $as_echo "$RMAX" >&6; }
  4106. cat >>build/confdefs.h <<_ACEOF
  4107. #define RANDOM_MAX $RMAX
  4108. _ACEOF
  4109. # Create static binaries
  4110. if test "$USE_STATIC" = "yes"
  4111. then
  4112. if test -n "$GXX"
  4113. then
  4114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static" >&5
  4115. $as_echo_n "checking whether the compiler understands -static... " >&6; }
  4116. if ${egg_cv_var_ccstatic+:} false; then :
  4117. $as_echo_n "(cached) " >&6
  4118. else
  4119. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4120. /* end build/confdefs.h. */
  4121. int
  4122. main ()
  4123. {
  4124. ;
  4125. return 0;
  4126. }
  4127. _ACEOF
  4128. if ac_fn_cxx_try_compile "$LINENO"; then :
  4129. egg_cv_var_ccstatic="yes"
  4130. else
  4131. egg_cv_var_ccstatic="no"
  4132. fi
  4133. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4134. fi
  4135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccstatic" >&5
  4136. $as_echo "$egg_cv_var_ccstatic" >&6; }
  4137. if ! test "$egg_cv_var_ccstatic" = "yes"
  4138. then
  4139. cat << 'EOF' >&2
  4140. configure: error:
  4141. Your OS or C++ compiler does not support -static.
  4142. This compile flag is required for the botpack on this OS.
  4143. EOF
  4144. exit 1
  4145. fi
  4146. fi
  4147. STATIC="-static"
  4148. else
  4149. STATIC=""
  4150. fi
  4151. #checkpoint
  4152. cat >confcache <<\_ACEOF
  4153. # This file is a shell script that caches the results of configure
  4154. # tests run on this system so they can be shared between configure
  4155. # scripts and configure runs, see configure's option --config-cache.
  4156. # It is not useful on other systems. If it contains results you don't
  4157. # want to keep, you may remove or edit it.
  4158. #
  4159. # build/config.status only pays attention to the cache file if you give it
  4160. # the --recheck option to rerun configure.
  4161. #
  4162. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4163. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4164. # following values.
  4165. _ACEOF
  4166. # The following way of writing the cache mishandles newlines in values,
  4167. # but we know of no workaround that is simple, portable, and efficient.
  4168. # So, we kill variables containing newlines.
  4169. # Ultrix sh set writes to stderr and can't be redirected directly,
  4170. # and sets the high bit in the cache file unless we assign to the vars.
  4171. (
  4172. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4173. eval ac_val=\$$ac_var
  4174. case $ac_val in #(
  4175. *${as_nl}*)
  4176. case $ac_var in #(
  4177. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4178. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4179. esac
  4180. case $ac_var in #(
  4181. _ | IFS | as_nl) ;; #(
  4182. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4183. *) { eval $ac_var=; unset $ac_var;} ;;
  4184. esac ;;
  4185. esac
  4186. done
  4187. (set) 2>&1 |
  4188. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4189. *${as_nl}ac_space=\ *)
  4190. # `set' does not quote correctly, so add quotes: double-quote
  4191. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4192. sed -n \
  4193. "s/'/'\\\\''/g;
  4194. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4195. ;; #(
  4196. *)
  4197. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4198. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4199. ;;
  4200. esac |
  4201. sort
  4202. ) |
  4203. sed '
  4204. /^ac_cv_env_/b end
  4205. t clear
  4206. :clear
  4207. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4208. t end
  4209. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4210. :end' >>confcache
  4211. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4212. if test -w "$cache_file"; then
  4213. if test "x$cache_file" != "x/dev/null"; then
  4214. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4215. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4216. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4217. cat confcache >"$cache_file"
  4218. else
  4219. case $cache_file in #(
  4220. */* | ?:*)
  4221. mv -f confcache "$cache_file"$$ &&
  4222. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4223. *)
  4224. mv -f confcache "$cache_file" ;;
  4225. esac
  4226. fi
  4227. fi
  4228. else
  4229. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4230. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4231. fi
  4232. fi
  4233. rm -f confcache
  4234. # Checks for system libraries
  4235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  4236. $as_echo_n "checking for socket in -lsocket... " >&6; }
  4237. if ${ac_cv_lib_socket_socket+:} false; then :
  4238. $as_echo_n "(cached) " >&6
  4239. else
  4240. ac_check_lib_save_LIBS=$LIBS
  4241. LIBS="-lsocket $LIBS"
  4242. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4243. /* end build/confdefs.h. */
  4244. /* Override any GCC internal prototype to avoid an error.
  4245. Use char because int might match the return type of a GCC
  4246. builtin and then its argument prototype would still apply. */
  4247. #ifdef __cplusplus
  4248. extern "C"
  4249. #endif
  4250. char socket ();
  4251. int
  4252. main ()
  4253. {
  4254. return socket ();
  4255. ;
  4256. return 0;
  4257. }
  4258. _ACEOF
  4259. if ac_fn_cxx_try_link "$LINENO"; then :
  4260. ac_cv_lib_socket_socket=yes
  4261. else
  4262. ac_cv_lib_socket_socket=no
  4263. fi
  4264. rm -f core conftest.err conftest.$ac_objext \
  4265. conftest$ac_exeext conftest.$ac_ext
  4266. LIBS=$ac_check_lib_save_LIBS
  4267. fi
  4268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  4269. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  4270. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  4271. cat >>build/confdefs.h <<_ACEOF
  4272. #define HAVE_LIBSOCKET 1
  4273. _ACEOF
  4274. LIBS="-lsocket $LIBS"
  4275. fi
  4276. # AC_CHECK_LIB(nsl, connect)
  4277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  4278. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  4279. if ${ac_cv_lib_dl_dlopen+:} false; then :
  4280. $as_echo_n "(cached) " >&6
  4281. else
  4282. ac_check_lib_save_LIBS=$LIBS
  4283. LIBS="-ldl $LIBS"
  4284. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4285. /* end build/confdefs.h. */
  4286. /* Override any GCC internal prototype to avoid an error.
  4287. Use char because int might match the return type of a GCC
  4288. builtin and then its argument prototype would still apply. */
  4289. #ifdef __cplusplus
  4290. extern "C"
  4291. #endif
  4292. char dlopen ();
  4293. int
  4294. main ()
  4295. {
  4296. return dlopen ();
  4297. ;
  4298. return 0;
  4299. }
  4300. _ACEOF
  4301. if ac_fn_cxx_try_link "$LINENO"; then :
  4302. ac_cv_lib_dl_dlopen=yes
  4303. else
  4304. ac_cv_lib_dl_dlopen=no
  4305. fi
  4306. rm -f core conftest.err conftest.$ac_objext \
  4307. conftest$ac_exeext conftest.$ac_ext
  4308. LIBS=$ac_check_lib_save_LIBS
  4309. fi
  4310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  4311. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  4312. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  4313. cat >>build/confdefs.h <<_ACEOF
  4314. #define HAVE_LIBDL 1
  4315. _ACEOF
  4316. LIBS="-ldl $LIBS"
  4317. fi
  4318. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4319. # This is needed for Tcl libraries compiled with thread support
  4320. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4321. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4322. # ac_cv_lib_pthread="-lpthread"], [dnl
  4323. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4324. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4325. # ac_cv_lib_pthread="-lpthread"], [dnl
  4326. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4327. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4328. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4329. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4330. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4331. # ac_cv_lib_pthread=""],
  4332. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4333. if test "$SUNOS" = "yes"; then
  4334. # For suns without yp
  4335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
  4336. $as_echo_n "checking for main in -ldl... " >&6; }
  4337. if ${ac_cv_lib_dl_main+:} false; then :
  4338. $as_echo_n "(cached) " >&6
  4339. else
  4340. ac_check_lib_save_LIBS=$LIBS
  4341. LIBS="-ldl $LIBS"
  4342. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4343. /* end build/confdefs.h. */
  4344. int
  4345. main ()
  4346. {
  4347. return main ();
  4348. ;
  4349. return 0;
  4350. }
  4351. _ACEOF
  4352. if ac_fn_cxx_try_link "$LINENO"; then :
  4353. ac_cv_lib_dl_main=yes
  4354. else
  4355. ac_cv_lib_dl_main=no
  4356. fi
  4357. rm -f core conftest.err conftest.$ac_objext \
  4358. conftest$ac_exeext conftest.$ac_ext
  4359. LIBS=$ac_check_lib_save_LIBS
  4360. fi
  4361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
  4362. $as_echo "$ac_cv_lib_dl_main" >&6; }
  4363. if test "x$ac_cv_lib_dl_main" = xyes; then :
  4364. cat >>build/confdefs.h <<_ACEOF
  4365. #define HAVE_LIBDL 1
  4366. _ACEOF
  4367. LIBS="-ldl $LIBS"
  4368. fi
  4369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
  4370. $as_echo_n "checking for main in -lsocket... " >&6; }
  4371. if ${ac_cv_lib_socket_main+:} false; then :
  4372. $as_echo_n "(cached) " >&6
  4373. else
  4374. ac_check_lib_save_LIBS=$LIBS
  4375. LIBS="-lsocket $LIBS"
  4376. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4377. /* end build/confdefs.h. */
  4378. int
  4379. main ()
  4380. {
  4381. return main ();
  4382. ;
  4383. return 0;
  4384. }
  4385. _ACEOF
  4386. if ac_fn_cxx_try_link "$LINENO"; then :
  4387. ac_cv_lib_socket_main=yes
  4388. else
  4389. ac_cv_lib_socket_main=no
  4390. fi
  4391. rm -f core conftest.err conftest.$ac_objext \
  4392. conftest$ac_exeext conftest.$ac_ext
  4393. LIBS=$ac_check_lib_save_LIBS
  4394. fi
  4395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
  4396. $as_echo "$ac_cv_lib_socket_main" >&6; }
  4397. if test "x$ac_cv_lib_socket_main" = xyes; then :
  4398. cat >>build/confdefs.h <<_ACEOF
  4399. #define HAVE_LIBSOCKET 1
  4400. _ACEOF
  4401. LIBS="-lsocket $LIBS"
  4402. fi
  4403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
  4404. $as_echo_n "checking for main in -lnsl... " >&6; }
  4405. if ${ac_cv_lib_nsl_main+:} false; then :
  4406. $as_echo_n "(cached) " >&6
  4407. else
  4408. ac_check_lib_save_LIBS=$LIBS
  4409. LIBS="-lnsl $LIBS"
  4410. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4411. /* end build/confdefs.h. */
  4412. int
  4413. main ()
  4414. {
  4415. return main ();
  4416. ;
  4417. return 0;
  4418. }
  4419. _ACEOF
  4420. if ac_fn_cxx_try_link "$LINENO"; then :
  4421. ac_cv_lib_nsl_main=yes
  4422. else
  4423. ac_cv_lib_nsl_main=no
  4424. fi
  4425. rm -f core conftest.err conftest.$ac_objext \
  4426. conftest$ac_exeext conftest.$ac_ext
  4427. LIBS=$ac_check_lib_save_LIBS
  4428. fi
  4429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
  4430. $as_echo "$ac_cv_lib_nsl_main" >&6; }
  4431. if test "x$ac_cv_lib_nsl_main" = xyes; then :
  4432. cat >>build/confdefs.h <<_ACEOF
  4433. #define HAVE_LIBNSL 1
  4434. _ACEOF
  4435. LIBS="-lnsl $LIBS"
  4436. fi
  4437. fi
  4438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4439. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4440. if ${ac_cv_path_GREP+:} false; then :
  4441. $as_echo_n "(cached) " >&6
  4442. else
  4443. if test -z "$GREP"; then
  4444. ac_path_GREP_found=false
  4445. # Loop through the user's path and test for each of PROGNAME-LIST
  4446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4447. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4448. do
  4449. IFS=$as_save_IFS
  4450. test -z "$as_dir" && as_dir=.
  4451. for ac_prog in grep ggrep; do
  4452. for ac_exec_ext in '' $ac_executable_extensions; do
  4453. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4454. as_fn_executable_p "$ac_path_GREP" || continue
  4455. # Check for GNU ac_path_GREP and select it if it is found.
  4456. # Check for GNU $ac_path_GREP
  4457. case `"$ac_path_GREP" --version 2>&1` in
  4458. *GNU*)
  4459. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4460. *)
  4461. ac_count=0
  4462. $as_echo_n 0123456789 >"conftest.in"
  4463. while :
  4464. do
  4465. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4466. mv "conftest.tmp" "conftest.in"
  4467. cp "conftest.in" "conftest.nl"
  4468. $as_echo 'GREP' >> "conftest.nl"
  4469. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4470. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4471. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4472. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4473. # Best one so far, save it but keep looking for a better one
  4474. ac_cv_path_GREP="$ac_path_GREP"
  4475. ac_path_GREP_max=$ac_count
  4476. fi
  4477. # 10*(2^10) chars as input seems more than enough
  4478. test $ac_count -gt 10 && break
  4479. done
  4480. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4481. esac
  4482. $ac_path_GREP_found && break 3
  4483. done
  4484. done
  4485. done
  4486. IFS=$as_save_IFS
  4487. if test -z "$ac_cv_path_GREP"; then
  4488. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4489. fi
  4490. else
  4491. ac_cv_path_GREP=$GREP
  4492. fi
  4493. fi
  4494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4495. $as_echo "$ac_cv_path_GREP" >&6; }
  4496. GREP="$ac_cv_path_GREP"
  4497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4498. $as_echo_n "checking for egrep... " >&6; }
  4499. if ${ac_cv_path_EGREP+:} false; then :
  4500. $as_echo_n "(cached) " >&6
  4501. else
  4502. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4503. then ac_cv_path_EGREP="$GREP -E"
  4504. else
  4505. if test -z "$EGREP"; then
  4506. ac_path_EGREP_found=false
  4507. # Loop through the user's path and test for each of PROGNAME-LIST
  4508. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4509. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4510. do
  4511. IFS=$as_save_IFS
  4512. test -z "$as_dir" && as_dir=.
  4513. for ac_prog in egrep; do
  4514. for ac_exec_ext in '' $ac_executable_extensions; do
  4515. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4516. as_fn_executable_p "$ac_path_EGREP" || continue
  4517. # Check for GNU ac_path_EGREP and select it if it is found.
  4518. # Check for GNU $ac_path_EGREP
  4519. case `"$ac_path_EGREP" --version 2>&1` in
  4520. *GNU*)
  4521. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4522. *)
  4523. ac_count=0
  4524. $as_echo_n 0123456789 >"conftest.in"
  4525. while :
  4526. do
  4527. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4528. mv "conftest.tmp" "conftest.in"
  4529. cp "conftest.in" "conftest.nl"
  4530. $as_echo 'EGREP' >> "conftest.nl"
  4531. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4532. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4533. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4534. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4535. # Best one so far, save it but keep looking for a better one
  4536. ac_cv_path_EGREP="$ac_path_EGREP"
  4537. ac_path_EGREP_max=$ac_count
  4538. fi
  4539. # 10*(2^10) chars as input seems more than enough
  4540. test $ac_count -gt 10 && break
  4541. done
  4542. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4543. esac
  4544. $ac_path_EGREP_found && break 3
  4545. done
  4546. done
  4547. done
  4548. IFS=$as_save_IFS
  4549. if test -z "$ac_cv_path_EGREP"; then
  4550. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4551. fi
  4552. else
  4553. ac_cv_path_EGREP=$EGREP
  4554. fi
  4555. fi
  4556. fi
  4557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4558. $as_echo "$ac_cv_path_EGREP" >&6; }
  4559. EGREP="$ac_cv_path_EGREP"
  4560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4561. $as_echo_n "checking for ANSI C header files... " >&6; }
  4562. if ${ac_cv_header_stdc+:} false; then :
  4563. $as_echo_n "(cached) " >&6
  4564. else
  4565. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4566. /* end build/confdefs.h. */
  4567. #include <stdlib.h>
  4568. #include <stdarg.h>
  4569. #include <string.h>
  4570. #include <float.h>
  4571. int
  4572. main ()
  4573. {
  4574. ;
  4575. return 0;
  4576. }
  4577. _ACEOF
  4578. if ac_fn_cxx_try_compile "$LINENO"; then :
  4579. ac_cv_header_stdc=yes
  4580. else
  4581. ac_cv_header_stdc=no
  4582. fi
  4583. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4584. if test $ac_cv_header_stdc = yes; then
  4585. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4586. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4587. /* end build/confdefs.h. */
  4588. #include <string.h>
  4589. _ACEOF
  4590. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4591. $EGREP "memchr" >/dev/null 2>&1; then :
  4592. else
  4593. ac_cv_header_stdc=no
  4594. fi
  4595. rm -f conftest*
  4596. fi
  4597. if test $ac_cv_header_stdc = yes; then
  4598. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4599. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4600. /* end build/confdefs.h. */
  4601. #include <stdlib.h>
  4602. _ACEOF
  4603. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4604. $EGREP "free" >/dev/null 2>&1; then :
  4605. else
  4606. ac_cv_header_stdc=no
  4607. fi
  4608. rm -f conftest*
  4609. fi
  4610. if test $ac_cv_header_stdc = yes; then
  4611. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4612. if test "$cross_compiling" = yes; then :
  4613. :
  4614. else
  4615. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4616. /* end build/confdefs.h. */
  4617. #include <ctype.h>
  4618. #include <stdlib.h>
  4619. #if ((' ' & 0x0FF) == 0x020)
  4620. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4621. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4622. #else
  4623. # define ISLOWER(c) \
  4624. (('a' <= (c) && (c) <= 'i') \
  4625. || ('j' <= (c) && (c) <= 'r') \
  4626. || ('s' <= (c) && (c) <= 'z'))
  4627. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4628. #endif
  4629. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4630. int
  4631. main ()
  4632. {
  4633. int i;
  4634. for (i = 0; i < 256; i++)
  4635. if (XOR (islower (i), ISLOWER (i))
  4636. || toupper (i) != TOUPPER (i))
  4637. return 2;
  4638. return 0;
  4639. }
  4640. _ACEOF
  4641. if ac_fn_cxx_try_run "$LINENO"; then :
  4642. else
  4643. ac_cv_header_stdc=no
  4644. fi
  4645. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4646. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4647. fi
  4648. fi
  4649. fi
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4651. $as_echo "$ac_cv_header_stdc" >&6; }
  4652. if test $ac_cv_header_stdc = yes; then
  4653. $as_echo "#define STDC_HEADERS 1" >>build/confdefs.h
  4654. fi
  4655. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4656. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4657. inttypes.h stdint.h unistd.h
  4658. do :
  4659. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4660. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4661. "
  4662. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4663. cat >>build/confdefs.h <<_ACEOF
  4664. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4665. _ACEOF
  4666. fi
  4667. done
  4668. LIBELF_DIR="\$(top_srcdir)/lib/libelf/lib"
  4669. LIBELF_LIB="${LIBELF_DIR}/libelf.a"
  4670. LIBELF_BUNDLED="${LIBELF_LIB}"
  4671. LIBELF_INCLUDE="-I${LIBELF_DIR}"
  4672. for ac_header in gelf.h libelf.h
  4673. do :
  4674. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4675. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4676. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4677. cat >>build/confdefs.h <<_ACEOF
  4678. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4679. _ACEOF
  4680. ac_fn_cxx_check_type "$LINENO" "Elf_Note" "ac_cv_type_Elf_Note" "
  4681. #include \"gelf.h\"
  4682. #include \"libelf.h\"
  4683. "
  4684. if test "x$ac_cv_type_Elf_Note" = xyes; then :
  4685. cat >>build/confdefs.h <<_ACEOF
  4686. #define HAVE_ELF_NOTE 1
  4687. _ACEOF
  4688. $as_echo "#define HAVE_GELF_H 1" >>build/confdefs.h
  4689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gelf_getehdr in -lelf" >&5
  4690. $as_echo_n "checking for gelf_getehdr in -lelf... " >&6; }
  4691. if ${ac_cv_lib_elf_gelf_getehdr+:} false; then :
  4692. $as_echo_n "(cached) " >&6
  4693. else
  4694. ac_check_lib_save_LIBS=$LIBS
  4695. LIBS="-lelf $LIBS"
  4696. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4697. /* end build/confdefs.h. */
  4698. /* Override any GCC internal prototype to avoid an error.
  4699. Use char because int might match the return type of a GCC
  4700. builtin and then its argument prototype would still apply. */
  4701. #ifdef __cplusplus
  4702. extern "C"
  4703. #endif
  4704. char gelf_getehdr ();
  4705. int
  4706. main ()
  4707. {
  4708. return gelf_getehdr ();
  4709. ;
  4710. return 0;
  4711. }
  4712. _ACEOF
  4713. if ac_fn_cxx_try_link "$LINENO"; then :
  4714. ac_cv_lib_elf_gelf_getehdr=yes
  4715. else
  4716. ac_cv_lib_elf_gelf_getehdr=no
  4717. fi
  4718. rm -f core conftest.err conftest.$ac_objext \
  4719. conftest$ac_exeext conftest.$ac_ext
  4720. LIBS=$ac_check_lib_save_LIBS
  4721. fi
  4722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_gelf_getehdr" >&5
  4723. $as_echo "$ac_cv_lib_elf_gelf_getehdr" >&6; }
  4724. if test "x$ac_cv_lib_elf_gelf_getehdr" = xyes; then :
  4725. $as_echo "#define HAVE_LIBELF 1" >>build/confdefs.h
  4726. LIBELF_LIB="-Wl,-Bstatic -lelf -Wl,-Bdynamic"
  4727. LIBELF_BUNDLED=
  4728. LIBELF_INCLUDE=
  4729. fi
  4730. fi
  4731. fi
  4732. done
  4733. CPPFLAGS="${CPPFLAGS} ${LIBELF_INCLUDE}"
  4734. # Checks for header files
  4735. ac_header_dirent=no
  4736. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4737. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  4739. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  4740. if eval \${$as_ac_Header+:} false; then :
  4741. $as_echo_n "(cached) " >&6
  4742. else
  4743. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4744. /* end build/confdefs.h. */
  4745. #include <sys/types.h>
  4746. #include <$ac_hdr>
  4747. int
  4748. main ()
  4749. {
  4750. if ((DIR *) 0)
  4751. return 0;
  4752. ;
  4753. return 0;
  4754. }
  4755. _ACEOF
  4756. if ac_fn_cxx_try_compile "$LINENO"; then :
  4757. eval "$as_ac_Header=yes"
  4758. else
  4759. eval "$as_ac_Header=no"
  4760. fi
  4761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4762. fi
  4763. eval ac_res=\$$as_ac_Header
  4764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  4765. $as_echo "$ac_res" >&6; }
  4766. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4767. cat >>build/confdefs.h <<_ACEOF
  4768. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4769. _ACEOF
  4770. ac_header_dirent=$ac_hdr; break
  4771. fi
  4772. done
  4773. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4774. if test $ac_header_dirent = dirent.h; then
  4775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  4776. $as_echo_n "checking for library containing opendir... " >&6; }
  4777. if ${ac_cv_search_opendir+:} false; then :
  4778. $as_echo_n "(cached) " >&6
  4779. else
  4780. ac_func_search_save_LIBS=$LIBS
  4781. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4782. /* end build/confdefs.h. */
  4783. /* Override any GCC internal prototype to avoid an error.
  4784. Use char because int might match the return type of a GCC
  4785. builtin and then its argument prototype would still apply. */
  4786. #ifdef __cplusplus
  4787. extern "C"
  4788. #endif
  4789. char opendir ();
  4790. int
  4791. main ()
  4792. {
  4793. return opendir ();
  4794. ;
  4795. return 0;
  4796. }
  4797. _ACEOF
  4798. for ac_lib in '' dir; do
  4799. if test -z "$ac_lib"; then
  4800. ac_res="none required"
  4801. else
  4802. ac_res=-l$ac_lib
  4803. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4804. fi
  4805. if ac_fn_cxx_try_link "$LINENO"; then :
  4806. ac_cv_search_opendir=$ac_res
  4807. fi
  4808. rm -f core conftest.err conftest.$ac_objext \
  4809. conftest$ac_exeext
  4810. if ${ac_cv_search_opendir+:} false; then :
  4811. break
  4812. fi
  4813. done
  4814. if ${ac_cv_search_opendir+:} false; then :
  4815. else
  4816. ac_cv_search_opendir=no
  4817. fi
  4818. rm conftest.$ac_ext
  4819. LIBS=$ac_func_search_save_LIBS
  4820. fi
  4821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  4822. $as_echo "$ac_cv_search_opendir" >&6; }
  4823. ac_res=$ac_cv_search_opendir
  4824. if test "$ac_res" != no; then :
  4825. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4826. fi
  4827. else
  4828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  4829. $as_echo_n "checking for library containing opendir... " >&6; }
  4830. if ${ac_cv_search_opendir+:} false; then :
  4831. $as_echo_n "(cached) " >&6
  4832. else
  4833. ac_func_search_save_LIBS=$LIBS
  4834. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4835. /* end build/confdefs.h. */
  4836. /* Override any GCC internal prototype to avoid an error.
  4837. Use char because int might match the return type of a GCC
  4838. builtin and then its argument prototype would still apply. */
  4839. #ifdef __cplusplus
  4840. extern "C"
  4841. #endif
  4842. char opendir ();
  4843. int
  4844. main ()
  4845. {
  4846. return opendir ();
  4847. ;
  4848. return 0;
  4849. }
  4850. _ACEOF
  4851. for ac_lib in '' x; do
  4852. if test -z "$ac_lib"; then
  4853. ac_res="none required"
  4854. else
  4855. ac_res=-l$ac_lib
  4856. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4857. fi
  4858. if ac_fn_cxx_try_link "$LINENO"; then :
  4859. ac_cv_search_opendir=$ac_res
  4860. fi
  4861. rm -f core conftest.err conftest.$ac_objext \
  4862. conftest$ac_exeext
  4863. if ${ac_cv_search_opendir+:} false; then :
  4864. break
  4865. fi
  4866. done
  4867. if ${ac_cv_search_opendir+:} false; then :
  4868. else
  4869. ac_cv_search_opendir=no
  4870. fi
  4871. rm conftest.$ac_ext
  4872. LIBS=$ac_func_search_save_LIBS
  4873. fi
  4874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  4875. $as_echo "$ac_cv_search_opendir" >&6; }
  4876. ac_res=$ac_cv_search_opendir
  4877. if test "$ac_res" != no; then :
  4878. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4879. fi
  4880. fi
  4881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4882. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  4883. if ${ac_cv_header_sys_wait_h+:} false; then :
  4884. $as_echo_n "(cached) " >&6
  4885. else
  4886. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4887. /* end build/confdefs.h. */
  4888. #include <sys/types.h>
  4889. #include <sys/wait.h>
  4890. #ifndef WEXITSTATUS
  4891. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  4892. #endif
  4893. #ifndef WIFEXITED
  4894. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4895. #endif
  4896. int
  4897. main ()
  4898. {
  4899. int s;
  4900. wait (&s);
  4901. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4902. ;
  4903. return 0;
  4904. }
  4905. _ACEOF
  4906. if ac_fn_cxx_try_compile "$LINENO"; then :
  4907. ac_cv_header_sys_wait_h=yes
  4908. else
  4909. ac_cv_header_sys_wait_h=no
  4910. fi
  4911. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4912. fi
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  4914. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  4915. if test $ac_cv_header_sys_wait_h = yes; then
  4916. $as_echo "#define HAVE_SYS_WAIT_H 1" >>build/confdefs.h
  4917. fi
  4918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  4919. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  4920. if ${ac_cv_header_time+:} false; then :
  4921. $as_echo_n "(cached) " >&6
  4922. else
  4923. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4924. /* end build/confdefs.h. */
  4925. #include <sys/types.h>
  4926. #include <sys/time.h>
  4927. #include <time.h>
  4928. int
  4929. main ()
  4930. {
  4931. if ((struct tm *) 0)
  4932. return 0;
  4933. ;
  4934. return 0;
  4935. }
  4936. _ACEOF
  4937. if ac_fn_cxx_try_compile "$LINENO"; then :
  4938. ac_cv_header_time=yes
  4939. else
  4940. ac_cv_header_time=no
  4941. fi
  4942. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4943. fi
  4944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  4945. $as_echo "$ac_cv_header_time" >&6; }
  4946. if test $ac_cv_header_time = yes; then
  4947. $as_echo "#define TIME_WITH_SYS_TIME 1" >>build/confdefs.h
  4948. fi
  4949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  4950. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  4951. if ${ac_cv_header_stat_broken+:} false; then :
  4952. $as_echo_n "(cached) " >&6
  4953. else
  4954. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4955. /* end build/confdefs.h. */
  4956. #include <sys/types.h>
  4957. #include <sys/stat.h>
  4958. #if defined S_ISBLK && defined S_IFDIR
  4959. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  4960. #endif
  4961. #if defined S_ISBLK && defined S_IFCHR
  4962. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  4963. #endif
  4964. #if defined S_ISLNK && defined S_IFREG
  4965. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  4966. #endif
  4967. #if defined S_ISSOCK && defined S_IFREG
  4968. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  4969. #endif
  4970. _ACEOF
  4971. if ac_fn_cxx_try_compile "$LINENO"; then :
  4972. ac_cv_header_stat_broken=no
  4973. else
  4974. ac_cv_header_stat_broken=yes
  4975. fi
  4976. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4977. fi
  4978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  4979. $as_echo "$ac_cv_header_stat_broken" >&6; }
  4980. if test $ac_cv_header_stat_broken = yes; then
  4981. $as_echo "#define STAT_MACROS_BROKEN 1" >>build/confdefs.h
  4982. fi
  4983. #checkpoint
  4984. cat >confcache <<\_ACEOF
  4985. # This file is a shell script that caches the results of configure
  4986. # tests run on this system so they can be shared between configure
  4987. # scripts and configure runs, see configure's option --config-cache.
  4988. # It is not useful on other systems. If it contains results you don't
  4989. # want to keep, you may remove or edit it.
  4990. #
  4991. # build/config.status only pays attention to the cache file if you give it
  4992. # the --recheck option to rerun configure.
  4993. #
  4994. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4995. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4996. # following values.
  4997. _ACEOF
  4998. # The following way of writing the cache mishandles newlines in values,
  4999. # but we know of no workaround that is simple, portable, and efficient.
  5000. # So, we kill variables containing newlines.
  5001. # Ultrix sh set writes to stderr and can't be redirected directly,
  5002. # and sets the high bit in the cache file unless we assign to the vars.
  5003. (
  5004. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5005. eval ac_val=\$$ac_var
  5006. case $ac_val in #(
  5007. *${as_nl}*)
  5008. case $ac_var in #(
  5009. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5010. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5011. esac
  5012. case $ac_var in #(
  5013. _ | IFS | as_nl) ;; #(
  5014. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5015. *) { eval $ac_var=; unset $ac_var;} ;;
  5016. esac ;;
  5017. esac
  5018. done
  5019. (set) 2>&1 |
  5020. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5021. *${as_nl}ac_space=\ *)
  5022. # `set' does not quote correctly, so add quotes: double-quote
  5023. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5024. sed -n \
  5025. "s/'/'\\\\''/g;
  5026. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5027. ;; #(
  5028. *)
  5029. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5030. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5031. ;;
  5032. esac |
  5033. sort
  5034. ) |
  5035. sed '
  5036. /^ac_cv_env_/b end
  5037. t clear
  5038. :clear
  5039. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5040. t end
  5041. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5042. :end' >>confcache
  5043. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5044. if test -w "$cache_file"; then
  5045. if test "x$cache_file" != "x/dev/null"; then
  5046. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5047. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5048. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5049. cat confcache >"$cache_file"
  5050. else
  5051. case $cache_file in #(
  5052. */* | ?:*)
  5053. mv -f confcache "$cache_file"$$ &&
  5054. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5055. *)
  5056. mv -f confcache "$cache_file" ;;
  5057. esac
  5058. fi
  5059. fi
  5060. else
  5061. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5062. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5063. fi
  5064. fi
  5065. rm -f confcache
  5066. for ac_header in stdarg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5067. do :
  5068. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5069. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5070. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5071. cat >>build/confdefs.h <<_ACEOF
  5072. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5073. _ACEOF
  5074. fi
  5075. done
  5076. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h sys/ptrace.h paths.h sys/prctl.h
  5077. do :
  5078. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5079. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5080. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5081. cat >>build/confdefs.h <<_ACEOF
  5082. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5083. _ACEOF
  5084. fi
  5085. done
  5086. #checkpoint
  5087. cat >confcache <<\_ACEOF
  5088. # This file is a shell script that caches the results of configure
  5089. # tests run on this system so they can be shared between configure
  5090. # scripts and configure runs, see configure's option --config-cache.
  5091. # It is not useful on other systems. If it contains results you don't
  5092. # want to keep, you may remove or edit it.
  5093. #
  5094. # build/config.status only pays attention to the cache file if you give it
  5095. # the --recheck option to rerun configure.
  5096. #
  5097. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5098. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5099. # following values.
  5100. _ACEOF
  5101. # The following way of writing the cache mishandles newlines in values,
  5102. # but we know of no workaround that is simple, portable, and efficient.
  5103. # So, we kill variables containing newlines.
  5104. # Ultrix sh set writes to stderr and can't be redirected directly,
  5105. # and sets the high bit in the cache file unless we assign to the vars.
  5106. (
  5107. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5108. eval ac_val=\$$ac_var
  5109. case $ac_val in #(
  5110. *${as_nl}*)
  5111. case $ac_var in #(
  5112. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5113. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5114. esac
  5115. case $ac_var in #(
  5116. _ | IFS | as_nl) ;; #(
  5117. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5118. *) { eval $ac_var=; unset $ac_var;} ;;
  5119. esac ;;
  5120. esac
  5121. done
  5122. (set) 2>&1 |
  5123. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5124. *${as_nl}ac_space=\ *)
  5125. # `set' does not quote correctly, so add quotes: double-quote
  5126. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5127. sed -n \
  5128. "s/'/'\\\\''/g;
  5129. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5130. ;; #(
  5131. *)
  5132. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5133. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5134. ;;
  5135. esac |
  5136. sort
  5137. ) |
  5138. sed '
  5139. /^ac_cv_env_/b end
  5140. t clear
  5141. :clear
  5142. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5143. t end
  5144. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5145. :end' >>confcache
  5146. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5147. if test -w "$cache_file"; then
  5148. if test "x$cache_file" != "x/dev/null"; then
  5149. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5150. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5151. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5152. cat confcache >"$cache_file"
  5153. else
  5154. case $cache_file in #(
  5155. */* | ?:*)
  5156. mv -f confcache "$cache_file"$$ &&
  5157. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5158. *)
  5159. mv -f confcache "$cache_file" ;;
  5160. esac
  5161. fi
  5162. fi
  5163. else
  5164. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5165. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5166. fi
  5167. fi
  5168. rm -f confcache
  5169. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5170. #AC_CHECK_HEADERS(zlib.h)
  5171. #EGG_CHECK_ZLIB
  5172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to OpenSSL" >&5
  5173. $as_echo_n "checking for path to OpenSSL... " >&6; }
  5174. # Check whether --with-openssl was given.
  5175. if test "${with_openssl+set}" = set; then :
  5176. withval=$with_openssl; with_openssl_path=$withval
  5177. else
  5178. with_openssl_path=auto
  5179. fi
  5180. cf_openssl_basedir=""
  5181. if test "$with_openssl_path" != "auto"; then
  5182. cf_openssl_basedir="`echo ${with_openssl_path} | sed 's/\/$//'`"
  5183. else
  5184. for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do
  5185. if test -f "${dirs}/include/openssl/opensslv.h" && test -f "${dirs}/lib/libssl.so"; then
  5186. cf_openssl_basedir="${dirs}"
  5187. break
  5188. fi
  5189. done
  5190. unset dirs
  5191. fi
  5192. if test ! -z "$cf_openssl_basedir"; then
  5193. if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" && test -f "${cf_openssl_basedir}/lib/libssl.so"; then
  5194. SSL_INCLUDES="-I${cf_openssl_basedir}/include"
  5195. SSL_LIBS="-L${cf_openssl_basedir}/lib"
  5196. else
  5197. cf_openssl_basedir=""
  5198. fi
  5199. else
  5200. if test -f "/usr/include/openssl/opensslv.h" ; then
  5201. cf_openssl_basedir="/usr"
  5202. fi
  5203. fi
  5204. if test ! -z "$cf_openssl_basedir"; then
  5205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
  5206. $as_echo "$cf_openssl_basedir" >&6; }
  5207. else
  5208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5209. $as_echo "not found" >&6; }
  5210. as_fn_error 1 "OpenSSL is required." "$LINENO" 5
  5211. fi
  5212. unset cf_openssl_basedir
  5213. save_CXX="$CXX"
  5214. CXX="$CXX $SSL_INCLUDES"
  5215. save_LIBS="$LIBS"
  5216. LIBS="$LIBS $SSL_LIBS"
  5217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
  5218. $as_echo_n "checking for OpenSSL version... " >&6; }
  5219. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5220. /* end build/confdefs.h. */
  5221. #include <openssl/opensslv.h>
  5222. int
  5223. main ()
  5224. {
  5225. #if !defined(OPENSSL_VERSION_NUMBER)
  5226. #error "Missing openssl version"
  5227. #endif
  5228. #if (OPENSSL_VERSION_NUMBER < 0x0090800f)
  5229. #error "Old/Insecure OpenSSL version " OPENSSL_VERSION_TEXT
  5230. #endif
  5231. ;
  5232. return 0;
  5233. }
  5234. _ACEOF
  5235. if ac_fn_cxx_try_compile "$LINENO"; then :
  5236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  5237. $as_echo "OK" >&6; }
  5238. else
  5239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old." >&5
  5240. $as_echo "too old." >&6; }
  5241. as_fn_error 1 "OpenSSL version is too old. Must be 0.9.8f+" "$LINENO" 5
  5242. fi
  5243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5244. CXX="$CXX $SSL_LIBS"
  5245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AES_encrypt in -lcrypto" >&5
  5246. $as_echo_n "checking for AES_encrypt in -lcrypto... " >&6; }
  5247. if ${ac_cv_lib_crypto_AES_encrypt+:} false; then :
  5248. $as_echo_n "(cached) " >&6
  5249. else
  5250. ac_check_lib_save_LIBS=$LIBS
  5251. LIBS="-lcrypto $LIBS"
  5252. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5253. /* end build/confdefs.h. */
  5254. /* Override any GCC internal prototype to avoid an error.
  5255. Use char because int might match the return type of a GCC
  5256. builtin and then its argument prototype would still apply. */
  5257. #ifdef __cplusplus
  5258. extern "C"
  5259. #endif
  5260. char AES_encrypt ();
  5261. int
  5262. main ()
  5263. {
  5264. return AES_encrypt ();
  5265. ;
  5266. return 0;
  5267. }
  5268. _ACEOF
  5269. if ac_fn_cxx_try_link "$LINENO"; then :
  5270. ac_cv_lib_crypto_AES_encrypt=yes
  5271. else
  5272. ac_cv_lib_crypto_AES_encrypt=no
  5273. fi
  5274. rm -f core conftest.err conftest.$ac_objext \
  5275. conftest$ac_exeext conftest.$ac_ext
  5276. LIBS=$ac_check_lib_save_LIBS
  5277. fi
  5278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_AES_encrypt" >&5
  5279. $as_echo "$ac_cv_lib_crypto_AES_encrypt" >&6; }
  5280. if test "x$ac_cv_lib_crypto_AES_encrypt" = xyes; then :
  5281. if test "$USE_STATIC" = "yes"; then
  5282. SSL_LIBS="$SSL_LIBS -Wl,-Bstatic -lcrypto -Wl,-Bdynamic"
  5283. else
  5284. SSL_LIBS="$SSL_LIBS -lcrypto"
  5285. fi
  5286. else
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found." >&5
  5288. $as_echo "not found." >&6; }
  5289. as_fn_error 1 "Libcrypto/openssl is required." "$LINENO" 5
  5290. fi
  5291. CXX="$save_CXX"
  5292. LIBS="$save_LIBS"
  5293. cat >>build/confdefs.h <<_ACEOF
  5294. #define EGG_SSL_EXT 1
  5295. _ACEOF
  5296. # TCL checks
  5297. # Tcl version to recommend if no Tcl is found, and the site where it can be
  5298. # found for download.
  5299. tclrecommendver="8.5.X"
  5300. tclrecommendsite="ftp://tcl.activestate.com/pub/tcl/tcl8_5/"
  5301. # Tcl library filename prefixes, suffixes, and search paths.
  5302. tcllibnames="tcl8.6 tcl86 tcl8.5 tcl85 tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 \
  5303. tcl8.1 tcl81 tcl8.0 tcl80 tcl tcl7.6 tcl76 tcl7.5 tcl75 \
  5304. tcl7.4 tcl74 tcl7.3 tcl73 tcl7.2 tcl72 tcl7.1 tcl71 \
  5305. tcl7.0 tcl70"
  5306. tcllibextensions=".so .so.1 .so.1.0 .so.1.1 .so.1.2 .dll .dylib .sl .a"
  5307. tcllibpaths="$HOME/lib $HOME/tcl/lib \
  5308. /usr/local/lib /usr/lib /lib /lib64 /usr/lib64 \
  5309. /usr/local/lib/tcl8.6 /usr/lib/tcl8.6 \
  5310. /usr/local/lib/tcl8.5 /usr/lib/tcl8.5 \
  5311. /usr/local/lib/tcl8.4 /usr/lib/tcl8.4 \
  5312. /usr/local/lib/tcl8.3 /usr/lib/tcl8.3 \
  5313. /usr/local/pkgs/tcl/lib /sys/lib /usr/pkg/lib \
  5314. /usr/i486-linuxaout/lib /beos/system/lib $HOME"
  5315. # Tcl header filenames and search paths.
  5316. tclheadernames="tcl.h"
  5317. tclheaderpaths="$HOME/include $HOME/tcl/include \
  5318. /usr/local/include /usr/include \
  5319. /usr/local/include/tcl8.6 /usr/include/tcl8.6 \
  5320. /usr/local/include/tcl8.5 /usr/include/tcl8.5 \
  5321. /usr/local/include/tcl8.4 /usr/include/tcl8.4 \
  5322. /usr/local/include/tcl8.3 /usr/include/tcl8.3 \
  5323. /usr/local/pkgs/tcl/include /sys/include \
  5324. /usr/pkg/lib /beos/system/include /beos/devel/include $HOME"
  5325. # Misc Tcl checks.
  5326. # Check whether --with-tcllib was given.
  5327. if test "${with_tcllib+set}" = set; then :
  5328. withval=$with_tcllib; tcllibname="$withval"
  5329. fi
  5330. # Check whether --with-tclinc was given.
  5331. if test "${with_tclinc+set}" = set; then :
  5332. withval=$with_tclinc; tclincname="$withval"
  5333. fi
  5334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TCL Script is enabled" >&5
  5335. $as_echo_n "checking whether TCL Script is enabled... " >&6; }
  5336. # Check whether --enable-script-tcl was given.
  5337. if test "${enable_script_tcl+set}" = set; then :
  5338. enableval=$enable_script_tcl;
  5339. enable_script_tcl=$enableval
  5340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  5341. $as_echo "$enableval" >&6; }
  5342. else
  5343. # default if not given is ENABLED
  5344. if test "x$enableval" = "x"; then
  5345. enableval="yes"
  5346. fi
  5347. enable_script_tcl=$enableval
  5348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  5349. $as_echo "$enableval" >&6; }
  5350. $as_echo "#define USE_SCRIPT_TCL 1" >>build/confdefs.h
  5351. fi
  5352. WARN=0
  5353. # Make sure either both or neither $tcllibname and $tclincname are set
  5354. if test "x$tcllibname" != x; then
  5355. if test "x$tclincname" = x; then
  5356. WARN=1
  5357. tcllibname=""
  5358. TCLLIB=""
  5359. TCLINC=""
  5360. fi
  5361. else
  5362. if test "x$tclincname" != x; then
  5363. WARN=1
  5364. tclincname=""
  5365. TCLLIB=""
  5366. TCLINC=""
  5367. fi
  5368. fi
  5369. if test "$WARN" = 1; then
  5370. cat << 'EOF' >&2
  5371. configure: WARNING:
  5372. You must specify both --with-tcllib and --with-tclinc for either to work.
  5373. configure will now attempt to autodetect both the Tcl library and header.
  5374. EOF
  5375. fi
  5376. WARN=0
  5377. # Make sure either both or neither $TCLLIB and $TCLINC are set
  5378. if test "x$TCLLIB" != x; then
  5379. if test "x$TCLINC" = x; then
  5380. WARN=1
  5381. WVAR1=TCLLIB
  5382. WVAR2=TCLINC
  5383. TCLLIB=""
  5384. fi
  5385. else
  5386. if test "x$TCLINC" != x; then
  5387. WARN=1
  5388. WVAR1=TCLINC
  5389. WVAR2=TCLLIB
  5390. TCLINC=""
  5391. fi
  5392. fi
  5393. if test "$WARN" = 1; then
  5394. cat << EOF >&2
  5395. configure: WARNING:
  5396. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  5397. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5398. configure will now attempt to autodetect both the Tcl library and header.
  5399. EOF
  5400. fi
  5401. # Look for Tcl library: if $tcllibname is set, check there first
  5402. if test "x$tcllibname" != x; then
  5403. if test -f "$tcllibname" && test -r "$tcllibname"; then
  5404. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  5405. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  5406. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  5407. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  5408. else
  5409. cat << EOF >&2
  5410. configure: WARNING:
  5411. The file '$tcllibname' given to option --with-tcllib is not valid.
  5412. configure will now attempt to autodetect both the Tcl library and header.
  5413. EOF
  5414. tcllibname=""
  5415. tclincname=""
  5416. TCLLIB=""
  5417. TCLLIBFN=""
  5418. TCLINC=""
  5419. TCLINCFN=""
  5420. fi
  5421. fi
  5422. # Look for Tcl header: if $tclincname is set, check there first
  5423. if test "x$tclincname" != x; then
  5424. if test -f "$tclincname" && test -r "$tclincname"; then
  5425. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  5426. TCLINCFN=`$BASENAME $tclincname`
  5427. else
  5428. cat << EOF >&2
  5429. configure: WARNING:
  5430. The file '$tclincname' given to option --with-tclinc is not valid.
  5431. configure will now attempt to autodetect both the Tcl library and header.
  5432. EOF
  5433. tcllibname=""
  5434. tclincname=""
  5435. TCLLIB=""
  5436. TCLLIBFN=""
  5437. TCLINC=""
  5438. TCLINCFN=""
  5439. fi
  5440. fi
  5441. # Look for Tcl library: if $TCLLIB is set, check there first
  5442. if test "x$TCLLIBFN" = x && test "x$TCLLIB" != x; then
  5443. if test -d "$TCLLIB"; then
  5444. for tcllibfns in $tcllibnames; do
  5445. for tcllibext in $tcllibextensions; do
  5446. if test -r "${TCLLIB}/lib${tcllibfns}${tcllibext}"; then
  5447. TCLLIBFN="${tcllibfns}${tcllibext}"
  5448. TCLLIBEXT="$tcllibext"
  5449. TCLLIBFNS="$tcllibfns"
  5450. break 2
  5451. fi
  5452. done
  5453. done
  5454. fi
  5455. if test "x$TCLLIBFN" = x; then
  5456. cat << 'EOF' >&2
  5457. configure: WARNING:
  5458. Environment variable TCLLIB was set, but incorrectly.
  5459. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5460. configure will now attempt to autodetect both the Tcl library and header.
  5461. EOF
  5462. TCLLIB=""
  5463. TCLLIBFN=""
  5464. TCLINC=""
  5465. TCLINCFN=""
  5466. fi
  5467. fi
  5468. # Look for Tcl header: if $TCLINC is set, check there first
  5469. if test "x$TCLINCFN" = x && test "x$TCLINC" != x; then
  5470. if test -d "$TCLINC"; then
  5471. for tclheaderfn in $tclheadernames; do
  5472. if test -r "${TCLINC}/${tclheaderfn}"; then
  5473. TCLINCFN="$tclheaderfn"
  5474. break
  5475. fi
  5476. done
  5477. fi
  5478. if test "x$TCLINCFN" = x; then
  5479. cat << 'EOF' >&2
  5480. configure: WARNING:
  5481. Environment variable TCLINC was set, but incorrectly.
  5482. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5483. configure will now attempt to autodetect both the Tcl library and header.
  5484. EOF
  5485. TCLLIB=""
  5486. TCLLIBFN=""
  5487. TCLINC=""
  5488. TCLINCFN=""
  5489. fi
  5490. fi
  5491. if test "$enable_script_tcl" = "yes"; then
  5492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library" >&5
  5493. $as_echo_n "checking for Tcl library... " >&6; }
  5494. # Attempt autodetect for $TCLLIBFN if it's not set
  5495. if test "x$TCLLIBFN" != x; then
  5496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${TCLLIB}/lib${TCLLIBFN}" >&5
  5497. $as_echo "using ${TCLLIB}/lib${TCLLIBFN}" >&6; }
  5498. else
  5499. for tcllibfns in $tcllibnames; do
  5500. for tcllibext in $tcllibextensions; do
  5501. for tcllibpath in $tcllibpaths; do
  5502. if test -r "${tcllibpath}/lib${tcllibfns}${tcllibext}"; then
  5503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tcllibpath}/lib${tcllibfns}${tcllibext}" >&5
  5504. $as_echo "found ${tcllibpath}/lib${tcllibfns}${tcllibext}" >&6; }
  5505. TCLLIB="$tcllibpath"
  5506. TCLLIBFN="${tcllibfns}${tcllibext}"
  5507. TCLLIBEXT="$tcllibext"
  5508. TCLLIBFNS="$tcllibfns"
  5509. break 3
  5510. fi
  5511. done
  5512. done
  5513. done
  5514. fi
  5515. # Show if $TCLLIBFN wasn't found
  5516. if test "x$TCLLIBFN" = x; then
  5517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5518. $as_echo "not found" >&6; }
  5519. fi
  5520. fi
  5521. if test "$enable_script_tcl" = "yes"; then
  5522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl header" >&5
  5523. $as_echo_n "checking for Tcl header... " >&6; }
  5524. # Attempt autodetect for $TCLINCFN if it's not set
  5525. if test "x$TCLINCFN" != x; then
  5526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${TCLINC}/${TCLINCFN}" >&5
  5527. $as_echo "using ${TCLINC}/${TCLINCFN}" >&6; }
  5528. else
  5529. for tclheaderpath in $tclheaderpaths; do
  5530. for tclheaderfn in $tclheadernames; do
  5531. if test -r "${tclheaderpath}/${tclheaderfn}"; then
  5532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tclheaderpath}/${tclheaderfn}" >&5
  5533. $as_echo "found ${tclheaderpath}/${tclheaderfn}" >&6; }
  5534. TCLINC="$tclheaderpath"
  5535. TCLINCFN="$tclheaderfn"
  5536. break 2
  5537. fi
  5538. done
  5539. done
  5540. # FreeBSD hack ...
  5541. if test "x$TCLINCFN" = x; then
  5542. for tcllibfns in $tcllibnames; do
  5543. for tclheaderpath in $tclheaderpaths; do
  5544. for tclheaderfn in $tclheadernames; do
  5545. if test -r "${tclheaderpath}/${tcllibfns}/${tclheaderfn}"; then
  5546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}" >&5
  5547. $as_echo "found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}" >&6; }
  5548. TCLINC="${tclheaderpath}/${tcllibfns}"
  5549. TCLINCFN="$tclheaderfn"
  5550. break 3
  5551. fi
  5552. done
  5553. done
  5554. done
  5555. fi
  5556. fi
  5557. TCL_INCLUDES=""
  5558. if ! test "x$TCLINC" = x; then
  5559. TCL_INCLUDES="-I$TCLINC"
  5560. fi
  5561. if test "x$TCLINCFN" = x; then
  5562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5563. $as_echo "not found" >&6; }
  5564. fi
  5565. fi
  5566. if test "$enable_script_tcl" = "yes"; then
  5567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Tcl system has changed" >&5
  5568. $as_echo_n "checking whether the Tcl system has changed... " >&6; }
  5569. egg_tcl_changed="yes"
  5570. egg_tcl_id="${TCLLIB}:${TCLLIBFN}:${TCLINC}:${TCLINCFN}"
  5571. if test "$egg_tcl_id" != ":::"; then
  5572. egg_tcl_cached="yes"
  5573. if ${egg_cv_var_tcl_id+:} false; then :
  5574. $as_echo_n "(cached) " >&6
  5575. else
  5576. egg_cv_var_tcl_id="$egg_tcl_id"
  5577. egg_tcl_cached="no"
  5578. fi
  5579. if test "$egg_tcl_cached" = yes; then
  5580. if test "x$egg_cv_var_tcl_id" = "x$egg_tcl_id"; then
  5581. egg_tcl_changed="no"
  5582. else
  5583. egg_cv_var_tcl_id="$egg_tcl_id"
  5584. fi
  5585. fi
  5586. fi
  5587. if test "$egg_tcl_changed" = yes; then
  5588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5589. $as_echo "yes" >&6; }
  5590. else
  5591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5592. $as_echo "no" >&6; }
  5593. fi
  5594. fi
  5595. if test "$enable_script_tcl" = "yes"; then
  5596. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  5597. TCL_FOUND=0
  5598. if test "x$TCLLIBFN" != x && test "x$TCLINCFN" != x; then
  5599. TCL_FOUND=1
  5600. # Check Tcl's version
  5601. if test "$egg_tcl_changed" = yes; then
  5602. unset egg_cv_var_tcl_version
  5603. fi
  5604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl version" >&5
  5605. $as_echo_n "checking for Tcl version... " >&6; }
  5606. if ${egg_cv_var_tcl_version+:} false; then :
  5607. $as_echo_n "(cached) " >&6
  5608. else
  5609. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`
  5610. fi
  5611. if test "x$egg_cv_var_tcl_version" != x; then
  5612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_tcl_version" >&5
  5613. $as_echo "$egg_cv_var_tcl_version" >&6; }
  5614. else
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5616. $as_echo "not found" >&6; }
  5617. TCL_FOUND=0
  5618. fi
  5619. # Check Tcl's patch level (if available)
  5620. if test "$egg_tcl_changed" = yes; then
  5621. unset egg_cv_var_tcl_patch_level
  5622. fi
  5623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl patch level" >&5
  5624. $as_echo_n "checking for Tcl patch level... " >&6; }
  5625. if ${egg_cv_var_tcl_patch_level+:} false; then :
  5626. $as_echo_n "(cached) " >&6
  5627. else
  5628. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`"
  5629. fi
  5630. if test "x$egg_cv_var_tcl_patch_level" != x; then
  5631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_tcl_patch_level" >&5
  5632. $as_echo "$egg_cv_var_tcl_patch_level" >&6; }
  5633. else
  5634. egg_cv_var_tcl_patch_level="unknown"
  5635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
  5636. $as_echo "unknown" >&6; }
  5637. fi
  5638. fi
  5639. # Check if we found Tcl's version
  5640. if test "$TCL_FOUND" = 0; then
  5641. cat << 'EOF' >&2
  5642. configure: error:
  5643. Tcl cannot be found on this system.
  5644. Tcl is not required. Wraith will be compiled without TCL support. If you
  5645. already have Tcl installed on this system, please specify the path by
  5646. rerunning ./configure using the --with-tcllib='/path/to/libtcl.so' and
  5647. --with-tclinc='/path/to/tcl.h' options.
  5648. EOF
  5649. enable_script_tcl="no"
  5650. else
  5651. $as_echo "#define HAVE_LIBTCL 1" >>build/confdefs.h
  5652. fi
  5653. fi
  5654. if test "$enable_script_tcl" = "yes"; then
  5655. # Is this version of Tcl too old for us to use ?
  5656. TCL_VER_PRE70=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 7) print "yes"; else print "no"}'`
  5657. if test "$TCL_VER_PRE70" = yes; then
  5658. cat << EOF >&2
  5659. configure: error:
  5660. Your Tcl version is much too old for Wraith to use. You should
  5661. download and compile a more recent version. The most reliable
  5662. current version is $tclrecommendver and can be downloaded from
  5663. ${tclrecommendsite}.
  5664. See doc/COMPILE-GUIDE's 'Tcl Detection and Installation' section
  5665. for more information.
  5666. EOF
  5667. exit 1
  5668. fi
  5669. fi
  5670. # Set variables for Tcl library tests
  5671. TCL_TEST_LIB="$TCLLIBFNS"
  5672. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  5673. if test "x$ac_cv_lib_pthread" != x; then
  5674. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  5675. fi
  5676. if test "$enable_script_tcl" = "yes"; then
  5677. if test "$egg_tcl_changed" = yes; then
  5678. unset egg_cv_var_tcl_free
  5679. fi
  5680. # Check for Tcl_Free()
  5681. as_ac_Lib=`$as_echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_Free" | $as_tr_sh`
  5682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  5683. $as_echo_n "checking for Tcl_Free in -l$TCL_TEST_LIB... " >&6; }
  5684. if eval \${$as_ac_Lib+:} false; then :
  5685. $as_echo_n "(cached) " >&6
  5686. else
  5687. ac_check_lib_save_LIBS=$LIBS
  5688. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  5689. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5690. /* end build/confdefs.h. */
  5691. /* Override any GCC internal prototype to avoid an error.
  5692. Use char because int might match the return type of a GCC
  5693. builtin and then its argument prototype would still apply. */
  5694. #ifdef __cplusplus
  5695. extern "C"
  5696. #endif
  5697. char Tcl_Free ();
  5698. int
  5699. main ()
  5700. {
  5701. return Tcl_Free ();
  5702. ;
  5703. return 0;
  5704. }
  5705. _ACEOF
  5706. if ac_fn_cxx_try_link "$LINENO"; then :
  5707. eval "$as_ac_Lib=yes"
  5708. else
  5709. eval "$as_ac_Lib=no"
  5710. fi
  5711. rm -f core conftest.err conftest.$ac_objext \
  5712. conftest$ac_exeext conftest.$ac_ext
  5713. LIBS=$ac_check_lib_save_LIBS
  5714. fi
  5715. eval ac_res=\$$as_ac_Lib
  5716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5717. $as_echo "$ac_res" >&6; }
  5718. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  5719. egg_cv_var_tcl_free="yes"
  5720. else
  5721. egg_cv_var_tcl_free="no"
  5722. fi
  5723. if test "$egg_cv_var_tcl_free" = yes; then
  5724. $as_echo "#define HAVE_TCL_FREE 1" >>build/confdefs.h
  5725. fi
  5726. fi
  5727. #EGG_TCL_CHECK_GETCURRENTTHREAD
  5728. #EGG_TCL_CHECK_GETTHREADDATA
  5729. if test "$enable_script_tcl" = "yes"; then
  5730. if test "$egg_tcl_changed" = yes; then
  5731. unset egg_cv_var_tcl_setnotifier
  5732. fi
  5733. # Check for Tcl_SetNotifier()
  5734. as_ac_Lib=`$as_echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_SetNotifier" | $as_tr_sh`
  5735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_SetNotifier in -l$TCL_TEST_LIB" >&5
  5736. $as_echo_n "checking for Tcl_SetNotifier in -l$TCL_TEST_LIB... " >&6; }
  5737. if eval \${$as_ac_Lib+:} false; then :
  5738. $as_echo_n "(cached) " >&6
  5739. else
  5740. ac_check_lib_save_LIBS=$LIBS
  5741. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  5742. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5743. /* end build/confdefs.h. */
  5744. /* Override any GCC internal prototype to avoid an error.
  5745. Use char because int might match the return type of a GCC
  5746. builtin and then its argument prototype would still apply. */
  5747. #ifdef __cplusplus
  5748. extern "C"
  5749. #endif
  5750. char Tcl_SetNotifier ();
  5751. int
  5752. main ()
  5753. {
  5754. return Tcl_SetNotifier ();
  5755. ;
  5756. return 0;
  5757. }
  5758. _ACEOF
  5759. if ac_fn_cxx_try_link "$LINENO"; then :
  5760. eval "$as_ac_Lib=yes"
  5761. else
  5762. eval "$as_ac_Lib=no"
  5763. fi
  5764. rm -f core conftest.err conftest.$ac_objext \
  5765. conftest$ac_exeext conftest.$ac_ext
  5766. LIBS=$ac_check_lib_save_LIBS
  5767. fi
  5768. eval ac_res=\$$as_ac_Lib
  5769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5770. $as_echo "$ac_res" >&6; }
  5771. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  5772. egg_cv_var_tcl_setnotifier="yes"
  5773. else
  5774. egg_cv_var_tcl_setnotifier="no"
  5775. fi
  5776. if test "$egg_cv_var_tcl_setnotifier" = yes; then
  5777. $as_echo "#define HAVE_TCL_SETNOTIFIER 1" >>build/confdefs.h
  5778. fi
  5779. fi
  5780. if test "$enable_script_tcl" = "yes"; then
  5781. if test "$EGG_CYGWIN" = yes; then
  5782. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5783. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  5784. else
  5785. if test "$TCLLIBEXT" != ".a"; then
  5786. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5787. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  5788. else
  5789. # Set default make as static for unshared Tcl library
  5790. if test "$DEFAULT_MAKE" != static; then
  5791. cat << 'EOF' >&2
  5792. configure: WARNING:
  5793. Your Tcl library is not a shared lib.
  5794. configure will now set default make type to static.
  5795. EOF
  5796. DEFAULT_MAKE="static"
  5797. fi
  5798. # Are we using a pre 7.4 Tcl version ?
  5799. 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"}'`
  5800. if test "$TCL_VER_PRE74" = no; then
  5801. # Was the --with-tcllib option given ?
  5802. if test "x$tcllibname" != x; then
  5803. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5804. TCL_LIBS="${TCLLIB}/lib${TCLLIBFN} $EGG_MATH_LIB"
  5805. else
  5806. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5807. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  5808. fi
  5809. else
  5810. cat << EOF >&2
  5811. configure: WARNING:
  5812. Your Tcl version ($egg_cv_var_tcl_version) is older than 7.4.
  5813. There are known problems, but we will attempt to work around them.
  5814. EOF
  5815. TCL_REQS="libtcle.a"
  5816. TCL_LIBS="-L`pwd` -ltcle $EGG_MATH_LIB"
  5817. fi
  5818. fi
  5819. fi
  5820. fi
  5821. cat >confcache <<\_ACEOF
  5822. # This file is a shell script that caches the results of configure
  5823. # tests run on this system so they can be shared between configure
  5824. # scripts and configure runs, see configure's option --config-cache.
  5825. # It is not useful on other systems. If it contains results you don't
  5826. # want to keep, you may remove or edit it.
  5827. #
  5828. # build/config.status only pays attention to the cache file if you give it
  5829. # the --recheck option to rerun configure.
  5830. #
  5831. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5832. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5833. # following values.
  5834. _ACEOF
  5835. # The following way of writing the cache mishandles newlines in values,
  5836. # but we know of no workaround that is simple, portable, and efficient.
  5837. # So, we kill variables containing newlines.
  5838. # Ultrix sh set writes to stderr and can't be redirected directly,
  5839. # and sets the high bit in the cache file unless we assign to the vars.
  5840. (
  5841. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5842. eval ac_val=\$$ac_var
  5843. case $ac_val in #(
  5844. *${as_nl}*)
  5845. case $ac_var in #(
  5846. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5847. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5848. esac
  5849. case $ac_var in #(
  5850. _ | IFS | as_nl) ;; #(
  5851. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5852. *) { eval $ac_var=; unset $ac_var;} ;;
  5853. esac ;;
  5854. esac
  5855. done
  5856. (set) 2>&1 |
  5857. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5858. *${as_nl}ac_space=\ *)
  5859. # `set' does not quote correctly, so add quotes: double-quote
  5860. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5861. sed -n \
  5862. "s/'/'\\\\''/g;
  5863. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5864. ;; #(
  5865. *)
  5866. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5867. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5868. ;;
  5869. esac |
  5870. sort
  5871. ) |
  5872. sed '
  5873. /^ac_cv_env_/b end
  5874. t clear
  5875. :clear
  5876. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5877. t end
  5878. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5879. :end' >>confcache
  5880. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5881. if test -w "$cache_file"; then
  5882. if test "x$cache_file" != "x/dev/null"; then
  5883. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5884. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5885. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5886. cat confcache >"$cache_file"
  5887. else
  5888. case $cache_file in #(
  5889. */* | ?:*)
  5890. mv -f confcache "$cache_file"$$ &&
  5891. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5892. *)
  5893. mv -f confcache "$cache_file" ;;
  5894. esac
  5895. fi
  5896. fi
  5897. else
  5898. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5899. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5900. fi
  5901. fi
  5902. rm -f confcache
  5903. #AC_SUBST(ZLIB)dnl
  5904. # Checks for typedefs, structures, and compiler characteristics
  5905. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  5906. if test "x$ac_cv_type_pid_t" = xyes; then :
  5907. else
  5908. cat >>build/confdefs.h <<_ACEOF
  5909. #define pid_t int
  5910. _ACEOF
  5911. fi
  5912. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  5913. if test "x$ac_cv_type_size_t" = xyes; then :
  5914. else
  5915. cat >>build/confdefs.h <<_ACEOF
  5916. #define size_t unsigned int
  5917. _ACEOF
  5918. fi
  5919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  5920. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  5921. if ${ac_cv_type_uid_t+:} false; then :
  5922. $as_echo_n "(cached) " >&6
  5923. else
  5924. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5925. /* end build/confdefs.h. */
  5926. #include <sys/types.h>
  5927. _ACEOF
  5928. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5929. $EGREP "uid_t" >/dev/null 2>&1; then :
  5930. ac_cv_type_uid_t=yes
  5931. else
  5932. ac_cv_type_uid_t=no
  5933. fi
  5934. rm -f conftest*
  5935. fi
  5936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  5937. $as_echo "$ac_cv_type_uid_t" >&6; }
  5938. if test $ac_cv_type_uid_t = no; then
  5939. $as_echo "#define uid_t int" >>build/confdefs.h
  5940. $as_echo "#define gid_t int" >>build/confdefs.h
  5941. fi
  5942. #AC_C_CONST
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  5944. $as_echo_n "checking for working volatile... " >&6; }
  5945. if ${ac_cv_c_volatile+:} false; then :
  5946. $as_echo_n "(cached) " >&6
  5947. else
  5948. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5949. /* end build/confdefs.h. */
  5950. int
  5951. main ()
  5952. {
  5953. volatile int x;
  5954. int * volatile y = (int *) 0;
  5955. return !x && !y;
  5956. ;
  5957. return 0;
  5958. }
  5959. _ACEOF
  5960. if ac_fn_cxx_try_compile "$LINENO"; then :
  5961. ac_cv_c_volatile=yes
  5962. else
  5963. ac_cv_c_volatile=no
  5964. fi
  5965. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5966. fi
  5967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  5968. $as_echo "$ac_cv_c_volatile" >&6; }
  5969. if test $ac_cv_c_volatile = no; then
  5970. $as_echo "#define volatile /**/" >>build/confdefs.h
  5971. fi
  5972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  5973. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  5974. if ${ac_cv_c_bigendian+:} false; then :
  5975. $as_echo_n "(cached) " >&6
  5976. else
  5977. ac_cv_c_bigendian=unknown
  5978. # See if we're dealing with a universal compiler.
  5979. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5980. /* end build/confdefs.h. */
  5981. #ifndef __APPLE_CC__
  5982. not a universal capable compiler
  5983. #endif
  5984. typedef int dummy;
  5985. _ACEOF
  5986. if ac_fn_cxx_try_compile "$LINENO"; then :
  5987. # Check for potential -arch flags. It is not universal unless
  5988. # there are at least two -arch flags with different values.
  5989. ac_arch=
  5990. ac_prev=
  5991. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  5992. if test -n "$ac_prev"; then
  5993. case $ac_word in
  5994. i?86 | x86_64 | ppc | ppc64)
  5995. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  5996. ac_arch=$ac_word
  5997. else
  5998. ac_cv_c_bigendian=universal
  5999. break
  6000. fi
  6001. ;;
  6002. esac
  6003. ac_prev=
  6004. elif test "x$ac_word" = "x-arch"; then
  6005. ac_prev=arch
  6006. fi
  6007. done
  6008. fi
  6009. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6010. if test $ac_cv_c_bigendian = unknown; then
  6011. # See if sys/param.h defines the BYTE_ORDER macro.
  6012. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6013. /* end build/confdefs.h. */
  6014. #include <sys/types.h>
  6015. #include <sys/param.h>
  6016. int
  6017. main ()
  6018. {
  6019. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  6020. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  6021. && LITTLE_ENDIAN)
  6022. bogus endian macros
  6023. #endif
  6024. ;
  6025. return 0;
  6026. }
  6027. _ACEOF
  6028. if ac_fn_cxx_try_compile "$LINENO"; then :
  6029. # It does; now see whether it defined to BIG_ENDIAN or not.
  6030. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6031. /* end build/confdefs.h. */
  6032. #include <sys/types.h>
  6033. #include <sys/param.h>
  6034. int
  6035. main ()
  6036. {
  6037. #if BYTE_ORDER != BIG_ENDIAN
  6038. not big endian
  6039. #endif
  6040. ;
  6041. return 0;
  6042. }
  6043. _ACEOF
  6044. if ac_fn_cxx_try_compile "$LINENO"; then :
  6045. ac_cv_c_bigendian=yes
  6046. else
  6047. ac_cv_c_bigendian=no
  6048. fi
  6049. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6050. fi
  6051. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6052. fi
  6053. if test $ac_cv_c_bigendian = unknown; then
  6054. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  6055. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6056. /* end build/confdefs.h. */
  6057. #include <limits.h>
  6058. int
  6059. main ()
  6060. {
  6061. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  6062. bogus endian macros
  6063. #endif
  6064. ;
  6065. return 0;
  6066. }
  6067. _ACEOF
  6068. if ac_fn_cxx_try_compile "$LINENO"; then :
  6069. # It does; now see whether it defined to _BIG_ENDIAN or not.
  6070. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6071. /* end build/confdefs.h. */
  6072. #include <limits.h>
  6073. int
  6074. main ()
  6075. {
  6076. #ifndef _BIG_ENDIAN
  6077. not big endian
  6078. #endif
  6079. ;
  6080. return 0;
  6081. }
  6082. _ACEOF
  6083. if ac_fn_cxx_try_compile "$LINENO"; then :
  6084. ac_cv_c_bigendian=yes
  6085. else
  6086. ac_cv_c_bigendian=no
  6087. fi
  6088. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6089. fi
  6090. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6091. fi
  6092. if test $ac_cv_c_bigendian = unknown; then
  6093. # Compile a test program.
  6094. if test "$cross_compiling" = yes; then :
  6095. # Try to guess by grepping values from an object file.
  6096. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6097. /* end build/confdefs.h. */
  6098. short int ascii_mm[] =
  6099. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6100. short int ascii_ii[] =
  6101. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6102. int use_ascii (int i) {
  6103. return ascii_mm[i] + ascii_ii[i];
  6104. }
  6105. short int ebcdic_ii[] =
  6106. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6107. short int ebcdic_mm[] =
  6108. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6109. int use_ebcdic (int i) {
  6110. return ebcdic_mm[i] + ebcdic_ii[i];
  6111. }
  6112. extern int foo;
  6113. int
  6114. main ()
  6115. {
  6116. return use_ascii (foo) == use_ebcdic (foo);
  6117. ;
  6118. return 0;
  6119. }
  6120. _ACEOF
  6121. if ac_fn_cxx_try_compile "$LINENO"; then :
  6122. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  6123. ac_cv_c_bigendian=yes
  6124. fi
  6125. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6126. if test "$ac_cv_c_bigendian" = unknown; then
  6127. ac_cv_c_bigendian=no
  6128. else
  6129. # finding both strings is unlikely to happen, but who knows?
  6130. ac_cv_c_bigendian=unknown
  6131. fi
  6132. fi
  6133. fi
  6134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6135. else
  6136. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6137. /* end build/confdefs.h. */
  6138. $ac_includes_default
  6139. int
  6140. main ()
  6141. {
  6142. /* Are we little or big endian? From Harbison&Steele. */
  6143. union
  6144. {
  6145. long int l;
  6146. char c[sizeof (long int)];
  6147. } u;
  6148. u.l = 1;
  6149. return u.c[sizeof (long int) - 1] == 1;
  6150. ;
  6151. return 0;
  6152. }
  6153. _ACEOF
  6154. if ac_fn_cxx_try_run "$LINENO"; then :
  6155. ac_cv_c_bigendian=no
  6156. else
  6157. ac_cv_c_bigendian=yes
  6158. fi
  6159. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6160. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6161. fi
  6162. fi
  6163. fi
  6164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  6165. $as_echo "$ac_cv_c_bigendian" >&6; }
  6166. case $ac_cv_c_bigendian in #(
  6167. yes)
  6168. $as_echo "#define B_ENDIAN 1" >>build/confdefs.h
  6169. ;; #(
  6170. no)
  6171. $as_echo "#define L_ENDIAN 1" >>build/confdefs.h
  6172. ;; #(
  6173. universal)
  6174. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>build/confdefs.h
  6175. ;; #(
  6176. *)
  6177. as_fn_error $? "unknown endianness
  6178. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  6179. esac
  6180. #AC_C_INLINE
  6181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
  6182. $as_echo_n "checking whether char is unsigned... " >&6; }
  6183. if ${ac_cv_c_char_unsigned+:} false; then :
  6184. $as_echo_n "(cached) " >&6
  6185. else
  6186. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6187. /* end build/confdefs.h. */
  6188. $ac_includes_default
  6189. int
  6190. main ()
  6191. {
  6192. static int test_array [1 - 2 * !(((char) -1) < 0)];
  6193. test_array [0] = 0;
  6194. return test_array [0];
  6195. ;
  6196. return 0;
  6197. }
  6198. _ACEOF
  6199. if ac_fn_cxx_try_compile "$LINENO"; then :
  6200. ac_cv_c_char_unsigned=no
  6201. else
  6202. ac_cv_c_char_unsigned=yes
  6203. fi
  6204. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6205. fi
  6206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
  6207. $as_echo "$ac_cv_c_char_unsigned" >&6; }
  6208. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  6209. $as_echo "#define __CHAR_UNSIGNED__ 1" >>build/confdefs.h
  6210. fi
  6211. #AC_C_STRINGIZE
  6212. #AC_C_PROTOTYPES
  6213. #checkpoint
  6214. cat >confcache <<\_ACEOF
  6215. # This file is a shell script that caches the results of configure
  6216. # tests run on this system so they can be shared between configure
  6217. # scripts and configure runs, see configure's option --config-cache.
  6218. # It is not useful on other systems. If it contains results you don't
  6219. # want to keep, you may remove or edit it.
  6220. #
  6221. # build/config.status only pays attention to the cache file if you give it
  6222. # the --recheck option to rerun configure.
  6223. #
  6224. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6225. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6226. # following values.
  6227. _ACEOF
  6228. # The following way of writing the cache mishandles newlines in values,
  6229. # but we know of no workaround that is simple, portable, and efficient.
  6230. # So, we kill variables containing newlines.
  6231. # Ultrix sh set writes to stderr and can't be redirected directly,
  6232. # and sets the high bit in the cache file unless we assign to the vars.
  6233. (
  6234. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6235. eval ac_val=\$$ac_var
  6236. case $ac_val in #(
  6237. *${as_nl}*)
  6238. case $ac_var in #(
  6239. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6240. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6241. esac
  6242. case $ac_var in #(
  6243. _ | IFS | as_nl) ;; #(
  6244. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6245. *) { eval $ac_var=; unset $ac_var;} ;;
  6246. esac ;;
  6247. esac
  6248. done
  6249. (set) 2>&1 |
  6250. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6251. *${as_nl}ac_space=\ *)
  6252. # `set' does not quote correctly, so add quotes: double-quote
  6253. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6254. sed -n \
  6255. "s/'/'\\\\''/g;
  6256. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6257. ;; #(
  6258. *)
  6259. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6260. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6261. ;;
  6262. esac |
  6263. sort
  6264. ) |
  6265. sed '
  6266. /^ac_cv_env_/b end
  6267. t clear
  6268. :clear
  6269. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6270. t end
  6271. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6272. :end' >>confcache
  6273. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6274. if test -w "$cache_file"; then
  6275. if test "x$cache_file" != "x/dev/null"; then
  6276. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6277. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6278. if test ! -f "$cache_file" || test -h "$cache_file"; then
  6279. cat confcache >"$cache_file"
  6280. else
  6281. case $cache_file in #(
  6282. */* | ?:*)
  6283. mv -f confcache "$cache_file"$$ &&
  6284. mv -f "$cache_file"$$ "$cache_file" ;; #(
  6285. *)
  6286. mv -f confcache "$cache_file" ;;
  6287. esac
  6288. fi
  6289. fi
  6290. else
  6291. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6292. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6293. fi
  6294. fi
  6295. rm -f confcache
  6296. # Checks for typedefs, structures, and compiler characteristics
  6297. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  6298. if test "x$ac_cv_type_pid_t" = xyes; then :
  6299. else
  6300. cat >>build/confdefs.h <<_ACEOF
  6301. #define pid_t int
  6302. _ACEOF
  6303. fi
  6304. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  6305. if test "x$ac_cv_type_size_t" = xyes; then :
  6306. else
  6307. cat >>build/confdefs.h <<_ACEOF
  6308. #define size_t unsigned int
  6309. _ACEOF
  6310. fi
  6311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  6312. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  6313. if ${ac_cv_type_uid_t+:} false; then :
  6314. $as_echo_n "(cached) " >&6
  6315. else
  6316. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6317. /* end build/confdefs.h. */
  6318. #include <sys/types.h>
  6319. _ACEOF
  6320. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6321. $EGREP "uid_t" >/dev/null 2>&1; then :
  6322. ac_cv_type_uid_t=yes
  6323. else
  6324. ac_cv_type_uid_t=no
  6325. fi
  6326. rm -f conftest*
  6327. fi
  6328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  6329. $as_echo "$ac_cv_type_uid_t" >&6; }
  6330. if test $ac_cv_type_uid_t = no; then
  6331. $as_echo "#define uid_t int" >>build/confdefs.h
  6332. $as_echo "#define gid_t int" >>build/confdefs.h
  6333. fi
  6334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  6335. $as_echo_n "checking for unsigned long long int... " >&6; }
  6336. if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  6337. $as_echo_n "(cached) " >&6
  6338. else
  6339. ac_cv_type_unsigned_long_long_int=yes
  6340. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  6341. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6342. /* end build/confdefs.h. */
  6343. /* For now, do not test the preprocessor; as of 2007 there are too many
  6344. implementations with broken preprocessors. Perhaps this can
  6345. be revisited in 2012. In the meantime, code should not expect
  6346. #if to work with literals wider than 32 bits. */
  6347. /* Test literals. */
  6348. long long int ll = 9223372036854775807ll;
  6349. long long int nll = -9223372036854775807LL;
  6350. unsigned long long int ull = 18446744073709551615ULL;
  6351. /* Test constant expressions. */
  6352. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  6353. ? 1 : -1)];
  6354. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  6355. ? 1 : -1)];
  6356. int i = 63;
  6357. int
  6358. main ()
  6359. {
  6360. /* Test availability of runtime routines for shift and division. */
  6361. long long int llmax = 9223372036854775807ll;
  6362. unsigned long long int ullmax = 18446744073709551615ull;
  6363. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  6364. | (llmax / ll) | (llmax % ll)
  6365. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  6366. | (ullmax / ull) | (ullmax % ull));
  6367. ;
  6368. return 0;
  6369. }
  6370. _ACEOF
  6371. if ac_fn_cxx_try_link "$LINENO"; then :
  6372. else
  6373. ac_cv_type_unsigned_long_long_int=no
  6374. fi
  6375. rm -f core conftest.err conftest.$ac_objext \
  6376. conftest$ac_exeext conftest.$ac_ext
  6377. fi
  6378. fi
  6379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  6380. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  6381. if test $ac_cv_type_unsigned_long_long_int = yes; then
  6382. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>build/confdefs.h
  6383. fi
  6384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  6385. $as_echo_n "checking for long long int... " >&6; }
  6386. if ${ac_cv_type_long_long_int+:} false; then :
  6387. $as_echo_n "(cached) " >&6
  6388. else
  6389. ac_cv_type_long_long_int=yes
  6390. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  6391. ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
  6392. if test $ac_cv_type_long_long_int = yes; then
  6393. if test "$cross_compiling" = yes; then :
  6394. :
  6395. else
  6396. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6397. /* end build/confdefs.h. */
  6398. #include <limits.h>
  6399. #ifndef LLONG_MAX
  6400. # define HALF \
  6401. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  6402. # define LLONG_MAX (HALF - 1 + HALF)
  6403. #endif
  6404. int
  6405. main ()
  6406. {
  6407. long long int n = 1;
  6408. int i;
  6409. for (i = 0; ; i++)
  6410. {
  6411. long long int m = n << i;
  6412. if (m >> i != n)
  6413. return 1;
  6414. if (LLONG_MAX / 2 < m)
  6415. break;
  6416. }
  6417. return 0;
  6418. ;
  6419. return 0;
  6420. }
  6421. _ACEOF
  6422. if ac_fn_cxx_try_run "$LINENO"; then :
  6423. else
  6424. ac_cv_type_long_long_int=no
  6425. fi
  6426. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6427. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6428. fi
  6429. fi
  6430. fi
  6431. fi
  6432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  6433. $as_echo "$ac_cv_type_long_long_int" >&6; }
  6434. if test $ac_cv_type_long_long_int = yes; then
  6435. $as_echo "#define HAVE_LONG_LONG_INT 1" >>build/confdefs.h
  6436. fi
  6437. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  6438. case $ac_cv_c_int8_t in #(
  6439. no|yes) ;; #(
  6440. *)
  6441. cat >>build/confdefs.h <<_ACEOF
  6442. #define int8_t $ac_cv_c_int8_t
  6443. _ACEOF
  6444. ;;
  6445. esac
  6446. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  6447. case $ac_cv_c_uint8_t in #(
  6448. no|yes) ;; #(
  6449. *)
  6450. $as_echo "#define _UINT8_T 1" >>build/confdefs.h
  6451. cat >>build/confdefs.h <<_ACEOF
  6452. #define uint8_t $ac_cv_c_uint8_t
  6453. _ACEOF
  6454. ;;
  6455. esac
  6456. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  6457. case $ac_cv_c_int16_t in #(
  6458. no|yes) ;; #(
  6459. *)
  6460. cat >>build/confdefs.h <<_ACEOF
  6461. #define int16_t $ac_cv_c_int16_t
  6462. _ACEOF
  6463. ;;
  6464. esac
  6465. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  6466. case $ac_cv_c_uint16_t in #(
  6467. no|yes) ;; #(
  6468. *)
  6469. cat >>build/confdefs.h <<_ACEOF
  6470. #define uint16_t $ac_cv_c_uint16_t
  6471. _ACEOF
  6472. ;;
  6473. esac
  6474. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  6475. case $ac_cv_c_int32_t in #(
  6476. no|yes) ;; #(
  6477. *)
  6478. cat >>build/confdefs.h <<_ACEOF
  6479. #define int32_t $ac_cv_c_int32_t
  6480. _ACEOF
  6481. ;;
  6482. esac
  6483. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  6484. case $ac_cv_c_uint32_t in #(
  6485. no|yes) ;; #(
  6486. *)
  6487. $as_echo "#define _UINT32_T 1" >>build/confdefs.h
  6488. cat >>build/confdefs.h <<_ACEOF
  6489. #define uint32_t $ac_cv_c_uint32_t
  6490. _ACEOF
  6491. ;;
  6492. esac
  6493. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  6494. case $ac_cv_c_int64_t in #(
  6495. no|yes) ;; #(
  6496. *)
  6497. cat >>build/confdefs.h <<_ACEOF
  6498. #define int64_t $ac_cv_c_int64_t
  6499. _ACEOF
  6500. ;;
  6501. esac
  6502. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  6503. case $ac_cv_c_uint64_t in #(
  6504. no|yes) ;; #(
  6505. *)
  6506. $as_echo "#define _UINT64_T 1" >>build/confdefs.h
  6507. cat >>build/confdefs.h <<_ACEOF
  6508. #define uint64_t $ac_cv_c_uint64_t
  6509. _ACEOF
  6510. ;;
  6511. esac
  6512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  6513. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  6514. if ${ac_cv_struct_tm+:} false; then :
  6515. $as_echo_n "(cached) " >&6
  6516. else
  6517. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6518. /* end build/confdefs.h. */
  6519. #include <sys/types.h>
  6520. #include <time.h>
  6521. int
  6522. main ()
  6523. {
  6524. struct tm tm;
  6525. int *p = &tm.tm_sec;
  6526. return !p;
  6527. ;
  6528. return 0;
  6529. }
  6530. _ACEOF
  6531. if ac_fn_cxx_try_compile "$LINENO"; then :
  6532. ac_cv_struct_tm=time.h
  6533. else
  6534. ac_cv_struct_tm=sys/time.h
  6535. fi
  6536. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6537. fi
  6538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  6539. $as_echo "$ac_cv_struct_tm" >&6; }
  6540. if test $ac_cv_struct_tm = sys/time.h; then
  6541. $as_echo "#define TM_IN_SYS_TIME 1" >>build/confdefs.h
  6542. fi
  6543. ac_fn_cxx_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  6544. #include <$ac_cv_struct_tm>
  6545. "
  6546. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
  6547. cat >>build/confdefs.h <<_ACEOF
  6548. #define HAVE_STRUCT_TM_TM_ZONE 1
  6549. _ACEOF
  6550. fi
  6551. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  6552. $as_echo "#define HAVE_TM_ZONE 1" >>build/confdefs.h
  6553. else
  6554. ac_fn_cxx_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  6555. "
  6556. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  6557. ac_have_decl=1
  6558. else
  6559. ac_have_decl=0
  6560. fi
  6561. cat >>build/confdefs.h <<_ACEOF
  6562. #define HAVE_DECL_TZNAME $ac_have_decl
  6563. _ACEOF
  6564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  6565. $as_echo_n "checking for tzname... " >&6; }
  6566. if ${ac_cv_var_tzname+:} false; then :
  6567. $as_echo_n "(cached) " >&6
  6568. else
  6569. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6570. /* end build/confdefs.h. */
  6571. #include <time.h>
  6572. #if !HAVE_DECL_TZNAME
  6573. extern char *tzname[];
  6574. #endif
  6575. int
  6576. main ()
  6577. {
  6578. return tzname[0][0];
  6579. ;
  6580. return 0;
  6581. }
  6582. _ACEOF
  6583. if ac_fn_cxx_try_link "$LINENO"; then :
  6584. ac_cv_var_tzname=yes
  6585. else
  6586. ac_cv_var_tzname=no
  6587. fi
  6588. rm -f core conftest.err conftest.$ac_objext \
  6589. conftest$ac_exeext conftest.$ac_ext
  6590. fi
  6591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  6592. $as_echo "$ac_cv_var_tzname" >&6; }
  6593. if test $ac_cv_var_tzname = yes; then
  6594. $as_echo "#define HAVE_TZNAME 1" >>build/confdefs.h
  6595. fi
  6596. fi
  6597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  6598. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  6599. if ${ac_cv_struct_tm+:} false; then :
  6600. $as_echo_n "(cached) " >&6
  6601. else
  6602. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6603. /* end build/confdefs.h. */
  6604. #include <sys/types.h>
  6605. #include <time.h>
  6606. int
  6607. main ()
  6608. {
  6609. struct tm tm;
  6610. int *p = &tm.tm_sec;
  6611. return !p;
  6612. ;
  6613. return 0;
  6614. }
  6615. _ACEOF
  6616. if ac_fn_cxx_try_compile "$LINENO"; then :
  6617. ac_cv_struct_tm=time.h
  6618. else
  6619. ac_cv_struct_tm=sys/time.h
  6620. fi
  6621. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6622. fi
  6623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  6624. $as_echo "$ac_cv_struct_tm" >&6; }
  6625. if test $ac_cv_struct_tm = sys/time.h; then
  6626. $as_echo "#define TM_IN_SYS_TIME 1" >>build/confdefs.h
  6627. fi
  6628. # Checks for library functions
  6629. for ac_header in vfork.h
  6630. do :
  6631. ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  6632. if test "x$ac_cv_header_vfork_h" = xyes; then :
  6633. cat >>build/confdefs.h <<_ACEOF
  6634. #define HAVE_VFORK_H 1
  6635. _ACEOF
  6636. fi
  6637. done
  6638. for ac_func in fork vfork
  6639. do :
  6640. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6641. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6642. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6643. cat >>build/confdefs.h <<_ACEOF
  6644. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6645. _ACEOF
  6646. fi
  6647. done
  6648. if test "x$ac_cv_func_fork" = xyes; then
  6649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  6650. $as_echo_n "checking for working fork... " >&6; }
  6651. if ${ac_cv_func_fork_works+:} false; then :
  6652. $as_echo_n "(cached) " >&6
  6653. else
  6654. if test "$cross_compiling" = yes; then :
  6655. ac_cv_func_fork_works=cross
  6656. else
  6657. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6658. /* end build/confdefs.h. */
  6659. $ac_includes_default
  6660. int
  6661. main ()
  6662. {
  6663. /* By Ruediger Kuhlmann. */
  6664. return fork () < 0;
  6665. ;
  6666. return 0;
  6667. }
  6668. _ACEOF
  6669. if ac_fn_cxx_try_run "$LINENO"; then :
  6670. ac_cv_func_fork_works=yes
  6671. else
  6672. ac_cv_func_fork_works=no
  6673. fi
  6674. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6675. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6676. fi
  6677. fi
  6678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  6679. $as_echo "$ac_cv_func_fork_works" >&6; }
  6680. else
  6681. ac_cv_func_fork_works=$ac_cv_func_fork
  6682. fi
  6683. if test "x$ac_cv_func_fork_works" = xcross; then
  6684. case $host in
  6685. *-*-amigaos* | *-*-msdosdjgpp*)
  6686. # Override, as these systems have only a dummy fork() stub
  6687. ac_cv_func_fork_works=no
  6688. ;;
  6689. *)
  6690. ac_cv_func_fork_works=yes
  6691. ;;
  6692. esac
  6693. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  6694. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  6695. fi
  6696. ac_cv_func_vfork_works=$ac_cv_func_vfork
  6697. if test "x$ac_cv_func_vfork" = xyes; then
  6698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  6699. $as_echo_n "checking for working vfork... " >&6; }
  6700. if ${ac_cv_func_vfork_works+:} false; then :
  6701. $as_echo_n "(cached) " >&6
  6702. else
  6703. if test "$cross_compiling" = yes; then :
  6704. ac_cv_func_vfork_works=cross
  6705. else
  6706. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6707. /* end build/confdefs.h. */
  6708. /* Thanks to Paul Eggert for this test. */
  6709. $ac_includes_default
  6710. #include <sys/wait.h>
  6711. #ifdef HAVE_VFORK_H
  6712. # include <vfork.h>
  6713. #endif
  6714. /* On some sparc systems, changes by the child to local and incoming
  6715. argument registers are propagated back to the parent. The compiler
  6716. is told about this with #include <vfork.h>, but some compilers
  6717. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  6718. static variable whose address is put into a register that is
  6719. clobbered by the vfork. */
  6720. static void
  6721. #ifdef __cplusplus
  6722. sparc_address_test (int arg)
  6723. # else
  6724. sparc_address_test (arg) int arg;
  6725. #endif
  6726. {
  6727. static pid_t child;
  6728. if (!child) {
  6729. child = vfork ();
  6730. if (child < 0) {
  6731. perror ("vfork");
  6732. _exit(2);
  6733. }
  6734. if (!child) {
  6735. arg = getpid();
  6736. write(-1, "", 0);
  6737. _exit (arg);
  6738. }
  6739. }
  6740. }
  6741. int
  6742. main ()
  6743. {
  6744. pid_t parent = getpid ();
  6745. pid_t child;
  6746. sparc_address_test (0);
  6747. child = vfork ();
  6748. if (child == 0) {
  6749. /* Here is another test for sparc vfork register problems. This
  6750. test uses lots of local variables, at least as many local
  6751. variables as main has allocated so far including compiler
  6752. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  6753. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  6754. reuse the register of parent for one of the local variables,
  6755. since it will think that parent can't possibly be used any more
  6756. in this routine. Assigning to the local variable will thus
  6757. munge parent in the parent process. */
  6758. pid_t
  6759. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  6760. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  6761. /* Convince the compiler that p..p7 are live; otherwise, it might
  6762. use the same hardware register for all 8 local variables. */
  6763. if (p != p1 || p != p2 || p != p3 || p != p4
  6764. || p != p5 || p != p6 || p != p7)
  6765. _exit(1);
  6766. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  6767. from child file descriptors. If the child closes a descriptor
  6768. before it execs or exits, this munges the parent's descriptor
  6769. as well. Test for this by closing stdout in the child. */
  6770. _exit(close(fileno(stdout)) != 0);
  6771. } else {
  6772. int status;
  6773. struct stat st;
  6774. while (wait(&status) != child)
  6775. ;
  6776. return (
  6777. /* Was there some problem with vforking? */
  6778. child < 0
  6779. /* Did the child fail? (This shouldn't happen.) */
  6780. || status
  6781. /* Did the vfork/compiler bug occur? */
  6782. || parent != getpid()
  6783. /* Did the file descriptor bug occur? */
  6784. || fstat(fileno(stdout), &st) != 0
  6785. );
  6786. }
  6787. }
  6788. _ACEOF
  6789. if ac_fn_cxx_try_run "$LINENO"; then :
  6790. ac_cv_func_vfork_works=yes
  6791. else
  6792. ac_cv_func_vfork_works=no
  6793. fi
  6794. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6795. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6796. fi
  6797. fi
  6798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  6799. $as_echo "$ac_cv_func_vfork_works" >&6; }
  6800. fi;
  6801. if test "x$ac_cv_func_fork_works" = xcross; then
  6802. ac_cv_func_vfork_works=$ac_cv_func_vfork
  6803. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  6804. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  6805. fi
  6806. if test "x$ac_cv_func_vfork_works" = xyes; then
  6807. $as_echo "#define HAVE_WORKING_VFORK 1" >>build/confdefs.h
  6808. else
  6809. $as_echo "#define vfork fork" >>build/confdefs.h
  6810. fi
  6811. if test "x$ac_cv_func_fork_works" = xyes; then
  6812. $as_echo "#define HAVE_WORKING_FORK 1" >>build/confdefs.h
  6813. fi
  6814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  6815. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  6816. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  6817. $as_echo_n "(cached) " >&6
  6818. else
  6819. rm -f conftest.sym conftest.file
  6820. echo >conftest.file
  6821. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  6822. if test "$cross_compiling" = yes; then :
  6823. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6824. else
  6825. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6826. /* end build/confdefs.h. */
  6827. $ac_includes_default
  6828. int
  6829. main ()
  6830. {
  6831. struct stat sbuf;
  6832. /* Linux will dereference the symlink and fail, as required by POSIX.
  6833. That is better in the sense that it means we will not
  6834. have to compile and use the lstat wrapper. */
  6835. return lstat ("conftest.sym/", &sbuf) == 0;
  6836. ;
  6837. return 0;
  6838. }
  6839. _ACEOF
  6840. if ac_fn_cxx_try_run "$LINENO"; then :
  6841. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  6842. else
  6843. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6844. fi
  6845. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6846. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6847. fi
  6848. else
  6849. # If the `ln -s' command failed, then we probably don't even
  6850. # have an lstat function.
  6851. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6852. fi
  6853. rm -f conftest.sym conftest.file
  6854. fi
  6855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  6856. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  6857. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  6858. cat >>build/confdefs.h <<_ACEOF
  6859. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  6860. _ACEOF
  6861. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  6862. case " $LIBOBJS " in
  6863. *" lstat.$ac_objext "* ) ;;
  6864. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  6865. ;;
  6866. esac
  6867. fi
  6868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
  6869. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  6870. if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
  6871. $as_echo_n "(cached) " >&6
  6872. else
  6873. if test "$cross_compiling" = yes; then :
  6874. ac_cv_func_lstat_empty_string_bug=yes
  6875. else
  6876. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6877. /* end build/confdefs.h. */
  6878. $ac_includes_default
  6879. int
  6880. main ()
  6881. {
  6882. struct stat sbuf;
  6883. return lstat ("", &sbuf) == 0;
  6884. ;
  6885. return 0;
  6886. }
  6887. _ACEOF
  6888. if ac_fn_cxx_try_run "$LINENO"; then :
  6889. ac_cv_func_lstat_empty_string_bug=no
  6890. else
  6891. ac_cv_func_lstat_empty_string_bug=yes
  6892. fi
  6893. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6894. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6895. fi
  6896. fi
  6897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
  6898. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  6899. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  6900. case " $LIBOBJS " in
  6901. *" lstat.$ac_objext "* ) ;;
  6902. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  6903. ;;
  6904. esac
  6905. cat >>build/confdefs.h <<_ACEOF
  6906. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  6907. _ACEOF
  6908. fi
  6909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  6910. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  6911. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  6912. $as_echo_n "(cached) " >&6
  6913. else
  6914. rm -f conftest.sym conftest.file
  6915. echo >conftest.file
  6916. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  6917. if test "$cross_compiling" = yes; then :
  6918. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6919. else
  6920. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6921. /* end build/confdefs.h. */
  6922. $ac_includes_default
  6923. int
  6924. main ()
  6925. {
  6926. struct stat sbuf;
  6927. /* Linux will dereference the symlink and fail, as required by POSIX.
  6928. That is better in the sense that it means we will not
  6929. have to compile and use the lstat wrapper. */
  6930. return lstat ("conftest.sym/", &sbuf) == 0;
  6931. ;
  6932. return 0;
  6933. }
  6934. _ACEOF
  6935. if ac_fn_cxx_try_run "$LINENO"; then :
  6936. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  6937. else
  6938. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6939. fi
  6940. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6941. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6942. fi
  6943. else
  6944. # If the `ln -s' command failed, then we probably don't even
  6945. # have an lstat function.
  6946. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6947. fi
  6948. rm -f conftest.sym conftest.file
  6949. fi
  6950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  6951. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  6952. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  6953. cat >>build/confdefs.h <<_ACEOF
  6954. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  6955. _ACEOF
  6956. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  6957. case " $LIBOBJS " in
  6958. *" lstat.$ac_objext "* ) ;;
  6959. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  6960. ;;
  6961. esac
  6962. fi
  6963. for ac_header in stdlib.h
  6964. do :
  6965. ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  6966. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  6967. cat >>build/confdefs.h <<_ACEOF
  6968. #define HAVE_STDLIB_H 1
  6969. _ACEOF
  6970. fi
  6971. done
  6972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  6973. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  6974. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  6975. $as_echo_n "(cached) " >&6
  6976. else
  6977. if test "$cross_compiling" = yes; then :
  6978. ac_cv_func_malloc_0_nonnull=no
  6979. else
  6980. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6981. /* end build/confdefs.h. */
  6982. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  6983. # include <stdlib.h>
  6984. #else
  6985. char *malloc ();
  6986. #endif
  6987. int
  6988. main ()
  6989. {
  6990. return ! malloc (0);
  6991. ;
  6992. return 0;
  6993. }
  6994. _ACEOF
  6995. if ac_fn_cxx_try_run "$LINENO"; then :
  6996. ac_cv_func_malloc_0_nonnull=yes
  6997. else
  6998. ac_cv_func_malloc_0_nonnull=no
  6999. fi
  7000. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7001. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7002. fi
  7003. fi
  7004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  7005. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  7006. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  7007. $as_echo "#define HAVE_MALLOC 1" >>build/confdefs.h
  7008. else
  7009. $as_echo "#define HAVE_MALLOC 0" >>build/confdefs.h
  7010. case " $LIBOBJS " in
  7011. *" malloc.$ac_objext "* ) ;;
  7012. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  7013. ;;
  7014. esac
  7015. $as_echo "#define malloc rpl_malloc" >>build/confdefs.h
  7016. fi
  7017. for ac_header in $ac_header_list
  7018. do :
  7019. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7020. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7021. "
  7022. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7023. cat >>build/confdefs.h <<_ACEOF
  7024. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7025. _ACEOF
  7026. fi
  7027. done
  7028. for ac_func in $ac_func_list
  7029. do :
  7030. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7031. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7032. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7033. cat >>build/confdefs.h <<_ACEOF
  7034. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7035. _ACEOF
  7036. fi
  7037. done
  7038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  7039. $as_echo_n "checking for working mktime... " >&6; }
  7040. if ${ac_cv_func_working_mktime+:} false; then :
  7041. $as_echo_n "(cached) " >&6
  7042. else
  7043. if test "$cross_compiling" = yes; then :
  7044. ac_cv_func_working_mktime=no
  7045. else
  7046. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7047. /* end build/confdefs.h. */
  7048. /* Test program from Paul Eggert and Tony Leneis. */
  7049. #ifdef TIME_WITH_SYS_TIME
  7050. # include <sys/time.h>
  7051. # include <time.h>
  7052. #else
  7053. # ifdef HAVE_SYS_TIME_H
  7054. # include <sys/time.h>
  7055. # else
  7056. # include <time.h>
  7057. # endif
  7058. #endif
  7059. #include <limits.h>
  7060. #include <stdlib.h>
  7061. #ifdef HAVE_UNISTD_H
  7062. # include <unistd.h>
  7063. #endif
  7064. #ifndef HAVE_ALARM
  7065. # define alarm(X) /* empty */
  7066. #endif
  7067. /* Work around redefinition to rpl_putenv by other config tests. */
  7068. #undef putenv
  7069. static time_t time_t_max;
  7070. static time_t time_t_min;
  7071. /* Values we'll use to set the TZ environment variable. */
  7072. static const char *tz_strings[] = {
  7073. (const char *) 0, "TZ=GMT0", "TZ=JST-9",
  7074. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  7075. };
  7076. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  7077. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  7078. Based on a problem report from Andreas Jaeger. */
  7079. static int
  7080. spring_forward_gap ()
  7081. {
  7082. /* glibc (up to about 1998-10-07) failed this test. */
  7083. struct tm tm;
  7084. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  7085. instead of "TZ=America/Vancouver" in order to detect the bug even
  7086. on systems that don't support the Olson extension, or don't have the
  7087. full zoneinfo tables installed. */
  7088. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  7089. tm.tm_year = 98;
  7090. tm.tm_mon = 3;
  7091. tm.tm_mday = 5;
  7092. tm.tm_hour = 2;
  7093. tm.tm_min = 0;
  7094. tm.tm_sec = 0;
  7095. tm.tm_isdst = -1;
  7096. return mktime (&tm) != (time_t) -1;
  7097. }
  7098. static int
  7099. mktime_test1 (time_t now)
  7100. {
  7101. struct tm *lt;
  7102. return ! (lt = localtime (&now)) || mktime (lt) == now;
  7103. }
  7104. static int
  7105. mktime_test (time_t now)
  7106. {
  7107. return (mktime_test1 (now)
  7108. && mktime_test1 ((time_t) (time_t_max - now))
  7109. && mktime_test1 ((time_t) (time_t_min + now)));
  7110. }
  7111. static int
  7112. irix_6_4_bug ()
  7113. {
  7114. /* Based on code from Ariel Faigon. */
  7115. struct tm tm;
  7116. tm.tm_year = 96;
  7117. tm.tm_mon = 3;
  7118. tm.tm_mday = 0;
  7119. tm.tm_hour = 0;
  7120. tm.tm_min = 0;
  7121. tm.tm_sec = 0;
  7122. tm.tm_isdst = -1;
  7123. mktime (&tm);
  7124. return tm.tm_mon == 2 && tm.tm_mday == 31;
  7125. }
  7126. static int
  7127. bigtime_test (int j)
  7128. {
  7129. struct tm tm;
  7130. time_t now;
  7131. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  7132. now = mktime (&tm);
  7133. if (now != (time_t) -1)
  7134. {
  7135. struct tm *lt = localtime (&now);
  7136. if (! (lt
  7137. && lt->tm_year == tm.tm_year
  7138. && lt->tm_mon == tm.tm_mon
  7139. && lt->tm_mday == tm.tm_mday
  7140. && lt->tm_hour == tm.tm_hour
  7141. && lt->tm_min == tm.tm_min
  7142. && lt->tm_sec == tm.tm_sec
  7143. && lt->tm_yday == tm.tm_yday
  7144. && lt->tm_wday == tm.tm_wday
  7145. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  7146. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  7147. return 0;
  7148. }
  7149. return 1;
  7150. }
  7151. static int
  7152. year_2050_test ()
  7153. {
  7154. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  7155. ignoring leap seconds. */
  7156. unsigned long int answer = 2527315200UL;
  7157. struct tm tm;
  7158. time_t t;
  7159. tm.tm_year = 2050 - 1900;
  7160. tm.tm_mon = 2 - 1;
  7161. tm.tm_mday = 1;
  7162. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  7163. tm.tm_isdst = -1;
  7164. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  7165. instead of "TZ=America/Vancouver" in order to detect the bug even
  7166. on systems that don't support the Olson extension, or don't have the
  7167. full zoneinfo tables installed. */
  7168. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  7169. t = mktime (&tm);
  7170. /* Check that the result is either a failure, or close enough
  7171. to the correct answer that we can assume the discrepancy is
  7172. due to leap seconds. */
  7173. return (t == (time_t) -1
  7174. || (0 < t && answer - 120 <= t && t <= answer + 120));
  7175. }
  7176. int
  7177. main ()
  7178. {
  7179. time_t t, delta;
  7180. int i, j;
  7181. /* This test makes some buggy mktime implementations loop.
  7182. Give up after 60 seconds; a mktime slower than that
  7183. isn't worth using anyway. */
  7184. alarm (60);
  7185. for (;;)
  7186. {
  7187. t = (time_t_max << 1) + 1;
  7188. if (t <= time_t_max)
  7189. break;
  7190. time_t_max = t;
  7191. }
  7192. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  7193. delta = time_t_max / 997; /* a suitable prime number */
  7194. for (i = 0; i < N_STRINGS; i++)
  7195. {
  7196. if (tz_strings[i])
  7197. putenv ((char*) tz_strings[i]);
  7198. for (t = 0; t <= time_t_max - delta; t += delta)
  7199. if (! mktime_test (t))
  7200. return 1;
  7201. if (! (mktime_test ((time_t) 1)
  7202. && mktime_test ((time_t) (60 * 60))
  7203. && mktime_test ((time_t) (60 * 60 * 24))))
  7204. return 1;
  7205. for (j = 1; ; j <<= 1)
  7206. if (! bigtime_test (j))
  7207. return 1;
  7208. else if (INT_MAX / 2 < j)
  7209. break;
  7210. if (! bigtime_test (INT_MAX))
  7211. return 1;
  7212. }
  7213. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  7214. }
  7215. _ACEOF
  7216. if ac_fn_cxx_try_run "$LINENO"; then :
  7217. ac_cv_func_working_mktime=yes
  7218. else
  7219. ac_cv_func_working_mktime=no
  7220. fi
  7221. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7222. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7223. fi
  7224. fi
  7225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  7226. $as_echo "$ac_cv_func_working_mktime" >&6; }
  7227. if test $ac_cv_func_working_mktime = no; then
  7228. case " $LIBOBJS " in
  7229. *" mktime.$ac_objext "* ) ;;
  7230. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  7231. ;;
  7232. esac
  7233. fi
  7234. for ac_func in getpagesize
  7235. do :
  7236. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  7237. if test "x$ac_cv_func_getpagesize" = xyes; then :
  7238. cat >>build/confdefs.h <<_ACEOF
  7239. #define HAVE_GETPAGESIZE 1
  7240. _ACEOF
  7241. fi
  7242. done
  7243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  7244. $as_echo_n "checking for working mmap... " >&6; }
  7245. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  7246. $as_echo_n "(cached) " >&6
  7247. else
  7248. if test "$cross_compiling" = yes; then :
  7249. ac_cv_func_mmap_fixed_mapped=no
  7250. else
  7251. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7252. /* end build/confdefs.h. */
  7253. $ac_includes_default
  7254. /* malloc might have been renamed as rpl_malloc. */
  7255. #undef malloc
  7256. /* Thanks to Mike Haertel and Jim Avera for this test.
  7257. Here is a matrix of mmap possibilities:
  7258. mmap private not fixed
  7259. mmap private fixed at somewhere currently unmapped
  7260. mmap private fixed at somewhere already mapped
  7261. mmap shared not fixed
  7262. mmap shared fixed at somewhere currently unmapped
  7263. mmap shared fixed at somewhere already mapped
  7264. For private mappings, we should verify that changes cannot be read()
  7265. back from the file, nor mmap's back from the file at a different
  7266. address. (There have been systems where private was not correctly
  7267. implemented like the infamous i386 svr4.0, and systems where the
  7268. VM page cache was not coherent with the file system buffer cache
  7269. like early versions of FreeBSD and possibly contemporary NetBSD.)
  7270. For shared mappings, we should conversely verify that changes get
  7271. propagated back to all the places they're supposed to be.
  7272. Grep wants private fixed already mapped.
  7273. The main things grep needs to know about mmap are:
  7274. * does it exist and is it safe to write into the mmap'd area
  7275. * how to use it (BSD variants) */
  7276. #include <fcntl.h>
  7277. #include <sys/mman.h>
  7278. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  7279. char *malloc ();
  7280. #endif
  7281. /* This mess was copied from the GNU getpagesize.h. */
  7282. #ifndef HAVE_GETPAGESIZE
  7283. # ifdef _SC_PAGESIZE
  7284. # define getpagesize() sysconf(_SC_PAGESIZE)
  7285. # else /* no _SC_PAGESIZE */
  7286. # ifdef HAVE_SYS_PARAM_H
  7287. # include <sys/param.h>
  7288. # ifdef EXEC_PAGESIZE
  7289. # define getpagesize() EXEC_PAGESIZE
  7290. # else /* no EXEC_PAGESIZE */
  7291. # ifdef NBPG
  7292. # define getpagesize() NBPG * CLSIZE
  7293. # ifndef CLSIZE
  7294. # define CLSIZE 1
  7295. # endif /* no CLSIZE */
  7296. # else /* no NBPG */
  7297. # ifdef NBPC
  7298. # define getpagesize() NBPC
  7299. # else /* no NBPC */
  7300. # ifdef PAGESIZE
  7301. # define getpagesize() PAGESIZE
  7302. # endif /* PAGESIZE */
  7303. # endif /* no NBPC */
  7304. # endif /* no NBPG */
  7305. # endif /* no EXEC_PAGESIZE */
  7306. # else /* no HAVE_SYS_PARAM_H */
  7307. # define getpagesize() 8192 /* punt totally */
  7308. # endif /* no HAVE_SYS_PARAM_H */
  7309. # endif /* no _SC_PAGESIZE */
  7310. #endif /* no HAVE_GETPAGESIZE */
  7311. int
  7312. main ()
  7313. {
  7314. char *data, *data2, *data3;
  7315. const char *cdata2;
  7316. int i, pagesize;
  7317. int fd, fd2;
  7318. pagesize = getpagesize ();
  7319. /* First, make a file with some known garbage in it. */
  7320. data = (char *) malloc (pagesize);
  7321. if (!data)
  7322. return 1;
  7323. for (i = 0; i < pagesize; ++i)
  7324. *(data + i) = rand ();
  7325. umask (0);
  7326. fd = creat ("conftest.mmap", 0600);
  7327. if (fd < 0)
  7328. return 2;
  7329. if (write (fd, data, pagesize) != pagesize)
  7330. return 3;
  7331. close (fd);
  7332. /* Next, check that the tail of a page is zero-filled. File must have
  7333. non-zero length, otherwise we risk SIGBUS for entire page. */
  7334. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  7335. if (fd2 < 0)
  7336. return 4;
  7337. cdata2 = "";
  7338. if (write (fd2, cdata2, 1) != 1)
  7339. return 5;
  7340. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  7341. if (data2 == MAP_FAILED)
  7342. return 6;
  7343. for (i = 0; i < pagesize; ++i)
  7344. if (*(data2 + i))
  7345. return 7;
  7346. close (fd2);
  7347. if (munmap (data2, pagesize))
  7348. return 8;
  7349. /* Next, try to mmap the file at a fixed address which already has
  7350. something else allocated at it. If we can, also make sure that
  7351. we see the same garbage. */
  7352. fd = open ("conftest.mmap", O_RDWR);
  7353. if (fd < 0)
  7354. return 9;
  7355. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  7356. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  7357. return 10;
  7358. for (i = 0; i < pagesize; ++i)
  7359. if (*(data + i) != *(data2 + i))
  7360. return 11;
  7361. /* Finally, make sure that changes to the mapped area do not
  7362. percolate back to the file as seen by read(). (This is a bug on
  7363. some variants of i386 svr4.0.) */
  7364. for (i = 0; i < pagesize; ++i)
  7365. *(data2 + i) = *(data2 + i) + 1;
  7366. data3 = (char *) malloc (pagesize);
  7367. if (!data3)
  7368. return 12;
  7369. if (read (fd, data3, pagesize) != pagesize)
  7370. return 13;
  7371. for (i = 0; i < pagesize; ++i)
  7372. if (*(data + i) != *(data3 + i))
  7373. return 14;
  7374. close (fd);
  7375. return 0;
  7376. }
  7377. _ACEOF
  7378. if ac_fn_cxx_try_run "$LINENO"; then :
  7379. ac_cv_func_mmap_fixed_mapped=yes
  7380. else
  7381. ac_cv_func_mmap_fixed_mapped=no
  7382. fi
  7383. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7384. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7385. fi
  7386. fi
  7387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  7388. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  7389. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  7390. $as_echo "#define HAVE_MMAP 1" >>build/confdefs.h
  7391. fi
  7392. rm -f conftest.mmap conftest.txt
  7393. for ac_header in stdlib.h
  7394. do :
  7395. ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  7396. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  7397. cat >>build/confdefs.h <<_ACEOF
  7398. #define HAVE_STDLIB_H 1
  7399. _ACEOF
  7400. fi
  7401. done
  7402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
  7403. $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
  7404. if ${ac_cv_func_realloc_0_nonnull+:} false; then :
  7405. $as_echo_n "(cached) " >&6
  7406. else
  7407. if test "$cross_compiling" = yes; then :
  7408. ac_cv_func_realloc_0_nonnull=no
  7409. else
  7410. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7411. /* end build/confdefs.h. */
  7412. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  7413. # include <stdlib.h>
  7414. #else
  7415. char *realloc ();
  7416. #endif
  7417. int
  7418. main ()
  7419. {
  7420. return ! realloc (0, 0);
  7421. ;
  7422. return 0;
  7423. }
  7424. _ACEOF
  7425. if ac_fn_cxx_try_run "$LINENO"; then :
  7426. ac_cv_func_realloc_0_nonnull=yes
  7427. else
  7428. ac_cv_func_realloc_0_nonnull=no
  7429. fi
  7430. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7431. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7432. fi
  7433. fi
  7434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
  7435. $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
  7436. if test $ac_cv_func_realloc_0_nonnull = yes; then :
  7437. $as_echo "#define HAVE_REALLOC 1" >>build/confdefs.h
  7438. else
  7439. $as_echo "#define HAVE_REALLOC 0" >>build/confdefs.h
  7440. case " $LIBOBJS " in
  7441. *" realloc.$ac_objext "* ) ;;
  7442. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  7443. ;;
  7444. esac
  7445. $as_echo "#define realloc rpl_realloc" >>build/confdefs.h
  7446. fi
  7447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  7448. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  7449. if ${ac_cv_func_stat_empty_string_bug+:} false; then :
  7450. $as_echo_n "(cached) " >&6
  7451. else
  7452. if test "$cross_compiling" = yes; then :
  7453. ac_cv_func_stat_empty_string_bug=yes
  7454. else
  7455. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7456. /* end build/confdefs.h. */
  7457. $ac_includes_default
  7458. int
  7459. main ()
  7460. {
  7461. struct stat sbuf;
  7462. return stat ("", &sbuf) == 0;
  7463. ;
  7464. return 0;
  7465. }
  7466. _ACEOF
  7467. if ac_fn_cxx_try_run "$LINENO"; then :
  7468. ac_cv_func_stat_empty_string_bug=no
  7469. else
  7470. ac_cv_func_stat_empty_string_bug=yes
  7471. fi
  7472. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7473. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7474. fi
  7475. fi
  7476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  7477. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  7478. if test $ac_cv_func_stat_empty_string_bug = yes; then
  7479. case " $LIBOBJS " in
  7480. *" stat.$ac_objext "* ) ;;
  7481. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  7482. ;;
  7483. esac
  7484. cat >>build/confdefs.h <<_ACEOF
  7485. #define HAVE_STAT_EMPTY_STRING_BUG 1
  7486. _ACEOF
  7487. fi
  7488. ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
  7489. #include <sys/time.h>
  7490. #include <time.h>
  7491. "
  7492. if test "x$ac_cv_type_struct_timespec" = xyes; then :
  7493. $as_echo "#define HAVE_TIMESPEC 1" >>build/confdefs.h
  7494. fi
  7495. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  7496. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
  7497. if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
  7498. $as_echo "#define HAVE_ST_MTIM 1" >>build/confdefs.h
  7499. else
  7500. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
  7501. if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
  7502. $as_echo "#define HAVE_ST_MTIMESPEC 1" >>build/confdefs.h
  7503. fi
  7504. fi
  7505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-parameter timespecsub" >&5
  7506. $as_echo_n "checking for two-parameter timespecsub... " >&6; }
  7507. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7508. /* end build/confdefs.h. */
  7509. #include <sys/types.h>
  7510. #include <sys/time.h>
  7511. int
  7512. main ()
  7513. {
  7514. struct timespec ts1, ts2;
  7515. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  7516. #ifndef timespecsub
  7517. #error missing timespecsub
  7518. #endif
  7519. timespecsub(&ts1, &ts2);
  7520. ;
  7521. return 0;
  7522. }
  7523. _ACEOF
  7524. if ac_fn_cxx_try_compile "$LINENO"; then :
  7525. $as_echo "#define HAVE_TIMESPECSUB2 1" >>build/confdefs.h
  7526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7527. $as_echo "yes" >&6; }
  7528. else
  7529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7530. $as_echo "no" >&6; }
  7531. fi
  7532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7533. fi
  7534. for ac_func in strftime
  7535. do :
  7536. ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  7537. if test "x$ac_cv_func_strftime" = xyes; then :
  7538. cat >>build/confdefs.h <<_ACEOF
  7539. #define HAVE_STRFTIME 1
  7540. _ACEOF
  7541. else
  7542. # strftime is in -lintl on SCO UNIX.
  7543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  7544. $as_echo_n "checking for strftime in -lintl... " >&6; }
  7545. if ${ac_cv_lib_intl_strftime+:} false; then :
  7546. $as_echo_n "(cached) " >&6
  7547. else
  7548. ac_check_lib_save_LIBS=$LIBS
  7549. LIBS="-lintl $LIBS"
  7550. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7551. /* end build/confdefs.h. */
  7552. /* Override any GCC internal prototype to avoid an error.
  7553. Use char because int might match the return type of a GCC
  7554. builtin and then its argument prototype would still apply. */
  7555. #ifdef __cplusplus
  7556. extern "C"
  7557. #endif
  7558. char strftime ();
  7559. int
  7560. main ()
  7561. {
  7562. return strftime ();
  7563. ;
  7564. return 0;
  7565. }
  7566. _ACEOF
  7567. if ac_fn_cxx_try_link "$LINENO"; then :
  7568. ac_cv_lib_intl_strftime=yes
  7569. else
  7570. ac_cv_lib_intl_strftime=no
  7571. fi
  7572. rm -f core conftest.err conftest.$ac_objext \
  7573. conftest$ac_exeext conftest.$ac_ext
  7574. LIBS=$ac_check_lib_save_LIBS
  7575. fi
  7576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  7577. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  7578. if test "x$ac_cv_lib_intl_strftime" = xyes; then :
  7579. $as_echo "#define HAVE_STRFTIME 1" >>build/confdefs.h
  7580. LIBS="-lintl $LIBS"
  7581. fi
  7582. fi
  7583. done
  7584. #checkpoint
  7585. cat >confcache <<\_ACEOF
  7586. # This file is a shell script that caches the results of configure
  7587. # tests run on this system so they can be shared between configure
  7588. # scripts and configure runs, see configure's option --config-cache.
  7589. # It is not useful on other systems. If it contains results you don't
  7590. # want to keep, you may remove or edit it.
  7591. #
  7592. # build/config.status only pays attention to the cache file if you give it
  7593. # the --recheck option to rerun configure.
  7594. #
  7595. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7596. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7597. # following values.
  7598. _ACEOF
  7599. # The following way of writing the cache mishandles newlines in values,
  7600. # but we know of no workaround that is simple, portable, and efficient.
  7601. # So, we kill variables containing newlines.
  7602. # Ultrix sh set writes to stderr and can't be redirected directly,
  7603. # and sets the high bit in the cache file unless we assign to the vars.
  7604. (
  7605. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7606. eval ac_val=\$$ac_var
  7607. case $ac_val in #(
  7608. *${as_nl}*)
  7609. case $ac_var in #(
  7610. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7611. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7612. esac
  7613. case $ac_var in #(
  7614. _ | IFS | as_nl) ;; #(
  7615. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7616. *) { eval $ac_var=; unset $ac_var;} ;;
  7617. esac ;;
  7618. esac
  7619. done
  7620. (set) 2>&1 |
  7621. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7622. *${as_nl}ac_space=\ *)
  7623. # `set' does not quote correctly, so add quotes: double-quote
  7624. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7625. sed -n \
  7626. "s/'/'\\\\''/g;
  7627. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7628. ;; #(
  7629. *)
  7630. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7631. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7632. ;;
  7633. esac |
  7634. sort
  7635. ) |
  7636. sed '
  7637. /^ac_cv_env_/b end
  7638. t clear
  7639. :clear
  7640. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7641. t end
  7642. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7643. :end' >>confcache
  7644. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7645. if test -w "$cache_file"; then
  7646. if test "x$cache_file" != "x/dev/null"; then
  7647. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7648. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7649. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7650. cat confcache >"$cache_file"
  7651. else
  7652. case $cache_file in #(
  7653. */* | ?:*)
  7654. mv -f confcache "$cache_file"$$ &&
  7655. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7656. *)
  7657. mv -f confcache "$cache_file" ;;
  7658. esac
  7659. fi
  7660. fi
  7661. else
  7662. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7663. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7664. fi
  7665. fi
  7666. rm -f confcache
  7667. for ac_func in clock fsync getrusage isascii getpassphrase posix_madvise madvise
  7668. do :
  7669. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7670. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7671. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7672. cat >>build/confdefs.h <<_ACEOF
  7673. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7674. _ACEOF
  7675. fi
  7676. done
  7677. for ac_func in memcpy memmem memset random rename snprintf srandom gettime
  7678. do :
  7679. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7680. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7681. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7682. cat >>build/confdefs.h <<_ACEOF
  7683. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7684. _ACEOF
  7685. fi
  7686. done
  7687. #checkpoint
  7688. cat >confcache <<\_ACEOF
  7689. # This file is a shell script that caches the results of configure
  7690. # tests run on this system so they can be shared between configure
  7691. # scripts and configure runs, see configure's option --config-cache.
  7692. # It is not useful on other systems. If it contains results you don't
  7693. # want to keep, you may remove or edit it.
  7694. #
  7695. # build/config.status only pays attention to the cache file if you give it
  7696. # the --recheck option to rerun configure.
  7697. #
  7698. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7699. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7700. # following values.
  7701. _ACEOF
  7702. # The following way of writing the cache mishandles newlines in values,
  7703. # but we know of no workaround that is simple, portable, and efficient.
  7704. # So, we kill variables containing newlines.
  7705. # Ultrix sh set writes to stderr and can't be redirected directly,
  7706. # and sets the high bit in the cache file unless we assign to the vars.
  7707. (
  7708. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7709. eval ac_val=\$$ac_var
  7710. case $ac_val in #(
  7711. *${as_nl}*)
  7712. case $ac_var in #(
  7713. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7714. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7715. esac
  7716. case $ac_var in #(
  7717. _ | IFS | as_nl) ;; #(
  7718. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7719. *) { eval $ac_var=; unset $ac_var;} ;;
  7720. esac ;;
  7721. esac
  7722. done
  7723. (set) 2>&1 |
  7724. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7725. *${as_nl}ac_space=\ *)
  7726. # `set' does not quote correctly, so add quotes: double-quote
  7727. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7728. sed -n \
  7729. "s/'/'\\\\''/g;
  7730. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7731. ;; #(
  7732. *)
  7733. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7734. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7735. ;;
  7736. esac |
  7737. sort
  7738. ) |
  7739. sed '
  7740. /^ac_cv_env_/b end
  7741. t clear
  7742. :clear
  7743. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7744. t end
  7745. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7746. :end' >>confcache
  7747. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7748. if test -w "$cache_file"; then
  7749. if test "x$cache_file" != "x/dev/null"; then
  7750. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7751. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7752. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7753. cat confcache >"$cache_file"
  7754. else
  7755. case $cache_file in #(
  7756. */* | ?:*)
  7757. mv -f confcache "$cache_file"$$ &&
  7758. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7759. *)
  7760. mv -f confcache "$cache_file" ;;
  7761. esac
  7762. fi
  7763. fi
  7764. else
  7765. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7766. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7767. fi
  7768. fi
  7769. rm -f confcache
  7770. for ac_func in strcasecmp strncasecmp vsnprintf inet_ntop
  7771. do :
  7772. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7773. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7774. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7775. cat >>build/confdefs.h <<_ACEOF
  7776. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7777. _ACEOF
  7778. fi
  7779. done
  7780. #autoscan suggested this....
  7781. #These are recommended by autoscan, but no code supports it currently
  7782. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostname getpass gettimeofday mbrlen
  7783. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  7784. for ac_func in vsprintf
  7785. do :
  7786. ac_fn_cxx_check_func "$LINENO" "vsprintf" "ac_cv_func_vsprintf"
  7787. if test "x$ac_cv_func_vsprintf" = xyes; then :
  7788. cat >>build/confdefs.h <<_ACEOF
  7789. #define HAVE_VSPRINTF 1
  7790. _ACEOF
  7791. fi
  7792. done
  7793. if test "$ac_cv_func_vsprintf" = "no"
  7794. then
  7795. cat << 'EOF' >&2
  7796. configure: error:
  7797. Your system does not have the sprintf/vsprintf libraries.
  7798. These are required to compile almost anything. Sorry.
  7799. EOF
  7800. exit 1
  7801. fi
  7802. for ac_func in uname
  7803. do :
  7804. ac_fn_cxx_check_func "$LINENO" "uname" "ac_cv_func_uname"
  7805. if test "x$ac_cv_func_uname" = xyes; then :
  7806. cat >>build/confdefs.h <<_ACEOF
  7807. #define HAVE_UNAME 1
  7808. _ACEOF
  7809. fi
  7810. done
  7811. if test "$ac_cv_func_uname" = "no"
  7812. then
  7813. cat << 'EOF' >&2
  7814. configure: error:
  7815. Your system does not have the uname() function.
  7816. This is required for the botpack.
  7817. EOF
  7818. exit 1
  7819. fi
  7820. # Make sure we have stdc headers, since we can't compile without them
  7821. if test "$ac_cv_header_stdc" = "no"
  7822. then
  7823. cat << 'EOF' >&2
  7824. configure: error:
  7825. Your system must support ANSI C Header files.
  7826. These are required for the language support. Sorry.
  7827. EOF
  7828. exit 1
  7829. fi
  7830. #checkpoint
  7831. cat >confcache <<\_ACEOF
  7832. # This file is a shell script that caches the results of configure
  7833. # tests run on this system so they can be shared between configure
  7834. # scripts and configure runs, see configure's option --config-cache.
  7835. # It is not useful on other systems. If it contains results you don't
  7836. # want to keep, you may remove or edit it.
  7837. #
  7838. # build/config.status only pays attention to the cache file if you give it
  7839. # the --recheck option to rerun configure.
  7840. #
  7841. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7842. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7843. # following values.
  7844. _ACEOF
  7845. # The following way of writing the cache mishandles newlines in values,
  7846. # but we know of no workaround that is simple, portable, and efficient.
  7847. # So, we kill variables containing newlines.
  7848. # Ultrix sh set writes to stderr and can't be redirected directly,
  7849. # and sets the high bit in the cache file unless we assign to the vars.
  7850. (
  7851. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7852. eval ac_val=\$$ac_var
  7853. case $ac_val in #(
  7854. *${as_nl}*)
  7855. case $ac_var in #(
  7856. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7857. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7858. esac
  7859. case $ac_var in #(
  7860. _ | IFS | as_nl) ;; #(
  7861. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7862. *) { eval $ac_var=; unset $ac_var;} ;;
  7863. esac ;;
  7864. esac
  7865. done
  7866. (set) 2>&1 |
  7867. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7868. *${as_nl}ac_space=\ *)
  7869. # `set' does not quote correctly, so add quotes: double-quote
  7870. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7871. sed -n \
  7872. "s/'/'\\\\''/g;
  7873. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7874. ;; #(
  7875. *)
  7876. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7877. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7878. ;;
  7879. esac |
  7880. sort
  7881. ) |
  7882. sed '
  7883. /^ac_cv_env_/b end
  7884. t clear
  7885. :clear
  7886. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7887. t end
  7888. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7889. :end' >>confcache
  7890. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7891. if test -w "$cache_file"; then
  7892. if test "x$cache_file" != "x/dev/null"; then
  7893. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7894. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7895. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7896. cat confcache >"$cache_file"
  7897. else
  7898. case $cache_file in #(
  7899. */* | ?:*)
  7900. mv -f confcache "$cache_file"$$ &&
  7901. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7902. *)
  7903. mv -f confcache "$cache_file" ;;
  7904. esac
  7905. fi
  7906. fi
  7907. else
  7908. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7909. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7910. fi
  7911. fi
  7912. rm -f confcache
  7913. VERSION=`grep "char" $srcdir/src/main.cc | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  7914. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  7915. cat >>build/confdefs.h <<_ACEOF
  7916. #define EGG_VERSION $version_num
  7917. _ACEOF
  7918. #FIND_WRAPS
  7919. case "$srcdir" in
  7920. [\\/]* | ?:[\\/]*)
  7921. MOD_UPDIR=""
  7922. ;;
  7923. *)
  7924. MOD_UPDIR="../"
  7925. ;;
  7926. esac
  7927. files="src/Makefile.in src/compat/Makefile.in src/crypto/Makefile.in src/mod/channels.mod/Makefile src/mod/compress.mod/Makefile src/mod/console.mod/Makefile src/mod/ctcp.mod/Makefile src/mod/irc.mod/Makefile src/mod/server.mod/Makefile src/mod/share.mod/Makefile src/mod/transfer.mod/Makefile src/mod/update.mod/Makefile"
  7928. for mf in $files; do
  7929. # Strip MF so we end up with the name of the file.
  7930. mf=${mf%%:*}
  7931. dirpart=${mf%/*}
  7932. rm -f "$dirpart/.deps/includes"
  7933. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  7934. for file in `sed -n -e '
  7935. /^OBJS = .*\\\\$/ {
  7936. s/^OBJS = //
  7937. :loop
  7938. s/\\\\$//
  7939. p
  7940. n
  7941. /\\\\$/ b loop
  7942. p
  7943. }
  7944. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  7945. do
  7946. suffix=${file##*.}
  7947. base=${file%%.*}
  7948. test -f "$dirpart/$base.cc" || test -f "$dirpart/$base.c" || continue
  7949. if ! test -f "$dirpart/.deps/$base.Po"; then
  7950. echo '# dummy' > "$dirpart/.deps/$base.Po"
  7951. #Remove the .o file, because it needs to be recompiled for its dependancies.
  7952. if test -f "$dirpart/${base}.${suffix}"; then
  7953. rm -f "$dirpart/${base}.${suffix}"
  7954. fi
  7955. fi
  7956. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  7957. done
  7958. done
  7959. ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/buildinfo.h"
  7960. GIT_REQUIRED=1
  7961. if [ "$GIT_REQUIRED" = "1" ]; then
  7962. if ! test -d .git; then
  7963. echo ""
  7964. echo ""
  7965. echo "You have downloaded a GIT version of wraith."
  7966. echo "Either 'git clone' from a git repository or download a source tarball"
  7967. echo "A distribution version can be found at http://wraith.botpack.net/wiki/Download"
  7968. echo ""
  7969. echo ""
  7970. exit 1
  7971. fi
  7972. fi
  7973. if test -d .git; then
  7974. git submodule init
  7975. git submodule update
  7976. git submodule foreach --recursive git clean -fdx
  7977. fi
  7978. if [ -f lib/bdlib/configure ]; then
  7979. subdirs="$subdirs lib/bdlib"
  7980. fi
  7981. if [ -n "${LIBELF_BUNDLED}" ] && [ -f lib/libelf/configure ]; then
  7982. subdirs="$subdirs lib/libelf"
  7983. fi
  7984. cat >confcache <<\_ACEOF
  7985. # This file is a shell script that caches the results of configure
  7986. # tests run on this system so they can be shared between configure
  7987. # scripts and configure runs, see configure's option --config-cache.
  7988. # It is not useful on other systems. If it contains results you don't
  7989. # want to keep, you may remove or edit it.
  7990. #
  7991. # build/config.status only pays attention to the cache file if you give it
  7992. # the --recheck option to rerun configure.
  7993. #
  7994. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7995. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7996. # following values.
  7997. _ACEOF
  7998. # The following way of writing the cache mishandles newlines in values,
  7999. # but we know of no workaround that is simple, portable, and efficient.
  8000. # So, we kill variables containing newlines.
  8001. # Ultrix sh set writes to stderr and can't be redirected directly,
  8002. # and sets the high bit in the cache file unless we assign to the vars.
  8003. (
  8004. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8005. eval ac_val=\$$ac_var
  8006. case $ac_val in #(
  8007. *${as_nl}*)
  8008. case $ac_var in #(
  8009. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  8010. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  8011. esac
  8012. case $ac_var in #(
  8013. _ | IFS | as_nl) ;; #(
  8014. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  8015. *) { eval $ac_var=; unset $ac_var;} ;;
  8016. esac ;;
  8017. esac
  8018. done
  8019. (set) 2>&1 |
  8020. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8021. *${as_nl}ac_space=\ *)
  8022. # `set' does not quote correctly, so add quotes: double-quote
  8023. # substitution turns \\\\ into \\, and sed turns \\ into \.
  8024. sed -n \
  8025. "s/'/'\\\\''/g;
  8026. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8027. ;; #(
  8028. *)
  8029. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8030. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8031. ;;
  8032. esac |
  8033. sort
  8034. ) |
  8035. sed '
  8036. /^ac_cv_env_/b end
  8037. t clear
  8038. :clear
  8039. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8040. t end
  8041. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8042. :end' >>confcache
  8043. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8044. if test -w "$cache_file"; then
  8045. if test "x$cache_file" != "x/dev/null"; then
  8046. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  8047. $as_echo "$as_me: updating cache $cache_file" >&6;}
  8048. if test ! -f "$cache_file" || test -h "$cache_file"; then
  8049. cat confcache >"$cache_file"
  8050. else
  8051. case $cache_file in #(
  8052. */* | ?:*)
  8053. mv -f confcache "$cache_file"$$ &&
  8054. mv -f "$cache_file"$$ "$cache_file" ;; #(
  8055. *)
  8056. mv -f confcache "$cache_file" ;;
  8057. esac
  8058. fi
  8059. fi
  8060. else
  8061. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  8062. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  8063. fi
  8064. fi
  8065. rm -f confcache
  8066. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8067. # Let make expand exec_prefix.
  8068. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8069. DEFS=-DHAVE_CONFIG_H
  8070. ac_libobjs=
  8071. ac_ltlibobjs=
  8072. U=
  8073. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8074. # 1. Remove the extension, and $U if already installed.
  8075. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  8076. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  8077. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  8078. # will be set to the directory where LIBOBJS objects are built.
  8079. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  8080. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  8081. done
  8082. LIBOBJS=$ac_libobjs
  8083. LTLIBOBJS=$ac_ltlibobjs
  8084. : "${CONFIG_STATUS=./build/config.status}"
  8085. ac_write_fail=0
  8086. ac_clean_files_save=$ac_clean_files
  8087. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8088. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  8089. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8090. as_write_fail=0
  8091. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  8092. #! $SHELL
  8093. # Generated by $as_me.
  8094. # Run this file to recreate the current configuration.
  8095. # Compiler output produced by configure, useful for debugging
  8096. # configure, is in build/config.log if it exists.
  8097. debug=false
  8098. ac_cs_recheck=false
  8099. ac_cs_silent=false
  8100. SHELL=\${CONFIG_SHELL-$SHELL}
  8101. export SHELL
  8102. _ASEOF
  8103. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  8104. ## -------------------- ##
  8105. ## M4sh Initialization. ##
  8106. ## -------------------- ##
  8107. # Be more Bourne compatible
  8108. DUALCASE=1; export DUALCASE # for MKS sh
  8109. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  8110. emulate sh
  8111. NULLCMD=:
  8112. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  8113. # is contrary to our usage. Disable this feature.
  8114. alias -g '${1+"$@"}'='"$@"'
  8115. setopt NO_GLOB_SUBST
  8116. else
  8117. case `(set -o) 2>/dev/null` in #(
  8118. *posix*) :
  8119. set -o posix ;; #(
  8120. *) :
  8121. ;;
  8122. esac
  8123. fi
  8124. as_nl='
  8125. '
  8126. export as_nl
  8127. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  8128. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  8129. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  8130. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  8131. # Prefer a ksh shell builtin over an external printf program on Solaris,
  8132. # but without wasting forks for bash or zsh.
  8133. if test -z "$BASH_VERSION$ZSH_VERSION" \
  8134. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  8135. as_echo='print -r --'
  8136. as_echo_n='print -rn --'
  8137. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  8138. as_echo='printf %s\n'
  8139. as_echo_n='printf %s'
  8140. else
  8141. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  8142. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  8143. as_echo_n='/usr/ucb/echo -n'
  8144. else
  8145. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  8146. as_echo_n_body='eval
  8147. arg=$1;
  8148. case $arg in #(
  8149. *"$as_nl"*)
  8150. expr "X$arg" : "X\\(.*\\)$as_nl";
  8151. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  8152. esac;
  8153. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  8154. '
  8155. export as_echo_n_body
  8156. as_echo_n='sh -c $as_echo_n_body as_echo'
  8157. fi
  8158. export as_echo_body
  8159. as_echo='sh -c $as_echo_body as_echo'
  8160. fi
  8161. # The user is always right.
  8162. if test "${PATH_SEPARATOR+set}" != set; then
  8163. PATH_SEPARATOR=:
  8164. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  8165. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  8166. PATH_SEPARATOR=';'
  8167. }
  8168. fi
  8169. # IFS
  8170. # We need space, tab and new line, in precisely that order. Quoting is
  8171. # there to prevent editors from complaining about space-tab.
  8172. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  8173. # splitting by setting IFS to empty value.)
  8174. IFS=" "" $as_nl"
  8175. # Find who we are. Look in the path if we contain no directory separator.
  8176. as_myself=
  8177. case $0 in #((
  8178. *[\\/]* ) as_myself=$0 ;;
  8179. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8180. for as_dir in $PATH
  8181. do
  8182. IFS=$as_save_IFS
  8183. test -z "$as_dir" && as_dir=.
  8184. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8185. done
  8186. IFS=$as_save_IFS
  8187. ;;
  8188. esac
  8189. # We did not find ourselves, most probably we were run as `sh COMMAND'
  8190. # in which case we are not to be found in the path.
  8191. if test "x$as_myself" = x; then
  8192. as_myself=$0
  8193. fi
  8194. if test ! -f "$as_myself"; then
  8195. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  8196. exit 1
  8197. fi
  8198. # Unset variables that we do not need and which cause bugs (e.g. in
  8199. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  8200. # suppresses any "Segmentation fault" message there. '((' could
  8201. # trigger a bug in pdksh 5.2.14.
  8202. for as_var in BASH_ENV ENV MAIL MAILPATH
  8203. do eval test x\${$as_var+set} = xset \
  8204. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  8205. done
  8206. PS1='$ '
  8207. PS2='> '
  8208. PS4='+ '
  8209. # NLS nuisances.
  8210. LC_ALL=C
  8211. export LC_ALL
  8212. LANGUAGE=C
  8213. export LANGUAGE
  8214. # CDPATH.
  8215. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8216. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  8217. # ----------------------------------------
  8218. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  8219. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  8220. # script with STATUS, using 1 if that was 0.
  8221. as_fn_error ()
  8222. {
  8223. as_status=$1; test $as_status -eq 0 && as_status=1
  8224. if test "$4"; then
  8225. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  8226. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  8227. fi
  8228. $as_echo "$as_me: error: $2" >&2
  8229. as_fn_exit $as_status
  8230. } # as_fn_error
  8231. # as_fn_set_status STATUS
  8232. # -----------------------
  8233. # Set $? to STATUS, without forking.
  8234. as_fn_set_status ()
  8235. {
  8236. return $1
  8237. } # as_fn_set_status
  8238. # as_fn_exit STATUS
  8239. # -----------------
  8240. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  8241. as_fn_exit ()
  8242. {
  8243. set +e
  8244. as_fn_set_status $1
  8245. exit $1
  8246. } # as_fn_exit
  8247. # as_fn_unset VAR
  8248. # ---------------
  8249. # Portably unset VAR.
  8250. as_fn_unset ()
  8251. {
  8252. { eval $1=; unset $1;}
  8253. }
  8254. as_unset=as_fn_unset
  8255. # as_fn_append VAR VALUE
  8256. # ----------------------
  8257. # Append the text in VALUE to the end of the definition contained in VAR. Take
  8258. # advantage of any shell optimizations that allow amortized linear growth over
  8259. # repeated appends, instead of the typical quadratic growth present in naive
  8260. # implementations.
  8261. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  8262. eval 'as_fn_append ()
  8263. {
  8264. eval $1+=\$2
  8265. }'
  8266. else
  8267. as_fn_append ()
  8268. {
  8269. eval $1=\$$1\$2
  8270. }
  8271. fi # as_fn_append
  8272. # as_fn_arith ARG...
  8273. # ------------------
  8274. # Perform arithmetic evaluation on the ARGs, and store the result in the
  8275. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  8276. # must be portable across $(()) and expr.
  8277. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  8278. eval 'as_fn_arith ()
  8279. {
  8280. as_val=$(( $* ))
  8281. }'
  8282. else
  8283. as_fn_arith ()
  8284. {
  8285. as_val=`expr "$@" || test $? -eq 1`
  8286. }
  8287. fi # as_fn_arith
  8288. if expr a : '\(a\)' >/dev/null 2>&1 &&
  8289. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  8290. as_expr=expr
  8291. else
  8292. as_expr=false
  8293. fi
  8294. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  8295. as_basename=basename
  8296. else
  8297. as_basename=false
  8298. fi
  8299. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  8300. as_dirname=dirname
  8301. else
  8302. as_dirname=false
  8303. fi
  8304. as_me=`$as_basename -- "$0" ||
  8305. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8306. X"$0" : 'X\(//\)$' \| \
  8307. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  8308. $as_echo X/"$0" |
  8309. sed '/^.*\/\([^/][^/]*\)\/*$/{
  8310. s//\1/
  8311. q
  8312. }
  8313. /^X\/\(\/\/\)$/{
  8314. s//\1/
  8315. q
  8316. }
  8317. /^X\/\(\/\).*/{
  8318. s//\1/
  8319. q
  8320. }
  8321. s/.*/./; q'`
  8322. # Avoid depending upon Character Ranges.
  8323. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8324. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8325. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8326. as_cr_digits='0123456789'
  8327. as_cr_alnum=$as_cr_Letters$as_cr_digits
  8328. ECHO_C= ECHO_N= ECHO_T=
  8329. case `echo -n x` in #(((((
  8330. -n*)
  8331. case `echo 'xy\c'` in
  8332. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  8333. xy) ECHO_C='\c';;
  8334. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  8335. ECHO_T=' ';;
  8336. esac;;
  8337. *)
  8338. ECHO_N='-n';;
  8339. esac
  8340. rm -f conf$$ conf$$.exe conf$$.file
  8341. if test -d conf$$.dir; then
  8342. rm -f conf$$.dir/conf$$.file
  8343. else
  8344. rm -f conf$$.dir
  8345. mkdir conf$$.dir 2>/dev/null
  8346. fi
  8347. if (echo >conf$$.file) 2>/dev/null; then
  8348. if ln -s conf$$.file conf$$ 2>/dev/null; then
  8349. as_ln_s='ln -s'
  8350. # ... but there are two gotchas:
  8351. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  8352. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  8353. # In both cases, we have to default to `cp -pR'.
  8354. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  8355. as_ln_s='cp -pR'
  8356. elif ln conf$$.file conf$$ 2>/dev/null; then
  8357. as_ln_s=ln
  8358. else
  8359. as_ln_s='cp -pR'
  8360. fi
  8361. else
  8362. as_ln_s='cp -pR'
  8363. fi
  8364. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  8365. rmdir conf$$.dir 2>/dev/null
  8366. # as_fn_mkdir_p
  8367. # -------------
  8368. # Create "$as_dir" as a directory, including parents if necessary.
  8369. as_fn_mkdir_p ()
  8370. {
  8371. case $as_dir in #(
  8372. -*) as_dir=./$as_dir;;
  8373. esac
  8374. test -d "$as_dir" || eval $as_mkdir_p || {
  8375. as_dirs=
  8376. while :; do
  8377. case $as_dir in #(
  8378. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  8379. *) as_qdir=$as_dir;;
  8380. esac
  8381. as_dirs="'$as_qdir' $as_dirs"
  8382. as_dir=`$as_dirname -- "$as_dir" ||
  8383. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8384. X"$as_dir" : 'X\(//\)[^/]' \| \
  8385. X"$as_dir" : 'X\(//\)$' \| \
  8386. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  8387. $as_echo X"$as_dir" |
  8388. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8389. s//\1/
  8390. q
  8391. }
  8392. /^X\(\/\/\)[^/].*/{
  8393. s//\1/
  8394. q
  8395. }
  8396. /^X\(\/\/\)$/{
  8397. s//\1/
  8398. q
  8399. }
  8400. /^X\(\/\).*/{
  8401. s//\1/
  8402. q
  8403. }
  8404. s/.*/./; q'`
  8405. test -d "$as_dir" && break
  8406. done
  8407. test -z "$as_dirs" || eval "mkdir $as_dirs"
  8408. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  8409. } # as_fn_mkdir_p
  8410. if mkdir -p . 2>/dev/null; then
  8411. as_mkdir_p='mkdir -p "$as_dir"'
  8412. else
  8413. test -d ./-p && rmdir ./-p
  8414. as_mkdir_p=false
  8415. fi
  8416. # as_fn_executable_p FILE
  8417. # -----------------------
  8418. # Test if FILE is an executable regular file.
  8419. as_fn_executable_p ()
  8420. {
  8421. test -f "$1" && test -x "$1"
  8422. } # as_fn_executable_p
  8423. as_test_x='test -x'
  8424. as_executable_p=as_fn_executable_p
  8425. # Sed expression to map a string onto a valid CPP name.
  8426. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8427. # Sed expression to map a string onto a valid variable name.
  8428. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8429. exec 6>&1
  8430. ## ----------------------------------- ##
  8431. ## Main body of $CONFIG_STATUS script. ##
  8432. ## ----------------------------------- ##
  8433. _ASEOF
  8434. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  8435. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8436. # Save the log message, to keep $0 and so on meaningful, and to
  8437. # report actual input values of CONFIG_FILES etc. instead of their
  8438. # values after options handling.
  8439. ac_log="
  8440. This file was extended by $as_me, which was
  8441. generated by GNU Autoconf 2.69. Invocation command line was
  8442. CONFIG_FILES = $CONFIG_FILES
  8443. CONFIG_HEADERS = $CONFIG_HEADERS
  8444. CONFIG_LINKS = $CONFIG_LINKS
  8445. CONFIG_COMMANDS = $CONFIG_COMMANDS
  8446. $ $0 $@
  8447. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  8448. "
  8449. _ACEOF
  8450. case $ac_config_files in *"
  8451. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  8452. esac
  8453. case $ac_config_headers in *"
  8454. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  8455. esac
  8456. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8457. # Files that build/config.status was made for.
  8458. config_files="$ac_config_files"
  8459. config_headers="$ac_config_headers"
  8460. _ACEOF
  8461. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8462. ac_cs_usage="\
  8463. \`$as_me' instantiates files and other configuration actions
  8464. from templates according to the current configuration. Unless the files
  8465. and actions are specified as TAGs, all are instantiated by default.
  8466. Usage: $0 [OPTION]... [TAG]...
  8467. -h, --help print this help, then exit
  8468. -V, --version print version number and configuration settings, then exit
  8469. --config print configuration, then exit
  8470. -q, --quiet, --silent
  8471. do not print progress messages
  8472. -d, --debug don't remove temporary files
  8473. --recheck update $as_me by reconfiguring in the same conditions
  8474. --file=FILE[:TEMPLATE]
  8475. instantiate the configuration file FILE
  8476. --header=FILE[:TEMPLATE]
  8477. instantiate the configuration header FILE
  8478. Configuration files:
  8479. $config_files
  8480. Configuration headers:
  8481. $config_headers
  8482. Report bugs to the package provider."
  8483. _ACEOF
  8484. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8485. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  8486. ac_cs_version="\\
  8487. build/config.status
  8488. configured by $0, generated by GNU Autoconf 2.69,
  8489. with options \\"\$ac_cs_config\\"
  8490. Copyright (C) 2012 Free Software Foundation, Inc.
  8491. This build/config.status script is free software; the Free Software Foundation
  8492. gives unlimited permission to copy, distribute and modify it."
  8493. ac_pwd='$ac_pwd'
  8494. srcdir='$srcdir'
  8495. AWK='$AWK'
  8496. test -n "\$AWK" || AWK=awk
  8497. _ACEOF
  8498. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8499. # The default lists apply if the user does not specify any file.
  8500. ac_need_defaults=:
  8501. while test $# != 0
  8502. do
  8503. case $1 in
  8504. --*=?*)
  8505. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8506. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  8507. ac_shift=:
  8508. ;;
  8509. --*=)
  8510. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8511. ac_optarg=
  8512. ac_shift=:
  8513. ;;
  8514. *)
  8515. ac_option=$1
  8516. ac_optarg=$2
  8517. ac_shift=shift
  8518. ;;
  8519. esac
  8520. case $ac_option in
  8521. # Handling of the options.
  8522. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8523. ac_cs_recheck=: ;;
  8524. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  8525. $as_echo "$ac_cs_version"; exit ;;
  8526. --config | --confi | --conf | --con | --co | --c )
  8527. $as_echo "$ac_cs_config"; exit ;;
  8528. --debug | --debu | --deb | --de | --d | -d )
  8529. debug=: ;;
  8530. --file | --fil | --fi | --f )
  8531. $ac_shift
  8532. case $ac_optarg in
  8533. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8534. '') as_fn_error $? "missing file argument" ;;
  8535. esac
  8536. as_fn_append CONFIG_FILES " '$ac_optarg'"
  8537. ac_need_defaults=false;;
  8538. --header | --heade | --head | --hea )
  8539. $ac_shift
  8540. case $ac_optarg in
  8541. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8542. esac
  8543. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  8544. ac_need_defaults=false;;
  8545. --he | --h)
  8546. # Conflict between --help and --header
  8547. as_fn_error $? "ambiguous option: \`$1'
  8548. Try \`$0 --help' for more information.";;
  8549. --help | --hel | -h )
  8550. $as_echo "$ac_cs_usage"; exit ;;
  8551. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8552. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  8553. ac_cs_silent=: ;;
  8554. # This is an error.
  8555. -*) as_fn_error $? "unrecognized option: \`$1'
  8556. Try \`$0 --help' for more information." ;;
  8557. *) as_fn_append ac_config_targets " $1"
  8558. ac_need_defaults=false ;;
  8559. esac
  8560. shift
  8561. done
  8562. ac_configure_extra_args=
  8563. if $ac_cs_silent; then
  8564. exec 6>/dev/null
  8565. ac_configure_extra_args="$ac_configure_extra_args --silent"
  8566. fi
  8567. _ACEOF
  8568. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8569. if \$ac_cs_recheck; then
  8570. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8571. shift
  8572. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  8573. CONFIG_SHELL='$SHELL'
  8574. export CONFIG_SHELL
  8575. exec "\$@"
  8576. fi
  8577. _ACEOF
  8578. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8579. exec 5>>build/config.log
  8580. {
  8581. echo
  8582. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8583. ## Running $as_me. ##
  8584. _ASBOX
  8585. $as_echo "$ac_log"
  8586. } >&5
  8587. _ACEOF
  8588. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8589. _ACEOF
  8590. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8591. # Handling of arguments.
  8592. for ac_config_target in $ac_config_targets
  8593. do
  8594. case $ac_config_target in
  8595. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  8596. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8597. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  8598. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  8599. "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  8600. "src/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  8601. "src/mod/Makefile") CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  8602. "src/buildinfo.h") CONFIG_FILES="$CONFIG_FILES src/buildinfo.h" ;;
  8603. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  8604. esac
  8605. done
  8606. # If the user did not use the arguments to specify the items to instantiate,
  8607. # then the envvar interface is used. Set only those that are not.
  8608. # We use the long form for the default assignment because of an extremely
  8609. # bizarre bug on SunOS 4.1.3.
  8610. if $ac_need_defaults; then
  8611. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  8612. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  8613. fi
  8614. # Have a temporary directory for convenience. Make it in the build tree
  8615. # simply because there is no reason against having it here, and in addition,
  8616. # creating and moving files from /tmp can sometimes cause problems.
  8617. # Hook for its removal unless debugging.
  8618. # Note that there is a small window in which the directory will not be cleaned:
  8619. # after its creation but before its name has been assigned to `$tmp'.
  8620. $debug ||
  8621. {
  8622. tmp= ac_tmp=
  8623. trap 'exit_status=$?
  8624. : "${ac_tmp:=$tmp}"
  8625. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  8626. ' 0
  8627. trap 'as_fn_exit 1' 1 2 13 15
  8628. }
  8629. # Create a (secure) tmp directory for tmp files.
  8630. {
  8631. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  8632. test -d "$tmp"
  8633. } ||
  8634. {
  8635. tmp=./conf$$-$RANDOM
  8636. (umask 077 && mkdir "$tmp")
  8637. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  8638. ac_tmp=$tmp
  8639. # Set up the scripts for CONFIG_FILES section.
  8640. # No need to generate them if there are no CONFIG_FILES.
  8641. # This happens for instance with `./build/config.status config.h'.
  8642. if test -n "$CONFIG_FILES"; then
  8643. ac_cr=`echo X | tr X '\015'`
  8644. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  8645. # But we know of no other shell where ac_cr would be empty at this
  8646. # point, so we can use a bashism as a fallback.
  8647. if test "x$ac_cr" = x; then
  8648. eval ac_cr=\$\'\\r\'
  8649. fi
  8650. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  8651. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  8652. ac_cs_awk_cr='\\r'
  8653. else
  8654. ac_cs_awk_cr=$ac_cr
  8655. fi
  8656. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  8657. _ACEOF
  8658. {
  8659. echo "cat >conf$$subs.awk <<_ACEOF" &&
  8660. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  8661. echo "_ACEOF"
  8662. } >conf$$subs.sh ||
  8663. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8664. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  8665. ac_delim='%!_!# '
  8666. for ac_last_try in false false false false false :; do
  8667. . ./conf$$subs.sh ||
  8668. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8669. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  8670. if test $ac_delim_n = $ac_delim_num; then
  8671. break
  8672. elif $ac_last_try; then
  8673. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8674. else
  8675. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8676. fi
  8677. done
  8678. rm -f conf$$subs.sh
  8679. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8680. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  8681. _ACEOF
  8682. sed -n '
  8683. h
  8684. s/^/S["/; s/!.*/"]=/
  8685. p
  8686. g
  8687. s/^[^!]*!//
  8688. :repl
  8689. t repl
  8690. s/'"$ac_delim"'$//
  8691. t delim
  8692. :nl
  8693. h
  8694. s/\(.\{148\}\)..*/\1/
  8695. t more1
  8696. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  8697. p
  8698. n
  8699. b repl
  8700. :more1
  8701. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8702. p
  8703. g
  8704. s/.\{148\}//
  8705. t nl
  8706. :delim
  8707. h
  8708. s/\(.\{148\}\)..*/\1/
  8709. t more2
  8710. s/["\\]/\\&/g; s/^/"/; s/$/"/
  8711. p
  8712. b
  8713. :more2
  8714. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8715. p
  8716. g
  8717. s/.\{148\}//
  8718. t delim
  8719. ' <conf$$subs.awk | sed '
  8720. /^[^""]/{
  8721. N
  8722. s/\n//
  8723. }
  8724. ' >>$CONFIG_STATUS || ac_write_fail=1
  8725. rm -f conf$$subs.awk
  8726. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8727. _ACAWK
  8728. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  8729. for (key in S) S_is_set[key] = 1
  8730. FS = ""
  8731. }
  8732. {
  8733. line = $ 0
  8734. nfields = split(line, field, "@")
  8735. substed = 0
  8736. len = length(field[1])
  8737. for (i = 2; i < nfields; i++) {
  8738. key = field[i]
  8739. keylen = length(key)
  8740. if (S_is_set[key]) {
  8741. value = S[key]
  8742. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  8743. len += length(value) + length(field[++i])
  8744. substed = 1
  8745. } else
  8746. len += 1 + keylen
  8747. }
  8748. print line
  8749. }
  8750. _ACAWK
  8751. _ACEOF
  8752. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8753. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  8754. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  8755. else
  8756. cat
  8757. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  8758. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  8759. _ACEOF
  8760. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  8761. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  8762. # trailing colons and then remove the whole line if VPATH becomes empty
  8763. # (actually we leave an empty line to preserve line numbers).
  8764. if test "x$srcdir" = x.; then
  8765. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  8766. h
  8767. s///
  8768. s/^/:/
  8769. s/[ ]*$/:/
  8770. s/:\$(srcdir):/:/g
  8771. s/:\${srcdir}:/:/g
  8772. s/:@srcdir@:/:/g
  8773. s/^:*//
  8774. s/:*$//
  8775. x
  8776. s/\(=[ ]*\).*/\1/
  8777. G
  8778. s/\n//
  8779. s/^[^=]*=[ ]*$//
  8780. }'
  8781. fi
  8782. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8783. fi # test -n "$CONFIG_FILES"
  8784. # Set up the scripts for CONFIG_HEADERS section.
  8785. # No need to generate them if there are no CONFIG_HEADERS.
  8786. # This happens for instance with `./build/config.status Makefile'.
  8787. if test -n "$CONFIG_HEADERS"; then
  8788. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  8789. BEGIN {
  8790. _ACEOF
  8791. # Transform build/confdefs.h into an awk script `defines.awk', embedded as
  8792. # here-document in build/config.status, that substitutes the proper values into
  8793. # config.h.in to produce config.h.
  8794. # Create a delimiter string that does not exist in build/confdefs.h, to ease
  8795. # handling of long lines.
  8796. ac_delim='%!_!# '
  8797. for ac_last_try in false false :; do
  8798. ac_tt=`sed -n "/$ac_delim/p" build/confdefs.h`
  8799. if test -z "$ac_tt"; then
  8800. break
  8801. elif $ac_last_try; then
  8802. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  8803. else
  8804. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8805. fi
  8806. done
  8807. # For the awk script, D is an array of macro values keyed by name,
  8808. # likewise P contains macro parameters if any. Preserve backslash
  8809. # newline sequences.
  8810. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  8811. sed -n '
  8812. s/.\{148\}/&'"$ac_delim"'/g
  8813. t rset
  8814. :rset
  8815. s/^[ ]*#[ ]*define[ ][ ]*/ /
  8816. t def
  8817. d
  8818. :def
  8819. s/\\$//
  8820. t bsnl
  8821. s/["\\]/\\&/g
  8822. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8823. D["\1"]=" \3"/p
  8824. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  8825. d
  8826. :bsnl
  8827. s/["\\]/\\&/g
  8828. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8829. D["\1"]=" \3\\\\\\n"\\/p
  8830. t cont
  8831. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  8832. t cont
  8833. d
  8834. :cont
  8835. n
  8836. s/.\{148\}/&'"$ac_delim"'/g
  8837. t clear
  8838. :clear
  8839. s/\\$//
  8840. t bsnlc
  8841. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  8842. d
  8843. :bsnlc
  8844. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  8845. b cont
  8846. ' <build/confdefs.h | sed '
  8847. s/'"$ac_delim"'/"\\\
  8848. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  8849. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8850. for (key in D) D_is_set[key] = 1
  8851. FS = ""
  8852. }
  8853. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  8854. line = \$ 0
  8855. split(line, arg, " ")
  8856. if (arg[1] == "#") {
  8857. defundef = arg[2]
  8858. mac1 = arg[3]
  8859. } else {
  8860. defundef = substr(arg[1], 2)
  8861. mac1 = arg[2]
  8862. }
  8863. split(mac1, mac2, "(") #)
  8864. macro = mac2[1]
  8865. prefix = substr(line, 1, index(line, defundef) - 1)
  8866. if (D_is_set[macro]) {
  8867. # Preserve the white space surrounding the "#".
  8868. print prefix "define", macro P[macro] D[macro]
  8869. next
  8870. } else {
  8871. # Replace #undef with comments. This is necessary, for example,
  8872. # in the case of _POSIX_SOURCE, which is predefined and required
  8873. # on some systems where configure will not decide to define it.
  8874. if (defundef == "undef") {
  8875. print "/*", prefix defundef, macro, "*/"
  8876. next
  8877. }
  8878. }
  8879. }
  8880. { print }
  8881. _ACAWK
  8882. _ACEOF
  8883. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8884. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  8885. fi # test -n "$CONFIG_HEADERS"
  8886. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  8887. shift
  8888. for ac_tag
  8889. do
  8890. case $ac_tag in
  8891. :[FHLC]) ac_mode=$ac_tag; continue;;
  8892. esac
  8893. case $ac_mode$ac_tag in
  8894. :[FHL]*:*);;
  8895. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  8896. :[FH]-) ac_tag=-:-;;
  8897. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  8898. esac
  8899. ac_save_IFS=$IFS
  8900. IFS=:
  8901. set x $ac_tag
  8902. IFS=$ac_save_IFS
  8903. shift
  8904. ac_file=$1
  8905. shift
  8906. case $ac_mode in
  8907. :L) ac_source=$1;;
  8908. :[FH])
  8909. ac_file_inputs=
  8910. for ac_f
  8911. do
  8912. case $ac_f in
  8913. -) ac_f="$ac_tmp/stdin";;
  8914. *) # Look for the file first in the build tree, then in the source tree
  8915. # (if the path is not absolute). The absolute path cannot be DOS-style,
  8916. # because $ac_f cannot contain `:'.
  8917. test -f "$ac_f" ||
  8918. case $ac_f in
  8919. [\\/$]*) false;;
  8920. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  8921. esac ||
  8922. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  8923. esac
  8924. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  8925. as_fn_append ac_file_inputs " '$ac_f'"
  8926. done
  8927. # Let's still pretend it is `configure' which instantiates (i.e., don't
  8928. # use $as_me), people would be surprised to read:
  8929. # /* config.h. Generated by build/config.status. */
  8930. configure_input='Generated from '`
  8931. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  8932. `' by configure.'
  8933. if test x"$ac_file" != x-; then
  8934. configure_input="$ac_file. $configure_input"
  8935. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  8936. $as_echo "$as_me: creating $ac_file" >&6;}
  8937. fi
  8938. # Neutralize special characters interpreted by sed in replacement strings.
  8939. case $configure_input in #(
  8940. *\&* | *\|* | *\\* )
  8941. ac_sed_conf_input=`$as_echo "$configure_input" |
  8942. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  8943. *) ac_sed_conf_input=$configure_input;;
  8944. esac
  8945. case $ac_tag in
  8946. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  8947. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  8948. esac
  8949. ;;
  8950. esac
  8951. ac_dir=`$as_dirname -- "$ac_file" ||
  8952. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8953. X"$ac_file" : 'X\(//\)[^/]' \| \
  8954. X"$ac_file" : 'X\(//\)$' \| \
  8955. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  8956. $as_echo X"$ac_file" |
  8957. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8958. s//\1/
  8959. q
  8960. }
  8961. /^X\(\/\/\)[^/].*/{
  8962. s//\1/
  8963. q
  8964. }
  8965. /^X\(\/\/\)$/{
  8966. s//\1/
  8967. q
  8968. }
  8969. /^X\(\/\).*/{
  8970. s//\1/
  8971. q
  8972. }
  8973. s/.*/./; q'`
  8974. as_dir="$ac_dir"; as_fn_mkdir_p
  8975. ac_builddir=.
  8976. case "$ac_dir" in
  8977. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8978. *)
  8979. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  8980. # A ".." for each directory in $ac_dir_suffix.
  8981. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  8982. case $ac_top_builddir_sub in
  8983. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8984. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  8985. esac ;;
  8986. esac
  8987. ac_abs_top_builddir=$ac_pwd
  8988. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  8989. # for backward compatibility:
  8990. ac_top_builddir=$ac_top_build_prefix
  8991. case $srcdir in
  8992. .) # We are building in place.
  8993. ac_srcdir=.
  8994. ac_top_srcdir=$ac_top_builddir_sub
  8995. ac_abs_top_srcdir=$ac_pwd ;;
  8996. [\\/]* | ?:[\\/]* ) # Absolute name.
  8997. ac_srcdir=$srcdir$ac_dir_suffix;
  8998. ac_top_srcdir=$srcdir
  8999. ac_abs_top_srcdir=$srcdir ;;
  9000. *) # Relative name.
  9001. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9002. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9003. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9004. esac
  9005. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9006. case $ac_mode in
  9007. :F)
  9008. #
  9009. # CONFIG_FILE
  9010. #
  9011. _ACEOF
  9012. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9013. # If the template does not know about datarootdir, expand it.
  9014. # FIXME: This hack should be removed a few years after 2.60.
  9015. ac_datarootdir_hack=; ac_datarootdir_seen=
  9016. ac_sed_dataroot='
  9017. /datarootdir/ {
  9018. p
  9019. q
  9020. }
  9021. /@datadir@/p
  9022. /@docdir@/p
  9023. /@infodir@/p
  9024. /@localedir@/p
  9025. /@mandir@/p'
  9026. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  9027. *datarootdir*) ac_datarootdir_seen=yes;;
  9028. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  9029. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  9030. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  9031. _ACEOF
  9032. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9033. ac_datarootdir_hack='
  9034. s&@datadir@&$datadir&g
  9035. s&@docdir@&$docdir&g
  9036. s&@infodir@&$infodir&g
  9037. s&@localedir@&$localedir&g
  9038. s&@mandir@&$mandir&g
  9039. s&\\\${datarootdir}&$datarootdir&g' ;;
  9040. esac
  9041. _ACEOF
  9042. # Neutralize VPATH when `$srcdir' = `.'.
  9043. # Shell code in configure.ac might set extrasub.
  9044. # FIXME: do we really want to maintain this feature?
  9045. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9046. ac_sed_extra="$ac_vpsub
  9047. $extrasub
  9048. _ACEOF
  9049. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9050. :t
  9051. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9052. s|@configure_input@|$ac_sed_conf_input|;t t
  9053. s&@top_builddir@&$ac_top_builddir_sub&;t t
  9054. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  9055. s&@srcdir@&$ac_srcdir&;t t
  9056. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  9057. s&@top_srcdir@&$ac_top_srcdir&;t t
  9058. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  9059. s&@builddir@&$ac_builddir&;t t
  9060. s&@abs_builddir@&$ac_abs_builddir&;t t
  9061. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  9062. $ac_datarootdir_hack
  9063. "
  9064. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  9065. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9066. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  9067. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  9068. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  9069. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  9070. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9071. which seems to be undefined. Please make sure it is defined" >&5
  9072. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9073. which seems to be undefined. Please make sure it is defined" >&2;}
  9074. rm -f "$ac_tmp/stdin"
  9075. case $ac_file in
  9076. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  9077. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  9078. esac \
  9079. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9080. ;;
  9081. :H)
  9082. #
  9083. # CONFIG_HEADER
  9084. #
  9085. if test x"$ac_file" != x-; then
  9086. {
  9087. $as_echo "/* $configure_input */" \
  9088. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  9089. } >"$ac_tmp/config.h" \
  9090. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9091. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  9092. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  9093. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  9094. else
  9095. rm -f "$ac_file"
  9096. mv "$ac_tmp/config.h" "$ac_file" \
  9097. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9098. fi
  9099. else
  9100. $as_echo "/* $configure_input */" \
  9101. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  9102. || as_fn_error $? "could not create -" "$LINENO" 5
  9103. fi
  9104. ;;
  9105. esac
  9106. done # for ac_tag
  9107. as_fn_exit 0
  9108. _ACEOF
  9109. ac_clean_files=$ac_clean_files_save
  9110. test $ac_write_fail = 0 ||
  9111. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  9112. # configure is writing to build/config.log, and then calls build/config.status.
  9113. # build/config.status does its own redirection, appending to build/config.log.
  9114. # Unfortunately, on DOS this fails, as build/config.log is still kept open
  9115. # by configure, so build/config.status won't be able to write to it; its
  9116. # output is simply discarded. So we exec the FD to /dev/null,
  9117. # effectively closing build/config.log, so it can be properly (re)opened and
  9118. # appended to by build/config.status. When coming back to configure, we
  9119. # need to make the FD available again.
  9120. if test "$no_create" != yes; then
  9121. ac_cs_success=:
  9122. ac_config_status_args=
  9123. test "$silent" = yes &&
  9124. ac_config_status_args="$ac_config_status_args --quiet"
  9125. exec 5>/dev/null
  9126. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  9127. exec 5>>build/config.log
  9128. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9129. # would make configure fail if this is the last instruction.
  9130. $ac_cs_success || as_fn_exit 1
  9131. fi
  9132. #
  9133. # CONFIG_SUBDIRS section.
  9134. #
  9135. if test "$no_recursion" != yes; then
  9136. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  9137. # so they do not pile up.
  9138. ac_sub_configure_args=
  9139. ac_prev=
  9140. eval "set x $ac_configure_args"
  9141. shift
  9142. for ac_arg
  9143. do
  9144. if test -n "$ac_prev"; then
  9145. ac_prev=
  9146. continue
  9147. fi
  9148. case $ac_arg in
  9149. -cache-file | --cache-file | --cache-fil | --cache-fi \
  9150. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  9151. ac_prev=cache_file ;;
  9152. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  9153. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  9154. | --c=*)
  9155. ;;
  9156. --config-cache | -C)
  9157. ;;
  9158. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  9159. ac_prev=srcdir ;;
  9160. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  9161. ;;
  9162. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  9163. ac_prev=prefix ;;
  9164. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  9165. ;;
  9166. --disable-option-checking)
  9167. ;;
  9168. *)
  9169. case $ac_arg in
  9170. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9171. esac
  9172. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  9173. esac
  9174. done
  9175. # Always prepend --prefix to ensure using the same prefix
  9176. # in subdir configurations.
  9177. ac_arg="--prefix=$prefix"
  9178. case $ac_arg in
  9179. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9180. esac
  9181. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  9182. # Pass --silent
  9183. if test "$silent" = yes; then
  9184. ac_sub_configure_args="--silent $ac_sub_configure_args"
  9185. fi
  9186. # Always prepend --disable-option-checking to silence warnings, since
  9187. # different subdirs can have different --enable and --with options.
  9188. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  9189. ac_popdir=`pwd`
  9190. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  9191. # Do not complain, so a configure script can configure whichever
  9192. # parts of a large source tree are present.
  9193. test -d "$srcdir/$ac_dir" || continue
  9194. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  9195. $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  9196. $as_echo "$ac_msg" >&6
  9197. as_dir="$ac_dir"; as_fn_mkdir_p
  9198. ac_builddir=.
  9199. case "$ac_dir" in
  9200. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9201. *)
  9202. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  9203. # A ".." for each directory in $ac_dir_suffix.
  9204. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9205. case $ac_top_builddir_sub in
  9206. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9207. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9208. esac ;;
  9209. esac
  9210. ac_abs_top_builddir=$ac_pwd
  9211. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9212. # for backward compatibility:
  9213. ac_top_builddir=$ac_top_build_prefix
  9214. case $srcdir in
  9215. .) # We are building in place.
  9216. ac_srcdir=.
  9217. ac_top_srcdir=$ac_top_builddir_sub
  9218. ac_abs_top_srcdir=$ac_pwd ;;
  9219. [\\/]* | ?:[\\/]* ) # Absolute name.
  9220. ac_srcdir=$srcdir$ac_dir_suffix;
  9221. ac_top_srcdir=$srcdir
  9222. ac_abs_top_srcdir=$srcdir ;;
  9223. *) # Relative name.
  9224. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9225. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9226. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9227. esac
  9228. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9229. cd "$ac_dir"
  9230. # Check for guested configure; otherwise get Cygnus style configure.
  9231. if test -f "$ac_srcdir/configure.gnu"; then
  9232. ac_sub_configure=$ac_srcdir/configure.gnu
  9233. elif test -f "$ac_srcdir/configure"; then
  9234. ac_sub_configure=$ac_srcdir/configure
  9235. elif test -f "$ac_srcdir/configure.in"; then
  9236. # This should be Cygnus configure.
  9237. ac_sub_configure=$ac_aux_dir/configure
  9238. else
  9239. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  9240. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  9241. ac_sub_configure=
  9242. fi
  9243. # The recursion is here.
  9244. if test -n "$ac_sub_configure"; then
  9245. # Make the cache file name correct relative to the subdirectory.
  9246. case $cache_file in
  9247. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  9248. *) # Relative name.
  9249. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  9250. esac
  9251. { $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
  9252. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  9253. # The eval makes quoting arguments work.
  9254. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  9255. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  9256. as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  9257. fi
  9258. cd "$ac_popdir"
  9259. done
  9260. fi
  9261. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  9262. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  9263. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  9264. fi
  9265. CXX="$CXX" CXXFLAGS="$CXXFLAGS" TCL_INCLUDES="$TCL_INCLUDES" SSL_INCLUDES="$SSL_INCLUDES" \
  9266. SED="$SED" src/generate_defs.sh || exit 1