Don't attempt to build dtrace support on OS X

Apparently the OS X "dtrace" command is different from the Sun one,
which is what Linux supports.  Since I don't have access to an OS X
machine to test build patches on, simply disable dtrace on OS X
for now.

https://bugzilla.gnome.org/show_bug.cgi?id=622697
This commit is contained in:
Colin Walters 2010-06-25 09:37:06 -04:00
parent e5834637eb
commit 29a6fb68b7

View File

@ -2791,6 +2791,9 @@ AC_ARG_ENABLE([dtrace],
have_dtrace=no have_dtrace=no
AC_MSG_CHECKING([whether to include dtrace tracing support]) AC_MSG_CHECKING([whether to include dtrace tracing support])
if test "x$enable_dtrace" != xno; then if test "x$enable_dtrace" != xno; then
if test x$glib_have_carbon = xyes; then
AC_MSG_RESULT([no (not yet compatible with MacOS dtrace)])
else
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
AC_CHECK_PROGS(DTRACE, dtrace) AC_CHECK_PROGS(DTRACE, dtrace)
if test -z "$DTRACE"; then if test -z "$DTRACE"; then
@ -2802,6 +2805,7 @@ if test "x$enable_dtrace" != xno; then
[if test "x$enable_dtrace" = xyes; then [if test "x$enable_dtrace" = xyes; then
AC_MSG_ERROR([dtrace support needs sys/sdt.h header]) AC_MSG_ERROR([dtrace support needs sys/sdt.h header])
fi]) fi])
fi
else else
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
fi fi