diff --git a/configure.ac b/configure.ac
index aa0e72c..9fbf97d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1163,6 +1163,7 @@ if test X"$OPT_SSL" != Xno; then
     ;;
   *)
     dnl check the given --with-ssl spot
+    PKGTEST="no"
     PREFIX_OPENSSL=$OPT_SSL
 
     dnl Try pkg-config even when cross-compiling.  Since we

