patch-m4_ax_python_devel_m4 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. --- xbmc-12.3-Frodo.orig/m4/ax_python_devel.m4 2013-12-12 22:47:49.000000000 +0100
  2. +++ xbmc-12.3-Frodo/m4/ax_python_devel.m4 2014-01-27 18:51:28.000000000 +0100
  3. @@ -151,10 +151,9 @@ $ac_distutils_result])
  4. #
  5. AC_MSG_CHECKING([for Python include path])
  6. if test -z "$PYTHON_CPPFLAGS"; then
  7. - python_path=`$PYTHON -c "import distutils.sysconfig; \
  8. - print (distutils.sysconfig.get_python_inc ());"`
  9. + python_path=`python2-config --includes`
  10. if test -n "${python_path}"; then
  11. - python_path="-I$python_path"
  12. + python_path="$python_path"
  13. fi
  14. PYTHON_CPPFLAGS=$python_path
  15. fi
  16. @@ -267,17 +266,6 @@ EOD`
  17. AC_MSG_RESULT([$PYTHON_SITE_PKG])
  18. AC_SUBST([PYTHON_SITE_PKG])
  19. - #
  20. - # libraries which must be linked in when embedding
  21. - #
  22. - AC_MSG_CHECKING(python extra libraries)
  23. - if test -z "$PYTHON_EXTRA_LIBS"; then
  24. - PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
  25. - conf = distutils.sysconfig.get_config_var; \
  26. - print (conf('LOCALMODLIBS') + ' ' + conf('LIBS'))"`
  27. - fi
  28. - AC_MSG_RESULT([$PYTHON_EXTRA_LIBS])
  29. - AC_SUBST(PYTHON_EXTRA_LIBS)
  30. #
  31. # linking flags needed when embedding