Windows port: Use an improved python.m4
authorDieter Verfaillie <dieterv@optionexplicit.be>
Mon, 5 Sep 2011 13:48:26 +0000 (15:48 +0200)
committerDieter Verfaillie <dieterv@optionexplicit.be>
Wed, 7 Sep 2011 19:37:39 +0000 (21:37 +0200)
commita8977bc6c93793fc9a2e9b6d4315c385d5ed4cb9
tree4d4a48dfa4a28b057302c670da65b60cdc1aad79
parent4b57f684dac03a57edcff0ee554883eab7f345b3
Windows port: Use an improved python.m4

- AM_CHECK_PYTHON_HEADERS macro now allows PYTHON_INCLUDES to be overridden
  from an environment variable and
- the new AM_CHECK_PYTHON_LIBS macro to check for ability to link against
  libpython. This also allows PYTHON_LIBS and PYTHON_LIB_LOC to be overridden
  from their respective environment variables.

This allows gobject-introspection to be built with MinGW/MSYS by doing:

PYTHON_DIR="/c/Python27"
SRC_DIR="/d/dev/gnome.org/checkout/gobject-introspection/src"
...
PYTHON_INCLUDES="-I${PYTHON_DIR}/include/" \
PYTHON_LIBS="-L${PYTHON_DIR}/libs/ -lpython${PYTHON_VERSION}" \
PYTHON_LIB_LOC="${PYTHON_DIR}/libs/" \
"${SRC_DIR}/configure" \

https://bugzilla.gnome.org/show_bug.cgi?id=620566
Makefile-giscanner.am
configure.ac
m4/python.m4