diff --git a/scripts/validate.bash b/scripts/validate.bash
index 50b1242c02f01675fc5402327a82f4518877948e..bd8f26c74a71dcd0e61ea4e35c226560c28529d0 100755
--- a/scripts/validate.bash
+++ b/scripts/validate.bash
@@ -194,10 +194,10 @@ function do_cleanup ()
 function process_args ()
 {
     if [ "x$LKT_DEBUG" = "xyes" ] ; then
-        LKT_CONFIGURE_OPTIONS="$LKT_CONFIGURE_OPTIONS --enable-debug"
+        LKT_CONFIGURE_OPTIONS="$LKT_CONFIGURE_OPTIONS --enable-debug=yes"
     fi
     if [ "x$LKT_STATIC_MODULES" = "xyes" ] ; then
-        LKT_CONFIGURE_OPTIONS="$LKT_CONFIGURE_OPTIONS --enable-static-module"
+        LKT_CONFIGURE_OPTIONS="$LKT_CONFIGURE_OPTIONS --with-liblektor=static"
     fi
     LKT_CONFIGURE_OPTIONS="$LKT_CONFIGURE_OPTIONS CC=$LKT_COMPILER"
 }