Add searching for Python 3.1 in configure.in

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11142 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Haoyu Bai 2009-03-02 16:35:12 +00:00
commit fcf2d3ddb8

View file

@ -692,16 +692,16 @@ else
# First figure out the name of the Python3 executable
if test "x$PY3BIN" = xyes; then
AC_CHECK_PROGS(PYTHON3, [python3 python3.0])
AC_CHECK_PROGS(PYTHON3, [python3 python3.0 python3.1])
else
PYTHON3="$PY3BIN"
fi
# Check for Python 3.x development tools (header files, static library and python3-config)
if test "x$PYTHON3" = x; then
AC_CHECK_PROGS(PY3CONFIG, [python3-config python3.0-config])
AC_CHECK_PROGS(PY3CONFIG, [python3-config python3.0-config python3.1-config])
else
AC_CHECK_PROGS(PY3CONFIG, [$PYTHON3-config python3-config python3.0-config])
AC_CHECK_PROGS(PY3CONFIG, [$PYTHON3-config python3-config python3.0-config python3.1-config])
fi
if test -n "$PYTHON3" -a -n "$PY3CONFIG"; then