Added BlueZ build scripts
[ti-bt/build-utils.git] / patches / 0001-pygobject-python-includes.patch
1 --- a/configure.ac      2009-12-25 19:06:22.000000000 +0200
2 +++ b/configure.ac      2012-10-30 16:59:12.000000000 +0200
3 @@ -77,10 +77,12 @@
4  
5  AC_MSG_CHECKING([for PySignal_SetWakeupFd in Python.h])
6  py_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
7 -if test -x "$PYTHON-config"; then
8 -PYTHON_INCLUDES=`$PYTHON-config --includes 2>/dev/null`
9 -else
10 -PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
11 +if test -z $PYTHON_INCLUDES; then
12 +       if test -x "$PYTHON-config"; then
13 +               PYTHON_INCLUDES=`$PYTHON-config --includes 2>/dev/null`
14 +       else
15 +               PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
16 +       fi
17  fi
18  old_CPPFLAGS=$CPPFLAGS
19  CPPFLAGS="-Wall -Werror $PYTHON_INCLUDES"
20 --- a/m4/python.m4      2009-12-18 11:03:34.000000000 +0200
21 +++ b/m4/python.m4      2012-10-30 17:41:19.000000000 +0200
22 @@ -45,6 +45,7 @@
23  dnl deduce PYTHON_INCLUDES
24  py_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
25  py_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
26 +if test -z "$PYTHON_INCLUDES"; then
27  if test -x "$PYTHON-config"; then
28  PYTHON_INCLUDES=`$PYTHON-config --includes 2>/dev/null`
29  else
30 @@ -53,6 +54,7 @@
31    PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
32  >fi
33  fi
34 +fi
35  AC_SUBST(PYTHON_INCLUDES)
36  dnl check if the headers exist:
37  save_CPPFLAGS="$CPPFLAGS"
38 @@ -236,6 +238,7 @@
39  dnl deduce PYTHON_INCLUDES
40  py_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
41  py_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
42 +if test -z "$PYTHON_INCLUDES"; then
43  if test -x "$PYTHON-config"; then
44  PYTHON_INCLUDES=`$PYTHON-config --includes 2>/dev/null`
45  else
46 @@ -244,6 +247,7 @@
47    PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
48  fi
49  fi
50 +fi
51  AC_SUBST(PYTHON_INCLUDES)
52  dnl check if the headers exist:
53  save_CPPFLAGS="$CPPFLAGS"