From 2b7a572ddd9bcce063e3cd10851fd953f525fe24 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 29 Aug 2013 19:36:40 +0000 Subject: m4/systemtap.m4: quote cm_cv_sdt_h_usable var The variable may not be defined at all, so it must be quoted to avoid spewing a warning of dtrace/stap are not found. --- m4/systemtap.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/m4/systemtap.m4 b/m4/systemtap.m4 index 3c62f08..294cbe1 100644 --- a/m4/systemtap.m4 +++ b/m4/systemtap.m4 @@ -15,7 +15,7 @@ AS_IF([test "x$STAP" != x && test "x$DTRACE" != x && test $SDT_H_FOUND = yes], ],[], [cm_cv_sdt_h_usable=yes], [cm_cv_sdt_h_usable=no])])) -AS_IF([test $cm_cv_sdt_h_usable = yes], +AS_IF([test x"$cm_cv_sdt_h_usable" = xyes], [ENABLE_SYSTEMTAP=yes], [ENABLE_SYSTEMTAP=no]) dnl support explicit --disable-systemtap or --enable-systemtap @@ -33,7 +33,7 @@ then AS_IF([test "x${DTRACE}" = x], [AC_MSG_ERROR([dtrace not found])]) AS_IF([test $SDT_H_FOUND = no], [ AC_MSG_ERROR([systemtap support needs sys/sdt.h header]) ]) - AS_IF([test $cm_cv_sdt_h_usable = no], + AS_IF([test x"$cm_cv_sdt_h_usable" = xno], [ AC_MSG_ERROR([sys/sdt.h header is not usable (clang?)]) ]) AC_DEFINE([HAVE_SYSTEMTAP], [1], [Define to 1 if using sdt probes.]) fi -- cgit v1.2.3-24-ge0c7