diff --git a/configure b/configure index 1c63f74db3b..c505af5c4d3 100755 --- a/configure +++ b/configure @@ -541,6 +541,16 @@ CFG_BUILD_DIR="$(pwd)/" CFG_SELF="$0" CFG_CONFIGURE_ARGS="$@" + +case "${CFG_SRC_DIR}" in + *\ * ) + err "The path to the rust source directory contains spaces, which is not supported" + ;; + *) + ;; +esac + + OPTIONS="" HELP=0 if [ "$1" = "--help" ]