m4_define([V_MAJOR], [2])
m4_define([V_MINOR], [9])
m4_define([V_PATCH], [0])
-m4_define([V_EXTRA], [pre])
+m4_define([V_EXTRA], [rc1])
m4_define([V_STRING], [V_MAJOR.V_MINOR.V_PATCH])
m4_ifdef([V_EXTRA], [m4_append([V_STRING], [-V_EXTRA])])
-m4_define([V_NAME], [[J-TBD]])
-m4_define([V_DESC], [[]])
+m4_define([V_NAME], [[Joannès]])
+m4_define([V_DESC], [[Berliner Weisse style beer from the Trèfle Noir microbrewery in Rouyn-Noranda.]])
AC_INIT([lttng-ust], V_STRING, [mathieu dot desnoyers at efficios dot com])
# Checks for programs.
AC_PROG_CC
AC_PROG_CXX
-AM_CONDITIONAL([HAVE_CXX], [test "x$CXX" != "x"])
AC_CHECK_PROG([HAVE_CMAKE], [cmake], ["yes"])
AM_CONDITIONAL([HAVE_CMAKE], [test "x$HAVE_CMAKE" = "xyes"])
AC_PROG_MAKE_SET
AC_DEFINE([LTTNG_UST_HAVE_PERF_EVENT], [1])
])
+AC_MSG_CHECKING([Restartable Sequences])
+AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
+ #include <unistd.h>
+ #include <syscall.h>
+ #ifndef __NR_rseq
+ #error "Restartable Sequences system call not wired up in your kernel headers."
+ #endif
+]])], [
+ AC_MSG_RESULT([yes])
+ have_rseq=yes
+], [
+ AC_MSG_RESULT([no])
+ have_rseq=no
+])
+
AC_MSG_CHECKING([host system alignment requirements])
AS_CASE([$host_cpu],
[i[[3456]]86], [],
AS_ECHO_N(["Efficient unaligned memory access: "])
AS_IF([test "x$NO_UNALIGNED_ACCESS" != "x1"], [AS_ECHO(["yes"])], [AS_IF([test "x$UNSUPPORTED_ARCH" != "x1"], [AS_ECHO(["no"])], [AS_ECHO(["unknown"])])])
AS_IF([test "x$UNSUPPORTED_ARCH" = "x1"], [AC_MSG_WARN([Your architecture ($host_cpu) is unsupported, using safe default of no unaligned access])])
+
+AS_ECHO_N(["Restartable Sequences system call: "])
+AS_IF([test "x$have_rseq" = "xyes"], [AS_ECHO(["yes"])], [AS_ECHO(["no"])])
AS_ECHO
AS_ECHO(["Type 'make' to compile."])