From: Mathieu Desnoyers Date: Fri, 10 Feb 2012 23:13:27 +0000 (-0500) Subject: Add STAP_PROBEV check ton configure.ac X-Git-Tag: v1.9.7~3 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;ds=sidebyside;h=491f30fe2fbacf7b11e78bd5a0af301c7b486ede;hp=b2f60c7986bb69f81b79b68f1bfe83aafa3278a7;p=lttng-ust.git Add STAP_PROBEV check ton configure.ac Signed-off-by: Mathieu Desnoyers --- diff --git a/configure.ac b/configure.ac index 77ba54af..41c5d6b5 100644 --- a/configure.ac +++ b/configure.ac @@ -217,12 +217,20 @@ AC_ARG_WITH([sdt], ) AS_IF([test "x$with_sdt" = "xyes"],[ - AC_CHECK_HEADERS([sys/sdt.h], [ + AC_MSG_CHECKING([STAP_PROBEV()]) + AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ + #define SDT_USE_VARIADIC + #include + void fct(void) + { + STAP_PROBEV(provider,name,1,2,3,4,5,6,7,8,9,10); + } + ]])],[ + AC_MSG_RESULT([yes]) AC_DEFINE([LTTNG_UST_HAVE_SDT_INTEGRATION], [1]) ],[ - AC_MSG_ERROR([The sdt.h integration was requested -but this header file cannot be found. Make sure it is installed -or use CFLAGS=-I/path/ to specify a non-standard path to sys/sdt.h]) + AC_MSG_RESULT([no]) + AC_MSG_ERROR([The sdt.h integration was requested but the STAP_PROBEV define cannot be used. Make sure it is installed, and up to date, or use CFLAGS=-I/path/ to specify a non-standard path to sys/sdt.h]) ]) ])