diff options
author | Mikael Ronstrom <mikael@mysql.com> | 2008-12-20 11:01:41 +0100 |
---|---|---|
committer | Mikael Ronstrom <mikael@mysql.com> | 2008-12-20 11:01:41 +0100 |
commit | 16a024c486f75b9eadc046511f48a23e566e9c4b (patch) | |
tree | 36aa1edfd94289934ffa3aa66af64b899e9a9e77 /config | |
parent | 8d162b444ab0e4396098d0a5e1f23811441917a1 (diff) | |
download | mariadb-git-16a024c486f75b9eadc046511f48a23e566e9c4b.tar.gz |
Backport of DTrace patches from 6.0
Diffstat (limited to 'config')
-rw-r--r-- | config/ac-macros/dtrace.m4 | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/config/ac-macros/dtrace.m4 b/config/ac-macros/dtrace.m4 new file mode 100644 index 00000000000..d37667767d1 --- /dev/null +++ b/config/ac-macros/dtrace.m4 @@ -0,0 +1,38 @@ +dnl --------------------------------------------------------------------------- +dnl Macro: DTRACE_TEST +dnl --------------------------------------------------------------------------- +AC_ARG_ENABLE(dtrace, + AC_HELP_STRING([--enable-dtrace],[Build with support for the DTRACE.]), + [ + ENABLE_DTRACE="$enable_dtrace" + ], + [ + ENABLE_DTRACE="yes" + ] +) +DTRACEFLAGS="" +HAVE_DTRACE="" +HAVE_DTRACE_DASH_G="" +if test "$ENABLE_DTRACE" = "yes"; then + AC_CHECK_PROGS(DTRACE, dtrace, [not found]) + if test "$DTRACE" = "not found"; then + ENABLE_DTRACE="no" + else + AC_DEFINE([HAVE_DTRACE], [1], [Defined to 1 if DTrace support is enabled]) + case "$target_os" in + *solaris*) + HAVE_DTRACE_DASH_G="yes" + ;; + *) + HAVE_DTRACE_DASH_G="no" + ;; + esac + fi +fi +AC_SUBST(DTRACEFLAGS) +AC_SUBST(HAVE_DTRACE) +AM_CONDITIONAL([HAVE_DTRACE], [ test "$ENABLE_DTRACE" = "yes" ]) +AM_CONDITIONAL([HAVE_DTRACE_DASH_G], [ test "$HAVE_DTRACE_DASH_G" = "yes" ]) +dnl --------------------------------------------------------------------------- +dnl End Macro: DTRACE_TEST +dnl --------------------------------------------------------------------------- |