1
dnl ---------------------------------------------------------------------------
2
dnl Macro: PANDORA_ENABLE_DTRACE
3
dnl ---------------------------------------------------------------------------
4
AC_DEFUN([PANDORA_ENABLE_DTRACE],[
5
AC_ARG_ENABLE([dtrace],
6
[AS_HELP_STRING([--enable-dtrace],
7
[Build with support for the DTRACE. @<:@default=off@:>@])],
8
[ac_cv_enable_dtrace="yes"],
9
[ac_cv_enable_dtrace="no"])
11
AS_IF([test "$ac_cv_enable_dtrace" = "yes"],[
12
AC_CHECK_PROGS([DTRACE], [dtrace])
13
AS_IF([test "x$ac_cv_prog_DTRACE" = "xdtrace"],[
14
AC_DEFINE([HAVE_DTRACE], [1], [Enables DTRACE Support])
15
AC_SUBST(DTRACEFLAGS) dnl TODO: test for -G on OSX
19
AM_CONDITIONAL([HAVE_DTRACE], [ test "x$ac_cv_have_dtrace" = "xyes" ])
21
dnl ---------------------------------------------------------------------------
22
dnl End Macro: PANDORA_ENABLE_DTRACE
23
dnl ---------------------------------------------------------------------------