~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_enable_dtrace.m4

  • Committer: Monty Taylor
  • Date: 2009-09-16 18:20:25 UTC
  • mto: (1128.1.1 captain-20090921-01)
  • mto: This revision was merged to the branch mainline in revision 1132.
  • Revision ID: mordred@inaugust.com-20090916182025-8szuogrssic1z0hm
pandora-buildĀ v0.59

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
    AC_CHECK_PROGS([DTRACE], [dtrace])
18
18
    AS_IF([test "x$ac_cv_prog_DTRACE" = "xdtrace"],[
19
19
      AC_DEFINE([HAVE_DTRACE], [1], [Enables DTRACE Support])
 
20
      AC_MSG_CHECKING([if dtrace should instrument object files])
20
21
      dnl DTrace on MacOSX does not use -G option
21
22
      cat >conftest.d <<_ACEOF
22
23
provider Example {
24
25
};
25
26
_ACEOF
26
27
      $DTRACE -G -o conftest.d.o -s conftest.d 2>/dev/zero
27
 
      AS_IF([test $? -eq 0],[ac_cv_dtrace_needs_objects=yes])
 
28
      AS_IF([test $? -eq 0],[ac_cv_dtrace_needs_objects=yes],
 
29
            [ac_cv_dtrace_needs_objects=no])
28
30
      rm -f conftest.d.o conftest.d
29
 
 
 
31
      AC_MSG_RESULT($ac_cv_dtrace_needs_objects)
30
32
      AC_SUBST(DTRACEFLAGS) dnl TODO: test for -G on OSX
31
33
      ac_cv_have_dtrace=yes
32
34
    ])])