configure 290 KB

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