aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorBryan Hundven <bryanhundven@gmail.com>2023-03-08 17:15:22 -0800
committerChris Packham <judge.packham@gmail.com>2023-03-16 16:54:05 +1300
commitfa05153eba3ee259635ffb2ce2789386d339c077 (patch)
treea6c246215fcc23b2cc6ebc878eefde068360f223 /configure.ac
parent1b0c227c0526d1f5a31355921640676995477d91 (diff)
downloadcrosstool-ng-fa05153eba3ee259635ffb2ce2789386d339c077.tar.gz
crosstool-ng-fa05153eba3ee259635ffb2ce2789386d339c077.tar.bz2
crosstool-ng-fa05153eba3ee259635ffb2ce2789386d339c077.zip
Make checking for python more predictable.
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac18
1 files changed, 5 insertions, 13 deletions
diff --git a/configure.ac b/configure.ac
index d6e336fe..4a33c9ac 100644
--- a/configure.ac
+++ b/configure.ac
@@ -253,19 +253,11 @@ CTNG_PROG_VERSION([M4],
[\(GNU M4\) ([2-9]\.|1\.[5-9]|1\.[1-4][0-9]|1\.4\.[2-9][0-9]|1\.4\.1[2-9])],
[gnu_m4_1_4_12_or_newer])
-CTNG_PROG_VERSION([PYTHON],
- [Python],
- [python],
- [python37 python3.7 python36 python3.6 python35 python3.5 python34 python3.4 python33 python3.3 python32 python3.2 python31 python3.1 python3 python27 python2.7 python26 python2.6 python2 python],
- [^Python [23]\.],
- [python])
-
-CTNG_PROG_VERSION([PYTHON],
- [Python >= 3.4],
- [python],
- [python37 python3.7 python36 python3.6 python35 python3.5 python34 python3.4 python3 python],
- [^Python 3\.([4-9]|[1-9][0-9]+)\.],
- [python_3_4_or_newer])
+# Check for Python
+CTNG_PYTHON
+
+# Check for Python 3.4 or newer
+CTNG_PYTHON_VERSION([3],[4])
CTNG_PROG_VERSION_REQ_ANY([BISON],
[bison >= 2.7],