summaryrefslogtreecommitdiffstats
path: root/m4/systemtap.m4
blob: 0564e3da8784e3aeb78d855b3946e30081e32752 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#
# lldp_SYSTEMTAP
#
# Check for DTrace/Systemtap support

AC_DEFUN([lldp_SYSTEMTAP], [
  # Enable systemtap support
  lldp_ARG_ENABLE([dtrace], [systemtap/DTrace trace support], [no])
  AM_CONDITIONAL([ENABLE_SYSTEMTAP], [test x"$enable_dtrace" = x"yes"])
  if test x"$enable_dtrace" = x"yes"; then
     AC_CHECK_PROGS(DTRACE, dtrace)
     if test -z "$DTRACE"; then
       AC_MSG_ERROR([*** dtrace command not found])
     fi
     AC_CHECK_HEADER([sys/sdt.h],,[AC_MSG_ERROR([*** no sys/sdt.h header found])])
  fi
])