diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-05-02 11:11:11 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-05-02 11:11:11 +0100 |
commit | e2e589889ef5257f62cc3a32561142f625716ef0 (patch) | |
tree | 2e42b6ebd3ba70a6da5df87d983321d16aa519b9 | |
parent | 2f59718a4bf22cbea28e0c7b2f880f86d4497a7a (diff) | |
download | dbus-python-e2e589889ef5257f62cc3a32561142f625716ef0.tar.gz |
Make AM_CHECK_PYTHON_HEADERS compatible with Python 3 in the absence of python3-config
-rw-r--r-- | m4/am-check-python-headers.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/am-check-python-headers.m4 b/m4/am-check-python-headers.m4 index 513abae..b1aaf5a 100644 --- a/m4/am-check-python-headers.m4 +++ b/m4/am-check-python-headers.m4 @@ -16,8 +16,8 @@ else AC_MSG_RESULT($PYTHON_INCLUDES) else AC_MSG_RESULT([failed, will try another way]) - 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)"` AC_MSG_CHECKING(for Python headers in $py_prefix and $py_exec_prefix) PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}" if test "$py_prefix" != "$py_exec_prefix"; then |