X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=configure;h=b467643c6ce4cd07365e3986de545b875567e97b;hb=46e96156218e456df3fdd239e8c055220fba667a;hp=ef81e71ba67a4364852b1c2b9585c1e6479e46f1;hpb=e13862f127394fd4addc5d2cf604b3af399c8377;p=notmuch diff --git a/configure b/configure index ef81e71b..b467643c 100755 --- a/configure +++ b/configure @@ -31,6 +31,22 @@ case $NOTMUCH_SRCDIR in ( *\'* | *['\"`$']* ) exit 1 esac +case $PWD in ( *\'* | *['\"`$']* ) + echo "Definitely unsafe characters in current directory '$PWD'". + exit 1 +esac + +# In case of whitespace, builds may work, tests definitely will not. +case $NOTMUCH_SRCDIR in ( *["$IFS"]* ) + echo "Whitespace in source path '$NOTMUCH_SRCDIR' not supported". + exit 1 +esac + +case $PWD in ( *["$IFS"]* ) + echo "Whitespace in current directory '$PWD' not supported". + exit 1 +esac + subdirs="util compat lib parse-time-string completion doc emacs" subdirs="${subdirs} performance-test test test/test-databases" subdirs="${subdirs} bindings" @@ -655,6 +671,15 @@ if [ $have_python -eq 0 ]; then errors=$((errors + 1)) fi +printf "Checking for python3 cffi... " +if "$python" -c 'import sys,cffi; assert sys.version_info >= (3,0)' >/dev/null 2>&1; then + printf "Yes.\n" + have_python3_cffi=1 +else + printf "No.\n" + have_python3_cffi=0 +fi + printf "Checking for valgrind development files... " if pkg-config --exists valgrind; then printf "Yes.\n" @@ -1207,6 +1232,12 @@ HAVE_GETLINE = ${have_getline} # building/testing ruby bindings. HAVE_RUBY_DEV = ${have_ruby_dev} +# Is the python cffi package available? +HAVE_PYTHON3_CFFI = ${have_python3_cffi} + +# Is the python pytest package available? +HAVE_PYTHON3_PYTEST = ${have_python3_pytest} + # Whether the strcasestr function is available (if not, then notmuch will # build its own version) HAVE_STRCASESTR = ${have_strcasestr} @@ -1360,6 +1391,12 @@ NOTMUCH_RUBY=${RUBY} # building/testing ruby bindings. NOTMUCH_HAVE_RUBY_DEV=${have_ruby_dev} +# Is the python cffi package available? +NOTMUCH_HAVE_PYTHON3_CFFI=${have_python3_cffi} + +# Is the python pytest package available? +NOTMUCH_HAVE_PYTHON3_PYTEST=${have_python3_pytest} + # Platform we are run on PLATFORM=${platform} EOF