From dd9f8b8cc6d873517dedd83935ed0d994bbbd6c9 Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Tue, 28 Sep 2010 11:53:03 +0200 Subject: [PATCH] Don't enable dtrace support when dtrace isn't available Fixes FTBFS when dtrace isn't available but is. --- configure.ac | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index c6fc9a1dd..51591d8a8 100644 --- a/configure.ac +++ b/configure.ac @@ -2787,11 +2787,12 @@ if test "x$enable_dtrace" != xno; then if test "x$enable_dtrace" = xyes; then AC_MSG_ERROR([dtrace not found]) fi + else + AC_CHECK_HEADER([sys/sdt.h],have_dtrace=yes, + [if test "x$enable_dtrace" = xyes; then + AC_MSG_ERROR([dtrace support needs sys/sdt.h header]) + fi]) fi - AC_CHECK_HEADER([sys/sdt.h],have_dtrace=yes, - [if test "x$enable_dtrace" = xyes; then - AC_MSG_ERROR([dtrace support needs sys/sdt.h header]) - fi]) fi else AC_MSG_RESULT([no])