Sha256: 25e14647463c01f31dc89c1acd1c67b72589aebbe7a6a15f3f10d4be97949abe

Contents?: true

Size: 1.58 KB

Versions: 27

Compression:

Stored size: 1.58 KB

Contents

dnl  Copyright (C) 2009 Sun Microsystems
dnl This file is free software; Sun Microsystems
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

dnl ---------------------------------------------------------------------------
dnl Macro: PANDORA_ENABLE_DTRACE
dnl ---------------------------------------------------------------------------
AC_DEFUN([PANDORA_ENABLE_DTRACE],[
  AC_ARG_ENABLE([dtrace],
    [AS_HELP_STRING([--enable-dtrace],
            [Build with support for the DTRACE. @<:@default=off@:>@])],
    [ac_cv_enable_dtrace="yes"],
    [ac_cv_enable_dtrace="no"])

  AS_IF([test "$ac_cv_enable_dtrace" = "yes"],[
    AC_CHECK_PROGS([DTRACE], [dtrace])
    AS_IF([test "x$ac_cv_prog_DTRACE" = "xdtrace"],[
      AC_DEFINE([HAVE_DTRACE], [1], [Enables DTRACE Support])
      dnl DTrace on MacOSX does not use -G option
      cat >conftest.d <<_ACEOF
provider Example {
  probe increment(int);
};
_ACEOF
      $DTRACE -G -o conftest.d.o -s conftest.d 2>/dev/zero
      AS_IF([test $? -eq 0],[ac_cv_dtrace_needs_objects=yes])
      rm -f conftest.d.o conftest.d

      AC_SUBST(DTRACEFLAGS) dnl TODO: test for -G on OSX
      ac_cv_have_dtrace=yes
    ])])

AM_CONDITIONAL([HAVE_DTRACE], [test "x$ac_cv_have_dtrace" = "xyes"])
AM_CONDITIONAL([DTRACE_NEEDS_OBJECTS],
               [test "x$ac_cv_dtrace_needs_objects" = "xyes"])

])
dnl ---------------------------------------------------------------------------
dnl End Macro: PANDORA_ENABLE_DTRACE
dnl ---------------------------------------------------------------------------

Version data entries

27 entries across 27 versions & 4 rubygems

Version Path
vinted-memcached-1.8.5 vendor/libmemcached-0.32/m4/pandora_enable_dtrace.m4
vinted-memcached-1.8.4 ext/libmemcached-0.32/m4/pandora_enable_dtrace.m4
vinted-memcached-1.8.3 ext/libmemcached-0.32/m4/pandora_enable_dtrace.m4
vinted-memcached-1.8.2 ext/libmemcached-0.32/m4/pandora_enable_dtrace.m4
vinted-memcached-1.8.0 ext/libmemcached-0.32/m4/pandora_enable_dtrace.m4
dalli_memcached-1.8.0 ext/libmemcached-0.32/m4/pandora_enable_dtrace.m4
memcached-1.8.0 ext/libmemcached-0.32/m4/pandora_enable_dtrace.m4
memcached-1.7.2 ext/libmemcached-0.32/m4/pandora_enable_dtrace.m4
memcached-1.7.0 ext/libmemcached-0.32/m4/pandora_enable_dtrace.m4
memcached-1.6.1 ext/libmemcached-0.32/m4/pandora_enable_dtrace.m4
memcached-1.6.0 ext/libmemcached-0.32/m4/pandora_enable_dtrace.m4
memcached-1.5.1 ext/libmemcached-0.32/m4/pandora_enable_dtrace.m4
memcached-1.5.0 ext/libmemcached-0.32/m4/pandora_enable_dtrace.m4
boourns-memcached-1.4.6 ext/libmemcached-0.32/m4/pandora_enable_dtrace.m4
memcached-1.4.6 ext/libmemcached-0.32/m4/pandora_enable_dtrace.m4
memcached-1.4.5 ext/libmemcached-0.32/m4/pandora_enable_dtrace.m4
memcached-1.4.3 ext/libmemcached-0.32/m4/pandora_enable_dtrace.m4
memcached-1.4.2 ext/libmemcached-0.32/m4/pandora_enable_dtrace.m4
memcached-1.4.1 ext/libmemcached-0.32/m4/pandora_enable_dtrace.m4
memcached-1.3.7 ext/libmemcached-0.32/m4/pandora_enable_dtrace.m4