]> git.cworth.org Git - notmuch/blobdiff - configure
python-cffi: fix out-of-tree build
[notmuch] / configure
index 6c3a38f1098ace4d563f5962d9470013e898175a..7d9df3708a315ab5bdae7badbc8239d271f412b6 100755 (executable)
--- a/configure
+++ b/configure
@@ -1579,6 +1579,14 @@ EOF
     printf "rsti_dir = '%s'\n" "$(cd emacs && pwd -P)"
 } > sphinx.config
 
+cat > bindings/python-cffi/_notmuch_config.py <<EOF
+# _notmuch_config.py was automatically generated by the configure
+# script in the root of the notmuch source tree.
+NOTMUCH_VERSION_FILE='${NOTMUCH_SRCDIR}/version.txt'
+NOTMUCH_INCLUDE_DIR='${NOTMUCH_SRCDIR}/lib'
+NOTMUCH_LIB_DIR='${NOTMUCH_SRCDIR}/lib'
+EOF
+
 # Finally, after everything configured, inform the user how to continue.
 cat <<EOF