autogen: Accept python3.10 as a python alternative

NetBSD doesn't provide python or python3.

Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
Vladimir Serbinenko 2023-08-24 23:25:48 +02:00 committed by Daniel Kiper
parent 3d4cb5a432
commit 2d6a899806

View File

@ -9,7 +9,7 @@ fi
# Detect python
if [ -z "$PYTHON" ]; then
for i in python3 python; do
for i in python3 python3.10 python; do
if command -v "$i" > /dev/null 2>&1; then
PYTHON="$i"
echo "Using $PYTHON..."