~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_enable_dtrace.m4

Split out warnings - start using the pandora build system.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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"])
 
10
 
 
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
 
16
      ac_cv_have_dtrace=yes
 
17
    ])])
 
18
 
 
19
AM_CONDITIONAL([HAVE_DTRACE], [ test "x$ac_cv_have_dtrace" = "xyes" ])
 
20
])
 
21
dnl ---------------------------------------------------------------------------
 
22
dnl End Macro: PANDORA_ENABLE_DTRACE
 
23
dnl ---------------------------------------------------------------------------