about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-08-29 19:36:40 +0000
committerEric Wong <normalperson@yhbt.net>2013-08-29 19:39:38 +0000
commit2b7a572ddd9bcce063e3cd10851fd953f525fe24 (patch)
treea941300a762e34a1dc9da610c164faaa2d9b6579
parent723a81a0e25ff07c2e6dd9dbd6bf838f6bee7411 (diff)
downloadcmogstored-2b7a572ddd9bcce063e3cd10851fd953f525fe24.tar.gz
The variable may not be defined at all, so it must be
quoted to avoid spewing a warning of dtrace/stap are not
found.
-rw-r--r--m4/systemtap.m44
1 files 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