INN commit: trunk/m4 (python.m4)

INN Commit rra at isc.org
Mon Jan 24 22:10:44 UTC 2011


    Date: Monday, January 24, 2011 @ 14:10:44
  Author: iulius
Revision: 9168

Add parenthesis for Python print() calls.  It otherwise does not work with
Python 3.

Modified:
  trunk/m4/python.m4

-----------+
 python.m4 |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: python.m4
===================================================================
--- python.m4	2011-01-24 21:24:23 UTC (rev 9167)
+++ python.m4	2011-01-24 22:10:44 UTC (rev 9168)
@@ -25,8 +25,8 @@
 if test x"$DO_PYTHON" = xDO ; then
     INN_PATH_PROG_ENSURE([PYTHON], [python])
     AC_MSG_CHECKING([for Python linkage])
-    py_prefix=`$PYTHON -c 'import sys; print sys.prefix'`
-    py_ver=`$PYTHON -c 'import sys; print sys.version[[:3]]'`
+    py_prefix=`$PYTHON -c 'import sys; print (sys.prefix)'`
+    py_ver=`$PYTHON -c 'import sys; print (sys.version[[:3]])'`
     py_libdir="$py_prefix/lib/python$py_ver"
     PYTHON_CPPFLAGS="-I$py_prefix/include/python$py_ver"
     py_linkage=""




More information about the inn-committers mailing list