command -v "${NINJA}"
}
+# We have to export this because sage likes to re-bootstrap and
+# re-configure itself every time you change a comment in an m4 file,
+# and it won't re-configure with this variable set. So then after
+# five minutes you'll get an error from --with-system-ninja=force.
+export ac_cv_path_NINJA=$(_sage_find_ninja)
+
# Run ./configure within the SageMath git repository. This tweaks all
# of the flags that I don't want to tweak manually:
#
# We also override the autoconf variable used to detect ninja, because
# it does a version check that isn't compatible with samurai.
sage-configure() {
- ac_cv_path_NINJA=$(_sage_find_ninja) \
./configure \
--enable-download-from-upstream-url \
--enable-system-site-packages \