configure 288 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481
  1. #! /bin/sh
  2. # From configure.ac Revision.
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.69.
  5. #
  6. #
  7. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. #
  13. # Copyright (c) Bryan Drewery
  14. ## -------------------- ##
  15. ## M4sh Initialization. ##
  16. ## -------------------- ##
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else
  27. case `(set -o) 2>/dev/null` in #(
  28. *posix*) :
  29. set -o posix ;; #(
  30. *) :
  31. ;;
  32. esac
  33. fi
  34. as_nl='
  35. '
  36. export as_nl
  37. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  38. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  41. # Prefer a ksh shell builtin over an external printf program on Solaris,
  42. # but without wasting forks for bash or zsh.
  43. if test -z "$BASH_VERSION$ZSH_VERSION" \
  44. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='print -r --'
  46. as_echo_n='print -rn --'
  47. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  48. as_echo='printf %s\n'
  49. as_echo_n='printf %s'
  50. else
  51. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  52. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  53. as_echo_n='/usr/ucb/echo -n'
  54. else
  55. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  56. as_echo_n_body='eval
  57. arg=$1;
  58. case $arg in #(
  59. *"$as_nl"*)
  60. expr "X$arg" : "X\\(.*\\)$as_nl";
  61. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  62. esac;
  63. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  64. '
  65. export as_echo_n_body
  66. as_echo_n='sh -c $as_echo_n_body as_echo'
  67. fi
  68. export as_echo_body
  69. as_echo='sh -c $as_echo_body as_echo'
  70. fi
  71. # The user is always right.
  72. if test "${PATH_SEPARATOR+set}" != set; then
  73. PATH_SEPARATOR=:
  74. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  75. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  76. PATH_SEPARATOR=';'
  77. }
  78. fi
  79. # IFS
  80. # We need space, tab and new line, in precisely that order. Quoting is
  81. # there to prevent editors from complaining about space-tab.
  82. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  83. # splitting by setting IFS to empty value.)
  84. IFS=" "" $as_nl"
  85. # Find who we are. Look in the path if we contain no directory separator.
  86. as_myself=
  87. case $0 in #((
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. exit 1
  107. fi
  108. # Unset variables that we do not need and which cause bugs (e.g. in
  109. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  110. # suppresses any "Segmentation fault" message there. '((' could
  111. # trigger a bug in pdksh 5.2.14.
  112. for as_var in BASH_ENV ENV MAIL MAILPATH
  113. do eval test x\${$as_var+set} = xset \
  114. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  115. done
  116. PS1='$ '
  117. PS2='> '
  118. PS4='+ '
  119. # NLS nuisances.
  120. LC_ALL=C
  121. export LC_ALL
  122. LANGUAGE=C
  123. export LANGUAGE
  124. # CDPATH.
  125. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  126. # Use a proper internal environment variable to ensure we don't fall
  127. # into an infinite loop, continuously re-executing ourselves.
  128. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  129. _as_can_reexec=no; export _as_can_reexec;
  130. # We cannot yet assume a decent shell, so we have to provide a
  131. # neutralization value for shells without unset; and this also
  132. # works around shells that cannot unset nonexistent variables.
  133. # Preserve -v and -x to the replacement shell.
  134. BASH_ENV=/dev/null
  135. ENV=/dev/null
  136. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  137. case $- in # ((((
  138. *v*x* | *x*v* ) as_opts=-vx ;;
  139. *v* ) as_opts=-v ;;
  140. *x* ) as_opts=-x ;;
  141. * ) as_opts= ;;
  142. esac
  143. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  144. # Admittedly, this is quite paranoid, since all the known shells bail
  145. # out after a failed `exec'.
  146. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  147. as_fn_exit 255
  148. fi
  149. # We don't want this to propagate to other subprocesses.
  150. { _as_can_reexec=; unset _as_can_reexec;}
  151. if test "x$CONFIG_SHELL" = x; then
  152. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  153. emulate sh
  154. NULLCMD=:
  155. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  156. # is contrary to our usage. Disable this feature.
  157. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  158. setopt NO_GLOB_SUBST
  159. else
  160. case \`(set -o) 2>/dev/null\` in #(
  161. *posix*) :
  162. set -o posix ;; #(
  163. *) :
  164. ;;
  165. esac
  166. fi
  167. "
  168. as_required="as_fn_return () { (exit \$1); }
  169. as_fn_success () { as_fn_return 0; }
  170. as_fn_failure () { as_fn_return 1; }
  171. as_fn_ret_success () { return 0; }
  172. as_fn_ret_failure () { return 1; }
  173. exitcode=0
  174. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  175. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  176. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  177. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  178. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  179. else
  180. exitcode=1; echo positional parameters were not saved.
  181. fi
  182. test x\$exitcode = x0 || exit 1
  183. test -x / || exit 1"
  184. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  185. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  186. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  187. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  188. test \$(( 1 + 1 )) = 2 || exit 1"
  189. if (eval "$as_required") 2>/dev/null; then :
  190. as_have_required=yes
  191. else
  192. as_have_required=no
  193. fi
  194. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  195. else
  196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  197. as_found=false
  198. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  199. do
  200. IFS=$as_save_IFS
  201. test -z "$as_dir" && as_dir=.
  202. as_found=:
  203. case $as_dir in #(
  204. /*)
  205. for as_base in sh bash ksh sh5; do
  206. # Try only shells that exist, to save several forks.
  207. as_shell=$as_dir/$as_base
  208. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  209. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  210. CONFIG_SHELL=$as_shell as_have_required=yes
  211. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  212. break 2
  213. fi
  214. fi
  215. done;;
  216. esac
  217. as_found=false
  218. done
  219. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  220. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  221. CONFIG_SHELL=$SHELL as_have_required=yes
  222. fi; }
  223. IFS=$as_save_IFS
  224. if test "x$CONFIG_SHELL" != x; then :
  225. export CONFIG_SHELL
  226. # We cannot yet assume a decent shell, so we have to provide a
  227. # neutralization value for shells without unset; and this also
  228. # works around shells that cannot unset nonexistent variables.
  229. # Preserve -v and -x to the replacement shell.
  230. BASH_ENV=/dev/null
  231. ENV=/dev/null
  232. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  233. case $- in # ((((
  234. *v*x* | *x*v* ) as_opts=-vx ;;
  235. *v* ) as_opts=-v ;;
  236. *x* ) as_opts=-x ;;
  237. * ) as_opts= ;;
  238. esac
  239. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  240. # Admittedly, this is quite paranoid, since all the known shells bail
  241. # out after a failed `exec'.
  242. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  243. exit 255
  244. fi
  245. if test x$as_have_required = xno; then :
  246. $as_echo "$0: This script requires a shell more modern than all"
  247. $as_echo "$0: the shells that I found on your system."
  248. if test x${ZSH_VERSION+set} = xset ; then
  249. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  250. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  251. else
  252. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  253. $0: including any error possibly output before this
  254. $0: message. Then install a modern shell, or manually run
  255. $0: the script under such a shell if you do have one."
  256. fi
  257. exit 1
  258. fi
  259. fi
  260. fi
  261. SHELL=${CONFIG_SHELL-/bin/sh}
  262. export SHELL
  263. # Unset more variables known to interfere with behavior of common tools.
  264. CLICOLOR_FORCE= GREP_OPTIONS=
  265. unset CLICOLOR_FORCE GREP_OPTIONS
  266. ## --------------------- ##
  267. ## M4sh Shell Functions. ##
  268. ## --------------------- ##
  269. # as_fn_unset VAR
  270. # ---------------
  271. # Portably unset VAR.
  272. as_fn_unset ()
  273. {
  274. { eval $1=; unset $1;}
  275. }
  276. as_unset=as_fn_unset
  277. # as_fn_set_status STATUS
  278. # -----------------------
  279. # Set $? to STATUS, without forking.
  280. as_fn_set_status ()
  281. {
  282. return $1
  283. } # as_fn_set_status
  284. # as_fn_exit STATUS
  285. # -----------------
  286. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  287. as_fn_exit ()
  288. {
  289. set +e
  290. as_fn_set_status $1
  291. exit $1
  292. } # as_fn_exit
  293. # as_fn_mkdir_p
  294. # -------------
  295. # Create "$as_dir" as a directory, including parents if necessary.
  296. as_fn_mkdir_p ()
  297. {
  298. case $as_dir in #(
  299. -*) as_dir=./$as_dir;;
  300. esac
  301. test -d "$as_dir" || eval $as_mkdir_p || {
  302. as_dirs=
  303. while :; do
  304. case $as_dir in #(
  305. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  306. *) as_qdir=$as_dir;;
  307. esac
  308. as_dirs="'$as_qdir' $as_dirs"
  309. as_dir=`$as_dirname -- "$as_dir" ||
  310. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  311. X"$as_dir" : 'X\(//\)[^/]' \| \
  312. X"$as_dir" : 'X\(//\)$' \| \
  313. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  314. $as_echo X"$as_dir" |
  315. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  316. s//\1/
  317. q
  318. }
  319. /^X\(\/\/\)[^/].*/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)$/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\).*/{
  328. s//\1/
  329. q
  330. }
  331. s/.*/./; q'`
  332. test -d "$as_dir" && break
  333. done
  334. test -z "$as_dirs" || eval "mkdir $as_dirs"
  335. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  336. } # as_fn_mkdir_p
  337. # as_fn_executable_p FILE
  338. # -----------------------
  339. # Test if FILE is an executable regular file.
  340. as_fn_executable_p ()
  341. {
  342. test -f "$1" && test -x "$1"
  343. } # as_fn_executable_p
  344. # as_fn_append VAR VALUE
  345. # ----------------------
  346. # Append the text in VALUE to the end of the definition contained in VAR. Take
  347. # advantage of any shell optimizations that allow amortized linear growth over
  348. # repeated appends, instead of the typical quadratic growth present in naive
  349. # implementations.
  350. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  351. eval 'as_fn_append ()
  352. {
  353. eval $1+=\$2
  354. }'
  355. else
  356. as_fn_append ()
  357. {
  358. eval $1=\$$1\$2
  359. }
  360. fi # as_fn_append
  361. # as_fn_arith ARG...
  362. # ------------------
  363. # Perform arithmetic evaluation on the ARGs, and store the result in the
  364. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  365. # must be portable across $(()) and expr.
  366. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  367. eval 'as_fn_arith ()
  368. {
  369. as_val=$(( $* ))
  370. }'
  371. else
  372. as_fn_arith ()
  373. {
  374. as_val=`expr "$@" || test $? -eq 1`
  375. }
  376. fi # as_fn_arith
  377. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  378. # ----------------------------------------
  379. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  380. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  381. # script with STATUS, using 1 if that was 0.
  382. as_fn_error ()
  383. {
  384. as_status=$1; test $as_status -eq 0 && as_status=1
  385. if test "$4"; then
  386. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  387. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  388. fi
  389. $as_echo "$as_me: error: $2" >&2
  390. as_fn_exit $as_status
  391. } # as_fn_error
  392. if expr a : '\(a\)' >/dev/null 2>&1 &&
  393. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  394. as_expr=expr
  395. else
  396. as_expr=false
  397. fi
  398. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  399. as_basename=basename
  400. else
  401. as_basename=false
  402. fi
  403. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  404. as_dirname=dirname
  405. else
  406. as_dirname=false
  407. fi
  408. as_me=`$as_basename -- "$0" ||
  409. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  410. X"$0" : 'X\(//\)$' \| \
  411. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  412. $as_echo X/"$0" |
  413. sed '/^.*\/\([^/][^/]*\)\/*$/{
  414. s//\1/
  415. q
  416. }
  417. /^X\/\(\/\/\)$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\).*/{
  422. s//\1/
  423. q
  424. }
  425. s/.*/./; q'`
  426. # Avoid depending upon Character Ranges.
  427. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  428. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  429. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  430. as_cr_digits='0123456789'
  431. as_cr_alnum=$as_cr_Letters$as_cr_digits
  432. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  433. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  434. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  435. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  436. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  437. sed -n '
  438. p
  439. /[$]LINENO/=
  440. ' <$as_myself |
  441. sed '
  442. s/[$]LINENO.*/&-/
  443. t lineno
  444. b
  445. :lineno
  446. N
  447. :loop
  448. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  449. t loop
  450. s/-\n.*//
  451. ' >$as_me.lineno &&
  452. chmod +x "$as_me.lineno" ||
  453. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  454. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  455. # already done that, so ensure we don't try to do so again and fall
  456. # in an infinite loop. This has already happened in practice.
  457. _as_can_reexec=no; export _as_can_reexec
  458. # Don't try to exec as it changes $[0], causing all sort of problems
  459. # (the dirname of $[0] is not the place where we might find the
  460. # original and so on. Autoconf is especially sensitive to this).
  461. . "./$as_me.lineno"
  462. # Exit status is that of the last command.
  463. exit
  464. }
  465. ECHO_C= ECHO_N= ECHO_T=
  466. case `echo -n x` in #(((((
  467. -n*)
  468. case `echo 'xy\c'` in
  469. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  470. xy) ECHO_C='\c';;
  471. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  472. ECHO_T=' ';;
  473. esac;;
  474. *)
  475. ECHO_N='-n';;
  476. esac
  477. rm -f conf$$ conf$$.exe conf$$.file
  478. if test -d conf$$.dir; then
  479. rm -f conf$$.dir/conf$$.file
  480. else
  481. rm -f conf$$.dir
  482. mkdir conf$$.dir 2>/dev/null
  483. fi
  484. if (echo >conf$$.file) 2>/dev/null; then
  485. if ln -s conf$$.file conf$$ 2>/dev/null; then
  486. as_ln_s='ln -s'
  487. # ... but there are two gotchas:
  488. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  489. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  490. # In both cases, we have to default to `cp -pR'.
  491. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  492. as_ln_s='cp -pR'
  493. elif ln conf$$.file conf$$ 2>/dev/null; then
  494. as_ln_s=ln
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. else
  499. as_ln_s='cp -pR'
  500. fi
  501. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  502. rmdir conf$$.dir 2>/dev/null
  503. if mkdir -p . 2>/dev/null; then
  504. as_mkdir_p='mkdir -p "$as_dir"'
  505. else
  506. test -d ./-p && rmdir ./-p
  507. as_mkdir_p=false
  508. fi
  509. as_test_x='test -x'
  510. as_executable_p=as_fn_executable_p
  511. # Sed expression to map a string onto a valid CPP name.
  512. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  513. # Sed expression to map a string onto a valid variable name.
  514. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  515. test -n "$DJDIR" || exec 7<&0 </dev/null
  516. exec 6>&1
  517. # Name of the host.
  518. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  519. # so uname gets run too.
  520. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  521. #
  522. # Initializations.
  523. #
  524. ac_default_prefix=/usr/local
  525. ac_clean_files=
  526. ac_config_libobj_dir=.
  527. LIBOBJS=
  528. cross_compiling=no
  529. subdirs=
  530. MFLAGS=
  531. MAKEFLAGS=
  532. # Identity of this package.
  533. PACKAGE_NAME=
  534. PACKAGE_TARNAME=
  535. PACKAGE_VERSION=
  536. PACKAGE_STRING=
  537. PACKAGE_BUGREPORT=
  538. PACKAGE_URL=
  539. ac_unique_file="wraith"
  540. ac_unique_file="src/eggdrop.h"
  541. # Factoring default headers for most tests.
  542. ac_includes_default="\
  543. #include <stdio.h>
  544. #ifdef HAVE_SYS_TYPES_H
  545. # include <sys/types.h>
  546. #endif
  547. #ifdef HAVE_SYS_STAT_H
  548. # include <sys/stat.h>
  549. #endif
  550. #ifdef STDC_HEADERS
  551. # include <stdlib.h>
  552. # include <stddef.h>
  553. #else
  554. # ifdef HAVE_STDLIB_H
  555. # include <stdlib.h>
  556. # endif
  557. #endif
  558. #ifdef HAVE_STRING_H
  559. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  560. # include <memory.h>
  561. # endif
  562. # include <string.h>
  563. #endif
  564. #ifdef HAVE_STRINGS_H
  565. # include <strings.h>
  566. #endif
  567. #ifdef HAVE_INTTYPES_H
  568. # include <inttypes.h>
  569. #endif
  570. #ifdef HAVE_STDINT_H
  571. # include <stdint.h>
  572. #endif
  573. #ifdef HAVE_UNISTD_H
  574. # include <unistd.h>
  575. #endif"
  576. ac_header_list=
  577. enable_option_checking=no
  578. ac_subst_vars='LTLIBOBJS
  579. subdirs
  580. NUMVER
  581. VERSION
  582. LIBOBJS
  583. TCL_LIBS
  584. TCL_REQS
  585. DEFAULT_MAKE
  586. TCLINCFN
  587. TCL_INCLUDES
  588. TCLLIBFN
  589. TCLLIB
  590. SSL_LIBS
  591. SSL_INCLUDES
  592. LIBELF_LIB
  593. LIBELF_BUNDLED
  594. EGREP
  595. GREP
  596. DEBLDFLAGS
  597. DEBCXXFLAGS
  598. STATIC
  599. BUILDARCH
  600. BUILDOS
  601. UNAME
  602. DIFF
  603. STRIP
  604. OBJCOPY
  605. BASENAME
  606. AWK
  607. HEAD_1
  608. SED
  609. SET_MAKE
  610. GCC4DEB
  611. GCC3DEB
  612. GCC3_CXXFLAGS
  613. GCC3_CFLAGS
  614. CCDEPMODE
  615. HAVE_CXX14
  616. CXXCPP
  617. CC
  618. OBJEXT
  619. EXEEXT
  620. ac_ct_CXX
  621. CPPFLAGS
  622. LDFLAGS
  623. CXXFLAGS
  624. CXX
  625. egg_ac_parameters
  626. target_alias
  627. host_alias
  628. build_alias
  629. LIBS
  630. ECHO_T
  631. ECHO_N
  632. ECHO_C
  633. DEFS
  634. mandir
  635. localedir
  636. libdir
  637. psdir
  638. pdfdir
  639. dvidir
  640. htmldir
  641. infodir
  642. docdir
  643. oldincludedir
  644. includedir
  645. localstatedir
  646. sharedstatedir
  647. sysconfdir
  648. datadir
  649. datarootdir
  650. libexecdir
  651. sbindir
  652. bindir
  653. program_transform_name
  654. prefix
  655. exec_prefix
  656. PACKAGE_URL
  657. PACKAGE_BUGREPORT
  658. PACKAGE_STRING
  659. PACKAGE_VERSION
  660. PACKAGE_TARNAME
  661. PACKAGE_NAME
  662. PATH_SEPARATOR
  663. SHELL'
  664. ac_subst_files=''
  665. ac_user_opts='
  666. enable_option_checking
  667. enable_ipv6
  668. with_openssl
  669. with_tcllib
  670. with_tclinc
  671. enable_script_tcl
  672. '
  673. ac_precious_vars='build_alias
  674. host_alias
  675. target_alias
  676. CXX
  677. CXXFLAGS
  678. LDFLAGS
  679. LIBS
  680. CPPFLAGS
  681. CCC
  682. CXXCPP'
  683. ac_subdirs_all='lib/bdlib
  684. lib/libelf'
  685. # Initialize some variables set by options.
  686. ac_init_help=
  687. ac_init_version=false
  688. ac_unrecognized_opts=
  689. ac_unrecognized_sep=
  690. # The variables have the same names as the options, with
  691. # dashes changed to underlines.
  692. cache_file=/dev/null
  693. exec_prefix=NONE
  694. no_create=
  695. no_recursion=
  696. prefix=NONE
  697. program_prefix=NONE
  698. program_suffix=NONE
  699. program_transform_name=s,x,x,
  700. silent=
  701. site=
  702. srcdir=
  703. verbose=
  704. x_includes=NONE
  705. x_libraries=NONE
  706. # Installation directory options.
  707. # These are left unexpanded so users can "make install exec_prefix=/foo"
  708. # and all the variables that are supposed to be based on exec_prefix
  709. # by default will actually change.
  710. # Use braces instead of parens because sh, perl, etc. also accept them.
  711. # (The list follows the same order as the GNU Coding Standards.)
  712. bindir='${exec_prefix}/bin'
  713. sbindir='${exec_prefix}/sbin'
  714. libexecdir='${exec_prefix}/libexec'
  715. datarootdir='${prefix}/share'
  716. datadir='${datarootdir}'
  717. sysconfdir='${prefix}/etc'
  718. sharedstatedir='${prefix}/com'
  719. localstatedir='${prefix}/var'
  720. includedir='${prefix}/include'
  721. oldincludedir='/usr/include'
  722. docdir='${datarootdir}/doc/${PACKAGE}'
  723. infodir='${datarootdir}/info'
  724. htmldir='${docdir}'
  725. dvidir='${docdir}'
  726. pdfdir='${docdir}'
  727. psdir='${docdir}'
  728. libdir='${exec_prefix}/lib'
  729. localedir='${datarootdir}/locale'
  730. mandir='${datarootdir}/man'
  731. ac_prev=
  732. ac_dashdash=
  733. for ac_option
  734. do
  735. # If the previous option needs an argument, assign it.
  736. if test -n "$ac_prev"; then
  737. eval $ac_prev=\$ac_option
  738. ac_prev=
  739. continue
  740. fi
  741. case $ac_option in
  742. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  743. *=) ac_optarg= ;;
  744. *) ac_optarg=yes ;;
  745. esac
  746. # Accept the important Cygnus configure options, so we can diagnose typos.
  747. case $ac_dashdash$ac_option in
  748. --)
  749. ac_dashdash=yes ;;
  750. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  751. ac_prev=bindir ;;
  752. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  753. bindir=$ac_optarg ;;
  754. -build | --build | --buil | --bui | --bu)
  755. ac_prev=build_alias ;;
  756. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  757. build_alias=$ac_optarg ;;
  758. -cache-file | --cache-file | --cache-fil | --cache-fi \
  759. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  760. ac_prev=cache_file ;;
  761. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  762. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  763. cache_file=$ac_optarg ;;
  764. --config-cache | -C)
  765. cache_file=config.cache ;;
  766. -datadir | --datadir | --datadi | --datad)
  767. ac_prev=datadir ;;
  768. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  769. datadir=$ac_optarg ;;
  770. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  771. | --dataroo | --dataro | --datar)
  772. ac_prev=datarootdir ;;
  773. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  774. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  775. datarootdir=$ac_optarg ;;
  776. -disable-* | --disable-*)
  777. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  778. # Reject names that are not valid shell variable names.
  779. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  780. as_fn_error $? "invalid feature name: $ac_useropt"
  781. ac_useropt_orig=$ac_useropt
  782. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  783. case $ac_user_opts in
  784. *"
  785. "enable_$ac_useropt"
  786. "*) ;;
  787. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  788. ac_unrecognized_sep=', ';;
  789. esac
  790. eval enable_$ac_useropt=no ;;
  791. -docdir | --docdir | --docdi | --doc | --do)
  792. ac_prev=docdir ;;
  793. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  794. docdir=$ac_optarg ;;
  795. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  796. ac_prev=dvidir ;;
  797. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  798. dvidir=$ac_optarg ;;
  799. -enable-* | --enable-*)
  800. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  801. # Reject names that are not valid shell variable names.
  802. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  803. as_fn_error $? "invalid feature name: $ac_useropt"
  804. ac_useropt_orig=$ac_useropt
  805. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  806. case $ac_user_opts in
  807. *"
  808. "enable_$ac_useropt"
  809. "*) ;;
  810. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  811. ac_unrecognized_sep=', ';;
  812. esac
  813. eval enable_$ac_useropt=\$ac_optarg ;;
  814. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  815. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  816. | --exec | --exe | --ex)
  817. ac_prev=exec_prefix ;;
  818. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  819. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  820. | --exec=* | --exe=* | --ex=*)
  821. exec_prefix=$ac_optarg ;;
  822. -gas | --gas | --ga | --g)
  823. # Obsolete; use --with-gas.
  824. with_gas=yes ;;
  825. -help | --help | --hel | --he | -h)
  826. ac_init_help=long ;;
  827. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  828. ac_init_help=recursive ;;
  829. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  830. ac_init_help=short ;;
  831. -host | --host | --hos | --ho)
  832. ac_prev=host_alias ;;
  833. -host=* | --host=* | --hos=* | --ho=*)
  834. host_alias=$ac_optarg ;;
  835. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  836. ac_prev=htmldir ;;
  837. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  838. | --ht=*)
  839. htmldir=$ac_optarg ;;
  840. -includedir | --includedir | --includedi | --included | --include \
  841. | --includ | --inclu | --incl | --inc)
  842. ac_prev=includedir ;;
  843. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  844. | --includ=* | --inclu=* | --incl=* | --inc=*)
  845. includedir=$ac_optarg ;;
  846. -infodir | --infodir | --infodi | --infod | --info | --inf)
  847. ac_prev=infodir ;;
  848. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  849. infodir=$ac_optarg ;;
  850. -libdir | --libdir | --libdi | --libd)
  851. ac_prev=libdir ;;
  852. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  853. libdir=$ac_optarg ;;
  854. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  855. | --libexe | --libex | --libe)
  856. ac_prev=libexecdir ;;
  857. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  858. | --libexe=* | --libex=* | --libe=*)
  859. libexecdir=$ac_optarg ;;
  860. -localedir | --localedir | --localedi | --localed | --locale)
  861. ac_prev=localedir ;;
  862. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  863. localedir=$ac_optarg ;;
  864. -localstatedir | --localstatedir | --localstatedi | --localstated \
  865. | --localstate | --localstat | --localsta | --localst | --locals)
  866. ac_prev=localstatedir ;;
  867. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  868. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  869. localstatedir=$ac_optarg ;;
  870. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  871. ac_prev=mandir ;;
  872. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  873. mandir=$ac_optarg ;;
  874. -nfp | --nfp | --nf)
  875. # Obsolete; use --without-fp.
  876. with_fp=no ;;
  877. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  878. | --no-cr | --no-c | -n)
  879. no_create=yes ;;
  880. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  881. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  882. no_recursion=yes ;;
  883. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  884. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  885. | --oldin | --oldi | --old | --ol | --o)
  886. ac_prev=oldincludedir ;;
  887. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  888. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  889. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  890. oldincludedir=$ac_optarg ;;
  891. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  892. ac_prev=prefix ;;
  893. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  894. prefix=$ac_optarg ;;
  895. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  896. | --program-pre | --program-pr | --program-p)
  897. ac_prev=program_prefix ;;
  898. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  899. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  900. program_prefix=$ac_optarg ;;
  901. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  902. | --program-suf | --program-su | --program-s)
  903. ac_prev=program_suffix ;;
  904. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  905. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  906. program_suffix=$ac_optarg ;;
  907. -program-transform-name | --program-transform-name \
  908. | --program-transform-nam | --program-transform-na \
  909. | --program-transform-n | --program-transform- \
  910. | --program-transform | --program-transfor \
  911. | --program-transfo | --program-transf \
  912. | --program-trans | --program-tran \
  913. | --progr-tra | --program-tr | --program-t)
  914. ac_prev=program_transform_name ;;
  915. -program-transform-name=* | --program-transform-name=* \
  916. | --program-transform-nam=* | --program-transform-na=* \
  917. | --program-transform-n=* | --program-transform-=* \
  918. | --program-transform=* | --program-transfor=* \
  919. | --program-transfo=* | --program-transf=* \
  920. | --program-trans=* | --program-tran=* \
  921. | --progr-tra=* | --program-tr=* | --program-t=*)
  922. program_transform_name=$ac_optarg ;;
  923. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  924. ac_prev=pdfdir ;;
  925. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  926. pdfdir=$ac_optarg ;;
  927. -psdir | --psdir | --psdi | --psd | --ps)
  928. ac_prev=psdir ;;
  929. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  930. psdir=$ac_optarg ;;
  931. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  932. | -silent | --silent | --silen | --sile | --sil)
  933. silent=yes ;;
  934. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  935. ac_prev=sbindir ;;
  936. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  937. | --sbi=* | --sb=*)
  938. sbindir=$ac_optarg ;;
  939. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  940. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  941. | --sharedst | --shareds | --shared | --share | --shar \
  942. | --sha | --sh)
  943. ac_prev=sharedstatedir ;;
  944. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  945. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  946. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  947. | --sha=* | --sh=*)
  948. sharedstatedir=$ac_optarg ;;
  949. -site | --site | --sit)
  950. ac_prev=site ;;
  951. -site=* | --site=* | --sit=*)
  952. site=$ac_optarg ;;
  953. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  954. ac_prev=srcdir ;;
  955. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  956. srcdir=$ac_optarg ;;
  957. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  958. | --syscon | --sysco | --sysc | --sys | --sy)
  959. ac_prev=sysconfdir ;;
  960. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  961. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  962. sysconfdir=$ac_optarg ;;
  963. -target | --target | --targe | --targ | --tar | --ta | --t)
  964. ac_prev=target_alias ;;
  965. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  966. target_alias=$ac_optarg ;;
  967. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  968. verbose=yes ;;
  969. -version | --version | --versio | --versi | --vers | -V)
  970. ac_init_version=: ;;
  971. -with-* | --with-*)
  972. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  973. # Reject names that are not valid shell variable names.
  974. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  975. as_fn_error $? "invalid package name: $ac_useropt"
  976. ac_useropt_orig=$ac_useropt
  977. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  978. case $ac_user_opts in
  979. *"
  980. "with_$ac_useropt"
  981. "*) ;;
  982. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  983. ac_unrecognized_sep=', ';;
  984. esac
  985. eval with_$ac_useropt=\$ac_optarg ;;
  986. -without-* | --without-*)
  987. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  988. # Reject names that are not valid shell variable names.
  989. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  990. as_fn_error $? "invalid package name: $ac_useropt"
  991. ac_useropt_orig=$ac_useropt
  992. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  993. case $ac_user_opts in
  994. *"
  995. "with_$ac_useropt"
  996. "*) ;;
  997. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  998. ac_unrecognized_sep=', ';;
  999. esac
  1000. eval with_$ac_useropt=no ;;
  1001. --x)
  1002. # Obsolete; use --with-x.
  1003. with_x=yes ;;
  1004. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1005. | --x-incl | --x-inc | --x-in | --x-i)
  1006. ac_prev=x_includes ;;
  1007. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1008. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1009. x_includes=$ac_optarg ;;
  1010. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1011. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1012. ac_prev=x_libraries ;;
  1013. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1014. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1015. x_libraries=$ac_optarg ;;
  1016. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1017. Try \`$0 --help' for more information"
  1018. ;;
  1019. *=*)
  1020. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1021. # Reject names that are not valid shell variable names.
  1022. case $ac_envvar in #(
  1023. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1024. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1025. esac
  1026. eval $ac_envvar=\$ac_optarg
  1027. export $ac_envvar ;;
  1028. *)
  1029. # FIXME: should be removed in autoconf 3.0.
  1030. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1031. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1032. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1033. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1034. ;;
  1035. esac
  1036. done
  1037. if test -n "$ac_prev"; then
  1038. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1039. as_fn_error $? "missing argument to $ac_option"
  1040. fi
  1041. if test -n "$ac_unrecognized_opts"; then
  1042. case $enable_option_checking in
  1043. no) ;;
  1044. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1045. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1046. esac
  1047. fi
  1048. # Check all directory arguments for consistency.
  1049. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1050. datadir sysconfdir sharedstatedir localstatedir includedir \
  1051. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1052. libdir localedir mandir
  1053. do
  1054. eval ac_val=\$$ac_var
  1055. # Remove trailing slashes.
  1056. case $ac_val in
  1057. */ )
  1058. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1059. eval $ac_var=\$ac_val;;
  1060. esac
  1061. # Be sure to have absolute directory names.
  1062. case $ac_val in
  1063. [\\/$]* | ?:[\\/]* ) continue;;
  1064. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1065. esac
  1066. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1067. done
  1068. # There might be people who depend on the old broken behavior: `$host'
  1069. # used to hold the argument of --host etc.
  1070. # FIXME: To remove some day.
  1071. build=$build_alias
  1072. host=$host_alias
  1073. target=$target_alias
  1074. # FIXME: To remove some day.
  1075. if test "x$host_alias" != x; then
  1076. if test "x$build_alias" = x; then
  1077. cross_compiling=maybe
  1078. elif test "x$build_alias" != "x$host_alias"; then
  1079. cross_compiling=yes
  1080. fi
  1081. fi
  1082. ac_tool_prefix=
  1083. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1084. test "$silent" = yes && exec 6>/dev/null
  1085. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1086. ac_ls_di=`ls -di .` &&
  1087. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1088. as_fn_error $? "working directory cannot be determined"
  1089. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1090. as_fn_error $? "pwd does not report name of working directory"
  1091. # Find the source files, if location was not specified.
  1092. if test -z "$srcdir"; then
  1093. ac_srcdir_defaulted=yes
  1094. # Try the directory containing this script, then the parent directory.
  1095. ac_confdir=`$as_dirname -- "$as_myself" ||
  1096. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1097. X"$as_myself" : 'X\(//\)[^/]' \| \
  1098. X"$as_myself" : 'X\(//\)$' \| \
  1099. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1100. $as_echo X"$as_myself" |
  1101. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1102. s//\1/
  1103. q
  1104. }
  1105. /^X\(\/\/\)[^/].*/{
  1106. s//\1/
  1107. q
  1108. }
  1109. /^X\(\/\/\)$/{
  1110. s//\1/
  1111. q
  1112. }
  1113. /^X\(\/\).*/{
  1114. s//\1/
  1115. q
  1116. }
  1117. s/.*/./; q'`
  1118. srcdir=$ac_confdir
  1119. if test ! -r "$srcdir/$ac_unique_file"; then
  1120. srcdir=..
  1121. fi
  1122. else
  1123. ac_srcdir_defaulted=no
  1124. fi
  1125. if test ! -r "$srcdir/$ac_unique_file"; then
  1126. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1127. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1128. fi
  1129. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1130. ac_abs_confdir=`(
  1131. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1132. pwd)`
  1133. # When building in place, set srcdir=.
  1134. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1135. srcdir=.
  1136. fi
  1137. # Remove unnecessary trailing slashes from srcdir.
  1138. # Double slashes in file names in object file debugging info
  1139. # mess up M-x gdb in Emacs.
  1140. case $srcdir in
  1141. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1142. esac
  1143. for ac_var in $ac_precious_vars; do
  1144. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1145. eval ac_env_${ac_var}_value=\$${ac_var}
  1146. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1147. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1148. done
  1149. #
  1150. # Report the --help message.
  1151. #
  1152. if test "$ac_init_help" = "long"; then
  1153. # Omit some internal or obsolete options to make the list less imposing.
  1154. # This message is too long to be a string in the A/UX 3.1 sh.
  1155. cat <<_ACEOF
  1156. \`configure' configures this package to adapt to many kinds of systems.
  1157. Usage: $0 [OPTION]... [VAR=VALUE]...
  1158. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1159. VAR=VALUE. See below for descriptions of some of the useful variables.
  1160. Defaults for the options are specified in brackets.
  1161. Configuration:
  1162. -h, --help display this help and exit
  1163. --help=short display options specific to this package
  1164. --help=recursive display the short help of all the included packages
  1165. -V, --version display version information and exit
  1166. -q, --quiet, --silent do not print \`checking ...' messages
  1167. --cache-file=FILE cache test results in FILE [disabled]
  1168. -C, --config-cache alias for \`--cache-file=config.cache'
  1169. -n, --no-create do not create output files
  1170. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1171. Installation directories:
  1172. --prefix=PREFIX install architecture-independent files in PREFIX
  1173. [$ac_default_prefix]
  1174. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1175. [PREFIX]
  1176. By default, \`make install' will install all the files in
  1177. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1178. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1179. for instance \`--prefix=\$HOME'.
  1180. For better control, use the options below.
  1181. Fine tuning of the installation directories:
  1182. --bindir=DIR user executables [EPREFIX/bin]
  1183. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1184. --libexecdir=DIR program executables [EPREFIX/libexec]
  1185. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1186. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1187. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1188. --libdir=DIR object code libraries [EPREFIX/lib]
  1189. --includedir=DIR C header files [PREFIX/include]
  1190. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1191. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1192. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1193. --infodir=DIR info documentation [DATAROOTDIR/info]
  1194. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1195. --mandir=DIR man documentation [DATAROOTDIR/man]
  1196. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1197. --htmldir=DIR html documentation [DOCDIR]
  1198. --dvidir=DIR dvi documentation [DOCDIR]
  1199. --pdfdir=DIR pdf documentation [DOCDIR]
  1200. --psdir=DIR ps documentation [DOCDIR]
  1201. _ACEOF
  1202. cat <<\_ACEOF
  1203. _ACEOF
  1204. fi
  1205. if test -n "$ac_init_help"; then
  1206. cat <<\_ACEOF
  1207. Optional Features:
  1208. --disable-option-checking ignore unrecognized --enable/--with options
  1209. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1210. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1211. --disable-ipv6 disable IPv6 support
  1212. --disable-script-tcl disable TCL Script support
  1213. Optional Packages:
  1214. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1215. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1216. --with-openssl=PATH Path to OpenSSL
  1217. --with-tcllib=PATH full path to Tcl library
  1218. --with-tclinc=PATH full path to Tcl header
  1219. Some influential environment variables:
  1220. CXX C++ compiler command
  1221. CXXFLAGS C++ compiler flags
  1222. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1223. nonstandard directory <lib dir>
  1224. LIBS libraries to pass to the linker, e.g. -l<library>
  1225. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1226. you have headers in a nonstandard directory <include dir>
  1227. CXXCPP C++ preprocessor
  1228. Use these variables to override the choices made by `configure' or to help
  1229. it to find libraries and programs with nonstandard names/locations.
  1230. Report bugs to the package provider.
  1231. _ACEOF
  1232. ac_status=$?
  1233. fi
  1234. if test "$ac_init_help" = "recursive"; then
  1235. # If there are subdirs, report their specific --help.
  1236. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1237. test -d "$ac_dir" ||
  1238. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1239. continue
  1240. ac_builddir=.
  1241. case "$ac_dir" in
  1242. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1243. *)
  1244. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1245. # A ".." for each directory in $ac_dir_suffix.
  1246. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1247. case $ac_top_builddir_sub in
  1248. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1249. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1250. esac ;;
  1251. esac
  1252. ac_abs_top_builddir=$ac_pwd
  1253. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1254. # for backward compatibility:
  1255. ac_top_builddir=$ac_top_build_prefix
  1256. case $srcdir in
  1257. .) # We are building in place.
  1258. ac_srcdir=.
  1259. ac_top_srcdir=$ac_top_builddir_sub
  1260. ac_abs_top_srcdir=$ac_pwd ;;
  1261. [\\/]* | ?:[\\/]* ) # Absolute name.
  1262. ac_srcdir=$srcdir$ac_dir_suffix;
  1263. ac_top_srcdir=$srcdir
  1264. ac_abs_top_srcdir=$srcdir ;;
  1265. *) # Relative name.
  1266. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1267. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1268. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1269. esac
  1270. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1271. cd "$ac_dir" || { ac_status=$?; continue; }
  1272. # Check for guested configure.
  1273. if test -f "$ac_srcdir/configure.gnu"; then
  1274. echo &&
  1275. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1276. elif test -f "$ac_srcdir/configure"; then
  1277. echo &&
  1278. $SHELL "$ac_srcdir/configure" --help=recursive
  1279. else
  1280. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1281. fi || ac_status=$?
  1282. cd "$ac_pwd" || { ac_status=$?; break; }
  1283. done
  1284. fi
  1285. test -n "$ac_init_help" && exit $ac_status
  1286. if $ac_init_version; then
  1287. cat <<\_ACEOF
  1288. configure
  1289. generated by GNU Autoconf 2.69
  1290. Copyright (C) 2012 Free Software Foundation, Inc.
  1291. This configure script is free software; the Free Software Foundation
  1292. gives unlimited permission to copy, distribute and modify it.
  1293. Copyright (c) Bryan Drewery
  1294. _ACEOF
  1295. exit
  1296. fi
  1297. ## ------------------------ ##
  1298. ## Autoconf initialization. ##
  1299. ## ------------------------ ##
  1300. # ac_fn_cxx_try_compile LINENO
  1301. # ----------------------------
  1302. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1303. ac_fn_cxx_try_compile ()
  1304. {
  1305. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1306. rm -f conftest.$ac_objext
  1307. if { { ac_try="$ac_compile"
  1308. case "(($ac_try" in
  1309. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1310. *) ac_try_echo=$ac_try;;
  1311. esac
  1312. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1313. $as_echo "$ac_try_echo"; } >&5
  1314. (eval "$ac_compile") 2>conftest.err
  1315. ac_status=$?
  1316. if test -s conftest.err; then
  1317. grep -v '^ *+' conftest.err >conftest.er1
  1318. cat conftest.er1 >&5
  1319. mv -f conftest.er1 conftest.err
  1320. fi
  1321. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1322. test $ac_status = 0; } && {
  1323. test -z "$ac_cxx_werror_flag" ||
  1324. test ! -s conftest.err
  1325. } && test -s conftest.$ac_objext; then :
  1326. ac_retval=0
  1327. else
  1328. $as_echo "$as_me: failed program was:" >&5
  1329. sed 's/^/| /' conftest.$ac_ext >&5
  1330. ac_retval=1
  1331. fi
  1332. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1333. as_fn_set_status $ac_retval
  1334. } # ac_fn_cxx_try_compile
  1335. # ac_fn_cxx_try_cpp LINENO
  1336. # ------------------------
  1337. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1338. ac_fn_cxx_try_cpp ()
  1339. {
  1340. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1341. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1342. case "(($ac_try" in
  1343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1344. *) ac_try_echo=$ac_try;;
  1345. esac
  1346. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1347. $as_echo "$ac_try_echo"; } >&5
  1348. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1349. ac_status=$?
  1350. if test -s conftest.err; then
  1351. grep -v '^ *+' conftest.err >conftest.er1
  1352. cat conftest.er1 >&5
  1353. mv -f conftest.er1 conftest.err
  1354. fi
  1355. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1356. test $ac_status = 0; } > conftest.i && {
  1357. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1358. test ! -s conftest.err
  1359. }; then :
  1360. ac_retval=0
  1361. else
  1362. $as_echo "$as_me: failed program was:" >&5
  1363. sed 's/^/| /' conftest.$ac_ext >&5
  1364. ac_retval=1
  1365. fi
  1366. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1367. as_fn_set_status $ac_retval
  1368. } # ac_fn_cxx_try_cpp
  1369. # ac_fn_cxx_try_link LINENO
  1370. # -------------------------
  1371. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1372. ac_fn_cxx_try_link ()
  1373. {
  1374. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1375. rm -f conftest.$ac_objext conftest$ac_exeext
  1376. if { { ac_try="$ac_link"
  1377. case "(($ac_try" in
  1378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1379. *) ac_try_echo=$ac_try;;
  1380. esac
  1381. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1382. $as_echo "$ac_try_echo"; } >&5
  1383. (eval "$ac_link") 2>conftest.err
  1384. ac_status=$?
  1385. if test -s conftest.err; then
  1386. grep -v '^ *+' conftest.err >conftest.er1
  1387. cat conftest.er1 >&5
  1388. mv -f conftest.er1 conftest.err
  1389. fi
  1390. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1391. test $ac_status = 0; } && {
  1392. test -z "$ac_cxx_werror_flag" ||
  1393. test ! -s conftest.err
  1394. } && test -s conftest$ac_exeext && {
  1395. test "$cross_compiling" = yes ||
  1396. test -x conftest$ac_exeext
  1397. }; then :
  1398. ac_retval=0
  1399. else
  1400. $as_echo "$as_me: failed program was:" >&5
  1401. sed 's/^/| /' conftest.$ac_ext >&5
  1402. ac_retval=1
  1403. fi
  1404. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1405. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1406. # interfere with the next link command; also delete a directory that is
  1407. # left behind by Apple's compiler. We do this before executing the actions.
  1408. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1409. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1410. as_fn_set_status $ac_retval
  1411. } # ac_fn_cxx_try_link
  1412. # ac_fn_cxx_try_run LINENO
  1413. # ------------------------
  1414. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1415. # that executables *can* be run.
  1416. ac_fn_cxx_try_run ()
  1417. {
  1418. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1419. if { { ac_try="$ac_link"
  1420. case "(($ac_try" in
  1421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1422. *) ac_try_echo=$ac_try;;
  1423. esac
  1424. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1425. $as_echo "$ac_try_echo"; } >&5
  1426. (eval "$ac_link") 2>&5
  1427. ac_status=$?
  1428. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1429. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1430. { { case "(($ac_try" in
  1431. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1432. *) ac_try_echo=$ac_try;;
  1433. esac
  1434. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1435. $as_echo "$ac_try_echo"; } >&5
  1436. (eval "$ac_try") 2>&5
  1437. ac_status=$?
  1438. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1439. test $ac_status = 0; }; }; then :
  1440. ac_retval=0
  1441. else
  1442. $as_echo "$as_me: program exited with status $ac_status" >&5
  1443. $as_echo "$as_me: failed program was:" >&5
  1444. sed 's/^/| /' conftest.$ac_ext >&5
  1445. ac_retval=$ac_status
  1446. fi
  1447. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1448. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1449. as_fn_set_status $ac_retval
  1450. } # ac_fn_cxx_try_run
  1451. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1452. # ---------------------------------------------------------
  1453. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1454. # the include files in INCLUDES and setting the cache variable VAR
  1455. # accordingly.
  1456. ac_fn_cxx_check_header_mongrel ()
  1457. {
  1458. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1459. if eval \${$3+:} false; then :
  1460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1461. $as_echo_n "checking for $2... " >&6; }
  1462. if eval \${$3+:} false; then :
  1463. $as_echo_n "(cached) " >&6
  1464. fi
  1465. eval ac_res=\$$3
  1466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1467. $as_echo "$ac_res" >&6; }
  1468. else
  1469. # Is the header compilable?
  1470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1471. $as_echo_n "checking $2 usability... " >&6; }
  1472. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1473. /* end build/confdefs.h. */
  1474. $4
  1475. #include <$2>
  1476. _ACEOF
  1477. if ac_fn_cxx_try_compile "$LINENO"; then :
  1478. ac_header_compiler=yes
  1479. else
  1480. ac_header_compiler=no
  1481. fi
  1482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1484. $as_echo "$ac_header_compiler" >&6; }
  1485. # Is the header present?
  1486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1487. $as_echo_n "checking $2 presence... " >&6; }
  1488. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1489. /* end build/confdefs.h. */
  1490. #include <$2>
  1491. _ACEOF
  1492. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1493. ac_header_preproc=yes
  1494. else
  1495. ac_header_preproc=no
  1496. fi
  1497. rm -f conftest.err conftest.i conftest.$ac_ext
  1498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1499. $as_echo "$ac_header_preproc" >&6; }
  1500. # So? What about this header?
  1501. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1502. yes:no: )
  1503. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1504. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1505. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1506. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1507. ;;
  1508. no:yes:* )
  1509. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1510. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1511. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1512. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1513. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1514. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1515. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1516. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1518. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1519. ;;
  1520. esac
  1521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1522. $as_echo_n "checking for $2... " >&6; }
  1523. if eval \${$3+:} false; then :
  1524. $as_echo_n "(cached) " >&6
  1525. else
  1526. eval "$3=\$ac_header_compiler"
  1527. fi
  1528. eval ac_res=\$$3
  1529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1530. $as_echo "$ac_res" >&6; }
  1531. fi
  1532. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1533. } # ac_fn_cxx_check_header_mongrel
  1534. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1535. # ---------------------------------------------------------
  1536. # Tests whether HEADER exists and can be compiled using the include files in
  1537. # INCLUDES, setting the cache variable VAR accordingly.
  1538. ac_fn_cxx_check_header_compile ()
  1539. {
  1540. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1542. $as_echo_n "checking for $2... " >&6; }
  1543. if eval \${$3+:} false; then :
  1544. $as_echo_n "(cached) " >&6
  1545. else
  1546. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1547. /* end build/confdefs.h. */
  1548. $4
  1549. #include <$2>
  1550. _ACEOF
  1551. if ac_fn_cxx_try_compile "$LINENO"; then :
  1552. eval "$3=yes"
  1553. else
  1554. eval "$3=no"
  1555. fi
  1556. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1557. fi
  1558. eval ac_res=\$$3
  1559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1560. $as_echo "$ac_res" >&6; }
  1561. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1562. } # ac_fn_cxx_check_header_compile
  1563. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1564. # ---------------------------------------------
  1565. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1566. # variable VAR accordingly.
  1567. ac_fn_cxx_check_type ()
  1568. {
  1569. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1571. $as_echo_n "checking for $2... " >&6; }
  1572. if eval \${$3+:} false; then :
  1573. $as_echo_n "(cached) " >&6
  1574. else
  1575. eval "$3=no"
  1576. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1577. /* end build/confdefs.h. */
  1578. $4
  1579. int
  1580. main ()
  1581. {
  1582. if (sizeof ($2))
  1583. return 0;
  1584. ;
  1585. return 0;
  1586. }
  1587. _ACEOF
  1588. if ac_fn_cxx_try_compile "$LINENO"; then :
  1589. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1590. /* end build/confdefs.h. */
  1591. $4
  1592. int
  1593. main ()
  1594. {
  1595. if (sizeof (($2)))
  1596. return 0;
  1597. ;
  1598. return 0;
  1599. }
  1600. _ACEOF
  1601. if ac_fn_cxx_try_compile "$LINENO"; then :
  1602. else
  1603. eval "$3=yes"
  1604. fi
  1605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1606. fi
  1607. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1608. fi
  1609. eval ac_res=\$$3
  1610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1611. $as_echo "$ac_res" >&6; }
  1612. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1613. } # ac_fn_cxx_check_type
  1614. # ac_fn_c_find_intX_t LINENO BITS VAR
  1615. # -----------------------------------
  1616. # Finds a signed integer type with width BITS, setting cache variable VAR
  1617. # accordingly.
  1618. ac_fn_c_find_intX_t ()
  1619. {
  1620. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1622. $as_echo_n "checking for int$2_t... " >&6; }
  1623. if eval \${$3+:} false; then :
  1624. $as_echo_n "(cached) " >&6
  1625. else
  1626. eval "$3=no"
  1627. # Order is important - never check a type that is potentially smaller
  1628. # than half of the expected target width.
  1629. for ac_type in int$2_t 'int' 'long int' \
  1630. 'long long int' 'short int' 'signed char'; do
  1631. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1632. /* end build/confdefs.h. */
  1633. $ac_includes_default
  1634. enum { N = $2 / 2 - 1 };
  1635. int
  1636. main ()
  1637. {
  1638. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1639. test_array [0] = 0;
  1640. return test_array [0];
  1641. ;
  1642. return 0;
  1643. }
  1644. _ACEOF
  1645. if ac_fn_cxx_try_compile "$LINENO"; then :
  1646. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1647. /* end build/confdefs.h. */
  1648. $ac_includes_default
  1649. enum { N = $2 / 2 - 1 };
  1650. int
  1651. main ()
  1652. {
  1653. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1654. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1655. test_array [0] = 0;
  1656. return test_array [0];
  1657. ;
  1658. return 0;
  1659. }
  1660. _ACEOF
  1661. if ac_fn_cxx_try_compile "$LINENO"; then :
  1662. else
  1663. case $ac_type in #(
  1664. int$2_t) :
  1665. eval "$3=yes" ;; #(
  1666. *) :
  1667. eval "$3=\$ac_type" ;;
  1668. esac
  1669. fi
  1670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1671. fi
  1672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1673. if eval test \"x\$"$3"\" = x"no"; then :
  1674. else
  1675. break
  1676. fi
  1677. done
  1678. fi
  1679. eval ac_res=\$$3
  1680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1681. $as_echo "$ac_res" >&6; }
  1682. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1683. } # ac_fn_c_find_intX_t
  1684. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1685. # ------------------------------------
  1686. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1687. # accordingly.
  1688. ac_fn_c_find_uintX_t ()
  1689. {
  1690. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1692. $as_echo_n "checking for uint$2_t... " >&6; }
  1693. if eval \${$3+:} false; then :
  1694. $as_echo_n "(cached) " >&6
  1695. else
  1696. eval "$3=no"
  1697. # Order is important - never check a type that is potentially smaller
  1698. # than half of the expected target width.
  1699. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1700. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1701. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1702. /* end build/confdefs.h. */
  1703. $ac_includes_default
  1704. int
  1705. main ()
  1706. {
  1707. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1708. test_array [0] = 0;
  1709. return test_array [0];
  1710. ;
  1711. return 0;
  1712. }
  1713. _ACEOF
  1714. if ac_fn_cxx_try_compile "$LINENO"; then :
  1715. case $ac_type in #(
  1716. uint$2_t) :
  1717. eval "$3=yes" ;; #(
  1718. *) :
  1719. eval "$3=\$ac_type" ;;
  1720. esac
  1721. fi
  1722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1723. if eval test \"x\$"$3"\" = x"no"; then :
  1724. else
  1725. break
  1726. fi
  1727. done
  1728. fi
  1729. eval ac_res=\$$3
  1730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1731. $as_echo "$ac_res" >&6; }
  1732. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1733. } # ac_fn_c_find_uintX_t
  1734. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  1735. # ------------------------------------------------------
  1736. # Tries to find if the field MEMBER exists in type AGGR, after including
  1737. # INCLUDES, setting cache variable VAR accordingly.
  1738. ac_fn_cxx_check_member ()
  1739. {
  1740. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1742. $as_echo_n "checking for $2.$3... " >&6; }
  1743. if eval \${$4+:} false; then :
  1744. $as_echo_n "(cached) " >&6
  1745. else
  1746. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1747. /* end build/confdefs.h. */
  1748. $5
  1749. int
  1750. main ()
  1751. {
  1752. static $2 ac_aggr;
  1753. if (ac_aggr.$3)
  1754. return 0;
  1755. ;
  1756. return 0;
  1757. }
  1758. _ACEOF
  1759. if ac_fn_cxx_try_compile "$LINENO"; then :
  1760. eval "$4=yes"
  1761. else
  1762. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1763. /* end build/confdefs.h. */
  1764. $5
  1765. int
  1766. main ()
  1767. {
  1768. static $2 ac_aggr;
  1769. if (sizeof ac_aggr.$3)
  1770. return 0;
  1771. ;
  1772. return 0;
  1773. }
  1774. _ACEOF
  1775. if ac_fn_cxx_try_compile "$LINENO"; then :
  1776. eval "$4=yes"
  1777. else
  1778. eval "$4=no"
  1779. fi
  1780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1781. fi
  1782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1783. fi
  1784. eval ac_res=\$$4
  1785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1786. $as_echo "$ac_res" >&6; }
  1787. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1788. } # ac_fn_cxx_check_member
  1789. # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
  1790. # -----------------------------------------------
  1791. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1792. # accordingly.
  1793. ac_fn_cxx_check_decl ()
  1794. {
  1795. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1796. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1797. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1799. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1800. if eval \${$3+:} false; then :
  1801. $as_echo_n "(cached) " >&6
  1802. else
  1803. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1804. /* end build/confdefs.h. */
  1805. $4
  1806. int
  1807. main ()
  1808. {
  1809. #ifndef $as_decl_name
  1810. #ifdef __cplusplus
  1811. (void) $as_decl_use;
  1812. #else
  1813. (void) $as_decl_name;
  1814. #endif
  1815. #endif
  1816. ;
  1817. return 0;
  1818. }
  1819. _ACEOF
  1820. if ac_fn_cxx_try_compile "$LINENO"; then :
  1821. eval "$3=yes"
  1822. else
  1823. eval "$3=no"
  1824. fi
  1825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1826. fi
  1827. eval ac_res=\$$3
  1828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1829. $as_echo "$ac_res" >&6; }
  1830. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1831. } # ac_fn_cxx_check_decl
  1832. # ac_fn_cxx_check_func LINENO FUNC VAR
  1833. # ------------------------------------
  1834. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1835. ac_fn_cxx_check_func ()
  1836. {
  1837. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1839. $as_echo_n "checking for $2... " >&6; }
  1840. if eval \${$3+:} false; then :
  1841. $as_echo_n "(cached) " >&6
  1842. else
  1843. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1844. /* end build/confdefs.h. */
  1845. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1846. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1847. #define $2 innocuous_$2
  1848. /* System header to define __stub macros and hopefully few prototypes,
  1849. which can conflict with char $2 (); below.
  1850. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1851. <limits.h> exists even on freestanding compilers. */
  1852. #ifdef __STDC__
  1853. # include <limits.h>
  1854. #else
  1855. # include <assert.h>
  1856. #endif
  1857. #undef $2
  1858. /* Override any GCC internal prototype to avoid an error.
  1859. Use char because int might match the return type of a GCC
  1860. builtin and then its argument prototype would still apply. */
  1861. #ifdef __cplusplus
  1862. extern "C"
  1863. #endif
  1864. char $2 ();
  1865. /* The GNU C library defines this for functions which it implements
  1866. to always fail with ENOSYS. Some functions are actually named
  1867. something starting with __ and the normal name is an alias. */
  1868. #if defined __stub_$2 || defined __stub___$2
  1869. choke me
  1870. #endif
  1871. int
  1872. main ()
  1873. {
  1874. return $2 ();
  1875. ;
  1876. return 0;
  1877. }
  1878. _ACEOF
  1879. if ac_fn_cxx_try_link "$LINENO"; then :
  1880. eval "$3=yes"
  1881. else
  1882. eval "$3=no"
  1883. fi
  1884. rm -f core conftest.err conftest.$ac_objext \
  1885. conftest$ac_exeext conftest.$ac_ext
  1886. fi
  1887. eval ac_res=\$$3
  1888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1889. $as_echo "$ac_res" >&6; }
  1890. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1891. } # ac_fn_cxx_check_func
  1892. cat >build/config.log <<_ACEOF
  1893. This file contains any messages produced by compilers while
  1894. running configure, to aid debugging if configure makes a mistake.
  1895. It was created by $as_me, which was
  1896. generated by GNU Autoconf 2.69. Invocation command line was
  1897. $ $0 $@
  1898. _ACEOF
  1899. exec 5>>build/config.log
  1900. {
  1901. cat <<_ASUNAME
  1902. ## --------- ##
  1903. ## Platform. ##
  1904. ## --------- ##
  1905. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1906. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1907. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1908. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1909. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1910. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1911. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1912. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1913. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1914. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1915. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1916. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1917. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1918. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1919. _ASUNAME
  1920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1921. for as_dir in $PATH
  1922. do
  1923. IFS=$as_save_IFS
  1924. test -z "$as_dir" && as_dir=.
  1925. $as_echo "PATH: $as_dir"
  1926. done
  1927. IFS=$as_save_IFS
  1928. } >&5
  1929. cat >&5 <<_ACEOF
  1930. ## ----------- ##
  1931. ## Core tests. ##
  1932. ## ----------- ##
  1933. _ACEOF
  1934. # Keep a trace of the command line.
  1935. # Strip out --no-create and --no-recursion so they do not pile up.
  1936. # Strip out --silent because we don't want to record it for future runs.
  1937. # Also quote any args containing shell meta-characters.
  1938. # Make two passes to allow for proper duplicate-argument suppression.
  1939. ac_configure_args=
  1940. ac_configure_args0=
  1941. ac_configure_args1=
  1942. ac_must_keep_next=false
  1943. for ac_pass in 1 2
  1944. do
  1945. for ac_arg
  1946. do
  1947. case $ac_arg in
  1948. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1949. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1950. | -silent | --silent | --silen | --sile | --sil)
  1951. continue ;;
  1952. *\'*)
  1953. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1954. esac
  1955. case $ac_pass in
  1956. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1957. 2)
  1958. as_fn_append ac_configure_args1 " '$ac_arg'"
  1959. if test $ac_must_keep_next = true; then
  1960. ac_must_keep_next=false # Got value, back to normal.
  1961. else
  1962. case $ac_arg in
  1963. *=* | --config-cache | -C | -disable-* | --disable-* \
  1964. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1965. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1966. | -with-* | --with-* | -without-* | --without-* | --x)
  1967. case "$ac_configure_args0 " in
  1968. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1969. esac
  1970. ;;
  1971. -* ) ac_must_keep_next=true ;;
  1972. esac
  1973. fi
  1974. as_fn_append ac_configure_args " '$ac_arg'"
  1975. ;;
  1976. esac
  1977. done
  1978. done
  1979. { ac_configure_args0=; unset ac_configure_args0;}
  1980. { ac_configure_args1=; unset ac_configure_args1;}
  1981. # When interrupted or exit'd, cleanup temporary files, and complete
  1982. # build/config.log. We remove comments because anyway the quotes in there
  1983. # would cause problems or look ugly.
  1984. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1985. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1986. trap 'exit_status=$?
  1987. # Save into build/config.log some information that might help in debugging.
  1988. {
  1989. echo
  1990. $as_echo "## ---------------- ##
  1991. ## Cache variables. ##
  1992. ## ---------------- ##"
  1993. echo
  1994. # The following way of writing the cache mishandles newlines in values,
  1995. (
  1996. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1997. eval ac_val=\$$ac_var
  1998. case $ac_val in #(
  1999. *${as_nl}*)
  2000. case $ac_var in #(
  2001. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2002. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2003. esac
  2004. case $ac_var in #(
  2005. _ | IFS | as_nl) ;; #(
  2006. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2007. *) { eval $ac_var=; unset $ac_var;} ;;
  2008. esac ;;
  2009. esac
  2010. done
  2011. (set) 2>&1 |
  2012. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2013. *${as_nl}ac_space=\ *)
  2014. sed -n \
  2015. "s/'\''/'\''\\\\'\'''\''/g;
  2016. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2017. ;; #(
  2018. *)
  2019. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2020. ;;
  2021. esac |
  2022. sort
  2023. )
  2024. echo
  2025. $as_echo "## ----------------- ##
  2026. ## Output variables. ##
  2027. ## ----------------- ##"
  2028. echo
  2029. for ac_var in $ac_subst_vars
  2030. do
  2031. eval ac_val=\$$ac_var
  2032. case $ac_val in
  2033. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2034. esac
  2035. $as_echo "$ac_var='\''$ac_val'\''"
  2036. done | sort
  2037. echo
  2038. if test -n "$ac_subst_files"; then
  2039. $as_echo "## ------------------- ##
  2040. ## File substitutions. ##
  2041. ## ------------------- ##"
  2042. echo
  2043. for ac_var in $ac_subst_files
  2044. do
  2045. eval ac_val=\$$ac_var
  2046. case $ac_val in
  2047. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2048. esac
  2049. $as_echo "$ac_var='\''$ac_val'\''"
  2050. done | sort
  2051. echo
  2052. fi
  2053. if test -s build/confdefs.h; then
  2054. $as_echo "## ----------- ##
  2055. ## build/confdefs.h. ##
  2056. ## ----------- ##"
  2057. echo
  2058. cat build/confdefs.h
  2059. echo
  2060. fi
  2061. test "$ac_signal" != 0 &&
  2062. $as_echo "$as_me: caught signal $ac_signal"
  2063. $as_echo "$as_me: exit $exit_status"
  2064. } >&5
  2065. rm -f core *.core core.conftest.* &&
  2066. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2067. exit $exit_status
  2068. ' 0
  2069. for ac_signal in 1 2 13 15; do
  2070. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2071. done
  2072. ac_signal=0
  2073. # build/confdefs.h avoids OS command line length limits that DEFS can exceed.
  2074. rm -f -r conftest* build/confdefs.h
  2075. $as_echo "/* build/confdefs.h */" > build/confdefs.h
  2076. # Predefined preprocessor variables.
  2077. cat >>build/confdefs.h <<_ACEOF
  2078. #define PACKAGE_NAME "$PACKAGE_NAME"
  2079. _ACEOF
  2080. cat >>build/confdefs.h <<_ACEOF
  2081. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2082. _ACEOF
  2083. cat >>build/confdefs.h <<_ACEOF
  2084. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2085. _ACEOF
  2086. cat >>build/confdefs.h <<_ACEOF
  2087. #define PACKAGE_STRING "$PACKAGE_STRING"
  2088. _ACEOF
  2089. cat >>build/confdefs.h <<_ACEOF
  2090. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2091. _ACEOF
  2092. cat >>build/confdefs.h <<_ACEOF
  2093. #define PACKAGE_URL "$PACKAGE_URL"
  2094. _ACEOF
  2095. # Let the site file select an alternate cache file if it wants to.
  2096. # Prefer an explicitly selected file to automatically selected ones.
  2097. ac_site_file1=NONE
  2098. ac_site_file2=NONE
  2099. if test -n "$CONFIG_SITE"; then
  2100. # We do not want a PATH search for config.site.
  2101. case $CONFIG_SITE in #((
  2102. -*) ac_site_file1=./$CONFIG_SITE;;
  2103. */*) ac_site_file1=$CONFIG_SITE;;
  2104. *) ac_site_file1=./$CONFIG_SITE;;
  2105. esac
  2106. elif test "x$prefix" != xNONE; then
  2107. ac_site_file1=$prefix/share/config.site
  2108. ac_site_file2=$prefix/etc/config.site
  2109. else
  2110. ac_site_file1=$ac_default_prefix/share/config.site
  2111. ac_site_file2=$ac_default_prefix/etc/config.site
  2112. fi
  2113. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2114. do
  2115. test "x$ac_site_file" = xNONE && continue
  2116. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2117. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2118. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2119. sed 's/^/| /' "$ac_site_file" >&5
  2120. . "$ac_site_file" \
  2121. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2122. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2123. as_fn_error $? "failed to load site script $ac_site_file
  2124. See \`build/config.log' for more details" "$LINENO" 5; }
  2125. fi
  2126. done
  2127. if test -r "$cache_file"; then
  2128. # Some versions of bash will fail to source /dev/null (special files
  2129. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2130. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2131. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2132. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2133. case $cache_file in
  2134. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2135. *) . "./$cache_file";;
  2136. esac
  2137. fi
  2138. else
  2139. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2140. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2141. >$cache_file
  2142. fi
  2143. as_fn_append ac_header_list " stdlib.h"
  2144. as_fn_append ac_header_list " unistd.h"
  2145. as_fn_append ac_header_list " sys/param.h"
  2146. # Check that the precious variables saved in the cache have kept the same
  2147. # value.
  2148. ac_cache_corrupted=false
  2149. for ac_var in $ac_precious_vars; do
  2150. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2151. eval ac_new_set=\$ac_env_${ac_var}_set
  2152. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2153. eval ac_new_val=\$ac_env_${ac_var}_value
  2154. case $ac_old_set,$ac_new_set in
  2155. set,)
  2156. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2157. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2158. ac_cache_corrupted=: ;;
  2159. ,set)
  2160. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2161. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2162. ac_cache_corrupted=: ;;
  2163. ,);;
  2164. *)
  2165. if test "x$ac_old_val" != "x$ac_new_val"; then
  2166. # differences in whitespace do not lead to failure.
  2167. ac_old_val_w=`echo x $ac_old_val`
  2168. ac_new_val_w=`echo x $ac_new_val`
  2169. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2170. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2171. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2172. ac_cache_corrupted=:
  2173. else
  2174. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2175. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2176. eval $ac_var=\$ac_old_val
  2177. fi
  2178. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2179. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2180. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2181. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2182. fi;;
  2183. esac
  2184. # Pass precious variables to build/config.status.
  2185. if test "$ac_new_set" = set; then
  2186. case $ac_new_val in
  2187. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2188. *) ac_arg=$ac_var=$ac_new_val ;;
  2189. esac
  2190. case " $ac_configure_args " in
  2191. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2192. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2193. esac
  2194. fi
  2195. done
  2196. if $ac_cache_corrupted; then
  2197. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2198. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2199. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2200. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2201. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2202. fi
  2203. ## -------------------- ##
  2204. ## Main body of script. ##
  2205. ## -------------------- ##
  2206. ac_ext=c
  2207. ac_cpp='$CPP $CPPFLAGS'
  2208. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2209. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2210. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2211. ac_config_headers="$ac_config_headers src/config.h"
  2212. ac_aux_dir=
  2213. for ac_dir in build/autotools "$srcdir"/build/autotools; do
  2214. if test -f "$ac_dir/install-sh"; then
  2215. ac_aux_dir=$ac_dir
  2216. ac_install_sh="$ac_aux_dir/install-sh -c"
  2217. break
  2218. elif test -f "$ac_dir/install.sh"; then
  2219. ac_aux_dir=$ac_dir
  2220. ac_install_sh="$ac_aux_dir/install.sh -c"
  2221. break
  2222. elif test -f "$ac_dir/shtool"; then
  2223. ac_aux_dir=$ac_dir
  2224. ac_install_sh="$ac_aux_dir/shtool install -c"
  2225. break
  2226. fi
  2227. done
  2228. if test -z "$ac_aux_dir"; then
  2229. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build/autotools \"$srcdir\"/build/autotools" "$LINENO" 5
  2230. fi
  2231. # These three variables are undocumented and unsupported,
  2232. # and are intended to be withdrawn in a future Autoconf release.
  2233. # They can cause serious problems if a builder's source tree is in a directory
  2234. # whose full name contains unusual characters.
  2235. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2236. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2237. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2238. # Remove --cache-file and --srcdir arguments so they do not pile up.
  2239. egg_ac_parameters=
  2240. ac_prev=
  2241. for ac_arg in $ac_configure_args; do
  2242. if test -n "$ac_prev"; then
  2243. ac_prev=
  2244. continue
  2245. fi
  2246. case $ac_arg in
  2247. -cache-file | --cache-file | --cache-fil | --cache-fi \
  2248. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  2249. ac_prev=cache_file ;;
  2250. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  2251. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  2252. | --c=*)
  2253. ;;
  2254. --config-cache | -C)
  2255. ;;
  2256. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  2257. ac_prev=srcdir ;;
  2258. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  2259. ;;
  2260. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  2261. esac
  2262. done
  2263. # Setup build environment
  2264. #AC_REQUIRE_CPP
  2265. ac_ext=cpp
  2266. ac_cpp='$CXXCPP $CPPFLAGS'
  2267. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2268. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2269. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2270. ac_ext=cpp
  2271. ac_cpp='$CXXCPP $CPPFLAGS'
  2272. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2273. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2274. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2275. if test -z "$CXX"; then
  2276. if test -n "$CCC"; then
  2277. CXX=$CCC
  2278. else
  2279. if test -n "$ac_tool_prefix"; then
  2280. for ac_prog in clang++80 clang++70 clang++60 clang++50 clang++40 clang++39 clang++38 clang++37 clang++36 clang++35 clang++34 g++8 g++7 g++6 g++5 clang++ eg++ g++ c++ CC cxx cc++
  2281. do
  2282. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2283. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2285. $as_echo_n "checking for $ac_word... " >&6; }
  2286. if ${ac_cv_prog_CXX+:} false; then :
  2287. $as_echo_n "(cached) " >&6
  2288. else
  2289. if test -n "$CXX"; then
  2290. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2291. else
  2292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2293. for as_dir in $PATH
  2294. do
  2295. IFS=$as_save_IFS
  2296. test -z "$as_dir" && as_dir=.
  2297. for ac_exec_ext in '' $ac_executable_extensions; do
  2298. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2299. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2300. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2301. break 2
  2302. fi
  2303. done
  2304. done
  2305. IFS=$as_save_IFS
  2306. fi
  2307. fi
  2308. CXX=$ac_cv_prog_CXX
  2309. if test -n "$CXX"; then
  2310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2311. $as_echo "$CXX" >&6; }
  2312. else
  2313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2314. $as_echo "no" >&6; }
  2315. fi
  2316. test -n "$CXX" && break
  2317. done
  2318. fi
  2319. if test -z "$CXX"; then
  2320. ac_ct_CXX=$CXX
  2321. for ac_prog in clang++80 clang++70 clang++60 clang++50 clang++40 clang++39 clang++38 clang++37 clang++36 clang++35 clang++34 g++8 g++7 g++6 g++5 clang++ eg++ g++ c++ CC cxx cc++
  2322. do
  2323. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2324. set dummy $ac_prog; ac_word=$2
  2325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2326. $as_echo_n "checking for $ac_word... " >&6; }
  2327. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  2328. $as_echo_n "(cached) " >&6
  2329. else
  2330. if test -n "$ac_ct_CXX"; then
  2331. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2332. else
  2333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2334. for as_dir in $PATH
  2335. do
  2336. IFS=$as_save_IFS
  2337. test -z "$as_dir" && as_dir=.
  2338. for ac_exec_ext in '' $ac_executable_extensions; do
  2339. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2340. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2341. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2342. break 2
  2343. fi
  2344. done
  2345. done
  2346. IFS=$as_save_IFS
  2347. fi
  2348. fi
  2349. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2350. if test -n "$ac_ct_CXX"; then
  2351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2352. $as_echo "$ac_ct_CXX" >&6; }
  2353. else
  2354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2355. $as_echo "no" >&6; }
  2356. fi
  2357. test -n "$ac_ct_CXX" && break
  2358. done
  2359. if test "x$ac_ct_CXX" = x; then
  2360. CXX="g++"
  2361. else
  2362. case $cross_compiling:$ac_tool_warned in
  2363. yes:)
  2364. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2365. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2366. ac_tool_warned=yes ;;
  2367. esac
  2368. CXX=$ac_ct_CXX
  2369. fi
  2370. fi
  2371. fi
  2372. fi
  2373. # Provide some information about the compiler.
  2374. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2375. set X $ac_compile
  2376. ac_compiler=$2
  2377. for ac_option in --version -v -V -qversion; do
  2378. { { ac_try="$ac_compiler $ac_option >&5"
  2379. case "(($ac_try" in
  2380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2381. *) ac_try_echo=$ac_try;;
  2382. esac
  2383. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2384. $as_echo "$ac_try_echo"; } >&5
  2385. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2386. ac_status=$?
  2387. if test -s conftest.err; then
  2388. sed '10a\
  2389. ... rest of stderr output deleted ...
  2390. 10q' conftest.err >conftest.er1
  2391. cat conftest.er1 >&5
  2392. fi
  2393. rm -f conftest.er1 conftest.err
  2394. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2395. test $ac_status = 0; }
  2396. done
  2397. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2398. /* end build/confdefs.h. */
  2399. int
  2400. main ()
  2401. {
  2402. ;
  2403. return 0;
  2404. }
  2405. _ACEOF
  2406. ac_clean_files_save=$ac_clean_files
  2407. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2408. # Try to create an executable without -o first, disregard a.out.
  2409. # It will help us diagnose broken compilers, and finding out an intuition
  2410. # of exeext.
  2411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2412. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2413. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2414. # The possible output files:
  2415. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2416. ac_rmfiles=
  2417. for ac_file in $ac_files
  2418. do
  2419. case $ac_file in
  2420. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2421. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2422. esac
  2423. done
  2424. rm -f $ac_rmfiles
  2425. if { { ac_try="$ac_link_default"
  2426. case "(($ac_try" in
  2427. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2428. *) ac_try_echo=$ac_try;;
  2429. esac
  2430. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2431. $as_echo "$ac_try_echo"; } >&5
  2432. (eval "$ac_link_default") 2>&5
  2433. ac_status=$?
  2434. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2435. test $ac_status = 0; }; then :
  2436. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2437. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2438. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2439. # so that the user can short-circuit this test for compilers unknown to
  2440. # Autoconf.
  2441. for ac_file in $ac_files ''
  2442. do
  2443. test -f "$ac_file" || continue
  2444. case $ac_file in
  2445. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2446. ;;
  2447. [ab].out )
  2448. # We found the default executable, but exeext='' is most
  2449. # certainly right.
  2450. break;;
  2451. *.* )
  2452. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2453. then :; else
  2454. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2455. fi
  2456. # We set ac_cv_exeext here because the later test for it is not
  2457. # safe: cross compilers may not add the suffix if given an `-o'
  2458. # argument, so we may need to know it at that point already.
  2459. # Even if this section looks crufty: it has the advantage of
  2460. # actually working.
  2461. break;;
  2462. * )
  2463. break;;
  2464. esac
  2465. done
  2466. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2467. else
  2468. ac_file=''
  2469. fi
  2470. if test -z "$ac_file"; then :
  2471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2472. $as_echo "no" >&6; }
  2473. $as_echo "$as_me: failed program was:" >&5
  2474. sed 's/^/| /' conftest.$ac_ext >&5
  2475. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2476. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2477. as_fn_error 77 "C++ compiler cannot create executables
  2478. See \`build/config.log' for more details" "$LINENO" 5; }
  2479. else
  2480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2481. $as_echo "yes" >&6; }
  2482. fi
  2483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2484. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2486. $as_echo "$ac_file" >&6; }
  2487. ac_exeext=$ac_cv_exeext
  2488. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2489. ac_clean_files=$ac_clean_files_save
  2490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2491. $as_echo_n "checking for suffix of executables... " >&6; }
  2492. if { { ac_try="$ac_link"
  2493. case "(($ac_try" in
  2494. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2495. *) ac_try_echo=$ac_try;;
  2496. esac
  2497. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2498. $as_echo "$ac_try_echo"; } >&5
  2499. (eval "$ac_link") 2>&5
  2500. ac_status=$?
  2501. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2502. test $ac_status = 0; }; then :
  2503. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2504. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2505. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2506. # `rm'.
  2507. for ac_file in conftest.exe conftest conftest.*; do
  2508. test -f "$ac_file" || continue
  2509. case $ac_file in
  2510. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2511. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2512. break;;
  2513. * ) break;;
  2514. esac
  2515. done
  2516. else
  2517. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2518. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2519. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2520. See \`build/config.log' for more details" "$LINENO" 5; }
  2521. fi
  2522. rm -f conftest conftest$ac_cv_exeext
  2523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2524. $as_echo "$ac_cv_exeext" >&6; }
  2525. rm -f conftest.$ac_ext
  2526. EXEEXT=$ac_cv_exeext
  2527. ac_exeext=$EXEEXT
  2528. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2529. /* end build/confdefs.h. */
  2530. #include <stdio.h>
  2531. int
  2532. main ()
  2533. {
  2534. FILE *f = fopen ("conftest.out", "w");
  2535. return ferror (f) || fclose (f) != 0;
  2536. ;
  2537. return 0;
  2538. }
  2539. _ACEOF
  2540. ac_clean_files="$ac_clean_files conftest.out"
  2541. # Check that the compiler produces executables we can run. If not, either
  2542. # the compiler is broken, or we cross compile.
  2543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2544. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2545. if test "$cross_compiling" != yes; then
  2546. { { ac_try="$ac_link"
  2547. case "(($ac_try" in
  2548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2549. *) ac_try_echo=$ac_try;;
  2550. esac
  2551. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2552. $as_echo "$ac_try_echo"; } >&5
  2553. (eval "$ac_link") 2>&5
  2554. ac_status=$?
  2555. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2556. test $ac_status = 0; }
  2557. if { ac_try='./conftest$ac_cv_exeext'
  2558. { { case "(($ac_try" in
  2559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2560. *) ac_try_echo=$ac_try;;
  2561. esac
  2562. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2563. $as_echo "$ac_try_echo"; } >&5
  2564. (eval "$ac_try") 2>&5
  2565. ac_status=$?
  2566. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2567. test $ac_status = 0; }; }; then
  2568. cross_compiling=no
  2569. else
  2570. if test "$cross_compiling" = maybe; then
  2571. cross_compiling=yes
  2572. else
  2573. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2574. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2575. as_fn_error $? "cannot run C++ compiled programs.
  2576. If you meant to cross compile, use \`--host'.
  2577. See \`build/config.log' for more details" "$LINENO" 5; }
  2578. fi
  2579. fi
  2580. fi
  2581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2582. $as_echo "$cross_compiling" >&6; }
  2583. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2584. ac_clean_files=$ac_clean_files_save
  2585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2586. $as_echo_n "checking for suffix of object files... " >&6; }
  2587. if ${ac_cv_objext+:} false; then :
  2588. $as_echo_n "(cached) " >&6
  2589. else
  2590. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2591. /* end build/confdefs.h. */
  2592. int
  2593. main ()
  2594. {
  2595. ;
  2596. return 0;
  2597. }
  2598. _ACEOF
  2599. rm -f conftest.o conftest.obj
  2600. if { { ac_try="$ac_compile"
  2601. case "(($ac_try" in
  2602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2603. *) ac_try_echo=$ac_try;;
  2604. esac
  2605. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2606. $as_echo "$ac_try_echo"; } >&5
  2607. (eval "$ac_compile") 2>&5
  2608. ac_status=$?
  2609. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2610. test $ac_status = 0; }; then :
  2611. for ac_file in conftest.o conftest.obj conftest.*; do
  2612. test -f "$ac_file" || continue;
  2613. case $ac_file in
  2614. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2615. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2616. break;;
  2617. esac
  2618. done
  2619. else
  2620. $as_echo "$as_me: failed program was:" >&5
  2621. sed 's/^/| /' conftest.$ac_ext >&5
  2622. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2623. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2624. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2625. See \`build/config.log' for more details" "$LINENO" 5; }
  2626. fi
  2627. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2628. fi
  2629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2630. $as_echo "$ac_cv_objext" >&6; }
  2631. OBJEXT=$ac_cv_objext
  2632. ac_objext=$OBJEXT
  2633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  2634. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2635. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  2636. $as_echo_n "(cached) " >&6
  2637. else
  2638. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2639. /* end build/confdefs.h. */
  2640. int
  2641. main ()
  2642. {
  2643. #ifndef __GNUC__
  2644. choke me
  2645. #endif
  2646. ;
  2647. return 0;
  2648. }
  2649. _ACEOF
  2650. if ac_fn_cxx_try_compile "$LINENO"; then :
  2651. ac_compiler_gnu=yes
  2652. else
  2653. ac_compiler_gnu=no
  2654. fi
  2655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2656. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2657. fi
  2658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  2659. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2660. if test $ac_compiler_gnu = yes; then
  2661. GXX=yes
  2662. else
  2663. GXX=
  2664. fi
  2665. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2666. ac_save_CXXFLAGS=$CXXFLAGS
  2667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  2668. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2669. if ${ac_cv_prog_cxx_g+:} false; then :
  2670. $as_echo_n "(cached) " >&6
  2671. else
  2672. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2673. ac_cxx_werror_flag=yes
  2674. ac_cv_prog_cxx_g=no
  2675. CXXFLAGS="-g"
  2676. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2677. /* end build/confdefs.h. */
  2678. int
  2679. main ()
  2680. {
  2681. ;
  2682. return 0;
  2683. }
  2684. _ACEOF
  2685. if ac_fn_cxx_try_compile "$LINENO"; then :
  2686. ac_cv_prog_cxx_g=yes
  2687. else
  2688. CXXFLAGS=""
  2689. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2690. /* end build/confdefs.h. */
  2691. int
  2692. main ()
  2693. {
  2694. ;
  2695. return 0;
  2696. }
  2697. _ACEOF
  2698. if ac_fn_cxx_try_compile "$LINENO"; then :
  2699. else
  2700. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2701. CXXFLAGS="-g"
  2702. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2703. /* end build/confdefs.h. */
  2704. int
  2705. main ()
  2706. {
  2707. ;
  2708. return 0;
  2709. }
  2710. _ACEOF
  2711. if ac_fn_cxx_try_compile "$LINENO"; then :
  2712. ac_cv_prog_cxx_g=yes
  2713. fi
  2714. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2715. fi
  2716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2717. fi
  2718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2719. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2720. fi
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  2722. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  2723. if test "$ac_test_CXXFLAGS" = set; then
  2724. CXXFLAGS=$ac_save_CXXFLAGS
  2725. elif test $ac_cv_prog_cxx_g = yes; then
  2726. if test "$GXX" = yes; then
  2727. CXXFLAGS="-g -O2"
  2728. else
  2729. CXXFLAGS="-g"
  2730. fi
  2731. else
  2732. if test "$GXX" = yes; then
  2733. CXXFLAGS="-O2"
  2734. else
  2735. CXXFLAGS=
  2736. fi
  2737. fi
  2738. ac_ext=cpp
  2739. ac_cpp='$CXXCPP $CPPFLAGS'
  2740. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2741. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2742. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2743. CC="${CXX} -x c"
  2744. ac_ext=cpp
  2745. ac_cpp='$CXXCPP $CPPFLAGS'
  2746. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2747. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2748. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  2750. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  2751. if test -z "$CXXCPP"; then
  2752. if ${ac_cv_prog_CXXCPP+:} false; then :
  2753. $as_echo_n "(cached) " >&6
  2754. else
  2755. # Double quotes because CXXCPP needs to be expanded
  2756. for CXXCPP in "$CXX -E" "/lib/cpp"
  2757. do
  2758. ac_preproc_ok=false
  2759. for ac_cxx_preproc_warn_flag in '' yes
  2760. do
  2761. # Use a header file that comes with gcc, so configuring glibc
  2762. # with a fresh cross-compiler works.
  2763. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2764. # <limits.h> exists even on freestanding compilers.
  2765. # On the NeXT, cc -E runs the code through the compiler's parser,
  2766. # not just through cpp. "Syntax error" is here to catch this case.
  2767. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2768. /* end build/confdefs.h. */
  2769. #ifdef __STDC__
  2770. # include <limits.h>
  2771. #else
  2772. # include <assert.h>
  2773. #endif
  2774. Syntax error
  2775. _ACEOF
  2776. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2777. else
  2778. # Broken: fails on valid input.
  2779. continue
  2780. fi
  2781. rm -f conftest.err conftest.i conftest.$ac_ext
  2782. # OK, works on sane cases. Now check whether nonexistent headers
  2783. # can be detected and how.
  2784. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2785. /* end build/confdefs.h. */
  2786. #include <ac_nonexistent.h>
  2787. _ACEOF
  2788. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2789. # Broken: success on invalid input.
  2790. continue
  2791. else
  2792. # Passes both tests.
  2793. ac_preproc_ok=:
  2794. break
  2795. fi
  2796. rm -f conftest.err conftest.i conftest.$ac_ext
  2797. done
  2798. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2799. rm -f conftest.i conftest.err conftest.$ac_ext
  2800. if $ac_preproc_ok; then :
  2801. break
  2802. fi
  2803. done
  2804. ac_cv_prog_CXXCPP=$CXXCPP
  2805. fi
  2806. CXXCPP=$ac_cv_prog_CXXCPP
  2807. else
  2808. ac_cv_prog_CXXCPP=$CXXCPP
  2809. fi
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  2811. $as_echo "$CXXCPP" >&6; }
  2812. ac_preproc_ok=false
  2813. for ac_cxx_preproc_warn_flag in '' yes
  2814. do
  2815. # Use a header file that comes with gcc, so configuring glibc
  2816. # with a fresh cross-compiler works.
  2817. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2818. # <limits.h> exists even on freestanding compilers.
  2819. # On the NeXT, cc -E runs the code through the compiler's parser,
  2820. # not just through cpp. "Syntax error" is here to catch this case.
  2821. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2822. /* end build/confdefs.h. */
  2823. #ifdef __STDC__
  2824. # include <limits.h>
  2825. #else
  2826. # include <assert.h>
  2827. #endif
  2828. Syntax error
  2829. _ACEOF
  2830. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2831. else
  2832. # Broken: fails on valid input.
  2833. continue
  2834. fi
  2835. rm -f conftest.err conftest.i conftest.$ac_ext
  2836. # OK, works on sane cases. Now check whether nonexistent headers
  2837. # can be detected and how.
  2838. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2839. /* end build/confdefs.h. */
  2840. #include <ac_nonexistent.h>
  2841. _ACEOF
  2842. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2843. # Broken: success on invalid input.
  2844. continue
  2845. else
  2846. # Passes both tests.
  2847. ac_preproc_ok=:
  2848. break
  2849. fi
  2850. rm -f conftest.err conftest.i conftest.$ac_ext
  2851. done
  2852. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2853. rm -f conftest.i conftest.err conftest.$ac_ext
  2854. if $ac_preproc_ok; then :
  2855. else
  2856. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2857. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2858. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  2859. See \`build/config.log' for more details" "$LINENO" 5; }
  2860. fi
  2861. ac_ext=cpp
  2862. ac_cpp='$CXXCPP $CPPFLAGS'
  2863. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2864. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2865. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2866. ax_cxx_compile_alternatives="14 1y" ax_cxx_compile_cxx14_required=true
  2867. ac_ext=cpp
  2868. ac_cpp='$CXXCPP $CPPFLAGS'
  2869. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2870. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2871. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2872. ac_success=no
  2873. if test x$ac_success = xno; then
  2874. for alternative in ${ax_cxx_compile_alternatives}; do
  2875. for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
  2876. cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
  2877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
  2878. $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
  2879. if eval \${$cachevar+:} false; then :
  2880. $as_echo_n "(cached) " >&6
  2881. else
  2882. ac_save_CXX="$CXX"
  2883. CXX="$CXX $switch"
  2884. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2885. /* end build/confdefs.h. */
  2886. // If the compiler admits that it is not ready for C++11, why torture it?
  2887. // Hopefully, this will speed up the test.
  2888. #ifndef __cplusplus
  2889. #error "This is not a C++ compiler"
  2890. #elif __cplusplus < 201103L
  2891. #error "This is not a C++11 compiler"
  2892. #else
  2893. namespace cxx11
  2894. {
  2895. namespace test_static_assert
  2896. {
  2897. template <typename T>
  2898. struct check
  2899. {
  2900. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  2901. };
  2902. }
  2903. namespace test_final_override
  2904. {
  2905. struct Base
  2906. {
  2907. virtual void f() {}
  2908. };
  2909. struct Derived : public Base
  2910. {
  2911. virtual void f() override {}
  2912. };
  2913. }
  2914. namespace test_double_right_angle_brackets
  2915. {
  2916. template < typename T >
  2917. struct check {};
  2918. typedef check<void> single_type;
  2919. typedef check<check<void>> double_type;
  2920. typedef check<check<check<void>>> triple_type;
  2921. typedef check<check<check<check<void>>>> quadruple_type;
  2922. }
  2923. namespace test_decltype
  2924. {
  2925. int
  2926. f()
  2927. {
  2928. int a = 1;
  2929. decltype(a) b = 2;
  2930. return a + b;
  2931. }
  2932. }
  2933. namespace test_type_deduction
  2934. {
  2935. template < typename T1, typename T2 >
  2936. struct is_same
  2937. {
  2938. static const bool value = false;
  2939. };
  2940. template < typename T >
  2941. struct is_same<T, T>
  2942. {
  2943. static const bool value = true;
  2944. };
  2945. template < typename T1, typename T2 >
  2946. auto
  2947. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  2948. {
  2949. return a1 + a2;
  2950. }
  2951. int
  2952. test(const int c, volatile int v)
  2953. {
  2954. static_assert(is_same<int, decltype(0)>::value == true, "");
  2955. static_assert(is_same<int, decltype(c)>::value == false, "");
  2956. static_assert(is_same<int, decltype(v)>::value == false, "");
  2957. auto ac = c;
  2958. auto av = v;
  2959. auto sumi = ac + av + 'x';
  2960. auto sumf = ac + av + 1.0;
  2961. static_assert(is_same<int, decltype(ac)>::value == true, "");
  2962. static_assert(is_same<int, decltype(av)>::value == true, "");
  2963. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  2964. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  2965. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  2966. return (sumf > 0.0) ? sumi : add(c, v);
  2967. }
  2968. }
  2969. namespace test_noexcept
  2970. {
  2971. int f() { return 0; }
  2972. int g() noexcept { return 0; }
  2973. static_assert(noexcept(f()) == false, "");
  2974. static_assert(noexcept(g()) == true, "");
  2975. }
  2976. namespace test_constexpr
  2977. {
  2978. template < typename CharT >
  2979. unsigned long constexpr
  2980. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  2981. {
  2982. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  2983. }
  2984. template < typename CharT >
  2985. unsigned long constexpr
  2986. strlen_c(const CharT *const s) noexcept
  2987. {
  2988. return strlen_c_r(s, 0UL);
  2989. }
  2990. static_assert(strlen_c("") == 0UL, "");
  2991. static_assert(strlen_c("1") == 1UL, "");
  2992. static_assert(strlen_c("example") == 7UL, "");
  2993. static_assert(strlen_c("another\0example") == 7UL, "");
  2994. }
  2995. namespace test_rvalue_references
  2996. {
  2997. template < int N >
  2998. struct answer
  2999. {
  3000. static constexpr int value = N;
  3001. };
  3002. answer<1> f(int&) { return answer<1>(); }
  3003. answer<2> f(const int&) { return answer<2>(); }
  3004. answer<3> f(int&&) { return answer<3>(); }
  3005. void
  3006. test()
  3007. {
  3008. int i = 0;
  3009. const int c = 0;
  3010. static_assert(decltype(f(i))::value == 1, "");
  3011. static_assert(decltype(f(c))::value == 2, "");
  3012. static_assert(decltype(f(0))::value == 3, "");
  3013. }
  3014. }
  3015. namespace test_uniform_initialization
  3016. {
  3017. struct test
  3018. {
  3019. static const int zero {};
  3020. static const int one {1};
  3021. };
  3022. static_assert(test::zero == 0, "");
  3023. static_assert(test::one == 1, "");
  3024. }
  3025. namespace test_lambdas
  3026. {
  3027. void
  3028. test1()
  3029. {
  3030. auto lambda1 = [](){};
  3031. auto lambda2 = lambda1;
  3032. lambda1();
  3033. lambda2();
  3034. }
  3035. int
  3036. test2()
  3037. {
  3038. auto a = [](int i, int j){ return i + j; }(1, 2);
  3039. auto b = []() -> int { return '0'; }();
  3040. auto c = [=](){ return a + b; }();
  3041. auto d = [&](){ return c; }();
  3042. auto e = [a, &b](int x) mutable {
  3043. const auto identity = [](int y){ return y; };
  3044. for (auto i = 0; i < a; ++i)
  3045. a += b--;
  3046. return x + identity(a + b);
  3047. }(0);
  3048. return a + b + c + d + e;
  3049. }
  3050. int
  3051. test3()
  3052. {
  3053. const auto nullary = [](){ return 0; };
  3054. const auto unary = [](int x){ return x; };
  3055. using nullary_t = decltype(nullary);
  3056. using unary_t = decltype(unary);
  3057. const auto higher1st = [](nullary_t f){ return f(); };
  3058. const auto higher2nd = [unary](nullary_t f1){
  3059. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  3060. };
  3061. return higher1st(nullary) + higher2nd(nullary)(unary);
  3062. }
  3063. }
  3064. namespace test_variadic_templates
  3065. {
  3066. template <int...>
  3067. struct sum;
  3068. template <int N0, int... N1toN>
  3069. struct sum<N0, N1toN...>
  3070. {
  3071. static constexpr auto value = N0 + sum<N1toN...>::value;
  3072. };
  3073. template <>
  3074. struct sum<>
  3075. {
  3076. static constexpr auto value = 0;
  3077. };
  3078. static_assert(sum<>::value == 0, "");
  3079. static_assert(sum<1>::value == 1, "");
  3080. static_assert(sum<23>::value == 23, "");
  3081. static_assert(sum<1, 2>::value == 3, "");
  3082. static_assert(sum<5, 5, 11>::value == 21, "");
  3083. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  3084. }
  3085. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  3086. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  3087. // because of this.
  3088. namespace test_template_alias_sfinae
  3089. {
  3090. struct foo {};
  3091. template<typename T>
  3092. using member = typename T::member_type;
  3093. template<typename T>
  3094. void func(...) {}
  3095. template<typename T>
  3096. void func(member<T>*) {}
  3097. void test();
  3098. void test() { func<foo>(0); }
  3099. }
  3100. } // namespace cxx11
  3101. #endif // __cplusplus >= 201103L
  3102. // If the compiler admits that it is not ready for C++14, why torture it?
  3103. // Hopefully, this will speed up the test.
  3104. #ifndef __cplusplus
  3105. #error "This is not a C++ compiler"
  3106. #elif __cplusplus < 201402L
  3107. #error "This is not a C++14 compiler"
  3108. #else
  3109. namespace cxx14
  3110. {
  3111. namespace test_polymorphic_lambdas
  3112. {
  3113. int
  3114. test()
  3115. {
  3116. const auto lambda = [](auto&&... args){
  3117. const auto istiny = [](auto x){
  3118. return (sizeof(x) == 1UL) ? 1 : 0;
  3119. };
  3120. const int aretiny[] = { istiny(args)... };
  3121. return aretiny[0];
  3122. };
  3123. return lambda(1, 1L, 1.0f, '1');
  3124. }
  3125. }
  3126. namespace test_binary_literals
  3127. {
  3128. constexpr auto ivii = 0b0000000000101010;
  3129. static_assert(ivii == 42, "wrong value");
  3130. }
  3131. namespace test_generalized_constexpr
  3132. {
  3133. template < typename CharT >
  3134. constexpr unsigned long
  3135. strlen_c(const CharT *const s) noexcept
  3136. {
  3137. auto length = 0UL;
  3138. for (auto p = s; *p; ++p)
  3139. ++length;
  3140. return length;
  3141. }
  3142. static_assert(strlen_c("") == 0UL, "");
  3143. static_assert(strlen_c("x") == 1UL, "");
  3144. static_assert(strlen_c("test") == 4UL, "");
  3145. static_assert(strlen_c("another\0test") == 7UL, "");
  3146. }
  3147. namespace test_lambda_init_capture
  3148. {
  3149. int
  3150. test()
  3151. {
  3152. auto x = 0;
  3153. const auto lambda1 = [a = x](int b){ return a + b; };
  3154. const auto lambda2 = [a = lambda1(x)](){ return a; };
  3155. return lambda2();
  3156. }
  3157. }
  3158. namespace test_digit_separators
  3159. {
  3160. constexpr auto ten_million = 100'000'000;
  3161. static_assert(ten_million == 100000000, "");
  3162. }
  3163. namespace test_return_type_deduction
  3164. {
  3165. auto f(int& x) { return x; }
  3166. decltype(auto) g(int& x) { return x; }
  3167. template < typename T1, typename T2 >
  3168. struct is_same
  3169. {
  3170. static constexpr auto value = false;
  3171. };
  3172. template < typename T >
  3173. struct is_same<T, T>
  3174. {
  3175. static constexpr auto value = true;
  3176. };
  3177. int
  3178. test()
  3179. {
  3180. auto x = 0;
  3181. static_assert(is_same<int, decltype(f(x))>::value, "");
  3182. static_assert(is_same<int&, decltype(g(x))>::value, "");
  3183. return x;
  3184. }
  3185. }
  3186. } // namespace cxx14
  3187. #endif // __cplusplus >= 201402L
  3188. _ACEOF
  3189. if ac_fn_cxx_try_compile "$LINENO"; then :
  3190. eval $cachevar=yes
  3191. else
  3192. eval $cachevar=no
  3193. fi
  3194. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3195. CXX="$ac_save_CXX"
  3196. fi
  3197. eval ac_res=\$$cachevar
  3198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3199. $as_echo "$ac_res" >&6; }
  3200. if eval test x\$$cachevar = xyes; then
  3201. CXX="$CXX $switch"
  3202. if test -n "$CXXCPP" ; then
  3203. CXXCPP="$CXXCPP $switch"
  3204. fi
  3205. ac_success=yes
  3206. break
  3207. fi
  3208. done
  3209. if test x$ac_success = xyes; then
  3210. break
  3211. fi
  3212. done
  3213. fi
  3214. ac_ext=cpp
  3215. ac_cpp='$CXXCPP $CPPFLAGS'
  3216. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3217. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3218. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3219. if test x$ax_cxx_compile_cxx14_required = xtrue; then
  3220. if test x$ac_success = xno; then
  3221. as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
  3222. fi
  3223. fi
  3224. if test x$ac_success = xno; then
  3225. HAVE_CXX14=0
  3226. { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
  3227. $as_echo "$as_me: No compiler with C++14 support was found" >&6;}
  3228. else
  3229. HAVE_CXX14=1
  3230. $as_echo "#define HAVE_CXX14 1" >>build/confdefs.h
  3231. fi
  3232. if test "${cross_compiling-x}" = "x"
  3233. then
  3234. cat << 'EOF' >&2
  3235. configure: error:
  3236. This system does not appear to have a working C compiler.
  3237. A working C compiler is required to compile Wraith.
  3238. EOF
  3239. exit 1
  3240. fi
  3241. if test -n "$GXX"; then
  3242. CXXFLAGS="$CXXFLAGS"
  3243. fi
  3244. #CXX_RPATH_CHECK
  3245. #checkpoint
  3246. cat >confcache <<\_ACEOF
  3247. # This file is a shell script that caches the results of configure
  3248. # tests run on this system so they can be shared between configure
  3249. # scripts and configure runs, see configure's option --config-cache.
  3250. # It is not useful on other systems. If it contains results you don't
  3251. # want to keep, you may remove or edit it.
  3252. #
  3253. # build/config.status only pays attention to the cache file if you give it
  3254. # the --recheck option to rerun configure.
  3255. #
  3256. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3257. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3258. # following values.
  3259. _ACEOF
  3260. # The following way of writing the cache mishandles newlines in values,
  3261. # but we know of no workaround that is simple, portable, and efficient.
  3262. # So, we kill variables containing newlines.
  3263. # Ultrix sh set writes to stderr and can't be redirected directly,
  3264. # and sets the high bit in the cache file unless we assign to the vars.
  3265. (
  3266. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3267. eval ac_val=\$$ac_var
  3268. case $ac_val in #(
  3269. *${as_nl}*)
  3270. case $ac_var in #(
  3271. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3272. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3273. esac
  3274. case $ac_var in #(
  3275. _ | IFS | as_nl) ;; #(
  3276. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3277. *) { eval $ac_var=; unset $ac_var;} ;;
  3278. esac ;;
  3279. esac
  3280. done
  3281. (set) 2>&1 |
  3282. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3283. *${as_nl}ac_space=\ *)
  3284. # `set' does not quote correctly, so add quotes: double-quote
  3285. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3286. sed -n \
  3287. "s/'/'\\\\''/g;
  3288. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3289. ;; #(
  3290. *)
  3291. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3292. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3293. ;;
  3294. esac |
  3295. sort
  3296. ) |
  3297. sed '
  3298. /^ac_cv_env_/b end
  3299. t clear
  3300. :clear
  3301. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3302. t end
  3303. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3304. :end' >>confcache
  3305. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3306. if test -w "$cache_file"; then
  3307. if test "x$cache_file" != "x/dev/null"; then
  3308. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3309. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3310. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3311. cat confcache >"$cache_file"
  3312. else
  3313. case $cache_file in #(
  3314. */* | ?:*)
  3315. mv -f confcache "$cache_file"$$ &&
  3316. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3317. *)
  3318. mv -f confcache "$cache_file" ;;
  3319. esac
  3320. fi
  3321. fi
  3322. else
  3323. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3324. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3325. fi
  3326. fi
  3327. rm -f confcache
  3328. # Speedup compile
  3329. if test -n "$GXX" && test -z "$no_wall"; then
  3330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wall" >&5
  3331. $as_echo_n "checking whether the compiler understands -Wall... " >&6; }
  3332. if ${egg_cv_var_ccwall+:} false; then :
  3333. $as_echo_n "(cached) " >&6
  3334. else
  3335. ac_old_CXXFLAGS="$CXXFLAGS"
  3336. CXXFLAGS="$CXXFLAGS -Wall"
  3337. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3338. /* end build/confdefs.h. */
  3339. int main ()
  3340. {
  3341. return(0);
  3342. }
  3343. _ACEOF
  3344. if ac_fn_cxx_try_compile "$LINENO"; then :
  3345. egg_cv_var_ccwall="yes"
  3346. else
  3347. egg_cv_var_ccwall="no"
  3348. fi
  3349. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3350. CXXFLAGS="$ac_old_CXXFLAGS"
  3351. fi
  3352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccwall" >&5
  3353. $as_echo "$egg_cv_var_ccwall" >&6; }
  3354. if test "$egg_cv_var_ccwall" = "yes"; then
  3355. CXXFLAGS="$CXXFLAGS -Wall"
  3356. fi
  3357. fi
  3358. if test -n "$GXX" && test -z "$no_pipe"; then
  3359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -pipe" >&5
  3360. $as_echo_n "checking whether the compiler understands -pipe... " >&6; }
  3361. if ${egg_cv_var_ccpipe+:} false; then :
  3362. $as_echo_n "(cached) " >&6
  3363. else
  3364. ac_old_CXX="$CXX"
  3365. CXX="$CXX -pipe"
  3366. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3367. /* end build/confdefs.h. */
  3368. int main ()
  3369. {
  3370. return(0);
  3371. }
  3372. _ACEOF
  3373. if ac_fn_cxx_try_compile "$LINENO"; then :
  3374. egg_cv_var_ccpipe="yes"
  3375. else
  3376. egg_cv_var_ccpipe="no"
  3377. fi
  3378. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3379. CXX="$ac_old_CXX"
  3380. fi
  3381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccpipe" >&5
  3382. $as_echo "$egg_cv_var_ccpipe" >&6; }
  3383. if test "$egg_cv_var_ccpipe" = "yes"; then
  3384. CXX="$CXX -pipe"
  3385. fi
  3386. fi
  3387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fcolor-diagnostics" >&5
  3388. $as_echo_n "checking whether the compiler understands -fcolor-diagnostics... " >&6; }
  3389. if ${ax_cv_prog_cc_colordiagnostics+:} false; then :
  3390. $as_echo_n "(cached) " >&6
  3391. else
  3392. ac_ext=cpp
  3393. ac_cpp='$CXXCPP $CPPFLAGS'
  3394. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3395. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3396. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3397. ac_saved_flags="$CXXFLAGS"
  3398. CXXFLAGS="-Werror -fcolor-diagnostics"
  3399. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3400. /* end build/confdefs.h. */
  3401. int
  3402. main ()
  3403. {
  3404. ;
  3405. return 0;
  3406. }
  3407. _ACEOF
  3408. if ac_fn_cxx_try_compile "$LINENO"; then :
  3409. ax_cv_prog_cc_colordiagnostics="yes"
  3410. else
  3411. ax_cv_prog_cc_colordiagnostics="no"
  3412. fi
  3413. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3414. CXXFLAGS="$ac_saved_flags"
  3415. ac_ext=cpp
  3416. ac_cpp='$CXXCPP $CPPFLAGS'
  3417. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3418. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3419. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3420. fi
  3421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_colordiagnostics" >&5
  3422. $as_echo "$ax_cv_prog_cc_colordiagnostics" >&6; }
  3423. if [ "$ax_cv_prog_cc_colordiagnostics" = "yes" ]; then
  3424. CXXFLAGS="$CXXFLAGS -fcolor-diagnostics"
  3425. elif [ -n "" ]; then
  3426. cat << 'EOF' >&2
  3427. configure: error:
  3428. Your OS or C++ compiler does not support -fcolor-diagnostics.
  3429. This compile flag is required.
  3430. EOF
  3431. exit 1
  3432. fi
  3433. #CXX_FLAG_CHECK([CXXFLAGS], [-Qunused-arguments], [unusedarguments])
  3434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wno-invalid-source-encoding" >&5
  3435. $as_echo_n "checking whether the compiler understands -Wno-invalid-source-encoding... " >&6; }
  3436. if ${ax_cv_prog_cc_invalid_source_encoding+:} false; then :
  3437. $as_echo_n "(cached) " >&6
  3438. else
  3439. ac_ext=cpp
  3440. ac_cpp='$CXXCPP $CPPFLAGS'
  3441. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3442. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3443. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3444. ac_saved_flags="$CXXFLAGS"
  3445. CXXFLAGS="-Werror -Winvalid-source-encoding"
  3446. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3447. /* end build/confdefs.h. */
  3448. int
  3449. main ()
  3450. {
  3451. ;
  3452. return 0;
  3453. }
  3454. _ACEOF
  3455. if ac_fn_cxx_try_compile "$LINENO"; then :
  3456. ax_cv_prog_cc_invalid_source_encoding="yes"
  3457. else
  3458. ax_cv_prog_cc_invalid_source_encoding="no"
  3459. fi
  3460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3461. CXXFLAGS="$ac_saved_flags"
  3462. ac_ext=cpp
  3463. ac_cpp='$CXXCPP $CPPFLAGS'
  3464. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3465. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3466. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3467. fi
  3468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_invalid_source_encoding" >&5
  3469. $as_echo "$ax_cv_prog_cc_invalid_source_encoding" >&6; }
  3470. if [ "$ax_cv_prog_cc_invalid_source_encoding" = "yes" ]; then
  3471. CXXFLAGS="$CXXFLAGS -Wno-invalid-source-encoding"
  3472. elif [ -n "" ]; then
  3473. cat << 'EOF' >&2
  3474. configure: error:
  3475. Your OS or C++ compiler does not support -Wno-invalid-source-encoding.
  3476. This compile flag is required.
  3477. EOF
  3478. exit 1
  3479. fi
  3480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wno-narrowing" >&5
  3481. $as_echo_n "checking whether the compiler understands -Wno-narrowing... " >&6; }
  3482. if ${ax_cv_prog_cc_nonarrowing+:} false; then :
  3483. $as_echo_n "(cached) " >&6
  3484. else
  3485. ac_ext=cpp
  3486. ac_cpp='$CXXCPP $CPPFLAGS'
  3487. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3488. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3489. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3490. ac_saved_flags="$CXXFLAGS"
  3491. CXXFLAGS="-Werror -Wnarrowing"
  3492. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3493. /* end build/confdefs.h. */
  3494. int
  3495. main ()
  3496. {
  3497. ;
  3498. return 0;
  3499. }
  3500. _ACEOF
  3501. if ac_fn_cxx_try_compile "$LINENO"; then :
  3502. ax_cv_prog_cc_nonarrowing="yes"
  3503. else
  3504. ax_cv_prog_cc_nonarrowing="no"
  3505. fi
  3506. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3507. CXXFLAGS="$ac_saved_flags"
  3508. ac_ext=cpp
  3509. ac_cpp='$CXXCPP $CPPFLAGS'
  3510. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3511. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3512. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3513. fi
  3514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_nonarrowing" >&5
  3515. $as_echo "$ax_cv_prog_cc_nonarrowing" >&6; }
  3516. if [ "$ax_cv_prog_cc_nonarrowing" = "yes" ]; then
  3517. CXXFLAGS="$CXXFLAGS -Wno-narrowing"
  3518. elif [ -n "" ]; then
  3519. cat << 'EOF' >&2
  3520. configure: error:
  3521. Your OS or C++ compiler does not support -Wno-narrowing.
  3522. This compile flag is required.
  3523. EOF
  3524. exit 1
  3525. fi
  3526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wno-cast-function-type" >&5
  3527. $as_echo_n "checking whether the compiler understands -Wno-cast-function-type... " >&6; }
  3528. if ${ax_cv_prog_cc_no_cast_function_type+:} false; then :
  3529. $as_echo_n "(cached) " >&6
  3530. else
  3531. ac_ext=cpp
  3532. ac_cpp='$CXXCPP $CPPFLAGS'
  3533. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3534. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3535. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3536. ac_saved_flags="$CXXFLAGS"
  3537. CXXFLAGS="-Werror -Wcast-function-type"
  3538. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3539. /* end build/confdefs.h. */
  3540. int
  3541. main ()
  3542. {
  3543. ;
  3544. return 0;
  3545. }
  3546. _ACEOF
  3547. if ac_fn_cxx_try_compile "$LINENO"; then :
  3548. ax_cv_prog_cc_no_cast_function_type="yes"
  3549. else
  3550. ax_cv_prog_cc_no_cast_function_type="no"
  3551. fi
  3552. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3553. CXXFLAGS="$ac_saved_flags"
  3554. ac_ext=cpp
  3555. ac_cpp='$CXXCPP $CPPFLAGS'
  3556. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3557. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3558. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3559. fi
  3560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_no_cast_function_type" >&5
  3561. $as_echo "$ax_cv_prog_cc_no_cast_function_type" >&6; }
  3562. if [ "$ax_cv_prog_cc_no_cast_function_type" = "yes" ]; then
  3563. CXXFLAGS="$CXXFLAGS -Wno-cast-function-type"
  3564. elif [ -n "" ]; then
  3565. cat << 'EOF' >&2
  3566. configure: error:
  3567. Your OS or C++ compiler does not support -Wno-cast-function-type.
  3568. This compile flag is required.
  3569. EOF
  3570. exit 1
  3571. fi
  3572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wimplicit-fallthrough=0" >&5
  3573. $as_echo_n "checking whether the compiler understands -Wimplicit-fallthrough=0... " >&6; }
  3574. if ${ax_cv_prog_cc_wimplicit_fallthrough+:} false; then :
  3575. $as_echo_n "(cached) " >&6
  3576. else
  3577. ac_ext=cpp
  3578. ac_cpp='$CXXCPP $CPPFLAGS'
  3579. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3580. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3581. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3582. ac_saved_flags="$CXXFLAGS"
  3583. CXXFLAGS="-Werror -Wimplicit-fallthrough=0"
  3584. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3585. /* end build/confdefs.h. */
  3586. int
  3587. main ()
  3588. {
  3589. ;
  3590. return 0;
  3591. }
  3592. _ACEOF
  3593. if ac_fn_cxx_try_compile "$LINENO"; then :
  3594. ax_cv_prog_cc_wimplicit_fallthrough="yes"
  3595. else
  3596. ax_cv_prog_cc_wimplicit_fallthrough="no"
  3597. fi
  3598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3599. CXXFLAGS="$ac_saved_flags"
  3600. ac_ext=cpp
  3601. ac_cpp='$CXXCPP $CPPFLAGS'
  3602. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3603. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3604. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3605. fi
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_wimplicit_fallthrough" >&5
  3607. $as_echo "$ax_cv_prog_cc_wimplicit_fallthrough" >&6; }
  3608. if [ "$ax_cv_prog_cc_wimplicit_fallthrough" = "yes" ]; then
  3609. CXXFLAGS="$CXXFLAGS -Wimplicit-fallthrough=0"
  3610. elif [ -n "" ]; then
  3611. cat << 'EOF' >&2
  3612. configure: error:
  3613. Your OS or C++ compiler does not support -Wimplicit-fallthrough=0.
  3614. This compile flag is required.
  3615. EOF
  3616. exit 1
  3617. fi
  3618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector" >&5
  3619. $as_echo_n "checking whether the compiler understands -fstack-protector... " >&6; }
  3620. if ${ax_cv_prog_cc_stackprotector+:} false; then :
  3621. $as_echo_n "(cached) " >&6
  3622. else
  3623. ac_ext=cpp
  3624. ac_cpp='$CXXCPP $CPPFLAGS'
  3625. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3626. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3627. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3628. ac_saved_flags="$CXXFLAGS"
  3629. CXXFLAGS="-Werror -fstack-protector"
  3630. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3631. /* end build/confdefs.h. */
  3632. int
  3633. main ()
  3634. {
  3635. ;
  3636. return 0;
  3637. }
  3638. _ACEOF
  3639. if ac_fn_cxx_try_compile "$LINENO"; then :
  3640. ax_cv_prog_cc_stackprotector="yes"
  3641. else
  3642. ax_cv_prog_cc_stackprotector="no"
  3643. fi
  3644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3645. CXXFLAGS="$ac_saved_flags"
  3646. ac_ext=cpp
  3647. ac_cpp='$CXXCPP $CPPFLAGS'
  3648. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3649. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3650. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3651. fi
  3652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotector" >&5
  3653. $as_echo "$ax_cv_prog_cc_stackprotector" >&6; }
  3654. if [ "$ax_cv_prog_cc_stackprotector" = "yes" ]; then
  3655. CXXFLAGS="$CXXFLAGS -fstack-protector"
  3656. elif [ -n "" ]; then
  3657. cat << 'EOF' >&2
  3658. configure: error:
  3659. Your OS or C++ compiler does not support -fstack-protector.
  3660. This compile flag is required.
  3661. EOF
  3662. exit 1
  3663. fi
  3664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector-strong" >&5
  3665. $as_echo_n "checking whether the compiler understands -fstack-protector-strong... " >&6; }
  3666. if ${ax_cv_prog_cc_stackprotectorstrong+:} false; then :
  3667. $as_echo_n "(cached) " >&6
  3668. else
  3669. ac_ext=cpp
  3670. ac_cpp='$CXXCPP $CPPFLAGS'
  3671. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3672. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3673. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3674. ac_saved_flags="$CXXFLAGS"
  3675. CXXFLAGS="-Werror -fstack-protector-strong"
  3676. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3677. /* end build/confdefs.h. */
  3678. int
  3679. main ()
  3680. {
  3681. ;
  3682. return 0;
  3683. }
  3684. _ACEOF
  3685. if ac_fn_cxx_try_compile "$LINENO"; then :
  3686. ax_cv_prog_cc_stackprotectorstrong="yes"
  3687. else
  3688. ax_cv_prog_cc_stackprotectorstrong="no"
  3689. fi
  3690. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3691. CXXFLAGS="$ac_saved_flags"
  3692. ac_ext=cpp
  3693. ac_cpp='$CXXCPP $CPPFLAGS'
  3694. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3695. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3696. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3697. fi
  3698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotectorstrong" >&5
  3699. $as_echo "$ax_cv_prog_cc_stackprotectorstrong" >&6; }
  3700. if [ "$ax_cv_prog_cc_stackprotectorstrong" = "yes" ]; then
  3701. CXXFLAGS="$CXXFLAGS -fstack-protector-strong"
  3702. elif [ -n "" ]; then
  3703. cat << 'EOF' >&2
  3704. configure: error:
  3705. Your OS or C++ compiler does not support -fstack-protector-strong.
  3706. This compile flag is required.
  3707. EOF
  3708. exit 1
  3709. fi
  3710. if [ "${ax_cv_prog_cc_stackprotectorstrong}" = "yes" ]; then
  3711. LDFLAGS="${LDFLAGS} -fstack-protector-strong"
  3712. elif [ "${ax_cv_prog_cc_stackprotector}" = "yes" ]; then
  3713. LDFLAGS="${LDFLAGS} -fstack-protector"
  3714. fi
  3715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Og" >&5
  3716. $as_echo_n "checking whether the compiler understands -Og... " >&6; }
  3717. if ${ax_cv_prog_cc_Og+:} false; then :
  3718. $as_echo_n "(cached) " >&6
  3719. else
  3720. ac_ext=cpp
  3721. ac_cpp='$CXXCPP $CPPFLAGS'
  3722. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3723. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3724. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3725. ac_saved_flags="$CXXFLAGS"
  3726. CXXFLAGS="-Werror -Og"
  3727. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3728. /* end build/confdefs.h. */
  3729. int
  3730. main ()
  3731. {
  3732. ;
  3733. return 0;
  3734. }
  3735. _ACEOF
  3736. if ac_fn_cxx_try_compile "$LINENO"; then :
  3737. ax_cv_prog_cc_Og="yes"
  3738. else
  3739. ax_cv_prog_cc_Og="no"
  3740. fi
  3741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3742. CXXFLAGS="$ac_saved_flags"
  3743. ac_ext=cpp
  3744. ac_cpp='$CXXCPP $CPPFLAGS'
  3745. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3746. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3747. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3748. fi
  3749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_Og" >&5
  3750. $as_echo "$ax_cv_prog_cc_Og" >&6; }
  3751. if [ "$ax_cv_prog_cc_Og" = "yes" ]; then
  3752. DEBCXXFLAGS="$DEBCXXFLAGS -Og"
  3753. elif [ -n "" ]; then
  3754. cat << 'EOF' >&2
  3755. configure: error:
  3756. Your OS or C++ compiler does not support -Og.
  3757. This compile flag is required.
  3758. EOF
  3759. exit 1
  3760. fi
  3761. if [ "${ax_cv_prog_cc_Og}" = "no" ]; then
  3762. DEBCXXFLAGS="${DEBCXXFLAGS} -O0"
  3763. fi
  3764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker supports -fsanitize=address" >&5
  3765. $as_echo_n "checking whether the linker supports -fsanitize=address... " >&6; }
  3766. if ${ax_cv_prog_cc_fsanitize_address+:} false; then :
  3767. $as_echo_n "(cached) " >&6
  3768. else
  3769. ac_ext=cpp
  3770. ac_cpp='$CXXCPP $CPPFLAGS'
  3771. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3772. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3773. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3774. ac_saved_flags="$CXXFLAGS"
  3775. CXXFLAGS="-Werror -fsanitize=address"
  3776. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3777. /* end build/confdefs.h. */
  3778. int
  3779. main ()
  3780. {
  3781. ;
  3782. return 0;
  3783. }
  3784. _ACEOF
  3785. if ac_fn_cxx_try_link "$LINENO"; then :
  3786. ax_cv_prog_cc_fsanitize_address="yes"
  3787. else
  3788. ax_cv_prog_cc_fsanitize_address="no"
  3789. fi
  3790. rm -f core conftest.err conftest.$ac_objext \
  3791. conftest$ac_exeext conftest.$ac_ext
  3792. CXXFLAGS="$ac_saved_flags"
  3793. ac_ext=cpp
  3794. ac_cpp='$CXXCPP $CPPFLAGS'
  3795. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3796. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3797. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3798. fi
  3799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_fsanitize_address" >&5
  3800. $as_echo "$ax_cv_prog_cc_fsanitize_address" >&6; }
  3801. if [ "$ax_cv_prog_cc_fsanitize_address" = "yes" ]; then
  3802. DEBCXXFLAGS="$DEBCXXFLAGS -fsanitize=address"
  3803. elif [ -n "" ]; then
  3804. cat << 'EOF' >&2
  3805. configure: error:
  3806. Your OS or C++ compiler does not support -fsanitize=address.
  3807. This compile flag is required.
  3808. EOF
  3809. exit 1
  3810. fi
  3811. if [ "${ax_cv_prog_cc_fsanitize_address}" = "yes" ]; then
  3812. DEBLDFLAGS="${DEBLDFLAGS} -fsanitize=address"
  3813. DEBCXXFLAGS="${DEBCXXFLAGS} -D__SANITIZE_ADDRESS__"
  3814. fi
  3815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector-all" >&5
  3816. $as_echo_n "checking whether the compiler understands -fstack-protector-all... " >&6; }
  3817. if ${ax_cv_prog_cc_stackprotectorall+:} false; then :
  3818. $as_echo_n "(cached) " >&6
  3819. else
  3820. ac_ext=cpp
  3821. ac_cpp='$CXXCPP $CPPFLAGS'
  3822. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3823. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3824. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3825. ac_saved_flags="$CXXFLAGS"
  3826. CXXFLAGS="-Werror -fstack-protector-all"
  3827. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3828. /* end build/confdefs.h. */
  3829. int
  3830. main ()
  3831. {
  3832. ;
  3833. return 0;
  3834. }
  3835. _ACEOF
  3836. if ac_fn_cxx_try_compile "$LINENO"; then :
  3837. ax_cv_prog_cc_stackprotectorall="yes"
  3838. else
  3839. ax_cv_prog_cc_stackprotectorall="no"
  3840. fi
  3841. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3842. CXXFLAGS="$ac_saved_flags"
  3843. ac_ext=cpp
  3844. ac_cpp='$CXXCPP $CPPFLAGS'
  3845. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3846. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3847. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3848. fi
  3849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotectorall" >&5
  3850. $as_echo "$ax_cv_prog_cc_stackprotectorall" >&6; }
  3851. if [ "$ax_cv_prog_cc_stackprotectorall" = "yes" ]; then
  3852. DEBCXXFLAGS="$DEBCXXFLAGS -fstack-protector-all"
  3853. elif [ -n "" ]; then
  3854. cat << 'EOF' >&2
  3855. configure: error:
  3856. Your OS or C++ compiler does not support -fstack-protector-all.
  3857. This compile flag is required.
  3858. EOF
  3859. exit 1
  3860. fi
  3861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wsuggest-attribute=pure -Wsuggest-attribute=const" >&5
  3862. $as_echo_n "checking whether the compiler understands -Wsuggest-attribute=pure -Wsuggest-attribute=const... " >&6; }
  3863. if ${ax_cv_prog_cc_wsuggest_attribute+:} false; then :
  3864. $as_echo_n "(cached) " >&6
  3865. else
  3866. ac_ext=cpp
  3867. ac_cpp='$CXXCPP $CPPFLAGS'
  3868. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3869. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3870. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3871. ac_saved_flags="$CXXFLAGS"
  3872. CXXFLAGS="-Werror -Wsuggest-attribute=pure -Wsuggest-attribute=const"
  3873. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3874. /* end build/confdefs.h. */
  3875. int
  3876. main ()
  3877. {
  3878. ;
  3879. return 0;
  3880. }
  3881. _ACEOF
  3882. if ac_fn_cxx_try_compile "$LINENO"; then :
  3883. ax_cv_prog_cc_wsuggest_attribute="yes"
  3884. else
  3885. ax_cv_prog_cc_wsuggest_attribute="no"
  3886. fi
  3887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3888. CXXFLAGS="$ac_saved_flags"
  3889. ac_ext=cpp
  3890. ac_cpp='$CXXCPP $CPPFLAGS'
  3891. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3892. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3893. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3894. fi
  3895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_wsuggest_attribute" >&5
  3896. $as_echo "$ax_cv_prog_cc_wsuggest_attribute" >&6; }
  3897. if [ "$ax_cv_prog_cc_wsuggest_attribute" = "yes" ]; then
  3898. DEBCXXFLAGS="$DEBCXXFLAGS -Wsuggest-attribute=pure -Wsuggest-attribute=const"
  3899. elif [ -n "" ]; then
  3900. cat << 'EOF' >&2
  3901. configure: error:
  3902. Your OS or C++ compiler does not support -Wsuggest-attribute=pure -Wsuggest-attribute=const.
  3903. This compile flag is required.
  3904. EOF
  3905. exit 1
  3906. fi
  3907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wconditional-uninitialized" >&5
  3908. $as_echo_n "checking whether the compiler understands -Wconditional-uninitialized... " >&6; }
  3909. if ${ax_cv_prog_cc_w_conditional_uninitialized+:} false; then :
  3910. $as_echo_n "(cached) " >&6
  3911. else
  3912. ac_ext=cpp
  3913. ac_cpp='$CXXCPP $CPPFLAGS'
  3914. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3915. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3916. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3917. ac_saved_flags="$CXXFLAGS"
  3918. CXXFLAGS="-Werror -Wconditional-uninitialized"
  3919. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3920. /* end build/confdefs.h. */
  3921. int
  3922. main ()
  3923. {
  3924. ;
  3925. return 0;
  3926. }
  3927. _ACEOF
  3928. if ac_fn_cxx_try_compile "$LINENO"; then :
  3929. ax_cv_prog_cc_w_conditional_uninitialized="yes"
  3930. else
  3931. ax_cv_prog_cc_w_conditional_uninitialized="no"
  3932. fi
  3933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3934. CXXFLAGS="$ac_saved_flags"
  3935. ac_ext=cpp
  3936. ac_cpp='$CXXCPP $CPPFLAGS'
  3937. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3938. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3939. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3940. fi
  3941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_w_conditional_uninitialized" >&5
  3942. $as_echo "$ax_cv_prog_cc_w_conditional_uninitialized" >&6; }
  3943. if [ "$ax_cv_prog_cc_w_conditional_uninitialized" = "yes" ]; then
  3944. DEBCXXFLAGS="$DEBCXXFLAGS -Wconditional-uninitialized"
  3945. elif [ -n "" ]; then
  3946. cat << 'EOF' >&2
  3947. configure: error:
  3948. Your OS or C++ compiler does not support -Wconditional-uninitialized.
  3949. This compile flag is required.
  3950. EOF
  3951. exit 1
  3952. fi
  3953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static-libstdc++" >&5
  3954. $as_echo_n "checking whether the compiler understands -static-libstdc++... " >&6; }
  3955. if ${ax_cv_prog_cc_static_libstdcxx+:} false; then :
  3956. $as_echo_n "(cached) " >&6
  3957. else
  3958. ac_ext=cpp
  3959. ac_cpp='$CXXCPP $CPPFLAGS'
  3960. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3961. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3962. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3963. ac_saved_flags="$CXXFLAGS"
  3964. CXXFLAGS="-Werror -static-libstdc++"
  3965. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3966. /* end build/confdefs.h. */
  3967. int
  3968. main ()
  3969. {
  3970. ;
  3971. return 0;
  3972. }
  3973. _ACEOF
  3974. if ac_fn_cxx_try_compile "$LINENO"; then :
  3975. ax_cv_prog_cc_static_libstdcxx="yes"
  3976. else
  3977. ax_cv_prog_cc_static_libstdcxx="no"
  3978. fi
  3979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3980. CXXFLAGS="$ac_saved_flags"
  3981. ac_ext=cpp
  3982. ac_cpp='$CXXCPP $CPPFLAGS'
  3983. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3984. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3985. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3986. fi
  3987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_static_libstdcxx" >&5
  3988. $as_echo "$ax_cv_prog_cc_static_libstdcxx" >&6; }
  3989. if [ "$ax_cv_prog_cc_static_libstdcxx" = "yes" ]; then
  3990. LDFLAGS="$LDFLAGS -static-libstdc++"
  3991. elif [ -n "" ]; then
  3992. cat << 'EOF' >&2
  3993. configure: error:
  3994. Your OS or C++ compiler does not support -static-libstdc++.
  3995. This compile flag is required.
  3996. EOF
  3997. exit 1
  3998. fi
  3999. #CXX_FLAG_CHECK([LDFLAGS], [-static-libgcc], [static_libgcc])
  4000. if [ "${ax_cv_prog_cc_static_libstdcxx}" = "yes" ]; then
  4001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for static libstdc++" >&5
  4002. $as_echo_n "checking for static libstdc++... " >&6; }
  4003. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4004. /* end build/confdefs.h. */
  4005. int
  4006. main ()
  4007. {
  4008. ;
  4009. return 0;
  4010. }
  4011. _ACEOF
  4012. if ac_fn_cxx_try_link "$LINENO"; then :
  4013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  4014. $as_echo "OK" >&6; }
  4015. else
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found." >&5
  4017. $as_echo "not found." >&6; }
  4018. as_fn_error 1 "Static libstdc++ is rquired to build." "$LINENO" 5
  4019. fi
  4020. rm -f core conftest.err conftest.$ac_objext \
  4021. conftest$ac_exeext conftest.$ac_ext
  4022. fi
  4023. CCDEPMODE=gcc
  4024. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  4025. if test $num -ge "3"; then
  4026. CCDEPMODE=gcc3
  4027. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  4028. GCC3_CFLAGS="-W -Wno-unused-parameter -Wdisabled-optimization -Wno-write-strings -Wno-format-security -Wno-format-y2k"
  4029. GCC3_CXXFLAGS="-Woverloaded-virtual"
  4030. GCC3DEB="-Wno-disabled-optimization -Wmissing-format-attribute"
  4031. fi
  4032. #checkpoint
  4033. cat >confcache <<\_ACEOF
  4034. # This file is a shell script that caches the results of configure
  4035. # tests run on this system so they can be shared between configure
  4036. # scripts and configure runs, see configure's option --config-cache.
  4037. # It is not useful on other systems. If it contains results you don't
  4038. # want to keep, you may remove or edit it.
  4039. #
  4040. # build/config.status only pays attention to the cache file if you give it
  4041. # the --recheck option to rerun configure.
  4042. #
  4043. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4044. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4045. # following values.
  4046. _ACEOF
  4047. # The following way of writing the cache mishandles newlines in values,
  4048. # but we know of no workaround that is simple, portable, and efficient.
  4049. # So, we kill variables containing newlines.
  4050. # Ultrix sh set writes to stderr and can't be redirected directly,
  4051. # and sets the high bit in the cache file unless we assign to the vars.
  4052. (
  4053. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4054. eval ac_val=\$$ac_var
  4055. case $ac_val in #(
  4056. *${as_nl}*)
  4057. case $ac_var in #(
  4058. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4059. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4060. esac
  4061. case $ac_var in #(
  4062. _ | IFS | as_nl) ;; #(
  4063. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4064. *) { eval $ac_var=; unset $ac_var;} ;;
  4065. esac ;;
  4066. esac
  4067. done
  4068. (set) 2>&1 |
  4069. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4070. *${as_nl}ac_space=\ *)
  4071. # `set' does not quote correctly, so add quotes: double-quote
  4072. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4073. sed -n \
  4074. "s/'/'\\\\''/g;
  4075. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4076. ;; #(
  4077. *)
  4078. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4079. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4080. ;;
  4081. esac |
  4082. sort
  4083. ) |
  4084. sed '
  4085. /^ac_cv_env_/b end
  4086. t clear
  4087. :clear
  4088. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4089. t end
  4090. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4091. :end' >>confcache
  4092. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4093. if test -w "$cache_file"; then
  4094. if test "x$cache_file" != "x/dev/null"; then
  4095. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4096. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4097. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4098. cat confcache >"$cache_file"
  4099. else
  4100. case $cache_file in #(
  4101. */* | ?:*)
  4102. mv -f confcache "$cache_file"$$ &&
  4103. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4104. *)
  4105. mv -f confcache "$cache_file" ;;
  4106. esac
  4107. fi
  4108. fi
  4109. else
  4110. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4111. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4112. fi
  4113. fi
  4114. rm -f confcache
  4115. # Checks for programs
  4116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4117. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4118. set x ${MAKE-make}
  4119. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4120. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  4121. $as_echo_n "(cached) " >&6
  4122. else
  4123. cat >conftest.make <<\_ACEOF
  4124. SHELL = /bin/sh
  4125. all:
  4126. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4127. _ACEOF
  4128. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4129. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4130. *@@@%%%=?*=@@@%%%*)
  4131. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4132. *)
  4133. eval ac_cv_prog_make_${ac_make}_set=no;;
  4134. esac
  4135. rm -f conftest.make
  4136. fi
  4137. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4139. $as_echo "yes" >&6; }
  4140. SET_MAKE=
  4141. else
  4142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4143. $as_echo "no" >&6; }
  4144. SET_MAKE="MAKE=${MAKE-make}"
  4145. fi
  4146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4147. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4148. if ${ac_cv_path_SED+:} false; then :
  4149. $as_echo_n "(cached) " >&6
  4150. else
  4151. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4152. for ac_i in 1 2 3 4 5 6 7; do
  4153. ac_script="$ac_script$as_nl$ac_script"
  4154. done
  4155. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4156. { ac_script=; unset ac_script;}
  4157. if test -z "$SED"; then
  4158. ac_path_SED_found=false
  4159. # Loop through the user's path and test for each of PROGNAME-LIST
  4160. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4161. for as_dir in $PATH
  4162. do
  4163. IFS=$as_save_IFS
  4164. test -z "$as_dir" && as_dir=.
  4165. for ac_prog in sed gsed; do
  4166. for ac_exec_ext in '' $ac_executable_extensions; do
  4167. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4168. as_fn_executable_p "$ac_path_SED" || continue
  4169. # Check for GNU ac_path_SED and select it if it is found.
  4170. # Check for GNU $ac_path_SED
  4171. case `"$ac_path_SED" --version 2>&1` in
  4172. *GNU*)
  4173. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4174. *)
  4175. ac_count=0
  4176. $as_echo_n 0123456789 >"conftest.in"
  4177. while :
  4178. do
  4179. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4180. mv "conftest.tmp" "conftest.in"
  4181. cp "conftest.in" "conftest.nl"
  4182. $as_echo '' >> "conftest.nl"
  4183. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4184. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4185. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4186. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4187. # Best one so far, save it but keep looking for a better one
  4188. ac_cv_path_SED="$ac_path_SED"
  4189. ac_path_SED_max=$ac_count
  4190. fi
  4191. # 10*(2^10) chars as input seems more than enough
  4192. test $ac_count -gt 10 && break
  4193. done
  4194. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4195. esac
  4196. $ac_path_SED_found && break 3
  4197. done
  4198. done
  4199. done
  4200. IFS=$as_save_IFS
  4201. if test -z "$ac_cv_path_SED"; then
  4202. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4203. fi
  4204. else
  4205. ac_cv_path_SED=$SED
  4206. fi
  4207. fi
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4209. $as_echo "$ac_cv_path_SED" >&6; }
  4210. SED="$ac_cv_path_SED"
  4211. rm -f conftest.sed
  4212. cat << 'EOF' > conftest.head
  4213. a
  4214. b
  4215. c
  4216. EOF
  4217. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  4218. do
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_prog works" >&5
  4220. $as_echo_n "checking whether $ac_prog works... " >&6; }
  4221. if ${ac_cv_prog_HEAD_1+:} false; then :
  4222. $as_echo_n "(cached) " >&6
  4223. else
  4224. if test -n "$HEAD_1"
  4225. then
  4226. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  4227. else
  4228. if test "`cat conftest.head | $ac_prog`" = "a";
  4229. then
  4230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4231. $as_echo "yes" >&6; }
  4232. ac_cv_prog_HEAD_1=$ac_prog
  4233. else
  4234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4235. $as_echo "no" >&6; }
  4236. fi
  4237. fi
  4238. fi
  4239. test -n "$ac_cv_prog_HEAD_1" && break
  4240. done
  4241. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  4242. then
  4243. cat << 'EOF' >&2
  4244. configure: error:
  4245. This system seems to lack a working 'head -1' or 'head -n 1' command.
  4246. A working 'head -1' (or equivalent) command is required to compile Wraith.
  4247. EOF
  4248. exit 1
  4249. fi
  4250. rm -f conftest.head
  4251. HEAD_1=$ac_cv_prog_HEAD_1
  4252. # awk is needed for Tcl library and header checks, and eggdrop version subst
  4253. for ac_prog in gawk mawk nawk awk
  4254. do
  4255. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4256. set dummy $ac_prog; ac_word=$2
  4257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4258. $as_echo_n "checking for $ac_word... " >&6; }
  4259. if ${ac_cv_prog_AWK+:} false; then :
  4260. $as_echo_n "(cached) " >&6
  4261. else
  4262. if test -n "$AWK"; then
  4263. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4264. else
  4265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4266. for as_dir in $PATH
  4267. do
  4268. IFS=$as_save_IFS
  4269. test -z "$as_dir" && as_dir=.
  4270. for ac_exec_ext in '' $ac_executable_extensions; do
  4271. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4272. ac_cv_prog_AWK="$ac_prog"
  4273. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4274. break 2
  4275. fi
  4276. done
  4277. done
  4278. IFS=$as_save_IFS
  4279. fi
  4280. fi
  4281. AWK=$ac_cv_prog_AWK
  4282. if test -n "$AWK"; then
  4283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4284. $as_echo "$AWK" >&6; }
  4285. else
  4286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4287. $as_echo "no" >&6; }
  4288. fi
  4289. test -n "$AWK" && break
  4290. done
  4291. if test "${AWK-x}" = "x"
  4292. then
  4293. cat << 'EOF' >&2
  4294. configure: error:
  4295. This system seems to lack a working 'awk' command.
  4296. A working 'awk' command is required to compile Wraith.
  4297. EOF
  4298. exit 1
  4299. fi
  4300. # basename is needed for Tcl library and header checks
  4301. # Extract the first word of "basename", so it can be a program name with args.
  4302. set dummy basename; ac_word=$2
  4303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4304. $as_echo_n "checking for $ac_word... " >&6; }
  4305. if ${ac_cv_prog_BASENAME+:} false; then :
  4306. $as_echo_n "(cached) " >&6
  4307. else
  4308. if test -n "$BASENAME"; then
  4309. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  4310. else
  4311. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4312. for as_dir in $PATH
  4313. do
  4314. IFS=$as_save_IFS
  4315. test -z "$as_dir" && as_dir=.
  4316. for ac_exec_ext in '' $ac_executable_extensions; do
  4317. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4318. ac_cv_prog_BASENAME="basename"
  4319. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4320. break 2
  4321. fi
  4322. done
  4323. done
  4324. IFS=$as_save_IFS
  4325. fi
  4326. fi
  4327. BASENAME=$ac_cv_prog_BASENAME
  4328. if test -n "$BASENAME"; then
  4329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
  4330. $as_echo "$BASENAME" >&6; }
  4331. else
  4332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4333. $as_echo "no" >&6; }
  4334. fi
  4335. if test "${BASENAME-x}" = "x"
  4336. then
  4337. cat << 'EOF' >&2
  4338. configure: error:
  4339. This system seems to lack a working 'basename' command.
  4340. A working 'basename' command is required to compile Wraith.
  4341. EOF
  4342. exit 1
  4343. fi
  4344. # Extract the first word of "objcopy", so it can be a program name with args.
  4345. set dummy objcopy; ac_word=$2
  4346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4347. $as_echo_n "checking for $ac_word... " >&6; }
  4348. if ${ac_cv_prog_OBJCOPY+:} false; then :
  4349. $as_echo_n "(cached) " >&6
  4350. else
  4351. if test -n "$OBJCOPY"; then
  4352. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  4353. else
  4354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4355. for as_dir in $PATH
  4356. do
  4357. IFS=$as_save_IFS
  4358. test -z "$as_dir" && as_dir=.
  4359. for ac_exec_ext in '' $ac_executable_extensions; do
  4360. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4361. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  4362. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4363. break 2
  4364. fi
  4365. done
  4366. done
  4367. IFS=$as_save_IFS
  4368. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  4369. fi
  4370. fi
  4371. OBJCOPY=$ac_cv_prog_OBJCOPY
  4372. if test -n "$OBJCOPY"; then
  4373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  4374. $as_echo "$OBJCOPY" >&6; }
  4375. else
  4376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4377. $as_echo "no" >&6; }
  4378. fi
  4379. # Extract the first word of "strip", so it can be a program name with args.
  4380. set dummy strip; ac_word=$2
  4381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4382. $as_echo_n "checking for $ac_word... " >&6; }
  4383. if ${ac_cv_prog_STRIP+:} false; then :
  4384. $as_echo_n "(cached) " >&6
  4385. else
  4386. if test -n "$STRIP"; then
  4387. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4388. else
  4389. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4390. for as_dir in $PATH
  4391. do
  4392. IFS=$as_save_IFS
  4393. test -z "$as_dir" && as_dir=.
  4394. for ac_exec_ext in '' $ac_executable_extensions; do
  4395. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4396. ac_cv_prog_STRIP="strip"
  4397. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4398. break 2
  4399. fi
  4400. done
  4401. done
  4402. IFS=$as_save_IFS
  4403. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  4404. fi
  4405. fi
  4406. STRIP=$ac_cv_prog_STRIP
  4407. if test -n "$STRIP"; then
  4408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4409. $as_echo "$STRIP" >&6; }
  4410. else
  4411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4412. $as_echo "no" >&6; }
  4413. fi
  4414. # Extract the first word of "gdiff", so it can be a program name with args.
  4415. set dummy gdiff; ac_word=$2
  4416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4417. $as_echo_n "checking for $ac_word... " >&6; }
  4418. if ${ac_cv_prog_DIFF+:} false; then :
  4419. $as_echo_n "(cached) " >&6
  4420. else
  4421. if test -n "$DIFF"; then
  4422. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  4423. else
  4424. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4425. for as_dir in $PATH
  4426. do
  4427. IFS=$as_save_IFS
  4428. test -z "$as_dir" && as_dir=.
  4429. for ac_exec_ext in '' $ac_executable_extensions; do
  4430. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4431. ac_cv_prog_DIFF="gdiff"
  4432. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4433. break 2
  4434. fi
  4435. done
  4436. done
  4437. IFS=$as_save_IFS
  4438. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  4439. fi
  4440. fi
  4441. DIFF=$ac_cv_prog_DIFF
  4442. if test -n "$DIFF"; then
  4443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
  4444. $as_echo "$DIFF" >&6; }
  4445. else
  4446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4447. $as_echo "no" >&6; }
  4448. fi
  4449. # Extract the first word of "uname", so it can be a program name with args.
  4450. set dummy uname; ac_word=$2
  4451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4452. $as_echo_n "checking for $ac_word... " >&6; }
  4453. if ${ac_cv_prog_UNAME+:} false; then :
  4454. $as_echo_n "(cached) " >&6
  4455. else
  4456. if test -n "$UNAME"; then
  4457. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  4458. else
  4459. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4460. for as_dir in $PATH
  4461. do
  4462. IFS=$as_save_IFS
  4463. test -z "$as_dir" && as_dir=.
  4464. for ac_exec_ext in '' $ac_executable_extensions; do
  4465. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4466. ac_cv_prog_UNAME="uname"
  4467. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4468. break 2
  4469. fi
  4470. done
  4471. done
  4472. IFS=$as_save_IFS
  4473. fi
  4474. fi
  4475. UNAME=$ac_cv_prog_UNAME
  4476. if test -n "$UNAME"; then
  4477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
  4478. $as_echo "$UNAME" >&6; }
  4479. else
  4480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4481. $as_echo "no" >&6; }
  4482. fi
  4483. # Test the os and set the module linking settings
  4484. USE_STATIC=yes
  4485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system type" >&5
  4486. $as_echo_n "checking system type... " >&6; }
  4487. if ${egg_cv_var_system_type+:} false; then :
  4488. $as_echo_n "(cached) " >&6
  4489. else
  4490. egg_cv_var_system_type=`$UNAME -s`
  4491. fi
  4492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_type" >&5
  4493. $as_echo "$egg_cv_var_system_type" >&6; }
  4494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system release" >&5
  4495. $as_echo_n "checking system release... " >&6; }
  4496. if ${egg_cv_var_system_release+:} false; then :
  4497. $as_echo_n "(cached) " >&6
  4498. else
  4499. egg_cv_var_system_release=`$UNAME -r`
  4500. fi
  4501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_release" >&5
  4502. $as_echo "$egg_cv_var_system_release" >&6; }
  4503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system machine" >&5
  4504. $as_echo_n "checking system machine... " >&6; }
  4505. if ${egg_cv_var_system_machine+:} false; then :
  4506. $as_echo_n "(cached) " >&6
  4507. else
  4508. egg_cv_var_system_machine=`$UNAME -m`
  4509. fi
  4510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_machine" >&5
  4511. $as_echo "$egg_cv_var_system_machine" >&6; }
  4512. BUILDOS="$egg_cv_var_system_type"
  4513. BUILDARCH="$egg_cv_var_system_machine"
  4514. case "$egg_cv_var_system_type" in
  4515. BSD/OS)
  4516. ;;
  4517. IRIX)
  4518. ;;
  4519. HP-UX)
  4520. $as_echo "#define MD32_XARRAY 1" >>build/confdefs.h
  4521. ;;
  4522. Ultrix)
  4523. SHELL=/bin/sh5
  4524. ;;
  4525. SINIX*)
  4526. ;;
  4527. BeOS)
  4528. ;;
  4529. Linux)
  4530. ;;
  4531. Lynx)
  4532. ;;
  4533. QNX)
  4534. ;;
  4535. OSF1)
  4536. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  4537. V*)
  4538. if test "$AWK" = "gawk"
  4539. then
  4540. AWK=awk
  4541. fi
  4542. ;;
  4543. 1.0|1.1|1.2)
  4544. $as_echo "#define OSF1_HACKS 1" >>build/confdefs.h
  4545. ;;
  4546. 1.*)
  4547. $as_echo "#define OSF1_HACKS 1" >>build/confdefs.h
  4548. ;;
  4549. *)
  4550. ;;
  4551. esac
  4552. $as_echo "#define STOP_UAC 1" >>build/confdefs.h
  4553. $as_echo "#define BROKEN_SNPRINTF 1" >>build/confdefs.h
  4554. ;;
  4555. SunOS)
  4556. SUNOS="yes"
  4557. USE_STATIC="no"
  4558. ;;
  4559. Darwin)
  4560. USE_STATIC="no"
  4561. ;;
  4562. *BSD)
  4563. # FreeBSD/OpenBSD/NetBSD
  4564. ;;
  4565. *)
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is Mach based" >&5
  4567. $as_echo_n "checking if system is Mach based... " >&6; }
  4568. if test -r /mach
  4569. then
  4570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4571. $as_echo "yes" >&6; }
  4572. $as_echo "#define BORGCUBES 1" >>build/confdefs.h
  4573. else
  4574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4575. $as_echo "no" >&6; }
  4576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is QNX" >&5
  4577. $as_echo_n "checking if system is QNX... " >&6; }
  4578. if test -r /cmds
  4579. then
  4580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4581. $as_echo "yes" >&6; }
  4582. else
  4583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4584. $as_echo "no" >&6; }
  4585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Something unknown!" >&5
  4586. $as_echo "Something unknown!" >&6; }
  4587. fi
  4588. fi
  4589. ;;
  4590. esac
  4591. # Check for IPv6 support
  4592. #EGG_IPV6_SUPPORTED
  4593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether IPv6 is enabled" >&5
  4594. $as_echo_n "checking whether IPv6 is enabled... " >&6; }
  4595. # Check whether --enable-ipv6 was given.
  4596. if test "${enable_ipv6+set}" = set; then :
  4597. enableval=$enable_ipv6;
  4598. enable_ipv6=$enableval
  4599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  4600. $as_echo "$enableval" >&6; }
  4601. else
  4602. # default if not given is ENABLED
  4603. if test "x$enableval" = "x"; then
  4604. enableval="yes"
  4605. fi
  4606. enable_ipv6=$enableval
  4607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  4608. $as_echo "$enableval" >&6; }
  4609. $as_echo "#define USE_IPV6 1" >>build/confdefs.h
  4610. fi
  4611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
  4612. $as_echo_n "checking for socklen_t... " >&6; }
  4613. if ${egg_cv_socklen_t+:} false; then :
  4614. $as_echo_n "(cached) " >&6
  4615. else
  4616. if test "$cross_compiling" = yes; then :
  4617. egg_cv_socklen_t=no
  4618. else
  4619. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4620. /* end build/confdefs.h. */
  4621. #include <unistd.h>
  4622. #include <sys/types.h>
  4623. #include <sys/socket.h>
  4624. #include <netinet/in.h>
  4625. #include <arpa/inet.h>
  4626. int main()
  4627. {
  4628. socklen_t test = sizeof(int);
  4629. return 0;
  4630. }
  4631. _ACEOF
  4632. if ac_fn_cxx_try_run "$LINENO"; then :
  4633. egg_cv_socklen_t=yes
  4634. else
  4635. egg_cv_socklen_t=no
  4636. fi
  4637. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4638. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4639. fi
  4640. fi
  4641. if test "$egg_cv_socklen_t" = "yes"; then
  4642. $as_echo "#define HAVE_SOCKLEN_T 1" >>build/confdefs.h
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4644. $as_echo "yes" >&6; }
  4645. else
  4646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4647. $as_echo "no" >&6; }
  4648. fi
  4649. # Check for inconsistent random() functions
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random limit" >&5
  4651. $as_echo_n "checking for random limit... " >&6; }
  4652. case "$egg_cv_var_system_type" in
  4653. SunOS) RMAX=0x7FFFFFFF
  4654. ;;
  4655. *) RMAX=RAND_MAX
  4656. ;;
  4657. esac
  4658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMAX" >&5
  4659. $as_echo "$RMAX" >&6; }
  4660. cat >>build/confdefs.h <<_ACEOF
  4661. #define RANDOM_MAX $RMAX
  4662. _ACEOF
  4663. # Create static binaries
  4664. if test "$USE_STATIC" = "yes"
  4665. then
  4666. if test -n "$GXX"
  4667. then
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static" >&5
  4669. $as_echo_n "checking whether the compiler understands -static... " >&6; }
  4670. if ${egg_cv_var_ccstatic+:} false; then :
  4671. $as_echo_n "(cached) " >&6
  4672. else
  4673. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4674. /* end build/confdefs.h. */
  4675. int
  4676. main ()
  4677. {
  4678. ;
  4679. return 0;
  4680. }
  4681. _ACEOF
  4682. if ac_fn_cxx_try_compile "$LINENO"; then :
  4683. egg_cv_var_ccstatic="yes"
  4684. else
  4685. egg_cv_var_ccstatic="no"
  4686. fi
  4687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4688. fi
  4689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccstatic" >&5
  4690. $as_echo "$egg_cv_var_ccstatic" >&6; }
  4691. if ! test "$egg_cv_var_ccstatic" = "yes"
  4692. then
  4693. cat << 'EOF' >&2
  4694. configure: error:
  4695. Your OS or C++ compiler does not support -static.
  4696. This compile flag is required for the botpack on this OS.
  4697. EOF
  4698. exit 1
  4699. fi
  4700. fi
  4701. STATIC="-static"
  4702. else
  4703. STATIC=""
  4704. fi
  4705. #checkpoint
  4706. cat >confcache <<\_ACEOF
  4707. # This file is a shell script that caches the results of configure
  4708. # tests run on this system so they can be shared between configure
  4709. # scripts and configure runs, see configure's option --config-cache.
  4710. # It is not useful on other systems. If it contains results you don't
  4711. # want to keep, you may remove or edit it.
  4712. #
  4713. # build/config.status only pays attention to the cache file if you give it
  4714. # the --recheck option to rerun configure.
  4715. #
  4716. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4717. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4718. # following values.
  4719. _ACEOF
  4720. # The following way of writing the cache mishandles newlines in values,
  4721. # but we know of no workaround that is simple, portable, and efficient.
  4722. # So, we kill variables containing newlines.
  4723. # Ultrix sh set writes to stderr and can't be redirected directly,
  4724. # and sets the high bit in the cache file unless we assign to the vars.
  4725. (
  4726. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4727. eval ac_val=\$$ac_var
  4728. case $ac_val in #(
  4729. *${as_nl}*)
  4730. case $ac_var in #(
  4731. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4732. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4733. esac
  4734. case $ac_var in #(
  4735. _ | IFS | as_nl) ;; #(
  4736. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4737. *) { eval $ac_var=; unset $ac_var;} ;;
  4738. esac ;;
  4739. esac
  4740. done
  4741. (set) 2>&1 |
  4742. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4743. *${as_nl}ac_space=\ *)
  4744. # `set' does not quote correctly, so add quotes: double-quote
  4745. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4746. sed -n \
  4747. "s/'/'\\\\''/g;
  4748. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4749. ;; #(
  4750. *)
  4751. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4752. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4753. ;;
  4754. esac |
  4755. sort
  4756. ) |
  4757. sed '
  4758. /^ac_cv_env_/b end
  4759. t clear
  4760. :clear
  4761. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4762. t end
  4763. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4764. :end' >>confcache
  4765. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4766. if test -w "$cache_file"; then
  4767. if test "x$cache_file" != "x/dev/null"; then
  4768. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4769. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4770. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4771. cat confcache >"$cache_file"
  4772. else
  4773. case $cache_file in #(
  4774. */* | ?:*)
  4775. mv -f confcache "$cache_file"$$ &&
  4776. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4777. *)
  4778. mv -f confcache "$cache_file" ;;
  4779. esac
  4780. fi
  4781. fi
  4782. else
  4783. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4784. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4785. fi
  4786. fi
  4787. rm -f confcache
  4788. # Checks for system libraries
  4789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  4790. $as_echo_n "checking for socket in -lsocket... " >&6; }
  4791. if ${ac_cv_lib_socket_socket+:} false; then :
  4792. $as_echo_n "(cached) " >&6
  4793. else
  4794. ac_check_lib_save_LIBS=$LIBS
  4795. LIBS="-lsocket $LIBS"
  4796. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4797. /* end build/confdefs.h. */
  4798. /* Override any GCC internal prototype to avoid an error.
  4799. Use char because int might match the return type of a GCC
  4800. builtin and then its argument prototype would still apply. */
  4801. #ifdef __cplusplus
  4802. extern "C"
  4803. #endif
  4804. char socket ();
  4805. int
  4806. main ()
  4807. {
  4808. return socket ();
  4809. ;
  4810. return 0;
  4811. }
  4812. _ACEOF
  4813. if ac_fn_cxx_try_link "$LINENO"; then :
  4814. ac_cv_lib_socket_socket=yes
  4815. else
  4816. ac_cv_lib_socket_socket=no
  4817. fi
  4818. rm -f core conftest.err conftest.$ac_objext \
  4819. conftest$ac_exeext conftest.$ac_ext
  4820. LIBS=$ac_check_lib_save_LIBS
  4821. fi
  4822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  4823. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  4824. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  4825. cat >>build/confdefs.h <<_ACEOF
  4826. #define HAVE_LIBSOCKET 1
  4827. _ACEOF
  4828. LIBS="-lsocket $LIBS"
  4829. fi
  4830. # AC_CHECK_LIB(nsl, connect)
  4831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  4832. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  4833. if ${ac_cv_lib_dl_dlopen+:} false; then :
  4834. $as_echo_n "(cached) " >&6
  4835. else
  4836. ac_check_lib_save_LIBS=$LIBS
  4837. LIBS="-ldl $LIBS"
  4838. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4839. /* end build/confdefs.h. */
  4840. /* Override any GCC internal prototype to avoid an error.
  4841. Use char because int might match the return type of a GCC
  4842. builtin and then its argument prototype would still apply. */
  4843. #ifdef __cplusplus
  4844. extern "C"
  4845. #endif
  4846. char dlopen ();
  4847. int
  4848. main ()
  4849. {
  4850. return dlopen ();
  4851. ;
  4852. return 0;
  4853. }
  4854. _ACEOF
  4855. if ac_fn_cxx_try_link "$LINENO"; then :
  4856. ac_cv_lib_dl_dlopen=yes
  4857. else
  4858. ac_cv_lib_dl_dlopen=no
  4859. fi
  4860. rm -f core conftest.err conftest.$ac_objext \
  4861. conftest$ac_exeext conftest.$ac_ext
  4862. LIBS=$ac_check_lib_save_LIBS
  4863. fi
  4864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  4865. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  4866. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  4867. cat >>build/confdefs.h <<_ACEOF
  4868. #define HAVE_LIBDL 1
  4869. _ACEOF
  4870. LIBS="-ldl $LIBS"
  4871. fi
  4872. if test "$SUNOS" = "yes"; then
  4873. # For suns without yp
  4874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
  4875. $as_echo_n "checking for main in -ldl... " >&6; }
  4876. if ${ac_cv_lib_dl_main+:} false; then :
  4877. $as_echo_n "(cached) " >&6
  4878. else
  4879. ac_check_lib_save_LIBS=$LIBS
  4880. LIBS="-ldl $LIBS"
  4881. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4882. /* end build/confdefs.h. */
  4883. int
  4884. main ()
  4885. {
  4886. return main ();
  4887. ;
  4888. return 0;
  4889. }
  4890. _ACEOF
  4891. if ac_fn_cxx_try_link "$LINENO"; then :
  4892. ac_cv_lib_dl_main=yes
  4893. else
  4894. ac_cv_lib_dl_main=no
  4895. fi
  4896. rm -f core conftest.err conftest.$ac_objext \
  4897. conftest$ac_exeext conftest.$ac_ext
  4898. LIBS=$ac_check_lib_save_LIBS
  4899. fi
  4900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
  4901. $as_echo "$ac_cv_lib_dl_main" >&6; }
  4902. if test "x$ac_cv_lib_dl_main" = xyes; then :
  4903. cat >>build/confdefs.h <<_ACEOF
  4904. #define HAVE_LIBDL 1
  4905. _ACEOF
  4906. LIBS="-ldl $LIBS"
  4907. fi
  4908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
  4909. $as_echo_n "checking for main in -lsocket... " >&6; }
  4910. if ${ac_cv_lib_socket_main+:} false; then :
  4911. $as_echo_n "(cached) " >&6
  4912. else
  4913. ac_check_lib_save_LIBS=$LIBS
  4914. LIBS="-lsocket $LIBS"
  4915. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4916. /* end build/confdefs.h. */
  4917. int
  4918. main ()
  4919. {
  4920. return main ();
  4921. ;
  4922. return 0;
  4923. }
  4924. _ACEOF
  4925. if ac_fn_cxx_try_link "$LINENO"; then :
  4926. ac_cv_lib_socket_main=yes
  4927. else
  4928. ac_cv_lib_socket_main=no
  4929. fi
  4930. rm -f core conftest.err conftest.$ac_objext \
  4931. conftest$ac_exeext conftest.$ac_ext
  4932. LIBS=$ac_check_lib_save_LIBS
  4933. fi
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
  4935. $as_echo "$ac_cv_lib_socket_main" >&6; }
  4936. if test "x$ac_cv_lib_socket_main" = xyes; then :
  4937. cat >>build/confdefs.h <<_ACEOF
  4938. #define HAVE_LIBSOCKET 1
  4939. _ACEOF
  4940. LIBS="-lsocket $LIBS"
  4941. fi
  4942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
  4943. $as_echo_n "checking for main in -lnsl... " >&6; }
  4944. if ${ac_cv_lib_nsl_main+:} false; then :
  4945. $as_echo_n "(cached) " >&6
  4946. else
  4947. ac_check_lib_save_LIBS=$LIBS
  4948. LIBS="-lnsl $LIBS"
  4949. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4950. /* end build/confdefs.h. */
  4951. int
  4952. main ()
  4953. {
  4954. return main ();
  4955. ;
  4956. return 0;
  4957. }
  4958. _ACEOF
  4959. if ac_fn_cxx_try_link "$LINENO"; then :
  4960. ac_cv_lib_nsl_main=yes
  4961. else
  4962. ac_cv_lib_nsl_main=no
  4963. fi
  4964. rm -f core conftest.err conftest.$ac_objext \
  4965. conftest$ac_exeext conftest.$ac_ext
  4966. LIBS=$ac_check_lib_save_LIBS
  4967. fi
  4968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
  4969. $as_echo "$ac_cv_lib_nsl_main" >&6; }
  4970. if test "x$ac_cv_lib_nsl_main" = xyes; then :
  4971. cat >>build/confdefs.h <<_ACEOF
  4972. #define HAVE_LIBNSL 1
  4973. _ACEOF
  4974. LIBS="-lnsl $LIBS"
  4975. fi
  4976. fi
  4977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4978. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4979. if ${ac_cv_path_GREP+:} false; then :
  4980. $as_echo_n "(cached) " >&6
  4981. else
  4982. if test -z "$GREP"; then
  4983. ac_path_GREP_found=false
  4984. # Loop through the user's path and test for each of PROGNAME-LIST
  4985. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4986. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4987. do
  4988. IFS=$as_save_IFS
  4989. test -z "$as_dir" && as_dir=.
  4990. for ac_prog in grep ggrep; do
  4991. for ac_exec_ext in '' $ac_executable_extensions; do
  4992. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4993. as_fn_executable_p "$ac_path_GREP" || continue
  4994. # Check for GNU ac_path_GREP and select it if it is found.
  4995. # Check for GNU $ac_path_GREP
  4996. case `"$ac_path_GREP" --version 2>&1` in
  4997. *GNU*)
  4998. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4999. *)
  5000. ac_count=0
  5001. $as_echo_n 0123456789 >"conftest.in"
  5002. while :
  5003. do
  5004. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5005. mv "conftest.tmp" "conftest.in"
  5006. cp "conftest.in" "conftest.nl"
  5007. $as_echo 'GREP' >> "conftest.nl"
  5008. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5009. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5010. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5011. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5012. # Best one so far, save it but keep looking for a better one
  5013. ac_cv_path_GREP="$ac_path_GREP"
  5014. ac_path_GREP_max=$ac_count
  5015. fi
  5016. # 10*(2^10) chars as input seems more than enough
  5017. test $ac_count -gt 10 && break
  5018. done
  5019. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5020. esac
  5021. $ac_path_GREP_found && break 3
  5022. done
  5023. done
  5024. done
  5025. IFS=$as_save_IFS
  5026. if test -z "$ac_cv_path_GREP"; then
  5027. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5028. fi
  5029. else
  5030. ac_cv_path_GREP=$GREP
  5031. fi
  5032. fi
  5033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5034. $as_echo "$ac_cv_path_GREP" >&6; }
  5035. GREP="$ac_cv_path_GREP"
  5036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5037. $as_echo_n "checking for egrep... " >&6; }
  5038. if ${ac_cv_path_EGREP+:} false; then :
  5039. $as_echo_n "(cached) " >&6
  5040. else
  5041. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5042. then ac_cv_path_EGREP="$GREP -E"
  5043. else
  5044. if test -z "$EGREP"; then
  5045. ac_path_EGREP_found=false
  5046. # Loop through the user's path and test for each of PROGNAME-LIST
  5047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5048. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5049. do
  5050. IFS=$as_save_IFS
  5051. test -z "$as_dir" && as_dir=.
  5052. for ac_prog in egrep; do
  5053. for ac_exec_ext in '' $ac_executable_extensions; do
  5054. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5055. as_fn_executable_p "$ac_path_EGREP" || continue
  5056. # Check for GNU ac_path_EGREP and select it if it is found.
  5057. # Check for GNU $ac_path_EGREP
  5058. case `"$ac_path_EGREP" --version 2>&1` in
  5059. *GNU*)
  5060. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5061. *)
  5062. ac_count=0
  5063. $as_echo_n 0123456789 >"conftest.in"
  5064. while :
  5065. do
  5066. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5067. mv "conftest.tmp" "conftest.in"
  5068. cp "conftest.in" "conftest.nl"
  5069. $as_echo 'EGREP' >> "conftest.nl"
  5070. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5071. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5072. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5073. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5074. # Best one so far, save it but keep looking for a better one
  5075. ac_cv_path_EGREP="$ac_path_EGREP"
  5076. ac_path_EGREP_max=$ac_count
  5077. fi
  5078. # 10*(2^10) chars as input seems more than enough
  5079. test $ac_count -gt 10 && break
  5080. done
  5081. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5082. esac
  5083. $ac_path_EGREP_found && break 3
  5084. done
  5085. done
  5086. done
  5087. IFS=$as_save_IFS
  5088. if test -z "$ac_cv_path_EGREP"; then
  5089. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5090. fi
  5091. else
  5092. ac_cv_path_EGREP=$EGREP
  5093. fi
  5094. fi
  5095. fi
  5096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5097. $as_echo "$ac_cv_path_EGREP" >&6; }
  5098. EGREP="$ac_cv_path_EGREP"
  5099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5100. $as_echo_n "checking for ANSI C header files... " >&6; }
  5101. if ${ac_cv_header_stdc+:} false; then :
  5102. $as_echo_n "(cached) " >&6
  5103. else
  5104. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5105. /* end build/confdefs.h. */
  5106. #include <stdlib.h>
  5107. #include <stdarg.h>
  5108. #include <string.h>
  5109. #include <float.h>
  5110. int
  5111. main ()
  5112. {
  5113. ;
  5114. return 0;
  5115. }
  5116. _ACEOF
  5117. if ac_fn_cxx_try_compile "$LINENO"; then :
  5118. ac_cv_header_stdc=yes
  5119. else
  5120. ac_cv_header_stdc=no
  5121. fi
  5122. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5123. if test $ac_cv_header_stdc = yes; then
  5124. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5125. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5126. /* end build/confdefs.h. */
  5127. #include <string.h>
  5128. _ACEOF
  5129. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5130. $EGREP "memchr" >/dev/null 2>&1; then :
  5131. else
  5132. ac_cv_header_stdc=no
  5133. fi
  5134. rm -f conftest*
  5135. fi
  5136. if test $ac_cv_header_stdc = yes; then
  5137. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5138. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5139. /* end build/confdefs.h. */
  5140. #include <stdlib.h>
  5141. _ACEOF
  5142. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5143. $EGREP "free" >/dev/null 2>&1; then :
  5144. else
  5145. ac_cv_header_stdc=no
  5146. fi
  5147. rm -f conftest*
  5148. fi
  5149. if test $ac_cv_header_stdc = yes; then
  5150. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5151. if test "$cross_compiling" = yes; then :
  5152. :
  5153. else
  5154. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5155. /* end build/confdefs.h. */
  5156. #include <ctype.h>
  5157. #include <stdlib.h>
  5158. #if ((' ' & 0x0FF) == 0x020)
  5159. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5160. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5161. #else
  5162. # define ISLOWER(c) \
  5163. (('a' <= (c) && (c) <= 'i') \
  5164. || ('j' <= (c) && (c) <= 'r') \
  5165. || ('s' <= (c) && (c) <= 'z'))
  5166. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5167. #endif
  5168. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5169. int
  5170. main ()
  5171. {
  5172. int i;
  5173. for (i = 0; i < 256; i++)
  5174. if (XOR (islower (i), ISLOWER (i))
  5175. || toupper (i) != TOUPPER (i))
  5176. return 2;
  5177. return 0;
  5178. }
  5179. _ACEOF
  5180. if ac_fn_cxx_try_run "$LINENO"; then :
  5181. else
  5182. ac_cv_header_stdc=no
  5183. fi
  5184. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5185. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5186. fi
  5187. fi
  5188. fi
  5189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5190. $as_echo "$ac_cv_header_stdc" >&6; }
  5191. if test $ac_cv_header_stdc = yes; then
  5192. $as_echo "#define STDC_HEADERS 1" >>build/confdefs.h
  5193. fi
  5194. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5195. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5196. inttypes.h stdint.h unistd.h
  5197. do :
  5198. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5199. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5200. "
  5201. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5202. cat >>build/confdefs.h <<_ACEOF
  5203. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5204. _ACEOF
  5205. fi
  5206. done
  5207. LIBELF_DIR="lib/libelf/lib"
  5208. LIBELF_LIB="\$(top_builddir)/${LIBELF_DIR}/libelf.a"
  5209. LIBELF_BUNDLED="${LIBELF_LIB}"
  5210. LIBELF_INCLUDE="-I\$(top_srcdir)/${LIBELF_DIR}"
  5211. for ac_header in gelf.h libelf.h
  5212. do :
  5213. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5214. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5215. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5216. cat >>build/confdefs.h <<_ACEOF
  5217. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5218. _ACEOF
  5219. ac_fn_cxx_check_type "$LINENO" "Elf_Note" "ac_cv_type_Elf_Note" "
  5220. #include \"gelf.h\"
  5221. #include \"libelf.h\"
  5222. "
  5223. if test "x$ac_cv_type_Elf_Note" = xyes; then :
  5224. cat >>build/confdefs.h <<_ACEOF
  5225. #define HAVE_ELF_NOTE 1
  5226. _ACEOF
  5227. $as_echo "#define HAVE_GELF_H 1" >>build/confdefs.h
  5228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gelf_getehdr in -lelf" >&5
  5229. $as_echo_n "checking for gelf_getehdr in -lelf... " >&6; }
  5230. if ${ac_cv_lib_elf_gelf_getehdr+:} false; then :
  5231. $as_echo_n "(cached) " >&6
  5232. else
  5233. ac_check_lib_save_LIBS=$LIBS
  5234. LIBS="-lelf $LIBS"
  5235. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5236. /* end build/confdefs.h. */
  5237. /* Override any GCC internal prototype to avoid an error.
  5238. Use char because int might match the return type of a GCC
  5239. builtin and then its argument prototype would still apply. */
  5240. #ifdef __cplusplus
  5241. extern "C"
  5242. #endif
  5243. char gelf_getehdr ();
  5244. int
  5245. main ()
  5246. {
  5247. return gelf_getehdr ();
  5248. ;
  5249. return 0;
  5250. }
  5251. _ACEOF
  5252. if ac_fn_cxx_try_link "$LINENO"; then :
  5253. ac_cv_lib_elf_gelf_getehdr=yes
  5254. else
  5255. ac_cv_lib_elf_gelf_getehdr=no
  5256. fi
  5257. rm -f core conftest.err conftest.$ac_objext \
  5258. conftest$ac_exeext conftest.$ac_ext
  5259. LIBS=$ac_check_lib_save_LIBS
  5260. fi
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_gelf_getehdr" >&5
  5262. $as_echo "$ac_cv_lib_elf_gelf_getehdr" >&6; }
  5263. if test "x$ac_cv_lib_elf_gelf_getehdr" = xyes; then :
  5264. $as_echo "#define HAVE_LIBELF 1" >>build/confdefs.h
  5265. LIBELF_LIB="-Wl,-Bstatic -lelf -Wl,-Bdynamic"
  5266. LIBELF_BUNDLED=
  5267. LIBELF_INCLUDE=
  5268. fi
  5269. fi
  5270. fi
  5271. done
  5272. CPPFLAGS="${CPPFLAGS} ${LIBELF_INCLUDE}"
  5273. # Checks for header files
  5274. ac_header_dirent=no
  5275. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  5276. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  5277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  5278. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  5279. if eval \${$as_ac_Header+:} false; then :
  5280. $as_echo_n "(cached) " >&6
  5281. else
  5282. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5283. /* end build/confdefs.h. */
  5284. #include <sys/types.h>
  5285. #include <$ac_hdr>
  5286. int
  5287. main ()
  5288. {
  5289. if ((DIR *) 0)
  5290. return 0;
  5291. ;
  5292. return 0;
  5293. }
  5294. _ACEOF
  5295. if ac_fn_cxx_try_compile "$LINENO"; then :
  5296. eval "$as_ac_Header=yes"
  5297. else
  5298. eval "$as_ac_Header=no"
  5299. fi
  5300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5301. fi
  5302. eval ac_res=\$$as_ac_Header
  5303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5304. $as_echo "$ac_res" >&6; }
  5305. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5306. cat >>build/confdefs.h <<_ACEOF
  5307. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  5308. _ACEOF
  5309. ac_header_dirent=$ac_hdr; break
  5310. fi
  5311. done
  5312. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  5313. if test $ac_header_dirent = dirent.h; then
  5314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  5315. $as_echo_n "checking for library containing opendir... " >&6; }
  5316. if ${ac_cv_search_opendir+:} false; then :
  5317. $as_echo_n "(cached) " >&6
  5318. else
  5319. ac_func_search_save_LIBS=$LIBS
  5320. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5321. /* end build/confdefs.h. */
  5322. /* Override any GCC internal prototype to avoid an error.
  5323. Use char because int might match the return type of a GCC
  5324. builtin and then its argument prototype would still apply. */
  5325. #ifdef __cplusplus
  5326. extern "C"
  5327. #endif
  5328. char opendir ();
  5329. int
  5330. main ()
  5331. {
  5332. return opendir ();
  5333. ;
  5334. return 0;
  5335. }
  5336. _ACEOF
  5337. for ac_lib in '' dir; do
  5338. if test -z "$ac_lib"; then
  5339. ac_res="none required"
  5340. else
  5341. ac_res=-l$ac_lib
  5342. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5343. fi
  5344. if ac_fn_cxx_try_link "$LINENO"; then :
  5345. ac_cv_search_opendir=$ac_res
  5346. fi
  5347. rm -f core conftest.err conftest.$ac_objext \
  5348. conftest$ac_exeext
  5349. if ${ac_cv_search_opendir+:} false; then :
  5350. break
  5351. fi
  5352. done
  5353. if ${ac_cv_search_opendir+:} false; then :
  5354. else
  5355. ac_cv_search_opendir=no
  5356. fi
  5357. rm conftest.$ac_ext
  5358. LIBS=$ac_func_search_save_LIBS
  5359. fi
  5360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  5361. $as_echo "$ac_cv_search_opendir" >&6; }
  5362. ac_res=$ac_cv_search_opendir
  5363. if test "$ac_res" != no; then :
  5364. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5365. fi
  5366. else
  5367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  5368. $as_echo_n "checking for library containing opendir... " >&6; }
  5369. if ${ac_cv_search_opendir+:} false; then :
  5370. $as_echo_n "(cached) " >&6
  5371. else
  5372. ac_func_search_save_LIBS=$LIBS
  5373. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5374. /* end build/confdefs.h. */
  5375. /* Override any GCC internal prototype to avoid an error.
  5376. Use char because int might match the return type of a GCC
  5377. builtin and then its argument prototype would still apply. */
  5378. #ifdef __cplusplus
  5379. extern "C"
  5380. #endif
  5381. char opendir ();
  5382. int
  5383. main ()
  5384. {
  5385. return opendir ();
  5386. ;
  5387. return 0;
  5388. }
  5389. _ACEOF
  5390. for ac_lib in '' x; do
  5391. if test -z "$ac_lib"; then
  5392. ac_res="none required"
  5393. else
  5394. ac_res=-l$ac_lib
  5395. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5396. fi
  5397. if ac_fn_cxx_try_link "$LINENO"; then :
  5398. ac_cv_search_opendir=$ac_res
  5399. fi
  5400. rm -f core conftest.err conftest.$ac_objext \
  5401. conftest$ac_exeext
  5402. if ${ac_cv_search_opendir+:} false; then :
  5403. break
  5404. fi
  5405. done
  5406. if ${ac_cv_search_opendir+:} false; then :
  5407. else
  5408. ac_cv_search_opendir=no
  5409. fi
  5410. rm conftest.$ac_ext
  5411. LIBS=$ac_func_search_save_LIBS
  5412. fi
  5413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  5414. $as_echo "$ac_cv_search_opendir" >&6; }
  5415. ac_res=$ac_cv_search_opendir
  5416. if test "$ac_res" != no; then :
  5417. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5418. fi
  5419. fi
  5420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  5421. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  5422. if ${ac_cv_header_sys_wait_h+:} false; then :
  5423. $as_echo_n "(cached) " >&6
  5424. else
  5425. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5426. /* end build/confdefs.h. */
  5427. #include <sys/types.h>
  5428. #include <sys/wait.h>
  5429. #ifndef WEXITSTATUS
  5430. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  5431. #endif
  5432. #ifndef WIFEXITED
  5433. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  5434. #endif
  5435. int
  5436. main ()
  5437. {
  5438. int s;
  5439. wait (&s);
  5440. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  5441. ;
  5442. return 0;
  5443. }
  5444. _ACEOF
  5445. if ac_fn_cxx_try_compile "$LINENO"; then :
  5446. ac_cv_header_sys_wait_h=yes
  5447. else
  5448. ac_cv_header_sys_wait_h=no
  5449. fi
  5450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5451. fi
  5452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  5453. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  5454. if test $ac_cv_header_sys_wait_h = yes; then
  5455. $as_echo "#define HAVE_SYS_WAIT_H 1" >>build/confdefs.h
  5456. fi
  5457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  5458. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  5459. if ${ac_cv_header_time+:} false; then :
  5460. $as_echo_n "(cached) " >&6
  5461. else
  5462. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5463. /* end build/confdefs.h. */
  5464. #include <sys/types.h>
  5465. #include <sys/time.h>
  5466. #include <time.h>
  5467. int
  5468. main ()
  5469. {
  5470. if ((struct tm *) 0)
  5471. return 0;
  5472. ;
  5473. return 0;
  5474. }
  5475. _ACEOF
  5476. if ac_fn_cxx_try_compile "$LINENO"; then :
  5477. ac_cv_header_time=yes
  5478. else
  5479. ac_cv_header_time=no
  5480. fi
  5481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5482. fi
  5483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  5484. $as_echo "$ac_cv_header_time" >&6; }
  5485. if test $ac_cv_header_time = yes; then
  5486. $as_echo "#define TIME_WITH_SYS_TIME 1" >>build/confdefs.h
  5487. fi
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  5489. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  5490. if ${ac_cv_header_stat_broken+:} false; then :
  5491. $as_echo_n "(cached) " >&6
  5492. else
  5493. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5494. /* end build/confdefs.h. */
  5495. #include <sys/types.h>
  5496. #include <sys/stat.h>
  5497. #if defined S_ISBLK && defined S_IFDIR
  5498. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  5499. #endif
  5500. #if defined S_ISBLK && defined S_IFCHR
  5501. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  5502. #endif
  5503. #if defined S_ISLNK && defined S_IFREG
  5504. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  5505. #endif
  5506. #if defined S_ISSOCK && defined S_IFREG
  5507. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  5508. #endif
  5509. _ACEOF
  5510. if ac_fn_cxx_try_compile "$LINENO"; then :
  5511. ac_cv_header_stat_broken=no
  5512. else
  5513. ac_cv_header_stat_broken=yes
  5514. fi
  5515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5516. fi
  5517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  5518. $as_echo "$ac_cv_header_stat_broken" >&6; }
  5519. if test $ac_cv_header_stat_broken = yes; then
  5520. $as_echo "#define STAT_MACROS_BROKEN 1" >>build/confdefs.h
  5521. fi
  5522. #checkpoint
  5523. cat >confcache <<\_ACEOF
  5524. # This file is a shell script that caches the results of configure
  5525. # tests run on this system so they can be shared between configure
  5526. # scripts and configure runs, see configure's option --config-cache.
  5527. # It is not useful on other systems. If it contains results you don't
  5528. # want to keep, you may remove or edit it.
  5529. #
  5530. # build/config.status only pays attention to the cache file if you give it
  5531. # the --recheck option to rerun configure.
  5532. #
  5533. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5534. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5535. # following values.
  5536. _ACEOF
  5537. # The following way of writing the cache mishandles newlines in values,
  5538. # but we know of no workaround that is simple, portable, and efficient.
  5539. # So, we kill variables containing newlines.
  5540. # Ultrix sh set writes to stderr and can't be redirected directly,
  5541. # and sets the high bit in the cache file unless we assign to the vars.
  5542. (
  5543. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5544. eval ac_val=\$$ac_var
  5545. case $ac_val in #(
  5546. *${as_nl}*)
  5547. case $ac_var in #(
  5548. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5549. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5550. esac
  5551. case $ac_var in #(
  5552. _ | IFS | as_nl) ;; #(
  5553. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5554. *) { eval $ac_var=; unset $ac_var;} ;;
  5555. esac ;;
  5556. esac
  5557. done
  5558. (set) 2>&1 |
  5559. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5560. *${as_nl}ac_space=\ *)
  5561. # `set' does not quote correctly, so add quotes: double-quote
  5562. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5563. sed -n \
  5564. "s/'/'\\\\''/g;
  5565. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5566. ;; #(
  5567. *)
  5568. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5569. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5570. ;;
  5571. esac |
  5572. sort
  5573. ) |
  5574. sed '
  5575. /^ac_cv_env_/b end
  5576. t clear
  5577. :clear
  5578. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5579. t end
  5580. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5581. :end' >>confcache
  5582. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5583. if test -w "$cache_file"; then
  5584. if test "x$cache_file" != "x/dev/null"; then
  5585. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5586. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5587. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5588. cat confcache >"$cache_file"
  5589. else
  5590. case $cache_file in #(
  5591. */* | ?:*)
  5592. mv -f confcache "$cache_file"$$ &&
  5593. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5594. *)
  5595. mv -f confcache "$cache_file" ;;
  5596. esac
  5597. fi
  5598. fi
  5599. else
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5601. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5602. fi
  5603. fi
  5604. rm -f confcache
  5605. for ac_header in stdarg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5606. do :
  5607. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5608. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5609. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5610. cat >>build/confdefs.h <<_ACEOF
  5611. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5612. _ACEOF
  5613. fi
  5614. done
  5615. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5616. do :
  5617. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5618. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5619. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5620. cat >>build/confdefs.h <<_ACEOF
  5621. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5622. _ACEOF
  5623. fi
  5624. done
  5625. for ac_header in sys/ptrace.h paths.h sys/prctl.h sys/procctl.h
  5626. do :
  5627. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5628. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5629. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5630. cat >>build/confdefs.h <<_ACEOF
  5631. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5632. _ACEOF
  5633. fi
  5634. done
  5635. #checkpoint
  5636. cat >confcache <<\_ACEOF
  5637. # This file is a shell script that caches the results of configure
  5638. # tests run on this system so they can be shared between configure
  5639. # scripts and configure runs, see configure's option --config-cache.
  5640. # It is not useful on other systems. If it contains results you don't
  5641. # want to keep, you may remove or edit it.
  5642. #
  5643. # build/config.status only pays attention to the cache file if you give it
  5644. # the --recheck option to rerun configure.
  5645. #
  5646. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5647. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5648. # following values.
  5649. _ACEOF
  5650. # The following way of writing the cache mishandles newlines in values,
  5651. # but we know of no workaround that is simple, portable, and efficient.
  5652. # So, we kill variables containing newlines.
  5653. # Ultrix sh set writes to stderr and can't be redirected directly,
  5654. # and sets the high bit in the cache file unless we assign to the vars.
  5655. (
  5656. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5657. eval ac_val=\$$ac_var
  5658. case $ac_val in #(
  5659. *${as_nl}*)
  5660. case $ac_var in #(
  5661. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5662. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5663. esac
  5664. case $ac_var in #(
  5665. _ | IFS | as_nl) ;; #(
  5666. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5667. *) { eval $ac_var=; unset $ac_var;} ;;
  5668. esac ;;
  5669. esac
  5670. done
  5671. (set) 2>&1 |
  5672. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5673. *${as_nl}ac_space=\ *)
  5674. # `set' does not quote correctly, so add quotes: double-quote
  5675. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5676. sed -n \
  5677. "s/'/'\\\\''/g;
  5678. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5679. ;; #(
  5680. *)
  5681. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5682. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5683. ;;
  5684. esac |
  5685. sort
  5686. ) |
  5687. sed '
  5688. /^ac_cv_env_/b end
  5689. t clear
  5690. :clear
  5691. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5692. t end
  5693. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5694. :end' >>confcache
  5695. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5696. if test -w "$cache_file"; then
  5697. if test "x$cache_file" != "x/dev/null"; then
  5698. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5699. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5700. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5701. cat confcache >"$cache_file"
  5702. else
  5703. case $cache_file in #(
  5704. */* | ?:*)
  5705. mv -f confcache "$cache_file"$$ &&
  5706. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5707. *)
  5708. mv -f confcache "$cache_file" ;;
  5709. esac
  5710. fi
  5711. fi
  5712. else
  5713. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5714. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5715. fi
  5716. fi
  5717. rm -f confcache
  5718. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5719. #AC_CHECK_HEADERS(zlib.h)
  5720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to OpenSSL" >&5
  5721. $as_echo_n "checking for path to OpenSSL... " >&6; }
  5722. # Check whether --with-openssl was given.
  5723. if test "${with_openssl+set}" = set; then :
  5724. withval=$with_openssl; with_openssl_path=$withval
  5725. else
  5726. with_openssl_path=auto
  5727. fi
  5728. cf_openssl_basedir=""
  5729. if test "$with_openssl_path" != "auto"; then
  5730. cf_openssl_basedir="`echo ${with_openssl_path} | sed 's/\/$//'`"
  5731. else
  5732. for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do
  5733. if test -f "${dirs}/include/openssl/opensslv.h" && test -f "${dirs}/lib/libssl.so"; then
  5734. cf_openssl_basedir="${dirs}"
  5735. break
  5736. fi
  5737. done
  5738. unset dirs
  5739. fi
  5740. if test ! -z "$cf_openssl_basedir"; then
  5741. if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" && test -f "${cf_openssl_basedir}/lib/libssl.so"; then
  5742. SSL_INCLUDES="-I${cf_openssl_basedir}/include"
  5743. SSL_LIBS="-L${cf_openssl_basedir}/lib"
  5744. else
  5745. cf_openssl_basedir=""
  5746. fi
  5747. else
  5748. if test -f "/usr/include/openssl/opensslv.h" ; then
  5749. cf_openssl_basedir="/usr"
  5750. fi
  5751. fi
  5752. if test ! -z "$cf_openssl_basedir"; then
  5753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
  5754. $as_echo "$cf_openssl_basedir" >&6; }
  5755. else
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5757. $as_echo "not found" >&6; }
  5758. as_fn_error 1 "OpenSSL is required." "$LINENO" 5
  5759. fi
  5760. unset cf_openssl_basedir
  5761. save_CXX="$CXX"
  5762. CXX="$CXX $SSL_INCLUDES"
  5763. save_LIBS="$LIBS"
  5764. LIBS="$LIBS $SSL_LIBS"
  5765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
  5766. $as_echo_n "checking for OpenSSL version... " >&6; }
  5767. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5768. /* end build/confdefs.h. */
  5769. #include <openssl/opensslv.h>
  5770. int
  5771. main ()
  5772. {
  5773. #if !defined(OPENSSL_VERSION_NUMBER)
  5774. #error "Missing openssl version"
  5775. #endif
  5776. #if (OPENSSL_VERSION_NUMBER < 0x0090800f)
  5777. #error "Old/Insecure OpenSSL version " OPENSSL_VERSION_TEXT
  5778. #endif
  5779. ;
  5780. return 0;
  5781. }
  5782. _ACEOF
  5783. if ac_fn_cxx_try_compile "$LINENO"; then :
  5784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  5785. $as_echo "OK" >&6; }
  5786. else
  5787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old." >&5
  5788. $as_echo "too old." >&6; }
  5789. as_fn_error 1 "OpenSSL version is too old. Must be 0.9.8f+" "$LINENO" 5
  5790. fi
  5791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5792. CXX="$CXX $SSL_LIBS"
  5793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AES_encrypt in -lcrypto" >&5
  5794. $as_echo_n "checking for AES_encrypt in -lcrypto... " >&6; }
  5795. if ${ac_cv_lib_crypto_AES_encrypt+:} false; then :
  5796. $as_echo_n "(cached) " >&6
  5797. else
  5798. ac_check_lib_save_LIBS=$LIBS
  5799. LIBS="-lcrypto $LIBS"
  5800. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5801. /* end build/confdefs.h. */
  5802. /* Override any GCC internal prototype to avoid an error.
  5803. Use char because int might match the return type of a GCC
  5804. builtin and then its argument prototype would still apply. */
  5805. #ifdef __cplusplus
  5806. extern "C"
  5807. #endif
  5808. char AES_encrypt ();
  5809. int
  5810. main ()
  5811. {
  5812. return AES_encrypt ();
  5813. ;
  5814. return 0;
  5815. }
  5816. _ACEOF
  5817. if ac_fn_cxx_try_link "$LINENO"; then :
  5818. ac_cv_lib_crypto_AES_encrypt=yes
  5819. else
  5820. ac_cv_lib_crypto_AES_encrypt=no
  5821. fi
  5822. rm -f core conftest.err conftest.$ac_objext \
  5823. conftest$ac_exeext conftest.$ac_ext
  5824. LIBS=$ac_check_lib_save_LIBS
  5825. fi
  5826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_AES_encrypt" >&5
  5827. $as_echo "$ac_cv_lib_crypto_AES_encrypt" >&6; }
  5828. if test "x$ac_cv_lib_crypto_AES_encrypt" = xyes; then :
  5829. if test "$USE_STATIC" = "yes"; then
  5830. SSL_LIBS="$SSL_LIBS -Wl,-Bstatic -lcrypto -Wl,-Bdynamic"
  5831. else
  5832. SSL_LIBS="$SSL_LIBS -lcrypto"
  5833. fi
  5834. else
  5835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found." >&5
  5836. $as_echo "not found." >&6; }
  5837. as_fn_error 1 "Libcrypto/openssl is required." "$LINENO" 5
  5838. fi
  5839. CXX="$save_CXX"
  5840. LIBS="$save_LIBS"
  5841. cat >>build/confdefs.h <<_ACEOF
  5842. #define EGG_SSL_EXT 1
  5843. _ACEOF
  5844. # TCL checks
  5845. # Tcl version to recommend if no Tcl is found, and the site where it can be
  5846. # found for download.
  5847. tclrecommendver="8.5.X"
  5848. tclrecommendsite="ftp://tcl.activestate.com/pub/tcl/tcl8_5/"
  5849. # Tcl library filename prefixes, suffixes, and search paths.
  5850. tcllibnames="tcl8.6 tcl86 tcl8.5 tcl85 tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 \
  5851. tcl8.1 tcl81 tcl8.0 tcl80 tcl tcl7.6 tcl76 tcl7.5 tcl75 \
  5852. tcl7.4 tcl74 tcl7.3 tcl73 tcl7.2 tcl72 tcl7.1 tcl71 \
  5853. tcl7.0 tcl70"
  5854. tcllibextensions=".so .so.1 .so.1.0 .so.1.1 .so.1.2 .dll .dylib .sl .a"
  5855. tcllibpaths="$HOME/lib $HOME/tcl/lib \
  5856. /usr/local/lib /usr/lib /lib /lib64 /usr/lib64 \
  5857. /usr/local/lib/tcl8.6 /usr/lib/tcl8.6 \
  5858. /usr/local/lib/tcl8.5 /usr/lib/tcl8.5 \
  5859. /usr/local/lib/tcl8.4 /usr/lib/tcl8.4 \
  5860. /usr/local/lib/tcl8.3 /usr/lib/tcl8.3 \
  5861. /usr/local/pkgs/tcl/lib /sys/lib /usr/pkg/lib \
  5862. /usr/i486-linuxaout/lib /beos/system/lib $HOME"
  5863. # Tcl header filenames and search paths.
  5864. tclheadernames="tcl.h"
  5865. tclheaderpaths="$HOME/include $HOME/tcl/include \
  5866. /usr/local/include /usr/include \
  5867. /usr/local/include/tcl8.6 /usr/include/tcl8.6 \
  5868. /usr/local/include/tcl8.5 /usr/include/tcl8.5 \
  5869. /usr/local/include/tcl8.4 /usr/include/tcl8.4 \
  5870. /usr/local/include/tcl8.3 /usr/include/tcl8.3 \
  5871. /usr/local/pkgs/tcl/include /sys/include \
  5872. /usr/pkg/lib /beos/system/include /beos/devel/include $HOME"
  5873. # Misc Tcl checks.
  5874. # Check whether --with-tcllib was given.
  5875. if test "${with_tcllib+set}" = set; then :
  5876. withval=$with_tcllib; tcllibname="$withval"
  5877. fi
  5878. # Check whether --with-tclinc was given.
  5879. if test "${with_tclinc+set}" = set; then :
  5880. withval=$with_tclinc; tclincname="$withval"
  5881. fi
  5882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TCL Script is enabled" >&5
  5883. $as_echo_n "checking whether TCL Script is enabled... " >&6; }
  5884. # Check whether --enable-script-tcl was given.
  5885. if test "${enable_script_tcl+set}" = set; then :
  5886. enableval=$enable_script_tcl;
  5887. enable_script_tcl=$enableval
  5888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  5889. $as_echo "$enableval" >&6; }
  5890. else
  5891. # default if not given is ENABLED
  5892. if test "x$enableval" = "x"; then
  5893. enableval="yes"
  5894. fi
  5895. enable_script_tcl=$enableval
  5896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  5897. $as_echo "$enableval" >&6; }
  5898. $as_echo "#define USE_SCRIPT_TCL 1" >>build/confdefs.h
  5899. fi
  5900. WARN=0
  5901. # Make sure either both or neither $tcllibname and $tclincname are set
  5902. if test "x$tcllibname" != x; then
  5903. if test "x$tclincname" = x; then
  5904. WARN=1
  5905. tcllibname=""
  5906. TCLLIB=""
  5907. TCLINC=""
  5908. fi
  5909. else
  5910. if test "x$tclincname" != x; then
  5911. WARN=1
  5912. tclincname=""
  5913. TCLLIB=""
  5914. TCLINC=""
  5915. fi
  5916. fi
  5917. if test "$WARN" = 1; then
  5918. cat << 'EOF' >&2
  5919. configure: WARNING:
  5920. You must specify both --with-tcllib and --with-tclinc for either to work.
  5921. configure will now attempt to autodetect both the Tcl library and header.
  5922. EOF
  5923. fi
  5924. WARN=0
  5925. # Make sure either both or neither $TCLLIB and $TCLINC are set
  5926. if test "x$TCLLIB" != x; then
  5927. if test "x$TCLINC" = x; then
  5928. WARN=1
  5929. WVAR1=TCLLIB
  5930. WVAR2=TCLINC
  5931. TCLLIB=""
  5932. fi
  5933. else
  5934. if test "x$TCLINC" != x; then
  5935. WARN=1
  5936. WVAR1=TCLINC
  5937. WVAR2=TCLLIB
  5938. TCLINC=""
  5939. fi
  5940. fi
  5941. if test "$WARN" = 1; then
  5942. cat << EOF >&2
  5943. configure: WARNING:
  5944. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  5945. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5946. configure will now attempt to autodetect both the Tcl library and header.
  5947. EOF
  5948. fi
  5949. # Look for Tcl library: if $tcllibname is set, check there first
  5950. if test "x$tcllibname" != x; then
  5951. if test -f "$tcllibname" && test -r "$tcllibname"; then
  5952. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  5953. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  5954. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  5955. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  5956. else
  5957. cat << EOF >&2
  5958. configure: WARNING:
  5959. The file '$tcllibname' given to option --with-tcllib is not valid.
  5960. configure will now attempt to autodetect both the Tcl library and header.
  5961. EOF
  5962. tcllibname=""
  5963. tclincname=""
  5964. TCLLIB=""
  5965. TCLLIBFN=""
  5966. TCLINC=""
  5967. TCLINCFN=""
  5968. fi
  5969. fi
  5970. # Look for Tcl header: if $tclincname is set, check there first
  5971. if test "x$tclincname" != x; then
  5972. if test -f "$tclincname" && test -r "$tclincname"; then
  5973. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  5974. TCLINCFN=`$BASENAME $tclincname`
  5975. else
  5976. cat << EOF >&2
  5977. configure: WARNING:
  5978. The file '$tclincname' given to option --with-tclinc is not valid.
  5979. configure will now attempt to autodetect both the Tcl library and header.
  5980. EOF
  5981. tcllibname=""
  5982. tclincname=""
  5983. TCLLIB=""
  5984. TCLLIBFN=""
  5985. TCLINC=""
  5986. TCLINCFN=""
  5987. fi
  5988. fi
  5989. # Look for Tcl library: if $TCLLIB is set, check there first
  5990. if test "x$TCLLIBFN" = x && test "x$TCLLIB" != x; then
  5991. if test -d "$TCLLIB"; then
  5992. for tcllibfns in $tcllibnames; do
  5993. for tcllibext in $tcllibextensions; do
  5994. if test -r "${TCLLIB}/lib${tcllibfns}${tcllibext}"; then
  5995. TCLLIBFN="${tcllibfns}${tcllibext}"
  5996. TCLLIBEXT="$tcllibext"
  5997. TCLLIBFNS="$tcllibfns"
  5998. break 2
  5999. fi
  6000. done
  6001. done
  6002. fi
  6003. if test "x$TCLLIBFN" = x; then
  6004. cat << 'EOF' >&2
  6005. configure: WARNING:
  6006. Environment variable TCLLIB was set, but incorrectly.
  6007. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  6008. configure will now attempt to autodetect both the Tcl library and header.
  6009. EOF
  6010. TCLLIB=""
  6011. TCLLIBFN=""
  6012. TCLINC=""
  6013. TCLINCFN=""
  6014. fi
  6015. fi
  6016. # Look for Tcl header: if $TCLINC is set, check there first
  6017. if test "x$TCLINCFN" = x && test "x$TCLINC" != x; then
  6018. if test -d "$TCLINC"; then
  6019. for tclheaderfn in $tclheadernames; do
  6020. if test -r "${TCLINC}/${tclheaderfn}"; then
  6021. TCLINCFN="$tclheaderfn"
  6022. break
  6023. fi
  6024. done
  6025. fi
  6026. if test "x$TCLINCFN" = x; then
  6027. cat << 'EOF' >&2
  6028. configure: WARNING:
  6029. Environment variable TCLINC was set, but incorrectly.
  6030. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  6031. configure will now attempt to autodetect both the Tcl library and header.
  6032. EOF
  6033. TCLLIB=""
  6034. TCLLIBFN=""
  6035. TCLINC=""
  6036. TCLINCFN=""
  6037. fi
  6038. fi
  6039. if test "$enable_script_tcl" = "yes"; then
  6040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library" >&5
  6041. $as_echo_n "checking for Tcl library... " >&6; }
  6042. # Attempt autodetect for $TCLLIBFN if it's not set
  6043. if test "x$TCLLIBFN" != x; then
  6044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${TCLLIB}/lib${TCLLIBFN}" >&5
  6045. $as_echo "using ${TCLLIB}/lib${TCLLIBFN}" >&6; }
  6046. else
  6047. for tcllibfns in $tcllibnames; do
  6048. for tcllibext in $tcllibextensions; do
  6049. for tcllibpath in $tcllibpaths; do
  6050. if test -r "${tcllibpath}/lib${tcllibfns}${tcllibext}"; then
  6051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tcllibpath}/lib${tcllibfns}${tcllibext}" >&5
  6052. $as_echo "found ${tcllibpath}/lib${tcllibfns}${tcllibext}" >&6; }
  6053. TCLLIB="$tcllibpath"
  6054. TCLLIBFN="${tcllibfns}${tcllibext}"
  6055. TCLLIBEXT="$tcllibext"
  6056. TCLLIBFNS="$tcllibfns"
  6057. break 3
  6058. fi
  6059. done
  6060. done
  6061. done
  6062. fi
  6063. # Show if $TCLLIBFN wasn't found
  6064. if test "x$TCLLIBFN" = x; then
  6065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  6066. $as_echo "not found" >&6; }
  6067. fi
  6068. fi
  6069. if test "$enable_script_tcl" = "yes"; then
  6070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl header" >&5
  6071. $as_echo_n "checking for Tcl header... " >&6; }
  6072. # Attempt autodetect for $TCLINCFN if it's not set
  6073. if test "x$TCLINCFN" != x; then
  6074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${TCLINC}/${TCLINCFN}" >&5
  6075. $as_echo "using ${TCLINC}/${TCLINCFN}" >&6; }
  6076. else
  6077. for tclheaderpath in $tclheaderpaths; do
  6078. for tclheaderfn in $tclheadernames; do
  6079. if test -r "${tclheaderpath}/${tclheaderfn}"; then
  6080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tclheaderpath}/${tclheaderfn}" >&5
  6081. $as_echo "found ${tclheaderpath}/${tclheaderfn}" >&6; }
  6082. TCLINC="$tclheaderpath"
  6083. TCLINCFN="$tclheaderfn"
  6084. break 2
  6085. fi
  6086. done
  6087. done
  6088. # FreeBSD hack ...
  6089. if test "x$TCLINCFN" = x; then
  6090. for tcllibfns in $tcllibnames; do
  6091. for tclheaderpath in $tclheaderpaths; do
  6092. for tclheaderfn in $tclheadernames; do
  6093. if test -r "${tclheaderpath}/${tcllibfns}/${tclheaderfn}"; then
  6094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}" >&5
  6095. $as_echo "found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}" >&6; }
  6096. TCLINC="${tclheaderpath}/${tcllibfns}"
  6097. TCLINCFN="$tclheaderfn"
  6098. break 3
  6099. fi
  6100. done
  6101. done
  6102. done
  6103. fi
  6104. fi
  6105. TCL_INCLUDES=""
  6106. if ! test "x$TCLINC" = x; then
  6107. TCL_INCLUDES="-I$TCLINC"
  6108. fi
  6109. if test "x$TCLINCFN" = x; then
  6110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  6111. $as_echo "not found" >&6; }
  6112. fi
  6113. fi
  6114. if test "$enable_script_tcl" = "yes"; then
  6115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Tcl system has changed" >&5
  6116. $as_echo_n "checking whether the Tcl system has changed... " >&6; }
  6117. egg_tcl_changed="yes"
  6118. egg_tcl_id="${TCLLIB}:${TCLLIBFN}:${TCLINC}:${TCLINCFN}"
  6119. if test "$egg_tcl_id" != ":::"; then
  6120. egg_tcl_cached="yes"
  6121. if ${egg_cv_var_tcl_id+:} false; then :
  6122. $as_echo_n "(cached) " >&6
  6123. else
  6124. egg_cv_var_tcl_id="$egg_tcl_id"
  6125. egg_tcl_cached="no"
  6126. fi
  6127. if test "$egg_tcl_cached" = yes; then
  6128. if test "x$egg_cv_var_tcl_id" = "x$egg_tcl_id"; then
  6129. egg_tcl_changed="no"
  6130. else
  6131. egg_cv_var_tcl_id="$egg_tcl_id"
  6132. fi
  6133. fi
  6134. fi
  6135. if test "$egg_tcl_changed" = yes; then
  6136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6137. $as_echo "yes" >&6; }
  6138. else
  6139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6140. $as_echo "no" >&6; }
  6141. fi
  6142. fi
  6143. if test "$enable_script_tcl" = "yes"; then
  6144. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  6145. TCL_FOUND=0
  6146. if test "x$TCLLIBFN" != x && test "x$TCLINCFN" != x; then
  6147. TCL_FOUND=1
  6148. # Check Tcl's version
  6149. if test "$egg_tcl_changed" = yes; then
  6150. unset egg_cv_var_tcl_version
  6151. fi
  6152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl version" >&5
  6153. $as_echo_n "checking for Tcl version... " >&6; }
  6154. if ${egg_cv_var_tcl_version+:} false; then :
  6155. $as_echo_n "(cached) " >&6
  6156. else
  6157. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`
  6158. fi
  6159. if test "x$egg_cv_var_tcl_version" != x; then
  6160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_tcl_version" >&5
  6161. $as_echo "$egg_cv_var_tcl_version" >&6; }
  6162. else
  6163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  6164. $as_echo "not found" >&6; }
  6165. TCL_FOUND=0
  6166. fi
  6167. # Check Tcl's patch level (if available)
  6168. if test "$egg_tcl_changed" = yes; then
  6169. unset egg_cv_var_tcl_patch_level
  6170. fi
  6171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl patch level" >&5
  6172. $as_echo_n "checking for Tcl patch level... " >&6; }
  6173. if ${egg_cv_var_tcl_patch_level+:} false; then :
  6174. $as_echo_n "(cached) " >&6
  6175. else
  6176. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`"
  6177. fi
  6178. if test "x$egg_cv_var_tcl_patch_level" != x; then
  6179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_tcl_patch_level" >&5
  6180. $as_echo "$egg_cv_var_tcl_patch_level" >&6; }
  6181. else
  6182. egg_cv_var_tcl_patch_level="unknown"
  6183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
  6184. $as_echo "unknown" >&6; }
  6185. fi
  6186. fi
  6187. # Check if we found Tcl's version
  6188. if test "$TCL_FOUND" = 0; then
  6189. cat << 'EOF' >&2
  6190. configure: error:
  6191. Tcl cannot be found on this system.
  6192. Tcl is not required. Wraith will be compiled without TCL support. If you
  6193. already have Tcl installed on this system, please specify the path by
  6194. rerunning ./configure using the --with-tcllib='/path/to/libtcl.so' and
  6195. --with-tclinc='/path/to/tcl.h' options.
  6196. EOF
  6197. enable_script_tcl="no"
  6198. else
  6199. $as_echo "#define HAVE_LIBTCL 1" >>build/confdefs.h
  6200. fi
  6201. fi
  6202. if test "$enable_script_tcl" = "yes"; then
  6203. # Is this version of Tcl too old for us to use ?
  6204. TCL_VER_PRE70=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 7) print "yes"; else print "no"}'`
  6205. if test "$TCL_VER_PRE70" = yes; then
  6206. cat << EOF >&2
  6207. configure: error:
  6208. Your Tcl version is much too old for Wraith to use. You should
  6209. download and compile a more recent version. The most reliable
  6210. current version is $tclrecommendver and can be downloaded from
  6211. ${tclrecommendsite}.
  6212. See doc/COMPILE-GUIDE's 'Tcl Detection and Installation' section
  6213. for more information.
  6214. EOF
  6215. exit 1
  6216. fi
  6217. fi
  6218. # Set variables for Tcl library tests
  6219. TCL_TEST_LIB="$TCLLIBFNS"
  6220. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  6221. if test "x$ac_cv_lib_pthread" != x; then
  6222. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  6223. fi
  6224. if test "$enable_script_tcl" = "yes"; then
  6225. if test "$egg_tcl_changed" = yes; then
  6226. unset egg_cv_var_tcl_free
  6227. fi
  6228. # Check for Tcl_Free()
  6229. as_ac_Lib=`$as_echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_Free" | $as_tr_sh`
  6230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  6231. $as_echo_n "checking for Tcl_Free in -l$TCL_TEST_LIB... " >&6; }
  6232. if eval \${$as_ac_Lib+:} false; then :
  6233. $as_echo_n "(cached) " >&6
  6234. else
  6235. ac_check_lib_save_LIBS=$LIBS
  6236. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  6237. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6238. /* end build/confdefs.h. */
  6239. /* Override any GCC internal prototype to avoid an error.
  6240. Use char because int might match the return type of a GCC
  6241. builtin and then its argument prototype would still apply. */
  6242. #ifdef __cplusplus
  6243. extern "C"
  6244. #endif
  6245. char Tcl_Free ();
  6246. int
  6247. main ()
  6248. {
  6249. return Tcl_Free ();
  6250. ;
  6251. return 0;
  6252. }
  6253. _ACEOF
  6254. if ac_fn_cxx_try_link "$LINENO"; then :
  6255. eval "$as_ac_Lib=yes"
  6256. else
  6257. eval "$as_ac_Lib=no"
  6258. fi
  6259. rm -f core conftest.err conftest.$ac_objext \
  6260. conftest$ac_exeext conftest.$ac_ext
  6261. LIBS=$ac_check_lib_save_LIBS
  6262. fi
  6263. eval ac_res=\$$as_ac_Lib
  6264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6265. $as_echo "$ac_res" >&6; }
  6266. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  6267. egg_cv_var_tcl_free="yes"
  6268. else
  6269. egg_cv_var_tcl_free="no"
  6270. fi
  6271. if test "$egg_cv_var_tcl_free" = yes; then
  6272. $as_echo "#define HAVE_TCL_FREE 1" >>build/confdefs.h
  6273. fi
  6274. fi
  6275. #EGG_TCL_CHECK_GETCURRENTTHREAD
  6276. #EGG_TCL_CHECK_GETTHREADDATA
  6277. if test "$enable_script_tcl" = "yes"; then
  6278. if test "$egg_tcl_changed" = yes; then
  6279. unset egg_cv_var_tcl_setnotifier
  6280. fi
  6281. # Check for Tcl_SetNotifier()
  6282. as_ac_Lib=`$as_echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_SetNotifier" | $as_tr_sh`
  6283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_SetNotifier in -l$TCL_TEST_LIB" >&5
  6284. $as_echo_n "checking for Tcl_SetNotifier in -l$TCL_TEST_LIB... " >&6; }
  6285. if eval \${$as_ac_Lib+:} false; then :
  6286. $as_echo_n "(cached) " >&6
  6287. else
  6288. ac_check_lib_save_LIBS=$LIBS
  6289. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  6290. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6291. /* end build/confdefs.h. */
  6292. /* Override any GCC internal prototype to avoid an error.
  6293. Use char because int might match the return type of a GCC
  6294. builtin and then its argument prototype would still apply. */
  6295. #ifdef __cplusplus
  6296. extern "C"
  6297. #endif
  6298. char Tcl_SetNotifier ();
  6299. int
  6300. main ()
  6301. {
  6302. return Tcl_SetNotifier ();
  6303. ;
  6304. return 0;
  6305. }
  6306. _ACEOF
  6307. if ac_fn_cxx_try_link "$LINENO"; then :
  6308. eval "$as_ac_Lib=yes"
  6309. else
  6310. eval "$as_ac_Lib=no"
  6311. fi
  6312. rm -f core conftest.err conftest.$ac_objext \
  6313. conftest$ac_exeext conftest.$ac_ext
  6314. LIBS=$ac_check_lib_save_LIBS
  6315. fi
  6316. eval ac_res=\$$as_ac_Lib
  6317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6318. $as_echo "$ac_res" >&6; }
  6319. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  6320. egg_cv_var_tcl_setnotifier="yes"
  6321. else
  6322. egg_cv_var_tcl_setnotifier="no"
  6323. fi
  6324. if test "$egg_cv_var_tcl_setnotifier" = yes; then
  6325. $as_echo "#define HAVE_TCL_SETNOTIFIER 1" >>build/confdefs.h
  6326. fi
  6327. fi
  6328. if test "$enable_script_tcl" = "yes"; then
  6329. if test "$EGG_CYGWIN" = yes; then
  6330. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  6331. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  6332. else
  6333. if test "$TCLLIBEXT" != ".a"; then
  6334. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  6335. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  6336. else
  6337. # Set default make as static for unshared Tcl library
  6338. if test "$DEFAULT_MAKE" != static; then
  6339. cat << 'EOF' >&2
  6340. configure: WARNING:
  6341. Your Tcl library is not a shared lib.
  6342. configure will now set default make type to static.
  6343. EOF
  6344. DEFAULT_MAKE="static"
  6345. fi
  6346. # Are we using a pre 7.4 Tcl version ?
  6347. 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"}'`
  6348. if test "$TCL_VER_PRE74" = no; then
  6349. # Was the --with-tcllib option given ?
  6350. if test "x$tcllibname" != x; then
  6351. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  6352. TCL_LIBS="${TCLLIB}/lib${TCLLIBFN} $EGG_MATH_LIB"
  6353. else
  6354. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  6355. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  6356. fi
  6357. else
  6358. cat << EOF >&2
  6359. configure: WARNING:
  6360. Your Tcl version ($egg_cv_var_tcl_version) is older than 7.4.
  6361. There are known problems, but we will attempt to work around them.
  6362. EOF
  6363. TCL_REQS="libtcle.a"
  6364. TCL_LIBS="-L`pwd` -ltcle $EGG_MATH_LIB"
  6365. fi
  6366. fi
  6367. fi
  6368. fi
  6369. cat >confcache <<\_ACEOF
  6370. # This file is a shell script that caches the results of configure
  6371. # tests run on this system so they can be shared between configure
  6372. # scripts and configure runs, see configure's option --config-cache.
  6373. # It is not useful on other systems. If it contains results you don't
  6374. # want to keep, you may remove or edit it.
  6375. #
  6376. # build/config.status only pays attention to the cache file if you give it
  6377. # the --recheck option to rerun configure.
  6378. #
  6379. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6380. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6381. # following values.
  6382. _ACEOF
  6383. # The following way of writing the cache mishandles newlines in values,
  6384. # but we know of no workaround that is simple, portable, and efficient.
  6385. # So, we kill variables containing newlines.
  6386. # Ultrix sh set writes to stderr and can't be redirected directly,
  6387. # and sets the high bit in the cache file unless we assign to the vars.
  6388. (
  6389. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6390. eval ac_val=\$$ac_var
  6391. case $ac_val in #(
  6392. *${as_nl}*)
  6393. case $ac_var in #(
  6394. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6395. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6396. esac
  6397. case $ac_var in #(
  6398. _ | IFS | as_nl) ;; #(
  6399. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6400. *) { eval $ac_var=; unset $ac_var;} ;;
  6401. esac ;;
  6402. esac
  6403. done
  6404. (set) 2>&1 |
  6405. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6406. *${as_nl}ac_space=\ *)
  6407. # `set' does not quote correctly, so add quotes: double-quote
  6408. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6409. sed -n \
  6410. "s/'/'\\\\''/g;
  6411. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6412. ;; #(
  6413. *)
  6414. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6415. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6416. ;;
  6417. esac |
  6418. sort
  6419. ) |
  6420. sed '
  6421. /^ac_cv_env_/b end
  6422. t clear
  6423. :clear
  6424. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6425. t end
  6426. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6427. :end' >>confcache
  6428. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6429. if test -w "$cache_file"; then
  6430. if test "x$cache_file" != "x/dev/null"; then
  6431. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6432. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6433. if test ! -f "$cache_file" || test -h "$cache_file"; then
  6434. cat confcache >"$cache_file"
  6435. else
  6436. case $cache_file in #(
  6437. */* | ?:*)
  6438. mv -f confcache "$cache_file"$$ &&
  6439. mv -f "$cache_file"$$ "$cache_file" ;; #(
  6440. *)
  6441. mv -f confcache "$cache_file" ;;
  6442. esac
  6443. fi
  6444. fi
  6445. else
  6446. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6447. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6448. fi
  6449. fi
  6450. rm -f confcache
  6451. # Checks for typedefs, structures, and compiler characteristics
  6452. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  6453. if test "x$ac_cv_type_pid_t" = xyes; then :
  6454. else
  6455. cat >>build/confdefs.h <<_ACEOF
  6456. #define pid_t int
  6457. _ACEOF
  6458. fi
  6459. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  6460. if test "x$ac_cv_type_size_t" = xyes; then :
  6461. else
  6462. cat >>build/confdefs.h <<_ACEOF
  6463. #define size_t unsigned int
  6464. _ACEOF
  6465. fi
  6466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  6467. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  6468. if ${ac_cv_type_uid_t+:} false; then :
  6469. $as_echo_n "(cached) " >&6
  6470. else
  6471. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6472. /* end build/confdefs.h. */
  6473. #include <sys/types.h>
  6474. _ACEOF
  6475. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6476. $EGREP "uid_t" >/dev/null 2>&1; then :
  6477. ac_cv_type_uid_t=yes
  6478. else
  6479. ac_cv_type_uid_t=no
  6480. fi
  6481. rm -f conftest*
  6482. fi
  6483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  6484. $as_echo "$ac_cv_type_uid_t" >&6; }
  6485. if test $ac_cv_type_uid_t = no; then
  6486. $as_echo "#define uid_t int" >>build/confdefs.h
  6487. $as_echo "#define gid_t int" >>build/confdefs.h
  6488. fi
  6489. #AC_C_CONST
  6490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  6491. $as_echo_n "checking for working volatile... " >&6; }
  6492. if ${ac_cv_c_volatile+:} false; then :
  6493. $as_echo_n "(cached) " >&6
  6494. else
  6495. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6496. /* end build/confdefs.h. */
  6497. int
  6498. main ()
  6499. {
  6500. volatile int x;
  6501. int * volatile y = (int *) 0;
  6502. return !x && !y;
  6503. ;
  6504. return 0;
  6505. }
  6506. _ACEOF
  6507. if ac_fn_cxx_try_compile "$LINENO"; then :
  6508. ac_cv_c_volatile=yes
  6509. else
  6510. ac_cv_c_volatile=no
  6511. fi
  6512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6513. fi
  6514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  6515. $as_echo "$ac_cv_c_volatile" >&6; }
  6516. if test $ac_cv_c_volatile = no; then
  6517. $as_echo "#define volatile /**/" >>build/confdefs.h
  6518. fi
  6519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  6520. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  6521. if ${ac_cv_c_bigendian+:} false; then :
  6522. $as_echo_n "(cached) " >&6
  6523. else
  6524. ac_cv_c_bigendian=unknown
  6525. # See if we're dealing with a universal compiler.
  6526. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6527. /* end build/confdefs.h. */
  6528. #ifndef __APPLE_CC__
  6529. not a universal capable compiler
  6530. #endif
  6531. typedef int dummy;
  6532. _ACEOF
  6533. if ac_fn_cxx_try_compile "$LINENO"; then :
  6534. # Check for potential -arch flags. It is not universal unless
  6535. # there are at least two -arch flags with different values.
  6536. ac_arch=
  6537. ac_prev=
  6538. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  6539. if test -n "$ac_prev"; then
  6540. case $ac_word in
  6541. i?86 | x86_64 | ppc | ppc64)
  6542. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  6543. ac_arch=$ac_word
  6544. else
  6545. ac_cv_c_bigendian=universal
  6546. break
  6547. fi
  6548. ;;
  6549. esac
  6550. ac_prev=
  6551. elif test "x$ac_word" = "x-arch"; then
  6552. ac_prev=arch
  6553. fi
  6554. done
  6555. fi
  6556. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6557. if test $ac_cv_c_bigendian = unknown; then
  6558. # See if sys/param.h defines the BYTE_ORDER macro.
  6559. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6560. /* end build/confdefs.h. */
  6561. #include <sys/types.h>
  6562. #include <sys/param.h>
  6563. int
  6564. main ()
  6565. {
  6566. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  6567. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  6568. && LITTLE_ENDIAN)
  6569. bogus endian macros
  6570. #endif
  6571. ;
  6572. return 0;
  6573. }
  6574. _ACEOF
  6575. if ac_fn_cxx_try_compile "$LINENO"; then :
  6576. # It does; now see whether it defined to BIG_ENDIAN or not.
  6577. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6578. /* end build/confdefs.h. */
  6579. #include <sys/types.h>
  6580. #include <sys/param.h>
  6581. int
  6582. main ()
  6583. {
  6584. #if BYTE_ORDER != BIG_ENDIAN
  6585. not big endian
  6586. #endif
  6587. ;
  6588. return 0;
  6589. }
  6590. _ACEOF
  6591. if ac_fn_cxx_try_compile "$LINENO"; then :
  6592. ac_cv_c_bigendian=yes
  6593. else
  6594. ac_cv_c_bigendian=no
  6595. fi
  6596. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6597. fi
  6598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6599. fi
  6600. if test $ac_cv_c_bigendian = unknown; then
  6601. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  6602. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6603. /* end build/confdefs.h. */
  6604. #include <limits.h>
  6605. int
  6606. main ()
  6607. {
  6608. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  6609. bogus endian macros
  6610. #endif
  6611. ;
  6612. return 0;
  6613. }
  6614. _ACEOF
  6615. if ac_fn_cxx_try_compile "$LINENO"; then :
  6616. # It does; now see whether it defined to _BIG_ENDIAN or not.
  6617. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6618. /* end build/confdefs.h. */
  6619. #include <limits.h>
  6620. int
  6621. main ()
  6622. {
  6623. #ifndef _BIG_ENDIAN
  6624. not big endian
  6625. #endif
  6626. ;
  6627. return 0;
  6628. }
  6629. _ACEOF
  6630. if ac_fn_cxx_try_compile "$LINENO"; then :
  6631. ac_cv_c_bigendian=yes
  6632. else
  6633. ac_cv_c_bigendian=no
  6634. fi
  6635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6636. fi
  6637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6638. fi
  6639. if test $ac_cv_c_bigendian = unknown; then
  6640. # Compile a test program.
  6641. if test "$cross_compiling" = yes; then :
  6642. # Try to guess by grepping values from an object file.
  6643. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6644. /* end build/confdefs.h. */
  6645. short int ascii_mm[] =
  6646. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6647. short int ascii_ii[] =
  6648. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6649. int use_ascii (int i) {
  6650. return ascii_mm[i] + ascii_ii[i];
  6651. }
  6652. short int ebcdic_ii[] =
  6653. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6654. short int ebcdic_mm[] =
  6655. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6656. int use_ebcdic (int i) {
  6657. return ebcdic_mm[i] + ebcdic_ii[i];
  6658. }
  6659. extern int foo;
  6660. int
  6661. main ()
  6662. {
  6663. return use_ascii (foo) == use_ebcdic (foo);
  6664. ;
  6665. return 0;
  6666. }
  6667. _ACEOF
  6668. if ac_fn_cxx_try_compile "$LINENO"; then :
  6669. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  6670. ac_cv_c_bigendian=yes
  6671. fi
  6672. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6673. if test "$ac_cv_c_bigendian" = unknown; then
  6674. ac_cv_c_bigendian=no
  6675. else
  6676. # finding both strings is unlikely to happen, but who knows?
  6677. ac_cv_c_bigendian=unknown
  6678. fi
  6679. fi
  6680. fi
  6681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6682. else
  6683. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6684. /* end build/confdefs.h. */
  6685. $ac_includes_default
  6686. int
  6687. main ()
  6688. {
  6689. /* Are we little or big endian? From Harbison&Steele. */
  6690. union
  6691. {
  6692. long int l;
  6693. char c[sizeof (long int)];
  6694. } u;
  6695. u.l = 1;
  6696. return u.c[sizeof (long int) - 1] == 1;
  6697. ;
  6698. return 0;
  6699. }
  6700. _ACEOF
  6701. if ac_fn_cxx_try_run "$LINENO"; then :
  6702. ac_cv_c_bigendian=no
  6703. else
  6704. ac_cv_c_bigendian=yes
  6705. fi
  6706. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6707. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6708. fi
  6709. fi
  6710. fi
  6711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  6712. $as_echo "$ac_cv_c_bigendian" >&6; }
  6713. case $ac_cv_c_bigendian in #(
  6714. yes)
  6715. $as_echo "#define B_ENDIAN 1" >>build/confdefs.h
  6716. ;; #(
  6717. no)
  6718. $as_echo "#define L_ENDIAN 1" >>build/confdefs.h
  6719. ;; #(
  6720. universal)
  6721. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>build/confdefs.h
  6722. ;; #(
  6723. *)
  6724. as_fn_error $? "unknown endianness
  6725. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  6726. esac
  6727. #AC_C_INLINE
  6728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
  6729. $as_echo_n "checking whether char is unsigned... " >&6; }
  6730. if ${ac_cv_c_char_unsigned+:} false; then :
  6731. $as_echo_n "(cached) " >&6
  6732. else
  6733. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6734. /* end build/confdefs.h. */
  6735. $ac_includes_default
  6736. int
  6737. main ()
  6738. {
  6739. static int test_array [1 - 2 * !(((char) -1) < 0)];
  6740. test_array [0] = 0;
  6741. return test_array [0];
  6742. ;
  6743. return 0;
  6744. }
  6745. _ACEOF
  6746. if ac_fn_cxx_try_compile "$LINENO"; then :
  6747. ac_cv_c_char_unsigned=no
  6748. else
  6749. ac_cv_c_char_unsigned=yes
  6750. fi
  6751. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6752. fi
  6753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
  6754. $as_echo "$ac_cv_c_char_unsigned" >&6; }
  6755. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  6756. $as_echo "#define __CHAR_UNSIGNED__ 1" >>build/confdefs.h
  6757. fi
  6758. #AC_C_STRINGIZE
  6759. #AC_C_PROTOTYPES
  6760. #checkpoint
  6761. cat >confcache <<\_ACEOF
  6762. # This file is a shell script that caches the results of configure
  6763. # tests run on this system so they can be shared between configure
  6764. # scripts and configure runs, see configure's option --config-cache.
  6765. # It is not useful on other systems. If it contains results you don't
  6766. # want to keep, you may remove or edit it.
  6767. #
  6768. # build/config.status only pays attention to the cache file if you give it
  6769. # the --recheck option to rerun configure.
  6770. #
  6771. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6772. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6773. # following values.
  6774. _ACEOF
  6775. # The following way of writing the cache mishandles newlines in values,
  6776. # but we know of no workaround that is simple, portable, and efficient.
  6777. # So, we kill variables containing newlines.
  6778. # Ultrix sh set writes to stderr and can't be redirected directly,
  6779. # and sets the high bit in the cache file unless we assign to the vars.
  6780. (
  6781. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6782. eval ac_val=\$$ac_var
  6783. case $ac_val in #(
  6784. *${as_nl}*)
  6785. case $ac_var in #(
  6786. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6787. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6788. esac
  6789. case $ac_var in #(
  6790. _ | IFS | as_nl) ;; #(
  6791. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6792. *) { eval $ac_var=; unset $ac_var;} ;;
  6793. esac ;;
  6794. esac
  6795. done
  6796. (set) 2>&1 |
  6797. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6798. *${as_nl}ac_space=\ *)
  6799. # `set' does not quote correctly, so add quotes: double-quote
  6800. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6801. sed -n \
  6802. "s/'/'\\\\''/g;
  6803. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6804. ;; #(
  6805. *)
  6806. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6807. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6808. ;;
  6809. esac |
  6810. sort
  6811. ) |
  6812. sed '
  6813. /^ac_cv_env_/b end
  6814. t clear
  6815. :clear
  6816. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6817. t end
  6818. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6819. :end' >>confcache
  6820. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6821. if test -w "$cache_file"; then
  6822. if test "x$cache_file" != "x/dev/null"; then
  6823. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6824. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6825. if test ! -f "$cache_file" || test -h "$cache_file"; then
  6826. cat confcache >"$cache_file"
  6827. else
  6828. case $cache_file in #(
  6829. */* | ?:*)
  6830. mv -f confcache "$cache_file"$$ &&
  6831. mv -f "$cache_file"$$ "$cache_file" ;; #(
  6832. *)
  6833. mv -f confcache "$cache_file" ;;
  6834. esac
  6835. fi
  6836. fi
  6837. else
  6838. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6839. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6840. fi
  6841. fi
  6842. rm -f confcache
  6843. # Checks for typedefs, structures, and compiler characteristics
  6844. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  6845. if test "x$ac_cv_type_pid_t" = xyes; then :
  6846. else
  6847. cat >>build/confdefs.h <<_ACEOF
  6848. #define pid_t int
  6849. _ACEOF
  6850. fi
  6851. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  6852. if test "x$ac_cv_type_size_t" = xyes; then :
  6853. else
  6854. cat >>build/confdefs.h <<_ACEOF
  6855. #define size_t unsigned int
  6856. _ACEOF
  6857. fi
  6858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  6859. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  6860. if ${ac_cv_type_uid_t+:} false; then :
  6861. $as_echo_n "(cached) " >&6
  6862. else
  6863. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6864. /* end build/confdefs.h. */
  6865. #include <sys/types.h>
  6866. _ACEOF
  6867. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6868. $EGREP "uid_t" >/dev/null 2>&1; then :
  6869. ac_cv_type_uid_t=yes
  6870. else
  6871. ac_cv_type_uid_t=no
  6872. fi
  6873. rm -f conftest*
  6874. fi
  6875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  6876. $as_echo "$ac_cv_type_uid_t" >&6; }
  6877. if test $ac_cv_type_uid_t = no; then
  6878. $as_echo "#define uid_t int" >>build/confdefs.h
  6879. $as_echo "#define gid_t int" >>build/confdefs.h
  6880. fi
  6881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  6882. $as_echo_n "checking for unsigned long long int... " >&6; }
  6883. if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  6884. $as_echo_n "(cached) " >&6
  6885. else
  6886. ac_cv_type_unsigned_long_long_int=yes
  6887. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  6888. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6889. /* end build/confdefs.h. */
  6890. /* For now, do not test the preprocessor; as of 2007 there are too many
  6891. implementations with broken preprocessors. Perhaps this can
  6892. be revisited in 2012. In the meantime, code should not expect
  6893. #if to work with literals wider than 32 bits. */
  6894. /* Test literals. */
  6895. long long int ll = 9223372036854775807ll;
  6896. long long int nll = -9223372036854775807LL;
  6897. unsigned long long int ull = 18446744073709551615ULL;
  6898. /* Test constant expressions. */
  6899. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  6900. ? 1 : -1)];
  6901. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  6902. ? 1 : -1)];
  6903. int i = 63;
  6904. int
  6905. main ()
  6906. {
  6907. /* Test availability of runtime routines for shift and division. */
  6908. long long int llmax = 9223372036854775807ll;
  6909. unsigned long long int ullmax = 18446744073709551615ull;
  6910. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  6911. | (llmax / ll) | (llmax % ll)
  6912. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  6913. | (ullmax / ull) | (ullmax % ull));
  6914. ;
  6915. return 0;
  6916. }
  6917. _ACEOF
  6918. if ac_fn_cxx_try_link "$LINENO"; then :
  6919. else
  6920. ac_cv_type_unsigned_long_long_int=no
  6921. fi
  6922. rm -f core conftest.err conftest.$ac_objext \
  6923. conftest$ac_exeext conftest.$ac_ext
  6924. fi
  6925. fi
  6926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  6927. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  6928. if test $ac_cv_type_unsigned_long_long_int = yes; then
  6929. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>build/confdefs.h
  6930. fi
  6931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  6932. $as_echo_n "checking for long long int... " >&6; }
  6933. if ${ac_cv_type_long_long_int+:} false; then :
  6934. $as_echo_n "(cached) " >&6
  6935. else
  6936. ac_cv_type_long_long_int=yes
  6937. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  6938. ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
  6939. if test $ac_cv_type_long_long_int = yes; then
  6940. if test "$cross_compiling" = yes; then :
  6941. :
  6942. else
  6943. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6944. /* end build/confdefs.h. */
  6945. #include <limits.h>
  6946. #ifndef LLONG_MAX
  6947. # define HALF \
  6948. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  6949. # define LLONG_MAX (HALF - 1 + HALF)
  6950. #endif
  6951. int
  6952. main ()
  6953. {
  6954. long long int n = 1;
  6955. int i;
  6956. for (i = 0; ; i++)
  6957. {
  6958. long long int m = n << i;
  6959. if (m >> i != n)
  6960. return 1;
  6961. if (LLONG_MAX / 2 < m)
  6962. break;
  6963. }
  6964. return 0;
  6965. ;
  6966. return 0;
  6967. }
  6968. _ACEOF
  6969. if ac_fn_cxx_try_run "$LINENO"; then :
  6970. else
  6971. ac_cv_type_long_long_int=no
  6972. fi
  6973. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6974. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6975. fi
  6976. fi
  6977. fi
  6978. fi
  6979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  6980. $as_echo "$ac_cv_type_long_long_int" >&6; }
  6981. if test $ac_cv_type_long_long_int = yes; then
  6982. $as_echo "#define HAVE_LONG_LONG_INT 1" >>build/confdefs.h
  6983. fi
  6984. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  6985. case $ac_cv_c_int8_t in #(
  6986. no|yes) ;; #(
  6987. *)
  6988. cat >>build/confdefs.h <<_ACEOF
  6989. #define int8_t $ac_cv_c_int8_t
  6990. _ACEOF
  6991. ;;
  6992. esac
  6993. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  6994. case $ac_cv_c_uint8_t in #(
  6995. no|yes) ;; #(
  6996. *)
  6997. $as_echo "#define _UINT8_T 1" >>build/confdefs.h
  6998. cat >>build/confdefs.h <<_ACEOF
  6999. #define uint8_t $ac_cv_c_uint8_t
  7000. _ACEOF
  7001. ;;
  7002. esac
  7003. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  7004. case $ac_cv_c_int16_t in #(
  7005. no|yes) ;; #(
  7006. *)
  7007. cat >>build/confdefs.h <<_ACEOF
  7008. #define int16_t $ac_cv_c_int16_t
  7009. _ACEOF
  7010. ;;
  7011. esac
  7012. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  7013. case $ac_cv_c_uint16_t in #(
  7014. no|yes) ;; #(
  7015. *)
  7016. cat >>build/confdefs.h <<_ACEOF
  7017. #define uint16_t $ac_cv_c_uint16_t
  7018. _ACEOF
  7019. ;;
  7020. esac
  7021. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  7022. case $ac_cv_c_int32_t in #(
  7023. no|yes) ;; #(
  7024. *)
  7025. cat >>build/confdefs.h <<_ACEOF
  7026. #define int32_t $ac_cv_c_int32_t
  7027. _ACEOF
  7028. ;;
  7029. esac
  7030. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  7031. case $ac_cv_c_uint32_t in #(
  7032. no|yes) ;; #(
  7033. *)
  7034. $as_echo "#define _UINT32_T 1" >>build/confdefs.h
  7035. cat >>build/confdefs.h <<_ACEOF
  7036. #define uint32_t $ac_cv_c_uint32_t
  7037. _ACEOF
  7038. ;;
  7039. esac
  7040. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  7041. case $ac_cv_c_int64_t in #(
  7042. no|yes) ;; #(
  7043. *)
  7044. cat >>build/confdefs.h <<_ACEOF
  7045. #define int64_t $ac_cv_c_int64_t
  7046. _ACEOF
  7047. ;;
  7048. esac
  7049. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  7050. case $ac_cv_c_uint64_t in #(
  7051. no|yes) ;; #(
  7052. *)
  7053. $as_echo "#define _UINT64_T 1" >>build/confdefs.h
  7054. cat >>build/confdefs.h <<_ACEOF
  7055. #define uint64_t $ac_cv_c_uint64_t
  7056. _ACEOF
  7057. ;;
  7058. esac
  7059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  7060. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  7061. if ${ac_cv_struct_tm+:} false; then :
  7062. $as_echo_n "(cached) " >&6
  7063. else
  7064. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7065. /* end build/confdefs.h. */
  7066. #include <sys/types.h>
  7067. #include <time.h>
  7068. int
  7069. main ()
  7070. {
  7071. struct tm tm;
  7072. int *p = &tm.tm_sec;
  7073. return !p;
  7074. ;
  7075. return 0;
  7076. }
  7077. _ACEOF
  7078. if ac_fn_cxx_try_compile "$LINENO"; then :
  7079. ac_cv_struct_tm=time.h
  7080. else
  7081. ac_cv_struct_tm=sys/time.h
  7082. fi
  7083. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7084. fi
  7085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  7086. $as_echo "$ac_cv_struct_tm" >&6; }
  7087. if test $ac_cv_struct_tm = sys/time.h; then
  7088. $as_echo "#define TM_IN_SYS_TIME 1" >>build/confdefs.h
  7089. fi
  7090. ac_fn_cxx_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  7091. #include <$ac_cv_struct_tm>
  7092. "
  7093. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
  7094. cat >>build/confdefs.h <<_ACEOF
  7095. #define HAVE_STRUCT_TM_TM_ZONE 1
  7096. _ACEOF
  7097. fi
  7098. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  7099. $as_echo "#define HAVE_TM_ZONE 1" >>build/confdefs.h
  7100. else
  7101. ac_fn_cxx_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  7102. "
  7103. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  7104. ac_have_decl=1
  7105. else
  7106. ac_have_decl=0
  7107. fi
  7108. cat >>build/confdefs.h <<_ACEOF
  7109. #define HAVE_DECL_TZNAME $ac_have_decl
  7110. _ACEOF
  7111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  7112. $as_echo_n "checking for tzname... " >&6; }
  7113. if ${ac_cv_var_tzname+:} false; then :
  7114. $as_echo_n "(cached) " >&6
  7115. else
  7116. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7117. /* end build/confdefs.h. */
  7118. #include <time.h>
  7119. #if !HAVE_DECL_TZNAME
  7120. extern char *tzname[];
  7121. #endif
  7122. int
  7123. main ()
  7124. {
  7125. return tzname[0][0];
  7126. ;
  7127. return 0;
  7128. }
  7129. _ACEOF
  7130. if ac_fn_cxx_try_link "$LINENO"; then :
  7131. ac_cv_var_tzname=yes
  7132. else
  7133. ac_cv_var_tzname=no
  7134. fi
  7135. rm -f core conftest.err conftest.$ac_objext \
  7136. conftest$ac_exeext conftest.$ac_ext
  7137. fi
  7138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  7139. $as_echo "$ac_cv_var_tzname" >&6; }
  7140. if test $ac_cv_var_tzname = yes; then
  7141. $as_echo "#define HAVE_TZNAME 1" >>build/confdefs.h
  7142. fi
  7143. fi
  7144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  7145. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  7146. if ${ac_cv_struct_tm+:} false; then :
  7147. $as_echo_n "(cached) " >&6
  7148. else
  7149. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7150. /* end build/confdefs.h. */
  7151. #include <sys/types.h>
  7152. #include <time.h>
  7153. int
  7154. main ()
  7155. {
  7156. struct tm tm;
  7157. int *p = &tm.tm_sec;
  7158. return !p;
  7159. ;
  7160. return 0;
  7161. }
  7162. _ACEOF
  7163. if ac_fn_cxx_try_compile "$LINENO"; then :
  7164. ac_cv_struct_tm=time.h
  7165. else
  7166. ac_cv_struct_tm=sys/time.h
  7167. fi
  7168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7169. fi
  7170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  7171. $as_echo "$ac_cv_struct_tm" >&6; }
  7172. if test $ac_cv_struct_tm = sys/time.h; then
  7173. $as_echo "#define TM_IN_SYS_TIME 1" >>build/confdefs.h
  7174. fi
  7175. # Checks for library functions
  7176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  7177. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  7178. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  7179. $as_echo_n "(cached) " >&6
  7180. else
  7181. rm -f conftest.sym conftest.file
  7182. echo >conftest.file
  7183. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  7184. if test "$cross_compiling" = yes; then :
  7185. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7186. else
  7187. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7188. /* end build/confdefs.h. */
  7189. $ac_includes_default
  7190. int
  7191. main ()
  7192. {
  7193. struct stat sbuf;
  7194. /* Linux will dereference the symlink and fail, as required by POSIX.
  7195. That is better in the sense that it means we will not
  7196. have to compile and use the lstat wrapper. */
  7197. return lstat ("conftest.sym/", &sbuf) == 0;
  7198. ;
  7199. return 0;
  7200. }
  7201. _ACEOF
  7202. if ac_fn_cxx_try_run "$LINENO"; then :
  7203. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  7204. else
  7205. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7206. fi
  7207. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7208. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7209. fi
  7210. else
  7211. # If the `ln -s' command failed, then we probably don't even
  7212. # have an lstat function.
  7213. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7214. fi
  7215. rm -f conftest.sym conftest.file
  7216. fi
  7217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  7218. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  7219. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  7220. cat >>build/confdefs.h <<_ACEOF
  7221. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  7222. _ACEOF
  7223. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  7224. case " $LIBOBJS " in
  7225. *" lstat.$ac_objext "* ) ;;
  7226. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  7227. ;;
  7228. esac
  7229. fi
  7230. for ac_header in $ac_header_list
  7231. do :
  7232. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7233. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7234. "
  7235. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7236. cat >>build/confdefs.h <<_ACEOF
  7237. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7238. _ACEOF
  7239. fi
  7240. done
  7241. for ac_func in getpagesize
  7242. do :
  7243. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  7244. if test "x$ac_cv_func_getpagesize" = xyes; then :
  7245. cat >>build/confdefs.h <<_ACEOF
  7246. #define HAVE_GETPAGESIZE 1
  7247. _ACEOF
  7248. fi
  7249. done
  7250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  7251. $as_echo_n "checking for working mmap... " >&6; }
  7252. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  7253. $as_echo_n "(cached) " >&6
  7254. else
  7255. if test "$cross_compiling" = yes; then :
  7256. ac_cv_func_mmap_fixed_mapped=no
  7257. else
  7258. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7259. /* end build/confdefs.h. */
  7260. $ac_includes_default
  7261. /* malloc might have been renamed as rpl_malloc. */
  7262. #undef malloc
  7263. /* Thanks to Mike Haertel and Jim Avera for this test.
  7264. Here is a matrix of mmap possibilities:
  7265. mmap private not fixed
  7266. mmap private fixed at somewhere currently unmapped
  7267. mmap private fixed at somewhere already mapped
  7268. mmap shared not fixed
  7269. mmap shared fixed at somewhere currently unmapped
  7270. mmap shared fixed at somewhere already mapped
  7271. For private mappings, we should verify that changes cannot be read()
  7272. back from the file, nor mmap's back from the file at a different
  7273. address. (There have been systems where private was not correctly
  7274. implemented like the infamous i386 svr4.0, and systems where the
  7275. VM page cache was not coherent with the file system buffer cache
  7276. like early versions of FreeBSD and possibly contemporary NetBSD.)
  7277. For shared mappings, we should conversely verify that changes get
  7278. propagated back to all the places they're supposed to be.
  7279. Grep wants private fixed already mapped.
  7280. The main things grep needs to know about mmap are:
  7281. * does it exist and is it safe to write into the mmap'd area
  7282. * how to use it (BSD variants) */
  7283. #include <fcntl.h>
  7284. #include <sys/mman.h>
  7285. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  7286. char *malloc ();
  7287. #endif
  7288. /* This mess was copied from the GNU getpagesize.h. */
  7289. #ifndef HAVE_GETPAGESIZE
  7290. # ifdef _SC_PAGESIZE
  7291. # define getpagesize() sysconf(_SC_PAGESIZE)
  7292. # else /* no _SC_PAGESIZE */
  7293. # ifdef HAVE_SYS_PARAM_H
  7294. # include <sys/param.h>
  7295. # ifdef EXEC_PAGESIZE
  7296. # define getpagesize() EXEC_PAGESIZE
  7297. # else /* no EXEC_PAGESIZE */
  7298. # ifdef NBPG
  7299. # define getpagesize() NBPG * CLSIZE
  7300. # ifndef CLSIZE
  7301. # define CLSIZE 1
  7302. # endif /* no CLSIZE */
  7303. # else /* no NBPG */
  7304. # ifdef NBPC
  7305. # define getpagesize() NBPC
  7306. # else /* no NBPC */
  7307. # ifdef PAGESIZE
  7308. # define getpagesize() PAGESIZE
  7309. # endif /* PAGESIZE */
  7310. # endif /* no NBPC */
  7311. # endif /* no NBPG */
  7312. # endif /* no EXEC_PAGESIZE */
  7313. # else /* no HAVE_SYS_PARAM_H */
  7314. # define getpagesize() 8192 /* punt totally */
  7315. # endif /* no HAVE_SYS_PARAM_H */
  7316. # endif /* no _SC_PAGESIZE */
  7317. #endif /* no HAVE_GETPAGESIZE */
  7318. int
  7319. main ()
  7320. {
  7321. char *data, *data2, *data3;
  7322. const char *cdata2;
  7323. int i, pagesize;
  7324. int fd, fd2;
  7325. pagesize = getpagesize ();
  7326. /* First, make a file with some known garbage in it. */
  7327. data = (char *) malloc (pagesize);
  7328. if (!data)
  7329. return 1;
  7330. for (i = 0; i < pagesize; ++i)
  7331. *(data + i) = rand ();
  7332. umask (0);
  7333. fd = creat ("conftest.mmap", 0600);
  7334. if (fd < 0)
  7335. return 2;
  7336. if (write (fd, data, pagesize) != pagesize)
  7337. return 3;
  7338. close (fd);
  7339. /* Next, check that the tail of a page is zero-filled. File must have
  7340. non-zero length, otherwise we risk SIGBUS for entire page. */
  7341. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  7342. if (fd2 < 0)
  7343. return 4;
  7344. cdata2 = "";
  7345. if (write (fd2, cdata2, 1) != 1)
  7346. return 5;
  7347. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  7348. if (data2 == MAP_FAILED)
  7349. return 6;
  7350. for (i = 0; i < pagesize; ++i)
  7351. if (*(data2 + i))
  7352. return 7;
  7353. close (fd2);
  7354. if (munmap (data2, pagesize))
  7355. return 8;
  7356. /* Next, try to mmap the file at a fixed address which already has
  7357. something else allocated at it. If we can, also make sure that
  7358. we see the same garbage. */
  7359. fd = open ("conftest.mmap", O_RDWR);
  7360. if (fd < 0)
  7361. return 9;
  7362. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  7363. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  7364. return 10;
  7365. for (i = 0; i < pagesize; ++i)
  7366. if (*(data + i) != *(data2 + i))
  7367. return 11;
  7368. /* Finally, make sure that changes to the mapped area do not
  7369. percolate back to the file as seen by read(). (This is a bug on
  7370. some variants of i386 svr4.0.) */
  7371. for (i = 0; i < pagesize; ++i)
  7372. *(data2 + i) = *(data2 + i) + 1;
  7373. data3 = (char *) malloc (pagesize);
  7374. if (!data3)
  7375. return 12;
  7376. if (read (fd, data3, pagesize) != pagesize)
  7377. return 13;
  7378. for (i = 0; i < pagesize; ++i)
  7379. if (*(data + i) != *(data3 + i))
  7380. return 14;
  7381. close (fd);
  7382. return 0;
  7383. }
  7384. _ACEOF
  7385. if ac_fn_cxx_try_run "$LINENO"; then :
  7386. ac_cv_func_mmap_fixed_mapped=yes
  7387. else
  7388. ac_cv_func_mmap_fixed_mapped=no
  7389. fi
  7390. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7391. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7392. fi
  7393. fi
  7394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  7395. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  7396. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  7397. $as_echo "#define HAVE_MMAP 1" >>build/confdefs.h
  7398. fi
  7399. rm -f conftest.mmap conftest.txt
  7400. ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
  7401. #include <sys/time.h>
  7402. #include <time.h>
  7403. "
  7404. if test "x$ac_cv_type_struct_timespec" = xyes; then :
  7405. $as_echo "#define HAVE_TIMESPEC 1" >>build/confdefs.h
  7406. fi
  7407. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  7408. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
  7409. if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
  7410. $as_echo "#define HAVE_ST_MTIM 1" >>build/confdefs.h
  7411. else
  7412. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
  7413. if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
  7414. $as_echo "#define HAVE_ST_MTIMESPEC 1" >>build/confdefs.h
  7415. fi
  7416. fi
  7417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-parameter timespecsub" >&5
  7418. $as_echo_n "checking for two-parameter timespecsub... " >&6; }
  7419. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7420. /* end build/confdefs.h. */
  7421. #include <sys/types.h>
  7422. #include <sys/time.h>
  7423. int
  7424. main ()
  7425. {
  7426. struct timespec ts1, ts2;
  7427. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  7428. #ifndef timespecsub
  7429. #error missing timespecsub
  7430. #endif
  7431. timespecsub(&ts1, &ts2);
  7432. ;
  7433. return 0;
  7434. }
  7435. _ACEOF
  7436. if ac_fn_cxx_try_compile "$LINENO"; then :
  7437. $as_echo "#define HAVE_TIMESPECSUB2 1" >>build/confdefs.h
  7438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7439. $as_echo "yes" >&6; }
  7440. else
  7441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7442. $as_echo "no" >&6; }
  7443. fi
  7444. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7445. fi
  7446. #checkpoint
  7447. cat >confcache <<\_ACEOF
  7448. # This file is a shell script that caches the results of configure
  7449. # tests run on this system so they can be shared between configure
  7450. # scripts and configure runs, see configure's option --config-cache.
  7451. # It is not useful on other systems. If it contains results you don't
  7452. # want to keep, you may remove or edit it.
  7453. #
  7454. # build/config.status only pays attention to the cache file if you give it
  7455. # the --recheck option to rerun configure.
  7456. #
  7457. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7458. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7459. # following values.
  7460. _ACEOF
  7461. # The following way of writing the cache mishandles newlines in values,
  7462. # but we know of no workaround that is simple, portable, and efficient.
  7463. # So, we kill variables containing newlines.
  7464. # Ultrix sh set writes to stderr and can't be redirected directly,
  7465. # and sets the high bit in the cache file unless we assign to the vars.
  7466. (
  7467. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7468. eval ac_val=\$$ac_var
  7469. case $ac_val in #(
  7470. *${as_nl}*)
  7471. case $ac_var in #(
  7472. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7473. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7474. esac
  7475. case $ac_var in #(
  7476. _ | IFS | as_nl) ;; #(
  7477. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7478. *) { eval $ac_var=; unset $ac_var;} ;;
  7479. esac ;;
  7480. esac
  7481. done
  7482. (set) 2>&1 |
  7483. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7484. *${as_nl}ac_space=\ *)
  7485. # `set' does not quote correctly, so add quotes: double-quote
  7486. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7487. sed -n \
  7488. "s/'/'\\\\''/g;
  7489. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7490. ;; #(
  7491. *)
  7492. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7493. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7494. ;;
  7495. esac |
  7496. sort
  7497. ) |
  7498. sed '
  7499. /^ac_cv_env_/b end
  7500. t clear
  7501. :clear
  7502. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7503. t end
  7504. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7505. :end' >>confcache
  7506. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7507. if test -w "$cache_file"; then
  7508. if test "x$cache_file" != "x/dev/null"; then
  7509. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7510. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7511. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7512. cat confcache >"$cache_file"
  7513. else
  7514. case $cache_file in #(
  7515. */* | ?:*)
  7516. mv -f confcache "$cache_file"$$ &&
  7517. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7518. *)
  7519. mv -f confcache "$cache_file" ;;
  7520. esac
  7521. fi
  7522. fi
  7523. else
  7524. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7525. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7526. fi
  7527. fi
  7528. rm -f confcache
  7529. for ac_func in getrusage getpassphrase posix_madvise madvise
  7530. do :
  7531. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7532. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7533. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7534. cat >>build/confdefs.h <<_ACEOF
  7535. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7536. _ACEOF
  7537. fi
  7538. done
  7539. for ac_func in memmem random snprintf srandom gettime
  7540. do :
  7541. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7542. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7543. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7544. cat >>build/confdefs.h <<_ACEOF
  7545. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7546. _ACEOF
  7547. fi
  7548. done
  7549. #checkpoint
  7550. cat >confcache <<\_ACEOF
  7551. # This file is a shell script that caches the results of configure
  7552. # tests run on this system so they can be shared between configure
  7553. # scripts and configure runs, see configure's option --config-cache.
  7554. # It is not useful on other systems. If it contains results you don't
  7555. # want to keep, you may remove or edit it.
  7556. #
  7557. # build/config.status only pays attention to the cache file if you give it
  7558. # the --recheck option to rerun configure.
  7559. #
  7560. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7561. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7562. # following values.
  7563. _ACEOF
  7564. # The following way of writing the cache mishandles newlines in values,
  7565. # but we know of no workaround that is simple, portable, and efficient.
  7566. # So, we kill variables containing newlines.
  7567. # Ultrix sh set writes to stderr and can't be redirected directly,
  7568. # and sets the high bit in the cache file unless we assign to the vars.
  7569. (
  7570. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7571. eval ac_val=\$$ac_var
  7572. case $ac_val in #(
  7573. *${as_nl}*)
  7574. case $ac_var in #(
  7575. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7576. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7577. esac
  7578. case $ac_var in #(
  7579. _ | IFS | as_nl) ;; #(
  7580. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7581. *) { eval $ac_var=; unset $ac_var;} ;;
  7582. esac ;;
  7583. esac
  7584. done
  7585. (set) 2>&1 |
  7586. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7587. *${as_nl}ac_space=\ *)
  7588. # `set' does not quote correctly, so add quotes: double-quote
  7589. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7590. sed -n \
  7591. "s/'/'\\\\''/g;
  7592. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7593. ;; #(
  7594. *)
  7595. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7596. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7597. ;;
  7598. esac |
  7599. sort
  7600. ) |
  7601. sed '
  7602. /^ac_cv_env_/b end
  7603. t clear
  7604. :clear
  7605. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7606. t end
  7607. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7608. :end' >>confcache
  7609. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7610. if test -w "$cache_file"; then
  7611. if test "x$cache_file" != "x/dev/null"; then
  7612. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7613. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7614. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7615. cat confcache >"$cache_file"
  7616. else
  7617. case $cache_file in #(
  7618. */* | ?:*)
  7619. mv -f confcache "$cache_file"$$ &&
  7620. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7621. *)
  7622. mv -f confcache "$cache_file" ;;
  7623. esac
  7624. fi
  7625. fi
  7626. else
  7627. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7628. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7629. fi
  7630. fi
  7631. rm -f confcache
  7632. for ac_func in vsnprintf prctl procctl closefrom
  7633. do :
  7634. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7635. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7636. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7637. cat >>build/confdefs.h <<_ACEOF
  7638. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7639. _ACEOF
  7640. fi
  7641. done
  7642. #autoscan suggested this....
  7643. #These are recommended by autoscan, but no code supports it currently
  7644. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostname getpass gettimeofday mbrlen
  7645. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  7646. for ac_func in vsprintf
  7647. do :
  7648. ac_fn_cxx_check_func "$LINENO" "vsprintf" "ac_cv_func_vsprintf"
  7649. if test "x$ac_cv_func_vsprintf" = xyes; then :
  7650. cat >>build/confdefs.h <<_ACEOF
  7651. #define HAVE_VSPRINTF 1
  7652. _ACEOF
  7653. fi
  7654. done
  7655. if test "$ac_cv_func_vsprintf" = "no"
  7656. then
  7657. cat << 'EOF' >&2
  7658. configure: error:
  7659. Your system does not have the sprintf/vsprintf libraries.
  7660. These are required to compile almost anything. Sorry.
  7661. EOF
  7662. exit 1
  7663. fi
  7664. for ac_func in uname
  7665. do :
  7666. ac_fn_cxx_check_func "$LINENO" "uname" "ac_cv_func_uname"
  7667. if test "x$ac_cv_func_uname" = xyes; then :
  7668. cat >>build/confdefs.h <<_ACEOF
  7669. #define HAVE_UNAME 1
  7670. _ACEOF
  7671. fi
  7672. done
  7673. if test "$ac_cv_func_uname" = "no"
  7674. then
  7675. cat << 'EOF' >&2
  7676. configure: error:
  7677. Your system does not have the uname() function.
  7678. This is required for the botpack.
  7679. EOF
  7680. exit 1
  7681. fi
  7682. # Make sure we have stdc headers, since we can't compile without them
  7683. if test "$ac_cv_header_stdc" = "no"
  7684. then
  7685. cat << 'EOF' >&2
  7686. configure: error:
  7687. Your system must support ANSI C Header files.
  7688. These are required for the language support. Sorry.
  7689. EOF
  7690. exit 1
  7691. fi
  7692. #checkpoint
  7693. cat >confcache <<\_ACEOF
  7694. # This file is a shell script that caches the results of configure
  7695. # tests run on this system so they can be shared between configure
  7696. # scripts and configure runs, see configure's option --config-cache.
  7697. # It is not useful on other systems. If it contains results you don't
  7698. # want to keep, you may remove or edit it.
  7699. #
  7700. # build/config.status only pays attention to the cache file if you give it
  7701. # the --recheck option to rerun configure.
  7702. #
  7703. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7704. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7705. # following values.
  7706. _ACEOF
  7707. # The following way of writing the cache mishandles newlines in values,
  7708. # but we know of no workaround that is simple, portable, and efficient.
  7709. # So, we kill variables containing newlines.
  7710. # Ultrix sh set writes to stderr and can't be redirected directly,
  7711. # and sets the high bit in the cache file unless we assign to the vars.
  7712. (
  7713. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7714. eval ac_val=\$$ac_var
  7715. case $ac_val in #(
  7716. *${as_nl}*)
  7717. case $ac_var in #(
  7718. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7719. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7720. esac
  7721. case $ac_var in #(
  7722. _ | IFS | as_nl) ;; #(
  7723. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7724. *) { eval $ac_var=; unset $ac_var;} ;;
  7725. esac ;;
  7726. esac
  7727. done
  7728. (set) 2>&1 |
  7729. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7730. *${as_nl}ac_space=\ *)
  7731. # `set' does not quote correctly, so add quotes: double-quote
  7732. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7733. sed -n \
  7734. "s/'/'\\\\''/g;
  7735. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7736. ;; #(
  7737. *)
  7738. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7739. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7740. ;;
  7741. esac |
  7742. sort
  7743. ) |
  7744. sed '
  7745. /^ac_cv_env_/b end
  7746. t clear
  7747. :clear
  7748. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7749. t end
  7750. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7751. :end' >>confcache
  7752. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7753. if test -w "$cache_file"; then
  7754. if test "x$cache_file" != "x/dev/null"; then
  7755. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7756. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7757. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7758. cat confcache >"$cache_file"
  7759. else
  7760. case $cache_file in #(
  7761. */* | ?:*)
  7762. mv -f confcache "$cache_file"$$ &&
  7763. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7764. *)
  7765. mv -f confcache "$cache_file" ;;
  7766. esac
  7767. fi
  7768. fi
  7769. else
  7770. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7771. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7772. fi
  7773. fi
  7774. rm -f confcache
  7775. VERSION=`grep "char" $srcdir/src/main.cc | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  7776. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  7777. cat >>build/confdefs.h <<_ACEOF
  7778. #define EGG_VERSION $version_num
  7779. _ACEOF
  7780. #FIND_WRAPS
  7781. files="src/Makefile.in"
  7782. for mf in $files; do
  7783. # Strip MF so we end up with the name of the file.
  7784. mf=${mf%%:*}
  7785. dirmf=${mf%/*}
  7786. rm -f "$dirmf/.deps/includes"
  7787. test -d "$dirmf/.deps" || mkdir "$dirmf/.deps"
  7788. for file in `sed -n -e '
  7789. /^OBJS = .*\\\\$/ {
  7790. s/^OBJS = //
  7791. :loop
  7792. s/\\\\$//
  7793. p
  7794. n
  7795. /\\\\$/ b loop
  7796. p
  7797. }
  7798. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  7799. do
  7800. dirpart="${dirmf}/${file}"
  7801. dirpart="${dirpart%/*}"
  7802. if [ "${dirpart}" != "${dirmf}" ]; then
  7803. test -d "${dirpart}/.deps" || mkdir "${dirpart}/.deps"
  7804. fi
  7805. file="${file##*/}"
  7806. suffix=${file##*.}
  7807. base=${file%%.*}
  7808. test -f "$dirpart/$base.cc" || test -f "$dirpart/$base.c" || continue
  7809. if ! test -f "$dirpart/.deps/$base.Po"; then
  7810. echo '# dummy' > "$dirpart/.deps/$base.Po"
  7811. #Remove the .o file, because it needs to be recompiled for its dependancies.
  7812. if test -f "$dirpart/${base}.${suffix}"; then
  7813. rm -f "$dirpart/${base}.${suffix}"
  7814. fi
  7815. fi
  7816. echo "include .${dirpart#${dirmf}}/.deps/$base.Po" >> "${dirmf}/.deps/includes"
  7817. done
  7818. done
  7819. ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile src/buildinfo.h"
  7820. GIT_REQUIRED=1
  7821. if [ "$GIT_REQUIRED" = "1" ]; then
  7822. if ! test -d .git; then
  7823. echo ""
  7824. echo ""
  7825. echo "You have downloaded a GIT version of wraith."
  7826. echo "Either 'git clone' from a git repository or download a source tarball"
  7827. echo "A distribution version can be found at http://wraith.botpack.net/wiki/Download"
  7828. echo ""
  7829. echo ""
  7830. exit 1
  7831. fi
  7832. fi
  7833. if test -d .git; then
  7834. git submodule init
  7835. git submodule update
  7836. git submodule foreach --recursive git clean -fdx
  7837. # Restore as it may have been removed by an older 'make distclean'
  7838. if ! test -f src/response.h; then
  7839. git checkout src/response.h
  7840. fi
  7841. fi
  7842. export CC CXX
  7843. if [ -f lib/bdlib/configure ]; then
  7844. subdirs="$subdirs lib/bdlib"
  7845. fi
  7846. if [ -n "${LIBELF_BUNDLED}" ] && [ -f lib/libelf/configure ]; then
  7847. subdirs="$subdirs lib/libelf"
  7848. fi
  7849. cat >confcache <<\_ACEOF
  7850. # This file is a shell script that caches the results of configure
  7851. # tests run on this system so they can be shared between configure
  7852. # scripts and configure runs, see configure's option --config-cache.
  7853. # It is not useful on other systems. If it contains results you don't
  7854. # want to keep, you may remove or edit it.
  7855. #
  7856. # build/config.status only pays attention to the cache file if you give it
  7857. # the --recheck option to rerun configure.
  7858. #
  7859. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7860. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7861. # following values.
  7862. _ACEOF
  7863. # The following way of writing the cache mishandles newlines in values,
  7864. # but we know of no workaround that is simple, portable, and efficient.
  7865. # So, we kill variables containing newlines.
  7866. # Ultrix sh set writes to stderr and can't be redirected directly,
  7867. # and sets the high bit in the cache file unless we assign to the vars.
  7868. (
  7869. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7870. eval ac_val=\$$ac_var
  7871. case $ac_val in #(
  7872. *${as_nl}*)
  7873. case $ac_var in #(
  7874. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7875. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7876. esac
  7877. case $ac_var in #(
  7878. _ | IFS | as_nl) ;; #(
  7879. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7880. *) { eval $ac_var=; unset $ac_var;} ;;
  7881. esac ;;
  7882. esac
  7883. done
  7884. (set) 2>&1 |
  7885. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7886. *${as_nl}ac_space=\ *)
  7887. # `set' does not quote correctly, so add quotes: double-quote
  7888. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7889. sed -n \
  7890. "s/'/'\\\\''/g;
  7891. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7892. ;; #(
  7893. *)
  7894. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7895. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7896. ;;
  7897. esac |
  7898. sort
  7899. ) |
  7900. sed '
  7901. /^ac_cv_env_/b end
  7902. t clear
  7903. :clear
  7904. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7905. t end
  7906. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7907. :end' >>confcache
  7908. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7909. if test -w "$cache_file"; then
  7910. if test "x$cache_file" != "x/dev/null"; then
  7911. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7912. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7913. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7914. cat confcache >"$cache_file"
  7915. else
  7916. case $cache_file in #(
  7917. */* | ?:*)
  7918. mv -f confcache "$cache_file"$$ &&
  7919. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7920. *)
  7921. mv -f confcache "$cache_file" ;;
  7922. esac
  7923. fi
  7924. fi
  7925. else
  7926. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7927. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7928. fi
  7929. fi
  7930. rm -f confcache
  7931. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  7932. # Let make expand exec_prefix.
  7933. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  7934. DEFS=-DHAVE_CONFIG_H
  7935. ac_libobjs=
  7936. ac_ltlibobjs=
  7937. U=
  7938. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  7939. # 1. Remove the extension, and $U if already installed.
  7940. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  7941. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  7942. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  7943. # will be set to the directory where LIBOBJS objects are built.
  7944. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  7945. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  7946. done
  7947. LIBOBJS=$ac_libobjs
  7948. LTLIBOBJS=$ac_ltlibobjs
  7949. : "${CONFIG_STATUS=./build/config.status}"
  7950. ac_write_fail=0
  7951. ac_clean_files_save=$ac_clean_files
  7952. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  7953. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  7954. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  7955. as_write_fail=0
  7956. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  7957. #! $SHELL
  7958. # Generated by $as_me.
  7959. # Run this file to recreate the current configuration.
  7960. # Compiler output produced by configure, useful for debugging
  7961. # configure, is in build/config.log if it exists.
  7962. debug=false
  7963. ac_cs_recheck=false
  7964. ac_cs_silent=false
  7965. SHELL=\${CONFIG_SHELL-$SHELL}
  7966. export SHELL
  7967. _ASEOF
  7968. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  7969. ## -------------------- ##
  7970. ## M4sh Initialization. ##
  7971. ## -------------------- ##
  7972. # Be more Bourne compatible
  7973. DUALCASE=1; export DUALCASE # for MKS sh
  7974. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  7975. emulate sh
  7976. NULLCMD=:
  7977. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  7978. # is contrary to our usage. Disable this feature.
  7979. alias -g '${1+"$@"}'='"$@"'
  7980. setopt NO_GLOB_SUBST
  7981. else
  7982. case `(set -o) 2>/dev/null` in #(
  7983. *posix*) :
  7984. set -o posix ;; #(
  7985. *) :
  7986. ;;
  7987. esac
  7988. fi
  7989. as_nl='
  7990. '
  7991. export as_nl
  7992. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  7993. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  7994. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  7995. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  7996. # Prefer a ksh shell builtin over an external printf program on Solaris,
  7997. # but without wasting forks for bash or zsh.
  7998. if test -z "$BASH_VERSION$ZSH_VERSION" \
  7999. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  8000. as_echo='print -r --'
  8001. as_echo_n='print -rn --'
  8002. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  8003. as_echo='printf %s\n'
  8004. as_echo_n='printf %s'
  8005. else
  8006. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  8007. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  8008. as_echo_n='/usr/ucb/echo -n'
  8009. else
  8010. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  8011. as_echo_n_body='eval
  8012. arg=$1;
  8013. case $arg in #(
  8014. *"$as_nl"*)
  8015. expr "X$arg" : "X\\(.*\\)$as_nl";
  8016. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  8017. esac;
  8018. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  8019. '
  8020. export as_echo_n_body
  8021. as_echo_n='sh -c $as_echo_n_body as_echo'
  8022. fi
  8023. export as_echo_body
  8024. as_echo='sh -c $as_echo_body as_echo'
  8025. fi
  8026. # The user is always right.
  8027. if test "${PATH_SEPARATOR+set}" != set; then
  8028. PATH_SEPARATOR=:
  8029. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  8030. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  8031. PATH_SEPARATOR=';'
  8032. }
  8033. fi
  8034. # IFS
  8035. # We need space, tab and new line, in precisely that order. Quoting is
  8036. # there to prevent editors from complaining about space-tab.
  8037. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  8038. # splitting by setting IFS to empty value.)
  8039. IFS=" "" $as_nl"
  8040. # Find who we are. Look in the path if we contain no directory separator.
  8041. as_myself=
  8042. case $0 in #((
  8043. *[\\/]* ) as_myself=$0 ;;
  8044. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8045. for as_dir in $PATH
  8046. do
  8047. IFS=$as_save_IFS
  8048. test -z "$as_dir" && as_dir=.
  8049. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8050. done
  8051. IFS=$as_save_IFS
  8052. ;;
  8053. esac
  8054. # We did not find ourselves, most probably we were run as `sh COMMAND'
  8055. # in which case we are not to be found in the path.
  8056. if test "x$as_myself" = x; then
  8057. as_myself=$0
  8058. fi
  8059. if test ! -f "$as_myself"; then
  8060. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  8061. exit 1
  8062. fi
  8063. # Unset variables that we do not need and which cause bugs (e.g. in
  8064. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  8065. # suppresses any "Segmentation fault" message there. '((' could
  8066. # trigger a bug in pdksh 5.2.14.
  8067. for as_var in BASH_ENV ENV MAIL MAILPATH
  8068. do eval test x\${$as_var+set} = xset \
  8069. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  8070. done
  8071. PS1='$ '
  8072. PS2='> '
  8073. PS4='+ '
  8074. # NLS nuisances.
  8075. LC_ALL=C
  8076. export LC_ALL
  8077. LANGUAGE=C
  8078. export LANGUAGE
  8079. # CDPATH.
  8080. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8081. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  8082. # ----------------------------------------
  8083. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  8084. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  8085. # script with STATUS, using 1 if that was 0.
  8086. as_fn_error ()
  8087. {
  8088. as_status=$1; test $as_status -eq 0 && as_status=1
  8089. if test "$4"; then
  8090. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  8091. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  8092. fi
  8093. $as_echo "$as_me: error: $2" >&2
  8094. as_fn_exit $as_status
  8095. } # as_fn_error
  8096. # as_fn_set_status STATUS
  8097. # -----------------------
  8098. # Set $? to STATUS, without forking.
  8099. as_fn_set_status ()
  8100. {
  8101. return $1
  8102. } # as_fn_set_status
  8103. # as_fn_exit STATUS
  8104. # -----------------
  8105. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  8106. as_fn_exit ()
  8107. {
  8108. set +e
  8109. as_fn_set_status $1
  8110. exit $1
  8111. } # as_fn_exit
  8112. # as_fn_unset VAR
  8113. # ---------------
  8114. # Portably unset VAR.
  8115. as_fn_unset ()
  8116. {
  8117. { eval $1=; unset $1;}
  8118. }
  8119. as_unset=as_fn_unset
  8120. # as_fn_append VAR VALUE
  8121. # ----------------------
  8122. # Append the text in VALUE to the end of the definition contained in VAR. Take
  8123. # advantage of any shell optimizations that allow amortized linear growth over
  8124. # repeated appends, instead of the typical quadratic growth present in naive
  8125. # implementations.
  8126. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  8127. eval 'as_fn_append ()
  8128. {
  8129. eval $1+=\$2
  8130. }'
  8131. else
  8132. as_fn_append ()
  8133. {
  8134. eval $1=\$$1\$2
  8135. }
  8136. fi # as_fn_append
  8137. # as_fn_arith ARG...
  8138. # ------------------
  8139. # Perform arithmetic evaluation on the ARGs, and store the result in the
  8140. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  8141. # must be portable across $(()) and expr.
  8142. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  8143. eval 'as_fn_arith ()
  8144. {
  8145. as_val=$(( $* ))
  8146. }'
  8147. else
  8148. as_fn_arith ()
  8149. {
  8150. as_val=`expr "$@" || test $? -eq 1`
  8151. }
  8152. fi # as_fn_arith
  8153. if expr a : '\(a\)' >/dev/null 2>&1 &&
  8154. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  8155. as_expr=expr
  8156. else
  8157. as_expr=false
  8158. fi
  8159. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  8160. as_basename=basename
  8161. else
  8162. as_basename=false
  8163. fi
  8164. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  8165. as_dirname=dirname
  8166. else
  8167. as_dirname=false
  8168. fi
  8169. as_me=`$as_basename -- "$0" ||
  8170. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8171. X"$0" : 'X\(//\)$' \| \
  8172. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  8173. $as_echo X/"$0" |
  8174. sed '/^.*\/\([^/][^/]*\)\/*$/{
  8175. s//\1/
  8176. q
  8177. }
  8178. /^X\/\(\/\/\)$/{
  8179. s//\1/
  8180. q
  8181. }
  8182. /^X\/\(\/\).*/{
  8183. s//\1/
  8184. q
  8185. }
  8186. s/.*/./; q'`
  8187. # Avoid depending upon Character Ranges.
  8188. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8189. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8190. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8191. as_cr_digits='0123456789'
  8192. as_cr_alnum=$as_cr_Letters$as_cr_digits
  8193. ECHO_C= ECHO_N= ECHO_T=
  8194. case `echo -n x` in #(((((
  8195. -n*)
  8196. case `echo 'xy\c'` in
  8197. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  8198. xy) ECHO_C='\c';;
  8199. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  8200. ECHO_T=' ';;
  8201. esac;;
  8202. *)
  8203. ECHO_N='-n';;
  8204. esac
  8205. rm -f conf$$ conf$$.exe conf$$.file
  8206. if test -d conf$$.dir; then
  8207. rm -f conf$$.dir/conf$$.file
  8208. else
  8209. rm -f conf$$.dir
  8210. mkdir conf$$.dir 2>/dev/null
  8211. fi
  8212. if (echo >conf$$.file) 2>/dev/null; then
  8213. if ln -s conf$$.file conf$$ 2>/dev/null; then
  8214. as_ln_s='ln -s'
  8215. # ... but there are two gotchas:
  8216. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  8217. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  8218. # In both cases, we have to default to `cp -pR'.
  8219. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  8220. as_ln_s='cp -pR'
  8221. elif ln conf$$.file conf$$ 2>/dev/null; then
  8222. as_ln_s=ln
  8223. else
  8224. as_ln_s='cp -pR'
  8225. fi
  8226. else
  8227. as_ln_s='cp -pR'
  8228. fi
  8229. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  8230. rmdir conf$$.dir 2>/dev/null
  8231. # as_fn_mkdir_p
  8232. # -------------
  8233. # Create "$as_dir" as a directory, including parents if necessary.
  8234. as_fn_mkdir_p ()
  8235. {
  8236. case $as_dir in #(
  8237. -*) as_dir=./$as_dir;;
  8238. esac
  8239. test -d "$as_dir" || eval $as_mkdir_p || {
  8240. as_dirs=
  8241. while :; do
  8242. case $as_dir in #(
  8243. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  8244. *) as_qdir=$as_dir;;
  8245. esac
  8246. as_dirs="'$as_qdir' $as_dirs"
  8247. as_dir=`$as_dirname -- "$as_dir" ||
  8248. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8249. X"$as_dir" : 'X\(//\)[^/]' \| \
  8250. X"$as_dir" : 'X\(//\)$' \| \
  8251. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  8252. $as_echo X"$as_dir" |
  8253. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8254. s//\1/
  8255. q
  8256. }
  8257. /^X\(\/\/\)[^/].*/{
  8258. s//\1/
  8259. q
  8260. }
  8261. /^X\(\/\/\)$/{
  8262. s//\1/
  8263. q
  8264. }
  8265. /^X\(\/\).*/{
  8266. s//\1/
  8267. q
  8268. }
  8269. s/.*/./; q'`
  8270. test -d "$as_dir" && break
  8271. done
  8272. test -z "$as_dirs" || eval "mkdir $as_dirs"
  8273. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  8274. } # as_fn_mkdir_p
  8275. if mkdir -p . 2>/dev/null; then
  8276. as_mkdir_p='mkdir -p "$as_dir"'
  8277. else
  8278. test -d ./-p && rmdir ./-p
  8279. as_mkdir_p=false
  8280. fi
  8281. # as_fn_executable_p FILE
  8282. # -----------------------
  8283. # Test if FILE is an executable regular file.
  8284. as_fn_executable_p ()
  8285. {
  8286. test -f "$1" && test -x "$1"
  8287. } # as_fn_executable_p
  8288. as_test_x='test -x'
  8289. as_executable_p=as_fn_executable_p
  8290. # Sed expression to map a string onto a valid CPP name.
  8291. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8292. # Sed expression to map a string onto a valid variable name.
  8293. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8294. exec 6>&1
  8295. ## ----------------------------------- ##
  8296. ## Main body of $CONFIG_STATUS script. ##
  8297. ## ----------------------------------- ##
  8298. _ASEOF
  8299. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  8300. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8301. # Save the log message, to keep $0 and so on meaningful, and to
  8302. # report actual input values of CONFIG_FILES etc. instead of their
  8303. # values after options handling.
  8304. ac_log="
  8305. This file was extended by $as_me, which was
  8306. generated by GNU Autoconf 2.69. Invocation command line was
  8307. CONFIG_FILES = $CONFIG_FILES
  8308. CONFIG_HEADERS = $CONFIG_HEADERS
  8309. CONFIG_LINKS = $CONFIG_LINKS
  8310. CONFIG_COMMANDS = $CONFIG_COMMANDS
  8311. $ $0 $@
  8312. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  8313. "
  8314. _ACEOF
  8315. case $ac_config_files in *"
  8316. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  8317. esac
  8318. case $ac_config_headers in *"
  8319. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  8320. esac
  8321. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8322. # Files that build/config.status was made for.
  8323. config_files="$ac_config_files"
  8324. config_headers="$ac_config_headers"
  8325. _ACEOF
  8326. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8327. ac_cs_usage="\
  8328. \`$as_me' instantiates files and other configuration actions
  8329. from templates according to the current configuration. Unless the files
  8330. and actions are specified as TAGs, all are instantiated by default.
  8331. Usage: $0 [OPTION]... [TAG]...
  8332. -h, --help print this help, then exit
  8333. -V, --version print version number and configuration settings, then exit
  8334. --config print configuration, then exit
  8335. -q, --quiet, --silent
  8336. do not print progress messages
  8337. -d, --debug don't remove temporary files
  8338. --recheck update $as_me by reconfiguring in the same conditions
  8339. --file=FILE[:TEMPLATE]
  8340. instantiate the configuration file FILE
  8341. --header=FILE[:TEMPLATE]
  8342. instantiate the configuration header FILE
  8343. Configuration files:
  8344. $config_files
  8345. Configuration headers:
  8346. $config_headers
  8347. Report bugs to the package provider."
  8348. _ACEOF
  8349. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8350. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  8351. ac_cs_version="\\
  8352. build/config.status
  8353. configured by $0, generated by GNU Autoconf 2.69,
  8354. with options \\"\$ac_cs_config\\"
  8355. Copyright (C) 2012 Free Software Foundation, Inc.
  8356. This build/config.status script is free software; the Free Software Foundation
  8357. gives unlimited permission to copy, distribute and modify it."
  8358. ac_pwd='$ac_pwd'
  8359. srcdir='$srcdir'
  8360. AWK='$AWK'
  8361. test -n "\$AWK" || AWK=awk
  8362. _ACEOF
  8363. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8364. # The default lists apply if the user does not specify any file.
  8365. ac_need_defaults=:
  8366. while test $# != 0
  8367. do
  8368. case $1 in
  8369. --*=?*)
  8370. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8371. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  8372. ac_shift=:
  8373. ;;
  8374. --*=)
  8375. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8376. ac_optarg=
  8377. ac_shift=:
  8378. ;;
  8379. *)
  8380. ac_option=$1
  8381. ac_optarg=$2
  8382. ac_shift=shift
  8383. ;;
  8384. esac
  8385. case $ac_option in
  8386. # Handling of the options.
  8387. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8388. ac_cs_recheck=: ;;
  8389. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  8390. $as_echo "$ac_cs_version"; exit ;;
  8391. --config | --confi | --conf | --con | --co | --c )
  8392. $as_echo "$ac_cs_config"; exit ;;
  8393. --debug | --debu | --deb | --de | --d | -d )
  8394. debug=: ;;
  8395. --file | --fil | --fi | --f )
  8396. $ac_shift
  8397. case $ac_optarg in
  8398. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8399. '') as_fn_error $? "missing file argument" ;;
  8400. esac
  8401. as_fn_append CONFIG_FILES " '$ac_optarg'"
  8402. ac_need_defaults=false;;
  8403. --header | --heade | --head | --hea )
  8404. $ac_shift
  8405. case $ac_optarg in
  8406. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8407. esac
  8408. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  8409. ac_need_defaults=false;;
  8410. --he | --h)
  8411. # Conflict between --help and --header
  8412. as_fn_error $? "ambiguous option: \`$1'
  8413. Try \`$0 --help' for more information.";;
  8414. --help | --hel | -h )
  8415. $as_echo "$ac_cs_usage"; exit ;;
  8416. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8417. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  8418. ac_cs_silent=: ;;
  8419. # This is an error.
  8420. -*) as_fn_error $? "unrecognized option: \`$1'
  8421. Try \`$0 --help' for more information." ;;
  8422. *) as_fn_append ac_config_targets " $1"
  8423. ac_need_defaults=false ;;
  8424. esac
  8425. shift
  8426. done
  8427. ac_configure_extra_args=
  8428. if $ac_cs_silent; then
  8429. exec 6>/dev/null
  8430. ac_configure_extra_args="$ac_configure_extra_args --silent"
  8431. fi
  8432. _ACEOF
  8433. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8434. if \$ac_cs_recheck; then
  8435. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8436. shift
  8437. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  8438. CONFIG_SHELL='$SHELL'
  8439. export CONFIG_SHELL
  8440. exec "\$@"
  8441. fi
  8442. _ACEOF
  8443. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8444. exec 5>>build/config.log
  8445. {
  8446. echo
  8447. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8448. ## Running $as_me. ##
  8449. _ASBOX
  8450. $as_echo "$ac_log"
  8451. } >&5
  8452. _ACEOF
  8453. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8454. _ACEOF
  8455. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8456. # Handling of arguments.
  8457. for ac_config_target in $ac_config_targets
  8458. do
  8459. case $ac_config_target in
  8460. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  8461. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8462. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  8463. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  8464. "src/buildinfo.h") CONFIG_FILES="$CONFIG_FILES src/buildinfo.h" ;;
  8465. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  8466. esac
  8467. done
  8468. # If the user did not use the arguments to specify the items to instantiate,
  8469. # then the envvar interface is used. Set only those that are not.
  8470. # We use the long form for the default assignment because of an extremely
  8471. # bizarre bug on SunOS 4.1.3.
  8472. if $ac_need_defaults; then
  8473. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  8474. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  8475. fi
  8476. # Have a temporary directory for convenience. Make it in the build tree
  8477. # simply because there is no reason against having it here, and in addition,
  8478. # creating and moving files from /tmp can sometimes cause problems.
  8479. # Hook for its removal unless debugging.
  8480. # Note that there is a small window in which the directory will not be cleaned:
  8481. # after its creation but before its name has been assigned to `$tmp'.
  8482. $debug ||
  8483. {
  8484. tmp= ac_tmp=
  8485. trap 'exit_status=$?
  8486. : "${ac_tmp:=$tmp}"
  8487. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  8488. ' 0
  8489. trap 'as_fn_exit 1' 1 2 13 15
  8490. }
  8491. # Create a (secure) tmp directory for tmp files.
  8492. {
  8493. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  8494. test -d "$tmp"
  8495. } ||
  8496. {
  8497. tmp=./conf$$-$RANDOM
  8498. (umask 077 && mkdir "$tmp")
  8499. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  8500. ac_tmp=$tmp
  8501. # Set up the scripts for CONFIG_FILES section.
  8502. # No need to generate them if there are no CONFIG_FILES.
  8503. # This happens for instance with `./build/config.status config.h'.
  8504. if test -n "$CONFIG_FILES"; then
  8505. ac_cr=`echo X | tr X '\015'`
  8506. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  8507. # But we know of no other shell where ac_cr would be empty at this
  8508. # point, so we can use a bashism as a fallback.
  8509. if test "x$ac_cr" = x; then
  8510. eval ac_cr=\$\'\\r\'
  8511. fi
  8512. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  8513. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  8514. ac_cs_awk_cr='\\r'
  8515. else
  8516. ac_cs_awk_cr=$ac_cr
  8517. fi
  8518. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  8519. _ACEOF
  8520. {
  8521. echo "cat >conf$$subs.awk <<_ACEOF" &&
  8522. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  8523. echo "_ACEOF"
  8524. } >conf$$subs.sh ||
  8525. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8526. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  8527. ac_delim='%!_!# '
  8528. for ac_last_try in false false false false false :; do
  8529. . ./conf$$subs.sh ||
  8530. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8531. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  8532. if test $ac_delim_n = $ac_delim_num; then
  8533. break
  8534. elif $ac_last_try; then
  8535. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8536. else
  8537. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8538. fi
  8539. done
  8540. rm -f conf$$subs.sh
  8541. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8542. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  8543. _ACEOF
  8544. sed -n '
  8545. h
  8546. s/^/S["/; s/!.*/"]=/
  8547. p
  8548. g
  8549. s/^[^!]*!//
  8550. :repl
  8551. t repl
  8552. s/'"$ac_delim"'$//
  8553. t delim
  8554. :nl
  8555. h
  8556. s/\(.\{148\}\)..*/\1/
  8557. t more1
  8558. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  8559. p
  8560. n
  8561. b repl
  8562. :more1
  8563. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8564. p
  8565. g
  8566. s/.\{148\}//
  8567. t nl
  8568. :delim
  8569. h
  8570. s/\(.\{148\}\)..*/\1/
  8571. t more2
  8572. s/["\\]/\\&/g; s/^/"/; s/$/"/
  8573. p
  8574. b
  8575. :more2
  8576. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8577. p
  8578. g
  8579. s/.\{148\}//
  8580. t delim
  8581. ' <conf$$subs.awk | sed '
  8582. /^[^""]/{
  8583. N
  8584. s/\n//
  8585. }
  8586. ' >>$CONFIG_STATUS || ac_write_fail=1
  8587. rm -f conf$$subs.awk
  8588. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8589. _ACAWK
  8590. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  8591. for (key in S) S_is_set[key] = 1
  8592. FS = ""
  8593. }
  8594. {
  8595. line = $ 0
  8596. nfields = split(line, field, "@")
  8597. substed = 0
  8598. len = length(field[1])
  8599. for (i = 2; i < nfields; i++) {
  8600. key = field[i]
  8601. keylen = length(key)
  8602. if (S_is_set[key]) {
  8603. value = S[key]
  8604. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  8605. len += length(value) + length(field[++i])
  8606. substed = 1
  8607. } else
  8608. len += 1 + keylen
  8609. }
  8610. print line
  8611. }
  8612. _ACAWK
  8613. _ACEOF
  8614. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8615. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  8616. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  8617. else
  8618. cat
  8619. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  8620. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  8621. _ACEOF
  8622. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  8623. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  8624. # trailing colons and then remove the whole line if VPATH becomes empty
  8625. # (actually we leave an empty line to preserve line numbers).
  8626. if test "x$srcdir" = x.; then
  8627. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  8628. h
  8629. s///
  8630. s/^/:/
  8631. s/[ ]*$/:/
  8632. s/:\$(srcdir):/:/g
  8633. s/:\${srcdir}:/:/g
  8634. s/:@srcdir@:/:/g
  8635. s/^:*//
  8636. s/:*$//
  8637. x
  8638. s/\(=[ ]*\).*/\1/
  8639. G
  8640. s/\n//
  8641. s/^[^=]*=[ ]*$//
  8642. }'
  8643. fi
  8644. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8645. fi # test -n "$CONFIG_FILES"
  8646. # Set up the scripts for CONFIG_HEADERS section.
  8647. # No need to generate them if there are no CONFIG_HEADERS.
  8648. # This happens for instance with `./build/config.status Makefile'.
  8649. if test -n "$CONFIG_HEADERS"; then
  8650. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  8651. BEGIN {
  8652. _ACEOF
  8653. # Transform build/confdefs.h into an awk script `defines.awk', embedded as
  8654. # here-document in build/config.status, that substitutes the proper values into
  8655. # config.h.in to produce config.h.
  8656. # Create a delimiter string that does not exist in build/confdefs.h, to ease
  8657. # handling of long lines.
  8658. ac_delim='%!_!# '
  8659. for ac_last_try in false false :; do
  8660. ac_tt=`sed -n "/$ac_delim/p" build/confdefs.h`
  8661. if test -z "$ac_tt"; then
  8662. break
  8663. elif $ac_last_try; then
  8664. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  8665. else
  8666. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8667. fi
  8668. done
  8669. # For the awk script, D is an array of macro values keyed by name,
  8670. # likewise P contains macro parameters if any. Preserve backslash
  8671. # newline sequences.
  8672. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  8673. sed -n '
  8674. s/.\{148\}/&'"$ac_delim"'/g
  8675. t rset
  8676. :rset
  8677. s/^[ ]*#[ ]*define[ ][ ]*/ /
  8678. t def
  8679. d
  8680. :def
  8681. s/\\$//
  8682. t bsnl
  8683. s/["\\]/\\&/g
  8684. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8685. D["\1"]=" \3"/p
  8686. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  8687. d
  8688. :bsnl
  8689. s/["\\]/\\&/g
  8690. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8691. D["\1"]=" \3\\\\\\n"\\/p
  8692. t cont
  8693. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  8694. t cont
  8695. d
  8696. :cont
  8697. n
  8698. s/.\{148\}/&'"$ac_delim"'/g
  8699. t clear
  8700. :clear
  8701. s/\\$//
  8702. t bsnlc
  8703. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  8704. d
  8705. :bsnlc
  8706. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  8707. b cont
  8708. ' <build/confdefs.h | sed '
  8709. s/'"$ac_delim"'/"\\\
  8710. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  8711. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8712. for (key in D) D_is_set[key] = 1
  8713. FS = ""
  8714. }
  8715. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  8716. line = \$ 0
  8717. split(line, arg, " ")
  8718. if (arg[1] == "#") {
  8719. defundef = arg[2]
  8720. mac1 = arg[3]
  8721. } else {
  8722. defundef = substr(arg[1], 2)
  8723. mac1 = arg[2]
  8724. }
  8725. split(mac1, mac2, "(") #)
  8726. macro = mac2[1]
  8727. prefix = substr(line, 1, index(line, defundef) - 1)
  8728. if (D_is_set[macro]) {
  8729. # Preserve the white space surrounding the "#".
  8730. print prefix "define", macro P[macro] D[macro]
  8731. next
  8732. } else {
  8733. # Replace #undef with comments. This is necessary, for example,
  8734. # in the case of _POSIX_SOURCE, which is predefined and required
  8735. # on some systems where configure will not decide to define it.
  8736. if (defundef == "undef") {
  8737. print "/*", prefix defundef, macro, "*/"
  8738. next
  8739. }
  8740. }
  8741. }
  8742. { print }
  8743. _ACAWK
  8744. _ACEOF
  8745. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8746. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  8747. fi # test -n "$CONFIG_HEADERS"
  8748. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  8749. shift
  8750. for ac_tag
  8751. do
  8752. case $ac_tag in
  8753. :[FHLC]) ac_mode=$ac_tag; continue;;
  8754. esac
  8755. case $ac_mode$ac_tag in
  8756. :[FHL]*:*);;
  8757. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  8758. :[FH]-) ac_tag=-:-;;
  8759. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  8760. esac
  8761. ac_save_IFS=$IFS
  8762. IFS=:
  8763. set x $ac_tag
  8764. IFS=$ac_save_IFS
  8765. shift
  8766. ac_file=$1
  8767. shift
  8768. case $ac_mode in
  8769. :L) ac_source=$1;;
  8770. :[FH])
  8771. ac_file_inputs=
  8772. for ac_f
  8773. do
  8774. case $ac_f in
  8775. -) ac_f="$ac_tmp/stdin";;
  8776. *) # Look for the file first in the build tree, then in the source tree
  8777. # (if the path is not absolute). The absolute path cannot be DOS-style,
  8778. # because $ac_f cannot contain `:'.
  8779. test -f "$ac_f" ||
  8780. case $ac_f in
  8781. [\\/$]*) false;;
  8782. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  8783. esac ||
  8784. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  8785. esac
  8786. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  8787. as_fn_append ac_file_inputs " '$ac_f'"
  8788. done
  8789. # Let's still pretend it is `configure' which instantiates (i.e., don't
  8790. # use $as_me), people would be surprised to read:
  8791. # /* config.h. Generated by build/config.status. */
  8792. configure_input='Generated from '`
  8793. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  8794. `' by configure.'
  8795. if test x"$ac_file" != x-; then
  8796. configure_input="$ac_file. $configure_input"
  8797. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  8798. $as_echo "$as_me: creating $ac_file" >&6;}
  8799. fi
  8800. # Neutralize special characters interpreted by sed in replacement strings.
  8801. case $configure_input in #(
  8802. *\&* | *\|* | *\\* )
  8803. ac_sed_conf_input=`$as_echo "$configure_input" |
  8804. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  8805. *) ac_sed_conf_input=$configure_input;;
  8806. esac
  8807. case $ac_tag in
  8808. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  8809. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  8810. esac
  8811. ;;
  8812. esac
  8813. ac_dir=`$as_dirname -- "$ac_file" ||
  8814. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8815. X"$ac_file" : 'X\(//\)[^/]' \| \
  8816. X"$ac_file" : 'X\(//\)$' \| \
  8817. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  8818. $as_echo X"$ac_file" |
  8819. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8820. s//\1/
  8821. q
  8822. }
  8823. /^X\(\/\/\)[^/].*/{
  8824. s//\1/
  8825. q
  8826. }
  8827. /^X\(\/\/\)$/{
  8828. s//\1/
  8829. q
  8830. }
  8831. /^X\(\/\).*/{
  8832. s//\1/
  8833. q
  8834. }
  8835. s/.*/./; q'`
  8836. as_dir="$ac_dir"; as_fn_mkdir_p
  8837. ac_builddir=.
  8838. case "$ac_dir" in
  8839. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8840. *)
  8841. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  8842. # A ".." for each directory in $ac_dir_suffix.
  8843. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  8844. case $ac_top_builddir_sub in
  8845. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8846. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  8847. esac ;;
  8848. esac
  8849. ac_abs_top_builddir=$ac_pwd
  8850. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  8851. # for backward compatibility:
  8852. ac_top_builddir=$ac_top_build_prefix
  8853. case $srcdir in
  8854. .) # We are building in place.
  8855. ac_srcdir=.
  8856. ac_top_srcdir=$ac_top_builddir_sub
  8857. ac_abs_top_srcdir=$ac_pwd ;;
  8858. [\\/]* | ?:[\\/]* ) # Absolute name.
  8859. ac_srcdir=$srcdir$ac_dir_suffix;
  8860. ac_top_srcdir=$srcdir
  8861. ac_abs_top_srcdir=$srcdir ;;
  8862. *) # Relative name.
  8863. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  8864. ac_top_srcdir=$ac_top_build_prefix$srcdir
  8865. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  8866. esac
  8867. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  8868. case $ac_mode in
  8869. :F)
  8870. #
  8871. # CONFIG_FILE
  8872. #
  8873. _ACEOF
  8874. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8875. # If the template does not know about datarootdir, expand it.
  8876. # FIXME: This hack should be removed a few years after 2.60.
  8877. ac_datarootdir_hack=; ac_datarootdir_seen=
  8878. ac_sed_dataroot='
  8879. /datarootdir/ {
  8880. p
  8881. q
  8882. }
  8883. /@datadir@/p
  8884. /@docdir@/p
  8885. /@infodir@/p
  8886. /@localedir@/p
  8887. /@mandir@/p'
  8888. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  8889. *datarootdir*) ac_datarootdir_seen=yes;;
  8890. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  8891. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  8892. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  8893. _ACEOF
  8894. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8895. ac_datarootdir_hack='
  8896. s&@datadir@&$datadir&g
  8897. s&@docdir@&$docdir&g
  8898. s&@infodir@&$infodir&g
  8899. s&@localedir@&$localedir&g
  8900. s&@mandir@&$mandir&g
  8901. s&\\\${datarootdir}&$datarootdir&g' ;;
  8902. esac
  8903. _ACEOF
  8904. # Neutralize VPATH when `$srcdir' = `.'.
  8905. # Shell code in configure.ac might set extrasub.
  8906. # FIXME: do we really want to maintain this feature?
  8907. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8908. ac_sed_extra="$ac_vpsub
  8909. $extrasub
  8910. _ACEOF
  8911. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8912. :t
  8913. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  8914. s|@configure_input@|$ac_sed_conf_input|;t t
  8915. s&@top_builddir@&$ac_top_builddir_sub&;t t
  8916. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  8917. s&@srcdir@&$ac_srcdir&;t t
  8918. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  8919. s&@top_srcdir@&$ac_top_srcdir&;t t
  8920. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  8921. s&@builddir@&$ac_builddir&;t t
  8922. s&@abs_builddir@&$ac_abs_builddir&;t t
  8923. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  8924. $ac_datarootdir_hack
  8925. "
  8926. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  8927. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8928. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  8929. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  8930. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  8931. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  8932. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8933. which seems to be undefined. Please make sure it is defined" >&5
  8934. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8935. which seems to be undefined. Please make sure it is defined" >&2;}
  8936. rm -f "$ac_tmp/stdin"
  8937. case $ac_file in
  8938. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  8939. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  8940. esac \
  8941. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8942. ;;
  8943. :H)
  8944. #
  8945. # CONFIG_HEADER
  8946. #
  8947. if test x"$ac_file" != x-; then
  8948. {
  8949. $as_echo "/* $configure_input */" \
  8950. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  8951. } >"$ac_tmp/config.h" \
  8952. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8953. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  8954. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  8955. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  8956. else
  8957. rm -f "$ac_file"
  8958. mv "$ac_tmp/config.h" "$ac_file" \
  8959. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8960. fi
  8961. else
  8962. $as_echo "/* $configure_input */" \
  8963. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  8964. || as_fn_error $? "could not create -" "$LINENO" 5
  8965. fi
  8966. ;;
  8967. esac
  8968. done # for ac_tag
  8969. as_fn_exit 0
  8970. _ACEOF
  8971. ac_clean_files=$ac_clean_files_save
  8972. test $ac_write_fail = 0 ||
  8973. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  8974. # configure is writing to build/config.log, and then calls build/config.status.
  8975. # build/config.status does its own redirection, appending to build/config.log.
  8976. # Unfortunately, on DOS this fails, as build/config.log is still kept open
  8977. # by configure, so build/config.status won't be able to write to it; its
  8978. # output is simply discarded. So we exec the FD to /dev/null,
  8979. # effectively closing build/config.log, so it can be properly (re)opened and
  8980. # appended to by build/config.status. When coming back to configure, we
  8981. # need to make the FD available again.
  8982. if test "$no_create" != yes; then
  8983. ac_cs_success=:
  8984. ac_config_status_args=
  8985. test "$silent" = yes &&
  8986. ac_config_status_args="$ac_config_status_args --quiet"
  8987. exec 5>/dev/null
  8988. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  8989. exec 5>>build/config.log
  8990. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  8991. # would make configure fail if this is the last instruction.
  8992. $ac_cs_success || as_fn_exit 1
  8993. fi
  8994. #
  8995. # CONFIG_SUBDIRS section.
  8996. #
  8997. if test "$no_recursion" != yes; then
  8998. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  8999. # so they do not pile up.
  9000. ac_sub_configure_args=
  9001. ac_prev=
  9002. eval "set x $ac_configure_args"
  9003. shift
  9004. for ac_arg
  9005. do
  9006. if test -n "$ac_prev"; then
  9007. ac_prev=
  9008. continue
  9009. fi
  9010. case $ac_arg in
  9011. -cache-file | --cache-file | --cache-fil | --cache-fi \
  9012. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  9013. ac_prev=cache_file ;;
  9014. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  9015. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  9016. | --c=*)
  9017. ;;
  9018. --config-cache | -C)
  9019. ;;
  9020. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  9021. ac_prev=srcdir ;;
  9022. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  9023. ;;
  9024. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  9025. ac_prev=prefix ;;
  9026. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  9027. ;;
  9028. --disable-option-checking)
  9029. ;;
  9030. *)
  9031. case $ac_arg in
  9032. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9033. esac
  9034. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  9035. esac
  9036. done
  9037. # Always prepend --prefix to ensure using the same prefix
  9038. # in subdir configurations.
  9039. ac_arg="--prefix=$prefix"
  9040. case $ac_arg in
  9041. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9042. esac
  9043. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  9044. # Pass --silent
  9045. if test "$silent" = yes; then
  9046. ac_sub_configure_args="--silent $ac_sub_configure_args"
  9047. fi
  9048. # Always prepend --disable-option-checking to silence warnings, since
  9049. # different subdirs can have different --enable and --with options.
  9050. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  9051. ac_popdir=`pwd`
  9052. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  9053. # Do not complain, so a configure script can configure whichever
  9054. # parts of a large source tree are present.
  9055. test -d "$srcdir/$ac_dir" || continue
  9056. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  9057. $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  9058. $as_echo "$ac_msg" >&6
  9059. as_dir="$ac_dir"; as_fn_mkdir_p
  9060. ac_builddir=.
  9061. case "$ac_dir" in
  9062. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9063. *)
  9064. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  9065. # A ".." for each directory in $ac_dir_suffix.
  9066. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9067. case $ac_top_builddir_sub in
  9068. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9069. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9070. esac ;;
  9071. esac
  9072. ac_abs_top_builddir=$ac_pwd
  9073. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9074. # for backward compatibility:
  9075. ac_top_builddir=$ac_top_build_prefix
  9076. case $srcdir in
  9077. .) # We are building in place.
  9078. ac_srcdir=.
  9079. ac_top_srcdir=$ac_top_builddir_sub
  9080. ac_abs_top_srcdir=$ac_pwd ;;
  9081. [\\/]* | ?:[\\/]* ) # Absolute name.
  9082. ac_srcdir=$srcdir$ac_dir_suffix;
  9083. ac_top_srcdir=$srcdir
  9084. ac_abs_top_srcdir=$srcdir ;;
  9085. *) # Relative name.
  9086. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9087. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9088. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9089. esac
  9090. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9091. cd "$ac_dir"
  9092. # Check for guested configure; otherwise get Cygnus style configure.
  9093. if test -f "$ac_srcdir/configure.gnu"; then
  9094. ac_sub_configure=$ac_srcdir/configure.gnu
  9095. elif test -f "$ac_srcdir/configure"; then
  9096. ac_sub_configure=$ac_srcdir/configure
  9097. elif test -f "$ac_srcdir/configure.in"; then
  9098. # This should be Cygnus configure.
  9099. ac_sub_configure=$ac_aux_dir/configure
  9100. else
  9101. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  9102. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  9103. ac_sub_configure=
  9104. fi
  9105. # The recursion is here.
  9106. if test -n "$ac_sub_configure"; then
  9107. # Make the cache file name correct relative to the subdirectory.
  9108. case $cache_file in
  9109. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  9110. *) # Relative name.
  9111. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  9112. esac
  9113. { $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
  9114. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  9115. # The eval makes quoting arguments work.
  9116. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  9117. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  9118. as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  9119. fi
  9120. cd "$ac_popdir"
  9121. done
  9122. fi
  9123. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  9124. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  9125. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  9126. fi
  9127. CXX="$CXX" CXXFLAGS="$CXXFLAGS" TCL_INCLUDES="$TCL_INCLUDES" SSL_INCLUDES="$SSL_INCLUDES" \
  9128. SED="$SED" src/generate_defs.sh || exit 1