Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ac/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,4 @@ ac-clean: distclean
rm -f @srcdir@/ac/aclocal.m4
rm -rf @srcdir@/ac/autom4te.cache
rm -f @srcdir@/ac/configure
rm -f @srcdir@/ac/configure~
5 changes: 5 additions & 0 deletions ac/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,13 @@ AC_COMPILE_IFELSE(

# Python interpreter test

# Declare the Python interpreter variable
AC_ARG_VAR([PYTHON], [Python interpreter command])

# If PYTHON is set to an empty string, then unset it
AS_VAR_IF([PYTHON], [], [AS_UNSET([PYTHON])], [])

# Now attempt to find a Python interpreter if PYTHON is unset
AS_VAR_SET_IF([PYTHON], [
AC_PATH_PROGS([PYTHON], ["$PYTHON"], [none])
], [
Expand Down