mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
Backport of DTrace patches from 6.0
This commit is contained in:
parent
602f612af0
commit
cc958a18dd
46 changed files with 1521 additions and 74 deletions
38
config/ac-macros/dtrace.m4
Normal file
38
config/ac-macros/dtrace.m4
Normal file
|
|
@ -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 ---------------------------------------------------------------------------
|
||||
Loading…
Add table
Add a link
Reference in a new issue