~barry/ubuntu/precise/dbus-python/python3-from-upstream

« back to all changes in this revision

Viewing changes to m4/am-check-python-headers.m4

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-06-26 10:28:30 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070626102830-6rh3gy4nvtt1c5z2
Tags: 0.82.0-1ubuntu1
* Merge with Debian; remaining changes:
  - Build a python-dbus-dbg package.
  - debian/rules:
    - Don't remove intermediate stamp files.
    - Don't use optimization for the debug build.
  - debian/python-dbus.postinst:
    - Also remove stale .py[co] files from 2.5 python directories

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
dnl deduce PYTHON_INCLUDES
8
8
py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
9
9
py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
10
 
PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
11
 
if test "$py_prefix" != "$py_exec_prefix"; then
12
 
  PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
13
 
fi
 
10
PYTHON_INCLUDES=`$PYTHON-config --includes 2>/dev/null`
14
11
AC_SUBST(PYTHON_INCLUDES)
15
12
dnl check if the headers exist:
16
13
save_CPPFLAGS="$CPPFLAGS"