summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-11-17 19:10:45 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-01-07 13:13:02 -0500
commit34bc02c7bc8b7e8c267e6da9a8c35a6c25f1b72e (patch)
treeae7175fb5d72c632a5e50984ffa32d39585d67aa /aclocal.m4
parentacf40cae24dab7be7c719dba191daa5cf9f7e676 (diff)
downloadhaskell-34bc02c7bc8b7e8c267e6da9a8c35a6c25f1b72e.tar.gz
configure: Find Python3 for testsuite
In addition, we prefer the Mingw64 Python distribution on Windows due to #17483.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m411
1 files changed, 11 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index ed6e8a7c0d..6b005acf82 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -2513,4 +2513,15 @@ AC_DEFUN([FIND_LD],[
CHECK_LD_COPY_BUG([$1])
])
+# FIND_PYTHON
+# -----------
+# Find the version of `python` to use (for the testsuite driver)
+#
+AC_DEFUN([FIND_PYTHON],[
+ dnl Prefer the mingw64 distribution on Windows due to #17483.
+ AC_PATH_PROG([PYTHON], [python3], [], [/mingw64/bin $PATH])
+ PythonCmd="$PYTHON"
+ AC_SUBST([PythonCmd])
+])
+
# LocalWords: fi