Skip to content

Commit

Permalink
Merge 3fee905 into d0f7b29
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallward authored Jun 9, 2023
2 parents d0f7b29 + 3fee905 commit f458d8a
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions ac/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -236,15 +236,21 @@ AC_COMPILE_IFELSE(
]
)

# Python interpreter test

# Verify that Python is available
AC_PATH_PROGS([PYTHON], [python python3 python2], [
AC_MSG_ERROR([Could not find python.])
])
AC_ARG_VAR([PYTHON], [Python interpreter command])

AS_VAR_SET_IF([PYTHON], [
AC_PATH_PROGS([PYTHON], ["$PYTHON"], [none])
], [
AC_PATH_PROGS([PYTHON], [python python3 python2], [none])
])
AS_VAR_IF([PYTHON], [none], [
AC_MSG_ERROR([Python interpreter not found.])
])


# Verify that makedep is available
# Makedep test
AC_PATH_PROG([MAKEDEP], [makedep], [${srcdir}/ac/makedep])
AC_SUBST([MAKEDEP])

Expand Down

0 comments on commit f458d8a

Please sign in to comment.