diff --git a/contrib/devtools/build_autotools.sh b/contrib/devtools/build_autotools.sh
--- a/contrib/devtools/build_autotools.sh
+++ b/contrib/devtools/build_autotools.sh
@@ -24,4 +24,4 @@
 ../configure --enable-deprecated-build-system "${CONFIGURE_FLAGS[@]}"
 
 # Run build
-make -j "${THREADS}"
+make -j "${THREADS}" "$@"
diff --git a/contrib/teamcity/build-configurations.sh b/contrib/teamcity/build-configurations.sh
--- a/contrib/teamcity/build-configurations.sh
+++ b/contrib/teamcity/build-configurations.sh
@@ -310,8 +310,7 @@
 
   build-autotools)
     # Ensure that the build using autotools is not broken
-    "${DEVTOOLS_DIR}"/build_autotools.sh
-    make -j "${THREADS}" check
+    "${DEVTOOLS_DIR}"/build_autotools.sh check
     ;;
 
   build-bench)