configure 290 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538
  1. #! /bin/sh
  2. # From configure.ac Revision.
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.69.
  5. #
  6. #
  7. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. #
  13. # Copyright (c) Bryan Drewery
  14. ## -------------------- ##
  15. ## M4sh Initialization. ##
  16. ## -------------------- ##
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else
  27. case `(set -o) 2>/dev/null` in #(
  28. *posix*) :
  29. set -o posix ;; #(
  30. *) :
  31. ;;
  32. esac
  33. fi
  34. as_nl='
  35. '
  36. export as_nl
  37. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  38. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  41. # Prefer a ksh shell builtin over an external printf program on Solaris,
  42. # but without wasting forks for bash or zsh.
  43. if test -z "$BASH_VERSION$ZSH_VERSION" \
  44. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='print -r --'
  46. as_echo_n='print -rn --'
  47. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  48. as_echo='printf %s\n'
  49. as_echo_n='printf %s'
  50. else
  51. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  52. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  53. as_echo_n='/usr/ucb/echo -n'
  54. else
  55. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  56. as_echo_n_body='eval
  57. arg=$1;
  58. case $arg in #(
  59. *"$as_nl"*)
  60. expr "X$arg" : "X\\(.*\\)$as_nl";
  61. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  62. esac;
  63. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  64. '
  65. export as_echo_n_body
  66. as_echo_n='sh -c $as_echo_n_body as_echo'
  67. fi
  68. export as_echo_body
  69. as_echo='sh -c $as_echo_body as_echo'
  70. fi
  71. # The user is always right.
  72. if test "${PATH_SEPARATOR+set}" != set; then
  73. PATH_SEPARATOR=:
  74. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  75. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  76. PATH_SEPARATOR=';'
  77. }
  78. fi
  79. # IFS
  80. # We need space, tab and new line, in precisely that order. Quoting is
  81. # there to prevent editors from complaining about space-tab.
  82. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  83. # splitting by setting IFS to empty value.)
  84. IFS=" "" $as_nl"
  85. # Find who we are. Look in the path if we contain no directory separator.
  86. as_myself=
  87. case $0 in #((
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. exit 1
  107. fi
  108. # Unset variables that we do not need and which cause bugs (e.g. in
  109. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  110. # suppresses any "Segmentation fault" message there. '((' could
  111. # trigger a bug in pdksh 5.2.14.
  112. for as_var in BASH_ENV ENV MAIL MAILPATH
  113. do eval test x\${$as_var+set} = xset \
  114. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  115. done
  116. PS1='$ '
  117. PS2='> '
  118. PS4='+ '
  119. # NLS nuisances.
  120. LC_ALL=C
  121. export LC_ALL
  122. LANGUAGE=C
  123. export LANGUAGE
  124. # CDPATH.
  125. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  126. # Use a proper internal environment variable to ensure we don't fall
  127. # into an infinite loop, continuously re-executing ourselves.
  128. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  129. _as_can_reexec=no; export _as_can_reexec;
  130. # We cannot yet assume a decent shell, so we have to provide a
  131. # neutralization value for shells without unset; and this also
  132. # works around shells that cannot unset nonexistent variables.
  133. # Preserve -v and -x to the replacement shell.
  134. BASH_ENV=/dev/null
  135. ENV=/dev/null
  136. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  137. case $- in # ((((
  138. *v*x* | *x*v* ) as_opts=-vx ;;
  139. *v* ) as_opts=-v ;;
  140. *x* ) as_opts=-x ;;
  141. * ) as_opts= ;;
  142. esac
  143. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  144. # Admittedly, this is quite paranoid, since all the known shells bail
  145. # out after a failed `exec'.
  146. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  147. as_fn_exit 255
  148. fi
  149. # We don't want this to propagate to other subprocesses.
  150. { _as_can_reexec=; unset _as_can_reexec;}
  151. if test "x$CONFIG_SHELL" = x; then
  152. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  153. emulate sh
  154. NULLCMD=:
  155. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  156. # is contrary to our usage. Disable this feature.
  157. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  158. setopt NO_GLOB_SUBST
  159. else
  160. case \`(set -o) 2>/dev/null\` in #(
  161. *posix*) :
  162. set -o posix ;; #(
  163. *) :
  164. ;;
  165. esac
  166. fi
  167. "
  168. as_required="as_fn_return () { (exit \$1); }
  169. as_fn_success () { as_fn_return 0; }
  170. as_fn_failure () { as_fn_return 1; }
  171. as_fn_ret_success () { return 0; }
  172. as_fn_ret_failure () { return 1; }
  173. exitcode=0
  174. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  175. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  176. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  177. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  178. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  179. else
  180. exitcode=1; echo positional parameters were not saved.
  181. fi
  182. test x\$exitcode = x0 || exit 1
  183. test -x / || exit 1"
  184. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  185. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  186. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  187. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  188. test \$(( 1 + 1 )) = 2 || exit 1"
  189. if (eval "$as_required") 2>/dev/null; then :
  190. as_have_required=yes
  191. else
  192. as_have_required=no
  193. fi
  194. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  195. else
  196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  197. as_found=false
  198. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  199. do
  200. IFS=$as_save_IFS
  201. test -z "$as_dir" && as_dir=.
  202. as_found=:
  203. case $as_dir in #(
  204. /*)
  205. for as_base in sh bash ksh sh5; do
  206. # Try only shells that exist, to save several forks.
  207. as_shell=$as_dir/$as_base
  208. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  209. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  210. CONFIG_SHELL=$as_shell as_have_required=yes
  211. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  212. break 2
  213. fi
  214. fi
  215. done;;
  216. esac
  217. as_found=false
  218. done
  219. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  220. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  221. CONFIG_SHELL=$SHELL as_have_required=yes
  222. fi; }
  223. IFS=$as_save_IFS
  224. if test "x$CONFIG_SHELL" != x; then :
  225. export CONFIG_SHELL
  226. # We cannot yet assume a decent shell, so we have to provide a
  227. # neutralization value for shells without unset; and this also
  228. # works around shells that cannot unset nonexistent variables.
  229. # Preserve -v and -x to the replacement shell.
  230. BASH_ENV=/dev/null
  231. ENV=/dev/null
  232. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  233. case $- in # ((((
  234. *v*x* | *x*v* ) as_opts=-vx ;;
  235. *v* ) as_opts=-v ;;
  236. *x* ) as_opts=-x ;;
  237. * ) as_opts= ;;
  238. esac
  239. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  240. # Admittedly, this is quite paranoid, since all the known shells bail
  241. # out after a failed `exec'.
  242. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  243. exit 255
  244. fi
  245. if test x$as_have_required = xno; then :
  246. $as_echo "$0: This script requires a shell more modern than all"
  247. $as_echo "$0: the shells that I found on your system."
  248. if test x${ZSH_VERSION+set} = xset ; then
  249. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  250. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  251. else
  252. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  253. $0: including any error possibly output before this
  254. $0: message. Then install a modern shell, or manually run
  255. $0: the script under such a shell if you do have one."
  256. fi
  257. exit 1
  258. fi
  259. fi
  260. fi
  261. SHELL=${CONFIG_SHELL-/bin/sh}
  262. export SHELL
  263. # Unset more variables known to interfere with behavior of common tools.
  264. CLICOLOR_FORCE= GREP_OPTIONS=
  265. unset CLICOLOR_FORCE GREP_OPTIONS
  266. ## --------------------- ##
  267. ## M4sh Shell Functions. ##
  268. ## --------------------- ##
  269. # as_fn_unset VAR
  270. # ---------------
  271. # Portably unset VAR.
  272. as_fn_unset ()
  273. {
  274. { eval $1=; unset $1;}
  275. }
  276. as_unset=as_fn_unset
  277. # as_fn_set_status STATUS
  278. # -----------------------
  279. # Set $? to STATUS, without forking.
  280. as_fn_set_status ()
  281. {
  282. return $1
  283. } # as_fn_set_status
  284. # as_fn_exit STATUS
  285. # -----------------
  286. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  287. as_fn_exit ()
  288. {
  289. set +e
  290. as_fn_set_status $1
  291. exit $1
  292. } # as_fn_exit
  293. # as_fn_mkdir_p
  294. # -------------
  295. # Create "$as_dir" as a directory, including parents if necessary.
  296. as_fn_mkdir_p ()
  297. {
  298. case $as_dir in #(
  299. -*) as_dir=./$as_dir;;
  300. esac
  301. test -d "$as_dir" || eval $as_mkdir_p || {
  302. as_dirs=
  303. while :; do
  304. case $as_dir in #(
  305. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  306. *) as_qdir=$as_dir;;
  307. esac
  308. as_dirs="'$as_qdir' $as_dirs"
  309. as_dir=`$as_dirname -- "$as_dir" ||
  310. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  311. X"$as_dir" : 'X\(//\)[^/]' \| \
  312. X"$as_dir" : 'X\(//\)$' \| \
  313. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  314. $as_echo X"$as_dir" |
  315. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  316. s//\1/
  317. q
  318. }
  319. /^X\(\/\/\)[^/].*/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)$/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\).*/{
  328. s//\1/
  329. q
  330. }
  331. s/.*/./; q'`
  332. test -d "$as_dir" && break
  333. done
  334. test -z "$as_dirs" || eval "mkdir $as_dirs"
  335. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  336. } # as_fn_mkdir_p
  337. # as_fn_executable_p FILE
  338. # -----------------------
  339. # Test if FILE is an executable regular file.
  340. as_fn_executable_p ()
  341. {
  342. test -f "$1" && test -x "$1"
  343. } # as_fn_executable_p
  344. # as_fn_append VAR VALUE
  345. # ----------------------
  346. # Append the text in VALUE to the end of the definition contained in VAR. Take
  347. # advantage of any shell optimizations that allow amortized linear growth over
  348. # repeated appends, instead of the typical quadratic growth present in naive
  349. # implementations.
  350. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  351. eval 'as_fn_append ()
  352. {
  353. eval $1+=\$2
  354. }'
  355. else
  356. as_fn_append ()
  357. {
  358. eval $1=\$$1\$2
  359. }
  360. fi # as_fn_append
  361. # as_fn_arith ARG...
  362. # ------------------
  363. # Perform arithmetic evaluation on the ARGs, and store the result in the
  364. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  365. # must be portable across $(()) and expr.
  366. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  367. eval 'as_fn_arith ()
  368. {
  369. as_val=$(( $* ))
  370. }'
  371. else
  372. as_fn_arith ()
  373. {
  374. as_val=`expr "$@" || test $? -eq 1`
  375. }
  376. fi # as_fn_arith
  377. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  378. # ----------------------------------------
  379. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  380. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  381. # script with STATUS, using 1 if that was 0.
  382. as_fn_error ()
  383. {
  384. as_status=$1; test $as_status -eq 0 && as_status=1
  385. if test "$4"; then
  386. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  387. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  388. fi
  389. $as_echo "$as_me: error: $2" >&2
  390. as_fn_exit $as_status
  391. } # as_fn_error
  392. if expr a : '\(a\)' >/dev/null 2>&1 &&
  393. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  394. as_expr=expr
  395. else
  396. as_expr=false
  397. fi
  398. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  399. as_basename=basename
  400. else
  401. as_basename=false
  402. fi
  403. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  404. as_dirname=dirname
  405. else
  406. as_dirname=false
  407. fi
  408. as_me=`$as_basename -- "$0" ||
  409. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  410. X"$0" : 'X\(//\)$' \| \
  411. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  412. $as_echo X/"$0" |
  413. sed '/^.*\/\([^/][^/]*\)\/*$/{
  414. s//\1/
  415. q
  416. }
  417. /^X\/\(\/\/\)$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\).*/{
  422. s//\1/
  423. q
  424. }
  425. s/.*/./; q'`
  426. # Avoid depending upon Character Ranges.
  427. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  428. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  429. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  430. as_cr_digits='0123456789'
  431. as_cr_alnum=$as_cr_Letters$as_cr_digits
  432. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  433. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  434. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  435. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  436. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  437. sed -n '
  438. p
  439. /[$]LINENO/=
  440. ' <$as_myself |
  441. sed '
  442. s/[$]LINENO.*/&-/
  443. t lineno
  444. b
  445. :lineno
  446. N
  447. :loop
  448. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  449. t loop
  450. s/-\n.*//
  451. ' >$as_me.lineno &&
  452. chmod +x "$as_me.lineno" ||
  453. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  454. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  455. # already done that, so ensure we don't try to do so again and fall
  456. # in an infinite loop. This has already happened in practice.
  457. _as_can_reexec=no; export _as_can_reexec
  458. # Don't try to exec as it changes $[0], causing all sort of problems
  459. # (the dirname of $[0] is not the place where we might find the
  460. # original and so on. Autoconf is especially sensitive to this).
  461. . "./$as_me.lineno"
  462. # Exit status is that of the last command.
  463. exit
  464. }
  465. ECHO_C= ECHO_N= ECHO_T=
  466. case `echo -n x` in #(((((
  467. -n*)
  468. case `echo 'xy\c'` in
  469. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  470. xy) ECHO_C='\c';;
  471. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  472. ECHO_T=' ';;
  473. esac;;
  474. *)
  475. ECHO_N='-n';;
  476. esac
  477. rm -f conf$$ conf$$.exe conf$$.file
  478. if test -d conf$$.dir; then
  479. rm -f conf$$.dir/conf$$.file
  480. else
  481. rm -f conf$$.dir
  482. mkdir conf$$.dir 2>/dev/null
  483. fi
  484. if (echo >conf$$.file) 2>/dev/null; then
  485. if ln -s conf$$.file conf$$ 2>/dev/null; then
  486. as_ln_s='ln -s'
  487. # ... but there are two gotchas:
  488. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  489. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  490. # In both cases, we have to default to `cp -pR'.
  491. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  492. as_ln_s='cp -pR'
  493. elif ln conf$$.file conf$$ 2>/dev/null; then
  494. as_ln_s=ln
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. else
  499. as_ln_s='cp -pR'
  500. fi
  501. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  502. rmdir conf$$.dir 2>/dev/null
  503. if mkdir -p . 2>/dev/null; then
  504. as_mkdir_p='mkdir -p "$as_dir"'
  505. else
  506. test -d ./-p && rmdir ./-p
  507. as_mkdir_p=false
  508. fi
  509. as_test_x='test -x'
  510. as_executable_p=as_fn_executable_p
  511. # Sed expression to map a string onto a valid CPP name.
  512. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  513. # Sed expression to map a string onto a valid variable name.
  514. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  515. test -n "$DJDIR" || exec 7<&0 </dev/null
  516. exec 6>&1
  517. # Name of the host.
  518. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  519. # so uname gets run too.
  520. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  521. #
  522. # Initializations.
  523. #
  524. ac_default_prefix=/usr/local
  525. ac_clean_files=
  526. ac_config_libobj_dir=.
  527. LIBOBJS=
  528. cross_compiling=no
  529. subdirs=
  530. MFLAGS=
  531. MAKEFLAGS=
  532. # Identity of this package.
  533. PACKAGE_NAME=
  534. PACKAGE_TARNAME=
  535. PACKAGE_VERSION=
  536. PACKAGE_STRING=
  537. PACKAGE_BUGREPORT=
  538. PACKAGE_URL=
  539. ac_unique_file="wraith"
  540. ac_unique_file="src/eggdrop.h"
  541. # Factoring default headers for most tests.
  542. ac_includes_default="\
  543. #include <stdio.h>
  544. #ifdef HAVE_SYS_TYPES_H
  545. # include <sys/types.h>
  546. #endif
  547. #ifdef HAVE_SYS_STAT_H
  548. # include <sys/stat.h>
  549. #endif
  550. #ifdef STDC_HEADERS
  551. # include <stdlib.h>
  552. # include <stddef.h>
  553. #else
  554. # ifdef HAVE_STDLIB_H
  555. # include <stdlib.h>
  556. # endif
  557. #endif
  558. #ifdef HAVE_STRING_H
  559. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  560. # include <memory.h>
  561. # endif
  562. # include <string.h>
  563. #endif
  564. #ifdef HAVE_STRINGS_H
  565. # include <strings.h>
  566. #endif
  567. #ifdef HAVE_INTTYPES_H
  568. # include <inttypes.h>
  569. #endif
  570. #ifdef HAVE_STDINT_H
  571. # include <stdint.h>
  572. #endif
  573. #ifdef HAVE_UNISTD_H
  574. # include <unistd.h>
  575. #endif"
  576. ac_header_list=
  577. ac_func_list=
  578. enable_option_checking=no
  579. ac_subst_vars='LTLIBOBJS
  580. subdirs
  581. NUMVER
  582. VERSION
  583. LIBOBJS
  584. TCL_LIBS
  585. TCL_REQS
  586. DEFAULT_MAKE
  587. TCLINCFN
  588. TCL_INCLUDES
  589. TCLLIBFN
  590. TCLLIB
  591. SSL_LIBS
  592. SSL_INCLUDES
  593. LIBELF_LIB
  594. LIBELF_BUNDLED
  595. EGREP
  596. GREP
  597. DEBCXXFLAGS
  598. STATIC
  599. BUILDARCH
  600. BUILDOS
  601. DISTCC
  602. CCACHE
  603. UNAME
  604. DIFF
  605. STRIP
  606. OBJCOPY
  607. BASENAME
  608. AWK
  609. HEAD_1
  610. SED
  611. SET_MAKE
  612. GCC4DEB
  613. GCC3DEB
  614. GCC3_CXXFLAGS
  615. GCC3_CFLAGS
  616. CCDEPMODE
  617. HAVE_CXX11
  618. CXXCPP
  619. OBJEXT
  620. EXEEXT
  621. ac_ct_CXX
  622. CPPFLAGS
  623. LDFLAGS
  624. CXXFLAGS
  625. CXX
  626. egg_ac_parameters
  627. target_alias
  628. host_alias
  629. build_alias
  630. LIBS
  631. ECHO_T
  632. ECHO_N
  633. ECHO_C
  634. DEFS
  635. mandir
  636. localedir
  637. libdir
  638. psdir
  639. pdfdir
  640. dvidir
  641. htmldir
  642. infodir
  643. docdir
  644. oldincludedir
  645. includedir
  646. localstatedir
  647. sharedstatedir
  648. sysconfdir
  649. datadir
  650. datarootdir
  651. libexecdir
  652. sbindir
  653. bindir
  654. program_transform_name
  655. prefix
  656. exec_prefix
  657. PACKAGE_URL
  658. PACKAGE_BUGREPORT
  659. PACKAGE_STRING
  660. PACKAGE_VERSION
  661. PACKAGE_TARNAME
  662. PACKAGE_NAME
  663. PATH_SEPARATOR
  664. SHELL'
  665. ac_subst_files=''
  666. ac_user_opts='
  667. enable_option_checking
  668. enable_ipv6
  669. with_openssl
  670. with_tcllib
  671. with_tclinc
  672. enable_script_tcl
  673. '
  674. ac_precious_vars='build_alias
  675. host_alias
  676. target_alias
  677. CXX
  678. CXXFLAGS
  679. LDFLAGS
  680. LIBS
  681. CPPFLAGS
  682. CCC
  683. CXXCPP'
  684. ac_subdirs_all='lib/bdlib
  685. lib/libelf'
  686. # Initialize some variables set by options.
  687. ac_init_help=
  688. ac_init_version=false
  689. ac_unrecognized_opts=
  690. ac_unrecognized_sep=
  691. # The variables have the same names as the options, with
  692. # dashes changed to underlines.
  693. cache_file=/dev/null
  694. exec_prefix=NONE
  695. no_create=
  696. no_recursion=
  697. prefix=NONE
  698. program_prefix=NONE
  699. program_suffix=NONE
  700. program_transform_name=s,x,x,
  701. silent=
  702. site=
  703. srcdir=
  704. verbose=
  705. x_includes=NONE
  706. x_libraries=NONE
  707. # Installation directory options.
  708. # These are left unexpanded so users can "make install exec_prefix=/foo"
  709. # and all the variables that are supposed to be based on exec_prefix
  710. # by default will actually change.
  711. # Use braces instead of parens because sh, perl, etc. also accept them.
  712. # (The list follows the same order as the GNU Coding Standards.)
  713. bindir='${exec_prefix}/bin'
  714. sbindir='${exec_prefix}/sbin'
  715. libexecdir='${exec_prefix}/libexec'
  716. datarootdir='${prefix}/share'
  717. datadir='${datarootdir}'
  718. sysconfdir='${prefix}/etc'
  719. sharedstatedir='${prefix}/com'
  720. localstatedir='${prefix}/var'
  721. includedir='${prefix}/include'
  722. oldincludedir='/usr/include'
  723. docdir='${datarootdir}/doc/${PACKAGE}'
  724. infodir='${datarootdir}/info'
  725. htmldir='${docdir}'
  726. dvidir='${docdir}'
  727. pdfdir='${docdir}'
  728. psdir='${docdir}'
  729. libdir='${exec_prefix}/lib'
  730. localedir='${datarootdir}/locale'
  731. mandir='${datarootdir}/man'
  732. ac_prev=
  733. ac_dashdash=
  734. for ac_option
  735. do
  736. # If the previous option needs an argument, assign it.
  737. if test -n "$ac_prev"; then
  738. eval $ac_prev=\$ac_option
  739. ac_prev=
  740. continue
  741. fi
  742. case $ac_option in
  743. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  744. *=) ac_optarg= ;;
  745. *) ac_optarg=yes ;;
  746. esac
  747. # Accept the important Cygnus configure options, so we can diagnose typos.
  748. case $ac_dashdash$ac_option in
  749. --)
  750. ac_dashdash=yes ;;
  751. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  752. ac_prev=bindir ;;
  753. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  754. bindir=$ac_optarg ;;
  755. -build | --build | --buil | --bui | --bu)
  756. ac_prev=build_alias ;;
  757. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  758. build_alias=$ac_optarg ;;
  759. -cache-file | --cache-file | --cache-fil | --cache-fi \
  760. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  761. ac_prev=cache_file ;;
  762. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  763. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  764. cache_file=$ac_optarg ;;
  765. --config-cache | -C)
  766. cache_file=config.cache ;;
  767. -datadir | --datadir | --datadi | --datad)
  768. ac_prev=datadir ;;
  769. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  770. datadir=$ac_optarg ;;
  771. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  772. | --dataroo | --dataro | --datar)
  773. ac_prev=datarootdir ;;
  774. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  775. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  776. datarootdir=$ac_optarg ;;
  777. -disable-* | --disable-*)
  778. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  779. # Reject names that are not valid shell variable names.
  780. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  781. as_fn_error $? "invalid feature name: $ac_useropt"
  782. ac_useropt_orig=$ac_useropt
  783. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  784. case $ac_user_opts in
  785. *"
  786. "enable_$ac_useropt"
  787. "*) ;;
  788. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  789. ac_unrecognized_sep=', ';;
  790. esac
  791. eval enable_$ac_useropt=no ;;
  792. -docdir | --docdir | --docdi | --doc | --do)
  793. ac_prev=docdir ;;
  794. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  795. docdir=$ac_optarg ;;
  796. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  797. ac_prev=dvidir ;;
  798. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  799. dvidir=$ac_optarg ;;
  800. -enable-* | --enable-*)
  801. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  802. # Reject names that are not valid shell variable names.
  803. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  804. as_fn_error $? "invalid feature name: $ac_useropt"
  805. ac_useropt_orig=$ac_useropt
  806. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  807. case $ac_user_opts in
  808. *"
  809. "enable_$ac_useropt"
  810. "*) ;;
  811. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  812. ac_unrecognized_sep=', ';;
  813. esac
  814. eval enable_$ac_useropt=\$ac_optarg ;;
  815. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  816. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  817. | --exec | --exe | --ex)
  818. ac_prev=exec_prefix ;;
  819. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  820. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  821. | --exec=* | --exe=* | --ex=*)
  822. exec_prefix=$ac_optarg ;;
  823. -gas | --gas | --ga | --g)
  824. # Obsolete; use --with-gas.
  825. with_gas=yes ;;
  826. -help | --help | --hel | --he | -h)
  827. ac_init_help=long ;;
  828. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  829. ac_init_help=recursive ;;
  830. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  831. ac_init_help=short ;;
  832. -host | --host | --hos | --ho)
  833. ac_prev=host_alias ;;
  834. -host=* | --host=* | --hos=* | --ho=*)
  835. host_alias=$ac_optarg ;;
  836. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  837. ac_prev=htmldir ;;
  838. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  839. | --ht=*)
  840. htmldir=$ac_optarg ;;
  841. -includedir | --includedir | --includedi | --included | --include \
  842. | --includ | --inclu | --incl | --inc)
  843. ac_prev=includedir ;;
  844. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  845. | --includ=* | --inclu=* | --incl=* | --inc=*)
  846. includedir=$ac_optarg ;;
  847. -infodir | --infodir | --infodi | --infod | --info | --inf)
  848. ac_prev=infodir ;;
  849. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  850. infodir=$ac_optarg ;;
  851. -libdir | --libdir | --libdi | --libd)
  852. ac_prev=libdir ;;
  853. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  854. libdir=$ac_optarg ;;
  855. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  856. | --libexe | --libex | --libe)
  857. ac_prev=libexecdir ;;
  858. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  859. | --libexe=* | --libex=* | --libe=*)
  860. libexecdir=$ac_optarg ;;
  861. -localedir | --localedir | --localedi | --localed | --locale)
  862. ac_prev=localedir ;;
  863. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  864. localedir=$ac_optarg ;;
  865. -localstatedir | --localstatedir | --localstatedi | --localstated \
  866. | --localstate | --localstat | --localsta | --localst | --locals)
  867. ac_prev=localstatedir ;;
  868. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  869. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  870. localstatedir=$ac_optarg ;;
  871. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  872. ac_prev=mandir ;;
  873. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  874. mandir=$ac_optarg ;;
  875. -nfp | --nfp | --nf)
  876. # Obsolete; use --without-fp.
  877. with_fp=no ;;
  878. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  879. | --no-cr | --no-c | -n)
  880. no_create=yes ;;
  881. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  882. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  883. no_recursion=yes ;;
  884. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  885. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  886. | --oldin | --oldi | --old | --ol | --o)
  887. ac_prev=oldincludedir ;;
  888. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  889. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  890. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  891. oldincludedir=$ac_optarg ;;
  892. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  893. ac_prev=prefix ;;
  894. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  895. prefix=$ac_optarg ;;
  896. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  897. | --program-pre | --program-pr | --program-p)
  898. ac_prev=program_prefix ;;
  899. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  900. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  901. program_prefix=$ac_optarg ;;
  902. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  903. | --program-suf | --program-su | --program-s)
  904. ac_prev=program_suffix ;;
  905. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  906. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  907. program_suffix=$ac_optarg ;;
  908. -program-transform-name | --program-transform-name \
  909. | --program-transform-nam | --program-transform-na \
  910. | --program-transform-n | --program-transform- \
  911. | --program-transform | --program-transfor \
  912. | --program-transfo | --program-transf \
  913. | --program-trans | --program-tran \
  914. | --progr-tra | --program-tr | --program-t)
  915. ac_prev=program_transform_name ;;
  916. -program-transform-name=* | --program-transform-name=* \
  917. | --program-transform-nam=* | --program-transform-na=* \
  918. | --program-transform-n=* | --program-transform-=* \
  919. | --program-transform=* | --program-transfor=* \
  920. | --program-transfo=* | --program-transf=* \
  921. | --program-trans=* | --program-tran=* \
  922. | --progr-tra=* | --program-tr=* | --program-t=*)
  923. program_transform_name=$ac_optarg ;;
  924. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  925. ac_prev=pdfdir ;;
  926. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  927. pdfdir=$ac_optarg ;;
  928. -psdir | --psdir | --psdi | --psd | --ps)
  929. ac_prev=psdir ;;
  930. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  931. psdir=$ac_optarg ;;
  932. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  933. | -silent | --silent | --silen | --sile | --sil)
  934. silent=yes ;;
  935. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  936. ac_prev=sbindir ;;
  937. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  938. | --sbi=* | --sb=*)
  939. sbindir=$ac_optarg ;;
  940. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  941. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  942. | --sharedst | --shareds | --shared | --share | --shar \
  943. | --sha | --sh)
  944. ac_prev=sharedstatedir ;;
  945. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  946. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  947. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  948. | --sha=* | --sh=*)
  949. sharedstatedir=$ac_optarg ;;
  950. -site | --site | --sit)
  951. ac_prev=site ;;
  952. -site=* | --site=* | --sit=*)
  953. site=$ac_optarg ;;
  954. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  955. ac_prev=srcdir ;;
  956. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  957. srcdir=$ac_optarg ;;
  958. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  959. | --syscon | --sysco | --sysc | --sys | --sy)
  960. ac_prev=sysconfdir ;;
  961. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  962. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  963. sysconfdir=$ac_optarg ;;
  964. -target | --target | --targe | --targ | --tar | --ta | --t)
  965. ac_prev=target_alias ;;
  966. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  967. target_alias=$ac_optarg ;;
  968. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  969. verbose=yes ;;
  970. -version | --version | --versio | --versi | --vers | -V)
  971. ac_init_version=: ;;
  972. -with-* | --with-*)
  973. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  974. # Reject names that are not valid shell variable names.
  975. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  976. as_fn_error $? "invalid package name: $ac_useropt"
  977. ac_useropt_orig=$ac_useropt
  978. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  979. case $ac_user_opts in
  980. *"
  981. "with_$ac_useropt"
  982. "*) ;;
  983. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  984. ac_unrecognized_sep=', ';;
  985. esac
  986. eval with_$ac_useropt=\$ac_optarg ;;
  987. -without-* | --without-*)
  988. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  989. # Reject names that are not valid shell variable names.
  990. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  991. as_fn_error $? "invalid package name: $ac_useropt"
  992. ac_useropt_orig=$ac_useropt
  993. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  994. case $ac_user_opts in
  995. *"
  996. "with_$ac_useropt"
  997. "*) ;;
  998. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  999. ac_unrecognized_sep=', ';;
  1000. esac
  1001. eval with_$ac_useropt=no ;;
  1002. --x)
  1003. # Obsolete; use --with-x.
  1004. with_x=yes ;;
  1005. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1006. | --x-incl | --x-inc | --x-in | --x-i)
  1007. ac_prev=x_includes ;;
  1008. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1009. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1010. x_includes=$ac_optarg ;;
  1011. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1012. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1013. ac_prev=x_libraries ;;
  1014. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1015. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1016. x_libraries=$ac_optarg ;;
  1017. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1018. Try \`$0 --help' for more information"
  1019. ;;
  1020. *=*)
  1021. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1022. # Reject names that are not valid shell variable names.
  1023. case $ac_envvar in #(
  1024. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1025. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1026. esac
  1027. eval $ac_envvar=\$ac_optarg
  1028. export $ac_envvar ;;
  1029. *)
  1030. # FIXME: should be removed in autoconf 3.0.
  1031. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1032. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1033. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1034. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1035. ;;
  1036. esac
  1037. done
  1038. if test -n "$ac_prev"; then
  1039. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1040. as_fn_error $? "missing argument to $ac_option"
  1041. fi
  1042. if test -n "$ac_unrecognized_opts"; then
  1043. case $enable_option_checking in
  1044. no) ;;
  1045. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1046. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1047. esac
  1048. fi
  1049. # Check all directory arguments for consistency.
  1050. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1051. datadir sysconfdir sharedstatedir localstatedir includedir \
  1052. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1053. libdir localedir mandir
  1054. do
  1055. eval ac_val=\$$ac_var
  1056. # Remove trailing slashes.
  1057. case $ac_val in
  1058. */ )
  1059. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1060. eval $ac_var=\$ac_val;;
  1061. esac
  1062. # Be sure to have absolute directory names.
  1063. case $ac_val in
  1064. [\\/$]* | ?:[\\/]* ) continue;;
  1065. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1066. esac
  1067. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1068. done
  1069. # There might be people who depend on the old broken behavior: `$host'
  1070. # used to hold the argument of --host etc.
  1071. # FIXME: To remove some day.
  1072. build=$build_alias
  1073. host=$host_alias
  1074. target=$target_alias
  1075. # FIXME: To remove some day.
  1076. if test "x$host_alias" != x; then
  1077. if test "x$build_alias" = x; then
  1078. cross_compiling=maybe
  1079. elif test "x$build_alias" != "x$host_alias"; then
  1080. cross_compiling=yes
  1081. fi
  1082. fi
  1083. ac_tool_prefix=
  1084. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1085. test "$silent" = yes && exec 6>/dev/null
  1086. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1087. ac_ls_di=`ls -di .` &&
  1088. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1089. as_fn_error $? "working directory cannot be determined"
  1090. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1091. as_fn_error $? "pwd does not report name of working directory"
  1092. # Find the source files, if location was not specified.
  1093. if test -z "$srcdir"; then
  1094. ac_srcdir_defaulted=yes
  1095. # Try the directory containing this script, then the parent directory.
  1096. ac_confdir=`$as_dirname -- "$as_myself" ||
  1097. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1098. X"$as_myself" : 'X\(//\)[^/]' \| \
  1099. X"$as_myself" : 'X\(//\)$' \| \
  1100. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1101. $as_echo X"$as_myself" |
  1102. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1103. s//\1/
  1104. q
  1105. }
  1106. /^X\(\/\/\)[^/].*/{
  1107. s//\1/
  1108. q
  1109. }
  1110. /^X\(\/\/\)$/{
  1111. s//\1/
  1112. q
  1113. }
  1114. /^X\(\/\).*/{
  1115. s//\1/
  1116. q
  1117. }
  1118. s/.*/./; q'`
  1119. srcdir=$ac_confdir
  1120. if test ! -r "$srcdir/$ac_unique_file"; then
  1121. srcdir=..
  1122. fi
  1123. else
  1124. ac_srcdir_defaulted=no
  1125. fi
  1126. if test ! -r "$srcdir/$ac_unique_file"; then
  1127. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1128. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1129. fi
  1130. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1131. ac_abs_confdir=`(
  1132. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1133. pwd)`
  1134. # When building in place, set srcdir=.
  1135. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1136. srcdir=.
  1137. fi
  1138. # Remove unnecessary trailing slashes from srcdir.
  1139. # Double slashes in file names in object file debugging info
  1140. # mess up M-x gdb in Emacs.
  1141. case $srcdir in
  1142. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1143. esac
  1144. for ac_var in $ac_precious_vars; do
  1145. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1146. eval ac_env_${ac_var}_value=\$${ac_var}
  1147. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1148. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1149. done
  1150. #
  1151. # Report the --help message.
  1152. #
  1153. if test "$ac_init_help" = "long"; then
  1154. # Omit some internal or obsolete options to make the list less imposing.
  1155. # This message is too long to be a string in the A/UX 3.1 sh.
  1156. cat <<_ACEOF
  1157. \`configure' configures this package to adapt to many kinds of systems.
  1158. Usage: $0 [OPTION]... [VAR=VALUE]...
  1159. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1160. VAR=VALUE. See below for descriptions of some of the useful variables.
  1161. Defaults for the options are specified in brackets.
  1162. Configuration:
  1163. -h, --help display this help and exit
  1164. --help=short display options specific to this package
  1165. --help=recursive display the short help of all the included packages
  1166. -V, --version display version information and exit
  1167. -q, --quiet, --silent do not print \`checking ...' messages
  1168. --cache-file=FILE cache test results in FILE [disabled]
  1169. -C, --config-cache alias for \`--cache-file=config.cache'
  1170. -n, --no-create do not create output files
  1171. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1172. Installation directories:
  1173. --prefix=PREFIX install architecture-independent files in PREFIX
  1174. [$ac_default_prefix]
  1175. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1176. [PREFIX]
  1177. By default, \`make install' will install all the files in
  1178. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1179. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1180. for instance \`--prefix=\$HOME'.
  1181. For better control, use the options below.
  1182. Fine tuning of the installation directories:
  1183. --bindir=DIR user executables [EPREFIX/bin]
  1184. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1185. --libexecdir=DIR program executables [EPREFIX/libexec]
  1186. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1187. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1188. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1189. --libdir=DIR object code libraries [EPREFIX/lib]
  1190. --includedir=DIR C header files [PREFIX/include]
  1191. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1192. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1193. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1194. --infodir=DIR info documentation [DATAROOTDIR/info]
  1195. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1196. --mandir=DIR man documentation [DATAROOTDIR/man]
  1197. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1198. --htmldir=DIR html documentation [DOCDIR]
  1199. --dvidir=DIR dvi documentation [DOCDIR]
  1200. --pdfdir=DIR pdf documentation [DOCDIR]
  1201. --psdir=DIR ps documentation [DOCDIR]
  1202. _ACEOF
  1203. cat <<\_ACEOF
  1204. _ACEOF
  1205. fi
  1206. if test -n "$ac_init_help"; then
  1207. cat <<\_ACEOF
  1208. Optional Features:
  1209. --disable-option-checking ignore unrecognized --enable/--with options
  1210. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1211. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1212. --disable-ipv6 disable IPv6 support
  1213. --disable-script-tcl disable TCL Script support
  1214. Optional Packages:
  1215. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1216. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1217. --with-openssl=PATH Path to OpenSSL
  1218. --with-tcllib=PATH full path to Tcl library
  1219. --with-tclinc=PATH full path to Tcl header
  1220. Some influential environment variables:
  1221. CXX C++ compiler command
  1222. CXXFLAGS C++ compiler flags
  1223. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1224. nonstandard directory <lib dir>
  1225. LIBS libraries to pass to the linker, e.g. -l<library>
  1226. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1227. you have headers in a nonstandard directory <include dir>
  1228. CXXCPP C++ preprocessor
  1229. Use these variables to override the choices made by `configure' or to help
  1230. it to find libraries and programs with nonstandard names/locations.
  1231. Report bugs to the package provider.
  1232. _ACEOF
  1233. ac_status=$?
  1234. fi
  1235. if test "$ac_init_help" = "recursive"; then
  1236. # If there are subdirs, report their specific --help.
  1237. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1238. test -d "$ac_dir" ||
  1239. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1240. continue
  1241. ac_builddir=.
  1242. case "$ac_dir" in
  1243. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1244. *)
  1245. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1246. # A ".." for each directory in $ac_dir_suffix.
  1247. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1248. case $ac_top_builddir_sub in
  1249. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1250. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1251. esac ;;
  1252. esac
  1253. ac_abs_top_builddir=$ac_pwd
  1254. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1255. # for backward compatibility:
  1256. ac_top_builddir=$ac_top_build_prefix
  1257. case $srcdir in
  1258. .) # We are building in place.
  1259. ac_srcdir=.
  1260. ac_top_srcdir=$ac_top_builddir_sub
  1261. ac_abs_top_srcdir=$ac_pwd ;;
  1262. [\\/]* | ?:[\\/]* ) # Absolute name.
  1263. ac_srcdir=$srcdir$ac_dir_suffix;
  1264. ac_top_srcdir=$srcdir
  1265. ac_abs_top_srcdir=$srcdir ;;
  1266. *) # Relative name.
  1267. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1268. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1269. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1270. esac
  1271. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1272. cd "$ac_dir" || { ac_status=$?; continue; }
  1273. # Check for guested configure.
  1274. if test -f "$ac_srcdir/configure.gnu"; then
  1275. echo &&
  1276. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1277. elif test -f "$ac_srcdir/configure"; then
  1278. echo &&
  1279. $SHELL "$ac_srcdir/configure" --help=recursive
  1280. else
  1281. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1282. fi || ac_status=$?
  1283. cd "$ac_pwd" || { ac_status=$?; break; }
  1284. done
  1285. fi
  1286. test -n "$ac_init_help" && exit $ac_status
  1287. if $ac_init_version; then
  1288. cat <<\_ACEOF
  1289. configure
  1290. generated by GNU Autoconf 2.69
  1291. Copyright (C) 2012 Free Software Foundation, Inc.
  1292. This configure script is free software; the Free Software Foundation
  1293. gives unlimited permission to copy, distribute and modify it.
  1294. Copyright (c) Bryan Drewery
  1295. _ACEOF
  1296. exit
  1297. fi
  1298. ## ------------------------ ##
  1299. ## Autoconf initialization. ##
  1300. ## ------------------------ ##
  1301. # ac_fn_cxx_try_compile LINENO
  1302. # ----------------------------
  1303. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1304. ac_fn_cxx_try_compile ()
  1305. {
  1306. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1307. rm -f conftest.$ac_objext
  1308. if { { ac_try="$ac_compile"
  1309. case "(($ac_try" in
  1310. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1311. *) ac_try_echo=$ac_try;;
  1312. esac
  1313. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1314. $as_echo "$ac_try_echo"; } >&5
  1315. (eval "$ac_compile") 2>conftest.err
  1316. ac_status=$?
  1317. if test -s conftest.err; then
  1318. grep -v '^ *+' conftest.err >conftest.er1
  1319. cat conftest.er1 >&5
  1320. mv -f conftest.er1 conftest.err
  1321. fi
  1322. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1323. test $ac_status = 0; } && {
  1324. test -z "$ac_cxx_werror_flag" ||
  1325. test ! -s conftest.err
  1326. } && test -s conftest.$ac_objext; then :
  1327. ac_retval=0
  1328. else
  1329. $as_echo "$as_me: failed program was:" >&5
  1330. sed 's/^/| /' conftest.$ac_ext >&5
  1331. ac_retval=1
  1332. fi
  1333. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1334. as_fn_set_status $ac_retval
  1335. } # ac_fn_cxx_try_compile
  1336. # ac_fn_cxx_try_cpp LINENO
  1337. # ------------------------
  1338. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1339. ac_fn_cxx_try_cpp ()
  1340. {
  1341. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1342. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1343. case "(($ac_try" in
  1344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1345. *) ac_try_echo=$ac_try;;
  1346. esac
  1347. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1348. $as_echo "$ac_try_echo"; } >&5
  1349. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1350. ac_status=$?
  1351. if test -s conftest.err; then
  1352. grep -v '^ *+' conftest.err >conftest.er1
  1353. cat conftest.er1 >&5
  1354. mv -f conftest.er1 conftest.err
  1355. fi
  1356. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1357. test $ac_status = 0; } > conftest.i && {
  1358. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1359. test ! -s conftest.err
  1360. }; then :
  1361. ac_retval=0
  1362. else
  1363. $as_echo "$as_me: failed program was:" >&5
  1364. sed 's/^/| /' conftest.$ac_ext >&5
  1365. ac_retval=1
  1366. fi
  1367. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1368. as_fn_set_status $ac_retval
  1369. } # ac_fn_cxx_try_cpp
  1370. # ac_fn_cxx_try_run LINENO
  1371. # ------------------------
  1372. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1373. # that executables *can* be run.
  1374. ac_fn_cxx_try_run ()
  1375. {
  1376. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1377. if { { ac_try="$ac_link"
  1378. case "(($ac_try" in
  1379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1380. *) ac_try_echo=$ac_try;;
  1381. esac
  1382. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1383. $as_echo "$ac_try_echo"; } >&5
  1384. (eval "$ac_link") 2>&5
  1385. ac_status=$?
  1386. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1387. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1388. { { case "(($ac_try" in
  1389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1390. *) ac_try_echo=$ac_try;;
  1391. esac
  1392. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1393. $as_echo "$ac_try_echo"; } >&5
  1394. (eval "$ac_try") 2>&5
  1395. ac_status=$?
  1396. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1397. test $ac_status = 0; }; }; then :
  1398. ac_retval=0
  1399. else
  1400. $as_echo "$as_me: program exited with status $ac_status" >&5
  1401. $as_echo "$as_me: failed program was:" >&5
  1402. sed 's/^/| /' conftest.$ac_ext >&5
  1403. ac_retval=$ac_status
  1404. fi
  1405. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1406. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1407. as_fn_set_status $ac_retval
  1408. } # ac_fn_cxx_try_run
  1409. # ac_fn_cxx_try_link LINENO
  1410. # -------------------------
  1411. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1412. ac_fn_cxx_try_link ()
  1413. {
  1414. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1415. rm -f conftest.$ac_objext conftest$ac_exeext
  1416. if { { ac_try="$ac_link"
  1417. case "(($ac_try" in
  1418. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1419. *) ac_try_echo=$ac_try;;
  1420. esac
  1421. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1422. $as_echo "$ac_try_echo"; } >&5
  1423. (eval "$ac_link") 2>conftest.err
  1424. ac_status=$?
  1425. if test -s conftest.err; then
  1426. grep -v '^ *+' conftest.err >conftest.er1
  1427. cat conftest.er1 >&5
  1428. mv -f conftest.er1 conftest.err
  1429. fi
  1430. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1431. test $ac_status = 0; } && {
  1432. test -z "$ac_cxx_werror_flag" ||
  1433. test ! -s conftest.err
  1434. } && test -s conftest$ac_exeext && {
  1435. test "$cross_compiling" = yes ||
  1436. test -x conftest$ac_exeext
  1437. }; then :
  1438. ac_retval=0
  1439. else
  1440. $as_echo "$as_me: failed program was:" >&5
  1441. sed 's/^/| /' conftest.$ac_ext >&5
  1442. ac_retval=1
  1443. fi
  1444. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1445. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1446. # interfere with the next link command; also delete a directory that is
  1447. # left behind by Apple's compiler. We do this before executing the actions.
  1448. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1449. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1450. as_fn_set_status $ac_retval
  1451. } # ac_fn_cxx_try_link
  1452. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1453. # ---------------------------------------------------------
  1454. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1455. # the include files in INCLUDES and setting the cache variable VAR
  1456. # accordingly.
  1457. ac_fn_cxx_check_header_mongrel ()
  1458. {
  1459. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1460. if eval \${$3+:} false; then :
  1461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1462. $as_echo_n "checking for $2... " >&6; }
  1463. if eval \${$3+:} false; then :
  1464. $as_echo_n "(cached) " >&6
  1465. fi
  1466. eval ac_res=\$$3
  1467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1468. $as_echo "$ac_res" >&6; }
  1469. else
  1470. # Is the header compilable?
  1471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1472. $as_echo_n "checking $2 usability... " >&6; }
  1473. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1474. /* end build/confdefs.h. */
  1475. $4
  1476. #include <$2>
  1477. _ACEOF
  1478. if ac_fn_cxx_try_compile "$LINENO"; then :
  1479. ac_header_compiler=yes
  1480. else
  1481. ac_header_compiler=no
  1482. fi
  1483. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1485. $as_echo "$ac_header_compiler" >&6; }
  1486. # Is the header present?
  1487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1488. $as_echo_n "checking $2 presence... " >&6; }
  1489. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1490. /* end build/confdefs.h. */
  1491. #include <$2>
  1492. _ACEOF
  1493. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1494. ac_header_preproc=yes
  1495. else
  1496. ac_header_preproc=no
  1497. fi
  1498. rm -f conftest.err conftest.i conftest.$ac_ext
  1499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1500. $as_echo "$ac_header_preproc" >&6; }
  1501. # So? What about this header?
  1502. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1503. yes:no: )
  1504. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1505. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1506. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1507. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1508. ;;
  1509. no:yes:* )
  1510. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1511. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1512. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1513. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1514. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1515. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1516. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1517. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1518. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1519. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1520. ;;
  1521. esac
  1522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1523. $as_echo_n "checking for $2... " >&6; }
  1524. if eval \${$3+:} false; then :
  1525. $as_echo_n "(cached) " >&6
  1526. else
  1527. eval "$3=\$ac_header_compiler"
  1528. fi
  1529. eval ac_res=\$$3
  1530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1531. $as_echo "$ac_res" >&6; }
  1532. fi
  1533. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1534. } # ac_fn_cxx_check_header_mongrel
  1535. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1536. # ---------------------------------------------------------
  1537. # Tests whether HEADER exists and can be compiled using the include files in
  1538. # INCLUDES, setting the cache variable VAR accordingly.
  1539. ac_fn_cxx_check_header_compile ()
  1540. {
  1541. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1543. $as_echo_n "checking for $2... " >&6; }
  1544. if eval \${$3+:} false; then :
  1545. $as_echo_n "(cached) " >&6
  1546. else
  1547. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1548. /* end build/confdefs.h. */
  1549. $4
  1550. #include <$2>
  1551. _ACEOF
  1552. if ac_fn_cxx_try_compile "$LINENO"; then :
  1553. eval "$3=yes"
  1554. else
  1555. eval "$3=no"
  1556. fi
  1557. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1558. fi
  1559. eval ac_res=\$$3
  1560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1561. $as_echo "$ac_res" >&6; }
  1562. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1563. } # ac_fn_cxx_check_header_compile
  1564. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1565. # ---------------------------------------------
  1566. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1567. # variable VAR accordingly.
  1568. ac_fn_cxx_check_type ()
  1569. {
  1570. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1572. $as_echo_n "checking for $2... " >&6; }
  1573. if eval \${$3+:} false; then :
  1574. $as_echo_n "(cached) " >&6
  1575. else
  1576. eval "$3=no"
  1577. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1578. /* end build/confdefs.h. */
  1579. $4
  1580. int
  1581. main ()
  1582. {
  1583. if (sizeof ($2))
  1584. return 0;
  1585. ;
  1586. return 0;
  1587. }
  1588. _ACEOF
  1589. if ac_fn_cxx_try_compile "$LINENO"; then :
  1590. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1591. /* end build/confdefs.h. */
  1592. $4
  1593. int
  1594. main ()
  1595. {
  1596. if (sizeof (($2)))
  1597. return 0;
  1598. ;
  1599. return 0;
  1600. }
  1601. _ACEOF
  1602. if ac_fn_cxx_try_compile "$LINENO"; then :
  1603. else
  1604. eval "$3=yes"
  1605. fi
  1606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1607. fi
  1608. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1609. fi
  1610. eval ac_res=\$$3
  1611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1612. $as_echo "$ac_res" >&6; }
  1613. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1614. } # ac_fn_cxx_check_type
  1615. # ac_fn_c_find_intX_t LINENO BITS VAR
  1616. # -----------------------------------
  1617. # Finds a signed integer type with width BITS, setting cache variable VAR
  1618. # accordingly.
  1619. ac_fn_c_find_intX_t ()
  1620. {
  1621. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1623. $as_echo_n "checking for int$2_t... " >&6; }
  1624. if eval \${$3+:} false; then :
  1625. $as_echo_n "(cached) " >&6
  1626. else
  1627. eval "$3=no"
  1628. # Order is important - never check a type that is potentially smaller
  1629. # than half of the expected target width.
  1630. for ac_type in int$2_t 'int' 'long int' \
  1631. 'long long int' 'short int' 'signed char'; do
  1632. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1633. /* end build/confdefs.h. */
  1634. $ac_includes_default
  1635. enum { N = $2 / 2 - 1 };
  1636. int
  1637. main ()
  1638. {
  1639. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1640. test_array [0] = 0;
  1641. return test_array [0];
  1642. ;
  1643. return 0;
  1644. }
  1645. _ACEOF
  1646. if ac_fn_cxx_try_compile "$LINENO"; then :
  1647. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1648. /* end build/confdefs.h. */
  1649. $ac_includes_default
  1650. enum { N = $2 / 2 - 1 };
  1651. int
  1652. main ()
  1653. {
  1654. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1655. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1656. test_array [0] = 0;
  1657. return test_array [0];
  1658. ;
  1659. return 0;
  1660. }
  1661. _ACEOF
  1662. if ac_fn_cxx_try_compile "$LINENO"; then :
  1663. else
  1664. case $ac_type in #(
  1665. int$2_t) :
  1666. eval "$3=yes" ;; #(
  1667. *) :
  1668. eval "$3=\$ac_type" ;;
  1669. esac
  1670. fi
  1671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1672. fi
  1673. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1674. if eval test \"x\$"$3"\" = x"no"; then :
  1675. else
  1676. break
  1677. fi
  1678. done
  1679. fi
  1680. eval ac_res=\$$3
  1681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1682. $as_echo "$ac_res" >&6; }
  1683. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1684. } # ac_fn_c_find_intX_t
  1685. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1686. # ------------------------------------
  1687. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1688. # accordingly.
  1689. ac_fn_c_find_uintX_t ()
  1690. {
  1691. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1693. $as_echo_n "checking for uint$2_t... " >&6; }
  1694. if eval \${$3+:} false; then :
  1695. $as_echo_n "(cached) " >&6
  1696. else
  1697. eval "$3=no"
  1698. # Order is important - never check a type that is potentially smaller
  1699. # than half of the expected target width.
  1700. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1701. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1702. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1703. /* end build/confdefs.h. */
  1704. $ac_includes_default
  1705. int
  1706. main ()
  1707. {
  1708. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1709. test_array [0] = 0;
  1710. return test_array [0];
  1711. ;
  1712. return 0;
  1713. }
  1714. _ACEOF
  1715. if ac_fn_cxx_try_compile "$LINENO"; then :
  1716. case $ac_type in #(
  1717. uint$2_t) :
  1718. eval "$3=yes" ;; #(
  1719. *) :
  1720. eval "$3=\$ac_type" ;;
  1721. esac
  1722. fi
  1723. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1724. if eval test \"x\$"$3"\" = x"no"; then :
  1725. else
  1726. break
  1727. fi
  1728. done
  1729. fi
  1730. eval ac_res=\$$3
  1731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1732. $as_echo "$ac_res" >&6; }
  1733. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1734. } # ac_fn_c_find_uintX_t
  1735. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  1736. # ------------------------------------------------------
  1737. # Tries to find if the field MEMBER exists in type AGGR, after including
  1738. # INCLUDES, setting cache variable VAR accordingly.
  1739. ac_fn_cxx_check_member ()
  1740. {
  1741. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1743. $as_echo_n "checking for $2.$3... " >&6; }
  1744. if eval \${$4+:} false; then :
  1745. $as_echo_n "(cached) " >&6
  1746. else
  1747. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1748. /* end build/confdefs.h. */
  1749. $5
  1750. int
  1751. main ()
  1752. {
  1753. static $2 ac_aggr;
  1754. if (ac_aggr.$3)
  1755. return 0;
  1756. ;
  1757. return 0;
  1758. }
  1759. _ACEOF
  1760. if ac_fn_cxx_try_compile "$LINENO"; then :
  1761. eval "$4=yes"
  1762. else
  1763. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1764. /* end build/confdefs.h. */
  1765. $5
  1766. int
  1767. main ()
  1768. {
  1769. static $2 ac_aggr;
  1770. if (sizeof ac_aggr.$3)
  1771. return 0;
  1772. ;
  1773. return 0;
  1774. }
  1775. _ACEOF
  1776. if ac_fn_cxx_try_compile "$LINENO"; then :
  1777. eval "$4=yes"
  1778. else
  1779. eval "$4=no"
  1780. fi
  1781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1782. fi
  1783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1784. fi
  1785. eval ac_res=\$$4
  1786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1787. $as_echo "$ac_res" >&6; }
  1788. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1789. } # ac_fn_cxx_check_member
  1790. # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
  1791. # -----------------------------------------------
  1792. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1793. # accordingly.
  1794. ac_fn_cxx_check_decl ()
  1795. {
  1796. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1797. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1798. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1800. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1801. if eval \${$3+:} false; then :
  1802. $as_echo_n "(cached) " >&6
  1803. else
  1804. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1805. /* end build/confdefs.h. */
  1806. $4
  1807. int
  1808. main ()
  1809. {
  1810. #ifndef $as_decl_name
  1811. #ifdef __cplusplus
  1812. (void) $as_decl_use;
  1813. #else
  1814. (void) $as_decl_name;
  1815. #endif
  1816. #endif
  1817. ;
  1818. return 0;
  1819. }
  1820. _ACEOF
  1821. if ac_fn_cxx_try_compile "$LINENO"; then :
  1822. eval "$3=yes"
  1823. else
  1824. eval "$3=no"
  1825. fi
  1826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1827. fi
  1828. eval ac_res=\$$3
  1829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1830. $as_echo "$ac_res" >&6; }
  1831. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1832. } # ac_fn_cxx_check_decl
  1833. # ac_fn_cxx_check_func LINENO FUNC VAR
  1834. # ------------------------------------
  1835. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1836. ac_fn_cxx_check_func ()
  1837. {
  1838. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1840. $as_echo_n "checking for $2... " >&6; }
  1841. if eval \${$3+:} false; then :
  1842. $as_echo_n "(cached) " >&6
  1843. else
  1844. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1845. /* end build/confdefs.h. */
  1846. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1847. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1848. #define $2 innocuous_$2
  1849. /* System header to define __stub macros and hopefully few prototypes,
  1850. which can conflict with char $2 (); below.
  1851. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1852. <limits.h> exists even on freestanding compilers. */
  1853. #ifdef __STDC__
  1854. # include <limits.h>
  1855. #else
  1856. # include <assert.h>
  1857. #endif
  1858. #undef $2
  1859. /* Override any GCC internal prototype to avoid an error.
  1860. Use char because int might match the return type of a GCC
  1861. builtin and then its argument prototype would still apply. */
  1862. #ifdef __cplusplus
  1863. extern "C"
  1864. #endif
  1865. char $2 ();
  1866. /* The GNU C library defines this for functions which it implements
  1867. to always fail with ENOSYS. Some functions are actually named
  1868. something starting with __ and the normal name is an alias. */
  1869. #if defined __stub_$2 || defined __stub___$2
  1870. choke me
  1871. #endif
  1872. int
  1873. main ()
  1874. {
  1875. return $2 ();
  1876. ;
  1877. return 0;
  1878. }
  1879. _ACEOF
  1880. if ac_fn_cxx_try_link "$LINENO"; then :
  1881. eval "$3=yes"
  1882. else
  1883. eval "$3=no"
  1884. fi
  1885. rm -f core conftest.err conftest.$ac_objext \
  1886. conftest$ac_exeext conftest.$ac_ext
  1887. fi
  1888. eval ac_res=\$$3
  1889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1890. $as_echo "$ac_res" >&6; }
  1891. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1892. } # ac_fn_cxx_check_func
  1893. cat >build/config.log <<_ACEOF
  1894. This file contains any messages produced by compilers while
  1895. running configure, to aid debugging if configure makes a mistake.
  1896. It was created by $as_me, which was
  1897. generated by GNU Autoconf 2.69. Invocation command line was
  1898. $ $0 $@
  1899. _ACEOF
  1900. exec 5>>build/config.log
  1901. {
  1902. cat <<_ASUNAME
  1903. ## --------- ##
  1904. ## Platform. ##
  1905. ## --------- ##
  1906. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1907. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1908. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1909. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1910. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1911. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1912. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1913. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1914. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1915. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1916. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1917. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1918. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1919. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1920. _ASUNAME
  1921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1922. for as_dir in $PATH
  1923. do
  1924. IFS=$as_save_IFS
  1925. test -z "$as_dir" && as_dir=.
  1926. $as_echo "PATH: $as_dir"
  1927. done
  1928. IFS=$as_save_IFS
  1929. } >&5
  1930. cat >&5 <<_ACEOF
  1931. ## ----------- ##
  1932. ## Core tests. ##
  1933. ## ----------- ##
  1934. _ACEOF
  1935. # Keep a trace of the command line.
  1936. # Strip out --no-create and --no-recursion so they do not pile up.
  1937. # Strip out --silent because we don't want to record it for future runs.
  1938. # Also quote any args containing shell meta-characters.
  1939. # Make two passes to allow for proper duplicate-argument suppression.
  1940. ac_configure_args=
  1941. ac_configure_args0=
  1942. ac_configure_args1=
  1943. ac_must_keep_next=false
  1944. for ac_pass in 1 2
  1945. do
  1946. for ac_arg
  1947. do
  1948. case $ac_arg in
  1949. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1950. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1951. | -silent | --silent | --silen | --sile | --sil)
  1952. continue ;;
  1953. *\'*)
  1954. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1955. esac
  1956. case $ac_pass in
  1957. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1958. 2)
  1959. as_fn_append ac_configure_args1 " '$ac_arg'"
  1960. if test $ac_must_keep_next = true; then
  1961. ac_must_keep_next=false # Got value, back to normal.
  1962. else
  1963. case $ac_arg in
  1964. *=* | --config-cache | -C | -disable-* | --disable-* \
  1965. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1966. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1967. | -with-* | --with-* | -without-* | --without-* | --x)
  1968. case "$ac_configure_args0 " in
  1969. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1970. esac
  1971. ;;
  1972. -* ) ac_must_keep_next=true ;;
  1973. esac
  1974. fi
  1975. as_fn_append ac_configure_args " '$ac_arg'"
  1976. ;;
  1977. esac
  1978. done
  1979. done
  1980. { ac_configure_args0=; unset ac_configure_args0;}
  1981. { ac_configure_args1=; unset ac_configure_args1;}
  1982. # When interrupted or exit'd, cleanup temporary files, and complete
  1983. # build/config.log. We remove comments because anyway the quotes in there
  1984. # would cause problems or look ugly.
  1985. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1986. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1987. trap 'exit_status=$?
  1988. # Save into build/config.log some information that might help in debugging.
  1989. {
  1990. echo
  1991. $as_echo "## ---------------- ##
  1992. ## Cache variables. ##
  1993. ## ---------------- ##"
  1994. echo
  1995. # The following way of writing the cache mishandles newlines in values,
  1996. (
  1997. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1998. eval ac_val=\$$ac_var
  1999. case $ac_val in #(
  2000. *${as_nl}*)
  2001. case $ac_var in #(
  2002. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2003. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2004. esac
  2005. case $ac_var in #(
  2006. _ | IFS | as_nl) ;; #(
  2007. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2008. *) { eval $ac_var=; unset $ac_var;} ;;
  2009. esac ;;
  2010. esac
  2011. done
  2012. (set) 2>&1 |
  2013. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2014. *${as_nl}ac_space=\ *)
  2015. sed -n \
  2016. "s/'\''/'\''\\\\'\'''\''/g;
  2017. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2018. ;; #(
  2019. *)
  2020. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2021. ;;
  2022. esac |
  2023. sort
  2024. )
  2025. echo
  2026. $as_echo "## ----------------- ##
  2027. ## Output variables. ##
  2028. ## ----------------- ##"
  2029. echo
  2030. for ac_var in $ac_subst_vars
  2031. do
  2032. eval ac_val=\$$ac_var
  2033. case $ac_val in
  2034. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2035. esac
  2036. $as_echo "$ac_var='\''$ac_val'\''"
  2037. done | sort
  2038. echo
  2039. if test -n "$ac_subst_files"; then
  2040. $as_echo "## ------------------- ##
  2041. ## File substitutions. ##
  2042. ## ------------------- ##"
  2043. echo
  2044. for ac_var in $ac_subst_files
  2045. do
  2046. eval ac_val=\$$ac_var
  2047. case $ac_val in
  2048. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2049. esac
  2050. $as_echo "$ac_var='\''$ac_val'\''"
  2051. done | sort
  2052. echo
  2053. fi
  2054. if test -s build/confdefs.h; then
  2055. $as_echo "## ----------- ##
  2056. ## build/confdefs.h. ##
  2057. ## ----------- ##"
  2058. echo
  2059. cat build/confdefs.h
  2060. echo
  2061. fi
  2062. test "$ac_signal" != 0 &&
  2063. $as_echo "$as_me: caught signal $ac_signal"
  2064. $as_echo "$as_me: exit $exit_status"
  2065. } >&5
  2066. rm -f core *.core core.conftest.* &&
  2067. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2068. exit $exit_status
  2069. ' 0
  2070. for ac_signal in 1 2 13 15; do
  2071. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2072. done
  2073. ac_signal=0
  2074. # build/confdefs.h avoids OS command line length limits that DEFS can exceed.
  2075. rm -f -r conftest* build/confdefs.h
  2076. $as_echo "/* build/confdefs.h */" > build/confdefs.h
  2077. # Predefined preprocessor variables.
  2078. cat >>build/confdefs.h <<_ACEOF
  2079. #define PACKAGE_NAME "$PACKAGE_NAME"
  2080. _ACEOF
  2081. cat >>build/confdefs.h <<_ACEOF
  2082. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2083. _ACEOF
  2084. cat >>build/confdefs.h <<_ACEOF
  2085. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2086. _ACEOF
  2087. cat >>build/confdefs.h <<_ACEOF
  2088. #define PACKAGE_STRING "$PACKAGE_STRING"
  2089. _ACEOF
  2090. cat >>build/confdefs.h <<_ACEOF
  2091. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2092. _ACEOF
  2093. cat >>build/confdefs.h <<_ACEOF
  2094. #define PACKAGE_URL "$PACKAGE_URL"
  2095. _ACEOF
  2096. # Let the site file select an alternate cache file if it wants to.
  2097. # Prefer an explicitly selected file to automatically selected ones.
  2098. ac_site_file1=NONE
  2099. ac_site_file2=NONE
  2100. if test -n "$CONFIG_SITE"; then
  2101. # We do not want a PATH search for config.site.
  2102. case $CONFIG_SITE in #((
  2103. -*) ac_site_file1=./$CONFIG_SITE;;
  2104. */*) ac_site_file1=$CONFIG_SITE;;
  2105. *) ac_site_file1=./$CONFIG_SITE;;
  2106. esac
  2107. elif test "x$prefix" != xNONE; then
  2108. ac_site_file1=$prefix/share/config.site
  2109. ac_site_file2=$prefix/etc/config.site
  2110. else
  2111. ac_site_file1=$ac_default_prefix/share/config.site
  2112. ac_site_file2=$ac_default_prefix/etc/config.site
  2113. fi
  2114. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2115. do
  2116. test "x$ac_site_file" = xNONE && continue
  2117. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2118. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2119. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2120. sed 's/^/| /' "$ac_site_file" >&5
  2121. . "$ac_site_file" \
  2122. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2123. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2124. as_fn_error $? "failed to load site script $ac_site_file
  2125. See \`build/config.log' for more details" "$LINENO" 5; }
  2126. fi
  2127. done
  2128. if test -r "$cache_file"; then
  2129. # Some versions of bash will fail to source /dev/null (special files
  2130. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2131. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2132. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2133. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2134. case $cache_file in
  2135. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2136. *) . "./$cache_file";;
  2137. esac
  2138. fi
  2139. else
  2140. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2141. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2142. >$cache_file
  2143. fi
  2144. as_fn_append ac_header_list " sys/time.h"
  2145. as_fn_append ac_header_list " unistd.h"
  2146. as_fn_append ac_func_list " alarm"
  2147. as_fn_append ac_header_list " stdlib.h"
  2148. as_fn_append ac_header_list " sys/param.h"
  2149. # Check that the precious variables saved in the cache have kept the same
  2150. # value.
  2151. ac_cache_corrupted=false
  2152. for ac_var in $ac_precious_vars; do
  2153. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2154. eval ac_new_set=\$ac_env_${ac_var}_set
  2155. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2156. eval ac_new_val=\$ac_env_${ac_var}_value
  2157. case $ac_old_set,$ac_new_set in
  2158. set,)
  2159. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2160. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2161. ac_cache_corrupted=: ;;
  2162. ,set)
  2163. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2164. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2165. ac_cache_corrupted=: ;;
  2166. ,);;
  2167. *)
  2168. if test "x$ac_old_val" != "x$ac_new_val"; then
  2169. # differences in whitespace do not lead to failure.
  2170. ac_old_val_w=`echo x $ac_old_val`
  2171. ac_new_val_w=`echo x $ac_new_val`
  2172. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2173. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2174. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2175. ac_cache_corrupted=:
  2176. else
  2177. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2178. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2179. eval $ac_var=\$ac_old_val
  2180. fi
  2181. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2182. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2183. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2184. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2185. fi;;
  2186. esac
  2187. # Pass precious variables to build/config.status.
  2188. if test "$ac_new_set" = set; then
  2189. case $ac_new_val in
  2190. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2191. *) ac_arg=$ac_var=$ac_new_val ;;
  2192. esac
  2193. case " $ac_configure_args " in
  2194. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2195. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2196. esac
  2197. fi
  2198. done
  2199. if $ac_cache_corrupted; then
  2200. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2201. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2202. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2203. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2204. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2205. fi
  2206. ## -------------------- ##
  2207. ## Main body of script. ##
  2208. ## -------------------- ##
  2209. ac_ext=c
  2210. ac_cpp='$CPP $CPPFLAGS'
  2211. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2212. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2213. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2214. ac_config_headers="$ac_config_headers src/config.h"
  2215. ac_aux_dir=
  2216. for ac_dir in build/autotools "$srcdir"/build/autotools; do
  2217. if test -f "$ac_dir/install-sh"; then
  2218. ac_aux_dir=$ac_dir
  2219. ac_install_sh="$ac_aux_dir/install-sh -c"
  2220. break
  2221. elif test -f "$ac_dir/install.sh"; then
  2222. ac_aux_dir=$ac_dir
  2223. ac_install_sh="$ac_aux_dir/install.sh -c"
  2224. break
  2225. elif test -f "$ac_dir/shtool"; then
  2226. ac_aux_dir=$ac_dir
  2227. ac_install_sh="$ac_aux_dir/shtool install -c"
  2228. break
  2229. fi
  2230. done
  2231. if test -z "$ac_aux_dir"; then
  2232. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build/autotools \"$srcdir\"/build/autotools" "$LINENO" 5
  2233. fi
  2234. # These three variables are undocumented and unsupported,
  2235. # and are intended to be withdrawn in a future Autoconf release.
  2236. # They can cause serious problems if a builder's source tree is in a directory
  2237. # whose full name contains unusual characters.
  2238. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2239. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2240. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2241. # Remove --cache-file and --srcdir arguments so they do not pile up.
  2242. egg_ac_parameters=
  2243. ac_prev=
  2244. for ac_arg in $ac_configure_args; do
  2245. if test -n "$ac_prev"; then
  2246. ac_prev=
  2247. continue
  2248. fi
  2249. case $ac_arg in
  2250. -cache-file | --cache-file | --cache-fil | --cache-fi \
  2251. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  2252. ac_prev=cache_file ;;
  2253. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  2254. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  2255. | --c=*)
  2256. ;;
  2257. --config-cache | -C)
  2258. ;;
  2259. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  2260. ac_prev=srcdir ;;
  2261. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  2262. ;;
  2263. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  2264. esac
  2265. done
  2266. # Setup build environment
  2267. #AC_REQUIRE_CPP
  2268. ac_ext=cpp
  2269. ac_cpp='$CXXCPP $CPPFLAGS'
  2270. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2271. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2272. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2273. ac_ext=cpp
  2274. ac_cpp='$CXXCPP $CPPFLAGS'
  2275. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2276. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2277. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2278. if test -z "$CXX"; then
  2279. if test -n "$CCC"; then
  2280. CXX=$CCC
  2281. else
  2282. if test -n "$ac_tool_prefix"; then
  2283. for ac_prog in g++49 g++-4.9 g++48 g++-4.8 g++47 g++-4.7 clang++ g++46 g++-4.6 g++45 g++-4.5 g++-4.4 g++-4.4.1 g++-4.4.2 g++-4.4.0 g++44 g++4 eg++ g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2284. do
  2285. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2286. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2288. $as_echo_n "checking for $ac_word... " >&6; }
  2289. if ${ac_cv_prog_CXX+:} false; then :
  2290. $as_echo_n "(cached) " >&6
  2291. else
  2292. if test -n "$CXX"; then
  2293. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2294. else
  2295. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2296. for as_dir in $PATH
  2297. do
  2298. IFS=$as_save_IFS
  2299. test -z "$as_dir" && as_dir=.
  2300. for ac_exec_ext in '' $ac_executable_extensions; do
  2301. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2302. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2303. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2304. break 2
  2305. fi
  2306. done
  2307. done
  2308. IFS=$as_save_IFS
  2309. fi
  2310. fi
  2311. CXX=$ac_cv_prog_CXX
  2312. if test -n "$CXX"; then
  2313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2314. $as_echo "$CXX" >&6; }
  2315. else
  2316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2317. $as_echo "no" >&6; }
  2318. fi
  2319. test -n "$CXX" && break
  2320. done
  2321. fi
  2322. if test -z "$CXX"; then
  2323. ac_ct_CXX=$CXX
  2324. for ac_prog in g++49 g++-4.9 g++48 g++-4.8 g++47 g++-4.7 clang++ g++46 g++-4.6 g++45 g++-4.5 g++-4.4 g++-4.4.1 g++-4.4.2 g++-4.4.0 g++44 g++4 eg++ g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2325. do
  2326. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2327. set dummy $ac_prog; ac_word=$2
  2328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2329. $as_echo_n "checking for $ac_word... " >&6; }
  2330. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  2331. $as_echo_n "(cached) " >&6
  2332. else
  2333. if test -n "$ac_ct_CXX"; then
  2334. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2335. else
  2336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2337. for as_dir in $PATH
  2338. do
  2339. IFS=$as_save_IFS
  2340. test -z "$as_dir" && as_dir=.
  2341. for ac_exec_ext in '' $ac_executable_extensions; do
  2342. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2343. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2344. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2345. break 2
  2346. fi
  2347. done
  2348. done
  2349. IFS=$as_save_IFS
  2350. fi
  2351. fi
  2352. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2353. if test -n "$ac_ct_CXX"; then
  2354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2355. $as_echo "$ac_ct_CXX" >&6; }
  2356. else
  2357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2358. $as_echo "no" >&6; }
  2359. fi
  2360. test -n "$ac_ct_CXX" && break
  2361. done
  2362. if test "x$ac_ct_CXX" = x; then
  2363. CXX="g++"
  2364. else
  2365. case $cross_compiling:$ac_tool_warned in
  2366. yes:)
  2367. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2368. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2369. ac_tool_warned=yes ;;
  2370. esac
  2371. CXX=$ac_ct_CXX
  2372. fi
  2373. fi
  2374. fi
  2375. fi
  2376. # Provide some information about the compiler.
  2377. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2378. set X $ac_compile
  2379. ac_compiler=$2
  2380. for ac_option in --version -v -V -qversion; do
  2381. { { ac_try="$ac_compiler $ac_option >&5"
  2382. case "(($ac_try" in
  2383. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2384. *) ac_try_echo=$ac_try;;
  2385. esac
  2386. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2387. $as_echo "$ac_try_echo"; } >&5
  2388. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2389. ac_status=$?
  2390. if test -s conftest.err; then
  2391. sed '10a\
  2392. ... rest of stderr output deleted ...
  2393. 10q' conftest.err >conftest.er1
  2394. cat conftest.er1 >&5
  2395. fi
  2396. rm -f conftest.er1 conftest.err
  2397. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2398. test $ac_status = 0; }
  2399. done
  2400. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2401. /* end build/confdefs.h. */
  2402. int
  2403. main ()
  2404. {
  2405. ;
  2406. return 0;
  2407. }
  2408. _ACEOF
  2409. ac_clean_files_save=$ac_clean_files
  2410. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2411. # Try to create an executable without -o first, disregard a.out.
  2412. # It will help us diagnose broken compilers, and finding out an intuition
  2413. # of exeext.
  2414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2415. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2416. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2417. # The possible output files:
  2418. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2419. ac_rmfiles=
  2420. for ac_file in $ac_files
  2421. do
  2422. case $ac_file in
  2423. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2424. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2425. esac
  2426. done
  2427. rm -f $ac_rmfiles
  2428. if { { ac_try="$ac_link_default"
  2429. case "(($ac_try" in
  2430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2431. *) ac_try_echo=$ac_try;;
  2432. esac
  2433. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2434. $as_echo "$ac_try_echo"; } >&5
  2435. (eval "$ac_link_default") 2>&5
  2436. ac_status=$?
  2437. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2438. test $ac_status = 0; }; then :
  2439. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2440. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2441. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2442. # so that the user can short-circuit this test for compilers unknown to
  2443. # Autoconf.
  2444. for ac_file in $ac_files ''
  2445. do
  2446. test -f "$ac_file" || continue
  2447. case $ac_file in
  2448. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2449. ;;
  2450. [ab].out )
  2451. # We found the default executable, but exeext='' is most
  2452. # certainly right.
  2453. break;;
  2454. *.* )
  2455. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2456. then :; else
  2457. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2458. fi
  2459. # We set ac_cv_exeext here because the later test for it is not
  2460. # safe: cross compilers may not add the suffix if given an `-o'
  2461. # argument, so we may need to know it at that point already.
  2462. # Even if this section looks crufty: it has the advantage of
  2463. # actually working.
  2464. break;;
  2465. * )
  2466. break;;
  2467. esac
  2468. done
  2469. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2470. else
  2471. ac_file=''
  2472. fi
  2473. if test -z "$ac_file"; then :
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2475. $as_echo "no" >&6; }
  2476. $as_echo "$as_me: failed program was:" >&5
  2477. sed 's/^/| /' conftest.$ac_ext >&5
  2478. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2479. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2480. as_fn_error 77 "C++ compiler cannot create executables
  2481. See \`build/config.log' for more details" "$LINENO" 5; }
  2482. else
  2483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2484. $as_echo "yes" >&6; }
  2485. fi
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2487. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2489. $as_echo "$ac_file" >&6; }
  2490. ac_exeext=$ac_cv_exeext
  2491. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2492. ac_clean_files=$ac_clean_files_save
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2494. $as_echo_n "checking for suffix of executables... " >&6; }
  2495. if { { ac_try="$ac_link"
  2496. case "(($ac_try" in
  2497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2498. *) ac_try_echo=$ac_try;;
  2499. esac
  2500. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2501. $as_echo "$ac_try_echo"; } >&5
  2502. (eval "$ac_link") 2>&5
  2503. ac_status=$?
  2504. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2505. test $ac_status = 0; }; then :
  2506. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2507. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2508. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2509. # `rm'.
  2510. for ac_file in conftest.exe conftest conftest.*; do
  2511. test -f "$ac_file" || continue
  2512. case $ac_file in
  2513. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2514. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2515. break;;
  2516. * ) break;;
  2517. esac
  2518. done
  2519. else
  2520. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2521. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2522. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2523. See \`build/config.log' for more details" "$LINENO" 5; }
  2524. fi
  2525. rm -f conftest conftest$ac_cv_exeext
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2527. $as_echo "$ac_cv_exeext" >&6; }
  2528. rm -f conftest.$ac_ext
  2529. EXEEXT=$ac_cv_exeext
  2530. ac_exeext=$EXEEXT
  2531. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2532. /* end build/confdefs.h. */
  2533. #include <stdio.h>
  2534. int
  2535. main ()
  2536. {
  2537. FILE *f = fopen ("conftest.out", "w");
  2538. return ferror (f) || fclose (f) != 0;
  2539. ;
  2540. return 0;
  2541. }
  2542. _ACEOF
  2543. ac_clean_files="$ac_clean_files conftest.out"
  2544. # Check that the compiler produces executables we can run. If not, either
  2545. # the compiler is broken, or we cross compile.
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2547. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2548. if test "$cross_compiling" != yes; then
  2549. { { ac_try="$ac_link"
  2550. case "(($ac_try" in
  2551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2552. *) ac_try_echo=$ac_try;;
  2553. esac
  2554. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2555. $as_echo "$ac_try_echo"; } >&5
  2556. (eval "$ac_link") 2>&5
  2557. ac_status=$?
  2558. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2559. test $ac_status = 0; }
  2560. if { ac_try='./conftest$ac_cv_exeext'
  2561. { { case "(($ac_try" in
  2562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2563. *) ac_try_echo=$ac_try;;
  2564. esac
  2565. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2566. $as_echo "$ac_try_echo"; } >&5
  2567. (eval "$ac_try") 2>&5
  2568. ac_status=$?
  2569. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2570. test $ac_status = 0; }; }; then
  2571. cross_compiling=no
  2572. else
  2573. if test "$cross_compiling" = maybe; then
  2574. cross_compiling=yes
  2575. else
  2576. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2577. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2578. as_fn_error $? "cannot run C++ compiled programs.
  2579. If you meant to cross compile, use \`--host'.
  2580. See \`build/config.log' for more details" "$LINENO" 5; }
  2581. fi
  2582. fi
  2583. fi
  2584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2585. $as_echo "$cross_compiling" >&6; }
  2586. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2587. ac_clean_files=$ac_clean_files_save
  2588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2589. $as_echo_n "checking for suffix of object files... " >&6; }
  2590. if ${ac_cv_objext+:} false; then :
  2591. $as_echo_n "(cached) " >&6
  2592. else
  2593. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2594. /* end build/confdefs.h. */
  2595. int
  2596. main ()
  2597. {
  2598. ;
  2599. return 0;
  2600. }
  2601. _ACEOF
  2602. rm -f conftest.o conftest.obj
  2603. if { { ac_try="$ac_compile"
  2604. case "(($ac_try" in
  2605. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2606. *) ac_try_echo=$ac_try;;
  2607. esac
  2608. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2609. $as_echo "$ac_try_echo"; } >&5
  2610. (eval "$ac_compile") 2>&5
  2611. ac_status=$?
  2612. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2613. test $ac_status = 0; }; then :
  2614. for ac_file in conftest.o conftest.obj conftest.*; do
  2615. test -f "$ac_file" || continue;
  2616. case $ac_file in
  2617. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2618. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2619. break;;
  2620. esac
  2621. done
  2622. else
  2623. $as_echo "$as_me: failed program was:" >&5
  2624. sed 's/^/| /' conftest.$ac_ext >&5
  2625. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2626. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2627. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2628. See \`build/config.log' for more details" "$LINENO" 5; }
  2629. fi
  2630. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2631. fi
  2632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2633. $as_echo "$ac_cv_objext" >&6; }
  2634. OBJEXT=$ac_cv_objext
  2635. ac_objext=$OBJEXT
  2636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  2637. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2638. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  2639. $as_echo_n "(cached) " >&6
  2640. else
  2641. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2642. /* end build/confdefs.h. */
  2643. int
  2644. main ()
  2645. {
  2646. #ifndef __GNUC__
  2647. choke me
  2648. #endif
  2649. ;
  2650. return 0;
  2651. }
  2652. _ACEOF
  2653. if ac_fn_cxx_try_compile "$LINENO"; then :
  2654. ac_compiler_gnu=yes
  2655. else
  2656. ac_compiler_gnu=no
  2657. fi
  2658. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2659. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2660. fi
  2661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  2662. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2663. if test $ac_compiler_gnu = yes; then
  2664. GXX=yes
  2665. else
  2666. GXX=
  2667. fi
  2668. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2669. ac_save_CXXFLAGS=$CXXFLAGS
  2670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  2671. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2672. if ${ac_cv_prog_cxx_g+:} false; then :
  2673. $as_echo_n "(cached) " >&6
  2674. else
  2675. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2676. ac_cxx_werror_flag=yes
  2677. ac_cv_prog_cxx_g=no
  2678. CXXFLAGS="-g"
  2679. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2680. /* end build/confdefs.h. */
  2681. int
  2682. main ()
  2683. {
  2684. ;
  2685. return 0;
  2686. }
  2687. _ACEOF
  2688. if ac_fn_cxx_try_compile "$LINENO"; then :
  2689. ac_cv_prog_cxx_g=yes
  2690. else
  2691. CXXFLAGS=""
  2692. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2693. /* end build/confdefs.h. */
  2694. int
  2695. main ()
  2696. {
  2697. ;
  2698. return 0;
  2699. }
  2700. _ACEOF
  2701. if ac_fn_cxx_try_compile "$LINENO"; then :
  2702. else
  2703. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2704. CXXFLAGS="-g"
  2705. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2706. /* end build/confdefs.h. */
  2707. int
  2708. main ()
  2709. {
  2710. ;
  2711. return 0;
  2712. }
  2713. _ACEOF
  2714. if ac_fn_cxx_try_compile "$LINENO"; then :
  2715. ac_cv_prog_cxx_g=yes
  2716. fi
  2717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2718. fi
  2719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2720. fi
  2721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2722. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2723. fi
  2724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  2725. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  2726. if test "$ac_test_CXXFLAGS" = set; then
  2727. CXXFLAGS=$ac_save_CXXFLAGS
  2728. elif test $ac_cv_prog_cxx_g = yes; then
  2729. if test "$GXX" = yes; then
  2730. CXXFLAGS="-g -O2"
  2731. else
  2732. CXXFLAGS="-g"
  2733. fi
  2734. else
  2735. if test "$GXX" = yes; then
  2736. CXXFLAGS="-O2"
  2737. else
  2738. CXXFLAGS=
  2739. fi
  2740. fi
  2741. ac_ext=cpp
  2742. ac_cpp='$CXXCPP $CPPFLAGS'
  2743. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2744. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2745. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2746. ac_ext=cpp
  2747. ac_cpp='$CXXCPP $CPPFLAGS'
  2748. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2749. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2750. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  2752. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  2753. if test -z "$CXXCPP"; then
  2754. if ${ac_cv_prog_CXXCPP+:} false; then :
  2755. $as_echo_n "(cached) " >&6
  2756. else
  2757. # Double quotes because CXXCPP needs to be expanded
  2758. for CXXCPP in "$CXX -E" "/lib/cpp"
  2759. do
  2760. ac_preproc_ok=false
  2761. for ac_cxx_preproc_warn_flag in '' yes
  2762. do
  2763. # Use a header file that comes with gcc, so configuring glibc
  2764. # with a fresh cross-compiler works.
  2765. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2766. # <limits.h> exists even on freestanding compilers.
  2767. # On the NeXT, cc -E runs the code through the compiler's parser,
  2768. # not just through cpp. "Syntax error" is here to catch this case.
  2769. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2770. /* end build/confdefs.h. */
  2771. #ifdef __STDC__
  2772. # include <limits.h>
  2773. #else
  2774. # include <assert.h>
  2775. #endif
  2776. Syntax error
  2777. _ACEOF
  2778. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2779. else
  2780. # Broken: fails on valid input.
  2781. continue
  2782. fi
  2783. rm -f conftest.err conftest.i conftest.$ac_ext
  2784. # OK, works on sane cases. Now check whether nonexistent headers
  2785. # can be detected and how.
  2786. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2787. /* end build/confdefs.h. */
  2788. #include <ac_nonexistent.h>
  2789. _ACEOF
  2790. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2791. # Broken: success on invalid input.
  2792. continue
  2793. else
  2794. # Passes both tests.
  2795. ac_preproc_ok=:
  2796. break
  2797. fi
  2798. rm -f conftest.err conftest.i conftest.$ac_ext
  2799. done
  2800. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2801. rm -f conftest.i conftest.err conftest.$ac_ext
  2802. if $ac_preproc_ok; then :
  2803. break
  2804. fi
  2805. done
  2806. ac_cv_prog_CXXCPP=$CXXCPP
  2807. fi
  2808. CXXCPP=$ac_cv_prog_CXXCPP
  2809. else
  2810. ac_cv_prog_CXXCPP=$CXXCPP
  2811. fi
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  2813. $as_echo "$CXXCPP" >&6; }
  2814. ac_preproc_ok=false
  2815. for ac_cxx_preproc_warn_flag in '' yes
  2816. do
  2817. # Use a header file that comes with gcc, so configuring glibc
  2818. # with a fresh cross-compiler works.
  2819. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2820. # <limits.h> exists even on freestanding compilers.
  2821. # On the NeXT, cc -E runs the code through the compiler's parser,
  2822. # not just through cpp. "Syntax error" is here to catch this case.
  2823. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2824. /* end build/confdefs.h. */
  2825. #ifdef __STDC__
  2826. # include <limits.h>
  2827. #else
  2828. # include <assert.h>
  2829. #endif
  2830. Syntax error
  2831. _ACEOF
  2832. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2833. else
  2834. # Broken: fails on valid input.
  2835. continue
  2836. fi
  2837. rm -f conftest.err conftest.i conftest.$ac_ext
  2838. # OK, works on sane cases. Now check whether nonexistent headers
  2839. # can be detected and how.
  2840. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2841. /* end build/confdefs.h. */
  2842. #include <ac_nonexistent.h>
  2843. _ACEOF
  2844. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2845. # Broken: success on invalid input.
  2846. continue
  2847. else
  2848. # Passes both tests.
  2849. ac_preproc_ok=:
  2850. break
  2851. fi
  2852. rm -f conftest.err conftest.i conftest.$ac_ext
  2853. done
  2854. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2855. rm -f conftest.i conftest.err conftest.$ac_ext
  2856. if $ac_preproc_ok; then :
  2857. else
  2858. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2859. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2860. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  2861. See \`build/config.log' for more details" "$LINENO" 5; }
  2862. fi
  2863. ac_ext=cpp
  2864. ac_cpp='$CXXCPP $CPPFLAGS'
  2865. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2866. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2867. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2868. ax_cxx_compile_cxx11_required=true
  2869. ac_ext=cpp
  2870. ac_cpp='$CXXCPP $CPPFLAGS'
  2871. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2872. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2873. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2874. ac_success=no
  2875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
  2876. $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
  2877. if ${ax_cv_cxx_compile_cxx11+:} false; then :
  2878. $as_echo_n "(cached) " >&6
  2879. else
  2880. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2881. /* end build/confdefs.h. */
  2882. template <typename T>
  2883. struct check
  2884. {
  2885. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  2886. };
  2887. struct Base {
  2888. virtual void f() {}
  2889. };
  2890. struct Child : public Base {
  2891. virtual void f() override {}
  2892. };
  2893. typedef check<check<bool>> right_angle_brackets;
  2894. int a;
  2895. decltype(a) b;
  2896. typedef check<int> check_type;
  2897. check_type c;
  2898. check_type&& cr = static_cast<check_type&&>(c);
  2899. auto d = a;
  2900. auto l = [](){};
  2901. _ACEOF
  2902. if ac_fn_cxx_try_compile "$LINENO"; then :
  2903. ax_cv_cxx_compile_cxx11=yes
  2904. else
  2905. ax_cv_cxx_compile_cxx11=no
  2906. fi
  2907. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2908. fi
  2909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
  2910. $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
  2911. if test x$ax_cv_cxx_compile_cxx11 = xyes; then
  2912. ac_success=yes
  2913. fi
  2914. if test x$ac_success = xno; then
  2915. for switch in -std=c++11 -std=c++0x; do
  2916. cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  2917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  2918. $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
  2919. if eval \${$cachevar+:} false; then :
  2920. $as_echo_n "(cached) " >&6
  2921. else
  2922. ac_save_CXXFLAGS="$CXXFLAGS"
  2923. CXXFLAGS="$CXXFLAGS $switch"
  2924. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2925. /* end build/confdefs.h. */
  2926. template <typename T>
  2927. struct check
  2928. {
  2929. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  2930. };
  2931. struct Base {
  2932. virtual void f() {}
  2933. };
  2934. struct Child : public Base {
  2935. virtual void f() override {}
  2936. };
  2937. typedef check<check<bool>> right_angle_brackets;
  2938. int a;
  2939. decltype(a) b;
  2940. typedef check<int> check_type;
  2941. check_type c;
  2942. check_type&& cr = static_cast<check_type&&>(c);
  2943. auto d = a;
  2944. auto l = [](){};
  2945. _ACEOF
  2946. if ac_fn_cxx_try_compile "$LINENO"; then :
  2947. eval $cachevar=yes
  2948. else
  2949. eval $cachevar=no
  2950. fi
  2951. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2952. CXXFLAGS="$ac_save_CXXFLAGS"
  2953. fi
  2954. eval ac_res=\$$cachevar
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2956. $as_echo "$ac_res" >&6; }
  2957. if eval test x\$$cachevar = xyes; then
  2958. CXXFLAGS="$CXXFLAGS $switch"
  2959. ac_success=yes
  2960. break
  2961. fi
  2962. done
  2963. fi
  2964. ac_ext=cpp
  2965. ac_cpp='$CXXCPP $CPPFLAGS'
  2966. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2967. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2968. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2969. if test x$ax_cxx_compile_cxx11_required = xtrue; then
  2970. if test x$ac_success = xno; then
  2971. as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
  2972. fi
  2973. else
  2974. if test x$ac_success = xno; then
  2975. HAVE_CXX11=0
  2976. { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
  2977. $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
  2978. else
  2979. HAVE_CXX11=1
  2980. $as_echo "#define HAVE_CXX11 1" >>build/confdefs.h
  2981. fi
  2982. fi
  2983. if test "${cross_compiling-x}" = "x"
  2984. then
  2985. cat << 'EOF' >&2
  2986. configure: error:
  2987. This system does not appear to have a working C compiler.
  2988. A working C compiler is required to compile Wraith.
  2989. EOF
  2990. exit 1
  2991. fi
  2992. if test -n "$GXX"; then
  2993. CXXFLAGS="$CXXFLAGS"
  2994. fi
  2995. #checkpoint
  2996. cat >confcache <<\_ACEOF
  2997. # This file is a shell script that caches the results of configure
  2998. # tests run on this system so they can be shared between configure
  2999. # scripts and configure runs, see configure's option --config-cache.
  3000. # It is not useful on other systems. If it contains results you don't
  3001. # want to keep, you may remove or edit it.
  3002. #
  3003. # build/config.status only pays attention to the cache file if you give it
  3004. # the --recheck option to rerun configure.
  3005. #
  3006. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3007. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3008. # following values.
  3009. _ACEOF
  3010. # The following way of writing the cache mishandles newlines in values,
  3011. # but we know of no workaround that is simple, portable, and efficient.
  3012. # So, we kill variables containing newlines.
  3013. # Ultrix sh set writes to stderr and can't be redirected directly,
  3014. # and sets the high bit in the cache file unless we assign to the vars.
  3015. (
  3016. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3017. eval ac_val=\$$ac_var
  3018. case $ac_val in #(
  3019. *${as_nl}*)
  3020. case $ac_var in #(
  3021. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3022. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3023. esac
  3024. case $ac_var in #(
  3025. _ | IFS | as_nl) ;; #(
  3026. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3027. *) { eval $ac_var=; unset $ac_var;} ;;
  3028. esac ;;
  3029. esac
  3030. done
  3031. (set) 2>&1 |
  3032. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3033. *${as_nl}ac_space=\ *)
  3034. # `set' does not quote correctly, so add quotes: double-quote
  3035. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3036. sed -n \
  3037. "s/'/'\\\\''/g;
  3038. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3039. ;; #(
  3040. *)
  3041. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3042. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3043. ;;
  3044. esac |
  3045. sort
  3046. ) |
  3047. sed '
  3048. /^ac_cv_env_/b end
  3049. t clear
  3050. :clear
  3051. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3052. t end
  3053. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3054. :end' >>confcache
  3055. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3056. if test -w "$cache_file"; then
  3057. if test "x$cache_file" != "x/dev/null"; then
  3058. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3059. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3060. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3061. cat confcache >"$cache_file"
  3062. else
  3063. case $cache_file in #(
  3064. */* | ?:*)
  3065. mv -f confcache "$cache_file"$$ &&
  3066. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3067. *)
  3068. mv -f confcache "$cache_file" ;;
  3069. esac
  3070. fi
  3071. fi
  3072. else
  3073. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3074. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3075. fi
  3076. fi
  3077. rm -f confcache
  3078. # Speedup compile
  3079. if test -n "$GXX" && test -z "$no_wall"; then
  3080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wall" >&5
  3081. $as_echo_n "checking whether the compiler understands -Wall... " >&6; }
  3082. if ${egg_cv_var_ccwall+:} false; then :
  3083. $as_echo_n "(cached) " >&6
  3084. else
  3085. ac_old_CXXFLAGS="$CXXFLAGS"
  3086. CXXFLAGS="$CXXFLAGS -Wall"
  3087. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3088. /* end build/confdefs.h. */
  3089. int main ()
  3090. {
  3091. return(0);
  3092. }
  3093. _ACEOF
  3094. if ac_fn_cxx_try_compile "$LINENO"; then :
  3095. egg_cv_var_ccwall="yes"
  3096. else
  3097. egg_cv_var_ccwall="no"
  3098. fi
  3099. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3100. CXXFLAGS="$ac_old_CXXFLAGS"
  3101. fi
  3102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccwall" >&5
  3103. $as_echo "$egg_cv_var_ccwall" >&6; }
  3104. if test "$egg_cv_var_ccwall" = "yes"; then
  3105. CXXFLAGS="$CXXFLAGS -Wall"
  3106. fi
  3107. fi
  3108. if test -n "$GXX" && test -z "$no_pipe"; then
  3109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -pipe" >&5
  3110. $as_echo_n "checking whether the compiler understands -pipe... " >&6; }
  3111. if ${egg_cv_var_ccpipe+:} false; then :
  3112. $as_echo_n "(cached) " >&6
  3113. else
  3114. ac_old_CXX="$CXX"
  3115. CXX="$CXX -pipe"
  3116. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3117. /* end build/confdefs.h. */
  3118. int main ()
  3119. {
  3120. return(0);
  3121. }
  3122. _ACEOF
  3123. if ac_fn_cxx_try_compile "$LINENO"; then :
  3124. egg_cv_var_ccpipe="yes"
  3125. else
  3126. egg_cv_var_ccpipe="no"
  3127. fi
  3128. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3129. CXX="$ac_old_CXX"
  3130. fi
  3131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccpipe" >&5
  3132. $as_echo "$egg_cv_var_ccpipe" >&6; }
  3133. if test "$egg_cv_var_ccpipe" = "yes"; then
  3134. CXX="$CXX -pipe"
  3135. fi
  3136. fi
  3137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fcolor-diagnostics" >&5
  3138. $as_echo_n "checking whether the compiler understands -fcolor-diagnostics... " >&6; }
  3139. if ${ax_cv_prog_cc_colordiagnostics+:} false; then :
  3140. $as_echo_n "(cached) " >&6
  3141. else
  3142. ac_ext=cpp
  3143. ac_cpp='$CXXCPP $CPPFLAGS'
  3144. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3145. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3146. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3147. ac_saved_flags="$CXXFLAGS"
  3148. CXXFLAGS="-Werror -fcolor-diagnostics"
  3149. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3150. /* end build/confdefs.h. */
  3151. int
  3152. main ()
  3153. {
  3154. ;
  3155. return 0;
  3156. }
  3157. _ACEOF
  3158. if ac_fn_cxx_try_compile "$LINENO"; then :
  3159. ax_cv_prog_cc_colordiagnostics="yes"
  3160. else
  3161. ax_cv_prog_cc_colordiagnostics="no"
  3162. fi
  3163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3164. CXXFLAGS="$ac_saved_flags"
  3165. ac_ext=cpp
  3166. ac_cpp='$CXXCPP $CPPFLAGS'
  3167. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3168. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3169. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3170. fi
  3171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_colordiagnostics" >&5
  3172. $as_echo "$ax_cv_prog_cc_colordiagnostics" >&6; }
  3173. if [ "$ax_cv_prog_cc_colordiagnostics" = "yes" ]; then
  3174. CXXFLAGS="$CXXFLAGS -fcolor-diagnostics"
  3175. elif [ -n "" ]; then
  3176. cat << 'EOF' >&2
  3177. configure: error:
  3178. Your OS or C++ compiler does not support -fcolor-diagnostics.
  3179. This compile flag is required.
  3180. EOF
  3181. exit 1
  3182. fi
  3183. #CXX_FLAG_CHECK([CXXFLAGS], [-Qunused-arguments], [unusedarguments])
  3184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wno-invalid-source-encoding" >&5
  3185. $as_echo_n "checking whether the compiler understands -Wno-invalid-source-encoding... " >&6; }
  3186. if ${ax_cv_prog_cc_invalid_source_encoding+:} false; then :
  3187. $as_echo_n "(cached) " >&6
  3188. else
  3189. ac_ext=cpp
  3190. ac_cpp='$CXXCPP $CPPFLAGS'
  3191. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3192. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3193. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3194. ac_saved_flags="$CXXFLAGS"
  3195. CXXFLAGS="-Werror -Wno-invalid-source-encoding"
  3196. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3197. /* end build/confdefs.h. */
  3198. int
  3199. main ()
  3200. {
  3201. ;
  3202. return 0;
  3203. }
  3204. _ACEOF
  3205. if ac_fn_cxx_try_compile "$LINENO"; then :
  3206. ax_cv_prog_cc_invalid_source_encoding="yes"
  3207. else
  3208. ax_cv_prog_cc_invalid_source_encoding="no"
  3209. fi
  3210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3211. CXXFLAGS="$ac_saved_flags"
  3212. ac_ext=cpp
  3213. ac_cpp='$CXXCPP $CPPFLAGS'
  3214. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3215. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3216. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3217. fi
  3218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_invalid_source_encoding" >&5
  3219. $as_echo "$ax_cv_prog_cc_invalid_source_encoding" >&6; }
  3220. if [ "$ax_cv_prog_cc_invalid_source_encoding" = "yes" ]; then
  3221. CXXFLAGS="$CXXFLAGS -Wno-invalid-source-encoding"
  3222. elif [ -n "" ]; then
  3223. cat << 'EOF' >&2
  3224. configure: error:
  3225. Your OS or C++ compiler does not support -Wno-invalid-source-encoding.
  3226. This compile flag is required.
  3227. EOF
  3228. exit 1
  3229. fi
  3230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector" >&5
  3231. $as_echo_n "checking whether the compiler understands -fstack-protector... " >&6; }
  3232. if ${ax_cv_prog_cc_stackprotector+:} false; then :
  3233. $as_echo_n "(cached) " >&6
  3234. else
  3235. ac_ext=cpp
  3236. ac_cpp='$CXXCPP $CPPFLAGS'
  3237. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3238. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3239. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3240. ac_saved_flags="$CXXFLAGS"
  3241. CXXFLAGS="-Werror -fstack-protector"
  3242. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3243. /* end build/confdefs.h. */
  3244. int
  3245. main ()
  3246. {
  3247. ;
  3248. return 0;
  3249. }
  3250. _ACEOF
  3251. if ac_fn_cxx_try_compile "$LINENO"; then :
  3252. ax_cv_prog_cc_stackprotector="yes"
  3253. else
  3254. ax_cv_prog_cc_stackprotector="no"
  3255. fi
  3256. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3257. CXXFLAGS="$ac_saved_flags"
  3258. ac_ext=cpp
  3259. ac_cpp='$CXXCPP $CPPFLAGS'
  3260. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3261. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3262. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3263. fi
  3264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotector" >&5
  3265. $as_echo "$ax_cv_prog_cc_stackprotector" >&6; }
  3266. if [ "$ax_cv_prog_cc_stackprotector" = "yes" ]; then
  3267. CXXFLAGS="$CXXFLAGS -fstack-protector"
  3268. elif [ -n "" ]; then
  3269. cat << 'EOF' >&2
  3270. configure: error:
  3271. Your OS or C++ compiler does not support -fstack-protector.
  3272. This compile flag is required.
  3273. EOF
  3274. exit 1
  3275. fi
  3276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector-strong" >&5
  3277. $as_echo_n "checking whether the compiler understands -fstack-protector-strong... " >&6; }
  3278. if ${ax_cv_prog_cc_stackprotectorstrong+:} false; then :
  3279. $as_echo_n "(cached) " >&6
  3280. else
  3281. ac_ext=cpp
  3282. ac_cpp='$CXXCPP $CPPFLAGS'
  3283. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3284. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3285. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3286. ac_saved_flags="$CXXFLAGS"
  3287. CXXFLAGS="-Werror -fstack-protector-strong"
  3288. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3289. /* end build/confdefs.h. */
  3290. int
  3291. main ()
  3292. {
  3293. ;
  3294. return 0;
  3295. }
  3296. _ACEOF
  3297. if ac_fn_cxx_try_compile "$LINENO"; then :
  3298. ax_cv_prog_cc_stackprotectorstrong="yes"
  3299. else
  3300. ax_cv_prog_cc_stackprotectorstrong="no"
  3301. fi
  3302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3303. CXXFLAGS="$ac_saved_flags"
  3304. ac_ext=cpp
  3305. ac_cpp='$CXXCPP $CPPFLAGS'
  3306. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3307. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3308. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3309. fi
  3310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotectorstrong" >&5
  3311. $as_echo "$ax_cv_prog_cc_stackprotectorstrong" >&6; }
  3312. if [ "$ax_cv_prog_cc_stackprotectorstrong" = "yes" ]; then
  3313. CXXFLAGS="$CXXFLAGS -fstack-protector-strong"
  3314. elif [ -n "" ]; then
  3315. cat << 'EOF' >&2
  3316. configure: error:
  3317. Your OS or C++ compiler does not support -fstack-protector-strong.
  3318. This compile flag is required.
  3319. EOF
  3320. exit 1
  3321. fi
  3322. if [ "${ax_cv_prog_cc_stackprotectorstrong}" = "yes" ]; then
  3323. LDFLAGS="${LDFLAGS} -fstack-protector-strong"
  3324. elif [ "${ax_cv_prog_cc_stackprotector}" = "yes" ]; then
  3325. LDFLAGS="${LDFLAGS} -fstack-protector"
  3326. fi
  3327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector-all" >&5
  3328. $as_echo_n "checking whether the compiler understands -fstack-protector-all... " >&6; }
  3329. if ${ax_cv_prog_cc_stackprotectorall+:} false; then :
  3330. $as_echo_n "(cached) " >&6
  3331. else
  3332. ac_ext=cpp
  3333. ac_cpp='$CXXCPP $CPPFLAGS'
  3334. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3335. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3336. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3337. ac_saved_flags="$CXXFLAGS"
  3338. CXXFLAGS="-Werror -fstack-protector-all"
  3339. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3340. /* end build/confdefs.h. */
  3341. int
  3342. main ()
  3343. {
  3344. ;
  3345. return 0;
  3346. }
  3347. _ACEOF
  3348. if ac_fn_cxx_try_compile "$LINENO"; then :
  3349. ax_cv_prog_cc_stackprotectorall="yes"
  3350. else
  3351. ax_cv_prog_cc_stackprotectorall="no"
  3352. fi
  3353. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3354. CXXFLAGS="$ac_saved_flags"
  3355. ac_ext=cpp
  3356. ac_cpp='$CXXCPP $CPPFLAGS'
  3357. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3358. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3359. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3360. fi
  3361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotectorall" >&5
  3362. $as_echo "$ax_cv_prog_cc_stackprotectorall" >&6; }
  3363. if [ "$ax_cv_prog_cc_stackprotectorall" = "yes" ]; then
  3364. DEBCXXFLAGS="$DEBCXXFLAGS -fstack-protector-all"
  3365. elif [ -n "" ]; then
  3366. cat << 'EOF' >&2
  3367. configure: error:
  3368. Your OS or C++ compiler does not support -fstack-protector-all.
  3369. This compile flag is required.
  3370. EOF
  3371. exit 1
  3372. fi
  3373. CCDEPMODE=gcc
  3374. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  3375. if test $num -ge "3"; then
  3376. CCDEPMODE=gcc3
  3377. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  3378. GCC3_CFLAGS="-W -Wno-unused-parameter -Wdisabled-optimization -Wno-write-strings -Wno-format-security -fno-strict-aliasing -Wno-format-y2k"
  3379. GCC3_CXXFLAGS="-Woverloaded-virtual"
  3380. GCC3DEB="-Wno-disabled-optimization -Wmissing-format-attribute"
  3381. fi
  3382. #checkpoint
  3383. cat >confcache <<\_ACEOF
  3384. # This file is a shell script that caches the results of configure
  3385. # tests run on this system so they can be shared between configure
  3386. # scripts and configure runs, see configure's option --config-cache.
  3387. # It is not useful on other systems. If it contains results you don't
  3388. # want to keep, you may remove or edit it.
  3389. #
  3390. # build/config.status only pays attention to the cache file if you give it
  3391. # the --recheck option to rerun configure.
  3392. #
  3393. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3394. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3395. # following values.
  3396. _ACEOF
  3397. # The following way of writing the cache mishandles newlines in values,
  3398. # but we know of no workaround that is simple, portable, and efficient.
  3399. # So, we kill variables containing newlines.
  3400. # Ultrix sh set writes to stderr and can't be redirected directly,
  3401. # and sets the high bit in the cache file unless we assign to the vars.
  3402. (
  3403. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3404. eval ac_val=\$$ac_var
  3405. case $ac_val in #(
  3406. *${as_nl}*)
  3407. case $ac_var in #(
  3408. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3409. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3410. esac
  3411. case $ac_var in #(
  3412. _ | IFS | as_nl) ;; #(
  3413. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3414. *) { eval $ac_var=; unset $ac_var;} ;;
  3415. esac ;;
  3416. esac
  3417. done
  3418. (set) 2>&1 |
  3419. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3420. *${as_nl}ac_space=\ *)
  3421. # `set' does not quote correctly, so add quotes: double-quote
  3422. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3423. sed -n \
  3424. "s/'/'\\\\''/g;
  3425. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3426. ;; #(
  3427. *)
  3428. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3429. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3430. ;;
  3431. esac |
  3432. sort
  3433. ) |
  3434. sed '
  3435. /^ac_cv_env_/b end
  3436. t clear
  3437. :clear
  3438. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3439. t end
  3440. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3441. :end' >>confcache
  3442. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3443. if test -w "$cache_file"; then
  3444. if test "x$cache_file" != "x/dev/null"; then
  3445. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3446. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3447. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3448. cat confcache >"$cache_file"
  3449. else
  3450. case $cache_file in #(
  3451. */* | ?:*)
  3452. mv -f confcache "$cache_file"$$ &&
  3453. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3454. *)
  3455. mv -f confcache "$cache_file" ;;
  3456. esac
  3457. fi
  3458. fi
  3459. else
  3460. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3461. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3462. fi
  3463. fi
  3464. rm -f confcache
  3465. # Checks for programs
  3466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3467. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3468. set x ${MAKE-make}
  3469. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3470. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3471. $as_echo_n "(cached) " >&6
  3472. else
  3473. cat >conftest.make <<\_ACEOF
  3474. SHELL = /bin/sh
  3475. all:
  3476. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3477. _ACEOF
  3478. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3479. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3480. *@@@%%%=?*=@@@%%%*)
  3481. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3482. *)
  3483. eval ac_cv_prog_make_${ac_make}_set=no;;
  3484. esac
  3485. rm -f conftest.make
  3486. fi
  3487. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3489. $as_echo "yes" >&6; }
  3490. SET_MAKE=
  3491. else
  3492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3493. $as_echo "no" >&6; }
  3494. SET_MAKE="MAKE=${MAKE-make}"
  3495. fi
  3496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3497. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3498. if ${ac_cv_path_SED+:} false; then :
  3499. $as_echo_n "(cached) " >&6
  3500. else
  3501. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3502. for ac_i in 1 2 3 4 5 6 7; do
  3503. ac_script="$ac_script$as_nl$ac_script"
  3504. done
  3505. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3506. { ac_script=; unset ac_script;}
  3507. if test -z "$SED"; then
  3508. ac_path_SED_found=false
  3509. # Loop through the user's path and test for each of PROGNAME-LIST
  3510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3511. for as_dir in $PATH
  3512. do
  3513. IFS=$as_save_IFS
  3514. test -z "$as_dir" && as_dir=.
  3515. for ac_prog in sed gsed; do
  3516. for ac_exec_ext in '' $ac_executable_extensions; do
  3517. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3518. as_fn_executable_p "$ac_path_SED" || continue
  3519. # Check for GNU ac_path_SED and select it if it is found.
  3520. # Check for GNU $ac_path_SED
  3521. case `"$ac_path_SED" --version 2>&1` in
  3522. *GNU*)
  3523. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3524. *)
  3525. ac_count=0
  3526. $as_echo_n 0123456789 >"conftest.in"
  3527. while :
  3528. do
  3529. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3530. mv "conftest.tmp" "conftest.in"
  3531. cp "conftest.in" "conftest.nl"
  3532. $as_echo '' >> "conftest.nl"
  3533. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3534. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3535. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3536. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3537. # Best one so far, save it but keep looking for a better one
  3538. ac_cv_path_SED="$ac_path_SED"
  3539. ac_path_SED_max=$ac_count
  3540. fi
  3541. # 10*(2^10) chars as input seems more than enough
  3542. test $ac_count -gt 10 && break
  3543. done
  3544. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3545. esac
  3546. $ac_path_SED_found && break 3
  3547. done
  3548. done
  3549. done
  3550. IFS=$as_save_IFS
  3551. if test -z "$ac_cv_path_SED"; then
  3552. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3553. fi
  3554. else
  3555. ac_cv_path_SED=$SED
  3556. fi
  3557. fi
  3558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3559. $as_echo "$ac_cv_path_SED" >&6; }
  3560. SED="$ac_cv_path_SED"
  3561. rm -f conftest.sed
  3562. cat << 'EOF' > conftest.head
  3563. a
  3564. b
  3565. c
  3566. EOF
  3567. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  3568. do
  3569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_prog works" >&5
  3570. $as_echo_n "checking whether $ac_prog works... " >&6; }
  3571. if ${ac_cv_prog_HEAD_1+:} false; then :
  3572. $as_echo_n "(cached) " >&6
  3573. else
  3574. if test -n "$HEAD_1"
  3575. then
  3576. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  3577. else
  3578. if test "`cat conftest.head | $ac_prog`" = "a";
  3579. then
  3580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3581. $as_echo "yes" >&6; }
  3582. ac_cv_prog_HEAD_1=$ac_prog
  3583. else
  3584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3585. $as_echo "no" >&6; }
  3586. fi
  3587. fi
  3588. fi
  3589. test -n "$ac_cv_prog_HEAD_1" && break
  3590. done
  3591. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  3592. then
  3593. cat << 'EOF' >&2
  3594. configure: error:
  3595. This system seems to lack a working 'head -1' or 'head -n 1' command.
  3596. A working 'head -1' (or equivalent) command is required to compile Wraith.
  3597. EOF
  3598. exit 1
  3599. fi
  3600. rm -f conftest.head
  3601. HEAD_1=$ac_cv_prog_HEAD_1
  3602. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3603. for ac_prog in gawk mawk nawk awk
  3604. do
  3605. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3606. set dummy $ac_prog; ac_word=$2
  3607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3608. $as_echo_n "checking for $ac_word... " >&6; }
  3609. if ${ac_cv_prog_AWK+:} false; then :
  3610. $as_echo_n "(cached) " >&6
  3611. else
  3612. if test -n "$AWK"; then
  3613. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3614. else
  3615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3616. for as_dir in $PATH
  3617. do
  3618. IFS=$as_save_IFS
  3619. test -z "$as_dir" && as_dir=.
  3620. for ac_exec_ext in '' $ac_executable_extensions; do
  3621. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3622. ac_cv_prog_AWK="$ac_prog"
  3623. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3624. break 2
  3625. fi
  3626. done
  3627. done
  3628. IFS=$as_save_IFS
  3629. fi
  3630. fi
  3631. AWK=$ac_cv_prog_AWK
  3632. if test -n "$AWK"; then
  3633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3634. $as_echo "$AWK" >&6; }
  3635. else
  3636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3637. $as_echo "no" >&6; }
  3638. fi
  3639. test -n "$AWK" && break
  3640. done
  3641. if test "${AWK-x}" = "x"
  3642. then
  3643. cat << 'EOF' >&2
  3644. configure: error:
  3645. This system seems to lack a working 'awk' command.
  3646. A working 'awk' command is required to compile Wraith.
  3647. EOF
  3648. exit 1
  3649. fi
  3650. # basename is needed for Tcl library and header checks
  3651. # Extract the first word of "basename", so it can be a program name with args.
  3652. set dummy basename; ac_word=$2
  3653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3654. $as_echo_n "checking for $ac_word... " >&6; }
  3655. if ${ac_cv_prog_BASENAME+:} false; then :
  3656. $as_echo_n "(cached) " >&6
  3657. else
  3658. if test -n "$BASENAME"; then
  3659. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3660. else
  3661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3662. for as_dir in $PATH
  3663. do
  3664. IFS=$as_save_IFS
  3665. test -z "$as_dir" && as_dir=.
  3666. for ac_exec_ext in '' $ac_executable_extensions; do
  3667. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3668. ac_cv_prog_BASENAME="basename"
  3669. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3670. break 2
  3671. fi
  3672. done
  3673. done
  3674. IFS=$as_save_IFS
  3675. fi
  3676. fi
  3677. BASENAME=$ac_cv_prog_BASENAME
  3678. if test -n "$BASENAME"; then
  3679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
  3680. $as_echo "$BASENAME" >&6; }
  3681. else
  3682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3683. $as_echo "no" >&6; }
  3684. fi
  3685. if test "${BASENAME-x}" = "x"
  3686. then
  3687. cat << 'EOF' >&2
  3688. configure: error:
  3689. This system seems to lack a working 'basename' command.
  3690. A working 'basename' command is required to compile Wraith.
  3691. EOF
  3692. exit 1
  3693. fi
  3694. # Extract the first word of "objcopy", so it can be a program name with args.
  3695. set dummy objcopy; ac_word=$2
  3696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3697. $as_echo_n "checking for $ac_word... " >&6; }
  3698. if ${ac_cv_prog_OBJCOPY+:} false; then :
  3699. $as_echo_n "(cached) " >&6
  3700. else
  3701. if test -n "$OBJCOPY"; then
  3702. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3703. else
  3704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3705. for as_dir in $PATH
  3706. do
  3707. IFS=$as_save_IFS
  3708. test -z "$as_dir" && as_dir=.
  3709. for ac_exec_ext in '' $ac_executable_extensions; do
  3710. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3711. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3712. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3713. break 2
  3714. fi
  3715. done
  3716. done
  3717. IFS=$as_save_IFS
  3718. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  3719. fi
  3720. fi
  3721. OBJCOPY=$ac_cv_prog_OBJCOPY
  3722. if test -n "$OBJCOPY"; then
  3723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  3724. $as_echo "$OBJCOPY" >&6; }
  3725. else
  3726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3727. $as_echo "no" >&6; }
  3728. fi
  3729. # Extract the first word of "strip", so it can be a program name with args.
  3730. set dummy strip; ac_word=$2
  3731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3732. $as_echo_n "checking for $ac_word... " >&6; }
  3733. if ${ac_cv_prog_STRIP+:} false; then :
  3734. $as_echo_n "(cached) " >&6
  3735. else
  3736. if test -n "$STRIP"; then
  3737. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3738. else
  3739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3740. for as_dir in $PATH
  3741. do
  3742. IFS=$as_save_IFS
  3743. test -z "$as_dir" && as_dir=.
  3744. for ac_exec_ext in '' $ac_executable_extensions; do
  3745. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3746. ac_cv_prog_STRIP="strip"
  3747. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3748. break 2
  3749. fi
  3750. done
  3751. done
  3752. IFS=$as_save_IFS
  3753. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3754. fi
  3755. fi
  3756. STRIP=$ac_cv_prog_STRIP
  3757. if test -n "$STRIP"; then
  3758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3759. $as_echo "$STRIP" >&6; }
  3760. else
  3761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3762. $as_echo "no" >&6; }
  3763. fi
  3764. # Extract the first word of "gdiff", so it can be a program name with args.
  3765. set dummy gdiff; ac_word=$2
  3766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3767. $as_echo_n "checking for $ac_word... " >&6; }
  3768. if ${ac_cv_prog_DIFF+:} false; then :
  3769. $as_echo_n "(cached) " >&6
  3770. else
  3771. if test -n "$DIFF"; then
  3772. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  3773. else
  3774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3775. for as_dir in $PATH
  3776. do
  3777. IFS=$as_save_IFS
  3778. test -z "$as_dir" && as_dir=.
  3779. for ac_exec_ext in '' $ac_executable_extensions; do
  3780. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3781. ac_cv_prog_DIFF="gdiff"
  3782. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3783. break 2
  3784. fi
  3785. done
  3786. done
  3787. IFS=$as_save_IFS
  3788. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  3789. fi
  3790. fi
  3791. DIFF=$ac_cv_prog_DIFF
  3792. if test -n "$DIFF"; then
  3793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
  3794. $as_echo "$DIFF" >&6; }
  3795. else
  3796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3797. $as_echo "no" >&6; }
  3798. fi
  3799. # Extract the first word of "uname", so it can be a program name with args.
  3800. set dummy uname; ac_word=$2
  3801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3802. $as_echo_n "checking for $ac_word... " >&6; }
  3803. if ${ac_cv_prog_UNAME+:} false; then :
  3804. $as_echo_n "(cached) " >&6
  3805. else
  3806. if test -n "$UNAME"; then
  3807. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3808. else
  3809. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3810. for as_dir in $PATH
  3811. do
  3812. IFS=$as_save_IFS
  3813. test -z "$as_dir" && as_dir=.
  3814. for ac_exec_ext in '' $ac_executable_extensions; do
  3815. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3816. ac_cv_prog_UNAME="uname"
  3817. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3818. break 2
  3819. fi
  3820. done
  3821. done
  3822. IFS=$as_save_IFS
  3823. fi
  3824. fi
  3825. UNAME=$ac_cv_prog_UNAME
  3826. if test -n "$UNAME"; then
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
  3828. $as_echo "$UNAME" >&6; }
  3829. else
  3830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3831. $as_echo "no" >&6; }
  3832. fi
  3833. # Extract the first word of "ccache", so it can be a program name with args.
  3834. set dummy ccache; ac_word=$2
  3835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3836. $as_echo_n "checking for $ac_word... " >&6; }
  3837. if ${ac_cv_prog_CCACHE+:} false; then :
  3838. $as_echo_n "(cached) " >&6
  3839. else
  3840. if test -n "$CCACHE"; then
  3841. ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
  3842. else
  3843. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3844. for as_dir in $PATH
  3845. do
  3846. IFS=$as_save_IFS
  3847. test -z "$as_dir" && as_dir=.
  3848. for ac_exec_ext in '' $ac_executable_extensions; do
  3849. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3850. ac_cv_prog_CCACHE="env CCACHE_CPP2=1 ccache"
  3851. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3852. break 2
  3853. fi
  3854. done
  3855. done
  3856. IFS=$as_save_IFS
  3857. fi
  3858. fi
  3859. CCACHE=$ac_cv_prog_CCACHE
  3860. if test -n "$CCACHE"; then
  3861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
  3862. $as_echo "$CCACHE" >&6; }
  3863. else
  3864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3865. $as_echo "no" >&6; }
  3866. fi
  3867. # Extract the first word of "distcc", so it can be a program name with args.
  3868. set dummy distcc; ac_word=$2
  3869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3870. $as_echo_n "checking for $ac_word... " >&6; }
  3871. if ${ac_cv_prog_DISTCC+:} false; then :
  3872. $as_echo_n "(cached) " >&6
  3873. else
  3874. if test -n "$DISTCC"; then
  3875. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3876. else
  3877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3878. for as_dir in $PATH
  3879. do
  3880. IFS=$as_save_IFS
  3881. test -z "$as_dir" && as_dir=.
  3882. for ac_exec_ext in '' $ac_executable_extensions; do
  3883. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3884. ac_cv_prog_DISTCC="distcc"
  3885. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3886. break 2
  3887. fi
  3888. done
  3889. done
  3890. IFS=$as_save_IFS
  3891. fi
  3892. fi
  3893. DISTCC=$ac_cv_prog_DISTCC
  3894. if test -n "$DISTCC"; then
  3895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
  3896. $as_echo "$DISTCC" >&6; }
  3897. else
  3898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3899. $as_echo "no" >&6; }
  3900. fi
  3901. # Test the os and set the module linking settings
  3902. USE_STATIC=yes
  3903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system type" >&5
  3904. $as_echo_n "checking system type... " >&6; }
  3905. if ${egg_cv_var_system_type+:} false; then :
  3906. $as_echo_n "(cached) " >&6
  3907. else
  3908. egg_cv_var_system_type=`$UNAME -s`
  3909. fi
  3910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_type" >&5
  3911. $as_echo "$egg_cv_var_system_type" >&6; }
  3912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system release" >&5
  3913. $as_echo_n "checking system release... " >&6; }
  3914. if ${egg_cv_var_system_release+:} false; then :
  3915. $as_echo_n "(cached) " >&6
  3916. else
  3917. egg_cv_var_system_release=`$UNAME -r`
  3918. fi
  3919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_release" >&5
  3920. $as_echo "$egg_cv_var_system_release" >&6; }
  3921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system machine" >&5
  3922. $as_echo_n "checking system machine... " >&6; }
  3923. if ${egg_cv_var_system_machine+:} false; then :
  3924. $as_echo_n "(cached) " >&6
  3925. else
  3926. egg_cv_var_system_machine=`$UNAME -m`
  3927. fi
  3928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_machine" >&5
  3929. $as_echo "$egg_cv_var_system_machine" >&6; }
  3930. BUILDOS="$egg_cv_var_system_type"
  3931. BUILDARCH="$egg_cv_var_system_machine"
  3932. USE_GENERIC_I486="yes"
  3933. case "$egg_cv_var_system_type" in
  3934. BSD/OS)
  3935. ;;
  3936. IRIX)
  3937. ;;
  3938. HP-UX)
  3939. $as_echo "#define MD32_XARRAY 1" >>build/confdefs.h
  3940. ;;
  3941. Ultrix)
  3942. SHELL=/bin/sh5
  3943. ;;
  3944. SINIX*)
  3945. ;;
  3946. BeOS)
  3947. ;;
  3948. Linux)
  3949. ;;
  3950. Lynx)
  3951. ;;
  3952. QNX)
  3953. ;;
  3954. OSF1)
  3955. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3956. V*)
  3957. if test "$AWK" = "gawk"
  3958. then
  3959. AWK=awk
  3960. fi
  3961. ;;
  3962. 1.0|1.1|1.2)
  3963. $as_echo "#define OSF1_HACKS 1" >>build/confdefs.h
  3964. ;;
  3965. 1.*)
  3966. $as_echo "#define OSF1_HACKS 1" >>build/confdefs.h
  3967. ;;
  3968. *)
  3969. ;;
  3970. esac
  3971. $as_echo "#define STOP_UAC 1" >>build/confdefs.h
  3972. $as_echo "#define BROKEN_SNPRINTF 1" >>build/confdefs.h
  3973. ;;
  3974. SunOS)
  3975. SUNOS="yes"
  3976. USE_STATIC="no"
  3977. ;;
  3978. Darwin)
  3979. USE_STATIC="no"
  3980. USE_GENERIC_I486="no"
  3981. ;;
  3982. *BSD)
  3983. # FreeBSD/OpenBSD/NetBSD
  3984. ;;
  3985. *)
  3986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is Mach based" >&5
  3987. $as_echo_n "checking if system is Mach based... " >&6; }
  3988. if test -r /mach
  3989. then
  3990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3991. $as_echo "yes" >&6; }
  3992. $as_echo "#define BORGCUBES 1" >>build/confdefs.h
  3993. else
  3994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3995. $as_echo "no" >&6; }
  3996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is QNX" >&5
  3997. $as_echo_n "checking if system is QNX... " >&6; }
  3998. if test -r /cmds
  3999. then
  4000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4001. $as_echo "yes" >&6; }
  4002. else
  4003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4004. $as_echo "no" >&6; }
  4005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Something unknown!" >&5
  4006. $as_echo "Something unknown!" >&6; }
  4007. fi
  4008. fi
  4009. ;;
  4010. esac
  4011. case "$egg_cv_var_system_machine" in
  4012. i*)
  4013. if test "$USE_GENERIC_I486" = "yes"; then
  4014. CXX="$CXX -march=i486"
  4015. BUILDARCH="i486"
  4016. fi
  4017. ;;
  4018. *)
  4019. ;;
  4020. esac
  4021. # Check for IPv6 support
  4022. #EGG_IPV6_SUPPORTED
  4023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether IPv6 is enabled" >&5
  4024. $as_echo_n "checking whether IPv6 is enabled... " >&6; }
  4025. # Check whether --enable-ipv6 was given.
  4026. if test "${enable_ipv6+set}" = set; then :
  4027. enableval=$enable_ipv6;
  4028. enable_ipv6=$enableval
  4029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  4030. $as_echo "$enableval" >&6; }
  4031. else
  4032. # default if not given is ENABLED
  4033. if test "x$enableval" = "x"; then
  4034. enableval="yes"
  4035. fi
  4036. enable_ipv6=$enableval
  4037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  4038. $as_echo "$enableval" >&6; }
  4039. $as_echo "#define USE_IPV6 1" >>build/confdefs.h
  4040. fi
  4041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
  4042. $as_echo_n "checking for socklen_t... " >&6; }
  4043. if ${egg_cv_socklen_t+:} false; then :
  4044. $as_echo_n "(cached) " >&6
  4045. else
  4046. if test "$cross_compiling" = yes; then :
  4047. egg_cv_socklen_t=no
  4048. else
  4049. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4050. /* end build/confdefs.h. */
  4051. #include <unistd.h>
  4052. #include <sys/types.h>
  4053. #include <sys/socket.h>
  4054. #include <netinet/in.h>
  4055. #include <arpa/inet.h>
  4056. int main()
  4057. {
  4058. socklen_t test = sizeof(int);
  4059. return 0;
  4060. }
  4061. _ACEOF
  4062. if ac_fn_cxx_try_run "$LINENO"; then :
  4063. egg_cv_socklen_t=yes
  4064. else
  4065. egg_cv_socklen_t=no
  4066. fi
  4067. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4068. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4069. fi
  4070. fi
  4071. if test "$egg_cv_socklen_t" = "yes"; then
  4072. $as_echo "#define HAVE_SOCKLEN_T 1" >>build/confdefs.h
  4073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4074. $as_echo "yes" >&6; }
  4075. else
  4076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4077. $as_echo "no" >&6; }
  4078. fi
  4079. # Check for inconsistent random() functions
  4080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random limit" >&5
  4081. $as_echo_n "checking for random limit... " >&6; }
  4082. case "$egg_cv_var_system_type" in
  4083. SunOS) RMAX=0x7FFFFFFF
  4084. ;;
  4085. *) RMAX=RAND_MAX
  4086. ;;
  4087. esac
  4088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMAX" >&5
  4089. $as_echo "$RMAX" >&6; }
  4090. cat >>build/confdefs.h <<_ACEOF
  4091. #define RANDOM_MAX $RMAX
  4092. _ACEOF
  4093. # Create static binaries
  4094. if test "$USE_STATIC" = "yes"
  4095. then
  4096. if test -n "$GXX"
  4097. then
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static" >&5
  4099. $as_echo_n "checking whether the compiler understands -static... " >&6; }
  4100. if ${egg_cv_var_ccstatic+:} false; then :
  4101. $as_echo_n "(cached) " >&6
  4102. else
  4103. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4104. /* end build/confdefs.h. */
  4105. int
  4106. main ()
  4107. {
  4108. ;
  4109. return 0;
  4110. }
  4111. _ACEOF
  4112. if ac_fn_cxx_try_compile "$LINENO"; then :
  4113. egg_cv_var_ccstatic="yes"
  4114. else
  4115. egg_cv_var_ccstatic="no"
  4116. fi
  4117. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4118. fi
  4119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccstatic" >&5
  4120. $as_echo "$egg_cv_var_ccstatic" >&6; }
  4121. if ! test "$egg_cv_var_ccstatic" = "yes"
  4122. then
  4123. cat << 'EOF' >&2
  4124. configure: error:
  4125. Your OS or C++ compiler does not support -static.
  4126. This compile flag is required for the botpack on this OS.
  4127. EOF
  4128. exit 1
  4129. fi
  4130. fi
  4131. STATIC="-static"
  4132. else
  4133. STATIC=""
  4134. fi
  4135. #checkpoint
  4136. cat >confcache <<\_ACEOF
  4137. # This file is a shell script that caches the results of configure
  4138. # tests run on this system so they can be shared between configure
  4139. # scripts and configure runs, see configure's option --config-cache.
  4140. # It is not useful on other systems. If it contains results you don't
  4141. # want to keep, you may remove or edit it.
  4142. #
  4143. # build/config.status only pays attention to the cache file if you give it
  4144. # the --recheck option to rerun configure.
  4145. #
  4146. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4147. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4148. # following values.
  4149. _ACEOF
  4150. # The following way of writing the cache mishandles newlines in values,
  4151. # but we know of no workaround that is simple, portable, and efficient.
  4152. # So, we kill variables containing newlines.
  4153. # Ultrix sh set writes to stderr and can't be redirected directly,
  4154. # and sets the high bit in the cache file unless we assign to the vars.
  4155. (
  4156. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4157. eval ac_val=\$$ac_var
  4158. case $ac_val in #(
  4159. *${as_nl}*)
  4160. case $ac_var in #(
  4161. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4162. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4163. esac
  4164. case $ac_var in #(
  4165. _ | IFS | as_nl) ;; #(
  4166. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4167. *) { eval $ac_var=; unset $ac_var;} ;;
  4168. esac ;;
  4169. esac
  4170. done
  4171. (set) 2>&1 |
  4172. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4173. *${as_nl}ac_space=\ *)
  4174. # `set' does not quote correctly, so add quotes: double-quote
  4175. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4176. sed -n \
  4177. "s/'/'\\\\''/g;
  4178. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4179. ;; #(
  4180. *)
  4181. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4182. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4183. ;;
  4184. esac |
  4185. sort
  4186. ) |
  4187. sed '
  4188. /^ac_cv_env_/b end
  4189. t clear
  4190. :clear
  4191. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4192. t end
  4193. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4194. :end' >>confcache
  4195. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4196. if test -w "$cache_file"; then
  4197. if test "x$cache_file" != "x/dev/null"; then
  4198. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4199. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4200. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4201. cat confcache >"$cache_file"
  4202. else
  4203. case $cache_file in #(
  4204. */* | ?:*)
  4205. mv -f confcache "$cache_file"$$ &&
  4206. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4207. *)
  4208. mv -f confcache "$cache_file" ;;
  4209. esac
  4210. fi
  4211. fi
  4212. else
  4213. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4214. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4215. fi
  4216. fi
  4217. rm -f confcache
  4218. # Checks for system libraries
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  4220. $as_echo_n "checking for socket in -lsocket... " >&6; }
  4221. if ${ac_cv_lib_socket_socket+:} false; then :
  4222. $as_echo_n "(cached) " >&6
  4223. else
  4224. ac_check_lib_save_LIBS=$LIBS
  4225. LIBS="-lsocket $LIBS"
  4226. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4227. /* end build/confdefs.h. */
  4228. /* Override any GCC internal prototype to avoid an error.
  4229. Use char because int might match the return type of a GCC
  4230. builtin and then its argument prototype would still apply. */
  4231. #ifdef __cplusplus
  4232. extern "C"
  4233. #endif
  4234. char socket ();
  4235. int
  4236. main ()
  4237. {
  4238. return socket ();
  4239. ;
  4240. return 0;
  4241. }
  4242. _ACEOF
  4243. if ac_fn_cxx_try_link "$LINENO"; then :
  4244. ac_cv_lib_socket_socket=yes
  4245. else
  4246. ac_cv_lib_socket_socket=no
  4247. fi
  4248. rm -f core conftest.err conftest.$ac_objext \
  4249. conftest$ac_exeext conftest.$ac_ext
  4250. LIBS=$ac_check_lib_save_LIBS
  4251. fi
  4252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  4253. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  4254. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  4255. cat >>build/confdefs.h <<_ACEOF
  4256. #define HAVE_LIBSOCKET 1
  4257. _ACEOF
  4258. LIBS="-lsocket $LIBS"
  4259. fi
  4260. # AC_CHECK_LIB(nsl, connect)
  4261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  4262. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  4263. if ${ac_cv_lib_dl_dlopen+:} false; then :
  4264. $as_echo_n "(cached) " >&6
  4265. else
  4266. ac_check_lib_save_LIBS=$LIBS
  4267. LIBS="-ldl $LIBS"
  4268. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4269. /* end build/confdefs.h. */
  4270. /* Override any GCC internal prototype to avoid an error.
  4271. Use char because int might match the return type of a GCC
  4272. builtin and then its argument prototype would still apply. */
  4273. #ifdef __cplusplus
  4274. extern "C"
  4275. #endif
  4276. char dlopen ();
  4277. int
  4278. main ()
  4279. {
  4280. return dlopen ();
  4281. ;
  4282. return 0;
  4283. }
  4284. _ACEOF
  4285. if ac_fn_cxx_try_link "$LINENO"; then :
  4286. ac_cv_lib_dl_dlopen=yes
  4287. else
  4288. ac_cv_lib_dl_dlopen=no
  4289. fi
  4290. rm -f core conftest.err conftest.$ac_objext \
  4291. conftest$ac_exeext conftest.$ac_ext
  4292. LIBS=$ac_check_lib_save_LIBS
  4293. fi
  4294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  4295. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  4296. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  4297. cat >>build/confdefs.h <<_ACEOF
  4298. #define HAVE_LIBDL 1
  4299. _ACEOF
  4300. LIBS="-ldl $LIBS"
  4301. fi
  4302. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4303. # This is needed for Tcl libraries compiled with thread support
  4304. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4305. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4306. # ac_cv_lib_pthread="-lpthread"], [dnl
  4307. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4308. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4309. # ac_cv_lib_pthread="-lpthread"], [dnl
  4310. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4311. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4312. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4313. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4314. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4315. # ac_cv_lib_pthread=""],
  4316. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4317. if test "$SUNOS" = "yes"; then
  4318. # For suns without yp
  4319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
  4320. $as_echo_n "checking for main in -ldl... " >&6; }
  4321. if ${ac_cv_lib_dl_main+:} false; then :
  4322. $as_echo_n "(cached) " >&6
  4323. else
  4324. ac_check_lib_save_LIBS=$LIBS
  4325. LIBS="-ldl $LIBS"
  4326. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4327. /* end build/confdefs.h. */
  4328. int
  4329. main ()
  4330. {
  4331. return main ();
  4332. ;
  4333. return 0;
  4334. }
  4335. _ACEOF
  4336. if ac_fn_cxx_try_link "$LINENO"; then :
  4337. ac_cv_lib_dl_main=yes
  4338. else
  4339. ac_cv_lib_dl_main=no
  4340. fi
  4341. rm -f core conftest.err conftest.$ac_objext \
  4342. conftest$ac_exeext conftest.$ac_ext
  4343. LIBS=$ac_check_lib_save_LIBS
  4344. fi
  4345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
  4346. $as_echo "$ac_cv_lib_dl_main" >&6; }
  4347. if test "x$ac_cv_lib_dl_main" = xyes; then :
  4348. cat >>build/confdefs.h <<_ACEOF
  4349. #define HAVE_LIBDL 1
  4350. _ACEOF
  4351. LIBS="-ldl $LIBS"
  4352. fi
  4353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
  4354. $as_echo_n "checking for main in -lsocket... " >&6; }
  4355. if ${ac_cv_lib_socket_main+:} false; then :
  4356. $as_echo_n "(cached) " >&6
  4357. else
  4358. ac_check_lib_save_LIBS=$LIBS
  4359. LIBS="-lsocket $LIBS"
  4360. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4361. /* end build/confdefs.h. */
  4362. int
  4363. main ()
  4364. {
  4365. return main ();
  4366. ;
  4367. return 0;
  4368. }
  4369. _ACEOF
  4370. if ac_fn_cxx_try_link "$LINENO"; then :
  4371. ac_cv_lib_socket_main=yes
  4372. else
  4373. ac_cv_lib_socket_main=no
  4374. fi
  4375. rm -f core conftest.err conftest.$ac_objext \
  4376. conftest$ac_exeext conftest.$ac_ext
  4377. LIBS=$ac_check_lib_save_LIBS
  4378. fi
  4379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
  4380. $as_echo "$ac_cv_lib_socket_main" >&6; }
  4381. if test "x$ac_cv_lib_socket_main" = xyes; then :
  4382. cat >>build/confdefs.h <<_ACEOF
  4383. #define HAVE_LIBSOCKET 1
  4384. _ACEOF
  4385. LIBS="-lsocket $LIBS"
  4386. fi
  4387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
  4388. $as_echo_n "checking for main in -lnsl... " >&6; }
  4389. if ${ac_cv_lib_nsl_main+:} false; then :
  4390. $as_echo_n "(cached) " >&6
  4391. else
  4392. ac_check_lib_save_LIBS=$LIBS
  4393. LIBS="-lnsl $LIBS"
  4394. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4395. /* end build/confdefs.h. */
  4396. int
  4397. main ()
  4398. {
  4399. return main ();
  4400. ;
  4401. return 0;
  4402. }
  4403. _ACEOF
  4404. if ac_fn_cxx_try_link "$LINENO"; then :
  4405. ac_cv_lib_nsl_main=yes
  4406. else
  4407. ac_cv_lib_nsl_main=no
  4408. fi
  4409. rm -f core conftest.err conftest.$ac_objext \
  4410. conftest$ac_exeext conftest.$ac_ext
  4411. LIBS=$ac_check_lib_save_LIBS
  4412. fi
  4413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
  4414. $as_echo "$ac_cv_lib_nsl_main" >&6; }
  4415. if test "x$ac_cv_lib_nsl_main" = xyes; then :
  4416. cat >>build/confdefs.h <<_ACEOF
  4417. #define HAVE_LIBNSL 1
  4418. _ACEOF
  4419. LIBS="-lnsl $LIBS"
  4420. fi
  4421. fi
  4422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4423. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4424. if ${ac_cv_path_GREP+:} false; then :
  4425. $as_echo_n "(cached) " >&6
  4426. else
  4427. if test -z "$GREP"; then
  4428. ac_path_GREP_found=false
  4429. # Loop through the user's path and test for each of PROGNAME-LIST
  4430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4431. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4432. do
  4433. IFS=$as_save_IFS
  4434. test -z "$as_dir" && as_dir=.
  4435. for ac_prog in grep ggrep; do
  4436. for ac_exec_ext in '' $ac_executable_extensions; do
  4437. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4438. as_fn_executable_p "$ac_path_GREP" || continue
  4439. # Check for GNU ac_path_GREP and select it if it is found.
  4440. # Check for GNU $ac_path_GREP
  4441. case `"$ac_path_GREP" --version 2>&1` in
  4442. *GNU*)
  4443. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4444. *)
  4445. ac_count=0
  4446. $as_echo_n 0123456789 >"conftest.in"
  4447. while :
  4448. do
  4449. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4450. mv "conftest.tmp" "conftest.in"
  4451. cp "conftest.in" "conftest.nl"
  4452. $as_echo 'GREP' >> "conftest.nl"
  4453. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4454. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4455. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4456. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4457. # Best one so far, save it but keep looking for a better one
  4458. ac_cv_path_GREP="$ac_path_GREP"
  4459. ac_path_GREP_max=$ac_count
  4460. fi
  4461. # 10*(2^10) chars as input seems more than enough
  4462. test $ac_count -gt 10 && break
  4463. done
  4464. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4465. esac
  4466. $ac_path_GREP_found && break 3
  4467. done
  4468. done
  4469. done
  4470. IFS=$as_save_IFS
  4471. if test -z "$ac_cv_path_GREP"; then
  4472. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4473. fi
  4474. else
  4475. ac_cv_path_GREP=$GREP
  4476. fi
  4477. fi
  4478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4479. $as_echo "$ac_cv_path_GREP" >&6; }
  4480. GREP="$ac_cv_path_GREP"
  4481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4482. $as_echo_n "checking for egrep... " >&6; }
  4483. if ${ac_cv_path_EGREP+:} false; then :
  4484. $as_echo_n "(cached) " >&6
  4485. else
  4486. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4487. then ac_cv_path_EGREP="$GREP -E"
  4488. else
  4489. if test -z "$EGREP"; then
  4490. ac_path_EGREP_found=false
  4491. # Loop through the user's path and test for each of PROGNAME-LIST
  4492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4493. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4494. do
  4495. IFS=$as_save_IFS
  4496. test -z "$as_dir" && as_dir=.
  4497. for ac_prog in egrep; do
  4498. for ac_exec_ext in '' $ac_executable_extensions; do
  4499. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4500. as_fn_executable_p "$ac_path_EGREP" || continue
  4501. # Check for GNU ac_path_EGREP and select it if it is found.
  4502. # Check for GNU $ac_path_EGREP
  4503. case `"$ac_path_EGREP" --version 2>&1` in
  4504. *GNU*)
  4505. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4506. *)
  4507. ac_count=0
  4508. $as_echo_n 0123456789 >"conftest.in"
  4509. while :
  4510. do
  4511. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4512. mv "conftest.tmp" "conftest.in"
  4513. cp "conftest.in" "conftest.nl"
  4514. $as_echo 'EGREP' >> "conftest.nl"
  4515. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4516. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4517. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4518. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4519. # Best one so far, save it but keep looking for a better one
  4520. ac_cv_path_EGREP="$ac_path_EGREP"
  4521. ac_path_EGREP_max=$ac_count
  4522. fi
  4523. # 10*(2^10) chars as input seems more than enough
  4524. test $ac_count -gt 10 && break
  4525. done
  4526. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4527. esac
  4528. $ac_path_EGREP_found && break 3
  4529. done
  4530. done
  4531. done
  4532. IFS=$as_save_IFS
  4533. if test -z "$ac_cv_path_EGREP"; then
  4534. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4535. fi
  4536. else
  4537. ac_cv_path_EGREP=$EGREP
  4538. fi
  4539. fi
  4540. fi
  4541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4542. $as_echo "$ac_cv_path_EGREP" >&6; }
  4543. EGREP="$ac_cv_path_EGREP"
  4544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4545. $as_echo_n "checking for ANSI C header files... " >&6; }
  4546. if ${ac_cv_header_stdc+:} false; then :
  4547. $as_echo_n "(cached) " >&6
  4548. else
  4549. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4550. /* end build/confdefs.h. */
  4551. #include <stdlib.h>
  4552. #include <stdarg.h>
  4553. #include <string.h>
  4554. #include <float.h>
  4555. int
  4556. main ()
  4557. {
  4558. ;
  4559. return 0;
  4560. }
  4561. _ACEOF
  4562. if ac_fn_cxx_try_compile "$LINENO"; then :
  4563. ac_cv_header_stdc=yes
  4564. else
  4565. ac_cv_header_stdc=no
  4566. fi
  4567. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4568. if test $ac_cv_header_stdc = yes; then
  4569. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4570. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4571. /* end build/confdefs.h. */
  4572. #include <string.h>
  4573. _ACEOF
  4574. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4575. $EGREP "memchr" >/dev/null 2>&1; then :
  4576. else
  4577. ac_cv_header_stdc=no
  4578. fi
  4579. rm -f conftest*
  4580. fi
  4581. if test $ac_cv_header_stdc = yes; then
  4582. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4583. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4584. /* end build/confdefs.h. */
  4585. #include <stdlib.h>
  4586. _ACEOF
  4587. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4588. $EGREP "free" >/dev/null 2>&1; then :
  4589. else
  4590. ac_cv_header_stdc=no
  4591. fi
  4592. rm -f conftest*
  4593. fi
  4594. if test $ac_cv_header_stdc = yes; then
  4595. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4596. if test "$cross_compiling" = yes; then :
  4597. :
  4598. else
  4599. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4600. /* end build/confdefs.h. */
  4601. #include <ctype.h>
  4602. #include <stdlib.h>
  4603. #if ((' ' & 0x0FF) == 0x020)
  4604. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4605. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4606. #else
  4607. # define ISLOWER(c) \
  4608. (('a' <= (c) && (c) <= 'i') \
  4609. || ('j' <= (c) && (c) <= 'r') \
  4610. || ('s' <= (c) && (c) <= 'z'))
  4611. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4612. #endif
  4613. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4614. int
  4615. main ()
  4616. {
  4617. int i;
  4618. for (i = 0; i < 256; i++)
  4619. if (XOR (islower (i), ISLOWER (i))
  4620. || toupper (i) != TOUPPER (i))
  4621. return 2;
  4622. return 0;
  4623. }
  4624. _ACEOF
  4625. if ac_fn_cxx_try_run "$LINENO"; then :
  4626. else
  4627. ac_cv_header_stdc=no
  4628. fi
  4629. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4630. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4631. fi
  4632. fi
  4633. fi
  4634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4635. $as_echo "$ac_cv_header_stdc" >&6; }
  4636. if test $ac_cv_header_stdc = yes; then
  4637. $as_echo "#define STDC_HEADERS 1" >>build/confdefs.h
  4638. fi
  4639. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4640. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4641. inttypes.h stdint.h unistd.h
  4642. do :
  4643. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4644. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4645. "
  4646. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4647. cat >>build/confdefs.h <<_ACEOF
  4648. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4649. _ACEOF
  4650. fi
  4651. done
  4652. LIBELF_DIR="\$(top_srcdir)/lib/libelf/lib"
  4653. LIBELF_LIB="${LIBELF_DIR}/libelf.a"
  4654. LIBELF_BUNDLED="${LIBELF_LIB}"
  4655. LIBELF_INCLUDE="-I${LIBELF_DIR}"
  4656. for ac_header in gelf.h libelf.h
  4657. do :
  4658. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4659. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4660. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4661. cat >>build/confdefs.h <<_ACEOF
  4662. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4663. _ACEOF
  4664. ac_fn_cxx_check_type "$LINENO" "Elf_Note" "ac_cv_type_Elf_Note" "
  4665. #include \"gelf.h\"
  4666. #include \"libelf.h\"
  4667. "
  4668. if test "x$ac_cv_type_Elf_Note" = xyes; then :
  4669. cat >>build/confdefs.h <<_ACEOF
  4670. #define HAVE_ELF_NOTE 1
  4671. _ACEOF
  4672. $as_echo "#define HAVE_GELF_H 1" >>build/confdefs.h
  4673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gelf_getehdr in -lelf" >&5
  4674. $as_echo_n "checking for gelf_getehdr in -lelf... " >&6; }
  4675. if ${ac_cv_lib_elf_gelf_getehdr+:} false; then :
  4676. $as_echo_n "(cached) " >&6
  4677. else
  4678. ac_check_lib_save_LIBS=$LIBS
  4679. LIBS="-lelf $LIBS"
  4680. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4681. /* end build/confdefs.h. */
  4682. /* Override any GCC internal prototype to avoid an error.
  4683. Use char because int might match the return type of a GCC
  4684. builtin and then its argument prototype would still apply. */
  4685. #ifdef __cplusplus
  4686. extern "C"
  4687. #endif
  4688. char gelf_getehdr ();
  4689. int
  4690. main ()
  4691. {
  4692. return gelf_getehdr ();
  4693. ;
  4694. return 0;
  4695. }
  4696. _ACEOF
  4697. if ac_fn_cxx_try_link "$LINENO"; then :
  4698. ac_cv_lib_elf_gelf_getehdr=yes
  4699. else
  4700. ac_cv_lib_elf_gelf_getehdr=no
  4701. fi
  4702. rm -f core conftest.err conftest.$ac_objext \
  4703. conftest$ac_exeext conftest.$ac_ext
  4704. LIBS=$ac_check_lib_save_LIBS
  4705. fi
  4706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_gelf_getehdr" >&5
  4707. $as_echo "$ac_cv_lib_elf_gelf_getehdr" >&6; }
  4708. if test "x$ac_cv_lib_elf_gelf_getehdr" = xyes; then :
  4709. $as_echo "#define HAVE_LIBELF 1" >>build/confdefs.h
  4710. LIBELF_LIB="-Wl,-Bstatic -lelf -Wl,-Bdynamic"
  4711. LIBELF_BUNDLED=
  4712. LIBELF_INCLUDE=
  4713. fi
  4714. fi
  4715. fi
  4716. done
  4717. CPPFLAGS="${CPPFLAGS} ${LIBELF_INCLUDE}"
  4718. # Checks for header files
  4719. ac_header_dirent=no
  4720. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4721. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  4723. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  4724. if eval \${$as_ac_Header+:} false; then :
  4725. $as_echo_n "(cached) " >&6
  4726. else
  4727. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4728. /* end build/confdefs.h. */
  4729. #include <sys/types.h>
  4730. #include <$ac_hdr>
  4731. int
  4732. main ()
  4733. {
  4734. if ((DIR *) 0)
  4735. return 0;
  4736. ;
  4737. return 0;
  4738. }
  4739. _ACEOF
  4740. if ac_fn_cxx_try_compile "$LINENO"; then :
  4741. eval "$as_ac_Header=yes"
  4742. else
  4743. eval "$as_ac_Header=no"
  4744. fi
  4745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4746. fi
  4747. eval ac_res=\$$as_ac_Header
  4748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  4749. $as_echo "$ac_res" >&6; }
  4750. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4751. cat >>build/confdefs.h <<_ACEOF
  4752. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4753. _ACEOF
  4754. ac_header_dirent=$ac_hdr; break
  4755. fi
  4756. done
  4757. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4758. if test $ac_header_dirent = dirent.h; then
  4759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  4760. $as_echo_n "checking for library containing opendir... " >&6; }
  4761. if ${ac_cv_search_opendir+:} false; then :
  4762. $as_echo_n "(cached) " >&6
  4763. else
  4764. ac_func_search_save_LIBS=$LIBS
  4765. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4766. /* end build/confdefs.h. */
  4767. /* Override any GCC internal prototype to avoid an error.
  4768. Use char because int might match the return type of a GCC
  4769. builtin and then its argument prototype would still apply. */
  4770. #ifdef __cplusplus
  4771. extern "C"
  4772. #endif
  4773. char opendir ();
  4774. int
  4775. main ()
  4776. {
  4777. return opendir ();
  4778. ;
  4779. return 0;
  4780. }
  4781. _ACEOF
  4782. for ac_lib in '' dir; do
  4783. if test -z "$ac_lib"; then
  4784. ac_res="none required"
  4785. else
  4786. ac_res=-l$ac_lib
  4787. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4788. fi
  4789. if ac_fn_cxx_try_link "$LINENO"; then :
  4790. ac_cv_search_opendir=$ac_res
  4791. fi
  4792. rm -f core conftest.err conftest.$ac_objext \
  4793. conftest$ac_exeext
  4794. if ${ac_cv_search_opendir+:} false; then :
  4795. break
  4796. fi
  4797. done
  4798. if ${ac_cv_search_opendir+:} false; then :
  4799. else
  4800. ac_cv_search_opendir=no
  4801. fi
  4802. rm conftest.$ac_ext
  4803. LIBS=$ac_func_search_save_LIBS
  4804. fi
  4805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  4806. $as_echo "$ac_cv_search_opendir" >&6; }
  4807. ac_res=$ac_cv_search_opendir
  4808. if test "$ac_res" != no; then :
  4809. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4810. fi
  4811. else
  4812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  4813. $as_echo_n "checking for library containing opendir... " >&6; }
  4814. if ${ac_cv_search_opendir+:} false; then :
  4815. $as_echo_n "(cached) " >&6
  4816. else
  4817. ac_func_search_save_LIBS=$LIBS
  4818. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4819. /* end build/confdefs.h. */
  4820. /* Override any GCC internal prototype to avoid an error.
  4821. Use char because int might match the return type of a GCC
  4822. builtin and then its argument prototype would still apply. */
  4823. #ifdef __cplusplus
  4824. extern "C"
  4825. #endif
  4826. char opendir ();
  4827. int
  4828. main ()
  4829. {
  4830. return opendir ();
  4831. ;
  4832. return 0;
  4833. }
  4834. _ACEOF
  4835. for ac_lib in '' x; do
  4836. if test -z "$ac_lib"; then
  4837. ac_res="none required"
  4838. else
  4839. ac_res=-l$ac_lib
  4840. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4841. fi
  4842. if ac_fn_cxx_try_link "$LINENO"; then :
  4843. ac_cv_search_opendir=$ac_res
  4844. fi
  4845. rm -f core conftest.err conftest.$ac_objext \
  4846. conftest$ac_exeext
  4847. if ${ac_cv_search_opendir+:} false; then :
  4848. break
  4849. fi
  4850. done
  4851. if ${ac_cv_search_opendir+:} false; then :
  4852. else
  4853. ac_cv_search_opendir=no
  4854. fi
  4855. rm conftest.$ac_ext
  4856. LIBS=$ac_func_search_save_LIBS
  4857. fi
  4858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  4859. $as_echo "$ac_cv_search_opendir" >&6; }
  4860. ac_res=$ac_cv_search_opendir
  4861. if test "$ac_res" != no; then :
  4862. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4863. fi
  4864. fi
  4865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4866. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  4867. if ${ac_cv_header_sys_wait_h+:} false; then :
  4868. $as_echo_n "(cached) " >&6
  4869. else
  4870. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4871. /* end build/confdefs.h. */
  4872. #include <sys/types.h>
  4873. #include <sys/wait.h>
  4874. #ifndef WEXITSTATUS
  4875. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  4876. #endif
  4877. #ifndef WIFEXITED
  4878. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4879. #endif
  4880. int
  4881. main ()
  4882. {
  4883. int s;
  4884. wait (&s);
  4885. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4886. ;
  4887. return 0;
  4888. }
  4889. _ACEOF
  4890. if ac_fn_cxx_try_compile "$LINENO"; then :
  4891. ac_cv_header_sys_wait_h=yes
  4892. else
  4893. ac_cv_header_sys_wait_h=no
  4894. fi
  4895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4896. fi
  4897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  4898. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  4899. if test $ac_cv_header_sys_wait_h = yes; then
  4900. $as_echo "#define HAVE_SYS_WAIT_H 1" >>build/confdefs.h
  4901. fi
  4902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  4903. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  4904. if ${ac_cv_header_time+:} false; then :
  4905. $as_echo_n "(cached) " >&6
  4906. else
  4907. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4908. /* end build/confdefs.h. */
  4909. #include <sys/types.h>
  4910. #include <sys/time.h>
  4911. #include <time.h>
  4912. int
  4913. main ()
  4914. {
  4915. if ((struct tm *) 0)
  4916. return 0;
  4917. ;
  4918. return 0;
  4919. }
  4920. _ACEOF
  4921. if ac_fn_cxx_try_compile "$LINENO"; then :
  4922. ac_cv_header_time=yes
  4923. else
  4924. ac_cv_header_time=no
  4925. fi
  4926. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4927. fi
  4928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  4929. $as_echo "$ac_cv_header_time" >&6; }
  4930. if test $ac_cv_header_time = yes; then
  4931. $as_echo "#define TIME_WITH_SYS_TIME 1" >>build/confdefs.h
  4932. fi
  4933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  4934. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  4935. if ${ac_cv_header_stat_broken+:} false; then :
  4936. $as_echo_n "(cached) " >&6
  4937. else
  4938. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4939. /* end build/confdefs.h. */
  4940. #include <sys/types.h>
  4941. #include <sys/stat.h>
  4942. #if defined S_ISBLK && defined S_IFDIR
  4943. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  4944. #endif
  4945. #if defined S_ISBLK && defined S_IFCHR
  4946. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  4947. #endif
  4948. #if defined S_ISLNK && defined S_IFREG
  4949. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  4950. #endif
  4951. #if defined S_ISSOCK && defined S_IFREG
  4952. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  4953. #endif
  4954. _ACEOF
  4955. if ac_fn_cxx_try_compile "$LINENO"; then :
  4956. ac_cv_header_stat_broken=no
  4957. else
  4958. ac_cv_header_stat_broken=yes
  4959. fi
  4960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4961. fi
  4962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  4963. $as_echo "$ac_cv_header_stat_broken" >&6; }
  4964. if test $ac_cv_header_stat_broken = yes; then
  4965. $as_echo "#define STAT_MACROS_BROKEN 1" >>build/confdefs.h
  4966. fi
  4967. #checkpoint
  4968. cat >confcache <<\_ACEOF
  4969. # This file is a shell script that caches the results of configure
  4970. # tests run on this system so they can be shared between configure
  4971. # scripts and configure runs, see configure's option --config-cache.
  4972. # It is not useful on other systems. If it contains results you don't
  4973. # want to keep, you may remove or edit it.
  4974. #
  4975. # build/config.status only pays attention to the cache file if you give it
  4976. # the --recheck option to rerun configure.
  4977. #
  4978. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4979. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4980. # following values.
  4981. _ACEOF
  4982. # The following way of writing the cache mishandles newlines in values,
  4983. # but we know of no workaround that is simple, portable, and efficient.
  4984. # So, we kill variables containing newlines.
  4985. # Ultrix sh set writes to stderr and can't be redirected directly,
  4986. # and sets the high bit in the cache file unless we assign to the vars.
  4987. (
  4988. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4989. eval ac_val=\$$ac_var
  4990. case $ac_val in #(
  4991. *${as_nl}*)
  4992. case $ac_var in #(
  4993. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4994. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4995. esac
  4996. case $ac_var in #(
  4997. _ | IFS | as_nl) ;; #(
  4998. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4999. *) { eval $ac_var=; unset $ac_var;} ;;
  5000. esac ;;
  5001. esac
  5002. done
  5003. (set) 2>&1 |
  5004. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5005. *${as_nl}ac_space=\ *)
  5006. # `set' does not quote correctly, so add quotes: double-quote
  5007. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5008. sed -n \
  5009. "s/'/'\\\\''/g;
  5010. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5011. ;; #(
  5012. *)
  5013. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5014. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5015. ;;
  5016. esac |
  5017. sort
  5018. ) |
  5019. sed '
  5020. /^ac_cv_env_/b end
  5021. t clear
  5022. :clear
  5023. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5024. t end
  5025. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5026. :end' >>confcache
  5027. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5028. if test -w "$cache_file"; then
  5029. if test "x$cache_file" != "x/dev/null"; then
  5030. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5031. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5032. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5033. cat confcache >"$cache_file"
  5034. else
  5035. case $cache_file in #(
  5036. */* | ?:*)
  5037. mv -f confcache "$cache_file"$$ &&
  5038. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5039. *)
  5040. mv -f confcache "$cache_file" ;;
  5041. esac
  5042. fi
  5043. fi
  5044. else
  5045. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5046. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5047. fi
  5048. fi
  5049. rm -f confcache
  5050. for ac_header in stdarg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5051. do :
  5052. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5053. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5054. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5055. cat >>build/confdefs.h <<_ACEOF
  5056. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5057. _ACEOF
  5058. fi
  5059. done
  5060. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h sys/ptrace.h paths.h sys/prctl.h
  5061. do :
  5062. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5063. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5064. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5065. cat >>build/confdefs.h <<_ACEOF
  5066. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5067. _ACEOF
  5068. fi
  5069. done
  5070. #checkpoint
  5071. cat >confcache <<\_ACEOF
  5072. # This file is a shell script that caches the results of configure
  5073. # tests run on this system so they can be shared between configure
  5074. # scripts and configure runs, see configure's option --config-cache.
  5075. # It is not useful on other systems. If it contains results you don't
  5076. # want to keep, you may remove or edit it.
  5077. #
  5078. # build/config.status only pays attention to the cache file if you give it
  5079. # the --recheck option to rerun configure.
  5080. #
  5081. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5082. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5083. # following values.
  5084. _ACEOF
  5085. # The following way of writing the cache mishandles newlines in values,
  5086. # but we know of no workaround that is simple, portable, and efficient.
  5087. # So, we kill variables containing newlines.
  5088. # Ultrix sh set writes to stderr and can't be redirected directly,
  5089. # and sets the high bit in the cache file unless we assign to the vars.
  5090. (
  5091. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5092. eval ac_val=\$$ac_var
  5093. case $ac_val in #(
  5094. *${as_nl}*)
  5095. case $ac_var in #(
  5096. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5097. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5098. esac
  5099. case $ac_var in #(
  5100. _ | IFS | as_nl) ;; #(
  5101. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5102. *) { eval $ac_var=; unset $ac_var;} ;;
  5103. esac ;;
  5104. esac
  5105. done
  5106. (set) 2>&1 |
  5107. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5108. *${as_nl}ac_space=\ *)
  5109. # `set' does not quote correctly, so add quotes: double-quote
  5110. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5111. sed -n \
  5112. "s/'/'\\\\''/g;
  5113. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5114. ;; #(
  5115. *)
  5116. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5117. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5118. ;;
  5119. esac |
  5120. sort
  5121. ) |
  5122. sed '
  5123. /^ac_cv_env_/b end
  5124. t clear
  5125. :clear
  5126. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5127. t end
  5128. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5129. :end' >>confcache
  5130. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5131. if test -w "$cache_file"; then
  5132. if test "x$cache_file" != "x/dev/null"; then
  5133. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5134. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5135. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5136. cat confcache >"$cache_file"
  5137. else
  5138. case $cache_file in #(
  5139. */* | ?:*)
  5140. mv -f confcache "$cache_file"$$ &&
  5141. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5142. *)
  5143. mv -f confcache "$cache_file" ;;
  5144. esac
  5145. fi
  5146. fi
  5147. else
  5148. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5149. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5150. fi
  5151. fi
  5152. rm -f confcache
  5153. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5154. #AC_CHECK_HEADERS(zlib.h)
  5155. #EGG_CHECK_ZLIB
  5156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to OpenSSL" >&5
  5157. $as_echo_n "checking for path to OpenSSL... " >&6; }
  5158. # Check whether --with-openssl was given.
  5159. if test "${with_openssl+set}" = set; then :
  5160. withval=$with_openssl; with_openssl_path=$withval
  5161. else
  5162. with_openssl_path=auto
  5163. fi
  5164. cf_openssl_basedir=""
  5165. if test "$with_openssl_path" != "auto"; then
  5166. cf_openssl_basedir="`echo ${with_openssl_path} | sed 's/\/$//'`"
  5167. else
  5168. for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do
  5169. if test -f "${dirs}/include/openssl/opensslv.h" && test -f "${dirs}/lib/libssl.so"; then
  5170. cf_openssl_basedir="${dirs}"
  5171. break
  5172. fi
  5173. done
  5174. unset dirs
  5175. fi
  5176. if test ! -z "$cf_openssl_basedir"; then
  5177. if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" && test -f "${cf_openssl_basedir}/lib/libssl.so"; then
  5178. SSL_INCLUDES="-I${cf_openssl_basedir}/include"
  5179. SSL_LIBS="-L${cf_openssl_basedir}/lib"
  5180. else
  5181. cf_openssl_basedir=""
  5182. fi
  5183. else
  5184. if test -f "/usr/include/openssl/opensslv.h" ; then
  5185. cf_openssl_basedir="/usr"
  5186. fi
  5187. fi
  5188. if test ! -z "$cf_openssl_basedir"; then
  5189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
  5190. $as_echo "$cf_openssl_basedir" >&6; }
  5191. else
  5192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5193. $as_echo "not found" >&6; }
  5194. as_fn_error 1 "OpenSSL is required." "$LINENO" 5
  5195. fi
  5196. unset cf_openssl_basedir
  5197. save_CXX="$CXX"
  5198. CXX="$CXX $SSL_INCLUDES"
  5199. save_LIBS="$LIBS"
  5200. LIBS="$LIBS $SSL_LIBS"
  5201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
  5202. $as_echo_n "checking for OpenSSL version... " >&6; }
  5203. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5204. /* end build/confdefs.h. */
  5205. #include <openssl/opensslv.h>
  5206. int
  5207. main ()
  5208. {
  5209. #if !defined(OPENSSL_VERSION_NUMBER)
  5210. #error "Missing openssl version"
  5211. #endif
  5212. #if (OPENSSL_VERSION_NUMBER < 0x0090800f)
  5213. #error "Old/Insecure OpenSSL version " OPENSSL_VERSION_TEXT
  5214. #endif
  5215. ;
  5216. return 0;
  5217. }
  5218. _ACEOF
  5219. if ac_fn_cxx_try_compile "$LINENO"; then :
  5220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  5221. $as_echo "OK" >&6; }
  5222. else
  5223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old." >&5
  5224. $as_echo "too old." >&6; }
  5225. as_fn_error 1 "OpenSSL version is too old. Must be 0.9.8f+" "$LINENO" 5
  5226. fi
  5227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5228. CXX="$CXX $SSL_LIBS"
  5229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AES_encrypt in -lcrypto" >&5
  5230. $as_echo_n "checking for AES_encrypt in -lcrypto... " >&6; }
  5231. if ${ac_cv_lib_crypto_AES_encrypt+:} false; then :
  5232. $as_echo_n "(cached) " >&6
  5233. else
  5234. ac_check_lib_save_LIBS=$LIBS
  5235. LIBS="-lcrypto $LIBS"
  5236. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5237. /* end build/confdefs.h. */
  5238. /* Override any GCC internal prototype to avoid an error.
  5239. Use char because int might match the return type of a GCC
  5240. builtin and then its argument prototype would still apply. */
  5241. #ifdef __cplusplus
  5242. extern "C"
  5243. #endif
  5244. char AES_encrypt ();
  5245. int
  5246. main ()
  5247. {
  5248. return AES_encrypt ();
  5249. ;
  5250. return 0;
  5251. }
  5252. _ACEOF
  5253. if ac_fn_cxx_try_link "$LINENO"; then :
  5254. ac_cv_lib_crypto_AES_encrypt=yes
  5255. else
  5256. ac_cv_lib_crypto_AES_encrypt=no
  5257. fi
  5258. rm -f core conftest.err conftest.$ac_objext \
  5259. conftest$ac_exeext conftest.$ac_ext
  5260. LIBS=$ac_check_lib_save_LIBS
  5261. fi
  5262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_AES_encrypt" >&5
  5263. $as_echo "$ac_cv_lib_crypto_AES_encrypt" >&6; }
  5264. if test "x$ac_cv_lib_crypto_AES_encrypt" = xyes; then :
  5265. if test "$USE_STATIC" = "yes"; then
  5266. SSL_LIBS="$SSL_LIBS -Wl,-Bstatic -lcrypto -Wl,-Bdynamic"
  5267. else
  5268. SSL_LIBS="$SSL_LIBS -lcrypto"
  5269. fi
  5270. else
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found." >&5
  5272. $as_echo "not found." >&6; }
  5273. as_fn_error 1 "Libcrypto/openssl is required." "$LINENO" 5
  5274. fi
  5275. CXX="$save_CXX"
  5276. LIBS="$save_LIBS"
  5277. cat >>build/confdefs.h <<_ACEOF
  5278. #define EGG_SSL_EXT 1
  5279. _ACEOF
  5280. # TCL checks
  5281. # Tcl version to recommend if no Tcl is found, and the site where it can be
  5282. # found for download.
  5283. tclrecommendver="8.5.X"
  5284. tclrecommendsite="ftp://tcl.activestate.com/pub/tcl/tcl8_5/"
  5285. # Tcl library filename prefixes, suffixes, and search paths.
  5286. tcllibnames="tcl8.6 tcl86 tcl8.5 tcl85 tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 \
  5287. tcl8.1 tcl81 tcl8.0 tcl80 tcl tcl7.6 tcl76 tcl7.5 tcl75 \
  5288. tcl7.4 tcl74 tcl7.3 tcl73 tcl7.2 tcl72 tcl7.1 tcl71 \
  5289. tcl7.0 tcl70"
  5290. tcllibextensions=".so .so.1 .so.1.0 .so.1.1 .so.1.2 .dll .dylib .sl .a"
  5291. tcllibpaths="$HOME/lib $HOME/tcl/lib \
  5292. /usr/local/lib /usr/lib /lib /lib64 /usr/lib64 \
  5293. /usr/local/lib/tcl8.6 /usr/lib/tcl8.6 \
  5294. /usr/local/lib/tcl8.5 /usr/lib/tcl8.5 \
  5295. /usr/local/lib/tcl8.4 /usr/lib/tcl8.4 \
  5296. /usr/local/lib/tcl8.3 /usr/lib/tcl8.3 \
  5297. /usr/local/pkgs/tcl/lib /sys/lib /usr/pkg/lib \
  5298. /usr/i486-linuxaout/lib /beos/system/lib $HOME"
  5299. # Tcl header filenames and search paths.
  5300. tclheadernames="tcl.h"
  5301. tclheaderpaths="$HOME/include $HOME/tcl/include \
  5302. /usr/local/include /usr/include \
  5303. /usr/local/include/tcl8.6 /usr/include/tcl8.6 \
  5304. /usr/local/include/tcl8.5 /usr/include/tcl8.5 \
  5305. /usr/local/include/tcl8.4 /usr/include/tcl8.4 \
  5306. /usr/local/include/tcl8.3 /usr/include/tcl8.3 \
  5307. /usr/local/pkgs/tcl/include /sys/include \
  5308. /usr/pkg/lib /beos/system/include /beos/devel/include $HOME"
  5309. # Misc Tcl checks.
  5310. # Check whether --with-tcllib was given.
  5311. if test "${with_tcllib+set}" = set; then :
  5312. withval=$with_tcllib; tcllibname="$withval"
  5313. fi
  5314. # Check whether --with-tclinc was given.
  5315. if test "${with_tclinc+set}" = set; then :
  5316. withval=$with_tclinc; tclincname="$withval"
  5317. fi
  5318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TCL Script is enabled" >&5
  5319. $as_echo_n "checking whether TCL Script is enabled... " >&6; }
  5320. # Check whether --enable-script-tcl was given.
  5321. if test "${enable_script_tcl+set}" = set; then :
  5322. enableval=$enable_script_tcl;
  5323. enable_script_tcl=$enableval
  5324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  5325. $as_echo "$enableval" >&6; }
  5326. else
  5327. # default if not given is ENABLED
  5328. if test "x$enableval" = "x"; then
  5329. enableval="yes"
  5330. fi
  5331. enable_script_tcl=$enableval
  5332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  5333. $as_echo "$enableval" >&6; }
  5334. $as_echo "#define USE_SCRIPT_TCL 1" >>build/confdefs.h
  5335. fi
  5336. WARN=0
  5337. # Make sure either both or neither $tcllibname and $tclincname are set
  5338. if test "x$tcllibname" != x; then
  5339. if test "x$tclincname" = x; then
  5340. WARN=1
  5341. tcllibname=""
  5342. TCLLIB=""
  5343. TCLINC=""
  5344. fi
  5345. else
  5346. if test "x$tclincname" != x; then
  5347. WARN=1
  5348. tclincname=""
  5349. TCLLIB=""
  5350. TCLINC=""
  5351. fi
  5352. fi
  5353. if test "$WARN" = 1; then
  5354. cat << 'EOF' >&2
  5355. configure: WARNING:
  5356. You must specify both --with-tcllib and --with-tclinc for either to work.
  5357. configure will now attempt to autodetect both the Tcl library and header.
  5358. EOF
  5359. fi
  5360. WARN=0
  5361. # Make sure either both or neither $TCLLIB and $TCLINC are set
  5362. if test "x$TCLLIB" != x; then
  5363. if test "x$TCLINC" = x; then
  5364. WARN=1
  5365. WVAR1=TCLLIB
  5366. WVAR2=TCLINC
  5367. TCLLIB=""
  5368. fi
  5369. else
  5370. if test "x$TCLINC" != x; then
  5371. WARN=1
  5372. WVAR1=TCLINC
  5373. WVAR2=TCLLIB
  5374. TCLINC=""
  5375. fi
  5376. fi
  5377. if test "$WARN" = 1; then
  5378. cat << EOF >&2
  5379. configure: WARNING:
  5380. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  5381. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5382. configure will now attempt to autodetect both the Tcl library and header.
  5383. EOF
  5384. fi
  5385. # Look for Tcl library: if $tcllibname is set, check there first
  5386. if test "x$tcllibname" != x; then
  5387. if test -f "$tcllibname" && test -r "$tcllibname"; then
  5388. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  5389. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  5390. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  5391. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  5392. else
  5393. cat << EOF >&2
  5394. configure: WARNING:
  5395. The file '$tcllibname' given to option --with-tcllib is not valid.
  5396. configure will now attempt to autodetect both the Tcl library and header.
  5397. EOF
  5398. tcllibname=""
  5399. tclincname=""
  5400. TCLLIB=""
  5401. TCLLIBFN=""
  5402. TCLINC=""
  5403. TCLINCFN=""
  5404. fi
  5405. fi
  5406. # Look for Tcl header: if $tclincname is set, check there first
  5407. if test "x$tclincname" != x; then
  5408. if test -f "$tclincname" && test -r "$tclincname"; then
  5409. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  5410. TCLINCFN=`$BASENAME $tclincname`
  5411. else
  5412. cat << EOF >&2
  5413. configure: WARNING:
  5414. The file '$tclincname' given to option --with-tclinc is not valid.
  5415. configure will now attempt to autodetect both the Tcl library and header.
  5416. EOF
  5417. tcllibname=""
  5418. tclincname=""
  5419. TCLLIB=""
  5420. TCLLIBFN=""
  5421. TCLINC=""
  5422. TCLINCFN=""
  5423. fi
  5424. fi
  5425. # Look for Tcl library: if $TCLLIB is set, check there first
  5426. if test "x$TCLLIBFN" = x && test "x$TCLLIB" != x; then
  5427. if test -d "$TCLLIB"; then
  5428. for tcllibfns in $tcllibnames; do
  5429. for tcllibext in $tcllibextensions; do
  5430. if test -r "${TCLLIB}/lib${tcllibfns}${tcllibext}"; then
  5431. TCLLIBFN="${tcllibfns}${tcllibext}"
  5432. TCLLIBEXT="$tcllibext"
  5433. TCLLIBFNS="$tcllibfns"
  5434. break 2
  5435. fi
  5436. done
  5437. done
  5438. fi
  5439. if test "x$TCLLIBFN" = x; then
  5440. cat << 'EOF' >&2
  5441. configure: WARNING:
  5442. Environment variable TCLLIB was set, but incorrectly.
  5443. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5444. configure will now attempt to autodetect both the Tcl library and header.
  5445. EOF
  5446. TCLLIB=""
  5447. TCLLIBFN=""
  5448. TCLINC=""
  5449. TCLINCFN=""
  5450. fi
  5451. fi
  5452. # Look for Tcl header: if $TCLINC is set, check there first
  5453. if test "x$TCLINCFN" = x && test "x$TCLINC" != x; then
  5454. if test -d "$TCLINC"; then
  5455. for tclheaderfn in $tclheadernames; do
  5456. if test -r "${TCLINC}/${tclheaderfn}"; then
  5457. TCLINCFN="$tclheaderfn"
  5458. break
  5459. fi
  5460. done
  5461. fi
  5462. if test "x$TCLINCFN" = x; then
  5463. cat << 'EOF' >&2
  5464. configure: WARNING:
  5465. Environment variable TCLINC was set, but incorrectly.
  5466. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5467. configure will now attempt to autodetect both the Tcl library and header.
  5468. EOF
  5469. TCLLIB=""
  5470. TCLLIBFN=""
  5471. TCLINC=""
  5472. TCLINCFN=""
  5473. fi
  5474. fi
  5475. if test "$enable_script_tcl" = "yes"; then
  5476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library" >&5
  5477. $as_echo_n "checking for Tcl library... " >&6; }
  5478. # Attempt autodetect for $TCLLIBFN if it's not set
  5479. if test "x$TCLLIBFN" != x; then
  5480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${TCLLIB}/lib${TCLLIBFN}" >&5
  5481. $as_echo "using ${TCLLIB}/lib${TCLLIBFN}" >&6; }
  5482. else
  5483. for tcllibfns in $tcllibnames; do
  5484. for tcllibext in $tcllibextensions; do
  5485. for tcllibpath in $tcllibpaths; do
  5486. if test -r "${tcllibpath}/lib${tcllibfns}${tcllibext}"; then
  5487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tcllibpath}/lib${tcllibfns}${tcllibext}" >&5
  5488. $as_echo "found ${tcllibpath}/lib${tcllibfns}${tcllibext}" >&6; }
  5489. TCLLIB="$tcllibpath"
  5490. TCLLIBFN="${tcllibfns}${tcllibext}"
  5491. TCLLIBEXT="$tcllibext"
  5492. TCLLIBFNS="$tcllibfns"
  5493. break 3
  5494. fi
  5495. done
  5496. done
  5497. done
  5498. fi
  5499. # Show if $TCLLIBFN wasn't found
  5500. if test "x$TCLLIBFN" = x; then
  5501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5502. $as_echo "not found" >&6; }
  5503. fi
  5504. fi
  5505. if test "$enable_script_tcl" = "yes"; then
  5506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl header" >&5
  5507. $as_echo_n "checking for Tcl header... " >&6; }
  5508. # Attempt autodetect for $TCLINCFN if it's not set
  5509. if test "x$TCLINCFN" != x; then
  5510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${TCLINC}/${TCLINCFN}" >&5
  5511. $as_echo "using ${TCLINC}/${TCLINCFN}" >&6; }
  5512. else
  5513. for tclheaderpath in $tclheaderpaths; do
  5514. for tclheaderfn in $tclheadernames; do
  5515. if test -r "${tclheaderpath}/${tclheaderfn}"; then
  5516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tclheaderpath}/${tclheaderfn}" >&5
  5517. $as_echo "found ${tclheaderpath}/${tclheaderfn}" >&6; }
  5518. TCLINC="$tclheaderpath"
  5519. TCLINCFN="$tclheaderfn"
  5520. break 2
  5521. fi
  5522. done
  5523. done
  5524. # FreeBSD hack ...
  5525. if test "x$TCLINCFN" = x; then
  5526. for tcllibfns in $tcllibnames; do
  5527. for tclheaderpath in $tclheaderpaths; do
  5528. for tclheaderfn in $tclheadernames; do
  5529. if test -r "${tclheaderpath}/${tcllibfns}/${tclheaderfn}"; then
  5530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}" >&5
  5531. $as_echo "found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}" >&6; }
  5532. TCLINC="${tclheaderpath}/${tcllibfns}"
  5533. TCLINCFN="$tclheaderfn"
  5534. break 3
  5535. fi
  5536. done
  5537. done
  5538. done
  5539. fi
  5540. fi
  5541. TCL_INCLUDES=""
  5542. if ! test "x$TCLINC" = x; then
  5543. TCL_INCLUDES="-I$TCLINC"
  5544. fi
  5545. if test "x$TCLINCFN" = x; then
  5546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5547. $as_echo "not found" >&6; }
  5548. fi
  5549. fi
  5550. if test "$enable_script_tcl" = "yes"; then
  5551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Tcl system has changed" >&5
  5552. $as_echo_n "checking whether the Tcl system has changed... " >&6; }
  5553. egg_tcl_changed="yes"
  5554. egg_tcl_id="${TCLLIB}:${TCLLIBFN}:${TCLINC}:${TCLINCFN}"
  5555. if test "$egg_tcl_id" != ":::"; then
  5556. egg_tcl_cached="yes"
  5557. if ${egg_cv_var_tcl_id+:} false; then :
  5558. $as_echo_n "(cached) " >&6
  5559. else
  5560. egg_cv_var_tcl_id="$egg_tcl_id"
  5561. egg_tcl_cached="no"
  5562. fi
  5563. if test "$egg_tcl_cached" = yes; then
  5564. if test "x$egg_cv_var_tcl_id" = "x$egg_tcl_id"; then
  5565. egg_tcl_changed="no"
  5566. else
  5567. egg_cv_var_tcl_id="$egg_tcl_id"
  5568. fi
  5569. fi
  5570. fi
  5571. if test "$egg_tcl_changed" = yes; then
  5572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5573. $as_echo "yes" >&6; }
  5574. else
  5575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5576. $as_echo "no" >&6; }
  5577. fi
  5578. fi
  5579. if test "$enable_script_tcl" = "yes"; then
  5580. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  5581. TCL_FOUND=0
  5582. if test "x$TCLLIBFN" != x && test "x$TCLINCFN" != x; then
  5583. TCL_FOUND=1
  5584. # Check Tcl's version
  5585. if test "$egg_tcl_changed" = yes; then
  5586. unset egg_cv_var_tcl_version
  5587. fi
  5588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl version" >&5
  5589. $as_echo_n "checking for Tcl version... " >&6; }
  5590. if ${egg_cv_var_tcl_version+:} false; then :
  5591. $as_echo_n "(cached) " >&6
  5592. else
  5593. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`
  5594. fi
  5595. if test "x$egg_cv_var_tcl_version" != x; then
  5596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_tcl_version" >&5
  5597. $as_echo "$egg_cv_var_tcl_version" >&6; }
  5598. else
  5599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5600. $as_echo "not found" >&6; }
  5601. TCL_FOUND=0
  5602. fi
  5603. # Check Tcl's patch level (if available)
  5604. if test "$egg_tcl_changed" = yes; then
  5605. unset egg_cv_var_tcl_patch_level
  5606. fi
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl patch level" >&5
  5608. $as_echo_n "checking for Tcl patch level... " >&6; }
  5609. if ${egg_cv_var_tcl_patch_level+:} false; then :
  5610. $as_echo_n "(cached) " >&6
  5611. else
  5612. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`"
  5613. fi
  5614. if test "x$egg_cv_var_tcl_patch_level" != x; then
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_tcl_patch_level" >&5
  5616. $as_echo "$egg_cv_var_tcl_patch_level" >&6; }
  5617. else
  5618. egg_cv_var_tcl_patch_level="unknown"
  5619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
  5620. $as_echo "unknown" >&6; }
  5621. fi
  5622. fi
  5623. # Check if we found Tcl's version
  5624. if test "$TCL_FOUND" = 0; then
  5625. cat << 'EOF' >&2
  5626. configure: error:
  5627. Tcl cannot be found on this system.
  5628. Tcl is not required. Wraith will be compiled without TCL support. If you
  5629. already have Tcl installed on this system, please specify the path by
  5630. rerunning ./configure using the --with-tcllib='/path/to/libtcl.so' and
  5631. --with-tclinc='/path/to/tcl.h' options.
  5632. EOF
  5633. enable_script_tcl="no"
  5634. else
  5635. $as_echo "#define HAVE_LIBTCL 1" >>build/confdefs.h
  5636. fi
  5637. fi
  5638. if test "$enable_script_tcl" = "yes"; then
  5639. # Is this version of Tcl too old for us to use ?
  5640. TCL_VER_PRE70=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 7) print "yes"; else print "no"}'`
  5641. if test "$TCL_VER_PRE70" = yes; then
  5642. cat << EOF >&2
  5643. configure: error:
  5644. Your Tcl version is much too old for Wraith to use. You should
  5645. download and compile a more recent version. The most reliable
  5646. current version is $tclrecommendver and can be downloaded from
  5647. ${tclrecommendsite}.
  5648. See doc/COMPILE-GUIDE's 'Tcl Detection and Installation' section
  5649. for more information.
  5650. EOF
  5651. exit 1
  5652. fi
  5653. fi
  5654. # Set variables for Tcl library tests
  5655. TCL_TEST_LIB="$TCLLIBFNS"
  5656. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  5657. if test "x$ac_cv_lib_pthread" != x; then
  5658. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  5659. fi
  5660. if test "$enable_script_tcl" = "yes"; then
  5661. if test "$egg_tcl_changed" = yes; then
  5662. unset egg_cv_var_tcl_free
  5663. fi
  5664. # Check for Tcl_Free()
  5665. as_ac_Lib=`$as_echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_Free" | $as_tr_sh`
  5666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  5667. $as_echo_n "checking for Tcl_Free in -l$TCL_TEST_LIB... " >&6; }
  5668. if eval \${$as_ac_Lib+:} false; then :
  5669. $as_echo_n "(cached) " >&6
  5670. else
  5671. ac_check_lib_save_LIBS=$LIBS
  5672. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  5673. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5674. /* end build/confdefs.h. */
  5675. /* Override any GCC internal prototype to avoid an error.
  5676. Use char because int might match the return type of a GCC
  5677. builtin and then its argument prototype would still apply. */
  5678. #ifdef __cplusplus
  5679. extern "C"
  5680. #endif
  5681. char Tcl_Free ();
  5682. int
  5683. main ()
  5684. {
  5685. return Tcl_Free ();
  5686. ;
  5687. return 0;
  5688. }
  5689. _ACEOF
  5690. if ac_fn_cxx_try_link "$LINENO"; then :
  5691. eval "$as_ac_Lib=yes"
  5692. else
  5693. eval "$as_ac_Lib=no"
  5694. fi
  5695. rm -f core conftest.err conftest.$ac_objext \
  5696. conftest$ac_exeext conftest.$ac_ext
  5697. LIBS=$ac_check_lib_save_LIBS
  5698. fi
  5699. eval ac_res=\$$as_ac_Lib
  5700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5701. $as_echo "$ac_res" >&6; }
  5702. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  5703. egg_cv_var_tcl_free="yes"
  5704. else
  5705. egg_cv_var_tcl_free="no"
  5706. fi
  5707. if test "$egg_cv_var_tcl_free" = yes; then
  5708. $as_echo "#define HAVE_TCL_FREE 1" >>build/confdefs.h
  5709. fi
  5710. fi
  5711. #EGG_TCL_CHECK_GETCURRENTTHREAD
  5712. #EGG_TCL_CHECK_GETTHREADDATA
  5713. if test "$enable_script_tcl" = "yes"; then
  5714. if test "$egg_tcl_changed" = yes; then
  5715. unset egg_cv_var_tcl_setnotifier
  5716. fi
  5717. # Check for Tcl_SetNotifier()
  5718. as_ac_Lib=`$as_echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_SetNotifier" | $as_tr_sh`
  5719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_SetNotifier in -l$TCL_TEST_LIB" >&5
  5720. $as_echo_n "checking for Tcl_SetNotifier in -l$TCL_TEST_LIB... " >&6; }
  5721. if eval \${$as_ac_Lib+:} false; then :
  5722. $as_echo_n "(cached) " >&6
  5723. else
  5724. ac_check_lib_save_LIBS=$LIBS
  5725. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  5726. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5727. /* end build/confdefs.h. */
  5728. /* Override any GCC internal prototype to avoid an error.
  5729. Use char because int might match the return type of a GCC
  5730. builtin and then its argument prototype would still apply. */
  5731. #ifdef __cplusplus
  5732. extern "C"
  5733. #endif
  5734. char Tcl_SetNotifier ();
  5735. int
  5736. main ()
  5737. {
  5738. return Tcl_SetNotifier ();
  5739. ;
  5740. return 0;
  5741. }
  5742. _ACEOF
  5743. if ac_fn_cxx_try_link "$LINENO"; then :
  5744. eval "$as_ac_Lib=yes"
  5745. else
  5746. eval "$as_ac_Lib=no"
  5747. fi
  5748. rm -f core conftest.err conftest.$ac_objext \
  5749. conftest$ac_exeext conftest.$ac_ext
  5750. LIBS=$ac_check_lib_save_LIBS
  5751. fi
  5752. eval ac_res=\$$as_ac_Lib
  5753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5754. $as_echo "$ac_res" >&6; }
  5755. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  5756. egg_cv_var_tcl_setnotifier="yes"
  5757. else
  5758. egg_cv_var_tcl_setnotifier="no"
  5759. fi
  5760. if test "$egg_cv_var_tcl_setnotifier" = yes; then
  5761. $as_echo "#define HAVE_TCL_SETNOTIFIER 1" >>build/confdefs.h
  5762. fi
  5763. fi
  5764. if test "$enable_script_tcl" = "yes"; then
  5765. if test "$EGG_CYGWIN" = yes; then
  5766. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5767. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  5768. else
  5769. if test "$TCLLIBEXT" != ".a"; then
  5770. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5771. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  5772. else
  5773. # Set default make as static for unshared Tcl library
  5774. if test "$DEFAULT_MAKE" != static; then
  5775. cat << 'EOF' >&2
  5776. configure: WARNING:
  5777. Your Tcl library is not a shared lib.
  5778. configure will now set default make type to static.
  5779. EOF
  5780. DEFAULT_MAKE="static"
  5781. fi
  5782. # Are we using a pre 7.4 Tcl version ?
  5783. 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"}'`
  5784. if test "$TCL_VER_PRE74" = no; then
  5785. # Was the --with-tcllib option given ?
  5786. if test "x$tcllibname" != x; then
  5787. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5788. TCL_LIBS="${TCLLIB}/lib${TCLLIBFN} $EGG_MATH_LIB"
  5789. else
  5790. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5791. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  5792. fi
  5793. else
  5794. cat << EOF >&2
  5795. configure: WARNING:
  5796. Your Tcl version ($egg_cv_var_tcl_version) is older than 7.4.
  5797. There are known problems, but we will attempt to work around them.
  5798. EOF
  5799. TCL_REQS="libtcle.a"
  5800. TCL_LIBS="-L`pwd` -ltcle $EGG_MATH_LIB"
  5801. fi
  5802. fi
  5803. fi
  5804. fi
  5805. cat >confcache <<\_ACEOF
  5806. # This file is a shell script that caches the results of configure
  5807. # tests run on this system so they can be shared between configure
  5808. # scripts and configure runs, see configure's option --config-cache.
  5809. # It is not useful on other systems. If it contains results you don't
  5810. # want to keep, you may remove or edit it.
  5811. #
  5812. # build/config.status only pays attention to the cache file if you give it
  5813. # the --recheck option to rerun configure.
  5814. #
  5815. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5816. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5817. # following values.
  5818. _ACEOF
  5819. # The following way of writing the cache mishandles newlines in values,
  5820. # but we know of no workaround that is simple, portable, and efficient.
  5821. # So, we kill variables containing newlines.
  5822. # Ultrix sh set writes to stderr and can't be redirected directly,
  5823. # and sets the high bit in the cache file unless we assign to the vars.
  5824. (
  5825. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5826. eval ac_val=\$$ac_var
  5827. case $ac_val in #(
  5828. *${as_nl}*)
  5829. case $ac_var in #(
  5830. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5831. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5832. esac
  5833. case $ac_var in #(
  5834. _ | IFS | as_nl) ;; #(
  5835. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5836. *) { eval $ac_var=; unset $ac_var;} ;;
  5837. esac ;;
  5838. esac
  5839. done
  5840. (set) 2>&1 |
  5841. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5842. *${as_nl}ac_space=\ *)
  5843. # `set' does not quote correctly, so add quotes: double-quote
  5844. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5845. sed -n \
  5846. "s/'/'\\\\''/g;
  5847. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5848. ;; #(
  5849. *)
  5850. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5851. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5852. ;;
  5853. esac |
  5854. sort
  5855. ) |
  5856. sed '
  5857. /^ac_cv_env_/b end
  5858. t clear
  5859. :clear
  5860. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5861. t end
  5862. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5863. :end' >>confcache
  5864. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5865. if test -w "$cache_file"; then
  5866. if test "x$cache_file" != "x/dev/null"; then
  5867. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5868. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5869. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5870. cat confcache >"$cache_file"
  5871. else
  5872. case $cache_file in #(
  5873. */* | ?:*)
  5874. mv -f confcache "$cache_file"$$ &&
  5875. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5876. *)
  5877. mv -f confcache "$cache_file" ;;
  5878. esac
  5879. fi
  5880. fi
  5881. else
  5882. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5883. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5884. fi
  5885. fi
  5886. rm -f confcache
  5887. #AC_SUBST(ZLIB)dnl
  5888. # Checks for typedefs, structures, and compiler characteristics
  5889. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  5890. if test "x$ac_cv_type_pid_t" = xyes; then :
  5891. else
  5892. cat >>build/confdefs.h <<_ACEOF
  5893. #define pid_t int
  5894. _ACEOF
  5895. fi
  5896. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  5897. if test "x$ac_cv_type_size_t" = xyes; then :
  5898. else
  5899. cat >>build/confdefs.h <<_ACEOF
  5900. #define size_t unsigned int
  5901. _ACEOF
  5902. fi
  5903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  5904. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  5905. if ${ac_cv_type_uid_t+:} false; then :
  5906. $as_echo_n "(cached) " >&6
  5907. else
  5908. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5909. /* end build/confdefs.h. */
  5910. #include <sys/types.h>
  5911. _ACEOF
  5912. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5913. $EGREP "uid_t" >/dev/null 2>&1; then :
  5914. ac_cv_type_uid_t=yes
  5915. else
  5916. ac_cv_type_uid_t=no
  5917. fi
  5918. rm -f conftest*
  5919. fi
  5920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  5921. $as_echo "$ac_cv_type_uid_t" >&6; }
  5922. if test $ac_cv_type_uid_t = no; then
  5923. $as_echo "#define uid_t int" >>build/confdefs.h
  5924. $as_echo "#define gid_t int" >>build/confdefs.h
  5925. fi
  5926. #AC_C_CONST
  5927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  5928. $as_echo_n "checking for working volatile... " >&6; }
  5929. if ${ac_cv_c_volatile+:} false; then :
  5930. $as_echo_n "(cached) " >&6
  5931. else
  5932. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5933. /* end build/confdefs.h. */
  5934. int
  5935. main ()
  5936. {
  5937. volatile int x;
  5938. int * volatile y = (int *) 0;
  5939. return !x && !y;
  5940. ;
  5941. return 0;
  5942. }
  5943. _ACEOF
  5944. if ac_fn_cxx_try_compile "$LINENO"; then :
  5945. ac_cv_c_volatile=yes
  5946. else
  5947. ac_cv_c_volatile=no
  5948. fi
  5949. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5950. fi
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  5952. $as_echo "$ac_cv_c_volatile" >&6; }
  5953. if test $ac_cv_c_volatile = no; then
  5954. $as_echo "#define volatile /**/" >>build/confdefs.h
  5955. fi
  5956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  5957. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  5958. if ${ac_cv_c_bigendian+:} false; then :
  5959. $as_echo_n "(cached) " >&6
  5960. else
  5961. ac_cv_c_bigendian=unknown
  5962. # See if we're dealing with a universal compiler.
  5963. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5964. /* end build/confdefs.h. */
  5965. #ifndef __APPLE_CC__
  5966. not a universal capable compiler
  5967. #endif
  5968. typedef int dummy;
  5969. _ACEOF
  5970. if ac_fn_cxx_try_compile "$LINENO"; then :
  5971. # Check for potential -arch flags. It is not universal unless
  5972. # there are at least two -arch flags with different values.
  5973. ac_arch=
  5974. ac_prev=
  5975. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  5976. if test -n "$ac_prev"; then
  5977. case $ac_word in
  5978. i?86 | x86_64 | ppc | ppc64)
  5979. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  5980. ac_arch=$ac_word
  5981. else
  5982. ac_cv_c_bigendian=universal
  5983. break
  5984. fi
  5985. ;;
  5986. esac
  5987. ac_prev=
  5988. elif test "x$ac_word" = "x-arch"; then
  5989. ac_prev=arch
  5990. fi
  5991. done
  5992. fi
  5993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5994. if test $ac_cv_c_bigendian = unknown; then
  5995. # See if sys/param.h defines the BYTE_ORDER macro.
  5996. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5997. /* end build/confdefs.h. */
  5998. #include <sys/types.h>
  5999. #include <sys/param.h>
  6000. int
  6001. main ()
  6002. {
  6003. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  6004. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  6005. && LITTLE_ENDIAN)
  6006. bogus endian macros
  6007. #endif
  6008. ;
  6009. return 0;
  6010. }
  6011. _ACEOF
  6012. if ac_fn_cxx_try_compile "$LINENO"; then :
  6013. # It does; now see whether it defined to BIG_ENDIAN or not.
  6014. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6015. /* end build/confdefs.h. */
  6016. #include <sys/types.h>
  6017. #include <sys/param.h>
  6018. int
  6019. main ()
  6020. {
  6021. #if BYTE_ORDER != BIG_ENDIAN
  6022. not big endian
  6023. #endif
  6024. ;
  6025. return 0;
  6026. }
  6027. _ACEOF
  6028. if ac_fn_cxx_try_compile "$LINENO"; then :
  6029. ac_cv_c_bigendian=yes
  6030. else
  6031. ac_cv_c_bigendian=no
  6032. fi
  6033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6034. fi
  6035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6036. fi
  6037. if test $ac_cv_c_bigendian = unknown; then
  6038. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  6039. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6040. /* end build/confdefs.h. */
  6041. #include <limits.h>
  6042. int
  6043. main ()
  6044. {
  6045. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  6046. bogus endian macros
  6047. #endif
  6048. ;
  6049. return 0;
  6050. }
  6051. _ACEOF
  6052. if ac_fn_cxx_try_compile "$LINENO"; then :
  6053. # It does; now see whether it defined to _BIG_ENDIAN or not.
  6054. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6055. /* end build/confdefs.h. */
  6056. #include <limits.h>
  6057. int
  6058. main ()
  6059. {
  6060. #ifndef _BIG_ENDIAN
  6061. not big endian
  6062. #endif
  6063. ;
  6064. return 0;
  6065. }
  6066. _ACEOF
  6067. if ac_fn_cxx_try_compile "$LINENO"; then :
  6068. ac_cv_c_bigendian=yes
  6069. else
  6070. ac_cv_c_bigendian=no
  6071. fi
  6072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6073. fi
  6074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6075. fi
  6076. if test $ac_cv_c_bigendian = unknown; then
  6077. # Compile a test program.
  6078. if test "$cross_compiling" = yes; then :
  6079. # Try to guess by grepping values from an object file.
  6080. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6081. /* end build/confdefs.h. */
  6082. short int ascii_mm[] =
  6083. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6084. short int ascii_ii[] =
  6085. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6086. int use_ascii (int i) {
  6087. return ascii_mm[i] + ascii_ii[i];
  6088. }
  6089. short int ebcdic_ii[] =
  6090. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6091. short int ebcdic_mm[] =
  6092. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6093. int use_ebcdic (int i) {
  6094. return ebcdic_mm[i] + ebcdic_ii[i];
  6095. }
  6096. extern int foo;
  6097. int
  6098. main ()
  6099. {
  6100. return use_ascii (foo) == use_ebcdic (foo);
  6101. ;
  6102. return 0;
  6103. }
  6104. _ACEOF
  6105. if ac_fn_cxx_try_compile "$LINENO"; then :
  6106. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  6107. ac_cv_c_bigendian=yes
  6108. fi
  6109. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6110. if test "$ac_cv_c_bigendian" = unknown; then
  6111. ac_cv_c_bigendian=no
  6112. else
  6113. # finding both strings is unlikely to happen, but who knows?
  6114. ac_cv_c_bigendian=unknown
  6115. fi
  6116. fi
  6117. fi
  6118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6119. else
  6120. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6121. /* end build/confdefs.h. */
  6122. $ac_includes_default
  6123. int
  6124. main ()
  6125. {
  6126. /* Are we little or big endian? From Harbison&Steele. */
  6127. union
  6128. {
  6129. long int l;
  6130. char c[sizeof (long int)];
  6131. } u;
  6132. u.l = 1;
  6133. return u.c[sizeof (long int) - 1] == 1;
  6134. ;
  6135. return 0;
  6136. }
  6137. _ACEOF
  6138. if ac_fn_cxx_try_run "$LINENO"; then :
  6139. ac_cv_c_bigendian=no
  6140. else
  6141. ac_cv_c_bigendian=yes
  6142. fi
  6143. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6144. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6145. fi
  6146. fi
  6147. fi
  6148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  6149. $as_echo "$ac_cv_c_bigendian" >&6; }
  6150. case $ac_cv_c_bigendian in #(
  6151. yes)
  6152. $as_echo "#define B_ENDIAN 1" >>build/confdefs.h
  6153. ;; #(
  6154. no)
  6155. $as_echo "#define L_ENDIAN 1" >>build/confdefs.h
  6156. ;; #(
  6157. universal)
  6158. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>build/confdefs.h
  6159. ;; #(
  6160. *)
  6161. as_fn_error $? "unknown endianness
  6162. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  6163. esac
  6164. #AC_C_INLINE
  6165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
  6166. $as_echo_n "checking whether char is unsigned... " >&6; }
  6167. if ${ac_cv_c_char_unsigned+:} false; then :
  6168. $as_echo_n "(cached) " >&6
  6169. else
  6170. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6171. /* end build/confdefs.h. */
  6172. $ac_includes_default
  6173. int
  6174. main ()
  6175. {
  6176. static int test_array [1 - 2 * !(((char) -1) < 0)];
  6177. test_array [0] = 0;
  6178. return test_array [0];
  6179. ;
  6180. return 0;
  6181. }
  6182. _ACEOF
  6183. if ac_fn_cxx_try_compile "$LINENO"; then :
  6184. ac_cv_c_char_unsigned=no
  6185. else
  6186. ac_cv_c_char_unsigned=yes
  6187. fi
  6188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6189. fi
  6190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
  6191. $as_echo "$ac_cv_c_char_unsigned" >&6; }
  6192. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  6193. $as_echo "#define __CHAR_UNSIGNED__ 1" >>build/confdefs.h
  6194. fi
  6195. #AC_C_STRINGIZE
  6196. #AC_C_PROTOTYPES
  6197. #checkpoint
  6198. cat >confcache <<\_ACEOF
  6199. # This file is a shell script that caches the results of configure
  6200. # tests run on this system so they can be shared between configure
  6201. # scripts and configure runs, see configure's option --config-cache.
  6202. # It is not useful on other systems. If it contains results you don't
  6203. # want to keep, you may remove or edit it.
  6204. #
  6205. # build/config.status only pays attention to the cache file if you give it
  6206. # the --recheck option to rerun configure.
  6207. #
  6208. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6209. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6210. # following values.
  6211. _ACEOF
  6212. # The following way of writing the cache mishandles newlines in values,
  6213. # but we know of no workaround that is simple, portable, and efficient.
  6214. # So, we kill variables containing newlines.
  6215. # Ultrix sh set writes to stderr and can't be redirected directly,
  6216. # and sets the high bit in the cache file unless we assign to the vars.
  6217. (
  6218. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6219. eval ac_val=\$$ac_var
  6220. case $ac_val in #(
  6221. *${as_nl}*)
  6222. case $ac_var in #(
  6223. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6224. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6225. esac
  6226. case $ac_var in #(
  6227. _ | IFS | as_nl) ;; #(
  6228. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6229. *) { eval $ac_var=; unset $ac_var;} ;;
  6230. esac ;;
  6231. esac
  6232. done
  6233. (set) 2>&1 |
  6234. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6235. *${as_nl}ac_space=\ *)
  6236. # `set' does not quote correctly, so add quotes: double-quote
  6237. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6238. sed -n \
  6239. "s/'/'\\\\''/g;
  6240. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6241. ;; #(
  6242. *)
  6243. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6244. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6245. ;;
  6246. esac |
  6247. sort
  6248. ) |
  6249. sed '
  6250. /^ac_cv_env_/b end
  6251. t clear
  6252. :clear
  6253. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6254. t end
  6255. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6256. :end' >>confcache
  6257. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6258. if test -w "$cache_file"; then
  6259. if test "x$cache_file" != "x/dev/null"; then
  6260. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6261. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6262. if test ! -f "$cache_file" || test -h "$cache_file"; then
  6263. cat confcache >"$cache_file"
  6264. else
  6265. case $cache_file in #(
  6266. */* | ?:*)
  6267. mv -f confcache "$cache_file"$$ &&
  6268. mv -f "$cache_file"$$ "$cache_file" ;; #(
  6269. *)
  6270. mv -f confcache "$cache_file" ;;
  6271. esac
  6272. fi
  6273. fi
  6274. else
  6275. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6276. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6277. fi
  6278. fi
  6279. rm -f confcache
  6280. # Checks for typedefs, structures, and compiler characteristics
  6281. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  6282. if test "x$ac_cv_type_pid_t" = xyes; then :
  6283. else
  6284. cat >>build/confdefs.h <<_ACEOF
  6285. #define pid_t int
  6286. _ACEOF
  6287. fi
  6288. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  6289. if test "x$ac_cv_type_size_t" = xyes; then :
  6290. else
  6291. cat >>build/confdefs.h <<_ACEOF
  6292. #define size_t unsigned int
  6293. _ACEOF
  6294. fi
  6295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  6296. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  6297. if ${ac_cv_type_uid_t+:} false; then :
  6298. $as_echo_n "(cached) " >&6
  6299. else
  6300. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6301. /* end build/confdefs.h. */
  6302. #include <sys/types.h>
  6303. _ACEOF
  6304. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6305. $EGREP "uid_t" >/dev/null 2>&1; then :
  6306. ac_cv_type_uid_t=yes
  6307. else
  6308. ac_cv_type_uid_t=no
  6309. fi
  6310. rm -f conftest*
  6311. fi
  6312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  6313. $as_echo "$ac_cv_type_uid_t" >&6; }
  6314. if test $ac_cv_type_uid_t = no; then
  6315. $as_echo "#define uid_t int" >>build/confdefs.h
  6316. $as_echo "#define gid_t int" >>build/confdefs.h
  6317. fi
  6318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  6319. $as_echo_n "checking for unsigned long long int... " >&6; }
  6320. if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  6321. $as_echo_n "(cached) " >&6
  6322. else
  6323. ac_cv_type_unsigned_long_long_int=yes
  6324. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  6325. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6326. /* end build/confdefs.h. */
  6327. /* For now, do not test the preprocessor; as of 2007 there are too many
  6328. implementations with broken preprocessors. Perhaps this can
  6329. be revisited in 2012. In the meantime, code should not expect
  6330. #if to work with literals wider than 32 bits. */
  6331. /* Test literals. */
  6332. long long int ll = 9223372036854775807ll;
  6333. long long int nll = -9223372036854775807LL;
  6334. unsigned long long int ull = 18446744073709551615ULL;
  6335. /* Test constant expressions. */
  6336. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  6337. ? 1 : -1)];
  6338. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  6339. ? 1 : -1)];
  6340. int i = 63;
  6341. int
  6342. main ()
  6343. {
  6344. /* Test availability of runtime routines for shift and division. */
  6345. long long int llmax = 9223372036854775807ll;
  6346. unsigned long long int ullmax = 18446744073709551615ull;
  6347. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  6348. | (llmax / ll) | (llmax % ll)
  6349. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  6350. | (ullmax / ull) | (ullmax % ull));
  6351. ;
  6352. return 0;
  6353. }
  6354. _ACEOF
  6355. if ac_fn_cxx_try_link "$LINENO"; then :
  6356. else
  6357. ac_cv_type_unsigned_long_long_int=no
  6358. fi
  6359. rm -f core conftest.err conftest.$ac_objext \
  6360. conftest$ac_exeext conftest.$ac_ext
  6361. fi
  6362. fi
  6363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  6364. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  6365. if test $ac_cv_type_unsigned_long_long_int = yes; then
  6366. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>build/confdefs.h
  6367. fi
  6368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  6369. $as_echo_n "checking for long long int... " >&6; }
  6370. if ${ac_cv_type_long_long_int+:} false; then :
  6371. $as_echo_n "(cached) " >&6
  6372. else
  6373. ac_cv_type_long_long_int=yes
  6374. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  6375. ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
  6376. if test $ac_cv_type_long_long_int = yes; then
  6377. if test "$cross_compiling" = yes; then :
  6378. :
  6379. else
  6380. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6381. /* end build/confdefs.h. */
  6382. #include <limits.h>
  6383. #ifndef LLONG_MAX
  6384. # define HALF \
  6385. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  6386. # define LLONG_MAX (HALF - 1 + HALF)
  6387. #endif
  6388. int
  6389. main ()
  6390. {
  6391. long long int n = 1;
  6392. int i;
  6393. for (i = 0; ; i++)
  6394. {
  6395. long long int m = n << i;
  6396. if (m >> i != n)
  6397. return 1;
  6398. if (LLONG_MAX / 2 < m)
  6399. break;
  6400. }
  6401. return 0;
  6402. ;
  6403. return 0;
  6404. }
  6405. _ACEOF
  6406. if ac_fn_cxx_try_run "$LINENO"; then :
  6407. else
  6408. ac_cv_type_long_long_int=no
  6409. fi
  6410. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6411. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6412. fi
  6413. fi
  6414. fi
  6415. fi
  6416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  6417. $as_echo "$ac_cv_type_long_long_int" >&6; }
  6418. if test $ac_cv_type_long_long_int = yes; then
  6419. $as_echo "#define HAVE_LONG_LONG_INT 1" >>build/confdefs.h
  6420. fi
  6421. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  6422. case $ac_cv_c_int8_t in #(
  6423. no|yes) ;; #(
  6424. *)
  6425. cat >>build/confdefs.h <<_ACEOF
  6426. #define int8_t $ac_cv_c_int8_t
  6427. _ACEOF
  6428. ;;
  6429. esac
  6430. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  6431. case $ac_cv_c_uint8_t in #(
  6432. no|yes) ;; #(
  6433. *)
  6434. $as_echo "#define _UINT8_T 1" >>build/confdefs.h
  6435. cat >>build/confdefs.h <<_ACEOF
  6436. #define uint8_t $ac_cv_c_uint8_t
  6437. _ACEOF
  6438. ;;
  6439. esac
  6440. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  6441. case $ac_cv_c_int16_t in #(
  6442. no|yes) ;; #(
  6443. *)
  6444. cat >>build/confdefs.h <<_ACEOF
  6445. #define int16_t $ac_cv_c_int16_t
  6446. _ACEOF
  6447. ;;
  6448. esac
  6449. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  6450. case $ac_cv_c_uint16_t in #(
  6451. no|yes) ;; #(
  6452. *)
  6453. cat >>build/confdefs.h <<_ACEOF
  6454. #define uint16_t $ac_cv_c_uint16_t
  6455. _ACEOF
  6456. ;;
  6457. esac
  6458. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  6459. case $ac_cv_c_int32_t in #(
  6460. no|yes) ;; #(
  6461. *)
  6462. cat >>build/confdefs.h <<_ACEOF
  6463. #define int32_t $ac_cv_c_int32_t
  6464. _ACEOF
  6465. ;;
  6466. esac
  6467. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  6468. case $ac_cv_c_uint32_t in #(
  6469. no|yes) ;; #(
  6470. *)
  6471. $as_echo "#define _UINT32_T 1" >>build/confdefs.h
  6472. cat >>build/confdefs.h <<_ACEOF
  6473. #define uint32_t $ac_cv_c_uint32_t
  6474. _ACEOF
  6475. ;;
  6476. esac
  6477. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  6478. case $ac_cv_c_int64_t in #(
  6479. no|yes) ;; #(
  6480. *)
  6481. cat >>build/confdefs.h <<_ACEOF
  6482. #define int64_t $ac_cv_c_int64_t
  6483. _ACEOF
  6484. ;;
  6485. esac
  6486. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  6487. case $ac_cv_c_uint64_t in #(
  6488. no|yes) ;; #(
  6489. *)
  6490. $as_echo "#define _UINT64_T 1" >>build/confdefs.h
  6491. cat >>build/confdefs.h <<_ACEOF
  6492. #define uint64_t $ac_cv_c_uint64_t
  6493. _ACEOF
  6494. ;;
  6495. esac
  6496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  6497. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  6498. if ${ac_cv_struct_tm+:} false; then :
  6499. $as_echo_n "(cached) " >&6
  6500. else
  6501. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6502. /* end build/confdefs.h. */
  6503. #include <sys/types.h>
  6504. #include <time.h>
  6505. int
  6506. main ()
  6507. {
  6508. struct tm tm;
  6509. int *p = &tm.tm_sec;
  6510. return !p;
  6511. ;
  6512. return 0;
  6513. }
  6514. _ACEOF
  6515. if ac_fn_cxx_try_compile "$LINENO"; then :
  6516. ac_cv_struct_tm=time.h
  6517. else
  6518. ac_cv_struct_tm=sys/time.h
  6519. fi
  6520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6521. fi
  6522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  6523. $as_echo "$ac_cv_struct_tm" >&6; }
  6524. if test $ac_cv_struct_tm = sys/time.h; then
  6525. $as_echo "#define TM_IN_SYS_TIME 1" >>build/confdefs.h
  6526. fi
  6527. ac_fn_cxx_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  6528. #include <$ac_cv_struct_tm>
  6529. "
  6530. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
  6531. cat >>build/confdefs.h <<_ACEOF
  6532. #define HAVE_STRUCT_TM_TM_ZONE 1
  6533. _ACEOF
  6534. fi
  6535. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  6536. $as_echo "#define HAVE_TM_ZONE 1" >>build/confdefs.h
  6537. else
  6538. ac_fn_cxx_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  6539. "
  6540. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  6541. ac_have_decl=1
  6542. else
  6543. ac_have_decl=0
  6544. fi
  6545. cat >>build/confdefs.h <<_ACEOF
  6546. #define HAVE_DECL_TZNAME $ac_have_decl
  6547. _ACEOF
  6548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  6549. $as_echo_n "checking for tzname... " >&6; }
  6550. if ${ac_cv_var_tzname+:} false; then :
  6551. $as_echo_n "(cached) " >&6
  6552. else
  6553. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6554. /* end build/confdefs.h. */
  6555. #include <time.h>
  6556. #if !HAVE_DECL_TZNAME
  6557. extern char *tzname[];
  6558. #endif
  6559. int
  6560. main ()
  6561. {
  6562. return tzname[0][0];
  6563. ;
  6564. return 0;
  6565. }
  6566. _ACEOF
  6567. if ac_fn_cxx_try_link "$LINENO"; then :
  6568. ac_cv_var_tzname=yes
  6569. else
  6570. ac_cv_var_tzname=no
  6571. fi
  6572. rm -f core conftest.err conftest.$ac_objext \
  6573. conftest$ac_exeext conftest.$ac_ext
  6574. fi
  6575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  6576. $as_echo "$ac_cv_var_tzname" >&6; }
  6577. if test $ac_cv_var_tzname = yes; then
  6578. $as_echo "#define HAVE_TZNAME 1" >>build/confdefs.h
  6579. fi
  6580. fi
  6581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  6582. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  6583. if ${ac_cv_struct_tm+:} false; then :
  6584. $as_echo_n "(cached) " >&6
  6585. else
  6586. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6587. /* end build/confdefs.h. */
  6588. #include <sys/types.h>
  6589. #include <time.h>
  6590. int
  6591. main ()
  6592. {
  6593. struct tm tm;
  6594. int *p = &tm.tm_sec;
  6595. return !p;
  6596. ;
  6597. return 0;
  6598. }
  6599. _ACEOF
  6600. if ac_fn_cxx_try_compile "$LINENO"; then :
  6601. ac_cv_struct_tm=time.h
  6602. else
  6603. ac_cv_struct_tm=sys/time.h
  6604. fi
  6605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6606. fi
  6607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  6608. $as_echo "$ac_cv_struct_tm" >&6; }
  6609. if test $ac_cv_struct_tm = sys/time.h; then
  6610. $as_echo "#define TM_IN_SYS_TIME 1" >>build/confdefs.h
  6611. fi
  6612. # Checks for library functions
  6613. for ac_header in vfork.h
  6614. do :
  6615. ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  6616. if test "x$ac_cv_header_vfork_h" = xyes; then :
  6617. cat >>build/confdefs.h <<_ACEOF
  6618. #define HAVE_VFORK_H 1
  6619. _ACEOF
  6620. fi
  6621. done
  6622. for ac_func in fork vfork
  6623. do :
  6624. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6625. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6626. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6627. cat >>build/confdefs.h <<_ACEOF
  6628. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6629. _ACEOF
  6630. fi
  6631. done
  6632. if test "x$ac_cv_func_fork" = xyes; then
  6633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  6634. $as_echo_n "checking for working fork... " >&6; }
  6635. if ${ac_cv_func_fork_works+:} false; then :
  6636. $as_echo_n "(cached) " >&6
  6637. else
  6638. if test "$cross_compiling" = yes; then :
  6639. ac_cv_func_fork_works=cross
  6640. else
  6641. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6642. /* end build/confdefs.h. */
  6643. $ac_includes_default
  6644. int
  6645. main ()
  6646. {
  6647. /* By Ruediger Kuhlmann. */
  6648. return fork () < 0;
  6649. ;
  6650. return 0;
  6651. }
  6652. _ACEOF
  6653. if ac_fn_cxx_try_run "$LINENO"; then :
  6654. ac_cv_func_fork_works=yes
  6655. else
  6656. ac_cv_func_fork_works=no
  6657. fi
  6658. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6659. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6660. fi
  6661. fi
  6662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  6663. $as_echo "$ac_cv_func_fork_works" >&6; }
  6664. else
  6665. ac_cv_func_fork_works=$ac_cv_func_fork
  6666. fi
  6667. if test "x$ac_cv_func_fork_works" = xcross; then
  6668. case $host in
  6669. *-*-amigaos* | *-*-msdosdjgpp*)
  6670. # Override, as these systems have only a dummy fork() stub
  6671. ac_cv_func_fork_works=no
  6672. ;;
  6673. *)
  6674. ac_cv_func_fork_works=yes
  6675. ;;
  6676. esac
  6677. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  6678. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  6679. fi
  6680. ac_cv_func_vfork_works=$ac_cv_func_vfork
  6681. if test "x$ac_cv_func_vfork" = xyes; then
  6682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  6683. $as_echo_n "checking for working vfork... " >&6; }
  6684. if ${ac_cv_func_vfork_works+:} false; then :
  6685. $as_echo_n "(cached) " >&6
  6686. else
  6687. if test "$cross_compiling" = yes; then :
  6688. ac_cv_func_vfork_works=cross
  6689. else
  6690. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6691. /* end build/confdefs.h. */
  6692. /* Thanks to Paul Eggert for this test. */
  6693. $ac_includes_default
  6694. #include <sys/wait.h>
  6695. #ifdef HAVE_VFORK_H
  6696. # include <vfork.h>
  6697. #endif
  6698. /* On some sparc systems, changes by the child to local and incoming
  6699. argument registers are propagated back to the parent. The compiler
  6700. is told about this with #include <vfork.h>, but some compilers
  6701. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  6702. static variable whose address is put into a register that is
  6703. clobbered by the vfork. */
  6704. static void
  6705. #ifdef __cplusplus
  6706. sparc_address_test (int arg)
  6707. # else
  6708. sparc_address_test (arg) int arg;
  6709. #endif
  6710. {
  6711. static pid_t child;
  6712. if (!child) {
  6713. child = vfork ();
  6714. if (child < 0) {
  6715. perror ("vfork");
  6716. _exit(2);
  6717. }
  6718. if (!child) {
  6719. arg = getpid();
  6720. write(-1, "", 0);
  6721. _exit (arg);
  6722. }
  6723. }
  6724. }
  6725. int
  6726. main ()
  6727. {
  6728. pid_t parent = getpid ();
  6729. pid_t child;
  6730. sparc_address_test (0);
  6731. child = vfork ();
  6732. if (child == 0) {
  6733. /* Here is another test for sparc vfork register problems. This
  6734. test uses lots of local variables, at least as many local
  6735. variables as main has allocated so far including compiler
  6736. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  6737. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  6738. reuse the register of parent for one of the local variables,
  6739. since it will think that parent can't possibly be used any more
  6740. in this routine. Assigning to the local variable will thus
  6741. munge parent in the parent process. */
  6742. pid_t
  6743. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  6744. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  6745. /* Convince the compiler that p..p7 are live; otherwise, it might
  6746. use the same hardware register for all 8 local variables. */
  6747. if (p != p1 || p != p2 || p != p3 || p != p4
  6748. || p != p5 || p != p6 || p != p7)
  6749. _exit(1);
  6750. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  6751. from child file descriptors. If the child closes a descriptor
  6752. before it execs or exits, this munges the parent's descriptor
  6753. as well. Test for this by closing stdout in the child. */
  6754. _exit(close(fileno(stdout)) != 0);
  6755. } else {
  6756. int status;
  6757. struct stat st;
  6758. while (wait(&status) != child)
  6759. ;
  6760. return (
  6761. /* Was there some problem with vforking? */
  6762. child < 0
  6763. /* Did the child fail? (This shouldn't happen.) */
  6764. || status
  6765. /* Did the vfork/compiler bug occur? */
  6766. || parent != getpid()
  6767. /* Did the file descriptor bug occur? */
  6768. || fstat(fileno(stdout), &st) != 0
  6769. );
  6770. }
  6771. }
  6772. _ACEOF
  6773. if ac_fn_cxx_try_run "$LINENO"; then :
  6774. ac_cv_func_vfork_works=yes
  6775. else
  6776. ac_cv_func_vfork_works=no
  6777. fi
  6778. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6779. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6780. fi
  6781. fi
  6782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  6783. $as_echo "$ac_cv_func_vfork_works" >&6; }
  6784. fi;
  6785. if test "x$ac_cv_func_fork_works" = xcross; then
  6786. ac_cv_func_vfork_works=$ac_cv_func_vfork
  6787. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  6788. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  6789. fi
  6790. if test "x$ac_cv_func_vfork_works" = xyes; then
  6791. $as_echo "#define HAVE_WORKING_VFORK 1" >>build/confdefs.h
  6792. else
  6793. $as_echo "#define vfork fork" >>build/confdefs.h
  6794. fi
  6795. if test "x$ac_cv_func_fork_works" = xyes; then
  6796. $as_echo "#define HAVE_WORKING_FORK 1" >>build/confdefs.h
  6797. fi
  6798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  6799. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  6800. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  6801. $as_echo_n "(cached) " >&6
  6802. else
  6803. rm -f conftest.sym conftest.file
  6804. echo >conftest.file
  6805. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  6806. if test "$cross_compiling" = yes; then :
  6807. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6808. else
  6809. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6810. /* end build/confdefs.h. */
  6811. $ac_includes_default
  6812. int
  6813. main ()
  6814. {
  6815. struct stat sbuf;
  6816. /* Linux will dereference the symlink and fail, as required by POSIX.
  6817. That is better in the sense that it means we will not
  6818. have to compile and use the lstat wrapper. */
  6819. return lstat ("conftest.sym/", &sbuf) == 0;
  6820. ;
  6821. return 0;
  6822. }
  6823. _ACEOF
  6824. if ac_fn_cxx_try_run "$LINENO"; then :
  6825. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  6826. else
  6827. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6828. fi
  6829. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6830. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6831. fi
  6832. else
  6833. # If the `ln -s' command failed, then we probably don't even
  6834. # have an lstat function.
  6835. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6836. fi
  6837. rm -f conftest.sym conftest.file
  6838. fi
  6839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  6840. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  6841. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  6842. cat >>build/confdefs.h <<_ACEOF
  6843. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  6844. _ACEOF
  6845. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  6846. case " $LIBOBJS " in
  6847. *" lstat.$ac_objext "* ) ;;
  6848. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  6849. ;;
  6850. esac
  6851. fi
  6852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
  6853. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  6854. if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
  6855. $as_echo_n "(cached) " >&6
  6856. else
  6857. if test "$cross_compiling" = yes; then :
  6858. ac_cv_func_lstat_empty_string_bug=yes
  6859. else
  6860. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6861. /* end build/confdefs.h. */
  6862. $ac_includes_default
  6863. int
  6864. main ()
  6865. {
  6866. struct stat sbuf;
  6867. return lstat ("", &sbuf) == 0;
  6868. ;
  6869. return 0;
  6870. }
  6871. _ACEOF
  6872. if ac_fn_cxx_try_run "$LINENO"; then :
  6873. ac_cv_func_lstat_empty_string_bug=no
  6874. else
  6875. ac_cv_func_lstat_empty_string_bug=yes
  6876. fi
  6877. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6878. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6879. fi
  6880. fi
  6881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
  6882. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  6883. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  6884. case " $LIBOBJS " in
  6885. *" lstat.$ac_objext "* ) ;;
  6886. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  6887. ;;
  6888. esac
  6889. cat >>build/confdefs.h <<_ACEOF
  6890. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  6891. _ACEOF
  6892. fi
  6893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  6894. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  6895. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  6896. $as_echo_n "(cached) " >&6
  6897. else
  6898. rm -f conftest.sym conftest.file
  6899. echo >conftest.file
  6900. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  6901. if test "$cross_compiling" = yes; then :
  6902. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6903. else
  6904. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6905. /* end build/confdefs.h. */
  6906. $ac_includes_default
  6907. int
  6908. main ()
  6909. {
  6910. struct stat sbuf;
  6911. /* Linux will dereference the symlink and fail, as required by POSIX.
  6912. That is better in the sense that it means we will not
  6913. have to compile and use the lstat wrapper. */
  6914. return lstat ("conftest.sym/", &sbuf) == 0;
  6915. ;
  6916. return 0;
  6917. }
  6918. _ACEOF
  6919. if ac_fn_cxx_try_run "$LINENO"; then :
  6920. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  6921. else
  6922. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6923. fi
  6924. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6925. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6926. fi
  6927. else
  6928. # If the `ln -s' command failed, then we probably don't even
  6929. # have an lstat function.
  6930. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6931. fi
  6932. rm -f conftest.sym conftest.file
  6933. fi
  6934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  6935. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  6936. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  6937. cat >>build/confdefs.h <<_ACEOF
  6938. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  6939. _ACEOF
  6940. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  6941. case " $LIBOBJS " in
  6942. *" lstat.$ac_objext "* ) ;;
  6943. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  6944. ;;
  6945. esac
  6946. fi
  6947. for ac_header in stdlib.h
  6948. do :
  6949. ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  6950. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  6951. cat >>build/confdefs.h <<_ACEOF
  6952. #define HAVE_STDLIB_H 1
  6953. _ACEOF
  6954. fi
  6955. done
  6956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  6957. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  6958. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  6959. $as_echo_n "(cached) " >&6
  6960. else
  6961. if test "$cross_compiling" = yes; then :
  6962. ac_cv_func_malloc_0_nonnull=no
  6963. else
  6964. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6965. /* end build/confdefs.h. */
  6966. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  6967. # include <stdlib.h>
  6968. #else
  6969. char *malloc ();
  6970. #endif
  6971. int
  6972. main ()
  6973. {
  6974. return ! malloc (0);
  6975. ;
  6976. return 0;
  6977. }
  6978. _ACEOF
  6979. if ac_fn_cxx_try_run "$LINENO"; then :
  6980. ac_cv_func_malloc_0_nonnull=yes
  6981. else
  6982. ac_cv_func_malloc_0_nonnull=no
  6983. fi
  6984. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6985. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6986. fi
  6987. fi
  6988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  6989. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  6990. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  6991. $as_echo "#define HAVE_MALLOC 1" >>build/confdefs.h
  6992. else
  6993. $as_echo "#define HAVE_MALLOC 0" >>build/confdefs.h
  6994. case " $LIBOBJS " in
  6995. *" malloc.$ac_objext "* ) ;;
  6996. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  6997. ;;
  6998. esac
  6999. $as_echo "#define malloc rpl_malloc" >>build/confdefs.h
  7000. fi
  7001. for ac_header in $ac_header_list
  7002. do :
  7003. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7004. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7005. "
  7006. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7007. cat >>build/confdefs.h <<_ACEOF
  7008. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7009. _ACEOF
  7010. fi
  7011. done
  7012. for ac_func in $ac_func_list
  7013. do :
  7014. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7015. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7016. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7017. cat >>build/confdefs.h <<_ACEOF
  7018. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7019. _ACEOF
  7020. fi
  7021. done
  7022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  7023. $as_echo_n "checking for working mktime... " >&6; }
  7024. if ${ac_cv_func_working_mktime+:} false; then :
  7025. $as_echo_n "(cached) " >&6
  7026. else
  7027. if test "$cross_compiling" = yes; then :
  7028. ac_cv_func_working_mktime=no
  7029. else
  7030. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7031. /* end build/confdefs.h. */
  7032. /* Test program from Paul Eggert and Tony Leneis. */
  7033. #ifdef TIME_WITH_SYS_TIME
  7034. # include <sys/time.h>
  7035. # include <time.h>
  7036. #else
  7037. # ifdef HAVE_SYS_TIME_H
  7038. # include <sys/time.h>
  7039. # else
  7040. # include <time.h>
  7041. # endif
  7042. #endif
  7043. #include <limits.h>
  7044. #include <stdlib.h>
  7045. #ifdef HAVE_UNISTD_H
  7046. # include <unistd.h>
  7047. #endif
  7048. #ifndef HAVE_ALARM
  7049. # define alarm(X) /* empty */
  7050. #endif
  7051. /* Work around redefinition to rpl_putenv by other config tests. */
  7052. #undef putenv
  7053. static time_t time_t_max;
  7054. static time_t time_t_min;
  7055. /* Values we'll use to set the TZ environment variable. */
  7056. static const char *tz_strings[] = {
  7057. (const char *) 0, "TZ=GMT0", "TZ=JST-9",
  7058. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  7059. };
  7060. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  7061. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  7062. Based on a problem report from Andreas Jaeger. */
  7063. static int
  7064. spring_forward_gap ()
  7065. {
  7066. /* glibc (up to about 1998-10-07) failed this test. */
  7067. struct tm tm;
  7068. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  7069. instead of "TZ=America/Vancouver" in order to detect the bug even
  7070. on systems that don't support the Olson extension, or don't have the
  7071. full zoneinfo tables installed. */
  7072. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  7073. tm.tm_year = 98;
  7074. tm.tm_mon = 3;
  7075. tm.tm_mday = 5;
  7076. tm.tm_hour = 2;
  7077. tm.tm_min = 0;
  7078. tm.tm_sec = 0;
  7079. tm.tm_isdst = -1;
  7080. return mktime (&tm) != (time_t) -1;
  7081. }
  7082. static int
  7083. mktime_test1 (time_t now)
  7084. {
  7085. struct tm *lt;
  7086. return ! (lt = localtime (&now)) || mktime (lt) == now;
  7087. }
  7088. static int
  7089. mktime_test (time_t now)
  7090. {
  7091. return (mktime_test1 (now)
  7092. && mktime_test1 ((time_t) (time_t_max - now))
  7093. && mktime_test1 ((time_t) (time_t_min + now)));
  7094. }
  7095. static int
  7096. irix_6_4_bug ()
  7097. {
  7098. /* Based on code from Ariel Faigon. */
  7099. struct tm tm;
  7100. tm.tm_year = 96;
  7101. tm.tm_mon = 3;
  7102. tm.tm_mday = 0;
  7103. tm.tm_hour = 0;
  7104. tm.tm_min = 0;
  7105. tm.tm_sec = 0;
  7106. tm.tm_isdst = -1;
  7107. mktime (&tm);
  7108. return tm.tm_mon == 2 && tm.tm_mday == 31;
  7109. }
  7110. static int
  7111. bigtime_test (int j)
  7112. {
  7113. struct tm tm;
  7114. time_t now;
  7115. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  7116. now = mktime (&tm);
  7117. if (now != (time_t) -1)
  7118. {
  7119. struct tm *lt = localtime (&now);
  7120. if (! (lt
  7121. && lt->tm_year == tm.tm_year
  7122. && lt->tm_mon == tm.tm_mon
  7123. && lt->tm_mday == tm.tm_mday
  7124. && lt->tm_hour == tm.tm_hour
  7125. && lt->tm_min == tm.tm_min
  7126. && lt->tm_sec == tm.tm_sec
  7127. && lt->tm_yday == tm.tm_yday
  7128. && lt->tm_wday == tm.tm_wday
  7129. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  7130. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  7131. return 0;
  7132. }
  7133. return 1;
  7134. }
  7135. static int
  7136. year_2050_test ()
  7137. {
  7138. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  7139. ignoring leap seconds. */
  7140. unsigned long int answer = 2527315200UL;
  7141. struct tm tm;
  7142. time_t t;
  7143. tm.tm_year = 2050 - 1900;
  7144. tm.tm_mon = 2 - 1;
  7145. tm.tm_mday = 1;
  7146. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  7147. tm.tm_isdst = -1;
  7148. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  7149. instead of "TZ=America/Vancouver" in order to detect the bug even
  7150. on systems that don't support the Olson extension, or don't have the
  7151. full zoneinfo tables installed. */
  7152. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  7153. t = mktime (&tm);
  7154. /* Check that the result is either a failure, or close enough
  7155. to the correct answer that we can assume the discrepancy is
  7156. due to leap seconds. */
  7157. return (t == (time_t) -1
  7158. || (0 < t && answer - 120 <= t && t <= answer + 120));
  7159. }
  7160. int
  7161. main ()
  7162. {
  7163. time_t t, delta;
  7164. int i, j;
  7165. /* This test makes some buggy mktime implementations loop.
  7166. Give up after 60 seconds; a mktime slower than that
  7167. isn't worth using anyway. */
  7168. alarm (60);
  7169. for (;;)
  7170. {
  7171. t = (time_t_max << 1) + 1;
  7172. if (t <= time_t_max)
  7173. break;
  7174. time_t_max = t;
  7175. }
  7176. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  7177. delta = time_t_max / 997; /* a suitable prime number */
  7178. for (i = 0; i < N_STRINGS; i++)
  7179. {
  7180. if (tz_strings[i])
  7181. putenv ((char*) tz_strings[i]);
  7182. for (t = 0; t <= time_t_max - delta; t += delta)
  7183. if (! mktime_test (t))
  7184. return 1;
  7185. if (! (mktime_test ((time_t) 1)
  7186. && mktime_test ((time_t) (60 * 60))
  7187. && mktime_test ((time_t) (60 * 60 * 24))))
  7188. return 1;
  7189. for (j = 1; ; j <<= 1)
  7190. if (! bigtime_test (j))
  7191. return 1;
  7192. else if (INT_MAX / 2 < j)
  7193. break;
  7194. if (! bigtime_test (INT_MAX))
  7195. return 1;
  7196. }
  7197. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  7198. }
  7199. _ACEOF
  7200. if ac_fn_cxx_try_run "$LINENO"; then :
  7201. ac_cv_func_working_mktime=yes
  7202. else
  7203. ac_cv_func_working_mktime=no
  7204. fi
  7205. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7206. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7207. fi
  7208. fi
  7209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  7210. $as_echo "$ac_cv_func_working_mktime" >&6; }
  7211. if test $ac_cv_func_working_mktime = no; then
  7212. case " $LIBOBJS " in
  7213. *" mktime.$ac_objext "* ) ;;
  7214. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  7215. ;;
  7216. esac
  7217. fi
  7218. for ac_func in getpagesize
  7219. do :
  7220. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  7221. if test "x$ac_cv_func_getpagesize" = xyes; then :
  7222. cat >>build/confdefs.h <<_ACEOF
  7223. #define HAVE_GETPAGESIZE 1
  7224. _ACEOF
  7225. fi
  7226. done
  7227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  7228. $as_echo_n "checking for working mmap... " >&6; }
  7229. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  7230. $as_echo_n "(cached) " >&6
  7231. else
  7232. if test "$cross_compiling" = yes; then :
  7233. ac_cv_func_mmap_fixed_mapped=no
  7234. else
  7235. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7236. /* end build/confdefs.h. */
  7237. $ac_includes_default
  7238. /* malloc might have been renamed as rpl_malloc. */
  7239. #undef malloc
  7240. /* Thanks to Mike Haertel and Jim Avera for this test.
  7241. Here is a matrix of mmap possibilities:
  7242. mmap private not fixed
  7243. mmap private fixed at somewhere currently unmapped
  7244. mmap private fixed at somewhere already mapped
  7245. mmap shared not fixed
  7246. mmap shared fixed at somewhere currently unmapped
  7247. mmap shared fixed at somewhere already mapped
  7248. For private mappings, we should verify that changes cannot be read()
  7249. back from the file, nor mmap's back from the file at a different
  7250. address. (There have been systems where private was not correctly
  7251. implemented like the infamous i386 svr4.0, and systems where the
  7252. VM page cache was not coherent with the file system buffer cache
  7253. like early versions of FreeBSD and possibly contemporary NetBSD.)
  7254. For shared mappings, we should conversely verify that changes get
  7255. propagated back to all the places they're supposed to be.
  7256. Grep wants private fixed already mapped.
  7257. The main things grep needs to know about mmap are:
  7258. * does it exist and is it safe to write into the mmap'd area
  7259. * how to use it (BSD variants) */
  7260. #include <fcntl.h>
  7261. #include <sys/mman.h>
  7262. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  7263. char *malloc ();
  7264. #endif
  7265. /* This mess was copied from the GNU getpagesize.h. */
  7266. #ifndef HAVE_GETPAGESIZE
  7267. # ifdef _SC_PAGESIZE
  7268. # define getpagesize() sysconf(_SC_PAGESIZE)
  7269. # else /* no _SC_PAGESIZE */
  7270. # ifdef HAVE_SYS_PARAM_H
  7271. # include <sys/param.h>
  7272. # ifdef EXEC_PAGESIZE
  7273. # define getpagesize() EXEC_PAGESIZE
  7274. # else /* no EXEC_PAGESIZE */
  7275. # ifdef NBPG
  7276. # define getpagesize() NBPG * CLSIZE
  7277. # ifndef CLSIZE
  7278. # define CLSIZE 1
  7279. # endif /* no CLSIZE */
  7280. # else /* no NBPG */
  7281. # ifdef NBPC
  7282. # define getpagesize() NBPC
  7283. # else /* no NBPC */
  7284. # ifdef PAGESIZE
  7285. # define getpagesize() PAGESIZE
  7286. # endif /* PAGESIZE */
  7287. # endif /* no NBPC */
  7288. # endif /* no NBPG */
  7289. # endif /* no EXEC_PAGESIZE */
  7290. # else /* no HAVE_SYS_PARAM_H */
  7291. # define getpagesize() 8192 /* punt totally */
  7292. # endif /* no HAVE_SYS_PARAM_H */
  7293. # endif /* no _SC_PAGESIZE */
  7294. #endif /* no HAVE_GETPAGESIZE */
  7295. int
  7296. main ()
  7297. {
  7298. char *data, *data2, *data3;
  7299. const char *cdata2;
  7300. int i, pagesize;
  7301. int fd, fd2;
  7302. pagesize = getpagesize ();
  7303. /* First, make a file with some known garbage in it. */
  7304. data = (char *) malloc (pagesize);
  7305. if (!data)
  7306. return 1;
  7307. for (i = 0; i < pagesize; ++i)
  7308. *(data + i) = rand ();
  7309. umask (0);
  7310. fd = creat ("conftest.mmap", 0600);
  7311. if (fd < 0)
  7312. return 2;
  7313. if (write (fd, data, pagesize) != pagesize)
  7314. return 3;
  7315. close (fd);
  7316. /* Next, check that the tail of a page is zero-filled. File must have
  7317. non-zero length, otherwise we risk SIGBUS for entire page. */
  7318. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  7319. if (fd2 < 0)
  7320. return 4;
  7321. cdata2 = "";
  7322. if (write (fd2, cdata2, 1) != 1)
  7323. return 5;
  7324. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  7325. if (data2 == MAP_FAILED)
  7326. return 6;
  7327. for (i = 0; i < pagesize; ++i)
  7328. if (*(data2 + i))
  7329. return 7;
  7330. close (fd2);
  7331. if (munmap (data2, pagesize))
  7332. return 8;
  7333. /* Next, try to mmap the file at a fixed address which already has
  7334. something else allocated at it. If we can, also make sure that
  7335. we see the same garbage. */
  7336. fd = open ("conftest.mmap", O_RDWR);
  7337. if (fd < 0)
  7338. return 9;
  7339. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  7340. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  7341. return 10;
  7342. for (i = 0; i < pagesize; ++i)
  7343. if (*(data + i) != *(data2 + i))
  7344. return 11;
  7345. /* Finally, make sure that changes to the mapped area do not
  7346. percolate back to the file as seen by read(). (This is a bug on
  7347. some variants of i386 svr4.0.) */
  7348. for (i = 0; i < pagesize; ++i)
  7349. *(data2 + i) = *(data2 + i) + 1;
  7350. data3 = (char *) malloc (pagesize);
  7351. if (!data3)
  7352. return 12;
  7353. if (read (fd, data3, pagesize) != pagesize)
  7354. return 13;
  7355. for (i = 0; i < pagesize; ++i)
  7356. if (*(data + i) != *(data3 + i))
  7357. return 14;
  7358. close (fd);
  7359. return 0;
  7360. }
  7361. _ACEOF
  7362. if ac_fn_cxx_try_run "$LINENO"; then :
  7363. ac_cv_func_mmap_fixed_mapped=yes
  7364. else
  7365. ac_cv_func_mmap_fixed_mapped=no
  7366. fi
  7367. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7368. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7369. fi
  7370. fi
  7371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  7372. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  7373. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  7374. $as_echo "#define HAVE_MMAP 1" >>build/confdefs.h
  7375. fi
  7376. rm -f conftest.mmap conftest.txt
  7377. for ac_header in stdlib.h
  7378. do :
  7379. ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  7380. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  7381. cat >>build/confdefs.h <<_ACEOF
  7382. #define HAVE_STDLIB_H 1
  7383. _ACEOF
  7384. fi
  7385. done
  7386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
  7387. $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
  7388. if ${ac_cv_func_realloc_0_nonnull+:} false; then :
  7389. $as_echo_n "(cached) " >&6
  7390. else
  7391. if test "$cross_compiling" = yes; then :
  7392. ac_cv_func_realloc_0_nonnull=no
  7393. else
  7394. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7395. /* end build/confdefs.h. */
  7396. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  7397. # include <stdlib.h>
  7398. #else
  7399. char *realloc ();
  7400. #endif
  7401. int
  7402. main ()
  7403. {
  7404. return ! realloc (0, 0);
  7405. ;
  7406. return 0;
  7407. }
  7408. _ACEOF
  7409. if ac_fn_cxx_try_run "$LINENO"; then :
  7410. ac_cv_func_realloc_0_nonnull=yes
  7411. else
  7412. ac_cv_func_realloc_0_nonnull=no
  7413. fi
  7414. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7415. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7416. fi
  7417. fi
  7418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
  7419. $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
  7420. if test $ac_cv_func_realloc_0_nonnull = yes; then :
  7421. $as_echo "#define HAVE_REALLOC 1" >>build/confdefs.h
  7422. else
  7423. $as_echo "#define HAVE_REALLOC 0" >>build/confdefs.h
  7424. case " $LIBOBJS " in
  7425. *" realloc.$ac_objext "* ) ;;
  7426. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  7427. ;;
  7428. esac
  7429. $as_echo "#define realloc rpl_realloc" >>build/confdefs.h
  7430. fi
  7431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  7432. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  7433. if ${ac_cv_func_stat_empty_string_bug+:} false; then :
  7434. $as_echo_n "(cached) " >&6
  7435. else
  7436. if test "$cross_compiling" = yes; then :
  7437. ac_cv_func_stat_empty_string_bug=yes
  7438. else
  7439. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7440. /* end build/confdefs.h. */
  7441. $ac_includes_default
  7442. int
  7443. main ()
  7444. {
  7445. struct stat sbuf;
  7446. return stat ("", &sbuf) == 0;
  7447. ;
  7448. return 0;
  7449. }
  7450. _ACEOF
  7451. if ac_fn_cxx_try_run "$LINENO"; then :
  7452. ac_cv_func_stat_empty_string_bug=no
  7453. else
  7454. ac_cv_func_stat_empty_string_bug=yes
  7455. fi
  7456. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7457. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7458. fi
  7459. fi
  7460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  7461. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  7462. if test $ac_cv_func_stat_empty_string_bug = yes; then
  7463. case " $LIBOBJS " in
  7464. *" stat.$ac_objext "* ) ;;
  7465. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  7466. ;;
  7467. esac
  7468. cat >>build/confdefs.h <<_ACEOF
  7469. #define HAVE_STAT_EMPTY_STRING_BUG 1
  7470. _ACEOF
  7471. fi
  7472. ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
  7473. #include <sys/time.h>
  7474. #include <time.h>
  7475. "
  7476. if test "x$ac_cv_type_struct_timespec" = xyes; then :
  7477. $as_echo "#define HAVE_TIMESPEC 1" >>build/confdefs.h
  7478. fi
  7479. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  7480. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
  7481. if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
  7482. $as_echo "#define HAVE_ST_MTIM 1" >>build/confdefs.h
  7483. else
  7484. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
  7485. if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
  7486. $as_echo "#define HAVE_ST_MTIMESPEC 1" >>build/confdefs.h
  7487. fi
  7488. fi
  7489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-parameter timespecsub" >&5
  7490. $as_echo_n "checking for two-parameter timespecsub... " >&6; }
  7491. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7492. /* end build/confdefs.h. */
  7493. #include <sys/types.h>
  7494. #include <sys/time.h>
  7495. int
  7496. main ()
  7497. {
  7498. struct timespec ts1, ts2;
  7499. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  7500. #ifndef timespecsub
  7501. #error missing timespecsub
  7502. #endif
  7503. timespecsub(&ts1, &ts2);
  7504. ;
  7505. return 0;
  7506. }
  7507. _ACEOF
  7508. if ac_fn_cxx_try_compile "$LINENO"; then :
  7509. $as_echo "#define HAVE_TIMESPECSUB2 1" >>build/confdefs.h
  7510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7511. $as_echo "yes" >&6; }
  7512. else
  7513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7514. $as_echo "no" >&6; }
  7515. fi
  7516. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7517. fi
  7518. for ac_func in strftime
  7519. do :
  7520. ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  7521. if test "x$ac_cv_func_strftime" = xyes; then :
  7522. cat >>build/confdefs.h <<_ACEOF
  7523. #define HAVE_STRFTIME 1
  7524. _ACEOF
  7525. else
  7526. # strftime is in -lintl on SCO UNIX.
  7527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  7528. $as_echo_n "checking for strftime in -lintl... " >&6; }
  7529. if ${ac_cv_lib_intl_strftime+:} false; then :
  7530. $as_echo_n "(cached) " >&6
  7531. else
  7532. ac_check_lib_save_LIBS=$LIBS
  7533. LIBS="-lintl $LIBS"
  7534. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7535. /* end build/confdefs.h. */
  7536. /* Override any GCC internal prototype to avoid an error.
  7537. Use char because int might match the return type of a GCC
  7538. builtin and then its argument prototype would still apply. */
  7539. #ifdef __cplusplus
  7540. extern "C"
  7541. #endif
  7542. char strftime ();
  7543. int
  7544. main ()
  7545. {
  7546. return strftime ();
  7547. ;
  7548. return 0;
  7549. }
  7550. _ACEOF
  7551. if ac_fn_cxx_try_link "$LINENO"; then :
  7552. ac_cv_lib_intl_strftime=yes
  7553. else
  7554. ac_cv_lib_intl_strftime=no
  7555. fi
  7556. rm -f core conftest.err conftest.$ac_objext \
  7557. conftest$ac_exeext conftest.$ac_ext
  7558. LIBS=$ac_check_lib_save_LIBS
  7559. fi
  7560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  7561. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  7562. if test "x$ac_cv_lib_intl_strftime" = xyes; then :
  7563. $as_echo "#define HAVE_STRFTIME 1" >>build/confdefs.h
  7564. LIBS="-lintl $LIBS"
  7565. fi
  7566. fi
  7567. done
  7568. #checkpoint
  7569. cat >confcache <<\_ACEOF
  7570. # This file is a shell script that caches the results of configure
  7571. # tests run on this system so they can be shared between configure
  7572. # scripts and configure runs, see configure's option --config-cache.
  7573. # It is not useful on other systems. If it contains results you don't
  7574. # want to keep, you may remove or edit it.
  7575. #
  7576. # build/config.status only pays attention to the cache file if you give it
  7577. # the --recheck option to rerun configure.
  7578. #
  7579. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7580. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7581. # following values.
  7582. _ACEOF
  7583. # The following way of writing the cache mishandles newlines in values,
  7584. # but we know of no workaround that is simple, portable, and efficient.
  7585. # So, we kill variables containing newlines.
  7586. # Ultrix sh set writes to stderr and can't be redirected directly,
  7587. # and sets the high bit in the cache file unless we assign to the vars.
  7588. (
  7589. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7590. eval ac_val=\$$ac_var
  7591. case $ac_val in #(
  7592. *${as_nl}*)
  7593. case $ac_var in #(
  7594. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7595. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7596. esac
  7597. case $ac_var in #(
  7598. _ | IFS | as_nl) ;; #(
  7599. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7600. *) { eval $ac_var=; unset $ac_var;} ;;
  7601. esac ;;
  7602. esac
  7603. done
  7604. (set) 2>&1 |
  7605. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7606. *${as_nl}ac_space=\ *)
  7607. # `set' does not quote correctly, so add quotes: double-quote
  7608. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7609. sed -n \
  7610. "s/'/'\\\\''/g;
  7611. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7612. ;; #(
  7613. *)
  7614. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7615. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7616. ;;
  7617. esac |
  7618. sort
  7619. ) |
  7620. sed '
  7621. /^ac_cv_env_/b end
  7622. t clear
  7623. :clear
  7624. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7625. t end
  7626. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7627. :end' >>confcache
  7628. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7629. if test -w "$cache_file"; then
  7630. if test "x$cache_file" != "x/dev/null"; then
  7631. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7632. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7633. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7634. cat confcache >"$cache_file"
  7635. else
  7636. case $cache_file in #(
  7637. */* | ?:*)
  7638. mv -f confcache "$cache_file"$$ &&
  7639. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7640. *)
  7641. mv -f confcache "$cache_file" ;;
  7642. esac
  7643. fi
  7644. fi
  7645. else
  7646. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7647. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7648. fi
  7649. fi
  7650. rm -f confcache
  7651. for ac_func in clock fsync getrusage isascii getpassphrase posix_madvise madvise
  7652. do :
  7653. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7654. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7655. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7656. cat >>build/confdefs.h <<_ACEOF
  7657. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7658. _ACEOF
  7659. fi
  7660. done
  7661. for ac_func in memcpy memmem memset random rename snprintf srandom gettime
  7662. do :
  7663. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7664. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7665. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7666. cat >>build/confdefs.h <<_ACEOF
  7667. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7668. _ACEOF
  7669. fi
  7670. done
  7671. #checkpoint
  7672. cat >confcache <<\_ACEOF
  7673. # This file is a shell script that caches the results of configure
  7674. # tests run on this system so they can be shared between configure
  7675. # scripts and configure runs, see configure's option --config-cache.
  7676. # It is not useful on other systems. If it contains results you don't
  7677. # want to keep, you may remove or edit it.
  7678. #
  7679. # build/config.status only pays attention to the cache file if you give it
  7680. # the --recheck option to rerun configure.
  7681. #
  7682. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7683. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7684. # following values.
  7685. _ACEOF
  7686. # The following way of writing the cache mishandles newlines in values,
  7687. # but we know of no workaround that is simple, portable, and efficient.
  7688. # So, we kill variables containing newlines.
  7689. # Ultrix sh set writes to stderr and can't be redirected directly,
  7690. # and sets the high bit in the cache file unless we assign to the vars.
  7691. (
  7692. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7693. eval ac_val=\$$ac_var
  7694. case $ac_val in #(
  7695. *${as_nl}*)
  7696. case $ac_var in #(
  7697. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7698. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7699. esac
  7700. case $ac_var in #(
  7701. _ | IFS | as_nl) ;; #(
  7702. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7703. *) { eval $ac_var=; unset $ac_var;} ;;
  7704. esac ;;
  7705. esac
  7706. done
  7707. (set) 2>&1 |
  7708. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7709. *${as_nl}ac_space=\ *)
  7710. # `set' does not quote correctly, so add quotes: double-quote
  7711. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7712. sed -n \
  7713. "s/'/'\\\\''/g;
  7714. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7715. ;; #(
  7716. *)
  7717. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7718. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7719. ;;
  7720. esac |
  7721. sort
  7722. ) |
  7723. sed '
  7724. /^ac_cv_env_/b end
  7725. t clear
  7726. :clear
  7727. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7728. t end
  7729. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7730. :end' >>confcache
  7731. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7732. if test -w "$cache_file"; then
  7733. if test "x$cache_file" != "x/dev/null"; then
  7734. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7735. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7736. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7737. cat confcache >"$cache_file"
  7738. else
  7739. case $cache_file in #(
  7740. */* | ?:*)
  7741. mv -f confcache "$cache_file"$$ &&
  7742. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7743. *)
  7744. mv -f confcache "$cache_file" ;;
  7745. esac
  7746. fi
  7747. fi
  7748. else
  7749. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7750. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7751. fi
  7752. fi
  7753. rm -f confcache
  7754. for ac_func in strcasecmp strncasecmp vsnprintf inet_ntop
  7755. do :
  7756. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7757. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7758. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7759. cat >>build/confdefs.h <<_ACEOF
  7760. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7761. _ACEOF
  7762. fi
  7763. done
  7764. #autoscan suggested this....
  7765. #These are recommended by autoscan, but no code supports it currently
  7766. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostname getpass gettimeofday mbrlen
  7767. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  7768. for ac_func in vsprintf
  7769. do :
  7770. ac_fn_cxx_check_func "$LINENO" "vsprintf" "ac_cv_func_vsprintf"
  7771. if test "x$ac_cv_func_vsprintf" = xyes; then :
  7772. cat >>build/confdefs.h <<_ACEOF
  7773. #define HAVE_VSPRINTF 1
  7774. _ACEOF
  7775. fi
  7776. done
  7777. if test "$ac_cv_func_vsprintf" = "no"
  7778. then
  7779. cat << 'EOF' >&2
  7780. configure: error:
  7781. Your system does not have the sprintf/vsprintf libraries.
  7782. These are required to compile almost anything. Sorry.
  7783. EOF
  7784. exit 1
  7785. fi
  7786. for ac_func in uname
  7787. do :
  7788. ac_fn_cxx_check_func "$LINENO" "uname" "ac_cv_func_uname"
  7789. if test "x$ac_cv_func_uname" = xyes; then :
  7790. cat >>build/confdefs.h <<_ACEOF
  7791. #define HAVE_UNAME 1
  7792. _ACEOF
  7793. fi
  7794. done
  7795. if test "$ac_cv_func_uname" = "no"
  7796. then
  7797. cat << 'EOF' >&2
  7798. configure: error:
  7799. Your system does not have the uname() function.
  7800. This is required for the botpack.
  7801. EOF
  7802. exit 1
  7803. fi
  7804. # Make sure we have stdc headers, since we can't compile without them
  7805. if test "$ac_cv_header_stdc" = "no"
  7806. then
  7807. cat << 'EOF' >&2
  7808. configure: error:
  7809. Your system must support ANSI C Header files.
  7810. These are required for the language support. Sorry.
  7811. EOF
  7812. exit 1
  7813. fi
  7814. #checkpoint
  7815. cat >confcache <<\_ACEOF
  7816. # This file is a shell script that caches the results of configure
  7817. # tests run on this system so they can be shared between configure
  7818. # scripts and configure runs, see configure's option --config-cache.
  7819. # It is not useful on other systems. If it contains results you don't
  7820. # want to keep, you may remove or edit it.
  7821. #
  7822. # build/config.status only pays attention to the cache file if you give it
  7823. # the --recheck option to rerun configure.
  7824. #
  7825. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7826. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7827. # following values.
  7828. _ACEOF
  7829. # The following way of writing the cache mishandles newlines in values,
  7830. # but we know of no workaround that is simple, portable, and efficient.
  7831. # So, we kill variables containing newlines.
  7832. # Ultrix sh set writes to stderr and can't be redirected directly,
  7833. # and sets the high bit in the cache file unless we assign to the vars.
  7834. (
  7835. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7836. eval ac_val=\$$ac_var
  7837. case $ac_val in #(
  7838. *${as_nl}*)
  7839. case $ac_var in #(
  7840. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7841. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7842. esac
  7843. case $ac_var in #(
  7844. _ | IFS | as_nl) ;; #(
  7845. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7846. *) { eval $ac_var=; unset $ac_var;} ;;
  7847. esac ;;
  7848. esac
  7849. done
  7850. (set) 2>&1 |
  7851. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7852. *${as_nl}ac_space=\ *)
  7853. # `set' does not quote correctly, so add quotes: double-quote
  7854. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7855. sed -n \
  7856. "s/'/'\\\\''/g;
  7857. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7858. ;; #(
  7859. *)
  7860. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7861. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7862. ;;
  7863. esac |
  7864. sort
  7865. ) |
  7866. sed '
  7867. /^ac_cv_env_/b end
  7868. t clear
  7869. :clear
  7870. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7871. t end
  7872. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7873. :end' >>confcache
  7874. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7875. if test -w "$cache_file"; then
  7876. if test "x$cache_file" != "x/dev/null"; then
  7877. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7878. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7879. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7880. cat confcache >"$cache_file"
  7881. else
  7882. case $cache_file in #(
  7883. */* | ?:*)
  7884. mv -f confcache "$cache_file"$$ &&
  7885. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7886. *)
  7887. mv -f confcache "$cache_file" ;;
  7888. esac
  7889. fi
  7890. fi
  7891. else
  7892. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7893. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7894. fi
  7895. fi
  7896. rm -f confcache
  7897. VERSION=`grep "char" $srcdir/src/main.cc | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  7898. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  7899. cat >>build/confdefs.h <<_ACEOF
  7900. #define EGG_VERSION $version_num
  7901. _ACEOF
  7902. #FIND_WRAPS
  7903. files="src/Makefile.in"
  7904. for mf in $files; do
  7905. # Strip MF so we end up with the name of the file.
  7906. mf=${mf%%:*}
  7907. dirmf=${mf%/*}
  7908. rm -f "$dirmf/.deps/includes"
  7909. test -d "$dirmf/.deps" || mkdir "$dirmf/.deps"
  7910. for file in `sed -n -e '
  7911. /^OBJS = .*\\\\$/ {
  7912. s/^OBJS = //
  7913. :loop
  7914. s/\\\\$//
  7915. p
  7916. n
  7917. /\\\\$/ b loop
  7918. p
  7919. }
  7920. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  7921. do
  7922. dirpart="${dirmf}/${file}"
  7923. dirpart="${dirpart%/*}"
  7924. if [ "${dirpart}" != "${dirmf}" ]; then
  7925. test -d "${dirpart}/.deps" || mkdir "${dirpart}/.deps"
  7926. fi
  7927. file="${file##*/}"
  7928. suffix=${file##*.}
  7929. base=${file%%.*}
  7930. test -f "$dirpart/$base.cc" || test -f "$dirpart/$base.c" || continue
  7931. if ! test -f "$dirpart/.deps/$base.Po"; then
  7932. echo '# dummy' > "$dirpart/.deps/$base.Po"
  7933. #Remove the .o file, because it needs to be recompiled for its dependancies.
  7934. if test -f "$dirpart/${base}.${suffix}"; then
  7935. rm -f "$dirpart/${base}.${suffix}"
  7936. fi
  7937. fi
  7938. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  7939. done
  7940. done
  7941. ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile src/buildinfo.h"
  7942. GIT_REQUIRED=1
  7943. if [ "$GIT_REQUIRED" = "1" ]; then
  7944. if ! test -d .git; then
  7945. echo ""
  7946. echo ""
  7947. echo "You have downloaded a GIT version of wraith."
  7948. echo "Either 'git clone' from a git repository or download a source tarball"
  7949. echo "A distribution version can be found at http://wraith.botpack.net/wiki/Download"
  7950. echo ""
  7951. echo ""
  7952. exit 1
  7953. fi
  7954. fi
  7955. if test -d .git; then
  7956. git submodule init
  7957. git submodule update
  7958. git submodule foreach --recursive git clean -fdx
  7959. # Restore as it may have been removed by an older 'make distclean'
  7960. if ! test -f src/response.h; then
  7961. git checkout src/response.h
  7962. fi
  7963. fi
  7964. if [ -f lib/bdlib/configure ]; then
  7965. subdirs="$subdirs lib/bdlib"
  7966. fi
  7967. if [ -n "${LIBELF_BUNDLED}" ] && [ -f lib/libelf/configure ]; then
  7968. subdirs="$subdirs lib/libelf"
  7969. fi
  7970. cat >confcache <<\_ACEOF
  7971. # This file is a shell script that caches the results of configure
  7972. # tests run on this system so they can be shared between configure
  7973. # scripts and configure runs, see configure's option --config-cache.
  7974. # It is not useful on other systems. If it contains results you don't
  7975. # want to keep, you may remove or edit it.
  7976. #
  7977. # build/config.status only pays attention to the cache file if you give it
  7978. # the --recheck option to rerun configure.
  7979. #
  7980. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7981. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7982. # following values.
  7983. _ACEOF
  7984. # The following way of writing the cache mishandles newlines in values,
  7985. # but we know of no workaround that is simple, portable, and efficient.
  7986. # So, we kill variables containing newlines.
  7987. # Ultrix sh set writes to stderr and can't be redirected directly,
  7988. # and sets the high bit in the cache file unless we assign to the vars.
  7989. (
  7990. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7991. eval ac_val=\$$ac_var
  7992. case $ac_val in #(
  7993. *${as_nl}*)
  7994. case $ac_var in #(
  7995. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7996. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7997. esac
  7998. case $ac_var in #(
  7999. _ | IFS | as_nl) ;; #(
  8000. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  8001. *) { eval $ac_var=; unset $ac_var;} ;;
  8002. esac ;;
  8003. esac
  8004. done
  8005. (set) 2>&1 |
  8006. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8007. *${as_nl}ac_space=\ *)
  8008. # `set' does not quote correctly, so add quotes: double-quote
  8009. # substitution turns \\\\ into \\, and sed turns \\ into \.
  8010. sed -n \
  8011. "s/'/'\\\\''/g;
  8012. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8013. ;; #(
  8014. *)
  8015. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8016. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8017. ;;
  8018. esac |
  8019. sort
  8020. ) |
  8021. sed '
  8022. /^ac_cv_env_/b end
  8023. t clear
  8024. :clear
  8025. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8026. t end
  8027. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8028. :end' >>confcache
  8029. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8030. if test -w "$cache_file"; then
  8031. if test "x$cache_file" != "x/dev/null"; then
  8032. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  8033. $as_echo "$as_me: updating cache $cache_file" >&6;}
  8034. if test ! -f "$cache_file" || test -h "$cache_file"; then
  8035. cat confcache >"$cache_file"
  8036. else
  8037. case $cache_file in #(
  8038. */* | ?:*)
  8039. mv -f confcache "$cache_file"$$ &&
  8040. mv -f "$cache_file"$$ "$cache_file" ;; #(
  8041. *)
  8042. mv -f confcache "$cache_file" ;;
  8043. esac
  8044. fi
  8045. fi
  8046. else
  8047. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  8048. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  8049. fi
  8050. fi
  8051. rm -f confcache
  8052. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8053. # Let make expand exec_prefix.
  8054. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8055. DEFS=-DHAVE_CONFIG_H
  8056. ac_libobjs=
  8057. ac_ltlibobjs=
  8058. U=
  8059. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8060. # 1. Remove the extension, and $U if already installed.
  8061. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  8062. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  8063. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  8064. # will be set to the directory where LIBOBJS objects are built.
  8065. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  8066. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  8067. done
  8068. LIBOBJS=$ac_libobjs
  8069. LTLIBOBJS=$ac_ltlibobjs
  8070. : "${CONFIG_STATUS=./build/config.status}"
  8071. ac_write_fail=0
  8072. ac_clean_files_save=$ac_clean_files
  8073. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8074. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  8075. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8076. as_write_fail=0
  8077. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  8078. #! $SHELL
  8079. # Generated by $as_me.
  8080. # Run this file to recreate the current configuration.
  8081. # Compiler output produced by configure, useful for debugging
  8082. # configure, is in build/config.log if it exists.
  8083. debug=false
  8084. ac_cs_recheck=false
  8085. ac_cs_silent=false
  8086. SHELL=\${CONFIG_SHELL-$SHELL}
  8087. export SHELL
  8088. _ASEOF
  8089. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  8090. ## -------------------- ##
  8091. ## M4sh Initialization. ##
  8092. ## -------------------- ##
  8093. # Be more Bourne compatible
  8094. DUALCASE=1; export DUALCASE # for MKS sh
  8095. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  8096. emulate sh
  8097. NULLCMD=:
  8098. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  8099. # is contrary to our usage. Disable this feature.
  8100. alias -g '${1+"$@"}'='"$@"'
  8101. setopt NO_GLOB_SUBST
  8102. else
  8103. case `(set -o) 2>/dev/null` in #(
  8104. *posix*) :
  8105. set -o posix ;; #(
  8106. *) :
  8107. ;;
  8108. esac
  8109. fi
  8110. as_nl='
  8111. '
  8112. export as_nl
  8113. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  8114. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  8115. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  8116. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  8117. # Prefer a ksh shell builtin over an external printf program on Solaris,
  8118. # but without wasting forks for bash or zsh.
  8119. if test -z "$BASH_VERSION$ZSH_VERSION" \
  8120. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  8121. as_echo='print -r --'
  8122. as_echo_n='print -rn --'
  8123. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  8124. as_echo='printf %s\n'
  8125. as_echo_n='printf %s'
  8126. else
  8127. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  8128. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  8129. as_echo_n='/usr/ucb/echo -n'
  8130. else
  8131. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  8132. as_echo_n_body='eval
  8133. arg=$1;
  8134. case $arg in #(
  8135. *"$as_nl"*)
  8136. expr "X$arg" : "X\\(.*\\)$as_nl";
  8137. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  8138. esac;
  8139. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  8140. '
  8141. export as_echo_n_body
  8142. as_echo_n='sh -c $as_echo_n_body as_echo'
  8143. fi
  8144. export as_echo_body
  8145. as_echo='sh -c $as_echo_body as_echo'
  8146. fi
  8147. # The user is always right.
  8148. if test "${PATH_SEPARATOR+set}" != set; then
  8149. PATH_SEPARATOR=:
  8150. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  8151. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  8152. PATH_SEPARATOR=';'
  8153. }
  8154. fi
  8155. # IFS
  8156. # We need space, tab and new line, in precisely that order. Quoting is
  8157. # there to prevent editors from complaining about space-tab.
  8158. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  8159. # splitting by setting IFS to empty value.)
  8160. IFS=" "" $as_nl"
  8161. # Find who we are. Look in the path if we contain no directory separator.
  8162. as_myself=
  8163. case $0 in #((
  8164. *[\\/]* ) as_myself=$0 ;;
  8165. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8166. for as_dir in $PATH
  8167. do
  8168. IFS=$as_save_IFS
  8169. test -z "$as_dir" && as_dir=.
  8170. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8171. done
  8172. IFS=$as_save_IFS
  8173. ;;
  8174. esac
  8175. # We did not find ourselves, most probably we were run as `sh COMMAND'
  8176. # in which case we are not to be found in the path.
  8177. if test "x$as_myself" = x; then
  8178. as_myself=$0
  8179. fi
  8180. if test ! -f "$as_myself"; then
  8181. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  8182. exit 1
  8183. fi
  8184. # Unset variables that we do not need and which cause bugs (e.g. in
  8185. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  8186. # suppresses any "Segmentation fault" message there. '((' could
  8187. # trigger a bug in pdksh 5.2.14.
  8188. for as_var in BASH_ENV ENV MAIL MAILPATH
  8189. do eval test x\${$as_var+set} = xset \
  8190. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  8191. done
  8192. PS1='$ '
  8193. PS2='> '
  8194. PS4='+ '
  8195. # NLS nuisances.
  8196. LC_ALL=C
  8197. export LC_ALL
  8198. LANGUAGE=C
  8199. export LANGUAGE
  8200. # CDPATH.
  8201. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8202. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  8203. # ----------------------------------------
  8204. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  8205. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  8206. # script with STATUS, using 1 if that was 0.
  8207. as_fn_error ()
  8208. {
  8209. as_status=$1; test $as_status -eq 0 && as_status=1
  8210. if test "$4"; then
  8211. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  8212. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  8213. fi
  8214. $as_echo "$as_me: error: $2" >&2
  8215. as_fn_exit $as_status
  8216. } # as_fn_error
  8217. # as_fn_set_status STATUS
  8218. # -----------------------
  8219. # Set $? to STATUS, without forking.
  8220. as_fn_set_status ()
  8221. {
  8222. return $1
  8223. } # as_fn_set_status
  8224. # as_fn_exit STATUS
  8225. # -----------------
  8226. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  8227. as_fn_exit ()
  8228. {
  8229. set +e
  8230. as_fn_set_status $1
  8231. exit $1
  8232. } # as_fn_exit
  8233. # as_fn_unset VAR
  8234. # ---------------
  8235. # Portably unset VAR.
  8236. as_fn_unset ()
  8237. {
  8238. { eval $1=; unset $1;}
  8239. }
  8240. as_unset=as_fn_unset
  8241. # as_fn_append VAR VALUE
  8242. # ----------------------
  8243. # Append the text in VALUE to the end of the definition contained in VAR. Take
  8244. # advantage of any shell optimizations that allow amortized linear growth over
  8245. # repeated appends, instead of the typical quadratic growth present in naive
  8246. # implementations.
  8247. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  8248. eval 'as_fn_append ()
  8249. {
  8250. eval $1+=\$2
  8251. }'
  8252. else
  8253. as_fn_append ()
  8254. {
  8255. eval $1=\$$1\$2
  8256. }
  8257. fi # as_fn_append
  8258. # as_fn_arith ARG...
  8259. # ------------------
  8260. # Perform arithmetic evaluation on the ARGs, and store the result in the
  8261. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  8262. # must be portable across $(()) and expr.
  8263. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  8264. eval 'as_fn_arith ()
  8265. {
  8266. as_val=$(( $* ))
  8267. }'
  8268. else
  8269. as_fn_arith ()
  8270. {
  8271. as_val=`expr "$@" || test $? -eq 1`
  8272. }
  8273. fi # as_fn_arith
  8274. if expr a : '\(a\)' >/dev/null 2>&1 &&
  8275. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  8276. as_expr=expr
  8277. else
  8278. as_expr=false
  8279. fi
  8280. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  8281. as_basename=basename
  8282. else
  8283. as_basename=false
  8284. fi
  8285. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  8286. as_dirname=dirname
  8287. else
  8288. as_dirname=false
  8289. fi
  8290. as_me=`$as_basename -- "$0" ||
  8291. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8292. X"$0" : 'X\(//\)$' \| \
  8293. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  8294. $as_echo X/"$0" |
  8295. sed '/^.*\/\([^/][^/]*\)\/*$/{
  8296. s//\1/
  8297. q
  8298. }
  8299. /^X\/\(\/\/\)$/{
  8300. s//\1/
  8301. q
  8302. }
  8303. /^X\/\(\/\).*/{
  8304. s//\1/
  8305. q
  8306. }
  8307. s/.*/./; q'`
  8308. # Avoid depending upon Character Ranges.
  8309. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8310. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8311. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8312. as_cr_digits='0123456789'
  8313. as_cr_alnum=$as_cr_Letters$as_cr_digits
  8314. ECHO_C= ECHO_N= ECHO_T=
  8315. case `echo -n x` in #(((((
  8316. -n*)
  8317. case `echo 'xy\c'` in
  8318. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  8319. xy) ECHO_C='\c';;
  8320. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  8321. ECHO_T=' ';;
  8322. esac;;
  8323. *)
  8324. ECHO_N='-n';;
  8325. esac
  8326. rm -f conf$$ conf$$.exe conf$$.file
  8327. if test -d conf$$.dir; then
  8328. rm -f conf$$.dir/conf$$.file
  8329. else
  8330. rm -f conf$$.dir
  8331. mkdir conf$$.dir 2>/dev/null
  8332. fi
  8333. if (echo >conf$$.file) 2>/dev/null; then
  8334. if ln -s conf$$.file conf$$ 2>/dev/null; then
  8335. as_ln_s='ln -s'
  8336. # ... but there are two gotchas:
  8337. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  8338. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  8339. # In both cases, we have to default to `cp -pR'.
  8340. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  8341. as_ln_s='cp -pR'
  8342. elif ln conf$$.file conf$$ 2>/dev/null; then
  8343. as_ln_s=ln
  8344. else
  8345. as_ln_s='cp -pR'
  8346. fi
  8347. else
  8348. as_ln_s='cp -pR'
  8349. fi
  8350. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  8351. rmdir conf$$.dir 2>/dev/null
  8352. # as_fn_mkdir_p
  8353. # -------------
  8354. # Create "$as_dir" as a directory, including parents if necessary.
  8355. as_fn_mkdir_p ()
  8356. {
  8357. case $as_dir in #(
  8358. -*) as_dir=./$as_dir;;
  8359. esac
  8360. test -d "$as_dir" || eval $as_mkdir_p || {
  8361. as_dirs=
  8362. while :; do
  8363. case $as_dir in #(
  8364. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  8365. *) as_qdir=$as_dir;;
  8366. esac
  8367. as_dirs="'$as_qdir' $as_dirs"
  8368. as_dir=`$as_dirname -- "$as_dir" ||
  8369. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8370. X"$as_dir" : 'X\(//\)[^/]' \| \
  8371. X"$as_dir" : 'X\(//\)$' \| \
  8372. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  8373. $as_echo X"$as_dir" |
  8374. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8375. s//\1/
  8376. q
  8377. }
  8378. /^X\(\/\/\)[^/].*/{
  8379. s//\1/
  8380. q
  8381. }
  8382. /^X\(\/\/\)$/{
  8383. s//\1/
  8384. q
  8385. }
  8386. /^X\(\/\).*/{
  8387. s//\1/
  8388. q
  8389. }
  8390. s/.*/./; q'`
  8391. test -d "$as_dir" && break
  8392. done
  8393. test -z "$as_dirs" || eval "mkdir $as_dirs"
  8394. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  8395. } # as_fn_mkdir_p
  8396. if mkdir -p . 2>/dev/null; then
  8397. as_mkdir_p='mkdir -p "$as_dir"'
  8398. else
  8399. test -d ./-p && rmdir ./-p
  8400. as_mkdir_p=false
  8401. fi
  8402. # as_fn_executable_p FILE
  8403. # -----------------------
  8404. # Test if FILE is an executable regular file.
  8405. as_fn_executable_p ()
  8406. {
  8407. test -f "$1" && test -x "$1"
  8408. } # as_fn_executable_p
  8409. as_test_x='test -x'
  8410. as_executable_p=as_fn_executable_p
  8411. # Sed expression to map a string onto a valid CPP name.
  8412. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8413. # Sed expression to map a string onto a valid variable name.
  8414. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8415. exec 6>&1
  8416. ## ----------------------------------- ##
  8417. ## Main body of $CONFIG_STATUS script. ##
  8418. ## ----------------------------------- ##
  8419. _ASEOF
  8420. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  8421. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8422. # Save the log message, to keep $0 and so on meaningful, and to
  8423. # report actual input values of CONFIG_FILES etc. instead of their
  8424. # values after options handling.
  8425. ac_log="
  8426. This file was extended by $as_me, which was
  8427. generated by GNU Autoconf 2.69. Invocation command line was
  8428. CONFIG_FILES = $CONFIG_FILES
  8429. CONFIG_HEADERS = $CONFIG_HEADERS
  8430. CONFIG_LINKS = $CONFIG_LINKS
  8431. CONFIG_COMMANDS = $CONFIG_COMMANDS
  8432. $ $0 $@
  8433. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  8434. "
  8435. _ACEOF
  8436. case $ac_config_files in *"
  8437. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  8438. esac
  8439. case $ac_config_headers in *"
  8440. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  8441. esac
  8442. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8443. # Files that build/config.status was made for.
  8444. config_files="$ac_config_files"
  8445. config_headers="$ac_config_headers"
  8446. _ACEOF
  8447. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8448. ac_cs_usage="\
  8449. \`$as_me' instantiates files and other configuration actions
  8450. from templates according to the current configuration. Unless the files
  8451. and actions are specified as TAGs, all are instantiated by default.
  8452. Usage: $0 [OPTION]... [TAG]...
  8453. -h, --help print this help, then exit
  8454. -V, --version print version number and configuration settings, then exit
  8455. --config print configuration, then exit
  8456. -q, --quiet, --silent
  8457. do not print progress messages
  8458. -d, --debug don't remove temporary files
  8459. --recheck update $as_me by reconfiguring in the same conditions
  8460. --file=FILE[:TEMPLATE]
  8461. instantiate the configuration file FILE
  8462. --header=FILE[:TEMPLATE]
  8463. instantiate the configuration header FILE
  8464. Configuration files:
  8465. $config_files
  8466. Configuration headers:
  8467. $config_headers
  8468. Report bugs to the package provider."
  8469. _ACEOF
  8470. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8471. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  8472. ac_cs_version="\\
  8473. build/config.status
  8474. configured by $0, generated by GNU Autoconf 2.69,
  8475. with options \\"\$ac_cs_config\\"
  8476. Copyright (C) 2012 Free Software Foundation, Inc.
  8477. This build/config.status script is free software; the Free Software Foundation
  8478. gives unlimited permission to copy, distribute and modify it."
  8479. ac_pwd='$ac_pwd'
  8480. srcdir='$srcdir'
  8481. AWK='$AWK'
  8482. test -n "\$AWK" || AWK=awk
  8483. _ACEOF
  8484. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8485. # The default lists apply if the user does not specify any file.
  8486. ac_need_defaults=:
  8487. while test $# != 0
  8488. do
  8489. case $1 in
  8490. --*=?*)
  8491. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8492. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  8493. ac_shift=:
  8494. ;;
  8495. --*=)
  8496. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8497. ac_optarg=
  8498. ac_shift=:
  8499. ;;
  8500. *)
  8501. ac_option=$1
  8502. ac_optarg=$2
  8503. ac_shift=shift
  8504. ;;
  8505. esac
  8506. case $ac_option in
  8507. # Handling of the options.
  8508. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8509. ac_cs_recheck=: ;;
  8510. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  8511. $as_echo "$ac_cs_version"; exit ;;
  8512. --config | --confi | --conf | --con | --co | --c )
  8513. $as_echo "$ac_cs_config"; exit ;;
  8514. --debug | --debu | --deb | --de | --d | -d )
  8515. debug=: ;;
  8516. --file | --fil | --fi | --f )
  8517. $ac_shift
  8518. case $ac_optarg in
  8519. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8520. '') as_fn_error $? "missing file argument" ;;
  8521. esac
  8522. as_fn_append CONFIG_FILES " '$ac_optarg'"
  8523. ac_need_defaults=false;;
  8524. --header | --heade | --head | --hea )
  8525. $ac_shift
  8526. case $ac_optarg in
  8527. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8528. esac
  8529. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  8530. ac_need_defaults=false;;
  8531. --he | --h)
  8532. # Conflict between --help and --header
  8533. as_fn_error $? "ambiguous option: \`$1'
  8534. Try \`$0 --help' for more information.";;
  8535. --help | --hel | -h )
  8536. $as_echo "$ac_cs_usage"; exit ;;
  8537. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8538. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  8539. ac_cs_silent=: ;;
  8540. # This is an error.
  8541. -*) as_fn_error $? "unrecognized option: \`$1'
  8542. Try \`$0 --help' for more information." ;;
  8543. *) as_fn_append ac_config_targets " $1"
  8544. ac_need_defaults=false ;;
  8545. esac
  8546. shift
  8547. done
  8548. ac_configure_extra_args=
  8549. if $ac_cs_silent; then
  8550. exec 6>/dev/null
  8551. ac_configure_extra_args="$ac_configure_extra_args --silent"
  8552. fi
  8553. _ACEOF
  8554. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8555. if \$ac_cs_recheck; then
  8556. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8557. shift
  8558. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  8559. CONFIG_SHELL='$SHELL'
  8560. export CONFIG_SHELL
  8561. exec "\$@"
  8562. fi
  8563. _ACEOF
  8564. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8565. exec 5>>build/config.log
  8566. {
  8567. echo
  8568. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8569. ## Running $as_me. ##
  8570. _ASBOX
  8571. $as_echo "$ac_log"
  8572. } >&5
  8573. _ACEOF
  8574. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8575. _ACEOF
  8576. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8577. # Handling of arguments.
  8578. for ac_config_target in $ac_config_targets
  8579. do
  8580. case $ac_config_target in
  8581. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  8582. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8583. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  8584. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  8585. "src/buildinfo.h") CONFIG_FILES="$CONFIG_FILES src/buildinfo.h" ;;
  8586. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  8587. esac
  8588. done
  8589. # If the user did not use the arguments to specify the items to instantiate,
  8590. # then the envvar interface is used. Set only those that are not.
  8591. # We use the long form for the default assignment because of an extremely
  8592. # bizarre bug on SunOS 4.1.3.
  8593. if $ac_need_defaults; then
  8594. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  8595. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  8596. fi
  8597. # Have a temporary directory for convenience. Make it in the build tree
  8598. # simply because there is no reason against having it here, and in addition,
  8599. # creating and moving files from /tmp can sometimes cause problems.
  8600. # Hook for its removal unless debugging.
  8601. # Note that there is a small window in which the directory will not be cleaned:
  8602. # after its creation but before its name has been assigned to `$tmp'.
  8603. $debug ||
  8604. {
  8605. tmp= ac_tmp=
  8606. trap 'exit_status=$?
  8607. : "${ac_tmp:=$tmp}"
  8608. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  8609. ' 0
  8610. trap 'as_fn_exit 1' 1 2 13 15
  8611. }
  8612. # Create a (secure) tmp directory for tmp files.
  8613. {
  8614. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  8615. test -d "$tmp"
  8616. } ||
  8617. {
  8618. tmp=./conf$$-$RANDOM
  8619. (umask 077 && mkdir "$tmp")
  8620. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  8621. ac_tmp=$tmp
  8622. # Set up the scripts for CONFIG_FILES section.
  8623. # No need to generate them if there are no CONFIG_FILES.
  8624. # This happens for instance with `./build/config.status config.h'.
  8625. if test -n "$CONFIG_FILES"; then
  8626. ac_cr=`echo X | tr X '\015'`
  8627. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  8628. # But we know of no other shell where ac_cr would be empty at this
  8629. # point, so we can use a bashism as a fallback.
  8630. if test "x$ac_cr" = x; then
  8631. eval ac_cr=\$\'\\r\'
  8632. fi
  8633. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  8634. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  8635. ac_cs_awk_cr='\\r'
  8636. else
  8637. ac_cs_awk_cr=$ac_cr
  8638. fi
  8639. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  8640. _ACEOF
  8641. {
  8642. echo "cat >conf$$subs.awk <<_ACEOF" &&
  8643. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  8644. echo "_ACEOF"
  8645. } >conf$$subs.sh ||
  8646. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8647. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  8648. ac_delim='%!_!# '
  8649. for ac_last_try in false false false false false :; do
  8650. . ./conf$$subs.sh ||
  8651. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8652. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  8653. if test $ac_delim_n = $ac_delim_num; then
  8654. break
  8655. elif $ac_last_try; then
  8656. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8657. else
  8658. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8659. fi
  8660. done
  8661. rm -f conf$$subs.sh
  8662. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8663. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  8664. _ACEOF
  8665. sed -n '
  8666. h
  8667. s/^/S["/; s/!.*/"]=/
  8668. p
  8669. g
  8670. s/^[^!]*!//
  8671. :repl
  8672. t repl
  8673. s/'"$ac_delim"'$//
  8674. t delim
  8675. :nl
  8676. h
  8677. s/\(.\{148\}\)..*/\1/
  8678. t more1
  8679. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  8680. p
  8681. n
  8682. b repl
  8683. :more1
  8684. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8685. p
  8686. g
  8687. s/.\{148\}//
  8688. t nl
  8689. :delim
  8690. h
  8691. s/\(.\{148\}\)..*/\1/
  8692. t more2
  8693. s/["\\]/\\&/g; s/^/"/; s/$/"/
  8694. p
  8695. b
  8696. :more2
  8697. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8698. p
  8699. g
  8700. s/.\{148\}//
  8701. t delim
  8702. ' <conf$$subs.awk | sed '
  8703. /^[^""]/{
  8704. N
  8705. s/\n//
  8706. }
  8707. ' >>$CONFIG_STATUS || ac_write_fail=1
  8708. rm -f conf$$subs.awk
  8709. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8710. _ACAWK
  8711. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  8712. for (key in S) S_is_set[key] = 1
  8713. FS = ""
  8714. }
  8715. {
  8716. line = $ 0
  8717. nfields = split(line, field, "@")
  8718. substed = 0
  8719. len = length(field[1])
  8720. for (i = 2; i < nfields; i++) {
  8721. key = field[i]
  8722. keylen = length(key)
  8723. if (S_is_set[key]) {
  8724. value = S[key]
  8725. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  8726. len += length(value) + length(field[++i])
  8727. substed = 1
  8728. } else
  8729. len += 1 + keylen
  8730. }
  8731. print line
  8732. }
  8733. _ACAWK
  8734. _ACEOF
  8735. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8736. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  8737. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  8738. else
  8739. cat
  8740. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  8741. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  8742. _ACEOF
  8743. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  8744. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  8745. # trailing colons and then remove the whole line if VPATH becomes empty
  8746. # (actually we leave an empty line to preserve line numbers).
  8747. if test "x$srcdir" = x.; then
  8748. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  8749. h
  8750. s///
  8751. s/^/:/
  8752. s/[ ]*$/:/
  8753. s/:\$(srcdir):/:/g
  8754. s/:\${srcdir}:/:/g
  8755. s/:@srcdir@:/:/g
  8756. s/^:*//
  8757. s/:*$//
  8758. x
  8759. s/\(=[ ]*\).*/\1/
  8760. G
  8761. s/\n//
  8762. s/^[^=]*=[ ]*$//
  8763. }'
  8764. fi
  8765. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8766. fi # test -n "$CONFIG_FILES"
  8767. # Set up the scripts for CONFIG_HEADERS section.
  8768. # No need to generate them if there are no CONFIG_HEADERS.
  8769. # This happens for instance with `./build/config.status Makefile'.
  8770. if test -n "$CONFIG_HEADERS"; then
  8771. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  8772. BEGIN {
  8773. _ACEOF
  8774. # Transform build/confdefs.h into an awk script `defines.awk', embedded as
  8775. # here-document in build/config.status, that substitutes the proper values into
  8776. # config.h.in to produce config.h.
  8777. # Create a delimiter string that does not exist in build/confdefs.h, to ease
  8778. # handling of long lines.
  8779. ac_delim='%!_!# '
  8780. for ac_last_try in false false :; do
  8781. ac_tt=`sed -n "/$ac_delim/p" build/confdefs.h`
  8782. if test -z "$ac_tt"; then
  8783. break
  8784. elif $ac_last_try; then
  8785. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  8786. else
  8787. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8788. fi
  8789. done
  8790. # For the awk script, D is an array of macro values keyed by name,
  8791. # likewise P contains macro parameters if any. Preserve backslash
  8792. # newline sequences.
  8793. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  8794. sed -n '
  8795. s/.\{148\}/&'"$ac_delim"'/g
  8796. t rset
  8797. :rset
  8798. s/^[ ]*#[ ]*define[ ][ ]*/ /
  8799. t def
  8800. d
  8801. :def
  8802. s/\\$//
  8803. t bsnl
  8804. s/["\\]/\\&/g
  8805. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8806. D["\1"]=" \3"/p
  8807. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  8808. d
  8809. :bsnl
  8810. s/["\\]/\\&/g
  8811. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8812. D["\1"]=" \3\\\\\\n"\\/p
  8813. t cont
  8814. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  8815. t cont
  8816. d
  8817. :cont
  8818. n
  8819. s/.\{148\}/&'"$ac_delim"'/g
  8820. t clear
  8821. :clear
  8822. s/\\$//
  8823. t bsnlc
  8824. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  8825. d
  8826. :bsnlc
  8827. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  8828. b cont
  8829. ' <build/confdefs.h | sed '
  8830. s/'"$ac_delim"'/"\\\
  8831. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  8832. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8833. for (key in D) D_is_set[key] = 1
  8834. FS = ""
  8835. }
  8836. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  8837. line = \$ 0
  8838. split(line, arg, " ")
  8839. if (arg[1] == "#") {
  8840. defundef = arg[2]
  8841. mac1 = arg[3]
  8842. } else {
  8843. defundef = substr(arg[1], 2)
  8844. mac1 = arg[2]
  8845. }
  8846. split(mac1, mac2, "(") #)
  8847. macro = mac2[1]
  8848. prefix = substr(line, 1, index(line, defundef) - 1)
  8849. if (D_is_set[macro]) {
  8850. # Preserve the white space surrounding the "#".
  8851. print prefix "define", macro P[macro] D[macro]
  8852. next
  8853. } else {
  8854. # Replace #undef with comments. This is necessary, for example,
  8855. # in the case of _POSIX_SOURCE, which is predefined and required
  8856. # on some systems where configure will not decide to define it.
  8857. if (defundef == "undef") {
  8858. print "/*", prefix defundef, macro, "*/"
  8859. next
  8860. }
  8861. }
  8862. }
  8863. { print }
  8864. _ACAWK
  8865. _ACEOF
  8866. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8867. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  8868. fi # test -n "$CONFIG_HEADERS"
  8869. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  8870. shift
  8871. for ac_tag
  8872. do
  8873. case $ac_tag in
  8874. :[FHLC]) ac_mode=$ac_tag; continue;;
  8875. esac
  8876. case $ac_mode$ac_tag in
  8877. :[FHL]*:*);;
  8878. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  8879. :[FH]-) ac_tag=-:-;;
  8880. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  8881. esac
  8882. ac_save_IFS=$IFS
  8883. IFS=:
  8884. set x $ac_tag
  8885. IFS=$ac_save_IFS
  8886. shift
  8887. ac_file=$1
  8888. shift
  8889. case $ac_mode in
  8890. :L) ac_source=$1;;
  8891. :[FH])
  8892. ac_file_inputs=
  8893. for ac_f
  8894. do
  8895. case $ac_f in
  8896. -) ac_f="$ac_tmp/stdin";;
  8897. *) # Look for the file first in the build tree, then in the source tree
  8898. # (if the path is not absolute). The absolute path cannot be DOS-style,
  8899. # because $ac_f cannot contain `:'.
  8900. test -f "$ac_f" ||
  8901. case $ac_f in
  8902. [\\/$]*) false;;
  8903. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  8904. esac ||
  8905. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  8906. esac
  8907. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  8908. as_fn_append ac_file_inputs " '$ac_f'"
  8909. done
  8910. # Let's still pretend it is `configure' which instantiates (i.e., don't
  8911. # use $as_me), people would be surprised to read:
  8912. # /* config.h. Generated by build/config.status. */
  8913. configure_input='Generated from '`
  8914. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  8915. `' by configure.'
  8916. if test x"$ac_file" != x-; then
  8917. configure_input="$ac_file. $configure_input"
  8918. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  8919. $as_echo "$as_me: creating $ac_file" >&6;}
  8920. fi
  8921. # Neutralize special characters interpreted by sed in replacement strings.
  8922. case $configure_input in #(
  8923. *\&* | *\|* | *\\* )
  8924. ac_sed_conf_input=`$as_echo "$configure_input" |
  8925. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  8926. *) ac_sed_conf_input=$configure_input;;
  8927. esac
  8928. case $ac_tag in
  8929. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  8930. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  8931. esac
  8932. ;;
  8933. esac
  8934. ac_dir=`$as_dirname -- "$ac_file" ||
  8935. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8936. X"$ac_file" : 'X\(//\)[^/]' \| \
  8937. X"$ac_file" : 'X\(//\)$' \| \
  8938. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  8939. $as_echo X"$ac_file" |
  8940. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8941. s//\1/
  8942. q
  8943. }
  8944. /^X\(\/\/\)[^/].*/{
  8945. s//\1/
  8946. q
  8947. }
  8948. /^X\(\/\/\)$/{
  8949. s//\1/
  8950. q
  8951. }
  8952. /^X\(\/\).*/{
  8953. s//\1/
  8954. q
  8955. }
  8956. s/.*/./; q'`
  8957. as_dir="$ac_dir"; as_fn_mkdir_p
  8958. ac_builddir=.
  8959. case "$ac_dir" in
  8960. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8961. *)
  8962. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  8963. # A ".." for each directory in $ac_dir_suffix.
  8964. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  8965. case $ac_top_builddir_sub in
  8966. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8967. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  8968. esac ;;
  8969. esac
  8970. ac_abs_top_builddir=$ac_pwd
  8971. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  8972. # for backward compatibility:
  8973. ac_top_builddir=$ac_top_build_prefix
  8974. case $srcdir in
  8975. .) # We are building in place.
  8976. ac_srcdir=.
  8977. ac_top_srcdir=$ac_top_builddir_sub
  8978. ac_abs_top_srcdir=$ac_pwd ;;
  8979. [\\/]* | ?:[\\/]* ) # Absolute name.
  8980. ac_srcdir=$srcdir$ac_dir_suffix;
  8981. ac_top_srcdir=$srcdir
  8982. ac_abs_top_srcdir=$srcdir ;;
  8983. *) # Relative name.
  8984. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  8985. ac_top_srcdir=$ac_top_build_prefix$srcdir
  8986. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  8987. esac
  8988. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  8989. case $ac_mode in
  8990. :F)
  8991. #
  8992. # CONFIG_FILE
  8993. #
  8994. _ACEOF
  8995. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8996. # If the template does not know about datarootdir, expand it.
  8997. # FIXME: This hack should be removed a few years after 2.60.
  8998. ac_datarootdir_hack=; ac_datarootdir_seen=
  8999. ac_sed_dataroot='
  9000. /datarootdir/ {
  9001. p
  9002. q
  9003. }
  9004. /@datadir@/p
  9005. /@docdir@/p
  9006. /@infodir@/p
  9007. /@localedir@/p
  9008. /@mandir@/p'
  9009. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  9010. *datarootdir*) ac_datarootdir_seen=yes;;
  9011. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  9012. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  9013. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  9014. _ACEOF
  9015. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9016. ac_datarootdir_hack='
  9017. s&@datadir@&$datadir&g
  9018. s&@docdir@&$docdir&g
  9019. s&@infodir@&$infodir&g
  9020. s&@localedir@&$localedir&g
  9021. s&@mandir@&$mandir&g
  9022. s&\\\${datarootdir}&$datarootdir&g' ;;
  9023. esac
  9024. _ACEOF
  9025. # Neutralize VPATH when `$srcdir' = `.'.
  9026. # Shell code in configure.ac might set extrasub.
  9027. # FIXME: do we really want to maintain this feature?
  9028. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9029. ac_sed_extra="$ac_vpsub
  9030. $extrasub
  9031. _ACEOF
  9032. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9033. :t
  9034. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9035. s|@configure_input@|$ac_sed_conf_input|;t t
  9036. s&@top_builddir@&$ac_top_builddir_sub&;t t
  9037. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  9038. s&@srcdir@&$ac_srcdir&;t t
  9039. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  9040. s&@top_srcdir@&$ac_top_srcdir&;t t
  9041. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  9042. s&@builddir@&$ac_builddir&;t t
  9043. s&@abs_builddir@&$ac_abs_builddir&;t t
  9044. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  9045. $ac_datarootdir_hack
  9046. "
  9047. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  9048. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9049. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  9050. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  9051. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  9052. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  9053. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9054. which seems to be undefined. Please make sure it is defined" >&5
  9055. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9056. which seems to be undefined. Please make sure it is defined" >&2;}
  9057. rm -f "$ac_tmp/stdin"
  9058. case $ac_file in
  9059. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  9060. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  9061. esac \
  9062. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9063. ;;
  9064. :H)
  9065. #
  9066. # CONFIG_HEADER
  9067. #
  9068. if test x"$ac_file" != x-; then
  9069. {
  9070. $as_echo "/* $configure_input */" \
  9071. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  9072. } >"$ac_tmp/config.h" \
  9073. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9074. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  9075. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  9076. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  9077. else
  9078. rm -f "$ac_file"
  9079. mv "$ac_tmp/config.h" "$ac_file" \
  9080. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9081. fi
  9082. else
  9083. $as_echo "/* $configure_input */" \
  9084. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  9085. || as_fn_error $? "could not create -" "$LINENO" 5
  9086. fi
  9087. ;;
  9088. esac
  9089. done # for ac_tag
  9090. as_fn_exit 0
  9091. _ACEOF
  9092. ac_clean_files=$ac_clean_files_save
  9093. test $ac_write_fail = 0 ||
  9094. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  9095. # configure is writing to build/config.log, and then calls build/config.status.
  9096. # build/config.status does its own redirection, appending to build/config.log.
  9097. # Unfortunately, on DOS this fails, as build/config.log is still kept open
  9098. # by configure, so build/config.status won't be able to write to it; its
  9099. # output is simply discarded. So we exec the FD to /dev/null,
  9100. # effectively closing build/config.log, so it can be properly (re)opened and
  9101. # appended to by build/config.status. When coming back to configure, we
  9102. # need to make the FD available again.
  9103. if test "$no_create" != yes; then
  9104. ac_cs_success=:
  9105. ac_config_status_args=
  9106. test "$silent" = yes &&
  9107. ac_config_status_args="$ac_config_status_args --quiet"
  9108. exec 5>/dev/null
  9109. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  9110. exec 5>>build/config.log
  9111. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9112. # would make configure fail if this is the last instruction.
  9113. $ac_cs_success || as_fn_exit 1
  9114. fi
  9115. #
  9116. # CONFIG_SUBDIRS section.
  9117. #
  9118. if test "$no_recursion" != yes; then
  9119. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  9120. # so they do not pile up.
  9121. ac_sub_configure_args=
  9122. ac_prev=
  9123. eval "set x $ac_configure_args"
  9124. shift
  9125. for ac_arg
  9126. do
  9127. if test -n "$ac_prev"; then
  9128. ac_prev=
  9129. continue
  9130. fi
  9131. case $ac_arg in
  9132. -cache-file | --cache-file | --cache-fil | --cache-fi \
  9133. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  9134. ac_prev=cache_file ;;
  9135. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  9136. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  9137. | --c=*)
  9138. ;;
  9139. --config-cache | -C)
  9140. ;;
  9141. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  9142. ac_prev=srcdir ;;
  9143. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  9144. ;;
  9145. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  9146. ac_prev=prefix ;;
  9147. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  9148. ;;
  9149. --disable-option-checking)
  9150. ;;
  9151. *)
  9152. case $ac_arg in
  9153. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9154. esac
  9155. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  9156. esac
  9157. done
  9158. # Always prepend --prefix to ensure using the same prefix
  9159. # in subdir configurations.
  9160. ac_arg="--prefix=$prefix"
  9161. case $ac_arg in
  9162. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9163. esac
  9164. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  9165. # Pass --silent
  9166. if test "$silent" = yes; then
  9167. ac_sub_configure_args="--silent $ac_sub_configure_args"
  9168. fi
  9169. # Always prepend --disable-option-checking to silence warnings, since
  9170. # different subdirs can have different --enable and --with options.
  9171. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  9172. ac_popdir=`pwd`
  9173. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  9174. # Do not complain, so a configure script can configure whichever
  9175. # parts of a large source tree are present.
  9176. test -d "$srcdir/$ac_dir" || continue
  9177. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  9178. $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  9179. $as_echo "$ac_msg" >&6
  9180. as_dir="$ac_dir"; as_fn_mkdir_p
  9181. ac_builddir=.
  9182. case "$ac_dir" in
  9183. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9184. *)
  9185. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  9186. # A ".." for each directory in $ac_dir_suffix.
  9187. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9188. case $ac_top_builddir_sub in
  9189. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9190. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9191. esac ;;
  9192. esac
  9193. ac_abs_top_builddir=$ac_pwd
  9194. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9195. # for backward compatibility:
  9196. ac_top_builddir=$ac_top_build_prefix
  9197. case $srcdir in
  9198. .) # We are building in place.
  9199. ac_srcdir=.
  9200. ac_top_srcdir=$ac_top_builddir_sub
  9201. ac_abs_top_srcdir=$ac_pwd ;;
  9202. [\\/]* | ?:[\\/]* ) # Absolute name.
  9203. ac_srcdir=$srcdir$ac_dir_suffix;
  9204. ac_top_srcdir=$srcdir
  9205. ac_abs_top_srcdir=$srcdir ;;
  9206. *) # Relative name.
  9207. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9208. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9209. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9210. esac
  9211. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9212. cd "$ac_dir"
  9213. # Check for guested configure; otherwise get Cygnus style configure.
  9214. if test -f "$ac_srcdir/configure.gnu"; then
  9215. ac_sub_configure=$ac_srcdir/configure.gnu
  9216. elif test -f "$ac_srcdir/configure"; then
  9217. ac_sub_configure=$ac_srcdir/configure
  9218. elif test -f "$ac_srcdir/configure.in"; then
  9219. # This should be Cygnus configure.
  9220. ac_sub_configure=$ac_aux_dir/configure
  9221. else
  9222. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  9223. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  9224. ac_sub_configure=
  9225. fi
  9226. # The recursion is here.
  9227. if test -n "$ac_sub_configure"; then
  9228. # Make the cache file name correct relative to the subdirectory.
  9229. case $cache_file in
  9230. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  9231. *) # Relative name.
  9232. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  9233. esac
  9234. { $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
  9235. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  9236. # The eval makes quoting arguments work.
  9237. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  9238. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  9239. as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  9240. fi
  9241. cd "$ac_popdir"
  9242. done
  9243. fi
  9244. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  9245. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  9246. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  9247. fi
  9248. CXX="$CXX" CXXFLAGS="$CXXFLAGS" TCL_INCLUDES="$TCL_INCLUDES" SSL_INCLUDES="$SSL_INCLUDES" \
  9249. SED="$SED" src/generate_defs.sh || exit 1