summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 88e68f06..3d7d81ef 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,6 +21,8 @@ AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_SUBST(CFLAGS)
AC_SUBST(CXXFLAGS)
+CPPFLAGS="$CPPFLAGS -I/usr/include/rpm"
+AC_SUBST(CPPFLAGS)
dnl Need libdwfl-capable recent elfutils from Fedora
save_LIBS="$LIBS"
@@ -30,6 +32,12 @@ stap_LIBS="$LIBS"
LIBS="$SAVE_LIBS"
AC_SUBST(stap_LIBS)
+dnl Need rpmlib for rpmvercmp
+AC_CHECK_HEADERS([rpmlib.h],,[
+ AC_MSG_ERROR([systemtap requires rpmlib.h])])
+AC_CHECK_LIB([rpm], [rpmvercmp],,[
+ AC_MSG_ERROR([systemtap requires librpm])])
+
dnl Plop in the build (configure) date
date=`date +%Y-%m-%d`
AC_DEFINE_UNQUOTED(DATE, "$date", [Configuration/build date])