From 3d3e513d419b9215eddcbe7a256cd701afb03113 Mon Sep 17 00:00:00 2001 From: xantares Date: Thu, 29 Aug 2013 11:22:26 +0200 Subject: [PATCH] Py3k compatible detection --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index a6eedfd..a781597 100644 --- a/configure.ac +++ b/configure.ac @@ -157,7 +157,7 @@ if test $have_python = yes; then [unknown], [`dirname $PYTHON`:$PATH]) AC_MSG_CHECKING([for Python include flags]) if test "x$PYTHON_CONFIG" = "xunknown"; then - pinc=-I`echo "import distutils.sysconfig; print distutils.sysconfig.get_python_inc()" | $PYTHON - 2>/dev/null` + pinc=-I`echo "import distutils.sysconfig; print (distutils.sysconfig.get_python_inc())" | $PYTHON - 2>/dev/null` test "x$pinc" = "x-I" && pinc="" else pinc=`$PYTHON_CONFIG --includes 2>/dev/null` @@ -170,7 +170,7 @@ if test $have_python = yes; then have_python=no]) if test $have_python = yes; then AC_MSG_CHECKING([for Numpy include directory]) - pinc=`echo "import numpy; print numpy.get_include()" | $PYTHON - 2>/dev/null` + pinc=`echo "import numpy; print (numpy.get_include())" | $PYTHON - 2>/dev/null` AC_MSG_RESULT([${pinc:-unknown}]) test -n "$pinc" && PYTHON_INCLUDES="$PYTHON_INCLUDES -I$pinc" CPPFLAGS="$save_CPPFLAGS $PYTHON_INCLUDES" -- 2.30.2