configure 282 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187
  1. #! /bin/sh
  2. # From configure.ac Revision.
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.69.
  5. #
  6. #
  7. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. #
  13. # Copyright (c) Bryan Drewery
  14. ## -------------------- ##
  15. ## M4sh Initialization. ##
  16. ## -------------------- ##
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else
  27. case `(set -o) 2>/dev/null` in #(
  28. *posix*) :
  29. set -o posix ;; #(
  30. *) :
  31. ;;
  32. esac
  33. fi
  34. as_nl='
  35. '
  36. export as_nl
  37. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  38. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  41. # Prefer a ksh shell builtin over an external printf program on Solaris,
  42. # but without wasting forks for bash or zsh.
  43. if test -z "$BASH_VERSION$ZSH_VERSION" \
  44. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='print -r --'
  46. as_echo_n='print -rn --'
  47. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  48. as_echo='printf %s\n'
  49. as_echo_n='printf %s'
  50. else
  51. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  52. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  53. as_echo_n='/usr/ucb/echo -n'
  54. else
  55. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  56. as_echo_n_body='eval
  57. arg=$1;
  58. case $arg in #(
  59. *"$as_nl"*)
  60. expr "X$arg" : "X\\(.*\\)$as_nl";
  61. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  62. esac;
  63. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  64. '
  65. export as_echo_n_body
  66. as_echo_n='sh -c $as_echo_n_body as_echo'
  67. fi
  68. export as_echo_body
  69. as_echo='sh -c $as_echo_body as_echo'
  70. fi
  71. # The user is always right.
  72. if test "${PATH_SEPARATOR+set}" != set; then
  73. PATH_SEPARATOR=:
  74. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  75. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  76. PATH_SEPARATOR=';'
  77. }
  78. fi
  79. # IFS
  80. # We need space, tab and new line, in precisely that order. Quoting is
  81. # there to prevent editors from complaining about space-tab.
  82. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  83. # splitting by setting IFS to empty value.)
  84. IFS=" "" $as_nl"
  85. # Find who we are. Look in the path if we contain no directory separator.
  86. as_myself=
  87. case $0 in #((
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. exit 1
  107. fi
  108. # Unset variables that we do not need and which cause bugs (e.g. in
  109. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  110. # suppresses any "Segmentation fault" message there. '((' could
  111. # trigger a bug in pdksh 5.2.14.
  112. for as_var in BASH_ENV ENV MAIL MAILPATH
  113. do eval test x\${$as_var+set} = xset \
  114. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  115. done
  116. PS1='$ '
  117. PS2='> '
  118. PS4='+ '
  119. # NLS nuisances.
  120. LC_ALL=C
  121. export LC_ALL
  122. LANGUAGE=C
  123. export LANGUAGE
  124. # CDPATH.
  125. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  126. # Use a proper internal environment variable to ensure we don't fall
  127. # into an infinite loop, continuously re-executing ourselves.
  128. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  129. _as_can_reexec=no; export _as_can_reexec;
  130. # We cannot yet assume a decent shell, so we have to provide a
  131. # neutralization value for shells without unset; and this also
  132. # works around shells that cannot unset nonexistent variables.
  133. # Preserve -v and -x to the replacement shell.
  134. BASH_ENV=/dev/null
  135. ENV=/dev/null
  136. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  137. case $- in # ((((
  138. *v*x* | *x*v* ) as_opts=-vx ;;
  139. *v* ) as_opts=-v ;;
  140. *x* ) as_opts=-x ;;
  141. * ) as_opts= ;;
  142. esac
  143. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  144. # Admittedly, this is quite paranoid, since all the known shells bail
  145. # out after a failed `exec'.
  146. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  147. as_fn_exit 255
  148. fi
  149. # We don't want this to propagate to other subprocesses.
  150. { _as_can_reexec=; unset _as_can_reexec;}
  151. if test "x$CONFIG_SHELL" = x; then
  152. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  153. emulate sh
  154. NULLCMD=:
  155. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  156. # is contrary to our usage. Disable this feature.
  157. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  158. setopt NO_GLOB_SUBST
  159. else
  160. case \`(set -o) 2>/dev/null\` in #(
  161. *posix*) :
  162. set -o posix ;; #(
  163. *) :
  164. ;;
  165. esac
  166. fi
  167. "
  168. as_required="as_fn_return () { (exit \$1); }
  169. as_fn_success () { as_fn_return 0; }
  170. as_fn_failure () { as_fn_return 1; }
  171. as_fn_ret_success () { return 0; }
  172. as_fn_ret_failure () { return 1; }
  173. exitcode=0
  174. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  175. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  176. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  177. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  178. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  179. else
  180. exitcode=1; echo positional parameters were not saved.
  181. fi
  182. test x\$exitcode = x0 || exit 1
  183. test -x / || exit 1"
  184. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  185. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  186. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  187. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  188. test \$(( 1 + 1 )) = 2 || exit 1"
  189. if (eval "$as_required") 2>/dev/null; then :
  190. as_have_required=yes
  191. else
  192. as_have_required=no
  193. fi
  194. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  195. else
  196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  197. as_found=false
  198. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  199. do
  200. IFS=$as_save_IFS
  201. test -z "$as_dir" && as_dir=.
  202. as_found=:
  203. case $as_dir in #(
  204. /*)
  205. for as_base in sh bash ksh sh5; do
  206. # Try only shells that exist, to save several forks.
  207. as_shell=$as_dir/$as_base
  208. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  209. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  210. CONFIG_SHELL=$as_shell as_have_required=yes
  211. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  212. break 2
  213. fi
  214. fi
  215. done;;
  216. esac
  217. as_found=false
  218. done
  219. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  220. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  221. CONFIG_SHELL=$SHELL as_have_required=yes
  222. fi; }
  223. IFS=$as_save_IFS
  224. if test "x$CONFIG_SHELL" != x; then :
  225. export CONFIG_SHELL
  226. # We cannot yet assume a decent shell, so we have to provide a
  227. # neutralization value for shells without unset; and this also
  228. # works around shells that cannot unset nonexistent variables.
  229. # Preserve -v and -x to the replacement shell.
  230. BASH_ENV=/dev/null
  231. ENV=/dev/null
  232. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  233. case $- in # ((((
  234. *v*x* | *x*v* ) as_opts=-vx ;;
  235. *v* ) as_opts=-v ;;
  236. *x* ) as_opts=-x ;;
  237. * ) as_opts= ;;
  238. esac
  239. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  240. # Admittedly, this is quite paranoid, since all the known shells bail
  241. # out after a failed `exec'.
  242. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  243. exit 255
  244. fi
  245. if test x$as_have_required = xno; then :
  246. $as_echo "$0: This script requires a shell more modern than all"
  247. $as_echo "$0: the shells that I found on your system."
  248. if test x${ZSH_VERSION+set} = xset ; then
  249. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  250. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  251. else
  252. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  253. $0: including any error possibly output before this
  254. $0: message. Then install a modern shell, or manually run
  255. $0: the script under such a shell if you do have one."
  256. fi
  257. exit 1
  258. fi
  259. fi
  260. fi
  261. SHELL=${CONFIG_SHELL-/bin/sh}
  262. export SHELL
  263. # Unset more variables known to interfere with behavior of common tools.
  264. CLICOLOR_FORCE= GREP_OPTIONS=
  265. unset CLICOLOR_FORCE GREP_OPTIONS
  266. ## --------------------- ##
  267. ## M4sh Shell Functions. ##
  268. ## --------------------- ##
  269. # as_fn_unset VAR
  270. # ---------------
  271. # Portably unset VAR.
  272. as_fn_unset ()
  273. {
  274. { eval $1=; unset $1;}
  275. }
  276. as_unset=as_fn_unset
  277. # as_fn_set_status STATUS
  278. # -----------------------
  279. # Set $? to STATUS, without forking.
  280. as_fn_set_status ()
  281. {
  282. return $1
  283. } # as_fn_set_status
  284. # as_fn_exit STATUS
  285. # -----------------
  286. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  287. as_fn_exit ()
  288. {
  289. set +e
  290. as_fn_set_status $1
  291. exit $1
  292. } # as_fn_exit
  293. # as_fn_mkdir_p
  294. # -------------
  295. # Create "$as_dir" as a directory, including parents if necessary.
  296. as_fn_mkdir_p ()
  297. {
  298. case $as_dir in #(
  299. -*) as_dir=./$as_dir;;
  300. esac
  301. test -d "$as_dir" || eval $as_mkdir_p || {
  302. as_dirs=
  303. while :; do
  304. case $as_dir in #(
  305. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  306. *) as_qdir=$as_dir;;
  307. esac
  308. as_dirs="'$as_qdir' $as_dirs"
  309. as_dir=`$as_dirname -- "$as_dir" ||
  310. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  311. X"$as_dir" : 'X\(//\)[^/]' \| \
  312. X"$as_dir" : 'X\(//\)$' \| \
  313. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  314. $as_echo X"$as_dir" |
  315. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  316. s//\1/
  317. q
  318. }
  319. /^X\(\/\/\)[^/].*/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)$/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\).*/{
  328. s//\1/
  329. q
  330. }
  331. s/.*/./; q'`
  332. test -d "$as_dir" && break
  333. done
  334. test -z "$as_dirs" || eval "mkdir $as_dirs"
  335. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  336. } # as_fn_mkdir_p
  337. # as_fn_executable_p FILE
  338. # -----------------------
  339. # Test if FILE is an executable regular file.
  340. as_fn_executable_p ()
  341. {
  342. test -f "$1" && test -x "$1"
  343. } # as_fn_executable_p
  344. # as_fn_append VAR VALUE
  345. # ----------------------
  346. # Append the text in VALUE to the end of the definition contained in VAR. Take
  347. # advantage of any shell optimizations that allow amortized linear growth over
  348. # repeated appends, instead of the typical quadratic growth present in naive
  349. # implementations.
  350. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  351. eval 'as_fn_append ()
  352. {
  353. eval $1+=\$2
  354. }'
  355. else
  356. as_fn_append ()
  357. {
  358. eval $1=\$$1\$2
  359. }
  360. fi # as_fn_append
  361. # as_fn_arith ARG...
  362. # ------------------
  363. # Perform arithmetic evaluation on the ARGs, and store the result in the
  364. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  365. # must be portable across $(()) and expr.
  366. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  367. eval 'as_fn_arith ()
  368. {
  369. as_val=$(( $* ))
  370. }'
  371. else
  372. as_fn_arith ()
  373. {
  374. as_val=`expr "$@" || test $? -eq 1`
  375. }
  376. fi # as_fn_arith
  377. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  378. # ----------------------------------------
  379. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  380. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  381. # script with STATUS, using 1 if that was 0.
  382. as_fn_error ()
  383. {
  384. as_status=$1; test $as_status -eq 0 && as_status=1
  385. if test "$4"; then
  386. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  387. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  388. fi
  389. $as_echo "$as_me: error: $2" >&2
  390. as_fn_exit $as_status
  391. } # as_fn_error
  392. if expr a : '\(a\)' >/dev/null 2>&1 &&
  393. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  394. as_expr=expr
  395. else
  396. as_expr=false
  397. fi
  398. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  399. as_basename=basename
  400. else
  401. as_basename=false
  402. fi
  403. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  404. as_dirname=dirname
  405. else
  406. as_dirname=false
  407. fi
  408. as_me=`$as_basename -- "$0" ||
  409. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  410. X"$0" : 'X\(//\)$' \| \
  411. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  412. $as_echo X/"$0" |
  413. sed '/^.*\/\([^/][^/]*\)\/*$/{
  414. s//\1/
  415. q
  416. }
  417. /^X\/\(\/\/\)$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\).*/{
  422. s//\1/
  423. q
  424. }
  425. s/.*/./; q'`
  426. # Avoid depending upon Character Ranges.
  427. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  428. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  429. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  430. as_cr_digits='0123456789'
  431. as_cr_alnum=$as_cr_Letters$as_cr_digits
  432. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  433. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  434. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  435. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  436. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  437. sed -n '
  438. p
  439. /[$]LINENO/=
  440. ' <$as_myself |
  441. sed '
  442. s/[$]LINENO.*/&-/
  443. t lineno
  444. b
  445. :lineno
  446. N
  447. :loop
  448. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  449. t loop
  450. s/-\n.*//
  451. ' >$as_me.lineno &&
  452. chmod +x "$as_me.lineno" ||
  453. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  454. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  455. # already done that, so ensure we don't try to do so again and fall
  456. # in an infinite loop. This has already happened in practice.
  457. _as_can_reexec=no; export _as_can_reexec
  458. # Don't try to exec as it changes $[0], causing all sort of problems
  459. # (the dirname of $[0] is not the place where we might find the
  460. # original and so on. Autoconf is especially sensitive to this).
  461. . "./$as_me.lineno"
  462. # Exit status is that of the last command.
  463. exit
  464. }
  465. ECHO_C= ECHO_N= ECHO_T=
  466. case `echo -n x` in #(((((
  467. -n*)
  468. case `echo 'xy\c'` in
  469. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  470. xy) ECHO_C='\c';;
  471. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  472. ECHO_T=' ';;
  473. esac;;
  474. *)
  475. ECHO_N='-n';;
  476. esac
  477. rm -f conf$$ conf$$.exe conf$$.file
  478. if test -d conf$$.dir; then
  479. rm -f conf$$.dir/conf$$.file
  480. else
  481. rm -f conf$$.dir
  482. mkdir conf$$.dir 2>/dev/null
  483. fi
  484. if (echo >conf$$.file) 2>/dev/null; then
  485. if ln -s conf$$.file conf$$ 2>/dev/null; then
  486. as_ln_s='ln -s'
  487. # ... but there are two gotchas:
  488. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  489. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  490. # In both cases, we have to default to `cp -pR'.
  491. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  492. as_ln_s='cp -pR'
  493. elif ln conf$$.file conf$$ 2>/dev/null; then
  494. as_ln_s=ln
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. else
  499. as_ln_s='cp -pR'
  500. fi
  501. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  502. rmdir conf$$.dir 2>/dev/null
  503. if mkdir -p . 2>/dev/null; then
  504. as_mkdir_p='mkdir -p "$as_dir"'
  505. else
  506. test -d ./-p && rmdir ./-p
  507. as_mkdir_p=false
  508. fi
  509. as_test_x='test -x'
  510. as_executable_p=as_fn_executable_p
  511. # Sed expression to map a string onto a valid CPP name.
  512. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  513. # Sed expression to map a string onto a valid variable name.
  514. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  515. test -n "$DJDIR" || exec 7<&0 </dev/null
  516. exec 6>&1
  517. # Name of the host.
  518. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  519. # so uname gets run too.
  520. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  521. #
  522. # Initializations.
  523. #
  524. ac_default_prefix=/usr/local
  525. ac_clean_files=
  526. ac_config_libobj_dir=.
  527. LIBOBJS=
  528. cross_compiling=no
  529. subdirs=
  530. MFLAGS=
  531. MAKEFLAGS=
  532. # Identity of this package.
  533. PACKAGE_NAME=
  534. PACKAGE_TARNAME=
  535. PACKAGE_VERSION=
  536. PACKAGE_STRING=
  537. PACKAGE_BUGREPORT=
  538. PACKAGE_URL=
  539. ac_unique_file="wraith"
  540. ac_unique_file="src/eggdrop.h"
  541. # Factoring default headers for most tests.
  542. ac_includes_default="\
  543. #include <stdio.h>
  544. #ifdef HAVE_SYS_TYPES_H
  545. # include <sys/types.h>
  546. #endif
  547. #ifdef HAVE_SYS_STAT_H
  548. # include <sys/stat.h>
  549. #endif
  550. #ifdef STDC_HEADERS
  551. # include <stdlib.h>
  552. # include <stddef.h>
  553. #else
  554. # ifdef HAVE_STDLIB_H
  555. # include <stdlib.h>
  556. # endif
  557. #endif
  558. #ifdef HAVE_STRING_H
  559. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  560. # include <memory.h>
  561. # endif
  562. # include <string.h>
  563. #endif
  564. #ifdef HAVE_STRINGS_H
  565. # include <strings.h>
  566. #endif
  567. #ifdef HAVE_INTTYPES_H
  568. # include <inttypes.h>
  569. #endif
  570. #ifdef HAVE_STDINT_H
  571. # include <stdint.h>
  572. #endif
  573. #ifdef HAVE_UNISTD_H
  574. # include <unistd.h>
  575. #endif"
  576. ac_header_list=
  577. enable_option_checking=no
  578. ac_subst_vars='LTLIBOBJS
  579. subdirs
  580. NUMVER
  581. VERSION
  582. LIBOBJS
  583. TCL_LIBS
  584. TCL_REQS
  585. DEFAULT_MAKE
  586. TCLINCFN
  587. TCL_INCLUDES
  588. TCLLIBFN
  589. TCLLIB
  590. SSL_LIBS
  591. SSL_INCLUDES
  592. LIBELF_LIB
  593. LIBELF_BUNDLED
  594. EGREP
  595. GREP
  596. DEBLDFLAGS
  597. DEBCXXFLAGS
  598. STATIC
  599. BUILDARCH
  600. BUILDOS
  601. UNAME
  602. DIFF
  603. STRIP
  604. OBJCOPY
  605. BASENAME
  606. AWK
  607. HEAD_1
  608. SED
  609. SET_MAKE
  610. GCC4DEB
  611. GCC3DEB
  612. GCC3_CXXFLAGS
  613. GCC3_CFLAGS
  614. CCDEPMODE
  615. HAVE_CXX11
  616. CXXCPP
  617. CC
  618. OBJEXT
  619. EXEEXT
  620. ac_ct_CXX
  621. CPPFLAGS
  622. LDFLAGS
  623. CXXFLAGS
  624. CXX
  625. egg_ac_parameters
  626. target_alias
  627. host_alias
  628. build_alias
  629. LIBS
  630. ECHO_T
  631. ECHO_N
  632. ECHO_C
  633. DEFS
  634. mandir
  635. localedir
  636. libdir
  637. psdir
  638. pdfdir
  639. dvidir
  640. htmldir
  641. infodir
  642. docdir
  643. oldincludedir
  644. includedir
  645. localstatedir
  646. sharedstatedir
  647. sysconfdir
  648. datadir
  649. datarootdir
  650. libexecdir
  651. sbindir
  652. bindir
  653. program_transform_name
  654. prefix
  655. exec_prefix
  656. PACKAGE_URL
  657. PACKAGE_BUGREPORT
  658. PACKAGE_STRING
  659. PACKAGE_VERSION
  660. PACKAGE_TARNAME
  661. PACKAGE_NAME
  662. PATH_SEPARATOR
  663. SHELL'
  664. ac_subst_files=''
  665. ac_user_opts='
  666. enable_option_checking
  667. enable_ipv6
  668. with_openssl
  669. with_tcllib
  670. with_tclinc
  671. enable_script_tcl
  672. '
  673. ac_precious_vars='build_alias
  674. host_alias
  675. target_alias
  676. CXX
  677. CXXFLAGS
  678. LDFLAGS
  679. LIBS
  680. CPPFLAGS
  681. CCC
  682. CXXCPP'
  683. ac_subdirs_all='lib/bdlib
  684. lib/libelf'
  685. # Initialize some variables set by options.
  686. ac_init_help=
  687. ac_init_version=false
  688. ac_unrecognized_opts=
  689. ac_unrecognized_sep=
  690. # The variables have the same names as the options, with
  691. # dashes changed to underlines.
  692. cache_file=/dev/null
  693. exec_prefix=NONE
  694. no_create=
  695. no_recursion=
  696. prefix=NONE
  697. program_prefix=NONE
  698. program_suffix=NONE
  699. program_transform_name=s,x,x,
  700. silent=
  701. site=
  702. srcdir=
  703. verbose=
  704. x_includes=NONE
  705. x_libraries=NONE
  706. # Installation directory options.
  707. # These are left unexpanded so users can "make install exec_prefix=/foo"
  708. # and all the variables that are supposed to be based on exec_prefix
  709. # by default will actually change.
  710. # Use braces instead of parens because sh, perl, etc. also accept them.
  711. # (The list follows the same order as the GNU Coding Standards.)
  712. bindir='${exec_prefix}/bin'
  713. sbindir='${exec_prefix}/sbin'
  714. libexecdir='${exec_prefix}/libexec'
  715. datarootdir='${prefix}/share'
  716. datadir='${datarootdir}'
  717. sysconfdir='${prefix}/etc'
  718. sharedstatedir='${prefix}/com'
  719. localstatedir='${prefix}/var'
  720. includedir='${prefix}/include'
  721. oldincludedir='/usr/include'
  722. docdir='${datarootdir}/doc/${PACKAGE}'
  723. infodir='${datarootdir}/info'
  724. htmldir='${docdir}'
  725. dvidir='${docdir}'
  726. pdfdir='${docdir}'
  727. psdir='${docdir}'
  728. libdir='${exec_prefix}/lib'
  729. localedir='${datarootdir}/locale'
  730. mandir='${datarootdir}/man'
  731. ac_prev=
  732. ac_dashdash=
  733. for ac_option
  734. do
  735. # If the previous option needs an argument, assign it.
  736. if test -n "$ac_prev"; then
  737. eval $ac_prev=\$ac_option
  738. ac_prev=
  739. continue
  740. fi
  741. case $ac_option in
  742. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  743. *=) ac_optarg= ;;
  744. *) ac_optarg=yes ;;
  745. esac
  746. # Accept the important Cygnus configure options, so we can diagnose typos.
  747. case $ac_dashdash$ac_option in
  748. --)
  749. ac_dashdash=yes ;;
  750. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  751. ac_prev=bindir ;;
  752. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  753. bindir=$ac_optarg ;;
  754. -build | --build | --buil | --bui | --bu)
  755. ac_prev=build_alias ;;
  756. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  757. build_alias=$ac_optarg ;;
  758. -cache-file | --cache-file | --cache-fil | --cache-fi \
  759. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  760. ac_prev=cache_file ;;
  761. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  762. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  763. cache_file=$ac_optarg ;;
  764. --config-cache | -C)
  765. cache_file=config.cache ;;
  766. -datadir | --datadir | --datadi | --datad)
  767. ac_prev=datadir ;;
  768. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  769. datadir=$ac_optarg ;;
  770. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  771. | --dataroo | --dataro | --datar)
  772. ac_prev=datarootdir ;;
  773. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  774. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  775. datarootdir=$ac_optarg ;;
  776. -disable-* | --disable-*)
  777. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  778. # Reject names that are not valid shell variable names.
  779. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  780. as_fn_error $? "invalid feature name: $ac_useropt"
  781. ac_useropt_orig=$ac_useropt
  782. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  783. case $ac_user_opts in
  784. *"
  785. "enable_$ac_useropt"
  786. "*) ;;
  787. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  788. ac_unrecognized_sep=', ';;
  789. esac
  790. eval enable_$ac_useropt=no ;;
  791. -docdir | --docdir | --docdi | --doc | --do)
  792. ac_prev=docdir ;;
  793. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  794. docdir=$ac_optarg ;;
  795. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  796. ac_prev=dvidir ;;
  797. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  798. dvidir=$ac_optarg ;;
  799. -enable-* | --enable-*)
  800. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  801. # Reject names that are not valid shell variable names.
  802. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  803. as_fn_error $? "invalid feature name: $ac_useropt"
  804. ac_useropt_orig=$ac_useropt
  805. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  806. case $ac_user_opts in
  807. *"
  808. "enable_$ac_useropt"
  809. "*) ;;
  810. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  811. ac_unrecognized_sep=', ';;
  812. esac
  813. eval enable_$ac_useropt=\$ac_optarg ;;
  814. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  815. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  816. | --exec | --exe | --ex)
  817. ac_prev=exec_prefix ;;
  818. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  819. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  820. | --exec=* | --exe=* | --ex=*)
  821. exec_prefix=$ac_optarg ;;
  822. -gas | --gas | --ga | --g)
  823. # Obsolete; use --with-gas.
  824. with_gas=yes ;;
  825. -help | --help | --hel | --he | -h)
  826. ac_init_help=long ;;
  827. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  828. ac_init_help=recursive ;;
  829. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  830. ac_init_help=short ;;
  831. -host | --host | --hos | --ho)
  832. ac_prev=host_alias ;;
  833. -host=* | --host=* | --hos=* | --ho=*)
  834. host_alias=$ac_optarg ;;
  835. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  836. ac_prev=htmldir ;;
  837. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  838. | --ht=*)
  839. htmldir=$ac_optarg ;;
  840. -includedir | --includedir | --includedi | --included | --include \
  841. | --includ | --inclu | --incl | --inc)
  842. ac_prev=includedir ;;
  843. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  844. | --includ=* | --inclu=* | --incl=* | --inc=*)
  845. includedir=$ac_optarg ;;
  846. -infodir | --infodir | --infodi | --infod | --info | --inf)
  847. ac_prev=infodir ;;
  848. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  849. infodir=$ac_optarg ;;
  850. -libdir | --libdir | --libdi | --libd)
  851. ac_prev=libdir ;;
  852. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  853. libdir=$ac_optarg ;;
  854. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  855. | --libexe | --libex | --libe)
  856. ac_prev=libexecdir ;;
  857. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  858. | --libexe=* | --libex=* | --libe=*)
  859. libexecdir=$ac_optarg ;;
  860. -localedir | --localedir | --localedi | --localed | --locale)
  861. ac_prev=localedir ;;
  862. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  863. localedir=$ac_optarg ;;
  864. -localstatedir | --localstatedir | --localstatedi | --localstated \
  865. | --localstate | --localstat | --localsta | --localst | --locals)
  866. ac_prev=localstatedir ;;
  867. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  868. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  869. localstatedir=$ac_optarg ;;
  870. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  871. ac_prev=mandir ;;
  872. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  873. mandir=$ac_optarg ;;
  874. -nfp | --nfp | --nf)
  875. # Obsolete; use --without-fp.
  876. with_fp=no ;;
  877. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  878. | --no-cr | --no-c | -n)
  879. no_create=yes ;;
  880. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  881. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  882. no_recursion=yes ;;
  883. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  884. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  885. | --oldin | --oldi | --old | --ol | --o)
  886. ac_prev=oldincludedir ;;
  887. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  888. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  889. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  890. oldincludedir=$ac_optarg ;;
  891. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  892. ac_prev=prefix ;;
  893. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  894. prefix=$ac_optarg ;;
  895. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  896. | --program-pre | --program-pr | --program-p)
  897. ac_prev=program_prefix ;;
  898. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  899. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  900. program_prefix=$ac_optarg ;;
  901. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  902. | --program-suf | --program-su | --program-s)
  903. ac_prev=program_suffix ;;
  904. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  905. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  906. program_suffix=$ac_optarg ;;
  907. -program-transform-name | --program-transform-name \
  908. | --program-transform-nam | --program-transform-na \
  909. | --program-transform-n | --program-transform- \
  910. | --program-transform | --program-transfor \
  911. | --program-transfo | --program-transf \
  912. | --program-trans | --program-tran \
  913. | --progr-tra | --program-tr | --program-t)
  914. ac_prev=program_transform_name ;;
  915. -program-transform-name=* | --program-transform-name=* \
  916. | --program-transform-nam=* | --program-transform-na=* \
  917. | --program-transform-n=* | --program-transform-=* \
  918. | --program-transform=* | --program-transfor=* \
  919. | --program-transfo=* | --program-transf=* \
  920. | --program-trans=* | --program-tran=* \
  921. | --progr-tra=* | --program-tr=* | --program-t=*)
  922. program_transform_name=$ac_optarg ;;
  923. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  924. ac_prev=pdfdir ;;
  925. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  926. pdfdir=$ac_optarg ;;
  927. -psdir | --psdir | --psdi | --psd | --ps)
  928. ac_prev=psdir ;;
  929. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  930. psdir=$ac_optarg ;;
  931. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  932. | -silent | --silent | --silen | --sile | --sil)
  933. silent=yes ;;
  934. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  935. ac_prev=sbindir ;;
  936. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  937. | --sbi=* | --sb=*)
  938. sbindir=$ac_optarg ;;
  939. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  940. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  941. | --sharedst | --shareds | --shared | --share | --shar \
  942. | --sha | --sh)
  943. ac_prev=sharedstatedir ;;
  944. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  945. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  946. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  947. | --sha=* | --sh=*)
  948. sharedstatedir=$ac_optarg ;;
  949. -site | --site | --sit)
  950. ac_prev=site ;;
  951. -site=* | --site=* | --sit=*)
  952. site=$ac_optarg ;;
  953. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  954. ac_prev=srcdir ;;
  955. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  956. srcdir=$ac_optarg ;;
  957. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  958. | --syscon | --sysco | --sysc | --sys | --sy)
  959. ac_prev=sysconfdir ;;
  960. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  961. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  962. sysconfdir=$ac_optarg ;;
  963. -target | --target | --targe | --targ | --tar | --ta | --t)
  964. ac_prev=target_alias ;;
  965. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  966. target_alias=$ac_optarg ;;
  967. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  968. verbose=yes ;;
  969. -version | --version | --versio | --versi | --vers | -V)
  970. ac_init_version=: ;;
  971. -with-* | --with-*)
  972. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  973. # Reject names that are not valid shell variable names.
  974. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  975. as_fn_error $? "invalid package name: $ac_useropt"
  976. ac_useropt_orig=$ac_useropt
  977. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  978. case $ac_user_opts in
  979. *"
  980. "with_$ac_useropt"
  981. "*) ;;
  982. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  983. ac_unrecognized_sep=', ';;
  984. esac
  985. eval with_$ac_useropt=\$ac_optarg ;;
  986. -without-* | --without-*)
  987. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  988. # Reject names that are not valid shell variable names.
  989. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  990. as_fn_error $? "invalid package name: $ac_useropt"
  991. ac_useropt_orig=$ac_useropt
  992. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  993. case $ac_user_opts in
  994. *"
  995. "with_$ac_useropt"
  996. "*) ;;
  997. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  998. ac_unrecognized_sep=', ';;
  999. esac
  1000. eval with_$ac_useropt=no ;;
  1001. --x)
  1002. # Obsolete; use --with-x.
  1003. with_x=yes ;;
  1004. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1005. | --x-incl | --x-inc | --x-in | --x-i)
  1006. ac_prev=x_includes ;;
  1007. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1008. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1009. x_includes=$ac_optarg ;;
  1010. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1011. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1012. ac_prev=x_libraries ;;
  1013. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1014. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1015. x_libraries=$ac_optarg ;;
  1016. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1017. Try \`$0 --help' for more information"
  1018. ;;
  1019. *=*)
  1020. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1021. # Reject names that are not valid shell variable names.
  1022. case $ac_envvar in #(
  1023. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1024. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1025. esac
  1026. eval $ac_envvar=\$ac_optarg
  1027. export $ac_envvar ;;
  1028. *)
  1029. # FIXME: should be removed in autoconf 3.0.
  1030. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1031. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1032. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1033. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1034. ;;
  1035. esac
  1036. done
  1037. if test -n "$ac_prev"; then
  1038. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1039. as_fn_error $? "missing argument to $ac_option"
  1040. fi
  1041. if test -n "$ac_unrecognized_opts"; then
  1042. case $enable_option_checking in
  1043. no) ;;
  1044. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1045. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1046. esac
  1047. fi
  1048. # Check all directory arguments for consistency.
  1049. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1050. datadir sysconfdir sharedstatedir localstatedir includedir \
  1051. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1052. libdir localedir mandir
  1053. do
  1054. eval ac_val=\$$ac_var
  1055. # Remove trailing slashes.
  1056. case $ac_val in
  1057. */ )
  1058. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1059. eval $ac_var=\$ac_val;;
  1060. esac
  1061. # Be sure to have absolute directory names.
  1062. case $ac_val in
  1063. [\\/$]* | ?:[\\/]* ) continue;;
  1064. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1065. esac
  1066. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1067. done
  1068. # There might be people who depend on the old broken behavior: `$host'
  1069. # used to hold the argument of --host etc.
  1070. # FIXME: To remove some day.
  1071. build=$build_alias
  1072. host=$host_alias
  1073. target=$target_alias
  1074. # FIXME: To remove some day.
  1075. if test "x$host_alias" != x; then
  1076. if test "x$build_alias" = x; then
  1077. cross_compiling=maybe
  1078. elif test "x$build_alias" != "x$host_alias"; then
  1079. cross_compiling=yes
  1080. fi
  1081. fi
  1082. ac_tool_prefix=
  1083. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1084. test "$silent" = yes && exec 6>/dev/null
  1085. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1086. ac_ls_di=`ls -di .` &&
  1087. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1088. as_fn_error $? "working directory cannot be determined"
  1089. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1090. as_fn_error $? "pwd does not report name of working directory"
  1091. # Find the source files, if location was not specified.
  1092. if test -z "$srcdir"; then
  1093. ac_srcdir_defaulted=yes
  1094. # Try the directory containing this script, then the parent directory.
  1095. ac_confdir=`$as_dirname -- "$as_myself" ||
  1096. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1097. X"$as_myself" : 'X\(//\)[^/]' \| \
  1098. X"$as_myself" : 'X\(//\)$' \| \
  1099. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1100. $as_echo X"$as_myself" |
  1101. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1102. s//\1/
  1103. q
  1104. }
  1105. /^X\(\/\/\)[^/].*/{
  1106. s//\1/
  1107. q
  1108. }
  1109. /^X\(\/\/\)$/{
  1110. s//\1/
  1111. q
  1112. }
  1113. /^X\(\/\).*/{
  1114. s//\1/
  1115. q
  1116. }
  1117. s/.*/./; q'`
  1118. srcdir=$ac_confdir
  1119. if test ! -r "$srcdir/$ac_unique_file"; then
  1120. srcdir=..
  1121. fi
  1122. else
  1123. ac_srcdir_defaulted=no
  1124. fi
  1125. if test ! -r "$srcdir/$ac_unique_file"; then
  1126. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1127. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1128. fi
  1129. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1130. ac_abs_confdir=`(
  1131. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1132. pwd)`
  1133. # When building in place, set srcdir=.
  1134. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1135. srcdir=.
  1136. fi
  1137. # Remove unnecessary trailing slashes from srcdir.
  1138. # Double slashes in file names in object file debugging info
  1139. # mess up M-x gdb in Emacs.
  1140. case $srcdir in
  1141. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1142. esac
  1143. for ac_var in $ac_precious_vars; do
  1144. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1145. eval ac_env_${ac_var}_value=\$${ac_var}
  1146. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1147. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1148. done
  1149. #
  1150. # Report the --help message.
  1151. #
  1152. if test "$ac_init_help" = "long"; then
  1153. # Omit some internal or obsolete options to make the list less imposing.
  1154. # This message is too long to be a string in the A/UX 3.1 sh.
  1155. cat <<_ACEOF
  1156. \`configure' configures this package to adapt to many kinds of systems.
  1157. Usage: $0 [OPTION]... [VAR=VALUE]...
  1158. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1159. VAR=VALUE. See below for descriptions of some of the useful variables.
  1160. Defaults for the options are specified in brackets.
  1161. Configuration:
  1162. -h, --help display this help and exit
  1163. --help=short display options specific to this package
  1164. --help=recursive display the short help of all the included packages
  1165. -V, --version display version information and exit
  1166. -q, --quiet, --silent do not print \`checking ...' messages
  1167. --cache-file=FILE cache test results in FILE [disabled]
  1168. -C, --config-cache alias for \`--cache-file=config.cache'
  1169. -n, --no-create do not create output files
  1170. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1171. Installation directories:
  1172. --prefix=PREFIX install architecture-independent files in PREFIX
  1173. [$ac_default_prefix]
  1174. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1175. [PREFIX]
  1176. By default, \`make install' will install all the files in
  1177. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1178. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1179. for instance \`--prefix=\$HOME'.
  1180. For better control, use the options below.
  1181. Fine tuning of the installation directories:
  1182. --bindir=DIR user executables [EPREFIX/bin]
  1183. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1184. --libexecdir=DIR program executables [EPREFIX/libexec]
  1185. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1186. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1187. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1188. --libdir=DIR object code libraries [EPREFIX/lib]
  1189. --includedir=DIR C header files [PREFIX/include]
  1190. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1191. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1192. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1193. --infodir=DIR info documentation [DATAROOTDIR/info]
  1194. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1195. --mandir=DIR man documentation [DATAROOTDIR/man]
  1196. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1197. --htmldir=DIR html documentation [DOCDIR]
  1198. --dvidir=DIR dvi documentation [DOCDIR]
  1199. --pdfdir=DIR pdf documentation [DOCDIR]
  1200. --psdir=DIR ps documentation [DOCDIR]
  1201. _ACEOF
  1202. cat <<\_ACEOF
  1203. _ACEOF
  1204. fi
  1205. if test -n "$ac_init_help"; then
  1206. cat <<\_ACEOF
  1207. Optional Features:
  1208. --disable-option-checking ignore unrecognized --enable/--with options
  1209. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1210. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1211. --disable-ipv6 disable IPv6 support
  1212. --disable-script-tcl disable TCL Script support
  1213. Optional Packages:
  1214. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1215. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1216. --with-openssl=PATH Path to OpenSSL
  1217. --with-tcllib=PATH full path to Tcl library
  1218. --with-tclinc=PATH full path to Tcl header
  1219. Some influential environment variables:
  1220. CXX C++ compiler command
  1221. CXXFLAGS C++ compiler flags
  1222. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1223. nonstandard directory <lib dir>
  1224. LIBS libraries to pass to the linker, e.g. -l<library>
  1225. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1226. you have headers in a nonstandard directory <include dir>
  1227. CXXCPP C++ preprocessor
  1228. Use these variables to override the choices made by `configure' or to help
  1229. it to find libraries and programs with nonstandard names/locations.
  1230. Report bugs to the package provider.
  1231. _ACEOF
  1232. ac_status=$?
  1233. fi
  1234. if test "$ac_init_help" = "recursive"; then
  1235. # If there are subdirs, report their specific --help.
  1236. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1237. test -d "$ac_dir" ||
  1238. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1239. continue
  1240. ac_builddir=.
  1241. case "$ac_dir" in
  1242. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1243. *)
  1244. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1245. # A ".." for each directory in $ac_dir_suffix.
  1246. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1247. case $ac_top_builddir_sub in
  1248. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1249. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1250. esac ;;
  1251. esac
  1252. ac_abs_top_builddir=$ac_pwd
  1253. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1254. # for backward compatibility:
  1255. ac_top_builddir=$ac_top_build_prefix
  1256. case $srcdir in
  1257. .) # We are building in place.
  1258. ac_srcdir=.
  1259. ac_top_srcdir=$ac_top_builddir_sub
  1260. ac_abs_top_srcdir=$ac_pwd ;;
  1261. [\\/]* | ?:[\\/]* ) # Absolute name.
  1262. ac_srcdir=$srcdir$ac_dir_suffix;
  1263. ac_top_srcdir=$srcdir
  1264. ac_abs_top_srcdir=$srcdir ;;
  1265. *) # Relative name.
  1266. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1267. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1268. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1269. esac
  1270. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1271. cd "$ac_dir" || { ac_status=$?; continue; }
  1272. # Check for guested configure.
  1273. if test -f "$ac_srcdir/configure.gnu"; then
  1274. echo &&
  1275. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1276. elif test -f "$ac_srcdir/configure"; then
  1277. echo &&
  1278. $SHELL "$ac_srcdir/configure" --help=recursive
  1279. else
  1280. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1281. fi || ac_status=$?
  1282. cd "$ac_pwd" || { ac_status=$?; break; }
  1283. done
  1284. fi
  1285. test -n "$ac_init_help" && exit $ac_status
  1286. if $ac_init_version; then
  1287. cat <<\_ACEOF
  1288. configure
  1289. generated by GNU Autoconf 2.69
  1290. Copyright (C) 2012 Free Software Foundation, Inc.
  1291. This configure script is free software; the Free Software Foundation
  1292. gives unlimited permission to copy, distribute and modify it.
  1293. Copyright (c) Bryan Drewery
  1294. _ACEOF
  1295. exit
  1296. fi
  1297. ## ------------------------ ##
  1298. ## Autoconf initialization. ##
  1299. ## ------------------------ ##
  1300. # ac_fn_cxx_try_compile LINENO
  1301. # ----------------------------
  1302. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1303. ac_fn_cxx_try_compile ()
  1304. {
  1305. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1306. rm -f conftest.$ac_objext
  1307. if { { ac_try="$ac_compile"
  1308. case "(($ac_try" in
  1309. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1310. *) ac_try_echo=$ac_try;;
  1311. esac
  1312. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1313. $as_echo "$ac_try_echo"; } >&5
  1314. (eval "$ac_compile") 2>conftest.err
  1315. ac_status=$?
  1316. if test -s conftest.err; then
  1317. grep -v '^ *+' conftest.err >conftest.er1
  1318. cat conftest.er1 >&5
  1319. mv -f conftest.er1 conftest.err
  1320. fi
  1321. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1322. test $ac_status = 0; } && {
  1323. test -z "$ac_cxx_werror_flag" ||
  1324. test ! -s conftest.err
  1325. } && test -s conftest.$ac_objext; then :
  1326. ac_retval=0
  1327. else
  1328. $as_echo "$as_me: failed program was:" >&5
  1329. sed 's/^/| /' conftest.$ac_ext >&5
  1330. ac_retval=1
  1331. fi
  1332. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1333. as_fn_set_status $ac_retval
  1334. } # ac_fn_cxx_try_compile
  1335. # ac_fn_cxx_try_cpp LINENO
  1336. # ------------------------
  1337. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1338. ac_fn_cxx_try_cpp ()
  1339. {
  1340. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1341. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1342. case "(($ac_try" in
  1343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1344. *) ac_try_echo=$ac_try;;
  1345. esac
  1346. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1347. $as_echo "$ac_try_echo"; } >&5
  1348. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1349. ac_status=$?
  1350. if test -s conftest.err; then
  1351. grep -v '^ *+' conftest.err >conftest.er1
  1352. cat conftest.er1 >&5
  1353. mv -f conftest.er1 conftest.err
  1354. fi
  1355. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1356. test $ac_status = 0; } > conftest.i && {
  1357. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1358. test ! -s conftest.err
  1359. }; then :
  1360. ac_retval=0
  1361. else
  1362. $as_echo "$as_me: failed program was:" >&5
  1363. sed 's/^/| /' conftest.$ac_ext >&5
  1364. ac_retval=1
  1365. fi
  1366. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1367. as_fn_set_status $ac_retval
  1368. } # ac_fn_cxx_try_cpp
  1369. # ac_fn_cxx_try_link LINENO
  1370. # -------------------------
  1371. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1372. ac_fn_cxx_try_link ()
  1373. {
  1374. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1375. rm -f conftest.$ac_objext conftest$ac_exeext
  1376. if { { ac_try="$ac_link"
  1377. case "(($ac_try" in
  1378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1379. *) ac_try_echo=$ac_try;;
  1380. esac
  1381. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1382. $as_echo "$ac_try_echo"; } >&5
  1383. (eval "$ac_link") 2>conftest.err
  1384. ac_status=$?
  1385. if test -s conftest.err; then
  1386. grep -v '^ *+' conftest.err >conftest.er1
  1387. cat conftest.er1 >&5
  1388. mv -f conftest.er1 conftest.err
  1389. fi
  1390. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1391. test $ac_status = 0; } && {
  1392. test -z "$ac_cxx_werror_flag" ||
  1393. test ! -s conftest.err
  1394. } && test -s conftest$ac_exeext && {
  1395. test "$cross_compiling" = yes ||
  1396. test -x conftest$ac_exeext
  1397. }; then :
  1398. ac_retval=0
  1399. else
  1400. $as_echo "$as_me: failed program was:" >&5
  1401. sed 's/^/| /' conftest.$ac_ext >&5
  1402. ac_retval=1
  1403. fi
  1404. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1405. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1406. # interfere with the next link command; also delete a directory that is
  1407. # left behind by Apple's compiler. We do this before executing the actions.
  1408. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1409. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1410. as_fn_set_status $ac_retval
  1411. } # ac_fn_cxx_try_link
  1412. # ac_fn_cxx_try_run LINENO
  1413. # ------------------------
  1414. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1415. # that executables *can* be run.
  1416. ac_fn_cxx_try_run ()
  1417. {
  1418. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1419. if { { ac_try="$ac_link"
  1420. case "(($ac_try" in
  1421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1422. *) ac_try_echo=$ac_try;;
  1423. esac
  1424. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1425. $as_echo "$ac_try_echo"; } >&5
  1426. (eval "$ac_link") 2>&5
  1427. ac_status=$?
  1428. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1429. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1430. { { case "(($ac_try" in
  1431. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1432. *) ac_try_echo=$ac_try;;
  1433. esac
  1434. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1435. $as_echo "$ac_try_echo"; } >&5
  1436. (eval "$ac_try") 2>&5
  1437. ac_status=$?
  1438. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1439. test $ac_status = 0; }; }; then :
  1440. ac_retval=0
  1441. else
  1442. $as_echo "$as_me: program exited with status $ac_status" >&5
  1443. $as_echo "$as_me: failed program was:" >&5
  1444. sed 's/^/| /' conftest.$ac_ext >&5
  1445. ac_retval=$ac_status
  1446. fi
  1447. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1448. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1449. as_fn_set_status $ac_retval
  1450. } # ac_fn_cxx_try_run
  1451. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1452. # ---------------------------------------------------------
  1453. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1454. # the include files in INCLUDES and setting the cache variable VAR
  1455. # accordingly.
  1456. ac_fn_cxx_check_header_mongrel ()
  1457. {
  1458. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1459. if eval \${$3+:} false; then :
  1460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1461. $as_echo_n "checking for $2... " >&6; }
  1462. if eval \${$3+:} false; then :
  1463. $as_echo_n "(cached) " >&6
  1464. fi
  1465. eval ac_res=\$$3
  1466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1467. $as_echo "$ac_res" >&6; }
  1468. else
  1469. # Is the header compilable?
  1470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1471. $as_echo_n "checking $2 usability... " >&6; }
  1472. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1473. /* end build/confdefs.h. */
  1474. $4
  1475. #include <$2>
  1476. _ACEOF
  1477. if ac_fn_cxx_try_compile "$LINENO"; then :
  1478. ac_header_compiler=yes
  1479. else
  1480. ac_header_compiler=no
  1481. fi
  1482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1484. $as_echo "$ac_header_compiler" >&6; }
  1485. # Is the header present?
  1486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1487. $as_echo_n "checking $2 presence... " >&6; }
  1488. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1489. /* end build/confdefs.h. */
  1490. #include <$2>
  1491. _ACEOF
  1492. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1493. ac_header_preproc=yes
  1494. else
  1495. ac_header_preproc=no
  1496. fi
  1497. rm -f conftest.err conftest.i conftest.$ac_ext
  1498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1499. $as_echo "$ac_header_preproc" >&6; }
  1500. # So? What about this header?
  1501. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1502. yes:no: )
  1503. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1504. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1505. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1506. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1507. ;;
  1508. no:yes:* )
  1509. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1510. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1511. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1512. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1513. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1514. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1515. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1516. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1518. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1519. ;;
  1520. esac
  1521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1522. $as_echo_n "checking for $2... " >&6; }
  1523. if eval \${$3+:} false; then :
  1524. $as_echo_n "(cached) " >&6
  1525. else
  1526. eval "$3=\$ac_header_compiler"
  1527. fi
  1528. eval ac_res=\$$3
  1529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1530. $as_echo "$ac_res" >&6; }
  1531. fi
  1532. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1533. } # ac_fn_cxx_check_header_mongrel
  1534. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1535. # ---------------------------------------------------------
  1536. # Tests whether HEADER exists and can be compiled using the include files in
  1537. # INCLUDES, setting the cache variable VAR accordingly.
  1538. ac_fn_cxx_check_header_compile ()
  1539. {
  1540. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1542. $as_echo_n "checking for $2... " >&6; }
  1543. if eval \${$3+:} false; then :
  1544. $as_echo_n "(cached) " >&6
  1545. else
  1546. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1547. /* end build/confdefs.h. */
  1548. $4
  1549. #include <$2>
  1550. _ACEOF
  1551. if ac_fn_cxx_try_compile "$LINENO"; then :
  1552. eval "$3=yes"
  1553. else
  1554. eval "$3=no"
  1555. fi
  1556. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1557. fi
  1558. eval ac_res=\$$3
  1559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1560. $as_echo "$ac_res" >&6; }
  1561. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1562. } # ac_fn_cxx_check_header_compile
  1563. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1564. # ---------------------------------------------
  1565. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1566. # variable VAR accordingly.
  1567. ac_fn_cxx_check_type ()
  1568. {
  1569. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1571. $as_echo_n "checking for $2... " >&6; }
  1572. if eval \${$3+:} false; then :
  1573. $as_echo_n "(cached) " >&6
  1574. else
  1575. eval "$3=no"
  1576. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1577. /* end build/confdefs.h. */
  1578. $4
  1579. int
  1580. main ()
  1581. {
  1582. if (sizeof ($2))
  1583. return 0;
  1584. ;
  1585. return 0;
  1586. }
  1587. _ACEOF
  1588. if ac_fn_cxx_try_compile "$LINENO"; then :
  1589. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1590. /* end build/confdefs.h. */
  1591. $4
  1592. int
  1593. main ()
  1594. {
  1595. if (sizeof (($2)))
  1596. return 0;
  1597. ;
  1598. return 0;
  1599. }
  1600. _ACEOF
  1601. if ac_fn_cxx_try_compile "$LINENO"; then :
  1602. else
  1603. eval "$3=yes"
  1604. fi
  1605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1606. fi
  1607. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1608. fi
  1609. eval ac_res=\$$3
  1610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1611. $as_echo "$ac_res" >&6; }
  1612. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1613. } # ac_fn_cxx_check_type
  1614. # ac_fn_c_find_intX_t LINENO BITS VAR
  1615. # -----------------------------------
  1616. # Finds a signed integer type with width BITS, setting cache variable VAR
  1617. # accordingly.
  1618. ac_fn_c_find_intX_t ()
  1619. {
  1620. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1622. $as_echo_n "checking for int$2_t... " >&6; }
  1623. if eval \${$3+:} false; then :
  1624. $as_echo_n "(cached) " >&6
  1625. else
  1626. eval "$3=no"
  1627. # Order is important - never check a type that is potentially smaller
  1628. # than half of the expected target width.
  1629. for ac_type in int$2_t 'int' 'long int' \
  1630. 'long long int' 'short int' 'signed char'; do
  1631. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1632. /* end build/confdefs.h. */
  1633. $ac_includes_default
  1634. enum { N = $2 / 2 - 1 };
  1635. int
  1636. main ()
  1637. {
  1638. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1639. test_array [0] = 0;
  1640. return test_array [0];
  1641. ;
  1642. return 0;
  1643. }
  1644. _ACEOF
  1645. if ac_fn_cxx_try_compile "$LINENO"; then :
  1646. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1647. /* end build/confdefs.h. */
  1648. $ac_includes_default
  1649. enum { N = $2 / 2 - 1 };
  1650. int
  1651. main ()
  1652. {
  1653. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1654. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1655. test_array [0] = 0;
  1656. return test_array [0];
  1657. ;
  1658. return 0;
  1659. }
  1660. _ACEOF
  1661. if ac_fn_cxx_try_compile "$LINENO"; then :
  1662. else
  1663. case $ac_type in #(
  1664. int$2_t) :
  1665. eval "$3=yes" ;; #(
  1666. *) :
  1667. eval "$3=\$ac_type" ;;
  1668. esac
  1669. fi
  1670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1671. fi
  1672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1673. if eval test \"x\$"$3"\" = x"no"; then :
  1674. else
  1675. break
  1676. fi
  1677. done
  1678. fi
  1679. eval ac_res=\$$3
  1680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1681. $as_echo "$ac_res" >&6; }
  1682. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1683. } # ac_fn_c_find_intX_t
  1684. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1685. # ------------------------------------
  1686. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1687. # accordingly.
  1688. ac_fn_c_find_uintX_t ()
  1689. {
  1690. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1692. $as_echo_n "checking for uint$2_t... " >&6; }
  1693. if eval \${$3+:} false; then :
  1694. $as_echo_n "(cached) " >&6
  1695. else
  1696. eval "$3=no"
  1697. # Order is important - never check a type that is potentially smaller
  1698. # than half of the expected target width.
  1699. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1700. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1701. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1702. /* end build/confdefs.h. */
  1703. $ac_includes_default
  1704. int
  1705. main ()
  1706. {
  1707. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1708. test_array [0] = 0;
  1709. return test_array [0];
  1710. ;
  1711. return 0;
  1712. }
  1713. _ACEOF
  1714. if ac_fn_cxx_try_compile "$LINENO"; then :
  1715. case $ac_type in #(
  1716. uint$2_t) :
  1717. eval "$3=yes" ;; #(
  1718. *) :
  1719. eval "$3=\$ac_type" ;;
  1720. esac
  1721. fi
  1722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1723. if eval test \"x\$"$3"\" = x"no"; then :
  1724. else
  1725. break
  1726. fi
  1727. done
  1728. fi
  1729. eval ac_res=\$$3
  1730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1731. $as_echo "$ac_res" >&6; }
  1732. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1733. } # ac_fn_c_find_uintX_t
  1734. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  1735. # ------------------------------------------------------
  1736. # Tries to find if the field MEMBER exists in type AGGR, after including
  1737. # INCLUDES, setting cache variable VAR accordingly.
  1738. ac_fn_cxx_check_member ()
  1739. {
  1740. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1742. $as_echo_n "checking for $2.$3... " >&6; }
  1743. if eval \${$4+:} false; then :
  1744. $as_echo_n "(cached) " >&6
  1745. else
  1746. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1747. /* end build/confdefs.h. */
  1748. $5
  1749. int
  1750. main ()
  1751. {
  1752. static $2 ac_aggr;
  1753. if (ac_aggr.$3)
  1754. return 0;
  1755. ;
  1756. return 0;
  1757. }
  1758. _ACEOF
  1759. if ac_fn_cxx_try_compile "$LINENO"; then :
  1760. eval "$4=yes"
  1761. else
  1762. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1763. /* end build/confdefs.h. */
  1764. $5
  1765. int
  1766. main ()
  1767. {
  1768. static $2 ac_aggr;
  1769. if (sizeof ac_aggr.$3)
  1770. return 0;
  1771. ;
  1772. return 0;
  1773. }
  1774. _ACEOF
  1775. if ac_fn_cxx_try_compile "$LINENO"; then :
  1776. eval "$4=yes"
  1777. else
  1778. eval "$4=no"
  1779. fi
  1780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1781. fi
  1782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1783. fi
  1784. eval ac_res=\$$4
  1785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1786. $as_echo "$ac_res" >&6; }
  1787. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1788. } # ac_fn_cxx_check_member
  1789. # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
  1790. # -----------------------------------------------
  1791. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1792. # accordingly.
  1793. ac_fn_cxx_check_decl ()
  1794. {
  1795. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1796. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1797. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1799. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1800. if eval \${$3+:} false; then :
  1801. $as_echo_n "(cached) " >&6
  1802. else
  1803. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1804. /* end build/confdefs.h. */
  1805. $4
  1806. int
  1807. main ()
  1808. {
  1809. #ifndef $as_decl_name
  1810. #ifdef __cplusplus
  1811. (void) $as_decl_use;
  1812. #else
  1813. (void) $as_decl_name;
  1814. #endif
  1815. #endif
  1816. ;
  1817. return 0;
  1818. }
  1819. _ACEOF
  1820. if ac_fn_cxx_try_compile "$LINENO"; then :
  1821. eval "$3=yes"
  1822. else
  1823. eval "$3=no"
  1824. fi
  1825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1826. fi
  1827. eval ac_res=\$$3
  1828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1829. $as_echo "$ac_res" >&6; }
  1830. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1831. } # ac_fn_cxx_check_decl
  1832. # ac_fn_cxx_check_func LINENO FUNC VAR
  1833. # ------------------------------------
  1834. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1835. ac_fn_cxx_check_func ()
  1836. {
  1837. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1839. $as_echo_n "checking for $2... " >&6; }
  1840. if eval \${$3+:} false; then :
  1841. $as_echo_n "(cached) " >&6
  1842. else
  1843. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1844. /* end build/confdefs.h. */
  1845. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1846. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1847. #define $2 innocuous_$2
  1848. /* System header to define __stub macros and hopefully few prototypes,
  1849. which can conflict with char $2 (); below.
  1850. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1851. <limits.h> exists even on freestanding compilers. */
  1852. #ifdef __STDC__
  1853. # include <limits.h>
  1854. #else
  1855. # include <assert.h>
  1856. #endif
  1857. #undef $2
  1858. /* Override any GCC internal prototype to avoid an error.
  1859. Use char because int might match the return type of a GCC
  1860. builtin and then its argument prototype would still apply. */
  1861. #ifdef __cplusplus
  1862. extern "C"
  1863. #endif
  1864. char $2 ();
  1865. /* The GNU C library defines this for functions which it implements
  1866. to always fail with ENOSYS. Some functions are actually named
  1867. something starting with __ and the normal name is an alias. */
  1868. #if defined __stub_$2 || defined __stub___$2
  1869. choke me
  1870. #endif
  1871. int
  1872. main ()
  1873. {
  1874. return $2 ();
  1875. ;
  1876. return 0;
  1877. }
  1878. _ACEOF
  1879. if ac_fn_cxx_try_link "$LINENO"; then :
  1880. eval "$3=yes"
  1881. else
  1882. eval "$3=no"
  1883. fi
  1884. rm -f core conftest.err conftest.$ac_objext \
  1885. conftest$ac_exeext conftest.$ac_ext
  1886. fi
  1887. eval ac_res=\$$3
  1888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1889. $as_echo "$ac_res" >&6; }
  1890. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1891. } # ac_fn_cxx_check_func
  1892. cat >build/config.log <<_ACEOF
  1893. This file contains any messages produced by compilers while
  1894. running configure, to aid debugging if configure makes a mistake.
  1895. It was created by $as_me, which was
  1896. generated by GNU Autoconf 2.69. Invocation command line was
  1897. $ $0 $@
  1898. _ACEOF
  1899. exec 5>>build/config.log
  1900. {
  1901. cat <<_ASUNAME
  1902. ## --------- ##
  1903. ## Platform. ##
  1904. ## --------- ##
  1905. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1906. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1907. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1908. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1909. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1910. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1911. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1912. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1913. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1914. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1915. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1916. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1917. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1918. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1919. _ASUNAME
  1920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1921. for as_dir in $PATH
  1922. do
  1923. IFS=$as_save_IFS
  1924. test -z "$as_dir" && as_dir=.
  1925. $as_echo "PATH: $as_dir"
  1926. done
  1927. IFS=$as_save_IFS
  1928. } >&5
  1929. cat >&5 <<_ACEOF
  1930. ## ----------- ##
  1931. ## Core tests. ##
  1932. ## ----------- ##
  1933. _ACEOF
  1934. # Keep a trace of the command line.
  1935. # Strip out --no-create and --no-recursion so they do not pile up.
  1936. # Strip out --silent because we don't want to record it for future runs.
  1937. # Also quote any args containing shell meta-characters.
  1938. # Make two passes to allow for proper duplicate-argument suppression.
  1939. ac_configure_args=
  1940. ac_configure_args0=
  1941. ac_configure_args1=
  1942. ac_must_keep_next=false
  1943. for ac_pass in 1 2
  1944. do
  1945. for ac_arg
  1946. do
  1947. case $ac_arg in
  1948. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1949. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1950. | -silent | --silent | --silen | --sile | --sil)
  1951. continue ;;
  1952. *\'*)
  1953. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1954. esac
  1955. case $ac_pass in
  1956. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1957. 2)
  1958. as_fn_append ac_configure_args1 " '$ac_arg'"
  1959. if test $ac_must_keep_next = true; then
  1960. ac_must_keep_next=false # Got value, back to normal.
  1961. else
  1962. case $ac_arg in
  1963. *=* | --config-cache | -C | -disable-* | --disable-* \
  1964. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1965. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1966. | -with-* | --with-* | -without-* | --without-* | --x)
  1967. case "$ac_configure_args0 " in
  1968. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1969. esac
  1970. ;;
  1971. -* ) ac_must_keep_next=true ;;
  1972. esac
  1973. fi
  1974. as_fn_append ac_configure_args " '$ac_arg'"
  1975. ;;
  1976. esac
  1977. done
  1978. done
  1979. { ac_configure_args0=; unset ac_configure_args0;}
  1980. { ac_configure_args1=; unset ac_configure_args1;}
  1981. # When interrupted or exit'd, cleanup temporary files, and complete
  1982. # build/config.log. We remove comments because anyway the quotes in there
  1983. # would cause problems or look ugly.
  1984. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1985. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1986. trap 'exit_status=$?
  1987. # Save into build/config.log some information that might help in debugging.
  1988. {
  1989. echo
  1990. $as_echo "## ---------------- ##
  1991. ## Cache variables. ##
  1992. ## ---------------- ##"
  1993. echo
  1994. # The following way of writing the cache mishandles newlines in values,
  1995. (
  1996. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1997. eval ac_val=\$$ac_var
  1998. case $ac_val in #(
  1999. *${as_nl}*)
  2000. case $ac_var in #(
  2001. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2002. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2003. esac
  2004. case $ac_var in #(
  2005. _ | IFS | as_nl) ;; #(
  2006. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2007. *) { eval $ac_var=; unset $ac_var;} ;;
  2008. esac ;;
  2009. esac
  2010. done
  2011. (set) 2>&1 |
  2012. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2013. *${as_nl}ac_space=\ *)
  2014. sed -n \
  2015. "s/'\''/'\''\\\\'\'''\''/g;
  2016. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2017. ;; #(
  2018. *)
  2019. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2020. ;;
  2021. esac |
  2022. sort
  2023. )
  2024. echo
  2025. $as_echo "## ----------------- ##
  2026. ## Output variables. ##
  2027. ## ----------------- ##"
  2028. echo
  2029. for ac_var in $ac_subst_vars
  2030. do
  2031. eval ac_val=\$$ac_var
  2032. case $ac_val in
  2033. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2034. esac
  2035. $as_echo "$ac_var='\''$ac_val'\''"
  2036. done | sort
  2037. echo
  2038. if test -n "$ac_subst_files"; then
  2039. $as_echo "## ------------------- ##
  2040. ## File substitutions. ##
  2041. ## ------------------- ##"
  2042. echo
  2043. for ac_var in $ac_subst_files
  2044. do
  2045. eval ac_val=\$$ac_var
  2046. case $ac_val in
  2047. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2048. esac
  2049. $as_echo "$ac_var='\''$ac_val'\''"
  2050. done | sort
  2051. echo
  2052. fi
  2053. if test -s build/confdefs.h; then
  2054. $as_echo "## ----------- ##
  2055. ## build/confdefs.h. ##
  2056. ## ----------- ##"
  2057. echo
  2058. cat build/confdefs.h
  2059. echo
  2060. fi
  2061. test "$ac_signal" != 0 &&
  2062. $as_echo "$as_me: caught signal $ac_signal"
  2063. $as_echo "$as_me: exit $exit_status"
  2064. } >&5
  2065. rm -f core *.core core.conftest.* &&
  2066. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2067. exit $exit_status
  2068. ' 0
  2069. for ac_signal in 1 2 13 15; do
  2070. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2071. done
  2072. ac_signal=0
  2073. # build/confdefs.h avoids OS command line length limits that DEFS can exceed.
  2074. rm -f -r conftest* build/confdefs.h
  2075. $as_echo "/* build/confdefs.h */" > build/confdefs.h
  2076. # Predefined preprocessor variables.
  2077. cat >>build/confdefs.h <<_ACEOF
  2078. #define PACKAGE_NAME "$PACKAGE_NAME"
  2079. _ACEOF
  2080. cat >>build/confdefs.h <<_ACEOF
  2081. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2082. _ACEOF
  2083. cat >>build/confdefs.h <<_ACEOF
  2084. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2085. _ACEOF
  2086. cat >>build/confdefs.h <<_ACEOF
  2087. #define PACKAGE_STRING "$PACKAGE_STRING"
  2088. _ACEOF
  2089. cat >>build/confdefs.h <<_ACEOF
  2090. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2091. _ACEOF
  2092. cat >>build/confdefs.h <<_ACEOF
  2093. #define PACKAGE_URL "$PACKAGE_URL"
  2094. _ACEOF
  2095. # Let the site file select an alternate cache file if it wants to.
  2096. # Prefer an explicitly selected file to automatically selected ones.
  2097. ac_site_file1=NONE
  2098. ac_site_file2=NONE
  2099. if test -n "$CONFIG_SITE"; then
  2100. # We do not want a PATH search for config.site.
  2101. case $CONFIG_SITE in #((
  2102. -*) ac_site_file1=./$CONFIG_SITE;;
  2103. */*) ac_site_file1=$CONFIG_SITE;;
  2104. *) ac_site_file1=./$CONFIG_SITE;;
  2105. esac
  2106. elif test "x$prefix" != xNONE; then
  2107. ac_site_file1=$prefix/share/config.site
  2108. ac_site_file2=$prefix/etc/config.site
  2109. else
  2110. ac_site_file1=$ac_default_prefix/share/config.site
  2111. ac_site_file2=$ac_default_prefix/etc/config.site
  2112. fi
  2113. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2114. do
  2115. test "x$ac_site_file" = xNONE && continue
  2116. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2117. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2118. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2119. sed 's/^/| /' "$ac_site_file" >&5
  2120. . "$ac_site_file" \
  2121. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2122. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2123. as_fn_error $? "failed to load site script $ac_site_file
  2124. See \`build/config.log' for more details" "$LINENO" 5; }
  2125. fi
  2126. done
  2127. if test -r "$cache_file"; then
  2128. # Some versions of bash will fail to source /dev/null (special files
  2129. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2130. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2131. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2132. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2133. case $cache_file in
  2134. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2135. *) . "./$cache_file";;
  2136. esac
  2137. fi
  2138. else
  2139. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2140. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2141. >$cache_file
  2142. fi
  2143. as_fn_append ac_header_list " stdlib.h"
  2144. as_fn_append ac_header_list " unistd.h"
  2145. as_fn_append ac_header_list " sys/param.h"
  2146. # Check that the precious variables saved in the cache have kept the same
  2147. # value.
  2148. ac_cache_corrupted=false
  2149. for ac_var in $ac_precious_vars; do
  2150. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2151. eval ac_new_set=\$ac_env_${ac_var}_set
  2152. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2153. eval ac_new_val=\$ac_env_${ac_var}_value
  2154. case $ac_old_set,$ac_new_set in
  2155. set,)
  2156. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2157. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2158. ac_cache_corrupted=: ;;
  2159. ,set)
  2160. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2161. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2162. ac_cache_corrupted=: ;;
  2163. ,);;
  2164. *)
  2165. if test "x$ac_old_val" != "x$ac_new_val"; then
  2166. # differences in whitespace do not lead to failure.
  2167. ac_old_val_w=`echo x $ac_old_val`
  2168. ac_new_val_w=`echo x $ac_new_val`
  2169. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2170. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2171. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2172. ac_cache_corrupted=:
  2173. else
  2174. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2175. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2176. eval $ac_var=\$ac_old_val
  2177. fi
  2178. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2179. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2180. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2181. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2182. fi;;
  2183. esac
  2184. # Pass precious variables to build/config.status.
  2185. if test "$ac_new_set" = set; then
  2186. case $ac_new_val in
  2187. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2188. *) ac_arg=$ac_var=$ac_new_val ;;
  2189. esac
  2190. case " $ac_configure_args " in
  2191. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2192. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2193. esac
  2194. fi
  2195. done
  2196. if $ac_cache_corrupted; then
  2197. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2198. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2199. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2200. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2201. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2202. fi
  2203. ## -------------------- ##
  2204. ## Main body of script. ##
  2205. ## -------------------- ##
  2206. ac_ext=c
  2207. ac_cpp='$CPP $CPPFLAGS'
  2208. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2209. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2210. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2211. ac_config_headers="$ac_config_headers src/config.h"
  2212. ac_aux_dir=
  2213. for ac_dir in build/autotools "$srcdir"/build/autotools; do
  2214. if test -f "$ac_dir/install-sh"; then
  2215. ac_aux_dir=$ac_dir
  2216. ac_install_sh="$ac_aux_dir/install-sh -c"
  2217. break
  2218. elif test -f "$ac_dir/install.sh"; then
  2219. ac_aux_dir=$ac_dir
  2220. ac_install_sh="$ac_aux_dir/install.sh -c"
  2221. break
  2222. elif test -f "$ac_dir/shtool"; then
  2223. ac_aux_dir=$ac_dir
  2224. ac_install_sh="$ac_aux_dir/shtool install -c"
  2225. break
  2226. fi
  2227. done
  2228. if test -z "$ac_aux_dir"; then
  2229. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build/autotools \"$srcdir\"/build/autotools" "$LINENO" 5
  2230. fi
  2231. # These three variables are undocumented and unsupported,
  2232. # and are intended to be withdrawn in a future Autoconf release.
  2233. # They can cause serious problems if a builder's source tree is in a directory
  2234. # whose full name contains unusual characters.
  2235. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2236. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2237. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2238. # Remove --cache-file and --srcdir arguments so they do not pile up.
  2239. egg_ac_parameters=
  2240. ac_prev=
  2241. for ac_arg in $ac_configure_args; do
  2242. if test -n "$ac_prev"; then
  2243. ac_prev=
  2244. continue
  2245. fi
  2246. case $ac_arg in
  2247. -cache-file | --cache-file | --cache-fil | --cache-fi \
  2248. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  2249. ac_prev=cache_file ;;
  2250. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  2251. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  2252. | --c=*)
  2253. ;;
  2254. --config-cache | -C)
  2255. ;;
  2256. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  2257. ac_prev=srcdir ;;
  2258. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  2259. ;;
  2260. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  2261. esac
  2262. done
  2263. # Setup build environment
  2264. #AC_REQUIRE_CPP
  2265. ac_ext=cpp
  2266. ac_cpp='$CXXCPP $CPPFLAGS'
  2267. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2268. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2269. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2270. ac_ext=cpp
  2271. ac_cpp='$CXXCPP $CPPFLAGS'
  2272. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2273. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2274. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2275. if test -z "$CXX"; then
  2276. if test -n "$CCC"; then
  2277. CXX=$CCC
  2278. else
  2279. if test -n "$ac_tool_prefix"; then
  2280. for ac_prog in g++8 g++7 g++6 g++5 g++49 g++-4.9 g++48 g++-4.8 g++47 g++-4.7 g++46 g++-4.6 eg++ g++ c++ CC cxx cc++
  2281. do
  2282. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2283. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2285. $as_echo_n "checking for $ac_word... " >&6; }
  2286. if ${ac_cv_prog_CXX+:} false; then :
  2287. $as_echo_n "(cached) " >&6
  2288. else
  2289. if test -n "$CXX"; then
  2290. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2291. else
  2292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2293. for as_dir in $PATH
  2294. do
  2295. IFS=$as_save_IFS
  2296. test -z "$as_dir" && as_dir=.
  2297. for ac_exec_ext in '' $ac_executable_extensions; do
  2298. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2299. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2300. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2301. break 2
  2302. fi
  2303. done
  2304. done
  2305. IFS=$as_save_IFS
  2306. fi
  2307. fi
  2308. CXX=$ac_cv_prog_CXX
  2309. if test -n "$CXX"; then
  2310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2311. $as_echo "$CXX" >&6; }
  2312. else
  2313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2314. $as_echo "no" >&6; }
  2315. fi
  2316. test -n "$CXX" && break
  2317. done
  2318. fi
  2319. if test -z "$CXX"; then
  2320. ac_ct_CXX=$CXX
  2321. for ac_prog in g++8 g++7 g++6 g++5 g++49 g++-4.9 g++48 g++-4.8 g++47 g++-4.7 g++46 g++-4.6 eg++ g++ c++ CC cxx cc++
  2322. do
  2323. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2324. set dummy $ac_prog; ac_word=$2
  2325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2326. $as_echo_n "checking for $ac_word... " >&6; }
  2327. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  2328. $as_echo_n "(cached) " >&6
  2329. else
  2330. if test -n "$ac_ct_CXX"; then
  2331. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2332. else
  2333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2334. for as_dir in $PATH
  2335. do
  2336. IFS=$as_save_IFS
  2337. test -z "$as_dir" && as_dir=.
  2338. for ac_exec_ext in '' $ac_executable_extensions; do
  2339. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2340. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2341. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2342. break 2
  2343. fi
  2344. done
  2345. done
  2346. IFS=$as_save_IFS
  2347. fi
  2348. fi
  2349. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2350. if test -n "$ac_ct_CXX"; then
  2351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2352. $as_echo "$ac_ct_CXX" >&6; }
  2353. else
  2354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2355. $as_echo "no" >&6; }
  2356. fi
  2357. test -n "$ac_ct_CXX" && break
  2358. done
  2359. if test "x$ac_ct_CXX" = x; then
  2360. CXX="g++"
  2361. else
  2362. case $cross_compiling:$ac_tool_warned in
  2363. yes:)
  2364. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2365. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2366. ac_tool_warned=yes ;;
  2367. esac
  2368. CXX=$ac_ct_CXX
  2369. fi
  2370. fi
  2371. fi
  2372. fi
  2373. # Provide some information about the compiler.
  2374. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2375. set X $ac_compile
  2376. ac_compiler=$2
  2377. for ac_option in --version -v -V -qversion; do
  2378. { { ac_try="$ac_compiler $ac_option >&5"
  2379. case "(($ac_try" in
  2380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2381. *) ac_try_echo=$ac_try;;
  2382. esac
  2383. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2384. $as_echo "$ac_try_echo"; } >&5
  2385. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2386. ac_status=$?
  2387. if test -s conftest.err; then
  2388. sed '10a\
  2389. ... rest of stderr output deleted ...
  2390. 10q' conftest.err >conftest.er1
  2391. cat conftest.er1 >&5
  2392. fi
  2393. rm -f conftest.er1 conftest.err
  2394. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2395. test $ac_status = 0; }
  2396. done
  2397. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2398. /* end build/confdefs.h. */
  2399. int
  2400. main ()
  2401. {
  2402. ;
  2403. return 0;
  2404. }
  2405. _ACEOF
  2406. ac_clean_files_save=$ac_clean_files
  2407. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2408. # Try to create an executable without -o first, disregard a.out.
  2409. # It will help us diagnose broken compilers, and finding out an intuition
  2410. # of exeext.
  2411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2412. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2413. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2414. # The possible output files:
  2415. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2416. ac_rmfiles=
  2417. for ac_file in $ac_files
  2418. do
  2419. case $ac_file in
  2420. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2421. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2422. esac
  2423. done
  2424. rm -f $ac_rmfiles
  2425. if { { ac_try="$ac_link_default"
  2426. case "(($ac_try" in
  2427. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2428. *) ac_try_echo=$ac_try;;
  2429. esac
  2430. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2431. $as_echo "$ac_try_echo"; } >&5
  2432. (eval "$ac_link_default") 2>&5
  2433. ac_status=$?
  2434. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2435. test $ac_status = 0; }; then :
  2436. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2437. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2438. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2439. # so that the user can short-circuit this test for compilers unknown to
  2440. # Autoconf.
  2441. for ac_file in $ac_files ''
  2442. do
  2443. test -f "$ac_file" || continue
  2444. case $ac_file in
  2445. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2446. ;;
  2447. [ab].out )
  2448. # We found the default executable, but exeext='' is most
  2449. # certainly right.
  2450. break;;
  2451. *.* )
  2452. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2453. then :; else
  2454. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2455. fi
  2456. # We set ac_cv_exeext here because the later test for it is not
  2457. # safe: cross compilers may not add the suffix if given an `-o'
  2458. # argument, so we may need to know it at that point already.
  2459. # Even if this section looks crufty: it has the advantage of
  2460. # actually working.
  2461. break;;
  2462. * )
  2463. break;;
  2464. esac
  2465. done
  2466. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2467. else
  2468. ac_file=''
  2469. fi
  2470. if test -z "$ac_file"; then :
  2471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2472. $as_echo "no" >&6; }
  2473. $as_echo "$as_me: failed program was:" >&5
  2474. sed 's/^/| /' conftest.$ac_ext >&5
  2475. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2476. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2477. as_fn_error 77 "C++ compiler cannot create executables
  2478. See \`build/config.log' for more details" "$LINENO" 5; }
  2479. else
  2480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2481. $as_echo "yes" >&6; }
  2482. fi
  2483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2484. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2486. $as_echo "$ac_file" >&6; }
  2487. ac_exeext=$ac_cv_exeext
  2488. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2489. ac_clean_files=$ac_clean_files_save
  2490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2491. $as_echo_n "checking for suffix of executables... " >&6; }
  2492. if { { ac_try="$ac_link"
  2493. case "(($ac_try" in
  2494. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2495. *) ac_try_echo=$ac_try;;
  2496. esac
  2497. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2498. $as_echo "$ac_try_echo"; } >&5
  2499. (eval "$ac_link") 2>&5
  2500. ac_status=$?
  2501. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2502. test $ac_status = 0; }; then :
  2503. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2504. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2505. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2506. # `rm'.
  2507. for ac_file in conftest.exe conftest conftest.*; do
  2508. test -f "$ac_file" || continue
  2509. case $ac_file in
  2510. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2511. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2512. break;;
  2513. * ) break;;
  2514. esac
  2515. done
  2516. else
  2517. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2518. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2519. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2520. See \`build/config.log' for more details" "$LINENO" 5; }
  2521. fi
  2522. rm -f conftest conftest$ac_cv_exeext
  2523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2524. $as_echo "$ac_cv_exeext" >&6; }
  2525. rm -f conftest.$ac_ext
  2526. EXEEXT=$ac_cv_exeext
  2527. ac_exeext=$EXEEXT
  2528. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2529. /* end build/confdefs.h. */
  2530. #include <stdio.h>
  2531. int
  2532. main ()
  2533. {
  2534. FILE *f = fopen ("conftest.out", "w");
  2535. return ferror (f) || fclose (f) != 0;
  2536. ;
  2537. return 0;
  2538. }
  2539. _ACEOF
  2540. ac_clean_files="$ac_clean_files conftest.out"
  2541. # Check that the compiler produces executables we can run. If not, either
  2542. # the compiler is broken, or we cross compile.
  2543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2544. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2545. if test "$cross_compiling" != yes; then
  2546. { { ac_try="$ac_link"
  2547. case "(($ac_try" in
  2548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2549. *) ac_try_echo=$ac_try;;
  2550. esac
  2551. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2552. $as_echo "$ac_try_echo"; } >&5
  2553. (eval "$ac_link") 2>&5
  2554. ac_status=$?
  2555. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2556. test $ac_status = 0; }
  2557. if { ac_try='./conftest$ac_cv_exeext'
  2558. { { case "(($ac_try" in
  2559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2560. *) ac_try_echo=$ac_try;;
  2561. esac
  2562. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2563. $as_echo "$ac_try_echo"; } >&5
  2564. (eval "$ac_try") 2>&5
  2565. ac_status=$?
  2566. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2567. test $ac_status = 0; }; }; then
  2568. cross_compiling=no
  2569. else
  2570. if test "$cross_compiling" = maybe; then
  2571. cross_compiling=yes
  2572. else
  2573. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2574. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2575. as_fn_error $? "cannot run C++ compiled programs.
  2576. If you meant to cross compile, use \`--host'.
  2577. See \`build/config.log' for more details" "$LINENO" 5; }
  2578. fi
  2579. fi
  2580. fi
  2581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2582. $as_echo "$cross_compiling" >&6; }
  2583. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2584. ac_clean_files=$ac_clean_files_save
  2585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2586. $as_echo_n "checking for suffix of object files... " >&6; }
  2587. if ${ac_cv_objext+:} false; then :
  2588. $as_echo_n "(cached) " >&6
  2589. else
  2590. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2591. /* end build/confdefs.h. */
  2592. int
  2593. main ()
  2594. {
  2595. ;
  2596. return 0;
  2597. }
  2598. _ACEOF
  2599. rm -f conftest.o conftest.obj
  2600. if { { ac_try="$ac_compile"
  2601. case "(($ac_try" in
  2602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2603. *) ac_try_echo=$ac_try;;
  2604. esac
  2605. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2606. $as_echo "$ac_try_echo"; } >&5
  2607. (eval "$ac_compile") 2>&5
  2608. ac_status=$?
  2609. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2610. test $ac_status = 0; }; then :
  2611. for ac_file in conftest.o conftest.obj conftest.*; do
  2612. test -f "$ac_file" || continue;
  2613. case $ac_file in
  2614. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2615. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2616. break;;
  2617. esac
  2618. done
  2619. else
  2620. $as_echo "$as_me: failed program was:" >&5
  2621. sed 's/^/| /' conftest.$ac_ext >&5
  2622. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2623. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2624. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2625. See \`build/config.log' for more details" "$LINENO" 5; }
  2626. fi
  2627. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2628. fi
  2629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2630. $as_echo "$ac_cv_objext" >&6; }
  2631. OBJEXT=$ac_cv_objext
  2632. ac_objext=$OBJEXT
  2633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  2634. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2635. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  2636. $as_echo_n "(cached) " >&6
  2637. else
  2638. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2639. /* end build/confdefs.h. */
  2640. int
  2641. main ()
  2642. {
  2643. #ifndef __GNUC__
  2644. choke me
  2645. #endif
  2646. ;
  2647. return 0;
  2648. }
  2649. _ACEOF
  2650. if ac_fn_cxx_try_compile "$LINENO"; then :
  2651. ac_compiler_gnu=yes
  2652. else
  2653. ac_compiler_gnu=no
  2654. fi
  2655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2656. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2657. fi
  2658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  2659. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2660. if test $ac_compiler_gnu = yes; then
  2661. GXX=yes
  2662. else
  2663. GXX=
  2664. fi
  2665. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2666. ac_save_CXXFLAGS=$CXXFLAGS
  2667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  2668. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2669. if ${ac_cv_prog_cxx_g+:} false; then :
  2670. $as_echo_n "(cached) " >&6
  2671. else
  2672. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2673. ac_cxx_werror_flag=yes
  2674. ac_cv_prog_cxx_g=no
  2675. CXXFLAGS="-g"
  2676. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2677. /* end build/confdefs.h. */
  2678. int
  2679. main ()
  2680. {
  2681. ;
  2682. return 0;
  2683. }
  2684. _ACEOF
  2685. if ac_fn_cxx_try_compile "$LINENO"; then :
  2686. ac_cv_prog_cxx_g=yes
  2687. else
  2688. CXXFLAGS=""
  2689. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2690. /* end build/confdefs.h. */
  2691. int
  2692. main ()
  2693. {
  2694. ;
  2695. return 0;
  2696. }
  2697. _ACEOF
  2698. if ac_fn_cxx_try_compile "$LINENO"; then :
  2699. else
  2700. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2701. CXXFLAGS="-g"
  2702. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2703. /* end build/confdefs.h. */
  2704. int
  2705. main ()
  2706. {
  2707. ;
  2708. return 0;
  2709. }
  2710. _ACEOF
  2711. if ac_fn_cxx_try_compile "$LINENO"; then :
  2712. ac_cv_prog_cxx_g=yes
  2713. fi
  2714. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2715. fi
  2716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2717. fi
  2718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2719. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2720. fi
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  2722. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  2723. if test "$ac_test_CXXFLAGS" = set; then
  2724. CXXFLAGS=$ac_save_CXXFLAGS
  2725. elif test $ac_cv_prog_cxx_g = yes; then
  2726. if test "$GXX" = yes; then
  2727. CXXFLAGS="-g -O2"
  2728. else
  2729. CXXFLAGS="-g"
  2730. fi
  2731. else
  2732. if test "$GXX" = yes; then
  2733. CXXFLAGS="-O2"
  2734. else
  2735. CXXFLAGS=
  2736. fi
  2737. fi
  2738. ac_ext=cpp
  2739. ac_cpp='$CXXCPP $CPPFLAGS'
  2740. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2741. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2742. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2743. CC="${CXX} -x c"
  2744. ac_ext=cpp
  2745. ac_cpp='$CXXCPP $CPPFLAGS'
  2746. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2747. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2748. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  2750. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  2751. if test -z "$CXXCPP"; then
  2752. if ${ac_cv_prog_CXXCPP+:} false; then :
  2753. $as_echo_n "(cached) " >&6
  2754. else
  2755. # Double quotes because CXXCPP needs to be expanded
  2756. for CXXCPP in "$CXX -E" "/lib/cpp"
  2757. do
  2758. ac_preproc_ok=false
  2759. for ac_cxx_preproc_warn_flag in '' yes
  2760. do
  2761. # Use a header file that comes with gcc, so configuring glibc
  2762. # with a fresh cross-compiler works.
  2763. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2764. # <limits.h> exists even on freestanding compilers.
  2765. # On the NeXT, cc -E runs the code through the compiler's parser,
  2766. # not just through cpp. "Syntax error" is here to catch this case.
  2767. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2768. /* end build/confdefs.h. */
  2769. #ifdef __STDC__
  2770. # include <limits.h>
  2771. #else
  2772. # include <assert.h>
  2773. #endif
  2774. Syntax error
  2775. _ACEOF
  2776. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2777. else
  2778. # Broken: fails on valid input.
  2779. continue
  2780. fi
  2781. rm -f conftest.err conftest.i conftest.$ac_ext
  2782. # OK, works on sane cases. Now check whether nonexistent headers
  2783. # can be detected and how.
  2784. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2785. /* end build/confdefs.h. */
  2786. #include <ac_nonexistent.h>
  2787. _ACEOF
  2788. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2789. # Broken: success on invalid input.
  2790. continue
  2791. else
  2792. # Passes both tests.
  2793. ac_preproc_ok=:
  2794. break
  2795. fi
  2796. rm -f conftest.err conftest.i conftest.$ac_ext
  2797. done
  2798. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2799. rm -f conftest.i conftest.err conftest.$ac_ext
  2800. if $ac_preproc_ok; then :
  2801. break
  2802. fi
  2803. done
  2804. ac_cv_prog_CXXCPP=$CXXCPP
  2805. fi
  2806. CXXCPP=$ac_cv_prog_CXXCPP
  2807. else
  2808. ac_cv_prog_CXXCPP=$CXXCPP
  2809. fi
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  2811. $as_echo "$CXXCPP" >&6; }
  2812. ac_preproc_ok=false
  2813. for ac_cxx_preproc_warn_flag in '' yes
  2814. do
  2815. # Use a header file that comes with gcc, so configuring glibc
  2816. # with a fresh cross-compiler works.
  2817. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2818. # <limits.h> exists even on freestanding compilers.
  2819. # On the NeXT, cc -E runs the code through the compiler's parser,
  2820. # not just through cpp. "Syntax error" is here to catch this case.
  2821. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2822. /* end build/confdefs.h. */
  2823. #ifdef __STDC__
  2824. # include <limits.h>
  2825. #else
  2826. # include <assert.h>
  2827. #endif
  2828. Syntax error
  2829. _ACEOF
  2830. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2831. else
  2832. # Broken: fails on valid input.
  2833. continue
  2834. fi
  2835. rm -f conftest.err conftest.i conftest.$ac_ext
  2836. # OK, works on sane cases. Now check whether nonexistent headers
  2837. # can be detected and how.
  2838. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2839. /* end build/confdefs.h. */
  2840. #include <ac_nonexistent.h>
  2841. _ACEOF
  2842. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2843. # Broken: success on invalid input.
  2844. continue
  2845. else
  2846. # Passes both tests.
  2847. ac_preproc_ok=:
  2848. break
  2849. fi
  2850. rm -f conftest.err conftest.i conftest.$ac_ext
  2851. done
  2852. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2853. rm -f conftest.i conftest.err conftest.$ac_ext
  2854. if $ac_preproc_ok; then :
  2855. else
  2856. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2857. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2858. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  2859. See \`build/config.log' for more details" "$LINENO" 5; }
  2860. fi
  2861. ac_ext=cpp
  2862. ac_cpp='$CXXCPP $CPPFLAGS'
  2863. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2864. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2865. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2866. ax_cxx_compile_cxx11_required=true
  2867. ac_ext=cpp
  2868. ac_cpp='$CXXCPP $CPPFLAGS'
  2869. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2870. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2871. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2872. ac_success=no
  2873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
  2874. $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
  2875. if ${ax_cv_cxx_compile_cxx11+:} false; then :
  2876. $as_echo_n "(cached) " >&6
  2877. else
  2878. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2879. /* end build/confdefs.h. */
  2880. template <typename T>
  2881. struct check
  2882. {
  2883. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  2884. };
  2885. struct Base {
  2886. virtual void f() {}
  2887. };
  2888. struct Child : public Base {
  2889. virtual void f() override {}
  2890. };
  2891. typedef check<check<bool>> right_angle_brackets;
  2892. int a;
  2893. decltype(a) b;
  2894. typedef check<int> check_type;
  2895. check_type c;
  2896. check_type&& cr = static_cast<check_type&&>(c);
  2897. auto d = a;
  2898. auto l = [](){};
  2899. // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable]
  2900. struct use_l { use_l() { l(); } };
  2901. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  2902. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
  2903. namespace test_template_alias_sfinae {
  2904. struct foo {};
  2905. template<typename T>
  2906. using member = typename T::member_type;
  2907. template<typename T>
  2908. void func(...) {}
  2909. template<typename T>
  2910. void func(member<T>*) {}
  2911. void test();
  2912. void test() {
  2913. func<foo>(0);
  2914. }
  2915. }
  2916. _ACEOF
  2917. if ac_fn_cxx_try_compile "$LINENO"; then :
  2918. ax_cv_cxx_compile_cxx11=yes
  2919. else
  2920. ax_cv_cxx_compile_cxx11=no
  2921. fi
  2922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2923. fi
  2924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
  2925. $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
  2926. if test x$ax_cv_cxx_compile_cxx11 = xyes; then
  2927. ac_success=yes
  2928. fi
  2929. if test x$ac_success = xno; then
  2930. for switch in -std=c++11 -std=c++0x; do
  2931. cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  2933. $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
  2934. if eval \${$cachevar+:} false; then :
  2935. $as_echo_n "(cached) " >&6
  2936. else
  2937. ac_save_CXXFLAGS="$CXXFLAGS"
  2938. CXXFLAGS="$CXXFLAGS $switch"
  2939. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2940. /* end build/confdefs.h. */
  2941. template <typename T>
  2942. struct check
  2943. {
  2944. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  2945. };
  2946. struct Base {
  2947. virtual void f() {}
  2948. };
  2949. struct Child : public Base {
  2950. virtual void f() override {}
  2951. };
  2952. typedef check<check<bool>> right_angle_brackets;
  2953. int a;
  2954. decltype(a) b;
  2955. typedef check<int> check_type;
  2956. check_type c;
  2957. check_type&& cr = static_cast<check_type&&>(c);
  2958. auto d = a;
  2959. auto l = [](){};
  2960. // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable]
  2961. struct use_l { use_l() { l(); } };
  2962. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  2963. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
  2964. namespace test_template_alias_sfinae {
  2965. struct foo {};
  2966. template<typename T>
  2967. using member = typename T::member_type;
  2968. template<typename T>
  2969. void func(...) {}
  2970. template<typename T>
  2971. void func(member<T>*) {}
  2972. void test();
  2973. void test() {
  2974. func<foo>(0);
  2975. }
  2976. }
  2977. _ACEOF
  2978. if ac_fn_cxx_try_compile "$LINENO"; then :
  2979. eval $cachevar=yes
  2980. else
  2981. eval $cachevar=no
  2982. fi
  2983. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2984. CXXFLAGS="$ac_save_CXXFLAGS"
  2985. fi
  2986. eval ac_res=\$$cachevar
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2988. $as_echo "$ac_res" >&6; }
  2989. if eval test x\$$cachevar = xyes; then
  2990. CXXFLAGS="$CXXFLAGS $switch"
  2991. ac_success=yes
  2992. break
  2993. fi
  2994. done
  2995. fi
  2996. ac_ext=cpp
  2997. ac_cpp='$CXXCPP $CPPFLAGS'
  2998. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2999. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3000. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3001. if test x$ax_cxx_compile_cxx11_required = xtrue; then
  3002. if test x$ac_success = xno; then
  3003. as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
  3004. fi
  3005. else
  3006. if test x$ac_success = xno; then
  3007. HAVE_CXX11=0
  3008. { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
  3009. $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
  3010. else
  3011. HAVE_CXX11=1
  3012. $as_echo "#define HAVE_CXX11 1" >>build/confdefs.h
  3013. fi
  3014. fi
  3015. if test "${cross_compiling-x}" = "x"
  3016. then
  3017. cat << 'EOF' >&2
  3018. configure: error:
  3019. This system does not appear to have a working C compiler.
  3020. A working C compiler is required to compile Wraith.
  3021. EOF
  3022. exit 1
  3023. fi
  3024. if test -n "$GXX"; then
  3025. CXXFLAGS="$CXXFLAGS"
  3026. fi
  3027. #CXX_RPATH_CHECK
  3028. #checkpoint
  3029. cat >confcache <<\_ACEOF
  3030. # This file is a shell script that caches the results of configure
  3031. # tests run on this system so they can be shared between configure
  3032. # scripts and configure runs, see configure's option --config-cache.
  3033. # It is not useful on other systems. If it contains results you don't
  3034. # want to keep, you may remove or edit it.
  3035. #
  3036. # build/config.status only pays attention to the cache file if you give it
  3037. # the --recheck option to rerun configure.
  3038. #
  3039. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3040. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3041. # following values.
  3042. _ACEOF
  3043. # The following way of writing the cache mishandles newlines in values,
  3044. # but we know of no workaround that is simple, portable, and efficient.
  3045. # So, we kill variables containing newlines.
  3046. # Ultrix sh set writes to stderr and can't be redirected directly,
  3047. # and sets the high bit in the cache file unless we assign to the vars.
  3048. (
  3049. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3050. eval ac_val=\$$ac_var
  3051. case $ac_val in #(
  3052. *${as_nl}*)
  3053. case $ac_var in #(
  3054. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3055. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3056. esac
  3057. case $ac_var in #(
  3058. _ | IFS | as_nl) ;; #(
  3059. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3060. *) { eval $ac_var=; unset $ac_var;} ;;
  3061. esac ;;
  3062. esac
  3063. done
  3064. (set) 2>&1 |
  3065. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3066. *${as_nl}ac_space=\ *)
  3067. # `set' does not quote correctly, so add quotes: double-quote
  3068. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3069. sed -n \
  3070. "s/'/'\\\\''/g;
  3071. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3072. ;; #(
  3073. *)
  3074. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3075. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3076. ;;
  3077. esac |
  3078. sort
  3079. ) |
  3080. sed '
  3081. /^ac_cv_env_/b end
  3082. t clear
  3083. :clear
  3084. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3085. t end
  3086. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3087. :end' >>confcache
  3088. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3089. if test -w "$cache_file"; then
  3090. if test "x$cache_file" != "x/dev/null"; then
  3091. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3092. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3093. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3094. cat confcache >"$cache_file"
  3095. else
  3096. case $cache_file in #(
  3097. */* | ?:*)
  3098. mv -f confcache "$cache_file"$$ &&
  3099. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3100. *)
  3101. mv -f confcache "$cache_file" ;;
  3102. esac
  3103. fi
  3104. fi
  3105. else
  3106. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3107. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3108. fi
  3109. fi
  3110. rm -f confcache
  3111. # Speedup compile
  3112. if test -n "$GXX" && test -z "$no_wall"; then
  3113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wall" >&5
  3114. $as_echo_n "checking whether the compiler understands -Wall... " >&6; }
  3115. if ${egg_cv_var_ccwall+:} false; then :
  3116. $as_echo_n "(cached) " >&6
  3117. else
  3118. ac_old_CXXFLAGS="$CXXFLAGS"
  3119. CXXFLAGS="$CXXFLAGS -Wall"
  3120. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3121. /* end build/confdefs.h. */
  3122. int main ()
  3123. {
  3124. return(0);
  3125. }
  3126. _ACEOF
  3127. if ac_fn_cxx_try_compile "$LINENO"; then :
  3128. egg_cv_var_ccwall="yes"
  3129. else
  3130. egg_cv_var_ccwall="no"
  3131. fi
  3132. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3133. CXXFLAGS="$ac_old_CXXFLAGS"
  3134. fi
  3135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccwall" >&5
  3136. $as_echo "$egg_cv_var_ccwall" >&6; }
  3137. if test "$egg_cv_var_ccwall" = "yes"; then
  3138. CXXFLAGS="$CXXFLAGS -Wall"
  3139. fi
  3140. fi
  3141. if test -n "$GXX" && test -z "$no_pipe"; then
  3142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -pipe" >&5
  3143. $as_echo_n "checking whether the compiler understands -pipe... " >&6; }
  3144. if ${egg_cv_var_ccpipe+:} false; then :
  3145. $as_echo_n "(cached) " >&6
  3146. else
  3147. ac_old_CXX="$CXX"
  3148. CXX="$CXX -pipe"
  3149. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3150. /* end build/confdefs.h. */
  3151. int main ()
  3152. {
  3153. return(0);
  3154. }
  3155. _ACEOF
  3156. if ac_fn_cxx_try_compile "$LINENO"; then :
  3157. egg_cv_var_ccpipe="yes"
  3158. else
  3159. egg_cv_var_ccpipe="no"
  3160. fi
  3161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3162. CXX="$ac_old_CXX"
  3163. fi
  3164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccpipe" >&5
  3165. $as_echo "$egg_cv_var_ccpipe" >&6; }
  3166. if test "$egg_cv_var_ccpipe" = "yes"; then
  3167. CXX="$CXX -pipe"
  3168. fi
  3169. fi
  3170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fcolor-diagnostics" >&5
  3171. $as_echo_n "checking whether the compiler understands -fcolor-diagnostics... " >&6; }
  3172. if ${ax_cv_prog_cc_colordiagnostics+:} false; then :
  3173. $as_echo_n "(cached) " >&6
  3174. else
  3175. ac_ext=cpp
  3176. ac_cpp='$CXXCPP $CPPFLAGS'
  3177. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3178. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3179. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3180. ac_saved_flags="$CXXFLAGS"
  3181. CXXFLAGS="-Werror -fcolor-diagnostics"
  3182. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3183. /* end build/confdefs.h. */
  3184. int
  3185. main ()
  3186. {
  3187. ;
  3188. return 0;
  3189. }
  3190. _ACEOF
  3191. if ac_fn_cxx_try_compile "$LINENO"; then :
  3192. ax_cv_prog_cc_colordiagnostics="yes"
  3193. else
  3194. ax_cv_prog_cc_colordiagnostics="no"
  3195. fi
  3196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3197. CXXFLAGS="$ac_saved_flags"
  3198. ac_ext=cpp
  3199. ac_cpp='$CXXCPP $CPPFLAGS'
  3200. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3201. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3202. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3203. fi
  3204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_colordiagnostics" >&5
  3205. $as_echo "$ax_cv_prog_cc_colordiagnostics" >&6; }
  3206. if [ "$ax_cv_prog_cc_colordiagnostics" = "yes" ]; then
  3207. CXXFLAGS="$CXXFLAGS -fcolor-diagnostics"
  3208. elif [ -n "" ]; then
  3209. cat << 'EOF' >&2
  3210. configure: error:
  3211. Your OS or C++ compiler does not support -fcolor-diagnostics.
  3212. This compile flag is required.
  3213. EOF
  3214. exit 1
  3215. fi
  3216. #CXX_FLAG_CHECK([CXXFLAGS], [-Qunused-arguments], [unusedarguments])
  3217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wno-invalid-source-encoding" >&5
  3218. $as_echo_n "checking whether the compiler understands -Wno-invalid-source-encoding... " >&6; }
  3219. if ${ax_cv_prog_cc_invalid_source_encoding+:} false; then :
  3220. $as_echo_n "(cached) " >&6
  3221. else
  3222. ac_ext=cpp
  3223. ac_cpp='$CXXCPP $CPPFLAGS'
  3224. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3225. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3226. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3227. ac_saved_flags="$CXXFLAGS"
  3228. CXXFLAGS="-Werror -Winvalid-source-encoding"
  3229. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3230. /* end build/confdefs.h. */
  3231. int
  3232. main ()
  3233. {
  3234. ;
  3235. return 0;
  3236. }
  3237. _ACEOF
  3238. if ac_fn_cxx_try_compile "$LINENO"; then :
  3239. ax_cv_prog_cc_invalid_source_encoding="yes"
  3240. else
  3241. ax_cv_prog_cc_invalid_source_encoding="no"
  3242. fi
  3243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3244. CXXFLAGS="$ac_saved_flags"
  3245. ac_ext=cpp
  3246. ac_cpp='$CXXCPP $CPPFLAGS'
  3247. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3248. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3249. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3250. fi
  3251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_invalid_source_encoding" >&5
  3252. $as_echo "$ax_cv_prog_cc_invalid_source_encoding" >&6; }
  3253. if [ "$ax_cv_prog_cc_invalid_source_encoding" = "yes" ]; then
  3254. CXXFLAGS="$CXXFLAGS -Wno-invalid-source-encoding"
  3255. elif [ -n "" ]; then
  3256. cat << 'EOF' >&2
  3257. configure: error:
  3258. Your OS or C++ compiler does not support -Wno-invalid-source-encoding.
  3259. This compile flag is required.
  3260. EOF
  3261. exit 1
  3262. fi
  3263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wno-narrowing" >&5
  3264. $as_echo_n "checking whether the compiler understands -Wno-narrowing... " >&6; }
  3265. if ${ax_cv_prog_cc_nonarrowing+:} false; then :
  3266. $as_echo_n "(cached) " >&6
  3267. else
  3268. ac_ext=cpp
  3269. ac_cpp='$CXXCPP $CPPFLAGS'
  3270. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3271. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3272. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3273. ac_saved_flags="$CXXFLAGS"
  3274. CXXFLAGS="-Werror -Wnarrowing"
  3275. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3276. /* end build/confdefs.h. */
  3277. int
  3278. main ()
  3279. {
  3280. ;
  3281. return 0;
  3282. }
  3283. _ACEOF
  3284. if ac_fn_cxx_try_compile "$LINENO"; then :
  3285. ax_cv_prog_cc_nonarrowing="yes"
  3286. else
  3287. ax_cv_prog_cc_nonarrowing="no"
  3288. fi
  3289. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3290. CXXFLAGS="$ac_saved_flags"
  3291. ac_ext=cpp
  3292. ac_cpp='$CXXCPP $CPPFLAGS'
  3293. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3294. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3295. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3296. fi
  3297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_nonarrowing" >&5
  3298. $as_echo "$ax_cv_prog_cc_nonarrowing" >&6; }
  3299. if [ "$ax_cv_prog_cc_nonarrowing" = "yes" ]; then
  3300. CXXFLAGS="$CXXFLAGS -Wno-narrowing"
  3301. elif [ -n "" ]; then
  3302. cat << 'EOF' >&2
  3303. configure: error:
  3304. Your OS or C++ compiler does not support -Wno-narrowing.
  3305. This compile flag is required.
  3306. EOF
  3307. exit 1
  3308. fi
  3309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wno-cast-function-type" >&5
  3310. $as_echo_n "checking whether the compiler understands -Wno-cast-function-type... " >&6; }
  3311. if ${ax_cv_prog_cc_no_cast_function_type+:} false; then :
  3312. $as_echo_n "(cached) " >&6
  3313. else
  3314. ac_ext=cpp
  3315. ac_cpp='$CXXCPP $CPPFLAGS'
  3316. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3317. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3318. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3319. ac_saved_flags="$CXXFLAGS"
  3320. CXXFLAGS="-Werror -Wcast-function-type"
  3321. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3322. /* end build/confdefs.h. */
  3323. int
  3324. main ()
  3325. {
  3326. ;
  3327. return 0;
  3328. }
  3329. _ACEOF
  3330. if ac_fn_cxx_try_compile "$LINENO"; then :
  3331. ax_cv_prog_cc_no_cast_function_type="yes"
  3332. else
  3333. ax_cv_prog_cc_no_cast_function_type="no"
  3334. fi
  3335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3336. CXXFLAGS="$ac_saved_flags"
  3337. ac_ext=cpp
  3338. ac_cpp='$CXXCPP $CPPFLAGS'
  3339. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3340. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3341. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3342. fi
  3343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_no_cast_function_type" >&5
  3344. $as_echo "$ax_cv_prog_cc_no_cast_function_type" >&6; }
  3345. if [ "$ax_cv_prog_cc_no_cast_function_type" = "yes" ]; then
  3346. CXXFLAGS="$CXXFLAGS -Wno-cast-function-type"
  3347. elif [ -n "" ]; then
  3348. cat << 'EOF' >&2
  3349. configure: error:
  3350. Your OS or C++ compiler does not support -Wno-cast-function-type.
  3351. This compile flag is required.
  3352. EOF
  3353. exit 1
  3354. fi
  3355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wimplicit-fallthrough=0" >&5
  3356. $as_echo_n "checking whether the compiler understands -Wimplicit-fallthrough=0... " >&6; }
  3357. if ${ax_cv_prog_cc_wimplicit_fallthrough+:} false; then :
  3358. $as_echo_n "(cached) " >&6
  3359. else
  3360. ac_ext=cpp
  3361. ac_cpp='$CXXCPP $CPPFLAGS'
  3362. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3363. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3364. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3365. ac_saved_flags="$CXXFLAGS"
  3366. CXXFLAGS="-Werror -Wimplicit-fallthrough=0"
  3367. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3368. /* end build/confdefs.h. */
  3369. int
  3370. main ()
  3371. {
  3372. ;
  3373. return 0;
  3374. }
  3375. _ACEOF
  3376. if ac_fn_cxx_try_compile "$LINENO"; then :
  3377. ax_cv_prog_cc_wimplicit_fallthrough="yes"
  3378. else
  3379. ax_cv_prog_cc_wimplicit_fallthrough="no"
  3380. fi
  3381. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3382. CXXFLAGS="$ac_saved_flags"
  3383. ac_ext=cpp
  3384. ac_cpp='$CXXCPP $CPPFLAGS'
  3385. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3386. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3387. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3388. fi
  3389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_wimplicit_fallthrough" >&5
  3390. $as_echo "$ax_cv_prog_cc_wimplicit_fallthrough" >&6; }
  3391. if [ "$ax_cv_prog_cc_wimplicit_fallthrough" = "yes" ]; then
  3392. CXXFLAGS="$CXXFLAGS -Wimplicit-fallthrough=0"
  3393. elif [ -n "" ]; then
  3394. cat << 'EOF' >&2
  3395. configure: error:
  3396. Your OS or C++ compiler does not support -Wimplicit-fallthrough=0.
  3397. This compile flag is required.
  3398. EOF
  3399. exit 1
  3400. fi
  3401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector" >&5
  3402. $as_echo_n "checking whether the compiler understands -fstack-protector... " >&6; }
  3403. if ${ax_cv_prog_cc_stackprotector+:} false; then :
  3404. $as_echo_n "(cached) " >&6
  3405. else
  3406. ac_ext=cpp
  3407. ac_cpp='$CXXCPP $CPPFLAGS'
  3408. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3409. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3410. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3411. ac_saved_flags="$CXXFLAGS"
  3412. CXXFLAGS="-Werror -fstack-protector"
  3413. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3414. /* end build/confdefs.h. */
  3415. int
  3416. main ()
  3417. {
  3418. ;
  3419. return 0;
  3420. }
  3421. _ACEOF
  3422. if ac_fn_cxx_try_compile "$LINENO"; then :
  3423. ax_cv_prog_cc_stackprotector="yes"
  3424. else
  3425. ax_cv_prog_cc_stackprotector="no"
  3426. fi
  3427. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3428. CXXFLAGS="$ac_saved_flags"
  3429. ac_ext=cpp
  3430. ac_cpp='$CXXCPP $CPPFLAGS'
  3431. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3432. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3433. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3434. fi
  3435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotector" >&5
  3436. $as_echo "$ax_cv_prog_cc_stackprotector" >&6; }
  3437. if [ "$ax_cv_prog_cc_stackprotector" = "yes" ]; then
  3438. CXXFLAGS="$CXXFLAGS -fstack-protector"
  3439. elif [ -n "" ]; then
  3440. cat << 'EOF' >&2
  3441. configure: error:
  3442. Your OS or C++ compiler does not support -fstack-protector.
  3443. This compile flag is required.
  3444. EOF
  3445. exit 1
  3446. fi
  3447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector-strong" >&5
  3448. $as_echo_n "checking whether the compiler understands -fstack-protector-strong... " >&6; }
  3449. if ${ax_cv_prog_cc_stackprotectorstrong+:} false; then :
  3450. $as_echo_n "(cached) " >&6
  3451. else
  3452. ac_ext=cpp
  3453. ac_cpp='$CXXCPP $CPPFLAGS'
  3454. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3455. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3456. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3457. ac_saved_flags="$CXXFLAGS"
  3458. CXXFLAGS="-Werror -fstack-protector-strong"
  3459. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3460. /* end build/confdefs.h. */
  3461. int
  3462. main ()
  3463. {
  3464. ;
  3465. return 0;
  3466. }
  3467. _ACEOF
  3468. if ac_fn_cxx_try_compile "$LINENO"; then :
  3469. ax_cv_prog_cc_stackprotectorstrong="yes"
  3470. else
  3471. ax_cv_prog_cc_stackprotectorstrong="no"
  3472. fi
  3473. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3474. CXXFLAGS="$ac_saved_flags"
  3475. ac_ext=cpp
  3476. ac_cpp='$CXXCPP $CPPFLAGS'
  3477. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3478. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3479. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3480. fi
  3481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotectorstrong" >&5
  3482. $as_echo "$ax_cv_prog_cc_stackprotectorstrong" >&6; }
  3483. if [ "$ax_cv_prog_cc_stackprotectorstrong" = "yes" ]; then
  3484. CXXFLAGS="$CXXFLAGS -fstack-protector-strong"
  3485. elif [ -n "" ]; then
  3486. cat << 'EOF' >&2
  3487. configure: error:
  3488. Your OS or C++ compiler does not support -fstack-protector-strong.
  3489. This compile flag is required.
  3490. EOF
  3491. exit 1
  3492. fi
  3493. if [ "${ax_cv_prog_cc_stackprotectorstrong}" = "yes" ]; then
  3494. LDFLAGS="${LDFLAGS} -fstack-protector-strong"
  3495. elif [ "${ax_cv_prog_cc_stackprotector}" = "yes" ]; then
  3496. LDFLAGS="${LDFLAGS} -fstack-protector"
  3497. fi
  3498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Og" >&5
  3499. $as_echo_n "checking whether the compiler understands -Og... " >&6; }
  3500. if ${ax_cv_prog_cc_Og+:} false; then :
  3501. $as_echo_n "(cached) " >&6
  3502. else
  3503. ac_ext=cpp
  3504. ac_cpp='$CXXCPP $CPPFLAGS'
  3505. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3506. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3507. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3508. ac_saved_flags="$CXXFLAGS"
  3509. CXXFLAGS="-Werror -Og"
  3510. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3511. /* end build/confdefs.h. */
  3512. int
  3513. main ()
  3514. {
  3515. ;
  3516. return 0;
  3517. }
  3518. _ACEOF
  3519. if ac_fn_cxx_try_compile "$LINENO"; then :
  3520. ax_cv_prog_cc_Og="yes"
  3521. else
  3522. ax_cv_prog_cc_Og="no"
  3523. fi
  3524. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3525. CXXFLAGS="$ac_saved_flags"
  3526. ac_ext=cpp
  3527. ac_cpp='$CXXCPP $CPPFLAGS'
  3528. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3529. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3530. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3531. fi
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_Og" >&5
  3533. $as_echo "$ax_cv_prog_cc_Og" >&6; }
  3534. if [ "$ax_cv_prog_cc_Og" = "yes" ]; then
  3535. DEBCXXFLAGS="$DEBCXXFLAGS -Og"
  3536. elif [ -n "" ]; then
  3537. cat << 'EOF' >&2
  3538. configure: error:
  3539. Your OS or C++ compiler does not support -Og.
  3540. This compile flag is required.
  3541. EOF
  3542. exit 1
  3543. fi
  3544. if [ "${ax_cv_prog_cc_Og}" = "no" ]; then
  3545. DEBCXXFLAGS="${DEBCXXFLAGS} -O0"
  3546. fi
  3547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker supports -fsanitize=address" >&5
  3548. $as_echo_n "checking whether the linker supports -fsanitize=address... " >&6; }
  3549. if ${ax_cv_prog_cc_fsanitize_address+:} false; then :
  3550. $as_echo_n "(cached) " >&6
  3551. else
  3552. ac_ext=cpp
  3553. ac_cpp='$CXXCPP $CPPFLAGS'
  3554. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3555. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3556. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3557. ac_saved_flags="$CXXFLAGS"
  3558. CXXFLAGS="-Werror -fsanitize=address"
  3559. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3560. /* end build/confdefs.h. */
  3561. int
  3562. main ()
  3563. {
  3564. ;
  3565. return 0;
  3566. }
  3567. _ACEOF
  3568. if ac_fn_cxx_try_link "$LINENO"; then :
  3569. ax_cv_prog_cc_fsanitize_address="yes"
  3570. else
  3571. ax_cv_prog_cc_fsanitize_address="no"
  3572. fi
  3573. rm -f core conftest.err conftest.$ac_objext \
  3574. conftest$ac_exeext conftest.$ac_ext
  3575. CXXFLAGS="$ac_saved_flags"
  3576. ac_ext=cpp
  3577. ac_cpp='$CXXCPP $CPPFLAGS'
  3578. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3579. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3580. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3581. fi
  3582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_fsanitize_address" >&5
  3583. $as_echo "$ax_cv_prog_cc_fsanitize_address" >&6; }
  3584. if [ "$ax_cv_prog_cc_fsanitize_address" = "yes" ]; then
  3585. DEBCXXFLAGS="$DEBCXXFLAGS -fsanitize=address"
  3586. elif [ -n "" ]; then
  3587. cat << 'EOF' >&2
  3588. configure: error:
  3589. Your OS or C++ compiler does not support -fsanitize=address.
  3590. This compile flag is required.
  3591. EOF
  3592. exit 1
  3593. fi
  3594. if [ "${ax_cv_prog_cc_fsanitize_address}" = "yes" ]; then
  3595. DEBLDFLAGS="${DEBLDFLAGS} -fsanitize=address"
  3596. DEBCXXFLAGS="${DEBCXXFLAGS} -D__SANITIZE_ADDRESS__"
  3597. fi
  3598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector-all" >&5
  3599. $as_echo_n "checking whether the compiler understands -fstack-protector-all... " >&6; }
  3600. if ${ax_cv_prog_cc_stackprotectorall+:} false; then :
  3601. $as_echo_n "(cached) " >&6
  3602. else
  3603. ac_ext=cpp
  3604. ac_cpp='$CXXCPP $CPPFLAGS'
  3605. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3606. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3607. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3608. ac_saved_flags="$CXXFLAGS"
  3609. CXXFLAGS="-Werror -fstack-protector-all"
  3610. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3611. /* end build/confdefs.h. */
  3612. int
  3613. main ()
  3614. {
  3615. ;
  3616. return 0;
  3617. }
  3618. _ACEOF
  3619. if ac_fn_cxx_try_compile "$LINENO"; then :
  3620. ax_cv_prog_cc_stackprotectorall="yes"
  3621. else
  3622. ax_cv_prog_cc_stackprotectorall="no"
  3623. fi
  3624. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3625. CXXFLAGS="$ac_saved_flags"
  3626. ac_ext=cpp
  3627. ac_cpp='$CXXCPP $CPPFLAGS'
  3628. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3629. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3630. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3631. fi
  3632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotectorall" >&5
  3633. $as_echo "$ax_cv_prog_cc_stackprotectorall" >&6; }
  3634. if [ "$ax_cv_prog_cc_stackprotectorall" = "yes" ]; then
  3635. DEBCXXFLAGS="$DEBCXXFLAGS -fstack-protector-all"
  3636. elif [ -n "" ]; then
  3637. cat << 'EOF' >&2
  3638. configure: error:
  3639. Your OS or C++ compiler does not support -fstack-protector-all.
  3640. This compile flag is required.
  3641. EOF
  3642. exit 1
  3643. fi
  3644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wsuggest-attribute=pure -Wsuggest-attribute=const" >&5
  3645. $as_echo_n "checking whether the compiler understands -Wsuggest-attribute=pure -Wsuggest-attribute=const... " >&6; }
  3646. if ${ax_cv_prog_cc_wsuggest_attribute+:} false; then :
  3647. $as_echo_n "(cached) " >&6
  3648. else
  3649. ac_ext=cpp
  3650. ac_cpp='$CXXCPP $CPPFLAGS'
  3651. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3652. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3653. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3654. ac_saved_flags="$CXXFLAGS"
  3655. CXXFLAGS="-Werror -Wsuggest-attribute=pure -Wsuggest-attribute=const"
  3656. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3657. /* end build/confdefs.h. */
  3658. int
  3659. main ()
  3660. {
  3661. ;
  3662. return 0;
  3663. }
  3664. _ACEOF
  3665. if ac_fn_cxx_try_compile "$LINENO"; then :
  3666. ax_cv_prog_cc_wsuggest_attribute="yes"
  3667. else
  3668. ax_cv_prog_cc_wsuggest_attribute="no"
  3669. fi
  3670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3671. CXXFLAGS="$ac_saved_flags"
  3672. ac_ext=cpp
  3673. ac_cpp='$CXXCPP $CPPFLAGS'
  3674. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3675. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3676. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3677. fi
  3678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_wsuggest_attribute" >&5
  3679. $as_echo "$ax_cv_prog_cc_wsuggest_attribute" >&6; }
  3680. if [ "$ax_cv_prog_cc_wsuggest_attribute" = "yes" ]; then
  3681. DEBCXXFLAGS="$DEBCXXFLAGS -Wsuggest-attribute=pure -Wsuggest-attribute=const"
  3682. elif [ -n "" ]; then
  3683. cat << 'EOF' >&2
  3684. configure: error:
  3685. Your OS or C++ compiler does not support -Wsuggest-attribute=pure -Wsuggest-attribute=const.
  3686. This compile flag is required.
  3687. EOF
  3688. exit 1
  3689. fi
  3690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wconditional-uninitialized" >&5
  3691. $as_echo_n "checking whether the compiler understands -Wconditional-uninitialized... " >&6; }
  3692. if ${ax_cv_prog_cc_w_conditional_uninitialized+:} false; then :
  3693. $as_echo_n "(cached) " >&6
  3694. else
  3695. ac_ext=cpp
  3696. ac_cpp='$CXXCPP $CPPFLAGS'
  3697. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3698. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3699. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3700. ac_saved_flags="$CXXFLAGS"
  3701. CXXFLAGS="-Werror -Wconditional-uninitialized"
  3702. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3703. /* end build/confdefs.h. */
  3704. int
  3705. main ()
  3706. {
  3707. ;
  3708. return 0;
  3709. }
  3710. _ACEOF
  3711. if ac_fn_cxx_try_compile "$LINENO"; then :
  3712. ax_cv_prog_cc_w_conditional_uninitialized="yes"
  3713. else
  3714. ax_cv_prog_cc_w_conditional_uninitialized="no"
  3715. fi
  3716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3717. CXXFLAGS="$ac_saved_flags"
  3718. ac_ext=cpp
  3719. ac_cpp='$CXXCPP $CPPFLAGS'
  3720. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3721. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3722. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3723. fi
  3724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_w_conditional_uninitialized" >&5
  3725. $as_echo "$ax_cv_prog_cc_w_conditional_uninitialized" >&6; }
  3726. if [ "$ax_cv_prog_cc_w_conditional_uninitialized" = "yes" ]; then
  3727. DEBCXXFLAGS="$DEBCXXFLAGS -Wconditional-uninitialized"
  3728. elif [ -n "" ]; then
  3729. cat << 'EOF' >&2
  3730. configure: error:
  3731. Your OS or C++ compiler does not support -Wconditional-uninitialized.
  3732. This compile flag is required.
  3733. EOF
  3734. exit 1
  3735. fi
  3736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static-libstdc++" >&5
  3737. $as_echo_n "checking whether the compiler understands -static-libstdc++... " >&6; }
  3738. if ${ax_cv_prog_cc_static_libstdcxx+:} false; then :
  3739. $as_echo_n "(cached) " >&6
  3740. else
  3741. ac_ext=cpp
  3742. ac_cpp='$CXXCPP $CPPFLAGS'
  3743. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3744. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3745. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3746. ac_saved_flags="$CXXFLAGS"
  3747. CXXFLAGS="-Werror -static-libstdc++"
  3748. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3749. /* end build/confdefs.h. */
  3750. int
  3751. main ()
  3752. {
  3753. ;
  3754. return 0;
  3755. }
  3756. _ACEOF
  3757. if ac_fn_cxx_try_compile "$LINENO"; then :
  3758. ax_cv_prog_cc_static_libstdcxx="yes"
  3759. else
  3760. ax_cv_prog_cc_static_libstdcxx="no"
  3761. fi
  3762. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3763. CXXFLAGS="$ac_saved_flags"
  3764. ac_ext=cpp
  3765. ac_cpp='$CXXCPP $CPPFLAGS'
  3766. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3767. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3768. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3769. fi
  3770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_static_libstdcxx" >&5
  3771. $as_echo "$ax_cv_prog_cc_static_libstdcxx" >&6; }
  3772. if [ "$ax_cv_prog_cc_static_libstdcxx" = "yes" ]; then
  3773. LDFLAGS="$LDFLAGS -static-libstdc++"
  3774. elif [ -n "" ]; then
  3775. cat << 'EOF' >&2
  3776. configure: error:
  3777. Your OS or C++ compiler does not support -static-libstdc++.
  3778. This compile flag is required.
  3779. EOF
  3780. exit 1
  3781. fi
  3782. #CXX_FLAG_CHECK([LDFLAGS], [-static-libgcc], [static_libgcc])
  3783. if [ "${ax_cv_prog_cc_static_libstdcxx}" = "yes" ]; then
  3784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for static libstdc++" >&5
  3785. $as_echo_n "checking for static libstdc++... " >&6; }
  3786. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3787. /* end build/confdefs.h. */
  3788. int
  3789. main ()
  3790. {
  3791. ;
  3792. return 0;
  3793. }
  3794. _ACEOF
  3795. if ac_fn_cxx_try_link "$LINENO"; then :
  3796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  3797. $as_echo "OK" >&6; }
  3798. else
  3799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found." >&5
  3800. $as_echo "not found." >&6; }
  3801. as_fn_error 1 "Static libstdc++ is rquired to build." "$LINENO" 5
  3802. fi
  3803. rm -f core conftest.err conftest.$ac_objext \
  3804. conftest$ac_exeext conftest.$ac_ext
  3805. fi
  3806. CCDEPMODE=gcc
  3807. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  3808. if test $num -ge "3"; then
  3809. CCDEPMODE=gcc3
  3810. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  3811. GCC3_CFLAGS="-W -Wno-unused-parameter -Wdisabled-optimization -Wno-write-strings -Wno-format-security -Wno-format-y2k"
  3812. GCC3_CXXFLAGS="-Woverloaded-virtual"
  3813. GCC3DEB="-Wno-disabled-optimization -Wmissing-format-attribute"
  3814. fi
  3815. #checkpoint
  3816. cat >confcache <<\_ACEOF
  3817. # This file is a shell script that caches the results of configure
  3818. # tests run on this system so they can be shared between configure
  3819. # scripts and configure runs, see configure's option --config-cache.
  3820. # It is not useful on other systems. If it contains results you don't
  3821. # want to keep, you may remove or edit it.
  3822. #
  3823. # build/config.status only pays attention to the cache file if you give it
  3824. # the --recheck option to rerun configure.
  3825. #
  3826. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3827. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3828. # following values.
  3829. _ACEOF
  3830. # The following way of writing the cache mishandles newlines in values,
  3831. # but we know of no workaround that is simple, portable, and efficient.
  3832. # So, we kill variables containing newlines.
  3833. # Ultrix sh set writes to stderr and can't be redirected directly,
  3834. # and sets the high bit in the cache file unless we assign to the vars.
  3835. (
  3836. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3837. eval ac_val=\$$ac_var
  3838. case $ac_val in #(
  3839. *${as_nl}*)
  3840. case $ac_var in #(
  3841. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3842. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3843. esac
  3844. case $ac_var in #(
  3845. _ | IFS | as_nl) ;; #(
  3846. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3847. *) { eval $ac_var=; unset $ac_var;} ;;
  3848. esac ;;
  3849. esac
  3850. done
  3851. (set) 2>&1 |
  3852. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3853. *${as_nl}ac_space=\ *)
  3854. # `set' does not quote correctly, so add quotes: double-quote
  3855. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3856. sed -n \
  3857. "s/'/'\\\\''/g;
  3858. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3859. ;; #(
  3860. *)
  3861. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3862. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3863. ;;
  3864. esac |
  3865. sort
  3866. ) |
  3867. sed '
  3868. /^ac_cv_env_/b end
  3869. t clear
  3870. :clear
  3871. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3872. t end
  3873. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3874. :end' >>confcache
  3875. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3876. if test -w "$cache_file"; then
  3877. if test "x$cache_file" != "x/dev/null"; then
  3878. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3879. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3880. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3881. cat confcache >"$cache_file"
  3882. else
  3883. case $cache_file in #(
  3884. */* | ?:*)
  3885. mv -f confcache "$cache_file"$$ &&
  3886. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3887. *)
  3888. mv -f confcache "$cache_file" ;;
  3889. esac
  3890. fi
  3891. fi
  3892. else
  3893. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3894. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3895. fi
  3896. fi
  3897. rm -f confcache
  3898. # Checks for programs
  3899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3900. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3901. set x ${MAKE-make}
  3902. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3903. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3904. $as_echo_n "(cached) " >&6
  3905. else
  3906. cat >conftest.make <<\_ACEOF
  3907. SHELL = /bin/sh
  3908. all:
  3909. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3910. _ACEOF
  3911. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3912. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3913. *@@@%%%=?*=@@@%%%*)
  3914. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3915. *)
  3916. eval ac_cv_prog_make_${ac_make}_set=no;;
  3917. esac
  3918. rm -f conftest.make
  3919. fi
  3920. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3922. $as_echo "yes" >&6; }
  3923. SET_MAKE=
  3924. else
  3925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3926. $as_echo "no" >&6; }
  3927. SET_MAKE="MAKE=${MAKE-make}"
  3928. fi
  3929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3930. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3931. if ${ac_cv_path_SED+:} false; then :
  3932. $as_echo_n "(cached) " >&6
  3933. else
  3934. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3935. for ac_i in 1 2 3 4 5 6 7; do
  3936. ac_script="$ac_script$as_nl$ac_script"
  3937. done
  3938. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3939. { ac_script=; unset ac_script;}
  3940. if test -z "$SED"; then
  3941. ac_path_SED_found=false
  3942. # Loop through the user's path and test for each of PROGNAME-LIST
  3943. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3944. for as_dir in $PATH
  3945. do
  3946. IFS=$as_save_IFS
  3947. test -z "$as_dir" && as_dir=.
  3948. for ac_prog in sed gsed; do
  3949. for ac_exec_ext in '' $ac_executable_extensions; do
  3950. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3951. as_fn_executable_p "$ac_path_SED" || continue
  3952. # Check for GNU ac_path_SED and select it if it is found.
  3953. # Check for GNU $ac_path_SED
  3954. case `"$ac_path_SED" --version 2>&1` in
  3955. *GNU*)
  3956. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3957. *)
  3958. ac_count=0
  3959. $as_echo_n 0123456789 >"conftest.in"
  3960. while :
  3961. do
  3962. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3963. mv "conftest.tmp" "conftest.in"
  3964. cp "conftest.in" "conftest.nl"
  3965. $as_echo '' >> "conftest.nl"
  3966. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3967. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3968. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3969. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3970. # Best one so far, save it but keep looking for a better one
  3971. ac_cv_path_SED="$ac_path_SED"
  3972. ac_path_SED_max=$ac_count
  3973. fi
  3974. # 10*(2^10) chars as input seems more than enough
  3975. test $ac_count -gt 10 && break
  3976. done
  3977. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3978. esac
  3979. $ac_path_SED_found && break 3
  3980. done
  3981. done
  3982. done
  3983. IFS=$as_save_IFS
  3984. if test -z "$ac_cv_path_SED"; then
  3985. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3986. fi
  3987. else
  3988. ac_cv_path_SED=$SED
  3989. fi
  3990. fi
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3992. $as_echo "$ac_cv_path_SED" >&6; }
  3993. SED="$ac_cv_path_SED"
  3994. rm -f conftest.sed
  3995. cat << 'EOF' > conftest.head
  3996. a
  3997. b
  3998. c
  3999. EOF
  4000. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  4001. do
  4002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_prog works" >&5
  4003. $as_echo_n "checking whether $ac_prog works... " >&6; }
  4004. if ${ac_cv_prog_HEAD_1+:} false; then :
  4005. $as_echo_n "(cached) " >&6
  4006. else
  4007. if test -n "$HEAD_1"
  4008. then
  4009. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  4010. else
  4011. if test "`cat conftest.head | $ac_prog`" = "a";
  4012. then
  4013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4014. $as_echo "yes" >&6; }
  4015. ac_cv_prog_HEAD_1=$ac_prog
  4016. else
  4017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4018. $as_echo "no" >&6; }
  4019. fi
  4020. fi
  4021. fi
  4022. test -n "$ac_cv_prog_HEAD_1" && break
  4023. done
  4024. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  4025. then
  4026. cat << 'EOF' >&2
  4027. configure: error:
  4028. This system seems to lack a working 'head -1' or 'head -n 1' command.
  4029. A working 'head -1' (or equivalent) command is required to compile Wraith.
  4030. EOF
  4031. exit 1
  4032. fi
  4033. rm -f conftest.head
  4034. HEAD_1=$ac_cv_prog_HEAD_1
  4035. # awk is needed for Tcl library and header checks, and eggdrop version subst
  4036. for ac_prog in gawk mawk nawk awk
  4037. do
  4038. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4039. set dummy $ac_prog; ac_word=$2
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4041. $as_echo_n "checking for $ac_word... " >&6; }
  4042. if ${ac_cv_prog_AWK+:} false; then :
  4043. $as_echo_n "(cached) " >&6
  4044. else
  4045. if test -n "$AWK"; then
  4046. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4047. else
  4048. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4049. for as_dir in $PATH
  4050. do
  4051. IFS=$as_save_IFS
  4052. test -z "$as_dir" && as_dir=.
  4053. for ac_exec_ext in '' $ac_executable_extensions; do
  4054. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4055. ac_cv_prog_AWK="$ac_prog"
  4056. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4057. break 2
  4058. fi
  4059. done
  4060. done
  4061. IFS=$as_save_IFS
  4062. fi
  4063. fi
  4064. AWK=$ac_cv_prog_AWK
  4065. if test -n "$AWK"; then
  4066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4067. $as_echo "$AWK" >&6; }
  4068. else
  4069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4070. $as_echo "no" >&6; }
  4071. fi
  4072. test -n "$AWK" && break
  4073. done
  4074. if test "${AWK-x}" = "x"
  4075. then
  4076. cat << 'EOF' >&2
  4077. configure: error:
  4078. This system seems to lack a working 'awk' command.
  4079. A working 'awk' command is required to compile Wraith.
  4080. EOF
  4081. exit 1
  4082. fi
  4083. # basename is needed for Tcl library and header checks
  4084. # Extract the first word of "basename", so it can be a program name with args.
  4085. set dummy basename; ac_word=$2
  4086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4087. $as_echo_n "checking for $ac_word... " >&6; }
  4088. if ${ac_cv_prog_BASENAME+:} false; then :
  4089. $as_echo_n "(cached) " >&6
  4090. else
  4091. if test -n "$BASENAME"; then
  4092. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  4093. else
  4094. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4095. for as_dir in $PATH
  4096. do
  4097. IFS=$as_save_IFS
  4098. test -z "$as_dir" && as_dir=.
  4099. for ac_exec_ext in '' $ac_executable_extensions; do
  4100. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4101. ac_cv_prog_BASENAME="basename"
  4102. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4103. break 2
  4104. fi
  4105. done
  4106. done
  4107. IFS=$as_save_IFS
  4108. fi
  4109. fi
  4110. BASENAME=$ac_cv_prog_BASENAME
  4111. if test -n "$BASENAME"; then
  4112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
  4113. $as_echo "$BASENAME" >&6; }
  4114. else
  4115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4116. $as_echo "no" >&6; }
  4117. fi
  4118. if test "${BASENAME-x}" = "x"
  4119. then
  4120. cat << 'EOF' >&2
  4121. configure: error:
  4122. This system seems to lack a working 'basename' command.
  4123. A working 'basename' command is required to compile Wraith.
  4124. EOF
  4125. exit 1
  4126. fi
  4127. # Extract the first word of "objcopy", so it can be a program name with args.
  4128. set dummy objcopy; ac_word=$2
  4129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4130. $as_echo_n "checking for $ac_word... " >&6; }
  4131. if ${ac_cv_prog_OBJCOPY+:} false; then :
  4132. $as_echo_n "(cached) " >&6
  4133. else
  4134. if test -n "$OBJCOPY"; then
  4135. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  4136. else
  4137. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4138. for as_dir in $PATH
  4139. do
  4140. IFS=$as_save_IFS
  4141. test -z "$as_dir" && as_dir=.
  4142. for ac_exec_ext in '' $ac_executable_extensions; do
  4143. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4144. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  4145. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4146. break 2
  4147. fi
  4148. done
  4149. done
  4150. IFS=$as_save_IFS
  4151. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  4152. fi
  4153. fi
  4154. OBJCOPY=$ac_cv_prog_OBJCOPY
  4155. if test -n "$OBJCOPY"; then
  4156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  4157. $as_echo "$OBJCOPY" >&6; }
  4158. else
  4159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4160. $as_echo "no" >&6; }
  4161. fi
  4162. # Extract the first word of "strip", so it can be a program name with args.
  4163. set dummy strip; ac_word=$2
  4164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4165. $as_echo_n "checking for $ac_word... " >&6; }
  4166. if ${ac_cv_prog_STRIP+:} false; then :
  4167. $as_echo_n "(cached) " >&6
  4168. else
  4169. if test -n "$STRIP"; then
  4170. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4171. else
  4172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4173. for as_dir in $PATH
  4174. do
  4175. IFS=$as_save_IFS
  4176. test -z "$as_dir" && as_dir=.
  4177. for ac_exec_ext in '' $ac_executable_extensions; do
  4178. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4179. ac_cv_prog_STRIP="strip"
  4180. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4181. break 2
  4182. fi
  4183. done
  4184. done
  4185. IFS=$as_save_IFS
  4186. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  4187. fi
  4188. fi
  4189. STRIP=$ac_cv_prog_STRIP
  4190. if test -n "$STRIP"; then
  4191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4192. $as_echo "$STRIP" >&6; }
  4193. else
  4194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4195. $as_echo "no" >&6; }
  4196. fi
  4197. # Extract the first word of "gdiff", so it can be a program name with args.
  4198. set dummy gdiff; ac_word=$2
  4199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4200. $as_echo_n "checking for $ac_word... " >&6; }
  4201. if ${ac_cv_prog_DIFF+:} false; then :
  4202. $as_echo_n "(cached) " >&6
  4203. else
  4204. if test -n "$DIFF"; then
  4205. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  4206. else
  4207. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4208. for as_dir in $PATH
  4209. do
  4210. IFS=$as_save_IFS
  4211. test -z "$as_dir" && as_dir=.
  4212. for ac_exec_ext in '' $ac_executable_extensions; do
  4213. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4214. ac_cv_prog_DIFF="gdiff"
  4215. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4216. break 2
  4217. fi
  4218. done
  4219. done
  4220. IFS=$as_save_IFS
  4221. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  4222. fi
  4223. fi
  4224. DIFF=$ac_cv_prog_DIFF
  4225. if test -n "$DIFF"; then
  4226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
  4227. $as_echo "$DIFF" >&6; }
  4228. else
  4229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4230. $as_echo "no" >&6; }
  4231. fi
  4232. # Extract the first word of "uname", so it can be a program name with args.
  4233. set dummy uname; ac_word=$2
  4234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4235. $as_echo_n "checking for $ac_word... " >&6; }
  4236. if ${ac_cv_prog_UNAME+:} false; then :
  4237. $as_echo_n "(cached) " >&6
  4238. else
  4239. if test -n "$UNAME"; then
  4240. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  4241. else
  4242. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4243. for as_dir in $PATH
  4244. do
  4245. IFS=$as_save_IFS
  4246. test -z "$as_dir" && as_dir=.
  4247. for ac_exec_ext in '' $ac_executable_extensions; do
  4248. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4249. ac_cv_prog_UNAME="uname"
  4250. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4251. break 2
  4252. fi
  4253. done
  4254. done
  4255. IFS=$as_save_IFS
  4256. fi
  4257. fi
  4258. UNAME=$ac_cv_prog_UNAME
  4259. if test -n "$UNAME"; then
  4260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
  4261. $as_echo "$UNAME" >&6; }
  4262. else
  4263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4264. $as_echo "no" >&6; }
  4265. fi
  4266. # Test the os and set the module linking settings
  4267. USE_STATIC=yes
  4268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system type" >&5
  4269. $as_echo_n "checking system type... " >&6; }
  4270. if ${egg_cv_var_system_type+:} false; then :
  4271. $as_echo_n "(cached) " >&6
  4272. else
  4273. egg_cv_var_system_type=`$UNAME -s`
  4274. fi
  4275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_type" >&5
  4276. $as_echo "$egg_cv_var_system_type" >&6; }
  4277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system release" >&5
  4278. $as_echo_n "checking system release... " >&6; }
  4279. if ${egg_cv_var_system_release+:} false; then :
  4280. $as_echo_n "(cached) " >&6
  4281. else
  4282. egg_cv_var_system_release=`$UNAME -r`
  4283. fi
  4284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_release" >&5
  4285. $as_echo "$egg_cv_var_system_release" >&6; }
  4286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system machine" >&5
  4287. $as_echo_n "checking system machine... " >&6; }
  4288. if ${egg_cv_var_system_machine+:} false; then :
  4289. $as_echo_n "(cached) " >&6
  4290. else
  4291. egg_cv_var_system_machine=`$UNAME -m`
  4292. fi
  4293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_machine" >&5
  4294. $as_echo "$egg_cv_var_system_machine" >&6; }
  4295. BUILDOS="$egg_cv_var_system_type"
  4296. BUILDARCH="$egg_cv_var_system_machine"
  4297. case "$egg_cv_var_system_type" in
  4298. BSD/OS)
  4299. ;;
  4300. IRIX)
  4301. ;;
  4302. HP-UX)
  4303. $as_echo "#define MD32_XARRAY 1" >>build/confdefs.h
  4304. ;;
  4305. Ultrix)
  4306. SHELL=/bin/sh5
  4307. ;;
  4308. SINIX*)
  4309. ;;
  4310. BeOS)
  4311. ;;
  4312. Linux)
  4313. ;;
  4314. Lynx)
  4315. ;;
  4316. QNX)
  4317. ;;
  4318. OSF1)
  4319. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  4320. V*)
  4321. if test "$AWK" = "gawk"
  4322. then
  4323. AWK=awk
  4324. fi
  4325. ;;
  4326. 1.0|1.1|1.2)
  4327. $as_echo "#define OSF1_HACKS 1" >>build/confdefs.h
  4328. ;;
  4329. 1.*)
  4330. $as_echo "#define OSF1_HACKS 1" >>build/confdefs.h
  4331. ;;
  4332. *)
  4333. ;;
  4334. esac
  4335. $as_echo "#define STOP_UAC 1" >>build/confdefs.h
  4336. $as_echo "#define BROKEN_SNPRINTF 1" >>build/confdefs.h
  4337. ;;
  4338. SunOS)
  4339. SUNOS="yes"
  4340. USE_STATIC="no"
  4341. ;;
  4342. Darwin)
  4343. USE_STATIC="no"
  4344. ;;
  4345. *BSD)
  4346. # FreeBSD/OpenBSD/NetBSD
  4347. ;;
  4348. *)
  4349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is Mach based" >&5
  4350. $as_echo_n "checking if system is Mach based... " >&6; }
  4351. if test -r /mach
  4352. then
  4353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4354. $as_echo "yes" >&6; }
  4355. $as_echo "#define BORGCUBES 1" >>build/confdefs.h
  4356. else
  4357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4358. $as_echo "no" >&6; }
  4359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is QNX" >&5
  4360. $as_echo_n "checking if system is QNX... " >&6; }
  4361. if test -r /cmds
  4362. then
  4363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4364. $as_echo "yes" >&6; }
  4365. else
  4366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4367. $as_echo "no" >&6; }
  4368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Something unknown!" >&5
  4369. $as_echo "Something unknown!" >&6; }
  4370. fi
  4371. fi
  4372. ;;
  4373. esac
  4374. # Check for IPv6 support
  4375. #EGG_IPV6_SUPPORTED
  4376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether IPv6 is enabled" >&5
  4377. $as_echo_n "checking whether IPv6 is enabled... " >&6; }
  4378. # Check whether --enable-ipv6 was given.
  4379. if test "${enable_ipv6+set}" = set; then :
  4380. enableval=$enable_ipv6;
  4381. enable_ipv6=$enableval
  4382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  4383. $as_echo "$enableval" >&6; }
  4384. else
  4385. # default if not given is ENABLED
  4386. if test "x$enableval" = "x"; then
  4387. enableval="yes"
  4388. fi
  4389. enable_ipv6=$enableval
  4390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  4391. $as_echo "$enableval" >&6; }
  4392. $as_echo "#define USE_IPV6 1" >>build/confdefs.h
  4393. fi
  4394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
  4395. $as_echo_n "checking for socklen_t... " >&6; }
  4396. if ${egg_cv_socklen_t+:} false; then :
  4397. $as_echo_n "(cached) " >&6
  4398. else
  4399. if test "$cross_compiling" = yes; then :
  4400. egg_cv_socklen_t=no
  4401. else
  4402. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4403. /* end build/confdefs.h. */
  4404. #include <unistd.h>
  4405. #include <sys/types.h>
  4406. #include <sys/socket.h>
  4407. #include <netinet/in.h>
  4408. #include <arpa/inet.h>
  4409. int main()
  4410. {
  4411. socklen_t test = sizeof(int);
  4412. return 0;
  4413. }
  4414. _ACEOF
  4415. if ac_fn_cxx_try_run "$LINENO"; then :
  4416. egg_cv_socklen_t=yes
  4417. else
  4418. egg_cv_socklen_t=no
  4419. fi
  4420. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4421. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4422. fi
  4423. fi
  4424. if test "$egg_cv_socklen_t" = "yes"; then
  4425. $as_echo "#define HAVE_SOCKLEN_T 1" >>build/confdefs.h
  4426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4427. $as_echo "yes" >&6; }
  4428. else
  4429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4430. $as_echo "no" >&6; }
  4431. fi
  4432. # Check for inconsistent random() functions
  4433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random limit" >&5
  4434. $as_echo_n "checking for random limit... " >&6; }
  4435. case "$egg_cv_var_system_type" in
  4436. SunOS) RMAX=0x7FFFFFFF
  4437. ;;
  4438. *) RMAX=RAND_MAX
  4439. ;;
  4440. esac
  4441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMAX" >&5
  4442. $as_echo "$RMAX" >&6; }
  4443. cat >>build/confdefs.h <<_ACEOF
  4444. #define RANDOM_MAX $RMAX
  4445. _ACEOF
  4446. # Create static binaries
  4447. if test "$USE_STATIC" = "yes"
  4448. then
  4449. if test -n "$GXX"
  4450. then
  4451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static" >&5
  4452. $as_echo_n "checking whether the compiler understands -static... " >&6; }
  4453. if ${egg_cv_var_ccstatic+:} false; then :
  4454. $as_echo_n "(cached) " >&6
  4455. else
  4456. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4457. /* end build/confdefs.h. */
  4458. int
  4459. main ()
  4460. {
  4461. ;
  4462. return 0;
  4463. }
  4464. _ACEOF
  4465. if ac_fn_cxx_try_compile "$LINENO"; then :
  4466. egg_cv_var_ccstatic="yes"
  4467. else
  4468. egg_cv_var_ccstatic="no"
  4469. fi
  4470. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4471. fi
  4472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccstatic" >&5
  4473. $as_echo "$egg_cv_var_ccstatic" >&6; }
  4474. if ! test "$egg_cv_var_ccstatic" = "yes"
  4475. then
  4476. cat << 'EOF' >&2
  4477. configure: error:
  4478. Your OS or C++ compiler does not support -static.
  4479. This compile flag is required for the botpack on this OS.
  4480. EOF
  4481. exit 1
  4482. fi
  4483. fi
  4484. STATIC="-static"
  4485. else
  4486. STATIC=""
  4487. fi
  4488. #checkpoint
  4489. cat >confcache <<\_ACEOF
  4490. # This file is a shell script that caches the results of configure
  4491. # tests run on this system so they can be shared between configure
  4492. # scripts and configure runs, see configure's option --config-cache.
  4493. # It is not useful on other systems. If it contains results you don't
  4494. # want to keep, you may remove or edit it.
  4495. #
  4496. # build/config.status only pays attention to the cache file if you give it
  4497. # the --recheck option to rerun configure.
  4498. #
  4499. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4500. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4501. # following values.
  4502. _ACEOF
  4503. # The following way of writing the cache mishandles newlines in values,
  4504. # but we know of no workaround that is simple, portable, and efficient.
  4505. # So, we kill variables containing newlines.
  4506. # Ultrix sh set writes to stderr and can't be redirected directly,
  4507. # and sets the high bit in the cache file unless we assign to the vars.
  4508. (
  4509. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4510. eval ac_val=\$$ac_var
  4511. case $ac_val in #(
  4512. *${as_nl}*)
  4513. case $ac_var in #(
  4514. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4515. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4516. esac
  4517. case $ac_var in #(
  4518. _ | IFS | as_nl) ;; #(
  4519. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4520. *) { eval $ac_var=; unset $ac_var;} ;;
  4521. esac ;;
  4522. esac
  4523. done
  4524. (set) 2>&1 |
  4525. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4526. *${as_nl}ac_space=\ *)
  4527. # `set' does not quote correctly, so add quotes: double-quote
  4528. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4529. sed -n \
  4530. "s/'/'\\\\''/g;
  4531. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4532. ;; #(
  4533. *)
  4534. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4535. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4536. ;;
  4537. esac |
  4538. sort
  4539. ) |
  4540. sed '
  4541. /^ac_cv_env_/b end
  4542. t clear
  4543. :clear
  4544. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4545. t end
  4546. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4547. :end' >>confcache
  4548. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4549. if test -w "$cache_file"; then
  4550. if test "x$cache_file" != "x/dev/null"; then
  4551. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4552. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4553. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4554. cat confcache >"$cache_file"
  4555. else
  4556. case $cache_file in #(
  4557. */* | ?:*)
  4558. mv -f confcache "$cache_file"$$ &&
  4559. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4560. *)
  4561. mv -f confcache "$cache_file" ;;
  4562. esac
  4563. fi
  4564. fi
  4565. else
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4567. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4568. fi
  4569. fi
  4570. rm -f confcache
  4571. # Checks for system libraries
  4572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  4573. $as_echo_n "checking for socket in -lsocket... " >&6; }
  4574. if ${ac_cv_lib_socket_socket+:} false; then :
  4575. $as_echo_n "(cached) " >&6
  4576. else
  4577. ac_check_lib_save_LIBS=$LIBS
  4578. LIBS="-lsocket $LIBS"
  4579. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4580. /* end build/confdefs.h. */
  4581. /* Override any GCC internal prototype to avoid an error.
  4582. Use char because int might match the return type of a GCC
  4583. builtin and then its argument prototype would still apply. */
  4584. #ifdef __cplusplus
  4585. extern "C"
  4586. #endif
  4587. char socket ();
  4588. int
  4589. main ()
  4590. {
  4591. return socket ();
  4592. ;
  4593. return 0;
  4594. }
  4595. _ACEOF
  4596. if ac_fn_cxx_try_link "$LINENO"; then :
  4597. ac_cv_lib_socket_socket=yes
  4598. else
  4599. ac_cv_lib_socket_socket=no
  4600. fi
  4601. rm -f core conftest.err conftest.$ac_objext \
  4602. conftest$ac_exeext conftest.$ac_ext
  4603. LIBS=$ac_check_lib_save_LIBS
  4604. fi
  4605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  4606. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  4607. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  4608. cat >>build/confdefs.h <<_ACEOF
  4609. #define HAVE_LIBSOCKET 1
  4610. _ACEOF
  4611. LIBS="-lsocket $LIBS"
  4612. fi
  4613. # AC_CHECK_LIB(nsl, connect)
  4614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  4615. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  4616. if ${ac_cv_lib_dl_dlopen+:} false; then :
  4617. $as_echo_n "(cached) " >&6
  4618. else
  4619. ac_check_lib_save_LIBS=$LIBS
  4620. LIBS="-ldl $LIBS"
  4621. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4622. /* end build/confdefs.h. */
  4623. /* Override any GCC internal prototype to avoid an error.
  4624. Use char because int might match the return type of a GCC
  4625. builtin and then its argument prototype would still apply. */
  4626. #ifdef __cplusplus
  4627. extern "C"
  4628. #endif
  4629. char dlopen ();
  4630. int
  4631. main ()
  4632. {
  4633. return dlopen ();
  4634. ;
  4635. return 0;
  4636. }
  4637. _ACEOF
  4638. if ac_fn_cxx_try_link "$LINENO"; then :
  4639. ac_cv_lib_dl_dlopen=yes
  4640. else
  4641. ac_cv_lib_dl_dlopen=no
  4642. fi
  4643. rm -f core conftest.err conftest.$ac_objext \
  4644. conftest$ac_exeext conftest.$ac_ext
  4645. LIBS=$ac_check_lib_save_LIBS
  4646. fi
  4647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  4648. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  4649. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  4650. cat >>build/confdefs.h <<_ACEOF
  4651. #define HAVE_LIBDL 1
  4652. _ACEOF
  4653. LIBS="-ldl $LIBS"
  4654. fi
  4655. if test "$SUNOS" = "yes"; then
  4656. # For suns without yp
  4657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
  4658. $as_echo_n "checking for main in -ldl... " >&6; }
  4659. if ${ac_cv_lib_dl_main+:} false; then :
  4660. $as_echo_n "(cached) " >&6
  4661. else
  4662. ac_check_lib_save_LIBS=$LIBS
  4663. LIBS="-ldl $LIBS"
  4664. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4665. /* end build/confdefs.h. */
  4666. int
  4667. main ()
  4668. {
  4669. return main ();
  4670. ;
  4671. return 0;
  4672. }
  4673. _ACEOF
  4674. if ac_fn_cxx_try_link "$LINENO"; then :
  4675. ac_cv_lib_dl_main=yes
  4676. else
  4677. ac_cv_lib_dl_main=no
  4678. fi
  4679. rm -f core conftest.err conftest.$ac_objext \
  4680. conftest$ac_exeext conftest.$ac_ext
  4681. LIBS=$ac_check_lib_save_LIBS
  4682. fi
  4683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
  4684. $as_echo "$ac_cv_lib_dl_main" >&6; }
  4685. if test "x$ac_cv_lib_dl_main" = xyes; then :
  4686. cat >>build/confdefs.h <<_ACEOF
  4687. #define HAVE_LIBDL 1
  4688. _ACEOF
  4689. LIBS="-ldl $LIBS"
  4690. fi
  4691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
  4692. $as_echo_n "checking for main in -lsocket... " >&6; }
  4693. if ${ac_cv_lib_socket_main+:} false; then :
  4694. $as_echo_n "(cached) " >&6
  4695. else
  4696. ac_check_lib_save_LIBS=$LIBS
  4697. LIBS="-lsocket $LIBS"
  4698. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4699. /* end build/confdefs.h. */
  4700. int
  4701. main ()
  4702. {
  4703. return main ();
  4704. ;
  4705. return 0;
  4706. }
  4707. _ACEOF
  4708. if ac_fn_cxx_try_link "$LINENO"; then :
  4709. ac_cv_lib_socket_main=yes
  4710. else
  4711. ac_cv_lib_socket_main=no
  4712. fi
  4713. rm -f core conftest.err conftest.$ac_objext \
  4714. conftest$ac_exeext conftest.$ac_ext
  4715. LIBS=$ac_check_lib_save_LIBS
  4716. fi
  4717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
  4718. $as_echo "$ac_cv_lib_socket_main" >&6; }
  4719. if test "x$ac_cv_lib_socket_main" = xyes; then :
  4720. cat >>build/confdefs.h <<_ACEOF
  4721. #define HAVE_LIBSOCKET 1
  4722. _ACEOF
  4723. LIBS="-lsocket $LIBS"
  4724. fi
  4725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
  4726. $as_echo_n "checking for main in -lnsl... " >&6; }
  4727. if ${ac_cv_lib_nsl_main+:} false; then :
  4728. $as_echo_n "(cached) " >&6
  4729. else
  4730. ac_check_lib_save_LIBS=$LIBS
  4731. LIBS="-lnsl $LIBS"
  4732. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4733. /* end build/confdefs.h. */
  4734. int
  4735. main ()
  4736. {
  4737. return main ();
  4738. ;
  4739. return 0;
  4740. }
  4741. _ACEOF
  4742. if ac_fn_cxx_try_link "$LINENO"; then :
  4743. ac_cv_lib_nsl_main=yes
  4744. else
  4745. ac_cv_lib_nsl_main=no
  4746. fi
  4747. rm -f core conftest.err conftest.$ac_objext \
  4748. conftest$ac_exeext conftest.$ac_ext
  4749. LIBS=$ac_check_lib_save_LIBS
  4750. fi
  4751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
  4752. $as_echo "$ac_cv_lib_nsl_main" >&6; }
  4753. if test "x$ac_cv_lib_nsl_main" = xyes; then :
  4754. cat >>build/confdefs.h <<_ACEOF
  4755. #define HAVE_LIBNSL 1
  4756. _ACEOF
  4757. LIBS="-lnsl $LIBS"
  4758. fi
  4759. fi
  4760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4761. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4762. if ${ac_cv_path_GREP+:} false; then :
  4763. $as_echo_n "(cached) " >&6
  4764. else
  4765. if test -z "$GREP"; then
  4766. ac_path_GREP_found=false
  4767. # Loop through the user's path and test for each of PROGNAME-LIST
  4768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4769. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4770. do
  4771. IFS=$as_save_IFS
  4772. test -z "$as_dir" && as_dir=.
  4773. for ac_prog in grep ggrep; do
  4774. for ac_exec_ext in '' $ac_executable_extensions; do
  4775. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4776. as_fn_executable_p "$ac_path_GREP" || continue
  4777. # Check for GNU ac_path_GREP and select it if it is found.
  4778. # Check for GNU $ac_path_GREP
  4779. case `"$ac_path_GREP" --version 2>&1` in
  4780. *GNU*)
  4781. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4782. *)
  4783. ac_count=0
  4784. $as_echo_n 0123456789 >"conftest.in"
  4785. while :
  4786. do
  4787. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4788. mv "conftest.tmp" "conftest.in"
  4789. cp "conftest.in" "conftest.nl"
  4790. $as_echo 'GREP' >> "conftest.nl"
  4791. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4792. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4793. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4794. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4795. # Best one so far, save it but keep looking for a better one
  4796. ac_cv_path_GREP="$ac_path_GREP"
  4797. ac_path_GREP_max=$ac_count
  4798. fi
  4799. # 10*(2^10) chars as input seems more than enough
  4800. test $ac_count -gt 10 && break
  4801. done
  4802. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4803. esac
  4804. $ac_path_GREP_found && break 3
  4805. done
  4806. done
  4807. done
  4808. IFS=$as_save_IFS
  4809. if test -z "$ac_cv_path_GREP"; then
  4810. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4811. fi
  4812. else
  4813. ac_cv_path_GREP=$GREP
  4814. fi
  4815. fi
  4816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4817. $as_echo "$ac_cv_path_GREP" >&6; }
  4818. GREP="$ac_cv_path_GREP"
  4819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4820. $as_echo_n "checking for egrep... " >&6; }
  4821. if ${ac_cv_path_EGREP+:} false; then :
  4822. $as_echo_n "(cached) " >&6
  4823. else
  4824. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4825. then ac_cv_path_EGREP="$GREP -E"
  4826. else
  4827. if test -z "$EGREP"; then
  4828. ac_path_EGREP_found=false
  4829. # Loop through the user's path and test for each of PROGNAME-LIST
  4830. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4831. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4832. do
  4833. IFS=$as_save_IFS
  4834. test -z "$as_dir" && as_dir=.
  4835. for ac_prog in egrep; do
  4836. for ac_exec_ext in '' $ac_executable_extensions; do
  4837. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4838. as_fn_executable_p "$ac_path_EGREP" || continue
  4839. # Check for GNU ac_path_EGREP and select it if it is found.
  4840. # Check for GNU $ac_path_EGREP
  4841. case `"$ac_path_EGREP" --version 2>&1` in
  4842. *GNU*)
  4843. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4844. *)
  4845. ac_count=0
  4846. $as_echo_n 0123456789 >"conftest.in"
  4847. while :
  4848. do
  4849. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4850. mv "conftest.tmp" "conftest.in"
  4851. cp "conftest.in" "conftest.nl"
  4852. $as_echo 'EGREP' >> "conftest.nl"
  4853. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4854. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4855. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4856. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4857. # Best one so far, save it but keep looking for a better one
  4858. ac_cv_path_EGREP="$ac_path_EGREP"
  4859. ac_path_EGREP_max=$ac_count
  4860. fi
  4861. # 10*(2^10) chars as input seems more than enough
  4862. test $ac_count -gt 10 && break
  4863. done
  4864. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4865. esac
  4866. $ac_path_EGREP_found && break 3
  4867. done
  4868. done
  4869. done
  4870. IFS=$as_save_IFS
  4871. if test -z "$ac_cv_path_EGREP"; then
  4872. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4873. fi
  4874. else
  4875. ac_cv_path_EGREP=$EGREP
  4876. fi
  4877. fi
  4878. fi
  4879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4880. $as_echo "$ac_cv_path_EGREP" >&6; }
  4881. EGREP="$ac_cv_path_EGREP"
  4882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4883. $as_echo_n "checking for ANSI C header files... " >&6; }
  4884. if ${ac_cv_header_stdc+:} false; then :
  4885. $as_echo_n "(cached) " >&6
  4886. else
  4887. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4888. /* end build/confdefs.h. */
  4889. #include <stdlib.h>
  4890. #include <stdarg.h>
  4891. #include <string.h>
  4892. #include <float.h>
  4893. int
  4894. main ()
  4895. {
  4896. ;
  4897. return 0;
  4898. }
  4899. _ACEOF
  4900. if ac_fn_cxx_try_compile "$LINENO"; then :
  4901. ac_cv_header_stdc=yes
  4902. else
  4903. ac_cv_header_stdc=no
  4904. fi
  4905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4906. if test $ac_cv_header_stdc = yes; then
  4907. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4908. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4909. /* end build/confdefs.h. */
  4910. #include <string.h>
  4911. _ACEOF
  4912. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4913. $EGREP "memchr" >/dev/null 2>&1; then :
  4914. else
  4915. ac_cv_header_stdc=no
  4916. fi
  4917. rm -f conftest*
  4918. fi
  4919. if test $ac_cv_header_stdc = yes; then
  4920. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4921. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4922. /* end build/confdefs.h. */
  4923. #include <stdlib.h>
  4924. _ACEOF
  4925. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4926. $EGREP "free" >/dev/null 2>&1; then :
  4927. else
  4928. ac_cv_header_stdc=no
  4929. fi
  4930. rm -f conftest*
  4931. fi
  4932. if test $ac_cv_header_stdc = yes; then
  4933. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4934. if test "$cross_compiling" = yes; then :
  4935. :
  4936. else
  4937. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4938. /* end build/confdefs.h. */
  4939. #include <ctype.h>
  4940. #include <stdlib.h>
  4941. #if ((' ' & 0x0FF) == 0x020)
  4942. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4943. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4944. #else
  4945. # define ISLOWER(c) \
  4946. (('a' <= (c) && (c) <= 'i') \
  4947. || ('j' <= (c) && (c) <= 'r') \
  4948. || ('s' <= (c) && (c) <= 'z'))
  4949. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4950. #endif
  4951. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4952. int
  4953. main ()
  4954. {
  4955. int i;
  4956. for (i = 0; i < 256; i++)
  4957. if (XOR (islower (i), ISLOWER (i))
  4958. || toupper (i) != TOUPPER (i))
  4959. return 2;
  4960. return 0;
  4961. }
  4962. _ACEOF
  4963. if ac_fn_cxx_try_run "$LINENO"; then :
  4964. else
  4965. ac_cv_header_stdc=no
  4966. fi
  4967. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4968. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4969. fi
  4970. fi
  4971. fi
  4972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4973. $as_echo "$ac_cv_header_stdc" >&6; }
  4974. if test $ac_cv_header_stdc = yes; then
  4975. $as_echo "#define STDC_HEADERS 1" >>build/confdefs.h
  4976. fi
  4977. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4978. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4979. inttypes.h stdint.h unistd.h
  4980. do :
  4981. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4982. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4983. "
  4984. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4985. cat >>build/confdefs.h <<_ACEOF
  4986. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4987. _ACEOF
  4988. fi
  4989. done
  4990. LIBELF_DIR="lib/libelf/lib"
  4991. LIBELF_LIB="\$(top_builddir)/${LIBELF_DIR}/libelf.a"
  4992. LIBELF_BUNDLED="${LIBELF_LIB}"
  4993. LIBELF_INCLUDE="-I\$(top_srcdir)/${LIBELF_DIR}"
  4994. for ac_header in gelf.h libelf.h
  4995. do :
  4996. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4997. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4998. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4999. cat >>build/confdefs.h <<_ACEOF
  5000. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5001. _ACEOF
  5002. ac_fn_cxx_check_type "$LINENO" "Elf_Note" "ac_cv_type_Elf_Note" "
  5003. #include \"gelf.h\"
  5004. #include \"libelf.h\"
  5005. "
  5006. if test "x$ac_cv_type_Elf_Note" = xyes; then :
  5007. cat >>build/confdefs.h <<_ACEOF
  5008. #define HAVE_ELF_NOTE 1
  5009. _ACEOF
  5010. $as_echo "#define HAVE_GELF_H 1" >>build/confdefs.h
  5011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gelf_getehdr in -lelf" >&5
  5012. $as_echo_n "checking for gelf_getehdr in -lelf... " >&6; }
  5013. if ${ac_cv_lib_elf_gelf_getehdr+:} false; then :
  5014. $as_echo_n "(cached) " >&6
  5015. else
  5016. ac_check_lib_save_LIBS=$LIBS
  5017. LIBS="-lelf $LIBS"
  5018. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5019. /* end build/confdefs.h. */
  5020. /* Override any GCC internal prototype to avoid an error.
  5021. Use char because int might match the return type of a GCC
  5022. builtin and then its argument prototype would still apply. */
  5023. #ifdef __cplusplus
  5024. extern "C"
  5025. #endif
  5026. char gelf_getehdr ();
  5027. int
  5028. main ()
  5029. {
  5030. return gelf_getehdr ();
  5031. ;
  5032. return 0;
  5033. }
  5034. _ACEOF
  5035. if ac_fn_cxx_try_link "$LINENO"; then :
  5036. ac_cv_lib_elf_gelf_getehdr=yes
  5037. else
  5038. ac_cv_lib_elf_gelf_getehdr=no
  5039. fi
  5040. rm -f core conftest.err conftest.$ac_objext \
  5041. conftest$ac_exeext conftest.$ac_ext
  5042. LIBS=$ac_check_lib_save_LIBS
  5043. fi
  5044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_gelf_getehdr" >&5
  5045. $as_echo "$ac_cv_lib_elf_gelf_getehdr" >&6; }
  5046. if test "x$ac_cv_lib_elf_gelf_getehdr" = xyes; then :
  5047. $as_echo "#define HAVE_LIBELF 1" >>build/confdefs.h
  5048. LIBELF_LIB="-Wl,-Bstatic -lelf -Wl,-Bdynamic"
  5049. LIBELF_BUNDLED=
  5050. LIBELF_INCLUDE=
  5051. fi
  5052. fi
  5053. fi
  5054. done
  5055. CPPFLAGS="${CPPFLAGS} ${LIBELF_INCLUDE}"
  5056. # Checks for header files
  5057. ac_header_dirent=no
  5058. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  5059. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  5060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  5061. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  5062. if eval \${$as_ac_Header+:} false; then :
  5063. $as_echo_n "(cached) " >&6
  5064. else
  5065. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5066. /* end build/confdefs.h. */
  5067. #include <sys/types.h>
  5068. #include <$ac_hdr>
  5069. int
  5070. main ()
  5071. {
  5072. if ((DIR *) 0)
  5073. return 0;
  5074. ;
  5075. return 0;
  5076. }
  5077. _ACEOF
  5078. if ac_fn_cxx_try_compile "$LINENO"; then :
  5079. eval "$as_ac_Header=yes"
  5080. else
  5081. eval "$as_ac_Header=no"
  5082. fi
  5083. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5084. fi
  5085. eval ac_res=\$$as_ac_Header
  5086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5087. $as_echo "$ac_res" >&6; }
  5088. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5089. cat >>build/confdefs.h <<_ACEOF
  5090. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  5091. _ACEOF
  5092. ac_header_dirent=$ac_hdr; break
  5093. fi
  5094. done
  5095. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  5096. if test $ac_header_dirent = dirent.h; then
  5097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  5098. $as_echo_n "checking for library containing opendir... " >&6; }
  5099. if ${ac_cv_search_opendir+:} false; then :
  5100. $as_echo_n "(cached) " >&6
  5101. else
  5102. ac_func_search_save_LIBS=$LIBS
  5103. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5104. /* end build/confdefs.h. */
  5105. /* Override any GCC internal prototype to avoid an error.
  5106. Use char because int might match the return type of a GCC
  5107. builtin and then its argument prototype would still apply. */
  5108. #ifdef __cplusplus
  5109. extern "C"
  5110. #endif
  5111. char opendir ();
  5112. int
  5113. main ()
  5114. {
  5115. return opendir ();
  5116. ;
  5117. return 0;
  5118. }
  5119. _ACEOF
  5120. for ac_lib in '' dir; do
  5121. if test -z "$ac_lib"; then
  5122. ac_res="none required"
  5123. else
  5124. ac_res=-l$ac_lib
  5125. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5126. fi
  5127. if ac_fn_cxx_try_link "$LINENO"; then :
  5128. ac_cv_search_opendir=$ac_res
  5129. fi
  5130. rm -f core conftest.err conftest.$ac_objext \
  5131. conftest$ac_exeext
  5132. if ${ac_cv_search_opendir+:} false; then :
  5133. break
  5134. fi
  5135. done
  5136. if ${ac_cv_search_opendir+:} false; then :
  5137. else
  5138. ac_cv_search_opendir=no
  5139. fi
  5140. rm conftest.$ac_ext
  5141. LIBS=$ac_func_search_save_LIBS
  5142. fi
  5143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  5144. $as_echo "$ac_cv_search_opendir" >&6; }
  5145. ac_res=$ac_cv_search_opendir
  5146. if test "$ac_res" != no; then :
  5147. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5148. fi
  5149. else
  5150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  5151. $as_echo_n "checking for library containing opendir... " >&6; }
  5152. if ${ac_cv_search_opendir+:} false; then :
  5153. $as_echo_n "(cached) " >&6
  5154. else
  5155. ac_func_search_save_LIBS=$LIBS
  5156. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5157. /* end build/confdefs.h. */
  5158. /* Override any GCC internal prototype to avoid an error.
  5159. Use char because int might match the return type of a GCC
  5160. builtin and then its argument prototype would still apply. */
  5161. #ifdef __cplusplus
  5162. extern "C"
  5163. #endif
  5164. char opendir ();
  5165. int
  5166. main ()
  5167. {
  5168. return opendir ();
  5169. ;
  5170. return 0;
  5171. }
  5172. _ACEOF
  5173. for ac_lib in '' x; do
  5174. if test -z "$ac_lib"; then
  5175. ac_res="none required"
  5176. else
  5177. ac_res=-l$ac_lib
  5178. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5179. fi
  5180. if ac_fn_cxx_try_link "$LINENO"; then :
  5181. ac_cv_search_opendir=$ac_res
  5182. fi
  5183. rm -f core conftest.err conftest.$ac_objext \
  5184. conftest$ac_exeext
  5185. if ${ac_cv_search_opendir+:} false; then :
  5186. break
  5187. fi
  5188. done
  5189. if ${ac_cv_search_opendir+:} false; then :
  5190. else
  5191. ac_cv_search_opendir=no
  5192. fi
  5193. rm conftest.$ac_ext
  5194. LIBS=$ac_func_search_save_LIBS
  5195. fi
  5196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  5197. $as_echo "$ac_cv_search_opendir" >&6; }
  5198. ac_res=$ac_cv_search_opendir
  5199. if test "$ac_res" != no; then :
  5200. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5201. fi
  5202. fi
  5203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  5204. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  5205. if ${ac_cv_header_sys_wait_h+:} false; then :
  5206. $as_echo_n "(cached) " >&6
  5207. else
  5208. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5209. /* end build/confdefs.h. */
  5210. #include <sys/types.h>
  5211. #include <sys/wait.h>
  5212. #ifndef WEXITSTATUS
  5213. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  5214. #endif
  5215. #ifndef WIFEXITED
  5216. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  5217. #endif
  5218. int
  5219. main ()
  5220. {
  5221. int s;
  5222. wait (&s);
  5223. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  5224. ;
  5225. return 0;
  5226. }
  5227. _ACEOF
  5228. if ac_fn_cxx_try_compile "$LINENO"; then :
  5229. ac_cv_header_sys_wait_h=yes
  5230. else
  5231. ac_cv_header_sys_wait_h=no
  5232. fi
  5233. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5234. fi
  5235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  5236. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  5237. if test $ac_cv_header_sys_wait_h = yes; then
  5238. $as_echo "#define HAVE_SYS_WAIT_H 1" >>build/confdefs.h
  5239. fi
  5240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  5241. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  5242. if ${ac_cv_header_time+:} false; then :
  5243. $as_echo_n "(cached) " >&6
  5244. else
  5245. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5246. /* end build/confdefs.h. */
  5247. #include <sys/types.h>
  5248. #include <sys/time.h>
  5249. #include <time.h>
  5250. int
  5251. main ()
  5252. {
  5253. if ((struct tm *) 0)
  5254. return 0;
  5255. ;
  5256. return 0;
  5257. }
  5258. _ACEOF
  5259. if ac_fn_cxx_try_compile "$LINENO"; then :
  5260. ac_cv_header_time=yes
  5261. else
  5262. ac_cv_header_time=no
  5263. fi
  5264. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5265. fi
  5266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  5267. $as_echo "$ac_cv_header_time" >&6; }
  5268. if test $ac_cv_header_time = yes; then
  5269. $as_echo "#define TIME_WITH_SYS_TIME 1" >>build/confdefs.h
  5270. fi
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  5272. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  5273. if ${ac_cv_header_stat_broken+:} false; then :
  5274. $as_echo_n "(cached) " >&6
  5275. else
  5276. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5277. /* end build/confdefs.h. */
  5278. #include <sys/types.h>
  5279. #include <sys/stat.h>
  5280. #if defined S_ISBLK && defined S_IFDIR
  5281. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  5282. #endif
  5283. #if defined S_ISBLK && defined S_IFCHR
  5284. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  5285. #endif
  5286. #if defined S_ISLNK && defined S_IFREG
  5287. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  5288. #endif
  5289. #if defined S_ISSOCK && defined S_IFREG
  5290. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  5291. #endif
  5292. _ACEOF
  5293. if ac_fn_cxx_try_compile "$LINENO"; then :
  5294. ac_cv_header_stat_broken=no
  5295. else
  5296. ac_cv_header_stat_broken=yes
  5297. fi
  5298. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5299. fi
  5300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  5301. $as_echo "$ac_cv_header_stat_broken" >&6; }
  5302. if test $ac_cv_header_stat_broken = yes; then
  5303. $as_echo "#define STAT_MACROS_BROKEN 1" >>build/confdefs.h
  5304. fi
  5305. #checkpoint
  5306. cat >confcache <<\_ACEOF
  5307. # This file is a shell script that caches the results of configure
  5308. # tests run on this system so they can be shared between configure
  5309. # scripts and configure runs, see configure's option --config-cache.
  5310. # It is not useful on other systems. If it contains results you don't
  5311. # want to keep, you may remove or edit it.
  5312. #
  5313. # build/config.status only pays attention to the cache file if you give it
  5314. # the --recheck option to rerun configure.
  5315. #
  5316. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5317. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5318. # following values.
  5319. _ACEOF
  5320. # The following way of writing the cache mishandles newlines in values,
  5321. # but we know of no workaround that is simple, portable, and efficient.
  5322. # So, we kill variables containing newlines.
  5323. # Ultrix sh set writes to stderr and can't be redirected directly,
  5324. # and sets the high bit in the cache file unless we assign to the vars.
  5325. (
  5326. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5327. eval ac_val=\$$ac_var
  5328. case $ac_val in #(
  5329. *${as_nl}*)
  5330. case $ac_var in #(
  5331. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5332. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5333. esac
  5334. case $ac_var in #(
  5335. _ | IFS | as_nl) ;; #(
  5336. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5337. *) { eval $ac_var=; unset $ac_var;} ;;
  5338. esac ;;
  5339. esac
  5340. done
  5341. (set) 2>&1 |
  5342. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5343. *${as_nl}ac_space=\ *)
  5344. # `set' does not quote correctly, so add quotes: double-quote
  5345. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5346. sed -n \
  5347. "s/'/'\\\\''/g;
  5348. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5349. ;; #(
  5350. *)
  5351. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5352. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5353. ;;
  5354. esac |
  5355. sort
  5356. ) |
  5357. sed '
  5358. /^ac_cv_env_/b end
  5359. t clear
  5360. :clear
  5361. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5362. t end
  5363. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5364. :end' >>confcache
  5365. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5366. if test -w "$cache_file"; then
  5367. if test "x$cache_file" != "x/dev/null"; then
  5368. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5369. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5370. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5371. cat confcache >"$cache_file"
  5372. else
  5373. case $cache_file in #(
  5374. */* | ?:*)
  5375. mv -f confcache "$cache_file"$$ &&
  5376. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5377. *)
  5378. mv -f confcache "$cache_file" ;;
  5379. esac
  5380. fi
  5381. fi
  5382. else
  5383. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5384. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5385. fi
  5386. fi
  5387. rm -f confcache
  5388. for ac_header in stdarg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5389. do :
  5390. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5391. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5392. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5393. cat >>build/confdefs.h <<_ACEOF
  5394. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5395. _ACEOF
  5396. fi
  5397. done
  5398. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5399. do :
  5400. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5401. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5402. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5403. cat >>build/confdefs.h <<_ACEOF
  5404. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5405. _ACEOF
  5406. fi
  5407. done
  5408. for ac_header in sys/ptrace.h paths.h sys/prctl.h sys/procctl.h
  5409. do :
  5410. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5411. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5412. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5413. cat >>build/confdefs.h <<_ACEOF
  5414. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5415. _ACEOF
  5416. fi
  5417. done
  5418. #checkpoint
  5419. cat >confcache <<\_ACEOF
  5420. # This file is a shell script that caches the results of configure
  5421. # tests run on this system so they can be shared between configure
  5422. # scripts and configure runs, see configure's option --config-cache.
  5423. # It is not useful on other systems. If it contains results you don't
  5424. # want to keep, you may remove or edit it.
  5425. #
  5426. # build/config.status only pays attention to the cache file if you give it
  5427. # the --recheck option to rerun configure.
  5428. #
  5429. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5430. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5431. # following values.
  5432. _ACEOF
  5433. # The following way of writing the cache mishandles newlines in values,
  5434. # but we know of no workaround that is simple, portable, and efficient.
  5435. # So, we kill variables containing newlines.
  5436. # Ultrix sh set writes to stderr and can't be redirected directly,
  5437. # and sets the high bit in the cache file unless we assign to the vars.
  5438. (
  5439. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5440. eval ac_val=\$$ac_var
  5441. case $ac_val in #(
  5442. *${as_nl}*)
  5443. case $ac_var in #(
  5444. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5445. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5446. esac
  5447. case $ac_var in #(
  5448. _ | IFS | as_nl) ;; #(
  5449. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5450. *) { eval $ac_var=; unset $ac_var;} ;;
  5451. esac ;;
  5452. esac
  5453. done
  5454. (set) 2>&1 |
  5455. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5456. *${as_nl}ac_space=\ *)
  5457. # `set' does not quote correctly, so add quotes: double-quote
  5458. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5459. sed -n \
  5460. "s/'/'\\\\''/g;
  5461. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5462. ;; #(
  5463. *)
  5464. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5465. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5466. ;;
  5467. esac |
  5468. sort
  5469. ) |
  5470. sed '
  5471. /^ac_cv_env_/b end
  5472. t clear
  5473. :clear
  5474. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5475. t end
  5476. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5477. :end' >>confcache
  5478. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5479. if test -w "$cache_file"; then
  5480. if test "x$cache_file" != "x/dev/null"; then
  5481. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5482. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5483. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5484. cat confcache >"$cache_file"
  5485. else
  5486. case $cache_file in #(
  5487. */* | ?:*)
  5488. mv -f confcache "$cache_file"$$ &&
  5489. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5490. *)
  5491. mv -f confcache "$cache_file" ;;
  5492. esac
  5493. fi
  5494. fi
  5495. else
  5496. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5497. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5498. fi
  5499. fi
  5500. rm -f confcache
  5501. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5502. #AC_CHECK_HEADERS(zlib.h)
  5503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to OpenSSL" >&5
  5504. $as_echo_n "checking for path to OpenSSL... " >&6; }
  5505. # Check whether --with-openssl was given.
  5506. if test "${with_openssl+set}" = set; then :
  5507. withval=$with_openssl; with_openssl_path=$withval
  5508. else
  5509. with_openssl_path=auto
  5510. fi
  5511. cf_openssl_basedir=""
  5512. if test "$with_openssl_path" != "auto"; then
  5513. cf_openssl_basedir="`echo ${with_openssl_path} | sed 's/\/$//'`"
  5514. else
  5515. for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do
  5516. if test -f "${dirs}/include/openssl/opensslv.h" && test -f "${dirs}/lib/libssl.so"; then
  5517. cf_openssl_basedir="${dirs}"
  5518. break
  5519. fi
  5520. done
  5521. unset dirs
  5522. fi
  5523. if test ! -z "$cf_openssl_basedir"; then
  5524. if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" && test -f "${cf_openssl_basedir}/lib/libssl.so"; then
  5525. SSL_INCLUDES="-I${cf_openssl_basedir}/include"
  5526. SSL_LIBS="-L${cf_openssl_basedir}/lib"
  5527. else
  5528. cf_openssl_basedir=""
  5529. fi
  5530. else
  5531. if test -f "/usr/include/openssl/opensslv.h" ; then
  5532. cf_openssl_basedir="/usr"
  5533. fi
  5534. fi
  5535. if test ! -z "$cf_openssl_basedir"; then
  5536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
  5537. $as_echo "$cf_openssl_basedir" >&6; }
  5538. else
  5539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5540. $as_echo "not found" >&6; }
  5541. as_fn_error 1 "OpenSSL is required." "$LINENO" 5
  5542. fi
  5543. unset cf_openssl_basedir
  5544. save_CXX="$CXX"
  5545. CXX="$CXX $SSL_INCLUDES"
  5546. save_LIBS="$LIBS"
  5547. LIBS="$LIBS $SSL_LIBS"
  5548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
  5549. $as_echo_n "checking for OpenSSL version... " >&6; }
  5550. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5551. /* end build/confdefs.h. */
  5552. #include <openssl/opensslv.h>
  5553. int
  5554. main ()
  5555. {
  5556. #if !defined(OPENSSL_VERSION_NUMBER)
  5557. #error "Missing openssl version"
  5558. #endif
  5559. #if (OPENSSL_VERSION_NUMBER < 0x0090800f)
  5560. #error "Old/Insecure OpenSSL version " OPENSSL_VERSION_TEXT
  5561. #endif
  5562. ;
  5563. return 0;
  5564. }
  5565. _ACEOF
  5566. if ac_fn_cxx_try_compile "$LINENO"; then :
  5567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  5568. $as_echo "OK" >&6; }
  5569. else
  5570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old." >&5
  5571. $as_echo "too old." >&6; }
  5572. as_fn_error 1 "OpenSSL version is too old. Must be 0.9.8f+" "$LINENO" 5
  5573. fi
  5574. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5575. CXX="$CXX $SSL_LIBS"
  5576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AES_encrypt in -lcrypto" >&5
  5577. $as_echo_n "checking for AES_encrypt in -lcrypto... " >&6; }
  5578. if ${ac_cv_lib_crypto_AES_encrypt+:} false; then :
  5579. $as_echo_n "(cached) " >&6
  5580. else
  5581. ac_check_lib_save_LIBS=$LIBS
  5582. LIBS="-lcrypto $LIBS"
  5583. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5584. /* end build/confdefs.h. */
  5585. /* Override any GCC internal prototype to avoid an error.
  5586. Use char because int might match the return type of a GCC
  5587. builtin and then its argument prototype would still apply. */
  5588. #ifdef __cplusplus
  5589. extern "C"
  5590. #endif
  5591. char AES_encrypt ();
  5592. int
  5593. main ()
  5594. {
  5595. return AES_encrypt ();
  5596. ;
  5597. return 0;
  5598. }
  5599. _ACEOF
  5600. if ac_fn_cxx_try_link "$LINENO"; then :
  5601. ac_cv_lib_crypto_AES_encrypt=yes
  5602. else
  5603. ac_cv_lib_crypto_AES_encrypt=no
  5604. fi
  5605. rm -f core conftest.err conftest.$ac_objext \
  5606. conftest$ac_exeext conftest.$ac_ext
  5607. LIBS=$ac_check_lib_save_LIBS
  5608. fi
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_AES_encrypt" >&5
  5610. $as_echo "$ac_cv_lib_crypto_AES_encrypt" >&6; }
  5611. if test "x$ac_cv_lib_crypto_AES_encrypt" = xyes; then :
  5612. if test "$USE_STATIC" = "yes"; then
  5613. SSL_LIBS="$SSL_LIBS -Wl,-Bstatic -lcrypto -Wl,-Bdynamic"
  5614. else
  5615. SSL_LIBS="$SSL_LIBS -lcrypto"
  5616. fi
  5617. else
  5618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found." >&5
  5619. $as_echo "not found." >&6; }
  5620. as_fn_error 1 "Libcrypto/openssl is required." "$LINENO" 5
  5621. fi
  5622. CXX="$save_CXX"
  5623. LIBS="$save_LIBS"
  5624. cat >>build/confdefs.h <<_ACEOF
  5625. #define EGG_SSL_EXT 1
  5626. _ACEOF
  5627. # TCL checks
  5628. # Tcl version to recommend if no Tcl is found, and the site where it can be
  5629. # found for download.
  5630. tclrecommendver="8.5.X"
  5631. tclrecommendsite="ftp://tcl.activestate.com/pub/tcl/tcl8_5/"
  5632. # Tcl library filename prefixes, suffixes, and search paths.
  5633. tcllibnames="tcl8.6 tcl86 tcl8.5 tcl85 tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 \
  5634. tcl8.1 tcl81 tcl8.0 tcl80 tcl tcl7.6 tcl76 tcl7.5 tcl75 \
  5635. tcl7.4 tcl74 tcl7.3 tcl73 tcl7.2 tcl72 tcl7.1 tcl71 \
  5636. tcl7.0 tcl70"
  5637. tcllibextensions=".so .so.1 .so.1.0 .so.1.1 .so.1.2 .dll .dylib .sl .a"
  5638. tcllibpaths="$HOME/lib $HOME/tcl/lib \
  5639. /usr/local/lib /usr/lib /lib /lib64 /usr/lib64 \
  5640. /usr/local/lib/tcl8.6 /usr/lib/tcl8.6 \
  5641. /usr/local/lib/tcl8.5 /usr/lib/tcl8.5 \
  5642. /usr/local/lib/tcl8.4 /usr/lib/tcl8.4 \
  5643. /usr/local/lib/tcl8.3 /usr/lib/tcl8.3 \
  5644. /usr/local/pkgs/tcl/lib /sys/lib /usr/pkg/lib \
  5645. /usr/i486-linuxaout/lib /beos/system/lib $HOME"
  5646. # Tcl header filenames and search paths.
  5647. tclheadernames="tcl.h"
  5648. tclheaderpaths="$HOME/include $HOME/tcl/include \
  5649. /usr/local/include /usr/include \
  5650. /usr/local/include/tcl8.6 /usr/include/tcl8.6 \
  5651. /usr/local/include/tcl8.5 /usr/include/tcl8.5 \
  5652. /usr/local/include/tcl8.4 /usr/include/tcl8.4 \
  5653. /usr/local/include/tcl8.3 /usr/include/tcl8.3 \
  5654. /usr/local/pkgs/tcl/include /sys/include \
  5655. /usr/pkg/lib /beos/system/include /beos/devel/include $HOME"
  5656. # Misc Tcl checks.
  5657. # Check whether --with-tcllib was given.
  5658. if test "${with_tcllib+set}" = set; then :
  5659. withval=$with_tcllib; tcllibname="$withval"
  5660. fi
  5661. # Check whether --with-tclinc was given.
  5662. if test "${with_tclinc+set}" = set; then :
  5663. withval=$with_tclinc; tclincname="$withval"
  5664. fi
  5665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TCL Script is enabled" >&5
  5666. $as_echo_n "checking whether TCL Script is enabled... " >&6; }
  5667. # Check whether --enable-script-tcl was given.
  5668. if test "${enable_script_tcl+set}" = set; then :
  5669. enableval=$enable_script_tcl;
  5670. enable_script_tcl=$enableval
  5671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  5672. $as_echo "$enableval" >&6; }
  5673. else
  5674. # default if not given is ENABLED
  5675. if test "x$enableval" = "x"; then
  5676. enableval="yes"
  5677. fi
  5678. enable_script_tcl=$enableval
  5679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  5680. $as_echo "$enableval" >&6; }
  5681. $as_echo "#define USE_SCRIPT_TCL 1" >>build/confdefs.h
  5682. fi
  5683. WARN=0
  5684. # Make sure either both or neither $tcllibname and $tclincname are set
  5685. if test "x$tcllibname" != x; then
  5686. if test "x$tclincname" = x; then
  5687. WARN=1
  5688. tcllibname=""
  5689. TCLLIB=""
  5690. TCLINC=""
  5691. fi
  5692. else
  5693. if test "x$tclincname" != x; then
  5694. WARN=1
  5695. tclincname=""
  5696. TCLLIB=""
  5697. TCLINC=""
  5698. fi
  5699. fi
  5700. if test "$WARN" = 1; then
  5701. cat << 'EOF' >&2
  5702. configure: WARNING:
  5703. You must specify both --with-tcllib and --with-tclinc for either to work.
  5704. configure will now attempt to autodetect both the Tcl library and header.
  5705. EOF
  5706. fi
  5707. WARN=0
  5708. # Make sure either both or neither $TCLLIB and $TCLINC are set
  5709. if test "x$TCLLIB" != x; then
  5710. if test "x$TCLINC" = x; then
  5711. WARN=1
  5712. WVAR1=TCLLIB
  5713. WVAR2=TCLINC
  5714. TCLLIB=""
  5715. fi
  5716. else
  5717. if test "x$TCLINC" != x; then
  5718. WARN=1
  5719. WVAR1=TCLINC
  5720. WVAR2=TCLLIB
  5721. TCLINC=""
  5722. fi
  5723. fi
  5724. if test "$WARN" = 1; then
  5725. cat << EOF >&2
  5726. configure: WARNING:
  5727. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  5728. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5729. configure will now attempt to autodetect both the Tcl library and header.
  5730. EOF
  5731. fi
  5732. # Look for Tcl library: if $tcllibname is set, check there first
  5733. if test "x$tcllibname" != x; then
  5734. if test -f "$tcllibname" && test -r "$tcllibname"; then
  5735. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  5736. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  5737. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  5738. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  5739. else
  5740. cat << EOF >&2
  5741. configure: WARNING:
  5742. The file '$tcllibname' given to option --with-tcllib is not valid.
  5743. configure will now attempt to autodetect both the Tcl library and header.
  5744. EOF
  5745. tcllibname=""
  5746. tclincname=""
  5747. TCLLIB=""
  5748. TCLLIBFN=""
  5749. TCLINC=""
  5750. TCLINCFN=""
  5751. fi
  5752. fi
  5753. # Look for Tcl header: if $tclincname is set, check there first
  5754. if test "x$tclincname" != x; then
  5755. if test -f "$tclincname" && test -r "$tclincname"; then
  5756. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  5757. TCLINCFN=`$BASENAME $tclincname`
  5758. else
  5759. cat << EOF >&2
  5760. configure: WARNING:
  5761. The file '$tclincname' given to option --with-tclinc is not valid.
  5762. configure will now attempt to autodetect both the Tcl library and header.
  5763. EOF
  5764. tcllibname=""
  5765. tclincname=""
  5766. TCLLIB=""
  5767. TCLLIBFN=""
  5768. TCLINC=""
  5769. TCLINCFN=""
  5770. fi
  5771. fi
  5772. # Look for Tcl library: if $TCLLIB is set, check there first
  5773. if test "x$TCLLIBFN" = x && test "x$TCLLIB" != x; then
  5774. if test -d "$TCLLIB"; then
  5775. for tcllibfns in $tcllibnames; do
  5776. for tcllibext in $tcllibextensions; do
  5777. if test -r "${TCLLIB}/lib${tcllibfns}${tcllibext}"; then
  5778. TCLLIBFN="${tcllibfns}${tcllibext}"
  5779. TCLLIBEXT="$tcllibext"
  5780. TCLLIBFNS="$tcllibfns"
  5781. break 2
  5782. fi
  5783. done
  5784. done
  5785. fi
  5786. if test "x$TCLLIBFN" = x; then
  5787. cat << 'EOF' >&2
  5788. configure: WARNING:
  5789. Environment variable TCLLIB was set, but incorrectly.
  5790. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5791. configure will now attempt to autodetect both the Tcl library and header.
  5792. EOF
  5793. TCLLIB=""
  5794. TCLLIBFN=""
  5795. TCLINC=""
  5796. TCLINCFN=""
  5797. fi
  5798. fi
  5799. # Look for Tcl header: if $TCLINC is set, check there first
  5800. if test "x$TCLINCFN" = x && test "x$TCLINC" != x; then
  5801. if test -d "$TCLINC"; then
  5802. for tclheaderfn in $tclheadernames; do
  5803. if test -r "${TCLINC}/${tclheaderfn}"; then
  5804. TCLINCFN="$tclheaderfn"
  5805. break
  5806. fi
  5807. done
  5808. fi
  5809. if test "x$TCLINCFN" = x; then
  5810. cat << 'EOF' >&2
  5811. configure: WARNING:
  5812. Environment variable TCLINC was set, but incorrectly.
  5813. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5814. configure will now attempt to autodetect both the Tcl library and header.
  5815. EOF
  5816. TCLLIB=""
  5817. TCLLIBFN=""
  5818. TCLINC=""
  5819. TCLINCFN=""
  5820. fi
  5821. fi
  5822. if test "$enable_script_tcl" = "yes"; then
  5823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library" >&5
  5824. $as_echo_n "checking for Tcl library... " >&6; }
  5825. # Attempt autodetect for $TCLLIBFN if it's not set
  5826. if test "x$TCLLIBFN" != x; then
  5827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${TCLLIB}/lib${TCLLIBFN}" >&5
  5828. $as_echo "using ${TCLLIB}/lib${TCLLIBFN}" >&6; }
  5829. else
  5830. for tcllibfns in $tcllibnames; do
  5831. for tcllibext in $tcllibextensions; do
  5832. for tcllibpath in $tcllibpaths; do
  5833. if test -r "${tcllibpath}/lib${tcllibfns}${tcllibext}"; then
  5834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tcllibpath}/lib${tcllibfns}${tcllibext}" >&5
  5835. $as_echo "found ${tcllibpath}/lib${tcllibfns}${tcllibext}" >&6; }
  5836. TCLLIB="$tcllibpath"
  5837. TCLLIBFN="${tcllibfns}${tcllibext}"
  5838. TCLLIBEXT="$tcllibext"
  5839. TCLLIBFNS="$tcllibfns"
  5840. break 3
  5841. fi
  5842. done
  5843. done
  5844. done
  5845. fi
  5846. # Show if $TCLLIBFN wasn't found
  5847. if test "x$TCLLIBFN" = x; then
  5848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5849. $as_echo "not found" >&6; }
  5850. fi
  5851. fi
  5852. if test "$enable_script_tcl" = "yes"; then
  5853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl header" >&5
  5854. $as_echo_n "checking for Tcl header... " >&6; }
  5855. # Attempt autodetect for $TCLINCFN if it's not set
  5856. if test "x$TCLINCFN" != x; then
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${TCLINC}/${TCLINCFN}" >&5
  5858. $as_echo "using ${TCLINC}/${TCLINCFN}" >&6; }
  5859. else
  5860. for tclheaderpath in $tclheaderpaths; do
  5861. for tclheaderfn in $tclheadernames; do
  5862. if test -r "${tclheaderpath}/${tclheaderfn}"; then
  5863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tclheaderpath}/${tclheaderfn}" >&5
  5864. $as_echo "found ${tclheaderpath}/${tclheaderfn}" >&6; }
  5865. TCLINC="$tclheaderpath"
  5866. TCLINCFN="$tclheaderfn"
  5867. break 2
  5868. fi
  5869. done
  5870. done
  5871. # FreeBSD hack ...
  5872. if test "x$TCLINCFN" = x; then
  5873. for tcllibfns in $tcllibnames; do
  5874. for tclheaderpath in $tclheaderpaths; do
  5875. for tclheaderfn in $tclheadernames; do
  5876. if test -r "${tclheaderpath}/${tcllibfns}/${tclheaderfn}"; then
  5877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}" >&5
  5878. $as_echo "found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}" >&6; }
  5879. TCLINC="${tclheaderpath}/${tcllibfns}"
  5880. TCLINCFN="$tclheaderfn"
  5881. break 3
  5882. fi
  5883. done
  5884. done
  5885. done
  5886. fi
  5887. fi
  5888. TCL_INCLUDES=""
  5889. if ! test "x$TCLINC" = x; then
  5890. TCL_INCLUDES="-I$TCLINC"
  5891. fi
  5892. if test "x$TCLINCFN" = x; then
  5893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5894. $as_echo "not found" >&6; }
  5895. fi
  5896. fi
  5897. if test "$enable_script_tcl" = "yes"; then
  5898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Tcl system has changed" >&5
  5899. $as_echo_n "checking whether the Tcl system has changed... " >&6; }
  5900. egg_tcl_changed="yes"
  5901. egg_tcl_id="${TCLLIB}:${TCLLIBFN}:${TCLINC}:${TCLINCFN}"
  5902. if test "$egg_tcl_id" != ":::"; then
  5903. egg_tcl_cached="yes"
  5904. if ${egg_cv_var_tcl_id+:} false; then :
  5905. $as_echo_n "(cached) " >&6
  5906. else
  5907. egg_cv_var_tcl_id="$egg_tcl_id"
  5908. egg_tcl_cached="no"
  5909. fi
  5910. if test "$egg_tcl_cached" = yes; then
  5911. if test "x$egg_cv_var_tcl_id" = "x$egg_tcl_id"; then
  5912. egg_tcl_changed="no"
  5913. else
  5914. egg_cv_var_tcl_id="$egg_tcl_id"
  5915. fi
  5916. fi
  5917. fi
  5918. if test "$egg_tcl_changed" = yes; then
  5919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5920. $as_echo "yes" >&6; }
  5921. else
  5922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5923. $as_echo "no" >&6; }
  5924. fi
  5925. fi
  5926. if test "$enable_script_tcl" = "yes"; then
  5927. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  5928. TCL_FOUND=0
  5929. if test "x$TCLLIBFN" != x && test "x$TCLINCFN" != x; then
  5930. TCL_FOUND=1
  5931. # Check Tcl's version
  5932. if test "$egg_tcl_changed" = yes; then
  5933. unset egg_cv_var_tcl_version
  5934. fi
  5935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl version" >&5
  5936. $as_echo_n "checking for Tcl version... " >&6; }
  5937. if ${egg_cv_var_tcl_version+:} false; then :
  5938. $as_echo_n "(cached) " >&6
  5939. else
  5940. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`
  5941. fi
  5942. if test "x$egg_cv_var_tcl_version" != x; then
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_tcl_version" >&5
  5944. $as_echo "$egg_cv_var_tcl_version" >&6; }
  5945. else
  5946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5947. $as_echo "not found" >&6; }
  5948. TCL_FOUND=0
  5949. fi
  5950. # Check Tcl's patch level (if available)
  5951. if test "$egg_tcl_changed" = yes; then
  5952. unset egg_cv_var_tcl_patch_level
  5953. fi
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl patch level" >&5
  5955. $as_echo_n "checking for Tcl patch level... " >&6; }
  5956. if ${egg_cv_var_tcl_patch_level+:} false; then :
  5957. $as_echo_n "(cached) " >&6
  5958. else
  5959. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`"
  5960. fi
  5961. if test "x$egg_cv_var_tcl_patch_level" != x; then
  5962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_tcl_patch_level" >&5
  5963. $as_echo "$egg_cv_var_tcl_patch_level" >&6; }
  5964. else
  5965. egg_cv_var_tcl_patch_level="unknown"
  5966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
  5967. $as_echo "unknown" >&6; }
  5968. fi
  5969. fi
  5970. # Check if we found Tcl's version
  5971. if test "$TCL_FOUND" = 0; then
  5972. cat << 'EOF' >&2
  5973. configure: error:
  5974. Tcl cannot be found on this system.
  5975. Tcl is not required. Wraith will be compiled without TCL support. If you
  5976. already have Tcl installed on this system, please specify the path by
  5977. rerunning ./configure using the --with-tcllib='/path/to/libtcl.so' and
  5978. --with-tclinc='/path/to/tcl.h' options.
  5979. EOF
  5980. enable_script_tcl="no"
  5981. else
  5982. $as_echo "#define HAVE_LIBTCL 1" >>build/confdefs.h
  5983. fi
  5984. fi
  5985. if test "$enable_script_tcl" = "yes"; then
  5986. # Is this version of Tcl too old for us to use ?
  5987. TCL_VER_PRE70=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 7) print "yes"; else print "no"}'`
  5988. if test "$TCL_VER_PRE70" = yes; then
  5989. cat << EOF >&2
  5990. configure: error:
  5991. Your Tcl version is much too old for Wraith to use. You should
  5992. download and compile a more recent version. The most reliable
  5993. current version is $tclrecommendver and can be downloaded from
  5994. ${tclrecommendsite}.
  5995. See doc/COMPILE-GUIDE's 'Tcl Detection and Installation' section
  5996. for more information.
  5997. EOF
  5998. exit 1
  5999. fi
  6000. fi
  6001. # Set variables for Tcl library tests
  6002. TCL_TEST_LIB="$TCLLIBFNS"
  6003. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  6004. if test "x$ac_cv_lib_pthread" != x; then
  6005. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  6006. fi
  6007. if test "$enable_script_tcl" = "yes"; then
  6008. if test "$egg_tcl_changed" = yes; then
  6009. unset egg_cv_var_tcl_free
  6010. fi
  6011. # Check for Tcl_Free()
  6012. as_ac_Lib=`$as_echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_Free" | $as_tr_sh`
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  6014. $as_echo_n "checking for Tcl_Free in -l$TCL_TEST_LIB... " >&6; }
  6015. if eval \${$as_ac_Lib+:} false; then :
  6016. $as_echo_n "(cached) " >&6
  6017. else
  6018. ac_check_lib_save_LIBS=$LIBS
  6019. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  6020. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6021. /* end build/confdefs.h. */
  6022. /* Override any GCC internal prototype to avoid an error.
  6023. Use char because int might match the return type of a GCC
  6024. builtin and then its argument prototype would still apply. */
  6025. #ifdef __cplusplus
  6026. extern "C"
  6027. #endif
  6028. char Tcl_Free ();
  6029. int
  6030. main ()
  6031. {
  6032. return Tcl_Free ();
  6033. ;
  6034. return 0;
  6035. }
  6036. _ACEOF
  6037. if ac_fn_cxx_try_link "$LINENO"; then :
  6038. eval "$as_ac_Lib=yes"
  6039. else
  6040. eval "$as_ac_Lib=no"
  6041. fi
  6042. rm -f core conftest.err conftest.$ac_objext \
  6043. conftest$ac_exeext conftest.$ac_ext
  6044. LIBS=$ac_check_lib_save_LIBS
  6045. fi
  6046. eval ac_res=\$$as_ac_Lib
  6047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6048. $as_echo "$ac_res" >&6; }
  6049. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  6050. egg_cv_var_tcl_free="yes"
  6051. else
  6052. egg_cv_var_tcl_free="no"
  6053. fi
  6054. if test "$egg_cv_var_tcl_free" = yes; then
  6055. $as_echo "#define HAVE_TCL_FREE 1" >>build/confdefs.h
  6056. fi
  6057. fi
  6058. #EGG_TCL_CHECK_GETCURRENTTHREAD
  6059. #EGG_TCL_CHECK_GETTHREADDATA
  6060. if test "$enable_script_tcl" = "yes"; then
  6061. if test "$egg_tcl_changed" = yes; then
  6062. unset egg_cv_var_tcl_setnotifier
  6063. fi
  6064. # Check for Tcl_SetNotifier()
  6065. as_ac_Lib=`$as_echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_SetNotifier" | $as_tr_sh`
  6066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_SetNotifier in -l$TCL_TEST_LIB" >&5
  6067. $as_echo_n "checking for Tcl_SetNotifier in -l$TCL_TEST_LIB... " >&6; }
  6068. if eval \${$as_ac_Lib+:} false; then :
  6069. $as_echo_n "(cached) " >&6
  6070. else
  6071. ac_check_lib_save_LIBS=$LIBS
  6072. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  6073. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6074. /* end build/confdefs.h. */
  6075. /* Override any GCC internal prototype to avoid an error.
  6076. Use char because int might match the return type of a GCC
  6077. builtin and then its argument prototype would still apply. */
  6078. #ifdef __cplusplus
  6079. extern "C"
  6080. #endif
  6081. char Tcl_SetNotifier ();
  6082. int
  6083. main ()
  6084. {
  6085. return Tcl_SetNotifier ();
  6086. ;
  6087. return 0;
  6088. }
  6089. _ACEOF
  6090. if ac_fn_cxx_try_link "$LINENO"; then :
  6091. eval "$as_ac_Lib=yes"
  6092. else
  6093. eval "$as_ac_Lib=no"
  6094. fi
  6095. rm -f core conftest.err conftest.$ac_objext \
  6096. conftest$ac_exeext conftest.$ac_ext
  6097. LIBS=$ac_check_lib_save_LIBS
  6098. fi
  6099. eval ac_res=\$$as_ac_Lib
  6100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6101. $as_echo "$ac_res" >&6; }
  6102. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  6103. egg_cv_var_tcl_setnotifier="yes"
  6104. else
  6105. egg_cv_var_tcl_setnotifier="no"
  6106. fi
  6107. if test "$egg_cv_var_tcl_setnotifier" = yes; then
  6108. $as_echo "#define HAVE_TCL_SETNOTIFIER 1" >>build/confdefs.h
  6109. fi
  6110. fi
  6111. if test "$enable_script_tcl" = "yes"; then
  6112. if test "$EGG_CYGWIN" = yes; then
  6113. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  6114. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  6115. else
  6116. if test "$TCLLIBEXT" != ".a"; then
  6117. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  6118. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  6119. else
  6120. # Set default make as static for unshared Tcl library
  6121. if test "$DEFAULT_MAKE" != static; then
  6122. cat << 'EOF' >&2
  6123. configure: WARNING:
  6124. Your Tcl library is not a shared lib.
  6125. configure will now set default make type to static.
  6126. EOF
  6127. DEFAULT_MAKE="static"
  6128. fi
  6129. # Are we using a pre 7.4 Tcl version ?
  6130. 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"}'`
  6131. if test "$TCL_VER_PRE74" = no; then
  6132. # Was the --with-tcllib option given ?
  6133. if test "x$tcllibname" != x; then
  6134. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  6135. TCL_LIBS="${TCLLIB}/lib${TCLLIBFN} $EGG_MATH_LIB"
  6136. else
  6137. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  6138. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  6139. fi
  6140. else
  6141. cat << EOF >&2
  6142. configure: WARNING:
  6143. Your Tcl version ($egg_cv_var_tcl_version) is older than 7.4.
  6144. There are known problems, but we will attempt to work around them.
  6145. EOF
  6146. TCL_REQS="libtcle.a"
  6147. TCL_LIBS="-L`pwd` -ltcle $EGG_MATH_LIB"
  6148. fi
  6149. fi
  6150. fi
  6151. fi
  6152. cat >confcache <<\_ACEOF
  6153. # This file is a shell script that caches the results of configure
  6154. # tests run on this system so they can be shared between configure
  6155. # scripts and configure runs, see configure's option --config-cache.
  6156. # It is not useful on other systems. If it contains results you don't
  6157. # want to keep, you may remove or edit it.
  6158. #
  6159. # build/config.status only pays attention to the cache file if you give it
  6160. # the --recheck option to rerun configure.
  6161. #
  6162. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6163. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6164. # following values.
  6165. _ACEOF
  6166. # The following way of writing the cache mishandles newlines in values,
  6167. # but we know of no workaround that is simple, portable, and efficient.
  6168. # So, we kill variables containing newlines.
  6169. # Ultrix sh set writes to stderr and can't be redirected directly,
  6170. # and sets the high bit in the cache file unless we assign to the vars.
  6171. (
  6172. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6173. eval ac_val=\$$ac_var
  6174. case $ac_val in #(
  6175. *${as_nl}*)
  6176. case $ac_var in #(
  6177. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6178. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6179. esac
  6180. case $ac_var in #(
  6181. _ | IFS | as_nl) ;; #(
  6182. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6183. *) { eval $ac_var=; unset $ac_var;} ;;
  6184. esac ;;
  6185. esac
  6186. done
  6187. (set) 2>&1 |
  6188. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6189. *${as_nl}ac_space=\ *)
  6190. # `set' does not quote correctly, so add quotes: double-quote
  6191. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6192. sed -n \
  6193. "s/'/'\\\\''/g;
  6194. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6195. ;; #(
  6196. *)
  6197. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6198. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6199. ;;
  6200. esac |
  6201. sort
  6202. ) |
  6203. sed '
  6204. /^ac_cv_env_/b end
  6205. t clear
  6206. :clear
  6207. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6208. t end
  6209. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6210. :end' >>confcache
  6211. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6212. if test -w "$cache_file"; then
  6213. if test "x$cache_file" != "x/dev/null"; then
  6214. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6215. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6216. if test ! -f "$cache_file" || test -h "$cache_file"; then
  6217. cat confcache >"$cache_file"
  6218. else
  6219. case $cache_file in #(
  6220. */* | ?:*)
  6221. mv -f confcache "$cache_file"$$ &&
  6222. mv -f "$cache_file"$$ "$cache_file" ;; #(
  6223. *)
  6224. mv -f confcache "$cache_file" ;;
  6225. esac
  6226. fi
  6227. fi
  6228. else
  6229. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6230. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6231. fi
  6232. fi
  6233. rm -f confcache
  6234. # Checks for typedefs, structures, and compiler characteristics
  6235. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  6236. if test "x$ac_cv_type_pid_t" = xyes; then :
  6237. else
  6238. cat >>build/confdefs.h <<_ACEOF
  6239. #define pid_t int
  6240. _ACEOF
  6241. fi
  6242. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  6243. if test "x$ac_cv_type_size_t" = xyes; then :
  6244. else
  6245. cat >>build/confdefs.h <<_ACEOF
  6246. #define size_t unsigned int
  6247. _ACEOF
  6248. fi
  6249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  6250. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  6251. if ${ac_cv_type_uid_t+:} false; then :
  6252. $as_echo_n "(cached) " >&6
  6253. else
  6254. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6255. /* end build/confdefs.h. */
  6256. #include <sys/types.h>
  6257. _ACEOF
  6258. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6259. $EGREP "uid_t" >/dev/null 2>&1; then :
  6260. ac_cv_type_uid_t=yes
  6261. else
  6262. ac_cv_type_uid_t=no
  6263. fi
  6264. rm -f conftest*
  6265. fi
  6266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  6267. $as_echo "$ac_cv_type_uid_t" >&6; }
  6268. if test $ac_cv_type_uid_t = no; then
  6269. $as_echo "#define uid_t int" >>build/confdefs.h
  6270. $as_echo "#define gid_t int" >>build/confdefs.h
  6271. fi
  6272. #AC_C_CONST
  6273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  6274. $as_echo_n "checking for working volatile... " >&6; }
  6275. if ${ac_cv_c_volatile+:} false; then :
  6276. $as_echo_n "(cached) " >&6
  6277. else
  6278. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6279. /* end build/confdefs.h. */
  6280. int
  6281. main ()
  6282. {
  6283. volatile int x;
  6284. int * volatile y = (int *) 0;
  6285. return !x && !y;
  6286. ;
  6287. return 0;
  6288. }
  6289. _ACEOF
  6290. if ac_fn_cxx_try_compile "$LINENO"; then :
  6291. ac_cv_c_volatile=yes
  6292. else
  6293. ac_cv_c_volatile=no
  6294. fi
  6295. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6296. fi
  6297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  6298. $as_echo "$ac_cv_c_volatile" >&6; }
  6299. if test $ac_cv_c_volatile = no; then
  6300. $as_echo "#define volatile /**/" >>build/confdefs.h
  6301. fi
  6302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  6303. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  6304. if ${ac_cv_c_bigendian+:} false; then :
  6305. $as_echo_n "(cached) " >&6
  6306. else
  6307. ac_cv_c_bigendian=unknown
  6308. # See if we're dealing with a universal compiler.
  6309. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6310. /* end build/confdefs.h. */
  6311. #ifndef __APPLE_CC__
  6312. not a universal capable compiler
  6313. #endif
  6314. typedef int dummy;
  6315. _ACEOF
  6316. if ac_fn_cxx_try_compile "$LINENO"; then :
  6317. # Check for potential -arch flags. It is not universal unless
  6318. # there are at least two -arch flags with different values.
  6319. ac_arch=
  6320. ac_prev=
  6321. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  6322. if test -n "$ac_prev"; then
  6323. case $ac_word in
  6324. i?86 | x86_64 | ppc | ppc64)
  6325. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  6326. ac_arch=$ac_word
  6327. else
  6328. ac_cv_c_bigendian=universal
  6329. break
  6330. fi
  6331. ;;
  6332. esac
  6333. ac_prev=
  6334. elif test "x$ac_word" = "x-arch"; then
  6335. ac_prev=arch
  6336. fi
  6337. done
  6338. fi
  6339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6340. if test $ac_cv_c_bigendian = unknown; then
  6341. # See if sys/param.h defines the BYTE_ORDER macro.
  6342. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6343. /* end build/confdefs.h. */
  6344. #include <sys/types.h>
  6345. #include <sys/param.h>
  6346. int
  6347. main ()
  6348. {
  6349. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  6350. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  6351. && LITTLE_ENDIAN)
  6352. bogus endian macros
  6353. #endif
  6354. ;
  6355. return 0;
  6356. }
  6357. _ACEOF
  6358. if ac_fn_cxx_try_compile "$LINENO"; then :
  6359. # It does; now see whether it defined to BIG_ENDIAN or not.
  6360. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6361. /* end build/confdefs.h. */
  6362. #include <sys/types.h>
  6363. #include <sys/param.h>
  6364. int
  6365. main ()
  6366. {
  6367. #if BYTE_ORDER != BIG_ENDIAN
  6368. not big endian
  6369. #endif
  6370. ;
  6371. return 0;
  6372. }
  6373. _ACEOF
  6374. if ac_fn_cxx_try_compile "$LINENO"; then :
  6375. ac_cv_c_bigendian=yes
  6376. else
  6377. ac_cv_c_bigendian=no
  6378. fi
  6379. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6380. fi
  6381. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6382. fi
  6383. if test $ac_cv_c_bigendian = unknown; then
  6384. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  6385. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6386. /* end build/confdefs.h. */
  6387. #include <limits.h>
  6388. int
  6389. main ()
  6390. {
  6391. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  6392. bogus endian macros
  6393. #endif
  6394. ;
  6395. return 0;
  6396. }
  6397. _ACEOF
  6398. if ac_fn_cxx_try_compile "$LINENO"; then :
  6399. # It does; now see whether it defined to _BIG_ENDIAN or not.
  6400. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6401. /* end build/confdefs.h. */
  6402. #include <limits.h>
  6403. int
  6404. main ()
  6405. {
  6406. #ifndef _BIG_ENDIAN
  6407. not big endian
  6408. #endif
  6409. ;
  6410. return 0;
  6411. }
  6412. _ACEOF
  6413. if ac_fn_cxx_try_compile "$LINENO"; then :
  6414. ac_cv_c_bigendian=yes
  6415. else
  6416. ac_cv_c_bigendian=no
  6417. fi
  6418. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6419. fi
  6420. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6421. fi
  6422. if test $ac_cv_c_bigendian = unknown; then
  6423. # Compile a test program.
  6424. if test "$cross_compiling" = yes; then :
  6425. # Try to guess by grepping values from an object file.
  6426. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6427. /* end build/confdefs.h. */
  6428. short int ascii_mm[] =
  6429. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6430. short int ascii_ii[] =
  6431. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6432. int use_ascii (int i) {
  6433. return ascii_mm[i] + ascii_ii[i];
  6434. }
  6435. short int ebcdic_ii[] =
  6436. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6437. short int ebcdic_mm[] =
  6438. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6439. int use_ebcdic (int i) {
  6440. return ebcdic_mm[i] + ebcdic_ii[i];
  6441. }
  6442. extern int foo;
  6443. int
  6444. main ()
  6445. {
  6446. return use_ascii (foo) == use_ebcdic (foo);
  6447. ;
  6448. return 0;
  6449. }
  6450. _ACEOF
  6451. if ac_fn_cxx_try_compile "$LINENO"; then :
  6452. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  6453. ac_cv_c_bigendian=yes
  6454. fi
  6455. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6456. if test "$ac_cv_c_bigendian" = unknown; then
  6457. ac_cv_c_bigendian=no
  6458. else
  6459. # finding both strings is unlikely to happen, but who knows?
  6460. ac_cv_c_bigendian=unknown
  6461. fi
  6462. fi
  6463. fi
  6464. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6465. else
  6466. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6467. /* end build/confdefs.h. */
  6468. $ac_includes_default
  6469. int
  6470. main ()
  6471. {
  6472. /* Are we little or big endian? From Harbison&Steele. */
  6473. union
  6474. {
  6475. long int l;
  6476. char c[sizeof (long int)];
  6477. } u;
  6478. u.l = 1;
  6479. return u.c[sizeof (long int) - 1] == 1;
  6480. ;
  6481. return 0;
  6482. }
  6483. _ACEOF
  6484. if ac_fn_cxx_try_run "$LINENO"; then :
  6485. ac_cv_c_bigendian=no
  6486. else
  6487. ac_cv_c_bigendian=yes
  6488. fi
  6489. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6490. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6491. fi
  6492. fi
  6493. fi
  6494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  6495. $as_echo "$ac_cv_c_bigendian" >&6; }
  6496. case $ac_cv_c_bigendian in #(
  6497. yes)
  6498. $as_echo "#define B_ENDIAN 1" >>build/confdefs.h
  6499. ;; #(
  6500. no)
  6501. $as_echo "#define L_ENDIAN 1" >>build/confdefs.h
  6502. ;; #(
  6503. universal)
  6504. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>build/confdefs.h
  6505. ;; #(
  6506. *)
  6507. as_fn_error $? "unknown endianness
  6508. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  6509. esac
  6510. #AC_C_INLINE
  6511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
  6512. $as_echo_n "checking whether char is unsigned... " >&6; }
  6513. if ${ac_cv_c_char_unsigned+:} false; then :
  6514. $as_echo_n "(cached) " >&6
  6515. else
  6516. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6517. /* end build/confdefs.h. */
  6518. $ac_includes_default
  6519. int
  6520. main ()
  6521. {
  6522. static int test_array [1 - 2 * !(((char) -1) < 0)];
  6523. test_array [0] = 0;
  6524. return test_array [0];
  6525. ;
  6526. return 0;
  6527. }
  6528. _ACEOF
  6529. if ac_fn_cxx_try_compile "$LINENO"; then :
  6530. ac_cv_c_char_unsigned=no
  6531. else
  6532. ac_cv_c_char_unsigned=yes
  6533. fi
  6534. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6535. fi
  6536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
  6537. $as_echo "$ac_cv_c_char_unsigned" >&6; }
  6538. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  6539. $as_echo "#define __CHAR_UNSIGNED__ 1" >>build/confdefs.h
  6540. fi
  6541. #AC_C_STRINGIZE
  6542. #AC_C_PROTOTYPES
  6543. #checkpoint
  6544. cat >confcache <<\_ACEOF
  6545. # This file is a shell script that caches the results of configure
  6546. # tests run on this system so they can be shared between configure
  6547. # scripts and configure runs, see configure's option --config-cache.
  6548. # It is not useful on other systems. If it contains results you don't
  6549. # want to keep, you may remove or edit it.
  6550. #
  6551. # build/config.status only pays attention to the cache file if you give it
  6552. # the --recheck option to rerun configure.
  6553. #
  6554. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6555. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6556. # following values.
  6557. _ACEOF
  6558. # The following way of writing the cache mishandles newlines in values,
  6559. # but we know of no workaround that is simple, portable, and efficient.
  6560. # So, we kill variables containing newlines.
  6561. # Ultrix sh set writes to stderr and can't be redirected directly,
  6562. # and sets the high bit in the cache file unless we assign to the vars.
  6563. (
  6564. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6565. eval ac_val=\$$ac_var
  6566. case $ac_val in #(
  6567. *${as_nl}*)
  6568. case $ac_var in #(
  6569. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6570. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6571. esac
  6572. case $ac_var in #(
  6573. _ | IFS | as_nl) ;; #(
  6574. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6575. *) { eval $ac_var=; unset $ac_var;} ;;
  6576. esac ;;
  6577. esac
  6578. done
  6579. (set) 2>&1 |
  6580. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6581. *${as_nl}ac_space=\ *)
  6582. # `set' does not quote correctly, so add quotes: double-quote
  6583. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6584. sed -n \
  6585. "s/'/'\\\\''/g;
  6586. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6587. ;; #(
  6588. *)
  6589. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6590. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6591. ;;
  6592. esac |
  6593. sort
  6594. ) |
  6595. sed '
  6596. /^ac_cv_env_/b end
  6597. t clear
  6598. :clear
  6599. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6600. t end
  6601. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6602. :end' >>confcache
  6603. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6604. if test -w "$cache_file"; then
  6605. if test "x$cache_file" != "x/dev/null"; then
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6607. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6608. if test ! -f "$cache_file" || test -h "$cache_file"; then
  6609. cat confcache >"$cache_file"
  6610. else
  6611. case $cache_file in #(
  6612. */* | ?:*)
  6613. mv -f confcache "$cache_file"$$ &&
  6614. mv -f "$cache_file"$$ "$cache_file" ;; #(
  6615. *)
  6616. mv -f confcache "$cache_file" ;;
  6617. esac
  6618. fi
  6619. fi
  6620. else
  6621. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6622. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6623. fi
  6624. fi
  6625. rm -f confcache
  6626. # Checks for typedefs, structures, and compiler characteristics
  6627. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  6628. if test "x$ac_cv_type_pid_t" = xyes; then :
  6629. else
  6630. cat >>build/confdefs.h <<_ACEOF
  6631. #define pid_t int
  6632. _ACEOF
  6633. fi
  6634. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  6635. if test "x$ac_cv_type_size_t" = xyes; then :
  6636. else
  6637. cat >>build/confdefs.h <<_ACEOF
  6638. #define size_t unsigned int
  6639. _ACEOF
  6640. fi
  6641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  6642. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  6643. if ${ac_cv_type_uid_t+:} false; then :
  6644. $as_echo_n "(cached) " >&6
  6645. else
  6646. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6647. /* end build/confdefs.h. */
  6648. #include <sys/types.h>
  6649. _ACEOF
  6650. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6651. $EGREP "uid_t" >/dev/null 2>&1; then :
  6652. ac_cv_type_uid_t=yes
  6653. else
  6654. ac_cv_type_uid_t=no
  6655. fi
  6656. rm -f conftest*
  6657. fi
  6658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  6659. $as_echo "$ac_cv_type_uid_t" >&6; }
  6660. if test $ac_cv_type_uid_t = no; then
  6661. $as_echo "#define uid_t int" >>build/confdefs.h
  6662. $as_echo "#define gid_t int" >>build/confdefs.h
  6663. fi
  6664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  6665. $as_echo_n "checking for unsigned long long int... " >&6; }
  6666. if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  6667. $as_echo_n "(cached) " >&6
  6668. else
  6669. ac_cv_type_unsigned_long_long_int=yes
  6670. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  6671. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6672. /* end build/confdefs.h. */
  6673. /* For now, do not test the preprocessor; as of 2007 there are too many
  6674. implementations with broken preprocessors. Perhaps this can
  6675. be revisited in 2012. In the meantime, code should not expect
  6676. #if to work with literals wider than 32 bits. */
  6677. /* Test literals. */
  6678. long long int ll = 9223372036854775807ll;
  6679. long long int nll = -9223372036854775807LL;
  6680. unsigned long long int ull = 18446744073709551615ULL;
  6681. /* Test constant expressions. */
  6682. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  6683. ? 1 : -1)];
  6684. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  6685. ? 1 : -1)];
  6686. int i = 63;
  6687. int
  6688. main ()
  6689. {
  6690. /* Test availability of runtime routines for shift and division. */
  6691. long long int llmax = 9223372036854775807ll;
  6692. unsigned long long int ullmax = 18446744073709551615ull;
  6693. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  6694. | (llmax / ll) | (llmax % ll)
  6695. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  6696. | (ullmax / ull) | (ullmax % ull));
  6697. ;
  6698. return 0;
  6699. }
  6700. _ACEOF
  6701. if ac_fn_cxx_try_link "$LINENO"; then :
  6702. else
  6703. ac_cv_type_unsigned_long_long_int=no
  6704. fi
  6705. rm -f core conftest.err conftest.$ac_objext \
  6706. conftest$ac_exeext conftest.$ac_ext
  6707. fi
  6708. fi
  6709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  6710. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  6711. if test $ac_cv_type_unsigned_long_long_int = yes; then
  6712. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>build/confdefs.h
  6713. fi
  6714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  6715. $as_echo_n "checking for long long int... " >&6; }
  6716. if ${ac_cv_type_long_long_int+:} false; then :
  6717. $as_echo_n "(cached) " >&6
  6718. else
  6719. ac_cv_type_long_long_int=yes
  6720. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  6721. ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
  6722. if test $ac_cv_type_long_long_int = yes; then
  6723. if test "$cross_compiling" = yes; then :
  6724. :
  6725. else
  6726. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6727. /* end build/confdefs.h. */
  6728. #include <limits.h>
  6729. #ifndef LLONG_MAX
  6730. # define HALF \
  6731. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  6732. # define LLONG_MAX (HALF - 1 + HALF)
  6733. #endif
  6734. int
  6735. main ()
  6736. {
  6737. long long int n = 1;
  6738. int i;
  6739. for (i = 0; ; i++)
  6740. {
  6741. long long int m = n << i;
  6742. if (m >> i != n)
  6743. return 1;
  6744. if (LLONG_MAX / 2 < m)
  6745. break;
  6746. }
  6747. return 0;
  6748. ;
  6749. return 0;
  6750. }
  6751. _ACEOF
  6752. if ac_fn_cxx_try_run "$LINENO"; then :
  6753. else
  6754. ac_cv_type_long_long_int=no
  6755. fi
  6756. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6757. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6758. fi
  6759. fi
  6760. fi
  6761. fi
  6762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  6763. $as_echo "$ac_cv_type_long_long_int" >&6; }
  6764. if test $ac_cv_type_long_long_int = yes; then
  6765. $as_echo "#define HAVE_LONG_LONG_INT 1" >>build/confdefs.h
  6766. fi
  6767. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  6768. case $ac_cv_c_int8_t in #(
  6769. no|yes) ;; #(
  6770. *)
  6771. cat >>build/confdefs.h <<_ACEOF
  6772. #define int8_t $ac_cv_c_int8_t
  6773. _ACEOF
  6774. ;;
  6775. esac
  6776. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  6777. case $ac_cv_c_uint8_t in #(
  6778. no|yes) ;; #(
  6779. *)
  6780. $as_echo "#define _UINT8_T 1" >>build/confdefs.h
  6781. cat >>build/confdefs.h <<_ACEOF
  6782. #define uint8_t $ac_cv_c_uint8_t
  6783. _ACEOF
  6784. ;;
  6785. esac
  6786. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  6787. case $ac_cv_c_int16_t in #(
  6788. no|yes) ;; #(
  6789. *)
  6790. cat >>build/confdefs.h <<_ACEOF
  6791. #define int16_t $ac_cv_c_int16_t
  6792. _ACEOF
  6793. ;;
  6794. esac
  6795. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  6796. case $ac_cv_c_uint16_t in #(
  6797. no|yes) ;; #(
  6798. *)
  6799. cat >>build/confdefs.h <<_ACEOF
  6800. #define uint16_t $ac_cv_c_uint16_t
  6801. _ACEOF
  6802. ;;
  6803. esac
  6804. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  6805. case $ac_cv_c_int32_t in #(
  6806. no|yes) ;; #(
  6807. *)
  6808. cat >>build/confdefs.h <<_ACEOF
  6809. #define int32_t $ac_cv_c_int32_t
  6810. _ACEOF
  6811. ;;
  6812. esac
  6813. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  6814. case $ac_cv_c_uint32_t in #(
  6815. no|yes) ;; #(
  6816. *)
  6817. $as_echo "#define _UINT32_T 1" >>build/confdefs.h
  6818. cat >>build/confdefs.h <<_ACEOF
  6819. #define uint32_t $ac_cv_c_uint32_t
  6820. _ACEOF
  6821. ;;
  6822. esac
  6823. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  6824. case $ac_cv_c_int64_t in #(
  6825. no|yes) ;; #(
  6826. *)
  6827. cat >>build/confdefs.h <<_ACEOF
  6828. #define int64_t $ac_cv_c_int64_t
  6829. _ACEOF
  6830. ;;
  6831. esac
  6832. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  6833. case $ac_cv_c_uint64_t in #(
  6834. no|yes) ;; #(
  6835. *)
  6836. $as_echo "#define _UINT64_T 1" >>build/confdefs.h
  6837. cat >>build/confdefs.h <<_ACEOF
  6838. #define uint64_t $ac_cv_c_uint64_t
  6839. _ACEOF
  6840. ;;
  6841. esac
  6842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  6843. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  6844. if ${ac_cv_struct_tm+:} false; then :
  6845. $as_echo_n "(cached) " >&6
  6846. else
  6847. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6848. /* end build/confdefs.h. */
  6849. #include <sys/types.h>
  6850. #include <time.h>
  6851. int
  6852. main ()
  6853. {
  6854. struct tm tm;
  6855. int *p = &tm.tm_sec;
  6856. return !p;
  6857. ;
  6858. return 0;
  6859. }
  6860. _ACEOF
  6861. if ac_fn_cxx_try_compile "$LINENO"; then :
  6862. ac_cv_struct_tm=time.h
  6863. else
  6864. ac_cv_struct_tm=sys/time.h
  6865. fi
  6866. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6867. fi
  6868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  6869. $as_echo "$ac_cv_struct_tm" >&6; }
  6870. if test $ac_cv_struct_tm = sys/time.h; then
  6871. $as_echo "#define TM_IN_SYS_TIME 1" >>build/confdefs.h
  6872. fi
  6873. ac_fn_cxx_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  6874. #include <$ac_cv_struct_tm>
  6875. "
  6876. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
  6877. cat >>build/confdefs.h <<_ACEOF
  6878. #define HAVE_STRUCT_TM_TM_ZONE 1
  6879. _ACEOF
  6880. fi
  6881. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  6882. $as_echo "#define HAVE_TM_ZONE 1" >>build/confdefs.h
  6883. else
  6884. ac_fn_cxx_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  6885. "
  6886. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  6887. ac_have_decl=1
  6888. else
  6889. ac_have_decl=0
  6890. fi
  6891. cat >>build/confdefs.h <<_ACEOF
  6892. #define HAVE_DECL_TZNAME $ac_have_decl
  6893. _ACEOF
  6894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  6895. $as_echo_n "checking for tzname... " >&6; }
  6896. if ${ac_cv_var_tzname+:} false; then :
  6897. $as_echo_n "(cached) " >&6
  6898. else
  6899. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6900. /* end build/confdefs.h. */
  6901. #include <time.h>
  6902. #if !HAVE_DECL_TZNAME
  6903. extern char *tzname[];
  6904. #endif
  6905. int
  6906. main ()
  6907. {
  6908. return tzname[0][0];
  6909. ;
  6910. return 0;
  6911. }
  6912. _ACEOF
  6913. if ac_fn_cxx_try_link "$LINENO"; then :
  6914. ac_cv_var_tzname=yes
  6915. else
  6916. ac_cv_var_tzname=no
  6917. fi
  6918. rm -f core conftest.err conftest.$ac_objext \
  6919. conftest$ac_exeext conftest.$ac_ext
  6920. fi
  6921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  6922. $as_echo "$ac_cv_var_tzname" >&6; }
  6923. if test $ac_cv_var_tzname = yes; then
  6924. $as_echo "#define HAVE_TZNAME 1" >>build/confdefs.h
  6925. fi
  6926. fi
  6927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  6928. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  6929. if ${ac_cv_struct_tm+:} false; then :
  6930. $as_echo_n "(cached) " >&6
  6931. else
  6932. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6933. /* end build/confdefs.h. */
  6934. #include <sys/types.h>
  6935. #include <time.h>
  6936. int
  6937. main ()
  6938. {
  6939. struct tm tm;
  6940. int *p = &tm.tm_sec;
  6941. return !p;
  6942. ;
  6943. return 0;
  6944. }
  6945. _ACEOF
  6946. if ac_fn_cxx_try_compile "$LINENO"; then :
  6947. ac_cv_struct_tm=time.h
  6948. else
  6949. ac_cv_struct_tm=sys/time.h
  6950. fi
  6951. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6952. fi
  6953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  6954. $as_echo "$ac_cv_struct_tm" >&6; }
  6955. if test $ac_cv_struct_tm = sys/time.h; then
  6956. $as_echo "#define TM_IN_SYS_TIME 1" >>build/confdefs.h
  6957. fi
  6958. # Checks for library functions
  6959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  6960. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  6961. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  6962. $as_echo_n "(cached) " >&6
  6963. else
  6964. rm -f conftest.sym conftest.file
  6965. echo >conftest.file
  6966. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  6967. if test "$cross_compiling" = yes; then :
  6968. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6969. else
  6970. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6971. /* end build/confdefs.h. */
  6972. $ac_includes_default
  6973. int
  6974. main ()
  6975. {
  6976. struct stat sbuf;
  6977. /* Linux will dereference the symlink and fail, as required by POSIX.
  6978. That is better in the sense that it means we will not
  6979. have to compile and use the lstat wrapper. */
  6980. return lstat ("conftest.sym/", &sbuf) == 0;
  6981. ;
  6982. return 0;
  6983. }
  6984. _ACEOF
  6985. if ac_fn_cxx_try_run "$LINENO"; then :
  6986. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  6987. else
  6988. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6989. fi
  6990. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6991. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6992. fi
  6993. else
  6994. # If the `ln -s' command failed, then we probably don't even
  6995. # have an lstat function.
  6996. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6997. fi
  6998. rm -f conftest.sym conftest.file
  6999. fi
  7000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  7001. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  7002. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  7003. cat >>build/confdefs.h <<_ACEOF
  7004. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  7005. _ACEOF
  7006. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  7007. case " $LIBOBJS " in
  7008. *" lstat.$ac_objext "* ) ;;
  7009. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  7010. ;;
  7011. esac
  7012. fi
  7013. for ac_header in $ac_header_list
  7014. do :
  7015. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7016. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7017. "
  7018. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7019. cat >>build/confdefs.h <<_ACEOF
  7020. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7021. _ACEOF
  7022. fi
  7023. done
  7024. for ac_func in getpagesize
  7025. do :
  7026. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  7027. if test "x$ac_cv_func_getpagesize" = xyes; then :
  7028. cat >>build/confdefs.h <<_ACEOF
  7029. #define HAVE_GETPAGESIZE 1
  7030. _ACEOF
  7031. fi
  7032. done
  7033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  7034. $as_echo_n "checking for working mmap... " >&6; }
  7035. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  7036. $as_echo_n "(cached) " >&6
  7037. else
  7038. if test "$cross_compiling" = yes; then :
  7039. ac_cv_func_mmap_fixed_mapped=no
  7040. else
  7041. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7042. /* end build/confdefs.h. */
  7043. $ac_includes_default
  7044. /* malloc might have been renamed as rpl_malloc. */
  7045. #undef malloc
  7046. /* Thanks to Mike Haertel and Jim Avera for this test.
  7047. Here is a matrix of mmap possibilities:
  7048. mmap private not fixed
  7049. mmap private fixed at somewhere currently unmapped
  7050. mmap private fixed at somewhere already mapped
  7051. mmap shared not fixed
  7052. mmap shared fixed at somewhere currently unmapped
  7053. mmap shared fixed at somewhere already mapped
  7054. For private mappings, we should verify that changes cannot be read()
  7055. back from the file, nor mmap's back from the file at a different
  7056. address. (There have been systems where private was not correctly
  7057. implemented like the infamous i386 svr4.0, and systems where the
  7058. VM page cache was not coherent with the file system buffer cache
  7059. like early versions of FreeBSD and possibly contemporary NetBSD.)
  7060. For shared mappings, we should conversely verify that changes get
  7061. propagated back to all the places they're supposed to be.
  7062. Grep wants private fixed already mapped.
  7063. The main things grep needs to know about mmap are:
  7064. * does it exist and is it safe to write into the mmap'd area
  7065. * how to use it (BSD variants) */
  7066. #include <fcntl.h>
  7067. #include <sys/mman.h>
  7068. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  7069. char *malloc ();
  7070. #endif
  7071. /* This mess was copied from the GNU getpagesize.h. */
  7072. #ifndef HAVE_GETPAGESIZE
  7073. # ifdef _SC_PAGESIZE
  7074. # define getpagesize() sysconf(_SC_PAGESIZE)
  7075. # else /* no _SC_PAGESIZE */
  7076. # ifdef HAVE_SYS_PARAM_H
  7077. # include <sys/param.h>
  7078. # ifdef EXEC_PAGESIZE
  7079. # define getpagesize() EXEC_PAGESIZE
  7080. # else /* no EXEC_PAGESIZE */
  7081. # ifdef NBPG
  7082. # define getpagesize() NBPG * CLSIZE
  7083. # ifndef CLSIZE
  7084. # define CLSIZE 1
  7085. # endif /* no CLSIZE */
  7086. # else /* no NBPG */
  7087. # ifdef NBPC
  7088. # define getpagesize() NBPC
  7089. # else /* no NBPC */
  7090. # ifdef PAGESIZE
  7091. # define getpagesize() PAGESIZE
  7092. # endif /* PAGESIZE */
  7093. # endif /* no NBPC */
  7094. # endif /* no NBPG */
  7095. # endif /* no EXEC_PAGESIZE */
  7096. # else /* no HAVE_SYS_PARAM_H */
  7097. # define getpagesize() 8192 /* punt totally */
  7098. # endif /* no HAVE_SYS_PARAM_H */
  7099. # endif /* no _SC_PAGESIZE */
  7100. #endif /* no HAVE_GETPAGESIZE */
  7101. int
  7102. main ()
  7103. {
  7104. char *data, *data2, *data3;
  7105. const char *cdata2;
  7106. int i, pagesize;
  7107. int fd, fd2;
  7108. pagesize = getpagesize ();
  7109. /* First, make a file with some known garbage in it. */
  7110. data = (char *) malloc (pagesize);
  7111. if (!data)
  7112. return 1;
  7113. for (i = 0; i < pagesize; ++i)
  7114. *(data + i) = rand ();
  7115. umask (0);
  7116. fd = creat ("conftest.mmap", 0600);
  7117. if (fd < 0)
  7118. return 2;
  7119. if (write (fd, data, pagesize) != pagesize)
  7120. return 3;
  7121. close (fd);
  7122. /* Next, check that the tail of a page is zero-filled. File must have
  7123. non-zero length, otherwise we risk SIGBUS for entire page. */
  7124. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  7125. if (fd2 < 0)
  7126. return 4;
  7127. cdata2 = "";
  7128. if (write (fd2, cdata2, 1) != 1)
  7129. return 5;
  7130. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  7131. if (data2 == MAP_FAILED)
  7132. return 6;
  7133. for (i = 0; i < pagesize; ++i)
  7134. if (*(data2 + i))
  7135. return 7;
  7136. close (fd2);
  7137. if (munmap (data2, pagesize))
  7138. return 8;
  7139. /* Next, try to mmap the file at a fixed address which already has
  7140. something else allocated at it. If we can, also make sure that
  7141. we see the same garbage. */
  7142. fd = open ("conftest.mmap", O_RDWR);
  7143. if (fd < 0)
  7144. return 9;
  7145. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  7146. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  7147. return 10;
  7148. for (i = 0; i < pagesize; ++i)
  7149. if (*(data + i) != *(data2 + i))
  7150. return 11;
  7151. /* Finally, make sure that changes to the mapped area do not
  7152. percolate back to the file as seen by read(). (This is a bug on
  7153. some variants of i386 svr4.0.) */
  7154. for (i = 0; i < pagesize; ++i)
  7155. *(data2 + i) = *(data2 + i) + 1;
  7156. data3 = (char *) malloc (pagesize);
  7157. if (!data3)
  7158. return 12;
  7159. if (read (fd, data3, pagesize) != pagesize)
  7160. return 13;
  7161. for (i = 0; i < pagesize; ++i)
  7162. if (*(data + i) != *(data3 + i))
  7163. return 14;
  7164. close (fd);
  7165. return 0;
  7166. }
  7167. _ACEOF
  7168. if ac_fn_cxx_try_run "$LINENO"; then :
  7169. ac_cv_func_mmap_fixed_mapped=yes
  7170. else
  7171. ac_cv_func_mmap_fixed_mapped=no
  7172. fi
  7173. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7174. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7175. fi
  7176. fi
  7177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  7178. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  7179. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  7180. $as_echo "#define HAVE_MMAP 1" >>build/confdefs.h
  7181. fi
  7182. rm -f conftest.mmap conftest.txt
  7183. ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
  7184. #include <sys/time.h>
  7185. #include <time.h>
  7186. "
  7187. if test "x$ac_cv_type_struct_timespec" = xyes; then :
  7188. $as_echo "#define HAVE_TIMESPEC 1" >>build/confdefs.h
  7189. fi
  7190. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  7191. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
  7192. if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
  7193. $as_echo "#define HAVE_ST_MTIM 1" >>build/confdefs.h
  7194. else
  7195. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
  7196. if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
  7197. $as_echo "#define HAVE_ST_MTIMESPEC 1" >>build/confdefs.h
  7198. fi
  7199. fi
  7200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-parameter timespecsub" >&5
  7201. $as_echo_n "checking for two-parameter timespecsub... " >&6; }
  7202. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7203. /* end build/confdefs.h. */
  7204. #include <sys/types.h>
  7205. #include <sys/time.h>
  7206. int
  7207. main ()
  7208. {
  7209. struct timespec ts1, ts2;
  7210. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  7211. #ifndef timespecsub
  7212. #error missing timespecsub
  7213. #endif
  7214. timespecsub(&ts1, &ts2);
  7215. ;
  7216. return 0;
  7217. }
  7218. _ACEOF
  7219. if ac_fn_cxx_try_compile "$LINENO"; then :
  7220. $as_echo "#define HAVE_TIMESPECSUB2 1" >>build/confdefs.h
  7221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7222. $as_echo "yes" >&6; }
  7223. else
  7224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7225. $as_echo "no" >&6; }
  7226. fi
  7227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7228. fi
  7229. #checkpoint
  7230. cat >confcache <<\_ACEOF
  7231. # This file is a shell script that caches the results of configure
  7232. # tests run on this system so they can be shared between configure
  7233. # scripts and configure runs, see configure's option --config-cache.
  7234. # It is not useful on other systems. If it contains results you don't
  7235. # want to keep, you may remove or edit it.
  7236. #
  7237. # build/config.status only pays attention to the cache file if you give it
  7238. # the --recheck option to rerun configure.
  7239. #
  7240. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7241. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7242. # following values.
  7243. _ACEOF
  7244. # The following way of writing the cache mishandles newlines in values,
  7245. # but we know of no workaround that is simple, portable, and efficient.
  7246. # So, we kill variables containing newlines.
  7247. # Ultrix sh set writes to stderr and can't be redirected directly,
  7248. # and sets the high bit in the cache file unless we assign to the vars.
  7249. (
  7250. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7251. eval ac_val=\$$ac_var
  7252. case $ac_val in #(
  7253. *${as_nl}*)
  7254. case $ac_var in #(
  7255. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7256. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7257. esac
  7258. case $ac_var in #(
  7259. _ | IFS | as_nl) ;; #(
  7260. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7261. *) { eval $ac_var=; unset $ac_var;} ;;
  7262. esac ;;
  7263. esac
  7264. done
  7265. (set) 2>&1 |
  7266. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7267. *${as_nl}ac_space=\ *)
  7268. # `set' does not quote correctly, so add quotes: double-quote
  7269. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7270. sed -n \
  7271. "s/'/'\\\\''/g;
  7272. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7273. ;; #(
  7274. *)
  7275. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7276. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7277. ;;
  7278. esac |
  7279. sort
  7280. ) |
  7281. sed '
  7282. /^ac_cv_env_/b end
  7283. t clear
  7284. :clear
  7285. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7286. t end
  7287. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7288. :end' >>confcache
  7289. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7290. if test -w "$cache_file"; then
  7291. if test "x$cache_file" != "x/dev/null"; then
  7292. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7293. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7294. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7295. cat confcache >"$cache_file"
  7296. else
  7297. case $cache_file in #(
  7298. */* | ?:*)
  7299. mv -f confcache "$cache_file"$$ &&
  7300. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7301. *)
  7302. mv -f confcache "$cache_file" ;;
  7303. esac
  7304. fi
  7305. fi
  7306. else
  7307. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7308. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7309. fi
  7310. fi
  7311. rm -f confcache
  7312. for ac_func in getrusage getpassphrase posix_madvise madvise
  7313. do :
  7314. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7315. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7316. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7317. cat >>build/confdefs.h <<_ACEOF
  7318. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7319. _ACEOF
  7320. fi
  7321. done
  7322. for ac_func in memmem random snprintf srandom gettime
  7323. do :
  7324. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7325. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7326. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7327. cat >>build/confdefs.h <<_ACEOF
  7328. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7329. _ACEOF
  7330. fi
  7331. done
  7332. #checkpoint
  7333. cat >confcache <<\_ACEOF
  7334. # This file is a shell script that caches the results of configure
  7335. # tests run on this system so they can be shared between configure
  7336. # scripts and configure runs, see configure's option --config-cache.
  7337. # It is not useful on other systems. If it contains results you don't
  7338. # want to keep, you may remove or edit it.
  7339. #
  7340. # build/config.status only pays attention to the cache file if you give it
  7341. # the --recheck option to rerun configure.
  7342. #
  7343. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7344. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7345. # following values.
  7346. _ACEOF
  7347. # The following way of writing the cache mishandles newlines in values,
  7348. # but we know of no workaround that is simple, portable, and efficient.
  7349. # So, we kill variables containing newlines.
  7350. # Ultrix sh set writes to stderr and can't be redirected directly,
  7351. # and sets the high bit in the cache file unless we assign to the vars.
  7352. (
  7353. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7354. eval ac_val=\$$ac_var
  7355. case $ac_val in #(
  7356. *${as_nl}*)
  7357. case $ac_var in #(
  7358. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7359. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7360. esac
  7361. case $ac_var in #(
  7362. _ | IFS | as_nl) ;; #(
  7363. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7364. *) { eval $ac_var=; unset $ac_var;} ;;
  7365. esac ;;
  7366. esac
  7367. done
  7368. (set) 2>&1 |
  7369. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7370. *${as_nl}ac_space=\ *)
  7371. # `set' does not quote correctly, so add quotes: double-quote
  7372. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7373. sed -n \
  7374. "s/'/'\\\\''/g;
  7375. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7376. ;; #(
  7377. *)
  7378. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7379. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7380. ;;
  7381. esac |
  7382. sort
  7383. ) |
  7384. sed '
  7385. /^ac_cv_env_/b end
  7386. t clear
  7387. :clear
  7388. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7389. t end
  7390. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7391. :end' >>confcache
  7392. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7393. if test -w "$cache_file"; then
  7394. if test "x$cache_file" != "x/dev/null"; then
  7395. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7396. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7397. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7398. cat confcache >"$cache_file"
  7399. else
  7400. case $cache_file in #(
  7401. */* | ?:*)
  7402. mv -f confcache "$cache_file"$$ &&
  7403. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7404. *)
  7405. mv -f confcache "$cache_file" ;;
  7406. esac
  7407. fi
  7408. fi
  7409. else
  7410. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7411. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7412. fi
  7413. fi
  7414. rm -f confcache
  7415. for ac_func in vsnprintf prctl procctl closefrom
  7416. do :
  7417. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7418. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7419. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7420. cat >>build/confdefs.h <<_ACEOF
  7421. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7422. _ACEOF
  7423. fi
  7424. done
  7425. #autoscan suggested this....
  7426. #These are recommended by autoscan, but no code supports it currently
  7427. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostname getpass gettimeofday mbrlen
  7428. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  7429. for ac_func in vsprintf
  7430. do :
  7431. ac_fn_cxx_check_func "$LINENO" "vsprintf" "ac_cv_func_vsprintf"
  7432. if test "x$ac_cv_func_vsprintf" = xyes; then :
  7433. cat >>build/confdefs.h <<_ACEOF
  7434. #define HAVE_VSPRINTF 1
  7435. _ACEOF
  7436. fi
  7437. done
  7438. if test "$ac_cv_func_vsprintf" = "no"
  7439. then
  7440. cat << 'EOF' >&2
  7441. configure: error:
  7442. Your system does not have the sprintf/vsprintf libraries.
  7443. These are required to compile almost anything. Sorry.
  7444. EOF
  7445. exit 1
  7446. fi
  7447. for ac_func in uname
  7448. do :
  7449. ac_fn_cxx_check_func "$LINENO" "uname" "ac_cv_func_uname"
  7450. if test "x$ac_cv_func_uname" = xyes; then :
  7451. cat >>build/confdefs.h <<_ACEOF
  7452. #define HAVE_UNAME 1
  7453. _ACEOF
  7454. fi
  7455. done
  7456. if test "$ac_cv_func_uname" = "no"
  7457. then
  7458. cat << 'EOF' >&2
  7459. configure: error:
  7460. Your system does not have the uname() function.
  7461. This is required for the botpack.
  7462. EOF
  7463. exit 1
  7464. fi
  7465. # Make sure we have stdc headers, since we can't compile without them
  7466. if test "$ac_cv_header_stdc" = "no"
  7467. then
  7468. cat << 'EOF' >&2
  7469. configure: error:
  7470. Your system must support ANSI C Header files.
  7471. These are required for the language support. Sorry.
  7472. EOF
  7473. exit 1
  7474. fi
  7475. #checkpoint
  7476. cat >confcache <<\_ACEOF
  7477. # This file is a shell script that caches the results of configure
  7478. # tests run on this system so they can be shared between configure
  7479. # scripts and configure runs, see configure's option --config-cache.
  7480. # It is not useful on other systems. If it contains results you don't
  7481. # want to keep, you may remove or edit it.
  7482. #
  7483. # build/config.status only pays attention to the cache file if you give it
  7484. # the --recheck option to rerun configure.
  7485. #
  7486. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7487. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7488. # following values.
  7489. _ACEOF
  7490. # The following way of writing the cache mishandles newlines in values,
  7491. # but we know of no workaround that is simple, portable, and efficient.
  7492. # So, we kill variables containing newlines.
  7493. # Ultrix sh set writes to stderr and can't be redirected directly,
  7494. # and sets the high bit in the cache file unless we assign to the vars.
  7495. (
  7496. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7497. eval ac_val=\$$ac_var
  7498. case $ac_val in #(
  7499. *${as_nl}*)
  7500. case $ac_var in #(
  7501. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7502. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7503. esac
  7504. case $ac_var in #(
  7505. _ | IFS | as_nl) ;; #(
  7506. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7507. *) { eval $ac_var=; unset $ac_var;} ;;
  7508. esac ;;
  7509. esac
  7510. done
  7511. (set) 2>&1 |
  7512. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7513. *${as_nl}ac_space=\ *)
  7514. # `set' does not quote correctly, so add quotes: double-quote
  7515. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7516. sed -n \
  7517. "s/'/'\\\\''/g;
  7518. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7519. ;; #(
  7520. *)
  7521. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7522. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7523. ;;
  7524. esac |
  7525. sort
  7526. ) |
  7527. sed '
  7528. /^ac_cv_env_/b end
  7529. t clear
  7530. :clear
  7531. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7532. t end
  7533. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7534. :end' >>confcache
  7535. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7536. if test -w "$cache_file"; then
  7537. if test "x$cache_file" != "x/dev/null"; then
  7538. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7539. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7540. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7541. cat confcache >"$cache_file"
  7542. else
  7543. case $cache_file in #(
  7544. */* | ?:*)
  7545. mv -f confcache "$cache_file"$$ &&
  7546. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7547. *)
  7548. mv -f confcache "$cache_file" ;;
  7549. esac
  7550. fi
  7551. fi
  7552. else
  7553. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7554. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7555. fi
  7556. fi
  7557. rm -f confcache
  7558. VERSION=`grep "char" $srcdir/src/main.cc | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  7559. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  7560. cat >>build/confdefs.h <<_ACEOF
  7561. #define EGG_VERSION $version_num
  7562. _ACEOF
  7563. #FIND_WRAPS
  7564. files="src/Makefile.in"
  7565. for mf in $files; do
  7566. # Strip MF so we end up with the name of the file.
  7567. mf=${mf%%:*}
  7568. dirmf=${mf%/*}
  7569. rm -f "$dirmf/.deps/includes"
  7570. test -d "$dirmf/.deps" || mkdir "$dirmf/.deps"
  7571. for file in `sed -n -e '
  7572. /^OBJS = .*\\\\$/ {
  7573. s/^OBJS = //
  7574. :loop
  7575. s/\\\\$//
  7576. p
  7577. n
  7578. /\\\\$/ b loop
  7579. p
  7580. }
  7581. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  7582. do
  7583. dirpart="${dirmf}/${file}"
  7584. dirpart="${dirpart%/*}"
  7585. if [ "${dirpart}" != "${dirmf}" ]; then
  7586. test -d "${dirpart}/.deps" || mkdir "${dirpart}/.deps"
  7587. fi
  7588. file="${file##*/}"
  7589. suffix=${file##*.}
  7590. base=${file%%.*}
  7591. test -f "$dirpart/$base.cc" || test -f "$dirpart/$base.c" || continue
  7592. if ! test -f "$dirpart/.deps/$base.Po"; then
  7593. echo '# dummy' > "$dirpart/.deps/$base.Po"
  7594. #Remove the .o file, because it needs to be recompiled for its dependancies.
  7595. if test -f "$dirpart/${base}.${suffix}"; then
  7596. rm -f "$dirpart/${base}.${suffix}"
  7597. fi
  7598. fi
  7599. echo "include .${dirpart#${dirmf}}/.deps/$base.Po" >> "${dirmf}/.deps/includes"
  7600. done
  7601. done
  7602. ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile src/buildinfo.h"
  7603. GIT_REQUIRED=1
  7604. if [ "$GIT_REQUIRED" = "1" ]; then
  7605. if ! test -d .git; then
  7606. echo ""
  7607. echo ""
  7608. echo "You have downloaded a GIT version of wraith."
  7609. echo "Either 'git clone' from a git repository or download a source tarball"
  7610. echo "A distribution version can be found at http://wraith.botpack.net/wiki/Download"
  7611. echo ""
  7612. echo ""
  7613. exit 1
  7614. fi
  7615. fi
  7616. if test -d .git; then
  7617. git submodule init
  7618. git submodule update
  7619. git submodule foreach --recursive git clean -fdx
  7620. # Restore as it may have been removed by an older 'make distclean'
  7621. if ! test -f src/response.h; then
  7622. git checkout src/response.h
  7623. fi
  7624. fi
  7625. export CC CXX
  7626. if [ -f lib/bdlib/configure ]; then
  7627. subdirs="$subdirs lib/bdlib"
  7628. fi
  7629. if [ -n "${LIBELF_BUNDLED}" ] && [ -f lib/libelf/configure ]; then
  7630. subdirs="$subdirs lib/libelf"
  7631. fi
  7632. cat >confcache <<\_ACEOF
  7633. # This file is a shell script that caches the results of configure
  7634. # tests run on this system so they can be shared between configure
  7635. # scripts and configure runs, see configure's option --config-cache.
  7636. # It is not useful on other systems. If it contains results you don't
  7637. # want to keep, you may remove or edit it.
  7638. #
  7639. # build/config.status only pays attention to the cache file if you give it
  7640. # the --recheck option to rerun configure.
  7641. #
  7642. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7643. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7644. # following values.
  7645. _ACEOF
  7646. # The following way of writing the cache mishandles newlines in values,
  7647. # but we know of no workaround that is simple, portable, and efficient.
  7648. # So, we kill variables containing newlines.
  7649. # Ultrix sh set writes to stderr and can't be redirected directly,
  7650. # and sets the high bit in the cache file unless we assign to the vars.
  7651. (
  7652. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7653. eval ac_val=\$$ac_var
  7654. case $ac_val in #(
  7655. *${as_nl}*)
  7656. case $ac_var in #(
  7657. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7658. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7659. esac
  7660. case $ac_var in #(
  7661. _ | IFS | as_nl) ;; #(
  7662. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7663. *) { eval $ac_var=; unset $ac_var;} ;;
  7664. esac ;;
  7665. esac
  7666. done
  7667. (set) 2>&1 |
  7668. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7669. *${as_nl}ac_space=\ *)
  7670. # `set' does not quote correctly, so add quotes: double-quote
  7671. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7672. sed -n \
  7673. "s/'/'\\\\''/g;
  7674. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7675. ;; #(
  7676. *)
  7677. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7678. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7679. ;;
  7680. esac |
  7681. sort
  7682. ) |
  7683. sed '
  7684. /^ac_cv_env_/b end
  7685. t clear
  7686. :clear
  7687. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7688. t end
  7689. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7690. :end' >>confcache
  7691. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7692. if test -w "$cache_file"; then
  7693. if test "x$cache_file" != "x/dev/null"; then
  7694. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7695. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7696. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7697. cat confcache >"$cache_file"
  7698. else
  7699. case $cache_file in #(
  7700. */* | ?:*)
  7701. mv -f confcache "$cache_file"$$ &&
  7702. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7703. *)
  7704. mv -f confcache "$cache_file" ;;
  7705. esac
  7706. fi
  7707. fi
  7708. else
  7709. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7710. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7711. fi
  7712. fi
  7713. rm -f confcache
  7714. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  7715. # Let make expand exec_prefix.
  7716. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  7717. DEFS=-DHAVE_CONFIG_H
  7718. ac_libobjs=
  7719. ac_ltlibobjs=
  7720. U=
  7721. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  7722. # 1. Remove the extension, and $U if already installed.
  7723. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  7724. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  7725. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  7726. # will be set to the directory where LIBOBJS objects are built.
  7727. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  7728. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  7729. done
  7730. LIBOBJS=$ac_libobjs
  7731. LTLIBOBJS=$ac_ltlibobjs
  7732. : "${CONFIG_STATUS=./build/config.status}"
  7733. ac_write_fail=0
  7734. ac_clean_files_save=$ac_clean_files
  7735. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  7736. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  7737. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  7738. as_write_fail=0
  7739. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  7740. #! $SHELL
  7741. # Generated by $as_me.
  7742. # Run this file to recreate the current configuration.
  7743. # Compiler output produced by configure, useful for debugging
  7744. # configure, is in build/config.log if it exists.
  7745. debug=false
  7746. ac_cs_recheck=false
  7747. ac_cs_silent=false
  7748. SHELL=\${CONFIG_SHELL-$SHELL}
  7749. export SHELL
  7750. _ASEOF
  7751. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  7752. ## -------------------- ##
  7753. ## M4sh Initialization. ##
  7754. ## -------------------- ##
  7755. # Be more Bourne compatible
  7756. DUALCASE=1; export DUALCASE # for MKS sh
  7757. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  7758. emulate sh
  7759. NULLCMD=:
  7760. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  7761. # is contrary to our usage. Disable this feature.
  7762. alias -g '${1+"$@"}'='"$@"'
  7763. setopt NO_GLOB_SUBST
  7764. else
  7765. case `(set -o) 2>/dev/null` in #(
  7766. *posix*) :
  7767. set -o posix ;; #(
  7768. *) :
  7769. ;;
  7770. esac
  7771. fi
  7772. as_nl='
  7773. '
  7774. export as_nl
  7775. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  7776. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  7777. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  7778. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  7779. # Prefer a ksh shell builtin over an external printf program on Solaris,
  7780. # but without wasting forks for bash or zsh.
  7781. if test -z "$BASH_VERSION$ZSH_VERSION" \
  7782. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  7783. as_echo='print -r --'
  7784. as_echo_n='print -rn --'
  7785. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  7786. as_echo='printf %s\n'
  7787. as_echo_n='printf %s'
  7788. else
  7789. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  7790. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  7791. as_echo_n='/usr/ucb/echo -n'
  7792. else
  7793. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  7794. as_echo_n_body='eval
  7795. arg=$1;
  7796. case $arg in #(
  7797. *"$as_nl"*)
  7798. expr "X$arg" : "X\\(.*\\)$as_nl";
  7799. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  7800. esac;
  7801. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  7802. '
  7803. export as_echo_n_body
  7804. as_echo_n='sh -c $as_echo_n_body as_echo'
  7805. fi
  7806. export as_echo_body
  7807. as_echo='sh -c $as_echo_body as_echo'
  7808. fi
  7809. # The user is always right.
  7810. if test "${PATH_SEPARATOR+set}" != set; then
  7811. PATH_SEPARATOR=:
  7812. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  7813. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  7814. PATH_SEPARATOR=';'
  7815. }
  7816. fi
  7817. # IFS
  7818. # We need space, tab and new line, in precisely that order. Quoting is
  7819. # there to prevent editors from complaining about space-tab.
  7820. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  7821. # splitting by setting IFS to empty value.)
  7822. IFS=" "" $as_nl"
  7823. # Find who we are. Look in the path if we contain no directory separator.
  7824. as_myself=
  7825. case $0 in #((
  7826. *[\\/]* ) as_myself=$0 ;;
  7827. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7828. for as_dir in $PATH
  7829. do
  7830. IFS=$as_save_IFS
  7831. test -z "$as_dir" && as_dir=.
  7832. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  7833. done
  7834. IFS=$as_save_IFS
  7835. ;;
  7836. esac
  7837. # We did not find ourselves, most probably we were run as `sh COMMAND'
  7838. # in which case we are not to be found in the path.
  7839. if test "x$as_myself" = x; then
  7840. as_myself=$0
  7841. fi
  7842. if test ! -f "$as_myself"; then
  7843. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  7844. exit 1
  7845. fi
  7846. # Unset variables that we do not need and which cause bugs (e.g. in
  7847. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  7848. # suppresses any "Segmentation fault" message there. '((' could
  7849. # trigger a bug in pdksh 5.2.14.
  7850. for as_var in BASH_ENV ENV MAIL MAILPATH
  7851. do eval test x\${$as_var+set} = xset \
  7852. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  7853. done
  7854. PS1='$ '
  7855. PS2='> '
  7856. PS4='+ '
  7857. # NLS nuisances.
  7858. LC_ALL=C
  7859. export LC_ALL
  7860. LANGUAGE=C
  7861. export LANGUAGE
  7862. # CDPATH.
  7863. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  7864. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  7865. # ----------------------------------------
  7866. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  7867. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  7868. # script with STATUS, using 1 if that was 0.
  7869. as_fn_error ()
  7870. {
  7871. as_status=$1; test $as_status -eq 0 && as_status=1
  7872. if test "$4"; then
  7873. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  7874. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  7875. fi
  7876. $as_echo "$as_me: error: $2" >&2
  7877. as_fn_exit $as_status
  7878. } # as_fn_error
  7879. # as_fn_set_status STATUS
  7880. # -----------------------
  7881. # Set $? to STATUS, without forking.
  7882. as_fn_set_status ()
  7883. {
  7884. return $1
  7885. } # as_fn_set_status
  7886. # as_fn_exit STATUS
  7887. # -----------------
  7888. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  7889. as_fn_exit ()
  7890. {
  7891. set +e
  7892. as_fn_set_status $1
  7893. exit $1
  7894. } # as_fn_exit
  7895. # as_fn_unset VAR
  7896. # ---------------
  7897. # Portably unset VAR.
  7898. as_fn_unset ()
  7899. {
  7900. { eval $1=; unset $1;}
  7901. }
  7902. as_unset=as_fn_unset
  7903. # as_fn_append VAR VALUE
  7904. # ----------------------
  7905. # Append the text in VALUE to the end of the definition contained in VAR. Take
  7906. # advantage of any shell optimizations that allow amortized linear growth over
  7907. # repeated appends, instead of the typical quadratic growth present in naive
  7908. # implementations.
  7909. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  7910. eval 'as_fn_append ()
  7911. {
  7912. eval $1+=\$2
  7913. }'
  7914. else
  7915. as_fn_append ()
  7916. {
  7917. eval $1=\$$1\$2
  7918. }
  7919. fi # as_fn_append
  7920. # as_fn_arith ARG...
  7921. # ------------------
  7922. # Perform arithmetic evaluation on the ARGs, and store the result in the
  7923. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  7924. # must be portable across $(()) and expr.
  7925. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  7926. eval 'as_fn_arith ()
  7927. {
  7928. as_val=$(( $* ))
  7929. }'
  7930. else
  7931. as_fn_arith ()
  7932. {
  7933. as_val=`expr "$@" || test $? -eq 1`
  7934. }
  7935. fi # as_fn_arith
  7936. if expr a : '\(a\)' >/dev/null 2>&1 &&
  7937. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  7938. as_expr=expr
  7939. else
  7940. as_expr=false
  7941. fi
  7942. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  7943. as_basename=basename
  7944. else
  7945. as_basename=false
  7946. fi
  7947. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  7948. as_dirname=dirname
  7949. else
  7950. as_dirname=false
  7951. fi
  7952. as_me=`$as_basename -- "$0" ||
  7953. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  7954. X"$0" : 'X\(//\)$' \| \
  7955. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  7956. $as_echo X/"$0" |
  7957. sed '/^.*\/\([^/][^/]*\)\/*$/{
  7958. s//\1/
  7959. q
  7960. }
  7961. /^X\/\(\/\/\)$/{
  7962. s//\1/
  7963. q
  7964. }
  7965. /^X\/\(\/\).*/{
  7966. s//\1/
  7967. q
  7968. }
  7969. s/.*/./; q'`
  7970. # Avoid depending upon Character Ranges.
  7971. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  7972. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  7973. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  7974. as_cr_digits='0123456789'
  7975. as_cr_alnum=$as_cr_Letters$as_cr_digits
  7976. ECHO_C= ECHO_N= ECHO_T=
  7977. case `echo -n x` in #(((((
  7978. -n*)
  7979. case `echo 'xy\c'` in
  7980. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  7981. xy) ECHO_C='\c';;
  7982. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  7983. ECHO_T=' ';;
  7984. esac;;
  7985. *)
  7986. ECHO_N='-n';;
  7987. esac
  7988. rm -f conf$$ conf$$.exe conf$$.file
  7989. if test -d conf$$.dir; then
  7990. rm -f conf$$.dir/conf$$.file
  7991. else
  7992. rm -f conf$$.dir
  7993. mkdir conf$$.dir 2>/dev/null
  7994. fi
  7995. if (echo >conf$$.file) 2>/dev/null; then
  7996. if ln -s conf$$.file conf$$ 2>/dev/null; then
  7997. as_ln_s='ln -s'
  7998. # ... but there are two gotchas:
  7999. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  8000. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  8001. # In both cases, we have to default to `cp -pR'.
  8002. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  8003. as_ln_s='cp -pR'
  8004. elif ln conf$$.file conf$$ 2>/dev/null; then
  8005. as_ln_s=ln
  8006. else
  8007. as_ln_s='cp -pR'
  8008. fi
  8009. else
  8010. as_ln_s='cp -pR'
  8011. fi
  8012. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  8013. rmdir conf$$.dir 2>/dev/null
  8014. # as_fn_mkdir_p
  8015. # -------------
  8016. # Create "$as_dir" as a directory, including parents if necessary.
  8017. as_fn_mkdir_p ()
  8018. {
  8019. case $as_dir in #(
  8020. -*) as_dir=./$as_dir;;
  8021. esac
  8022. test -d "$as_dir" || eval $as_mkdir_p || {
  8023. as_dirs=
  8024. while :; do
  8025. case $as_dir in #(
  8026. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  8027. *) as_qdir=$as_dir;;
  8028. esac
  8029. as_dirs="'$as_qdir' $as_dirs"
  8030. as_dir=`$as_dirname -- "$as_dir" ||
  8031. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8032. X"$as_dir" : 'X\(//\)[^/]' \| \
  8033. X"$as_dir" : 'X\(//\)$' \| \
  8034. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  8035. $as_echo X"$as_dir" |
  8036. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8037. s//\1/
  8038. q
  8039. }
  8040. /^X\(\/\/\)[^/].*/{
  8041. s//\1/
  8042. q
  8043. }
  8044. /^X\(\/\/\)$/{
  8045. s//\1/
  8046. q
  8047. }
  8048. /^X\(\/\).*/{
  8049. s//\1/
  8050. q
  8051. }
  8052. s/.*/./; q'`
  8053. test -d "$as_dir" && break
  8054. done
  8055. test -z "$as_dirs" || eval "mkdir $as_dirs"
  8056. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  8057. } # as_fn_mkdir_p
  8058. if mkdir -p . 2>/dev/null; then
  8059. as_mkdir_p='mkdir -p "$as_dir"'
  8060. else
  8061. test -d ./-p && rmdir ./-p
  8062. as_mkdir_p=false
  8063. fi
  8064. # as_fn_executable_p FILE
  8065. # -----------------------
  8066. # Test if FILE is an executable regular file.
  8067. as_fn_executable_p ()
  8068. {
  8069. test -f "$1" && test -x "$1"
  8070. } # as_fn_executable_p
  8071. as_test_x='test -x'
  8072. as_executable_p=as_fn_executable_p
  8073. # Sed expression to map a string onto a valid CPP name.
  8074. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8075. # Sed expression to map a string onto a valid variable name.
  8076. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8077. exec 6>&1
  8078. ## ----------------------------------- ##
  8079. ## Main body of $CONFIG_STATUS script. ##
  8080. ## ----------------------------------- ##
  8081. _ASEOF
  8082. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  8083. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8084. # Save the log message, to keep $0 and so on meaningful, and to
  8085. # report actual input values of CONFIG_FILES etc. instead of their
  8086. # values after options handling.
  8087. ac_log="
  8088. This file was extended by $as_me, which was
  8089. generated by GNU Autoconf 2.69. Invocation command line was
  8090. CONFIG_FILES = $CONFIG_FILES
  8091. CONFIG_HEADERS = $CONFIG_HEADERS
  8092. CONFIG_LINKS = $CONFIG_LINKS
  8093. CONFIG_COMMANDS = $CONFIG_COMMANDS
  8094. $ $0 $@
  8095. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  8096. "
  8097. _ACEOF
  8098. case $ac_config_files in *"
  8099. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  8100. esac
  8101. case $ac_config_headers in *"
  8102. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  8103. esac
  8104. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8105. # Files that build/config.status was made for.
  8106. config_files="$ac_config_files"
  8107. config_headers="$ac_config_headers"
  8108. _ACEOF
  8109. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8110. ac_cs_usage="\
  8111. \`$as_me' instantiates files and other configuration actions
  8112. from templates according to the current configuration. Unless the files
  8113. and actions are specified as TAGs, all are instantiated by default.
  8114. Usage: $0 [OPTION]... [TAG]...
  8115. -h, --help print this help, then exit
  8116. -V, --version print version number and configuration settings, then exit
  8117. --config print configuration, then exit
  8118. -q, --quiet, --silent
  8119. do not print progress messages
  8120. -d, --debug don't remove temporary files
  8121. --recheck update $as_me by reconfiguring in the same conditions
  8122. --file=FILE[:TEMPLATE]
  8123. instantiate the configuration file FILE
  8124. --header=FILE[:TEMPLATE]
  8125. instantiate the configuration header FILE
  8126. Configuration files:
  8127. $config_files
  8128. Configuration headers:
  8129. $config_headers
  8130. Report bugs to the package provider."
  8131. _ACEOF
  8132. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8133. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  8134. ac_cs_version="\\
  8135. build/config.status
  8136. configured by $0, generated by GNU Autoconf 2.69,
  8137. with options \\"\$ac_cs_config\\"
  8138. Copyright (C) 2012 Free Software Foundation, Inc.
  8139. This build/config.status script is free software; the Free Software Foundation
  8140. gives unlimited permission to copy, distribute and modify it."
  8141. ac_pwd='$ac_pwd'
  8142. srcdir='$srcdir'
  8143. AWK='$AWK'
  8144. test -n "\$AWK" || AWK=awk
  8145. _ACEOF
  8146. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8147. # The default lists apply if the user does not specify any file.
  8148. ac_need_defaults=:
  8149. while test $# != 0
  8150. do
  8151. case $1 in
  8152. --*=?*)
  8153. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8154. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  8155. ac_shift=:
  8156. ;;
  8157. --*=)
  8158. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8159. ac_optarg=
  8160. ac_shift=:
  8161. ;;
  8162. *)
  8163. ac_option=$1
  8164. ac_optarg=$2
  8165. ac_shift=shift
  8166. ;;
  8167. esac
  8168. case $ac_option in
  8169. # Handling of the options.
  8170. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8171. ac_cs_recheck=: ;;
  8172. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  8173. $as_echo "$ac_cs_version"; exit ;;
  8174. --config | --confi | --conf | --con | --co | --c )
  8175. $as_echo "$ac_cs_config"; exit ;;
  8176. --debug | --debu | --deb | --de | --d | -d )
  8177. debug=: ;;
  8178. --file | --fil | --fi | --f )
  8179. $ac_shift
  8180. case $ac_optarg in
  8181. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8182. '') as_fn_error $? "missing file argument" ;;
  8183. esac
  8184. as_fn_append CONFIG_FILES " '$ac_optarg'"
  8185. ac_need_defaults=false;;
  8186. --header | --heade | --head | --hea )
  8187. $ac_shift
  8188. case $ac_optarg in
  8189. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8190. esac
  8191. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  8192. ac_need_defaults=false;;
  8193. --he | --h)
  8194. # Conflict between --help and --header
  8195. as_fn_error $? "ambiguous option: \`$1'
  8196. Try \`$0 --help' for more information.";;
  8197. --help | --hel | -h )
  8198. $as_echo "$ac_cs_usage"; exit ;;
  8199. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8200. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  8201. ac_cs_silent=: ;;
  8202. # This is an error.
  8203. -*) as_fn_error $? "unrecognized option: \`$1'
  8204. Try \`$0 --help' for more information." ;;
  8205. *) as_fn_append ac_config_targets " $1"
  8206. ac_need_defaults=false ;;
  8207. esac
  8208. shift
  8209. done
  8210. ac_configure_extra_args=
  8211. if $ac_cs_silent; then
  8212. exec 6>/dev/null
  8213. ac_configure_extra_args="$ac_configure_extra_args --silent"
  8214. fi
  8215. _ACEOF
  8216. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8217. if \$ac_cs_recheck; then
  8218. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8219. shift
  8220. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  8221. CONFIG_SHELL='$SHELL'
  8222. export CONFIG_SHELL
  8223. exec "\$@"
  8224. fi
  8225. _ACEOF
  8226. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8227. exec 5>>build/config.log
  8228. {
  8229. echo
  8230. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8231. ## Running $as_me. ##
  8232. _ASBOX
  8233. $as_echo "$ac_log"
  8234. } >&5
  8235. _ACEOF
  8236. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8237. _ACEOF
  8238. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8239. # Handling of arguments.
  8240. for ac_config_target in $ac_config_targets
  8241. do
  8242. case $ac_config_target in
  8243. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  8244. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8245. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  8246. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  8247. "src/buildinfo.h") CONFIG_FILES="$CONFIG_FILES src/buildinfo.h" ;;
  8248. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  8249. esac
  8250. done
  8251. # If the user did not use the arguments to specify the items to instantiate,
  8252. # then the envvar interface is used. Set only those that are not.
  8253. # We use the long form for the default assignment because of an extremely
  8254. # bizarre bug on SunOS 4.1.3.
  8255. if $ac_need_defaults; then
  8256. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  8257. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  8258. fi
  8259. # Have a temporary directory for convenience. Make it in the build tree
  8260. # simply because there is no reason against having it here, and in addition,
  8261. # creating and moving files from /tmp can sometimes cause problems.
  8262. # Hook for its removal unless debugging.
  8263. # Note that there is a small window in which the directory will not be cleaned:
  8264. # after its creation but before its name has been assigned to `$tmp'.
  8265. $debug ||
  8266. {
  8267. tmp= ac_tmp=
  8268. trap 'exit_status=$?
  8269. : "${ac_tmp:=$tmp}"
  8270. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  8271. ' 0
  8272. trap 'as_fn_exit 1' 1 2 13 15
  8273. }
  8274. # Create a (secure) tmp directory for tmp files.
  8275. {
  8276. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  8277. test -d "$tmp"
  8278. } ||
  8279. {
  8280. tmp=./conf$$-$RANDOM
  8281. (umask 077 && mkdir "$tmp")
  8282. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  8283. ac_tmp=$tmp
  8284. # Set up the scripts for CONFIG_FILES section.
  8285. # No need to generate them if there are no CONFIG_FILES.
  8286. # This happens for instance with `./build/config.status config.h'.
  8287. if test -n "$CONFIG_FILES"; then
  8288. ac_cr=`echo X | tr X '\015'`
  8289. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  8290. # But we know of no other shell where ac_cr would be empty at this
  8291. # point, so we can use a bashism as a fallback.
  8292. if test "x$ac_cr" = x; then
  8293. eval ac_cr=\$\'\\r\'
  8294. fi
  8295. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  8296. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  8297. ac_cs_awk_cr='\\r'
  8298. else
  8299. ac_cs_awk_cr=$ac_cr
  8300. fi
  8301. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  8302. _ACEOF
  8303. {
  8304. echo "cat >conf$$subs.awk <<_ACEOF" &&
  8305. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  8306. echo "_ACEOF"
  8307. } >conf$$subs.sh ||
  8308. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8309. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  8310. ac_delim='%!_!# '
  8311. for ac_last_try in false false false false false :; do
  8312. . ./conf$$subs.sh ||
  8313. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8314. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  8315. if test $ac_delim_n = $ac_delim_num; then
  8316. break
  8317. elif $ac_last_try; then
  8318. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8319. else
  8320. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8321. fi
  8322. done
  8323. rm -f conf$$subs.sh
  8324. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8325. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  8326. _ACEOF
  8327. sed -n '
  8328. h
  8329. s/^/S["/; s/!.*/"]=/
  8330. p
  8331. g
  8332. s/^[^!]*!//
  8333. :repl
  8334. t repl
  8335. s/'"$ac_delim"'$//
  8336. t delim
  8337. :nl
  8338. h
  8339. s/\(.\{148\}\)..*/\1/
  8340. t more1
  8341. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  8342. p
  8343. n
  8344. b repl
  8345. :more1
  8346. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8347. p
  8348. g
  8349. s/.\{148\}//
  8350. t nl
  8351. :delim
  8352. h
  8353. s/\(.\{148\}\)..*/\1/
  8354. t more2
  8355. s/["\\]/\\&/g; s/^/"/; s/$/"/
  8356. p
  8357. b
  8358. :more2
  8359. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8360. p
  8361. g
  8362. s/.\{148\}//
  8363. t delim
  8364. ' <conf$$subs.awk | sed '
  8365. /^[^""]/{
  8366. N
  8367. s/\n//
  8368. }
  8369. ' >>$CONFIG_STATUS || ac_write_fail=1
  8370. rm -f conf$$subs.awk
  8371. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8372. _ACAWK
  8373. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  8374. for (key in S) S_is_set[key] = 1
  8375. FS = ""
  8376. }
  8377. {
  8378. line = $ 0
  8379. nfields = split(line, field, "@")
  8380. substed = 0
  8381. len = length(field[1])
  8382. for (i = 2; i < nfields; i++) {
  8383. key = field[i]
  8384. keylen = length(key)
  8385. if (S_is_set[key]) {
  8386. value = S[key]
  8387. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  8388. len += length(value) + length(field[++i])
  8389. substed = 1
  8390. } else
  8391. len += 1 + keylen
  8392. }
  8393. print line
  8394. }
  8395. _ACAWK
  8396. _ACEOF
  8397. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8398. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  8399. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  8400. else
  8401. cat
  8402. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  8403. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  8404. _ACEOF
  8405. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  8406. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  8407. # trailing colons and then remove the whole line if VPATH becomes empty
  8408. # (actually we leave an empty line to preserve line numbers).
  8409. if test "x$srcdir" = x.; then
  8410. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  8411. h
  8412. s///
  8413. s/^/:/
  8414. s/[ ]*$/:/
  8415. s/:\$(srcdir):/:/g
  8416. s/:\${srcdir}:/:/g
  8417. s/:@srcdir@:/:/g
  8418. s/^:*//
  8419. s/:*$//
  8420. x
  8421. s/\(=[ ]*\).*/\1/
  8422. G
  8423. s/\n//
  8424. s/^[^=]*=[ ]*$//
  8425. }'
  8426. fi
  8427. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8428. fi # test -n "$CONFIG_FILES"
  8429. # Set up the scripts for CONFIG_HEADERS section.
  8430. # No need to generate them if there are no CONFIG_HEADERS.
  8431. # This happens for instance with `./build/config.status Makefile'.
  8432. if test -n "$CONFIG_HEADERS"; then
  8433. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  8434. BEGIN {
  8435. _ACEOF
  8436. # Transform build/confdefs.h into an awk script `defines.awk', embedded as
  8437. # here-document in build/config.status, that substitutes the proper values into
  8438. # config.h.in to produce config.h.
  8439. # Create a delimiter string that does not exist in build/confdefs.h, to ease
  8440. # handling of long lines.
  8441. ac_delim='%!_!# '
  8442. for ac_last_try in false false :; do
  8443. ac_tt=`sed -n "/$ac_delim/p" build/confdefs.h`
  8444. if test -z "$ac_tt"; then
  8445. break
  8446. elif $ac_last_try; then
  8447. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  8448. else
  8449. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8450. fi
  8451. done
  8452. # For the awk script, D is an array of macro values keyed by name,
  8453. # likewise P contains macro parameters if any. Preserve backslash
  8454. # newline sequences.
  8455. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  8456. sed -n '
  8457. s/.\{148\}/&'"$ac_delim"'/g
  8458. t rset
  8459. :rset
  8460. s/^[ ]*#[ ]*define[ ][ ]*/ /
  8461. t def
  8462. d
  8463. :def
  8464. s/\\$//
  8465. t bsnl
  8466. s/["\\]/\\&/g
  8467. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8468. D["\1"]=" \3"/p
  8469. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  8470. d
  8471. :bsnl
  8472. s/["\\]/\\&/g
  8473. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8474. D["\1"]=" \3\\\\\\n"\\/p
  8475. t cont
  8476. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  8477. t cont
  8478. d
  8479. :cont
  8480. n
  8481. s/.\{148\}/&'"$ac_delim"'/g
  8482. t clear
  8483. :clear
  8484. s/\\$//
  8485. t bsnlc
  8486. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  8487. d
  8488. :bsnlc
  8489. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  8490. b cont
  8491. ' <build/confdefs.h | sed '
  8492. s/'"$ac_delim"'/"\\\
  8493. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  8494. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8495. for (key in D) D_is_set[key] = 1
  8496. FS = ""
  8497. }
  8498. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  8499. line = \$ 0
  8500. split(line, arg, " ")
  8501. if (arg[1] == "#") {
  8502. defundef = arg[2]
  8503. mac1 = arg[3]
  8504. } else {
  8505. defundef = substr(arg[1], 2)
  8506. mac1 = arg[2]
  8507. }
  8508. split(mac1, mac2, "(") #)
  8509. macro = mac2[1]
  8510. prefix = substr(line, 1, index(line, defundef) - 1)
  8511. if (D_is_set[macro]) {
  8512. # Preserve the white space surrounding the "#".
  8513. print prefix "define", macro P[macro] D[macro]
  8514. next
  8515. } else {
  8516. # Replace #undef with comments. This is necessary, for example,
  8517. # in the case of _POSIX_SOURCE, which is predefined and required
  8518. # on some systems where configure will not decide to define it.
  8519. if (defundef == "undef") {
  8520. print "/*", prefix defundef, macro, "*/"
  8521. next
  8522. }
  8523. }
  8524. }
  8525. { print }
  8526. _ACAWK
  8527. _ACEOF
  8528. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8529. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  8530. fi # test -n "$CONFIG_HEADERS"
  8531. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  8532. shift
  8533. for ac_tag
  8534. do
  8535. case $ac_tag in
  8536. :[FHLC]) ac_mode=$ac_tag; continue;;
  8537. esac
  8538. case $ac_mode$ac_tag in
  8539. :[FHL]*:*);;
  8540. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  8541. :[FH]-) ac_tag=-:-;;
  8542. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  8543. esac
  8544. ac_save_IFS=$IFS
  8545. IFS=:
  8546. set x $ac_tag
  8547. IFS=$ac_save_IFS
  8548. shift
  8549. ac_file=$1
  8550. shift
  8551. case $ac_mode in
  8552. :L) ac_source=$1;;
  8553. :[FH])
  8554. ac_file_inputs=
  8555. for ac_f
  8556. do
  8557. case $ac_f in
  8558. -) ac_f="$ac_tmp/stdin";;
  8559. *) # Look for the file first in the build tree, then in the source tree
  8560. # (if the path is not absolute). The absolute path cannot be DOS-style,
  8561. # because $ac_f cannot contain `:'.
  8562. test -f "$ac_f" ||
  8563. case $ac_f in
  8564. [\\/$]*) false;;
  8565. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  8566. esac ||
  8567. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  8568. esac
  8569. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  8570. as_fn_append ac_file_inputs " '$ac_f'"
  8571. done
  8572. # Let's still pretend it is `configure' which instantiates (i.e., don't
  8573. # use $as_me), people would be surprised to read:
  8574. # /* config.h. Generated by build/config.status. */
  8575. configure_input='Generated from '`
  8576. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  8577. `' by configure.'
  8578. if test x"$ac_file" != x-; then
  8579. configure_input="$ac_file. $configure_input"
  8580. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  8581. $as_echo "$as_me: creating $ac_file" >&6;}
  8582. fi
  8583. # Neutralize special characters interpreted by sed in replacement strings.
  8584. case $configure_input in #(
  8585. *\&* | *\|* | *\\* )
  8586. ac_sed_conf_input=`$as_echo "$configure_input" |
  8587. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  8588. *) ac_sed_conf_input=$configure_input;;
  8589. esac
  8590. case $ac_tag in
  8591. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  8592. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  8593. esac
  8594. ;;
  8595. esac
  8596. ac_dir=`$as_dirname -- "$ac_file" ||
  8597. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8598. X"$ac_file" : 'X\(//\)[^/]' \| \
  8599. X"$ac_file" : 'X\(//\)$' \| \
  8600. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  8601. $as_echo X"$ac_file" |
  8602. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8603. s//\1/
  8604. q
  8605. }
  8606. /^X\(\/\/\)[^/].*/{
  8607. s//\1/
  8608. q
  8609. }
  8610. /^X\(\/\/\)$/{
  8611. s//\1/
  8612. q
  8613. }
  8614. /^X\(\/\).*/{
  8615. s//\1/
  8616. q
  8617. }
  8618. s/.*/./; q'`
  8619. as_dir="$ac_dir"; as_fn_mkdir_p
  8620. ac_builddir=.
  8621. case "$ac_dir" in
  8622. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8623. *)
  8624. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  8625. # A ".." for each directory in $ac_dir_suffix.
  8626. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  8627. case $ac_top_builddir_sub in
  8628. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8629. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  8630. esac ;;
  8631. esac
  8632. ac_abs_top_builddir=$ac_pwd
  8633. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  8634. # for backward compatibility:
  8635. ac_top_builddir=$ac_top_build_prefix
  8636. case $srcdir in
  8637. .) # We are building in place.
  8638. ac_srcdir=.
  8639. ac_top_srcdir=$ac_top_builddir_sub
  8640. ac_abs_top_srcdir=$ac_pwd ;;
  8641. [\\/]* | ?:[\\/]* ) # Absolute name.
  8642. ac_srcdir=$srcdir$ac_dir_suffix;
  8643. ac_top_srcdir=$srcdir
  8644. ac_abs_top_srcdir=$srcdir ;;
  8645. *) # Relative name.
  8646. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  8647. ac_top_srcdir=$ac_top_build_prefix$srcdir
  8648. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  8649. esac
  8650. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  8651. case $ac_mode in
  8652. :F)
  8653. #
  8654. # CONFIG_FILE
  8655. #
  8656. _ACEOF
  8657. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8658. # If the template does not know about datarootdir, expand it.
  8659. # FIXME: This hack should be removed a few years after 2.60.
  8660. ac_datarootdir_hack=; ac_datarootdir_seen=
  8661. ac_sed_dataroot='
  8662. /datarootdir/ {
  8663. p
  8664. q
  8665. }
  8666. /@datadir@/p
  8667. /@docdir@/p
  8668. /@infodir@/p
  8669. /@localedir@/p
  8670. /@mandir@/p'
  8671. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  8672. *datarootdir*) ac_datarootdir_seen=yes;;
  8673. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  8674. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  8675. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  8676. _ACEOF
  8677. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8678. ac_datarootdir_hack='
  8679. s&@datadir@&$datadir&g
  8680. s&@docdir@&$docdir&g
  8681. s&@infodir@&$infodir&g
  8682. s&@localedir@&$localedir&g
  8683. s&@mandir@&$mandir&g
  8684. s&\\\${datarootdir}&$datarootdir&g' ;;
  8685. esac
  8686. _ACEOF
  8687. # Neutralize VPATH when `$srcdir' = `.'.
  8688. # Shell code in configure.ac might set extrasub.
  8689. # FIXME: do we really want to maintain this feature?
  8690. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8691. ac_sed_extra="$ac_vpsub
  8692. $extrasub
  8693. _ACEOF
  8694. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8695. :t
  8696. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  8697. s|@configure_input@|$ac_sed_conf_input|;t t
  8698. s&@top_builddir@&$ac_top_builddir_sub&;t t
  8699. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  8700. s&@srcdir@&$ac_srcdir&;t t
  8701. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  8702. s&@top_srcdir@&$ac_top_srcdir&;t t
  8703. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  8704. s&@builddir@&$ac_builddir&;t t
  8705. s&@abs_builddir@&$ac_abs_builddir&;t t
  8706. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  8707. $ac_datarootdir_hack
  8708. "
  8709. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  8710. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8711. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  8712. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  8713. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  8714. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  8715. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8716. which seems to be undefined. Please make sure it is defined" >&5
  8717. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8718. which seems to be undefined. Please make sure it is defined" >&2;}
  8719. rm -f "$ac_tmp/stdin"
  8720. case $ac_file in
  8721. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  8722. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  8723. esac \
  8724. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8725. ;;
  8726. :H)
  8727. #
  8728. # CONFIG_HEADER
  8729. #
  8730. if test x"$ac_file" != x-; then
  8731. {
  8732. $as_echo "/* $configure_input */" \
  8733. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  8734. } >"$ac_tmp/config.h" \
  8735. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8736. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  8737. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  8738. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  8739. else
  8740. rm -f "$ac_file"
  8741. mv "$ac_tmp/config.h" "$ac_file" \
  8742. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8743. fi
  8744. else
  8745. $as_echo "/* $configure_input */" \
  8746. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  8747. || as_fn_error $? "could not create -" "$LINENO" 5
  8748. fi
  8749. ;;
  8750. esac
  8751. done # for ac_tag
  8752. as_fn_exit 0
  8753. _ACEOF
  8754. ac_clean_files=$ac_clean_files_save
  8755. test $ac_write_fail = 0 ||
  8756. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  8757. # configure is writing to build/config.log, and then calls build/config.status.
  8758. # build/config.status does its own redirection, appending to build/config.log.
  8759. # Unfortunately, on DOS this fails, as build/config.log is still kept open
  8760. # by configure, so build/config.status won't be able to write to it; its
  8761. # output is simply discarded. So we exec the FD to /dev/null,
  8762. # effectively closing build/config.log, so it can be properly (re)opened and
  8763. # appended to by build/config.status. When coming back to configure, we
  8764. # need to make the FD available again.
  8765. if test "$no_create" != yes; then
  8766. ac_cs_success=:
  8767. ac_config_status_args=
  8768. test "$silent" = yes &&
  8769. ac_config_status_args="$ac_config_status_args --quiet"
  8770. exec 5>/dev/null
  8771. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  8772. exec 5>>build/config.log
  8773. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  8774. # would make configure fail if this is the last instruction.
  8775. $ac_cs_success || as_fn_exit 1
  8776. fi
  8777. #
  8778. # CONFIG_SUBDIRS section.
  8779. #
  8780. if test "$no_recursion" != yes; then
  8781. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  8782. # so they do not pile up.
  8783. ac_sub_configure_args=
  8784. ac_prev=
  8785. eval "set x $ac_configure_args"
  8786. shift
  8787. for ac_arg
  8788. do
  8789. if test -n "$ac_prev"; then
  8790. ac_prev=
  8791. continue
  8792. fi
  8793. case $ac_arg in
  8794. -cache-file | --cache-file | --cache-fil | --cache-fi \
  8795. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  8796. ac_prev=cache_file ;;
  8797. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  8798. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  8799. | --c=*)
  8800. ;;
  8801. --config-cache | -C)
  8802. ;;
  8803. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  8804. ac_prev=srcdir ;;
  8805. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  8806. ;;
  8807. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  8808. ac_prev=prefix ;;
  8809. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  8810. ;;
  8811. --disable-option-checking)
  8812. ;;
  8813. *)
  8814. case $ac_arg in
  8815. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8816. esac
  8817. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  8818. esac
  8819. done
  8820. # Always prepend --prefix to ensure using the same prefix
  8821. # in subdir configurations.
  8822. ac_arg="--prefix=$prefix"
  8823. case $ac_arg in
  8824. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8825. esac
  8826. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  8827. # Pass --silent
  8828. if test "$silent" = yes; then
  8829. ac_sub_configure_args="--silent $ac_sub_configure_args"
  8830. fi
  8831. # Always prepend --disable-option-checking to silence warnings, since
  8832. # different subdirs can have different --enable and --with options.
  8833. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  8834. ac_popdir=`pwd`
  8835. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  8836. # Do not complain, so a configure script can configure whichever
  8837. # parts of a large source tree are present.
  8838. test -d "$srcdir/$ac_dir" || continue
  8839. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  8840. $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  8841. $as_echo "$ac_msg" >&6
  8842. as_dir="$ac_dir"; as_fn_mkdir_p
  8843. ac_builddir=.
  8844. case "$ac_dir" in
  8845. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8846. *)
  8847. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  8848. # A ".." for each directory in $ac_dir_suffix.
  8849. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  8850. case $ac_top_builddir_sub in
  8851. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8852. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  8853. esac ;;
  8854. esac
  8855. ac_abs_top_builddir=$ac_pwd
  8856. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  8857. # for backward compatibility:
  8858. ac_top_builddir=$ac_top_build_prefix
  8859. case $srcdir in
  8860. .) # We are building in place.
  8861. ac_srcdir=.
  8862. ac_top_srcdir=$ac_top_builddir_sub
  8863. ac_abs_top_srcdir=$ac_pwd ;;
  8864. [\\/]* | ?:[\\/]* ) # Absolute name.
  8865. ac_srcdir=$srcdir$ac_dir_suffix;
  8866. ac_top_srcdir=$srcdir
  8867. ac_abs_top_srcdir=$srcdir ;;
  8868. *) # Relative name.
  8869. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  8870. ac_top_srcdir=$ac_top_build_prefix$srcdir
  8871. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  8872. esac
  8873. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  8874. cd "$ac_dir"
  8875. # Check for guested configure; otherwise get Cygnus style configure.
  8876. if test -f "$ac_srcdir/configure.gnu"; then
  8877. ac_sub_configure=$ac_srcdir/configure.gnu
  8878. elif test -f "$ac_srcdir/configure"; then
  8879. ac_sub_configure=$ac_srcdir/configure
  8880. elif test -f "$ac_srcdir/configure.in"; then
  8881. # This should be Cygnus configure.
  8882. ac_sub_configure=$ac_aux_dir/configure
  8883. else
  8884. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  8885. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  8886. ac_sub_configure=
  8887. fi
  8888. # The recursion is here.
  8889. if test -n "$ac_sub_configure"; then
  8890. # Make the cache file name correct relative to the subdirectory.
  8891. case $cache_file in
  8892. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  8893. *) # Relative name.
  8894. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  8895. esac
  8896. { $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
  8897. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  8898. # The eval makes quoting arguments work.
  8899. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  8900. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  8901. as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  8902. fi
  8903. cd "$ac_popdir"
  8904. done
  8905. fi
  8906. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  8907. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  8908. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  8909. fi
  8910. CXX="$CXX" CXXFLAGS="$CXXFLAGS" TCL_INCLUDES="$TCL_INCLUDES" SSL_INCLUDES="$SSL_INCLUDES" \
  8911. SED="$SED" src/generate_defs.sh || exit 1