diff options
author | Julian Taylor <jtaylor.debian@googlemail.com> | 2013-03-08 21:45:05 +0100 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2013-03-25 12:51:24 +0100 |
commit | 6cb46950666b6609e931a599fc1c5317dc62a84b (patch) | |
tree | 6065e96ff01f3d183ecea3732f90bca03ae857d2 /m4/ax_python_devel.m4 | |
parent | 97fcecaa79ceacbd2c37cf594bdbe44d10309c85 (diff) | |
download | autoconf-archive-6cb46950666b6609e931a599fc1c5317dc62a84b.tar.gz |
AX_PYTHON_DEVEL: add platform specific include directory to PYTHON_CPPFLAGS
required for ubuntu 13.04
Diffstat (limited to 'm4/ax_python_devel.m4')
-rw-r--r-- | m4/ax_python_devel.m4 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/m4/ax_python_devel.m4 b/m4/ax_python_devel.m4 index 8d748af..2cb7593 100644 --- a/m4/ax_python_devel.m4 +++ b/m4/ax_python_devel.m4 @@ -66,7 +66,7 @@ # modified version of the Autoconf Macro, you may extend this special # exception to the GPL to apply to your modified version as well. -#serial 12 +#serial 13 AU_ALIAS([AC_PYTHON_DEVEL], [AX_PYTHON_DEVEL]) AC_DEFUN([AX_PYTHON_DEVEL],[ @@ -153,8 +153,14 @@ $ac_distutils_result]) if test -z "$PYTHON_CPPFLAGS"; then python_path=`$PYTHON -c "import distutils.sysconfig; \ print (distutils.sysconfig.get_python_inc ());"` + plat_python_path=`$PYTHON -c "import distutils.sysconfig; \ + print (distutils.sysconfig.get_python_inc (plat_specific=1));"` if test -n "${python_path}"; then - python_path="-I$python_path" + if test "${plat_python_path}" != "${python_path}"; then + python_path="-I$python_path -I$plat_python_path" + else + python_path="-I$python_path" + fi fi PYTHON_CPPFLAGS=$python_path fi |