Skip to content

Commit

Permalink
fix missing configure check for Python.h (bug #3092663)
Browse files Browse the repository at this point in the history
    - thanks to Zoltan Kovacs for reporting this problem!
  • Loading branch information
spadix0 committed Sep 19, 2011
1 parent 0accb61 commit ed26d79
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
current:
* fix missing configure check for Python.h (bug #3092663)
- thanks to Zoltan Kovacs for reporting this problem!
* fix C++ wrapper missing Symbol.quality (bug #3076524)
- thanks to Rudy Melli for pointing this out!
* fix C++ wrapper bugs (bug #3396068)
Expand Down
11 changes: 10 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,16 @@ AS_IF([test "x$with_python" != "xno"],
[test -x "$PYTHON-config"],
[PYTHON_CFLAGS=`$PYTHON-config --cflags`],
[PYTHON_CFLAGS=`$PYTHON -c 'import distutils.sysconfig as s; print " ".join(s.get_config_vars("CFLAGS")) + " -I"+s.get_python_inc() + " -I"+s.get_python_inc(plat_specific=True)'`])
dnl FIXME now should check that #include <Python.h> compiles
dnl check that #include <Python.h> compiles (bug #3092663)
CPPFLAGS_save="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $PYTHON_CFLAGS"
AC_CHECK_HEADER([Python.h], [], [AC_MSG_ERROR([dnl
Python module enabled, but unable to compile Python.h.
Install the development package for python-$am_cv_python_version, or configure
--without-python to disable the python bindings.dnl
])])
CPPFLAGS="$CPPFLAGS_save"
AS_IF([test "x$with_gtk" = "xyes"],
[PKG_CHECK_MODULES([PYGTK], [pygtk-2.0])
Expand Down

0 comments on commit ed26d79

Please sign in to comment.