Commit 3078257a authored by Jelte Jansen's avatar Jelte Jansen
Browse files

removed accidentally added generated makefiles

updated configure.ac to check for existence of python-config and Python.h


git-svn-id: svn://bind10.isc.org/svn/bind10/experiments/python-binding@1715 e5f2f494-b856-4b98-b285-d166d9295462
parent 46088523
......@@ -48,6 +48,10 @@ else
AC_SUBST(pkgpyexecdir)
fi
if test ! -x ${PYTHON}-config; then
AC_MSG_ERROR([${PYTHON}-config not found])
fi
PYTHON_INCLUDES=`${PYTHON}-config --includes`
AC_SUBST(PYTHON_INCLUDES)
for flag in `${PYTHON}-config --ldflags`; do
......@@ -55,6 +59,12 @@ for flag in `${PYTHON}-config --ldflags`; do
done
AC_SUBST(PYTHON_LDFLAGS)
CPPFLAGS_SAVED="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS ${PYTHON_INCLUDES}"
AC_CHECK_HEADERS([Python.h],, AC_MSG_ERROR([Missing Python.h]))
CPPFLAGS="$CPPFLAGS_SAVED"
# Check for python library (not absolutely mandatory, but needed for
# Boost.Python when we use it. See below.)
LDFLAGS_SAVED="$LDFLAGS"
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment