Revision 1417, 0.9 kB
(checked in by jalet, 20 years ago)
|
Inclusion of Michele Baldessari's work on autotools
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
Rev | Line | |
---|
[1417] | 1 | |
---|
| 2 | |
---|
| 3 | |
---|
| 4 | |
---|
| 5 | |
---|
| 6 | AC_DEFUN([AM_CHECK_PYTHON_HEADERS], |
---|
| 7 | [AC_REQUIRE([AM_PATH_PYTHON]) |
---|
| 8 | AC_MSG_CHECKING(for headers required to compile python extensions) |
---|
| 9 | |
---|
| 10 | py_prefix=`$PYTHON -c "import sys; print sys.prefix"` |
---|
| 11 | py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"` |
---|
| 12 | PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}" |
---|
| 13 | if test "$py_prefix" != "$py_exec_prefix"; then |
---|
| 14 | PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}" |
---|
| 15 | fi |
---|
| 16 | AC_SUBST(PYTHON_INCLUDES) |
---|
| 17 | |
---|
| 18 | save_CPPFLAGS="$CPPFLAGS" |
---|
| 19 | CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES" |
---|
| 20 | AC_TRY_CPP([ |
---|
| 21 | [AC_MSG_RESULT(found) |
---|
| 22 | $1], |
---|
| 23 | [AC_MSG_RESULT(not found) |
---|
| 24 | $2]) |
---|
| 25 | CPPFLAGS="$save_CPPFLAGS" |
---|
| 26 | ]) |
---|