Implement userspace-probe regression tests
[lttng-tools.git] / m4 / ax_check_sdt_works.m4
diff --git a/m4/ax_check_sdt_works.m4 b/m4/ax_check_sdt_works.m4
new file mode 100644 (file)
index 0000000..49ee684
--- /dev/null
@@ -0,0 +1,20 @@
+# ac_CHECK_SDT_WORKS
+#
+# Check whether it's possible to build a binary with Systemtap SDT probes.
+
+AC_DEFUN([ax_CHECK_SDT_WORKS], [
+AC_COMPILE_IFELSE(
+[AC_LANG_SOURCE([[
+               #define SDT_USE_VARIADIC
+               #include <sys/sdt.h>
+               void fct(void)
+               {
+                       STAP_PROBEV(provider,name,1,2,3,4,5,6,7,8,9,10);
+               }
+       ]])], [
+               ax_check_sdt_works=yes
+       ], [
+               ax_check_sdt_works=no
+       ]
+)
+])
This page took 0.024269 seconds and 5 git commands to generate.