--- a/configure
+++ b/configure
@@ -445,7 +445,7 @@ EOF
 
 check_cap()
 {
-	if ${PKG_CONFIG} libcap --exists; then
+	if [ "${HAVE_CAP}" = "y" ] && ${PKG_CONFIG} libcap --exists; then
 		echo "HAVE_CAP:=y" >>$CONFIG
 		echo "yes"
 
