From a352456594876f0fc04412b60bff6c2595ace3fb Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Mon, 13 Aug 2012 16:00:43 -0700 Subject: [PATCH] stap: Include DYNINST in the enabled feature list --- config.in | 3 +++ configure | 3 +++ configure.ac | 1 + session.cxx | 3 +++ 4 files changed, 10 insertions(+) diff --git a/config.in b/config.in index eb42ca672..0580220ef 100644 --- a/config.in +++ b/config.in @@ -29,6 +29,9 @@ */ #undef HAVE_DCGETTEXT +/* Define to 1 if Dyninst is enabled */ +#undef HAVE_DYNINST + /* Define to 1 if libelf has elf_getshdrstrndx */ #undef HAVE_ELF_GETSHDRSTRNDX diff --git a/configure b/configure index 92b0579a7..ab9fd3721 100755 --- a/configure +++ b/configure @@ -10502,6 +10502,9 @@ _ACEOF + +$as_echo "#define HAVE_DYNINST 1" >>confdefs.h + have_dyninst=yes else diff --git a/configure.ac b/configure.ac index acfe59f83..d43469e4c 100644 --- a/configure.ac +++ b/configure.ac @@ -498,6 +498,7 @@ if test -n "$DYNINST_CXXFLAGS"; then AC_CHECK_HEADERS([BPatch_object.h], [ AC_SUBST(DYNINST_CXXFLAGS) AC_SUBST(DYNINST_LDFLAGS) + AC_DEFINE([HAVE_DYNINST],[1],[Define to 1 if Dyninst is enabled]) have_dyninst=yes ], AC_MSG_ERROR([Dyninst does not appear to be usable])) diff --git a/session.cxx b/session.cxx index 98a77be2c..4532763c6 100644 --- a/session.cxx +++ b/session.cxx @@ -426,6 +426,9 @@ systemtap_session::version () #endif #ifdef ENABLE_NLS << " NLS" +#endif +#ifdef HAVE_DYNINST + << " DYNINST" #endif << endl; } -- 2.43.5