Commit | Line | Data |
---|---|---|
a9c2df2b FD |
1 | # ac_CHECK_SDT_WORKS |
2 | # | |
3 | # Check whether it's possible to build a binary with Systemtap SDT probes. | |
4 | ||
5 | AC_DEFUN([ax_CHECK_SDT_WORKS], [ | |
6 | AC_COMPILE_IFELSE( | |
7 | [AC_LANG_SOURCE([[ | |
8 | #define SDT_USE_VARIADIC | |
9 | #include <sys/sdt.h> | |
10 | void fct(void) | |
11 | { | |
12 | STAP_PROBEV(provider,name,1,2,3,4,5,6,7,8,9,10); | |
13 | } | |
14 | ]])], [ | |
15 | ax_check_sdt_works=yes | |
16 | ], [ | |
17 | ax_check_sdt_works=no | |
18 | ] | |
19 | ) | |
20 | ]) |