[zbar-commits] push rev [343]: fix missing configure check for Python.h (bug #3092663)
Status: Beta
Brought to you by:
spadix
From: <sp...@us...> - 2011-09-19 01:46:47
|
changeset: 343:2f457756a387 user: sp...@us... date: Sun Sep 18 18:33:24 2011 -0700 details: http://zbar.hg.sourceforge.net:8000/hgroot/zbar/zbarzbar/rev/2f457756a387 description: fix missing configure check for Python.h (bug #3092663) - thanks to Zoltan Kovacs for reporting this problem! diffstat: ChangeLog | 2 ++ configure.ac | 11 ++++++++++- 2 files changed, 12 insertions(+), 1 deletions(-) diffs (31 lines): diff -r 9a6dc24f222c -r 2f457756a387 ChangeLog --- a/ChangeLog Sun Sep 18 16:59:52 2011 -0700 +++ b/ChangeLog Sun Sep 18 18:33:24 2011 -0700 @@ -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) diff -r 9a6dc24f222c -r 2f457756a387 configure.ac --- a/configure.ac Sun Sep 18 16:59:52 2011 -0700 +++ b/configure.ac Sun Sep 18 18:33:24 2011 -0700 @@ -436,7 +436,16 @@ [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]) |