diff --git a/build/autoconf/lustre-build.m4 b/build/autoconf/lustre-build.m4
index b2a516b92de264857e5241523328b37088169f0a..0c46c9fe6c484943d79c185f3c75844528607a3a 100644
--- a/build/autoconf/lustre-build.m4
+++ b/build/autoconf/lustre-build.m4
@@ -454,7 +454,9 @@ LB_DARWIN_CONDITIONALS
 
 LP_CONDITIONALS
 LC_CONDITIONALS
-LS_CONDITIONALS
+if [ "$SNMP_DIST_SUBDIR" ] ; then
+	LS_CONDITIONALS
+fi
 ])
 
 #