Python3-friendly python.m4
authorJoanmarie Diggs <jdiggs@igalia.com>
Sun, 24 Jun 2012 18:09:23 +0000 (14:09 -0400)
committerColin Walters <walters@verbum.org>
Fri, 26 Oct 2012 19:02:45 +0000 (15:02 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=678728

m4/python.m4

index 74ac6ee..69557b6 100644 (file)
@@ -43,8 +43,8 @@ AC_DEFUN([AM_CHECK_PYTHON_HEADERS],
 [AC_REQUIRE([AM_PATH_PYTHON])
 AC_MSG_CHECKING(for headers required to compile python extensions)
 dnl deduce PYTHON_INCLUDES
-py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
-py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
+py_prefix=`$PYTHON -c "import sys; print(sys.prefix)"`
+py_exec_prefix=`$PYTHON -c "import sys; print(sys.exec_prefix)"`
 if test "x$PYTHON_INCLUDES" == x; then
   PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
   if test "$py_prefix" != "$py_exec_prefix"; then